CS-534: Packet Switch Architecture
Spring 2006
Department of Computer Science
© copyright: University of Crete, Greece

Exercise Set 1:
Transmission Rate and Throughput

Assigned: Wed. 15 Feb. 2006 (week 1) -- Due: Wed. 22 Feb. 2006 (week 2)

[Lecture: 1.1 Links and Throughput] [printer version, in PDF]

1.0   Conventions: Is "Mega" 1,000,000 or 1,048,576 ?

In this exercise set (and in general), 1 MHz = 1,000,000 Hz and 1 GHz = 1,000 MHz; also, 1 ms = (1/1000) s, 1us = (1/1000) ms, 1 ns = (1/1000) us.

On the other hand, as customary in computer science and engineering, we will assume that 1 KByte = 1024 bytes, and 1 MByte = 1024 KBytes = 1,048,576 bytes.

The situation is more complicated with Mbits and Gbits. When talking e.g. of a RAM, its size is usually a power of 2, so a 1 Mbit RAM contains usually 1,048,576 bits. On the other hand, when talking of a network link that is driven by a circuit with a 100 MHz clock and transmits 1 bit during each clock period, we call the link throughput "100 Mbits/s" for convenience; in this case, 1 Mbit = 1,000,000 bits. So, the meaning of 1 Mbit or 1 Gbit is context dependent! In this exercise set, you will use the definition 1 Mbit = 1,000,000 bits, and 1 Gbit = 1,000 Mbits.

By the way, I recommend that you stick to the common conventions that Mb (or Gb) is Mbit (or Gbit), while MB (or GB) is MByte (or GByte); also, remember that Mbps (or Gbps) is Mbits/s (or Gbits/s). Concerning "kilo", notice that 1000 is small "k", as in km or kHz, while 1024 is capital "K", as in KBytes. A good reference for the above is the Peterson/Davie "Computer Networks" book, page 26.

1.1   SONET Rates

SONET (Synchronous Optical Network) has its roots in digital telephony. An (uncompressed) digital telephone connection transmits (in each direction) 8000 voice samples per second, where each sample is one byte. Thus, each SONET frame takes exactly 0.125 ms (1/8000 s) to be transmitted, so that, when carrying multiplexed digital telephony circuits, each frame contains (in its payload) one byte per telephony circuit (the SONET payload may alternatively contain other things, e.g. IP packets, or ATM cells).

The basic SONET rate is OC-1, where each frame consists of 810 bytes of 8 bits each. An OC-N frame consists of a number N of OC-1 frames that are byte-interleaved with each other.

Calculate the "fast clock" frequency (as defined in class) for the (bit-serial) transmission of OC-3, OC-12, OC-48, OC-192, and OC-768, which are the most popular SONET rates of the last and coming few years.

1.2   SONET, ATM, and UTOPIA Throughput

The 810 bytes in each SONET OC-1 frame are considered to be arranged in 9 "rows" of 90 columns each. Three (3) out of the 90 bytes in each row of the frame are overhead, (framing and many other bits), and the remaining 87 bytes per row contain (mostly) payload.

(a) Calculate the "payload throughput" of OC-12, OC-48, OC-192, and OC-768 in Mbits/s (how many millions of payload bits are carried per second). Compare and contrast this to the transmission rate that you calculated in exercise 1.2 above, which concerned all bits -payload and overhead (you calculated that rate in MHz, but it corresponded to an equal number of Mbps).

(b) Consider now a SONET link that carries ATM cells in the payload of its frames. Each ATM cell occupies 53 of the frame's payload bytes, and consists of a 5-byte (ATM) header plus 48 bytes of (ATM) payload. The ATM cells are packed, one immediately after the other, within the SONET frame payload; ATM cells are allowed to cross SONET frame boundaries --the SONET frame's payload size is not, in general, a multiple of 53. Calculate the "ATM payload throughput" of OC-12, OC-48, OC-192, and OC-768 in MBytes/s and in Mbps (how many MB or millions bits are carried in the payloads of the ATM cells per second). Compare and contrast this to your answer in (a).

