The Medium Access Control Sublayer. Chapter 4. M/M/1 System. λ: mean arrival rate (frames/sec) 1/μ: mean frame length (bits/frame) C: data transmission rate, channel capacity (bits/sec) traffic intensity ρ= λ/μC mean customer number N= ρ/1- ρ mean time delay T=N/ λ =1/(μC- λ)
Une image / un lien ci-dessous est fourni (tel quel) pour télécharger la présentation
Politique de téléchargement : le contenu du site vous est fourni TEL QUEL pour votre information et votre usage personnel ; il ne peut être vendu, concédé sous licence ni partagé sur d’autres sites sans l’accord de son auteur.Le contenu vous est fourni TEL QUEL, pour votre information et votre usage personnel uniquement.Téléchargez la présentation en cliquant sur ce lien.Lors du téléchargement, si vous ne parvenez pas à télécharger une présentation, l’éditeur a peut-être supprimé le fichier de son serveur.Pendant le téléchargement, si vous ne parvenez pas à obtenir une présentation, le fichier a peut-être été supprimé par l’éditeur.
M/M/1 System λ: mean arrival rate (frames/sec) 1/μ: mean frame length (bits/frame) C: data transmission rate, channel capacity (bits/sec) traffic intensity ρ= λ/μC mean customer number N= ρ/1- ρ mean time delay T=N/ λ =1/(μC- λ) mean queuing number Nq =N- ρ= ρ2/1- ρ mean queuing delay Tq= Nq/ λ= ρ/ (μC- λ)=T-1/μC
The Channel Allocation Problem • Static Channel Allocation in LANs and MANs • Dynamic Channel Allocation in LANs and MANs
Static Channel Allocation Divide the single channel into N independent subchannels, each channel capacity C/N mean arrival rate λ/N mean time delay Tsub= 1/(μ(C/N)- (λ/N))=NT
Round-robin Polling ... N N-1 2 1 R master • Procedure: the master station polls slave stations round-robin, from the near end to far end • Disadvantage: polling frames take too much bandwidth S
Transfer Polling ... N N-1 2 1 R master S • Procedure: the master station always polls the far end station firstly, which transfers controlling information to its neighbor after sending. • Advantage: only poll once in each round • Disadvantage: each slave station needs two input line
Pure ALOHA(p247) In pure ALOHA, frames are transmitted at completely arbitrary times.
Pure ALOHAmodel N N-1 2 1 Bus channel interface The model of ALOHA • Each station transmit frames arbitrary • If collision occurs, the sender waits a random time and sends it again
Pure ALOHAPerformance Analysis(2) Assumptions: fixed frame length, frametime is t new frames generated according to Poisson distribution new frames and retransmitting frames also accord to Poisson distribution frame interval accord to exponential distribution Parameters: throughput S: mean successful frames per frame time 0 S 1 network load G: mean frames per frame time G ≥ S probability P0: successful transmission S = G P0
Pure ALOHAPerformance Analysis(3) P0= P [ consecutive 2 arrival interval> T ] = P [ arrival interval>T ]2 function of probability density of exponential distribution: (t) = e -t, t: arrival interval,: arrival rate = G / T ∞ ∞ P [arrival interval> T ] = T(t) dt = T (G/ T) e-Gt / Tdt = e –G throughputS = G P0 = G e -2G maximum throughput occurs when G=0.5, S=1/2e ≈ 0.184
Slotted ALOHA (p249) t1 A2 A3 A1 A2 station A 冲突 new frame t2 B3 B1 B2 B2 station B final effect A1 B1 B2 A2 A3 B3 Principle: divide time into discrete intervals, each interval corresponding to one frame, so each user must know slot boundaries (synchronization)
Slotted ALOHAPerformance Analysis next last Tx T P0= P [last interval> (T-Tx) ] * P [next interval>Tx] ∞ ∞ = T-Tx(t) dt*Tx(t) dt ∞ ∞ = T-Tx(G/ T) e-Gt / Tdt * Tx(G/ T) e-Gt / Tdt = e –G throughputS = G P0 = G e -G maximum throughput occurs when G=1, S=1/e ≈ 0.368 P[idle]=P[interval>T] ∞ = T (t) dt = e –G
Expected number of transmissions Pure ALOHA: P0=e-2G Pk=e-2G(1-e-2G)k-1 E= kPk=e2G Slotted ALOHA: P0=e-G Pk=e-G(1-e-G)k-1 E= kPk=eG
CSMA protocols • Station listens for a carrier before sending • Classification: • 1-persistent CSMA if the channel is busy, waits until it becomes idle, then transmits frame immediately, if a collision occurs, waits for a random amount of time and start all over again. • Nonpersistent CSMA if the channel is busy, waits for a random amount of time and sense channel again • P-persistent CSMA (slotted channel) if the channel is busy, waits to the next slot, if idle, transmits frame with probability of p, with a probability of 1-p it defers to the next slot
CSMA Comparison Station A Station B A 监听到信道空闲 发送 B监听到信道空闲,发送 为A、B之间的传播时延 • 1-persistent CSMA: high throughput and low delay when low load; low throughput when high load • Nonpersistent CSMA: high throughput when high load
CSMA with Collision Detection • Principle: station aborts the transmission as soon as it detects a collision, it saves time and bandwidth • 1-persistent CSMA/CD: when a station sense the channel idle, send immediately and keep on sensing, when collision occur, abort transmission immediately • Jamming signal: when sensing collision, keep on sending several bits jamming signal to intensify the collision
CSMA/CD channel state CSMA/CD can be in one of three states: contention, transmission, or idle.
CSMA/CDcontention period Station A 站B TB B sense idle 2 B sense collision A sense collision 2 2 contention period =
Collision-Free Protocolsbit-map protocol Principle: each contention period consists of N slots (bits), with each station use one slot, if station have frames to send, it reserve it by fill ‘1’ in its slot, so it is called reservation protocols The basic bit-map protocol.
Bit-map protocolperformance reservation slots 0 1 2 3 4 5 6 7 0 1 2 3 4 5 6 7 1 1 • Measure time in units of the contention bit slot • N station, contention time is N, One data frame is d bits long, so time is d • When low load, low-numbered station will wait N/2+N slots to transmit, while high-numbered station will wait N/2 slots to transmit, so the mean for all stations is N slots efficiency=d/N+d • When high load, all stations have frames to send, so the N bits contention period prorated over N frames, yielding an 1 bit overhead per frame efficiency=d/d+1 station 1 get one frame station 7 get one frame
Collision-Free Protocols binary countdown protocol • Principle: each station wanting to use the channel broadcast its address as a binary bit string. The bits in each address position from different stations are BOOLEAN ORed together efficiency=d/(d+lnN) • Disadvantage: high-numbered station always gets high priority to send • Variation: set the lowest priority to the station which send successfully in the last contention
Limited-Contention Protocols • Summary: In rating protocols, we use two performance measures, delay at low load and channel efficiency at high load • Contention protocols give low delay at low load, while collision-free protocols give high efficiency at high load • Limited-contention protocols • use contention at low load, use a collision-free technique at high load • divide stations into groups, each station contends the group’s slot • Assign stations to groups dynamically, with many stations per group when low load and few station per group when high load
Adaptive Tree Walk Protocol • Algorithm • take N blood samples mixed • if no antibodies, all are healthy • else prepare two new samples 1 through N/2 the rest repeat the steps recursively until infected found • Analysis – depth search first • build a binary tree with stations as the leaves • all stations contend slot 0 • if no collision, ok • else only stations falling under node 2 compete slot 1 • ...
WLAN Protocols • configuration In an office building, many base stations are wired together using copper or fiber which cover only several meters range • Interference When a receiver is within range of two active transmitters, the resulting signal will be garbled CSMA can’t solve the problem totally, because CSMA merely tells whether there is activity around the station sensing the carrier while it really wants to known whether there is activity around the receiver • Hidden station problem • Exposed station problem
10BASE2 Thin coax • BNC T-junction BNC junction NIC Max. segment = 185m Stations per seg.=30
10BASET hub • Hub: A multi-port repeater • Hub provides a star connection physically, implements a bus topology logically • Devised to overcome problems of Ethernet tap connections, provides more reliable connections • Support 10Mbps or 100Mbps • Hub completely replaces repeater • Configuration limitation - up to 3 hubs in a segment Max. seg.= 100m One Collision Domain
Ethernet Cabling (2) Three kinds of Ethernet cabling. (a) 10Base5, (b) 10Base2, (c) 10Base-T.