Professional Documents
Culture Documents
7/26/2013
Properties
The ring is a single, shared medium, not point to point links in a loop. All nodes see all frames. A distributed algorithm determines when a node can transmit. Data always flows in one direction. Basic idea: A token circulates around the ring. When a host has a frame to transmit, it seizes the token and injects the frame on the medium. The frame is forwarded by intermediate nodes until arriving at the destination. The destination puts the frame back after receiving it, but with a special mark. The frame circulates back to the sender.
7/26/2013 CSCI 363 Computer Networks 3
Physical Properties
Question: What happens if a node on the ring fails?
Host Host Host Host
To next host
To next host
Relay (a)
Host
Relay (b)
As long as a node provides power to the relay, the relay stays open. When the node fails, the relay closes bypassing the node.
Multi-Station Access Unit: Several relays packaged together. Multiple MSAUs can be plugged together to make a larger network.
Typical token ring data rates go from 4 Mbps to 16 Mbps. Number of stations can be as high as 260.
CSCI 363 Computer Networks 4
7/26/2013
TX
data storage
RX
Each host holds part of the token (1 bit). A designated monitor host may hold more bits than others.
As the token circulates around the ring, a host needing to send data drains it off the ring. Each TXed frame contains the receivers address. Frames are not removed from the ring: they flow through the NIC and the receiver copies it into a buffer. When the frame gets back to where it started, the sender drains it off the ring. Question: How long should a host hold the token?
7/26/2013 CSCI 363 Computer Networks 5
MAC Performance
Token holding time (THT): How long a node is allowed to hold the token (indirectly, how much data a node can transmit). Token rotation time (TRT): The amount of time a token takes to traverse the ring. Ring latency: Time for the token to circulate around the whole ring when no host has data to send.
a Fr m e
Token
Token
Fra m
(a)
(b)
Delayed release: token goes back after frame has gone around and been removed.
Network Adaptors
7/26/2013
Basic Features
CPU
CPU Memory
Cache
Network adaptor
(To network)
Adaptor
I/O bus Memory
No carrier, missed incoming packet, interrupt enable, received packet interrupt, transmitter packet interrupt, memory error, no carrier, initialization done, RX on, TX on, start, stop, initialize.
7/26/2013
Organization of a frame and the several protocol headers it contains in addition to a messages data
Scatter-read: separate incoming frames are put in separate buffers, but a single frame may be scattered across multiple buffers.
Gather-write: an outgoing frame is built piece-by-piece by each protocol layer attaching its header/trailer.
7/26/2013 CSCI 363 Computer Networks 10
Why do we write device drivers? What is the relationship between hardware and device driver? What is the relationship between operating system and device driver?
CPU
Crossbar
Discussion: What can you say about the performance of the combined computer system and networking hardware?
7/26/2013
11