Homework, sheet 9

Homework, sheet 9
June 27, 2013
Exercise 1. In order to compute the maximum efficiency of slotted ALOHA,
find p∗ ∈ [0, 1] that maximizes f (p) = N p(1 − p)N −1 for a given N ∈ N and
take the limit limN →∞ f (p∗ ).
Answer: We examine the extrema of f (p) by setting its derivative to zero
d
d
f (p) =
N p(1 − p)N −1 = −N (1 − p)N −2 (N p − 1)
dp
dp
1
d
f (p) = 0 ⇔ 1 − p = 0 ∨ N p − 1 = 0 ⇔ p = 1 ∨ p =
dp
N
and evaluating it at the borders of [0, 1]:
• p = 0 : f (0) = 0
• p = 1 : f (1) = 0
• p=
1
N
: f ( N1 ) = N N1 (1 −
1 N −1
N)
= (1 −
1 N −1
N)
Function f (p) has its maximum (1 − N1 )N −1 at p∗ =
maximum for N → ∞, we get
lim (1 −
N →∞
>0
1
N.
Taking the limit of this
1 N −1
1
)
= ≈ 0.3679.
N
e
Exercise 2. Consider the operation of a learning switch in the context of a
network in which nodes labeled A through F are star connected into an Ethernet
switch. Suppose that
1. B sends a frame to E,
2. E replies with a frame to B,
3. A sends a frame to B,
4. B replies with a frame to A.
The switch table is initially empty. Show the state of the switch table before
and after each of these events. For each of these events, identify the link(s) on
which the transmitted frame will be forwarded, and briefly justify your answers.
Answer:
1
throughput of 100 Mbps. Hence, if the three collision domains and the web server and
mail server send out data at their maximum possible rates of 100 Mbps each, a maximum
total aggregate throughput of 500 Mbps can be achieved among the 11 end systems.
Problem 25
All of the 11 end systems will lie in the same collision domain. In this case, the
maximum total aggregate throughput of 100 Mbps is possible among the 11 end sytems.
Problem 26
Action
B sends
frame to E
Switch Table State
a
E replies with a
frame to B
A sends
frame to B
a
B replies with
a frame to A
Link(s) packet is Explanation
forwarded to
Switch learns interface A, C, D, E, and F
Since switch table is
corresponding to MAC
empty, so switch
address of B
does not know the
interface
corresponding
to
MAC address of E
Switch learns interface B
Since switch already
corresponding to MAC
knows
interface
address of E
corresponding
to
MAC address of B
Switch
learns
the B
Since switch already
interface corresponding
knows the interface
to MAC address of A
corresponding
to
MAC address of B
Switch
table
state A
Since switch already
remains the same as
knows the interface
before
corresponding
to
MAC address of A
Problem3.27Suppose nodes A and B are on the same 10 Mbps broadcast chanExercise
nel,a) and
between
the two nodes is 245 bit times. Suppose
L ! 8 bits
Thethe
timepropagation
required to filldelay
is
A and B send Ethernet frames at the same time, the frames collide, and then
8
L
A and BL "choose
different
values of K in the CSMA/CD algorithm. Assuming
sec = m sec .
no other
128 !nodes
10 3 are16active, can the retransmission from A and B collide? For
our purposes, it suffices to work out the following example. Suppose A and B
b) For
delay is They both detect collisions at t = 245
L = 1,500, the
begin
transmission
atpacketization
t = 0 bit times.
bit times. Suppose KA = 0 and KB = 1. At what time does B schedule its
1500
retransmission?
At.75what
m sec = 93
m sec. time does A begin transmission? (Note: The nodes
16
must wait
for an idle channel after returning to Step 2 – see protocol.) At what
time does A’s signal reach B? Does B refrain from transmitting at its scheduled
time?
Answer: First, you need to know the inter frame space (IFS) for ethernet,
which is 96 bit times and the length of the jam signal which is a four to six
bytes pattern. Here, for this exercise, we assume a six byte JAM pattern which
consequently lasts for 48 bit times.
2
Problem 18
At t = 0 A transmits. At t = 576 , A would finish transmitting. In the worst case, B
begins transmitting at time t=324, which is the time right before the first bit of A’s frame
arrives at B. At time t=324+325=649 B 's first bit arrives at A . Because 649> 576, A
finishes transmitting before it detects that B has transmitted. So A incorrectly thinks that
its frame was successfully transmitted without a collision.
Problem 19
Time, t
0
245
293
293+245 = 538
538+96=634
Event
A and B begin transmission
A and B detect collision
A and B finish transmitting jam signal
B 's last bit arrives at A ; A detects an idle channel
A starts transmitting
293+512 = 805
B returns to Step2
B must sense idle channel for 96 bit times before it
transmits
A’s transmission reaches B
634+245=879
Because A 's retransmission reaches B before B 's scheduled retransmission time
(805+96), B refrains from transmitting while A retransmits. Thus A and B do not
collide. Thus the factor 512 appearing in the exponential backoff algorithm is sufficiently
large.
Problem 20
a) Let Y be a random variable denoting the number of slots until a success:
P(Y = m) = " (1 ! " ) m!1,
where ! is the probability of a success.
This is a geometric distribution, which has mean 1 / ! . The number of consecutive
wasted slots is X = Y ! 1 that
x = E[ X ] = E[Y ] " 1 =
1" !
!
" = Np(1 ! p) N !1
3