Test 2 Flashcards

1
Q

What is the Sliding Window Algorithm: Sender- Variables

A

Variables:
send window size (SWS) : the upper bound on the no. of un-ACK frames the sender can trans
- last ACK received (LAR) :
- last frame sent (LFS) :
- expiry timer : one for each frame sent, starts decr-ing when sender trans
- Relationship between variables : LFS - LAR <= SWS

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is the Sliding Window Algorithm: Sender-Process

A

Process:

  1. Sender assigns a sequence number (seqNum) to each frame
  2. When an ACK arrives, sender incr LAR. Sender can now send another frame
  3. If a frame expiry timer expires, sender retrans frame and re-starts timer
    • requires buffer size of (frame_size x SWS)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

To prevent To prevent network congestion and not to over-run the receiver, there can be
at most how many outstanding messages, for Sliding window?

A

SWS (Sender Window Size)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is the Sliding Window Algorithm: Receiver- Variables

A

Receiver keeps the following vars:

  • receive window size (RWS) : the upper bound on the no. of out-of-order frames the receiver is willing to accept
  • largest acceptable frame (LAF) :
  • last frame received (LFR) :
  • Relationship between variables : LAW - LFR <= RWS
  • seqNumToACK : the largest seq no. not yet ACK by receiver (aka ALL frames <= this have been received and ACK)… when sent by receiver, the receiver is ACK the receipt of all frames up to that seq num… this is a cumulative acknowledgement
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is the Sliding Window Algorithm: Receiver-Process

A
  1. When receiver gets a frame and seqNum <= LFR or seqNum > LAF [aka frame is outside the receiver’s window], the receiver will discard the frame
  2. When receiver gets a frame and LFR < seqNum <= LAF [aka the frame is within window], frame is accepted.
  3. After a frame is accepted, receiver will send a seqNumToACK in an cumACK to sender. Then sets LFR = seqNumToACK and LAF = (LFR + RWS)
    • actually, this step may be skipped sometimes
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Sliding Window: When timing out, should the sender retransmit everything from LAR+1 up
to LFS, or just retransmit LAR+1?

A

Both things will work, however, the general consensus is just to retransmit LAR+1 if RWS =
SWS.
If RWS = 1, then you might as well retransmit everything from LAR+1
up to LFS.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q
Sliding Window (cumulative ack)-- Sender Event : if LFS < LAR + SWS
What is the response?
A
resp: LFS := LFS + 1;
send frame(LFS) to receiver
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q
Sliding Window (cumulative ack)- Sender Event: receive ack(i) from receiver
What is the response?
A

resp: LAR := max(LAR, i)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q
Sliding Window (cumulative ack)-- Sender Event: if LAR < LFS
What is the response?
A

resp: send frame(LAR + 1) to receiver

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q
Sliding Window (cumulative ack)-- Receiver Event:  receive frame(j) from sender
What is the response?
A
if j < NFE 
      then  akn := true {old message}
elseif j ≥ NFE + RWS 
      then  skip {no buffer space}
elseif NFE ≤ j < NFE + RWS 
  then rcvd[j mod RWS] := true; {place data in buffer}
while rcvd[NFE mod RWS] do
     {deliver frame(NFE) }
     rcvd[NFE mod RWS] := false;
     NFE := NFE + 1;
     akn := true
 end while
end if
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Cumulative acknowledgment with small sequence number and message reorder in the Sliding Window protocol:

A

Does not work.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Individual Acknowledgment with small sequence number and message reorder in the Sliding Window Protocol:

A

Does Work.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

In Cumulative Acknowledgement, at all times:

A

within(LAR+r1, NFE, LFS+r1) AND within(LAR, LFS, LAR+rSWS)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

For Cumulative Acknowledgement w/ bounded seq Nos.,

to prevent confusion at the receiver:

A

r >= SWS + RWS

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

ALOHA: Maximum Propagation Time equation:

A

Tp = (maxDistanceBetweenStations)/(SignalPropagationSpeed)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

ALOHA: Back-off time equation:

A

TB = (ARandomNumber:R)x Tp
or
R x Tfr(Average transmission time for a frame).

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

ALOHA: Average Frame Transmission Tim Equation:

A

NumOfBitsperFrame/kbps of the channel.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q

ALOHA: Throughput for Pure ALOHA