(c) UTOPIA-1 is an 8-bit-wide parallel link for carrying OC-3 traffic; UTOPIA-2 is a 16-bit-wide parallel link for carrying OC-12 traffic. Besides the 8 or 16 "data" wires of a UTOPIA link, there are a couple of other, parallel "control" wires. Using the control wires, UTOPIA links have the capability to encode, among others, an "idle" state, which means "no valid word is being carried during the current clock cycle". Thus, a UTOPIA link may easily run (and often does run) at a rate that is quite higher than the actual data throughput being carried. This is done by running the UTOPIA link with a clock whose frequency is higher than the minimum frequency required for the link to carry the needed throughput; if the clock is, say, 20% faster than the minimum required, then the UTOPIA link will be idle during 20% of its clock cycles.

Calculate the minimum UTOPIA clock frequency required in the following cases: (c1) UTOPIA-1 carrying the entire contents (overhead and payload) of an OC-3 link (this is an imaginary situation); (c2) UTOPIA-1 carrying the payload but not the overhead of an OC-3 link (this is the usual situation); (c3) UTOPIA-2 carrying the entire contents of an OC-12 link; (c4) UTOPIA-2 carrying the payload only of an OC-12 link.

1.3   Gigabit Ethernet Throughput

A popular physical-layer technology for carrying Gigabit Ethernet is the "8B/10B encoding" (same as the encoding used in Fibre Channel) (even though capital, the B's in this name mean "bit" and not "byte"!). This scheme encodes each 8-bit byte (plus a few control symbols) using a 10-bit code word.

(a) The "useful user bit" rate of Gigabit Ethernet is 1 Gbps. This refers to unencoded user data. When Gigabit Ethernet is carried over an 8B/10B physical-layer, calculate the "coded bit" rate that will appear on the wire/fiber (i.e. how many bits per second of encoded data must be transmitted on the wire/fiber).

(b) Packets ("frames") carried over poin-to-point Gigabit Ethernet links must be separated from each other by a 12-byte (minimum) "interframe gap", and each packet must be preceeded by an 8-byte "preamble". The shortest Gigabit Ethernet packet has a size of 64 bytes. Calculate the maximum possible "packet throughput" of the above link, when carrying minimum-sized packets, in Mpps (million packets per second), MBytes/s, and Mbps (i.e. the throughput of (unencoded) bits inside packets only, not bits in interframe gaps and preambles.

(c) The longest Gigabit Ethernet packet has a size of 1518 bytes. Answer the same question as (b) for maximum-sized packets.

1.4   Synchronous DRAM (SDRAM) Throughput

Synchronous DRAM (SDRAM) chips have an interface that, after the initial delay of accessing the first bit(s) at a new (random) address, can supply additional consecutive bits at a very high rate (clock frequency). Assume in this exercise a rate of 200 Mbps per pin, corresponding to a clock frequency of 200 MHz in the simple case where no "DDR" (double-data-rate) signaling is used. Consider a memory system made of such SDRAM chips, that has a 64-bit-wide data bus.

(a) What would be the (theoretical) peak throughput of this memory system, in Gbps and in MBytes/s, if it could be supplying continuously consecutive bits and never access new (random) addresses?

(b) Assume that every access to a new location (address) costs 8 clock cycles (of the 200 MHz clock) for the first 64-bit word, plus 1 additional clock cycle for each additional consecutive 64-bit word. Calculate the memory throughput, in Gbps, in the following situations: (b1) continuous accesses to 64-bit words that are located at a different address each; (b2) continuous accesses to 64-byte blocks (i.e. blocks of 8 consecutive words each), where each block is located at a different address; (b3) continuous accesses to 256-byte blocks.


Up to the Home Page of CS-534
 
© copyright University of Crete, Greece.
Last updated: 20 Feb. 2006, by M. Katevenis.