Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Introduction Multiple Access Protocols F IEEE 802 Standard F Bridges F Misc (brief)
F F
Computer Networks
Medium Access Sublayer
Introduction
F
F F
FDM
F F F F
Multiple Access
1___ C -
F F
Time delay T Capacity C bps Arrival rate frames/sec Frames mean 1/ bits Divide into N channels Each channel C/N bps
TDM is the same
T =
F F
T =
1____
Types
contention systems limited contention systems collision free systems
Pure ALOHA
F
Pure ALOHA
no time slots
Slotted ALHOA
time slots for frames
Low load (N 0), few collisions: G N High load, many collisions: G > N F Throughput per frame time is G times probability of frame having zero collisions:
F F
S = G P0
ex: G=.5, P0=.5 so S = .25
Frame Collisions
F
Slotted ALOHA
Divide time into intervals, one for each frame Stations agree upon time intervals
one can pip as time keeper, like a clock
Users transmit only at beginning of slot F Need one frame time to be empty, G generated
F
Throughput S = Ge -G
Best (G = 1):
37% empty 37% success 26% collisions
Raising G, reduces empties but increases collisions exponentially F Expected transmissions (includes original) E = eG
F F
1-persistent CSMA
detect, send at first chance wait if another sending longer delay, more collisions
non-persistent CSMA
if empty, send if not, less greedy, waits random time then repeats fewer collisions, longer delay
p-persistent CSMA
if empty, sends with probability p defers with probability q = 1 - p
Collision-Free Protocols
Collisions still occur in CSMA/CD More so when wire long (large ) F Short frames, too, since contention period becomes more significant F Want collision free protocols F Need to assume N stations have numbers 0 to (N-1) wired in
Bit-Map Protocol
Have N contention slots F Station N puts 1 in slot N-1, else 0
F F
Binary Countdown
F
4
4
When multiple transmit, OR together F When a station sees highorder 1 bit where it has a zero, it gives up
F
Contention better under low load. Why? Collision-free better under high load. Why? F Hybrid: limited contention protocols F Instead of symmetric contention, asymmetric F Divide into groups. Each group contents for same slot. F How to assign to slots?
1 per slot, then collision free (Binary Countdown) All in same slot, then contention (CSMA/CD)
F F
If q stations want to transmit, then q/2i below F Want number below to be 1 (no collisions)
F
q/2i = 1, i = log2q
Other Improvements
F
4 4
4 4
802.3 - Ethernet
Began as ALOHA, added carrier sense Xerox PARC built 3 Mbps version for workstations and called it Ethernet
old scientist dudes thought waves propagated through substance called ether, so a geeky joke
F
Ethernet Cabling
F
Cable Topologies
Encoding
0 volts for 0 and 5 volts for 1 can be misleading F Want start, middle and end of each bit without reference to external clock
F
Ethernet Protocol
Preamble: 10101010 to allow clock synch F Start of Frame: 10101011 F Source and Destination addr: 2 or 6 bytes
F
Frame must be > 2 F Otherwise, how to tell collision from short frame?
F
Collision Action?
If collision, then wait 0 or 1 slot F If another collision, then wait 0, 1, 2, 3 slots F If another collision, then wait 0 to 23-1 slots F After i collisions, wait 0 to 2i -1 slots
F F F
4 4
called binary exponential backoff why is this a good idea? Consider other options
F F
After 10 collisions, wait 0 to 1023 slots After 16 collisions, throw in the towel
Misc
Ethernet Performance
Mean frame transmission time, P sec F Probability that a frame transmits, A
F F
Channel Efficiency = ___P____ P + 2/A F The longer the cable, the longer the contention period
F
Longest path is 2.5km + 4 repeaters, 51.2 secs At 10 Mbps is 512 or 64 bytes, shortest frame 1 Gbps Ethernet is even longer! (or shorter cable)
Saturated LAN
F
Switched LANs
Switch with high-speed backplane with connected cards (typically, 1 Gbps) F When receives frame, sees if destined for another on same line, forwards as needed
F
If all input ports connected to Hubs, then have 802.3 to 802.3 bridge (later)
Physical line or tree, but logical ring. Stations know left and right stations. One token passed from station to station. Only station with token can transmit.
Token Bus
F
F F
Physical layer is not at all compatible with 802.3 F A very complicated standard
F
No length field Data can be much larger (timers prevent hogs) F Frame control
F F
Ex: 1 Mbps ring, with 1000 meter ring can have only 5 bits on it at once!
Listen Mode
Transmit Mode
Once bits go around, removed by sender F Regenerates token F Acknowledgement by adding bit
F
Light load
token circles station grabs, transmits, regenerates token
Heavy load
each station sends, regenerates next station grabs token round-robin nearly 100% efficiency
10
Ring Maintenance
Monitor station (unlike decentralize token bus)
does a claim_token upon initial ring power-up handles lost token, broken ring, cleaning ring (in case of garbage frame), orphan frame
F F
Access control has token bit Frame control has Arrive and Check bits
A=0, C=0 destination not present A=1, C=0 destination up, not accept frame A=1, C=1 destination up, frame copied
802.3 (Ethernet)
pros: popular, simple, reliable cons: non-deterministic, no priorities, min frame size
DQDB Overview
F F
Head End generates 53-byte cells, 44-byte data Cell has two bits for queue control information
busy - cell is occupied request - station wants to transmit
To send, station must know if destination is to left or right and use appropriate bus F Not a greedy algorithm defers to those downstream
F
11
De-Centralized Queue
F
De-Centralized Queue
RC = request counter
Review
F
What are:
802.3? 802.4? 802.5?
4 4 4
When does temporary token handoff occur in 802.4? F What is the min and max data payload in 802.3?
F
Bridges
F
Bridges
12
Frame length
802.3 has limit, 802.4 bigger, 802.5 none
Priority bits
802.4 and 802.5 have them, 802.3 not
F F
High-Speed LANs
802 LANS (and MANS) based on copper Fiber (mostly) for high bandwidth F FDDI F Fast Ethernet F HIPPI F Fibre Channel
F F
FDDI
F
13
Fast Ethernet
FDDI too complicated, didn become LAN t F Made 802.3 committee think tank
F
make Ethernet faster (winner, 802.3u) make new LAN, call Ethernet (802.12)
F
added switch
F
Simplex
two wire, duplex
Supercomputer connect
Fibre Channel
F
Review
Describe each of the following in terms of network layers
Repeater Hub Bridge Router
4 4
4
14