A
S = G x e^(-2G)
G = the average number of frames generated during an interval of size Tfrs
19
Q

ALOHA: Throughput for slotted ALOHA

A
S = G x e^(-G)
G = the average number of frames generated during an interval of size Tfrs
20
Q

Ethernet: What does a repeater do?

A

Amplifies digital signals.

21
Q

Ethernet: How many repeaters are allowed between nodes?

A

4

22
Q

Ethernet: What is the maximum number of nodes per ethernet?

A

1024

23
Q

In Ethernet, why can you almost immediately detect a collision?

A

Because the channel is being listened to while transmitting.

24
Q

IEEE 802.11 Addressing: 1. ToDS = FromDS = 0

A

No APs are involved
A1 = DA
A2 = SA

25
Q

IEEE 802.11 Addressing:
2.
ToDS = 1
FromDS = 0

A

from the station to its AP
A1 = R-APA
A2 = SA
A3 = DA

26
Q

IEEE 802.11 Addressing:
3.
ToDS = 1
FromDS = 1

A
from one AP to another, in case AP’s are connected also via wireless
A1 = R-APA
A2 = T-APA
A3 = DS
A4 = SA
27
Q

IEEE 802.11 Addressing:
4.
ToDS = 0
FromDS = 1

A
from the AP to one of its stations
A1 = DA
A2 = T-APA
A3 = SA
A4 =
28
Q

IEEE 802.11: Frequency Hopping Spread Spectrum

A

Transmit of a random sequence of frequencies, hopping from on frequency to another I a random way.
Synchrony is maintained because send and receiver know a pseudorandom number generator and Speed.
First 802.11 standard used 79 1MHz-wide frequency bands.

29
Q

IEEE 802.11: Direct Sequence Spread Spectrum (DSSS)

A

For each bit, send XOR of that bit and n random bits(n-bit chipping code). 802.11 defined an 11-bit chipping code.

30
Q

IEEE 802.11: Direct Sequence Spread Spectrum (DSSS)

For 1Mbps data rate:

A

Ouput: 11 Mbaud/sec
Modulation - 2 phases BPSK, 11Mbits/sec (physical bits)
11 chips/bit - output 1 Mbit/sec (data bits).

31
Q

IEEE 802.11: Direct Sequence Spread Spectrum (DSSS)

For 2 Mbps data rate:

A

Ouput: 11 Mbaud/sec
Modulation - 4 phases, QPSK, 2 bits/baud. i.e. 22 Mbits/sec(physical)
11 chips/bit - output is thus 2 Mbits/sec(data)

32
Q

Common Switching Methods:

A

Datagram
Source Routing
Virtual Circuits

33
Q

Datagram Switching Facts

A

Also known as connectionless model
no connection setup phase.
Switches maintain forwarding/routing tables.
Uses routing protocols to learn routing tables.
Fault tolerant against line/node failures

34
Q

Source Routing Facts

A

Sources provide info for switching at every switch.
Disadvantages:
The source needs to know the network topology
headers can be very long.

35
Q

Virtual Circuit Switching

A

Connection-oriented Model
Explicit connection setup/tear-down phase
Packets follow the same route as setup message.
Switches maintain a table of:
VC in use?
Output port
Output VCID

36
Q

Is there a way to determine which connection a datagram belongs to?

A

NO

37
Q

Which type of switching is it easier to guarantee throughput to each connection, VC or datagram

A

VC. Serve each VC on an output line using round-robin.

38
Q

In Datagram Switching, is there a mechanism to inform the switch o the QoS desired.

A

NO.

39
Q

IEEE 802.11: What is the basic idea behind Spread Spectrum and what are the general methods.

A

spread signal over wider frequency band than required
originally designed to thwart jamming (now used to minimize interference from other devices)
Two general methods:
Frequency Hopping
Direct Sequence

40
Q

Why is the Spanning Tree Algorithm implemented in Extended LANS

A

To prevent loops in the network.

41
Q

Ethernet Switching uses what kind of routing?

A

Datagram Switching.

42
Q

Why is the Spanning Tree Algorithm implemented in Extended LANs?

A

To prevent loops in the network.

43
Q

Ethernet Switching uses what kind of routing?

A

Datagram Switching.

44
Q

How are Designated Bridges(DB) selected in the Spanning Tree Algorithm?

A

The bridge that is the closest to the root. In case of tie, smallest ID bridge wins.