Data Link Question
Data Link Question
Utilization
So,
Note that as N increases there is less time wasted in propagating the token and utilization
increases. As a increases the utilization decreases.
II.
Q6. (8 points) 802.11 is fair always since it randomizes the timers before a station
attempts to access the medium, so that the previous winners do not dominate the channel
in the future, discuss this statement, whether it is true or not and when, illustrating your
point with ample examples.
A6. In general, randomization of the timer takes care of situations where a successful
node has several subsequent frames to send. However, the timers do not take care of
situations where a node needs to defer due to ongoing communications in its
neighborhood. An example would be a chain topology with A-B-C-D-E. If a transmission
starts between A and B, so C has to defer. Similarly, if a transmission starts between D
and E then C has to defer. In a scenario where A and B start, and before they end their
transmission D and E start, and before they end their transmission A and B start again
so on, so forth, then C would starve (not have the chance to send any packets), which
would results in 0 throughput for C leading to severe unfairness.
Different wording:
On one hand, the randomized timer setting does prevent previous winners (those that
were able to capture the channel and send their packets in the previous contention cycle)
from dominating the channel. However, this does not necessarily provide fairness in all
scenarios. One example of severe unfairness can occur in a scenario with 5 nodes in a
chain topology (say A-B-C-D-E) where As neighborhood contains B, Bs neighborhood
contains A and C, Cs neighborhood contains B and D, Ds neighborhood contains C and
E, and Es neighborhood contains D. In case B sends to A, then C needs to back off (i.e.,
enter defer mode/state) unless the transmission is over. At the same time, in case D
sends to E, then C needs to defer as well. A synchronized action in which B sends to A
and before the transmission ends D sends to E, so on and so forth. This causes C to be
denied access to the channel repeatedly, and unfairly.
Q7. (8 points: 4 x 2)
I. What is rate adaptation in wireless MAC protocols? Why is it used, and how
does it help the performance of wireless networks?
II. Discuss possible effects on upper layer protocols (such as TCP and real time
applications)?
A7.
I. Rate adaptation in wireless MAC (e.g., 802.11) changes the encoding scheme to
reduce the sending data rate when the signal to noise ratio SNR (or the signal
power) decreases to a level at which BER is high (~10% or more). This could
occur due to increased interference from the nearby environment or due to the
increased distance from the base station (or the other node involved in the
communication). By decreasing the data rate, the SNR is increased and the BER
is decreased to acceptable levels. This effectively increases the usability (in terms
of distance and operational range) of the wireless network.
II. Decreasing the data rate (sometimes by orders of magnitude; e.g., from
100Mbps to 1Mbps) would increase the delay dramatically for the wireless links.
TCP relies on RTT estimates to detect congestion and set its retransmission
timers. Having huge fluctuations in the RTT estimates (due to the rate adaptation
of wireless links) can degrade the performance of TCP.
Q8. (15 points) Mention five advantages to using CDMA (or DSSS).
A8.
1- Resilience to fading and interference since the signal is spread in the frequency
domain over a large spectrum (interference usually affects part of the spectrum
and hence only a part of the spread signal)
2- Security: only the intended recipient (that has the right seed for the pseudo noise
(PN) sequence) is able to decipher/decode the message, the other recipients will
not be able to receive it and it would look like noise to them
3- No frequency planning since the users use the same frequency
4- Soft handoff can simplify the process of hand off during mobility
5- The number of users supported is no longer limited to the available spectrum,
since the separation between users occurs in the code (not the frequency or time)
domain. Typically a CDMA system can support 3-5 times the users in a TDMA
system. The max capacity is actually limited by the noise floor (since to a user all
the signals not destined to it would result in noise).
Q9. (24 points: 3 + 9 + 6 + 6) TCP over ATM:
I. What is the main observation (or problem) you can identify regarding transfer of
TCP segments and IP datagrams over ATM networks?
II. Suggest and compare three different schemes that attempt to alleviate the above
problem. Mention the advantages and disadvantages of each.
III. What are the features in ATM AAL5 that allow efficient transfer of TCP over
ATM? Mention 2 main features and explain how they can be used to increase the
efficiency (define what you mean by efficiency).
IV. What would happen if those two features were not supported?
A9. I. -observation: when ATM cell is dropped, all other ATM cells that belong to the
same IP datagram are useless
II. -solution: develop discard strategy to minimize transmission of useless cells
(1) Partial Packet Discard (PPD):
-when a cell is dropped at a switch, all cells belonging to the same datagram are dropped
-switch identifies the end of IP datagram using type-bit in ATM header in AAL 5
-on average: datagram worth of ATM cells are transmitted uselessly
(2) Early Packet Discard (EPD):
-when buffer exceeds a threshold, drop complete IP datragrams
-problem of fairness: the shorter the datagram, the higher the probability of drop
(3) add fairness using fair buffer allocation (FBA):
- when EPD is invoked drop from connections using more than their fair share
-the number of VC connections is V
-if N is the current occupancy, then the fair share is N/V
-the weight w(i)=N(i)/[N/V], where N(i) is occupancy of connection I
-policy to drop: if (N>R) and w(i)>z then drop, where R is the congestion threshold and
z~1
III. The features: 1. The type bit is set to 1 in the very last cell that belongs to a
datagram. This helps delimit the datagrams at the ATM layer.
2. The virtual channels (VCs) are not multiplexed, so that every VC at the ATM layer
corresponds to a flow at the IP layer. This ensures that consecutive ATM cells belong to
the same IP flow.
Both of these features are necessary to allow the packet discard mechanisms (discussed in
Q8) to work effectively.
IV. if those features are not supported, then ATM will not be able to identify the
beginning and end of each datagram and the packet discard mechanisms would not work
effectively. Hence, the efficiency of the ATM cloud would decrease.
Q10. (16 points: 4 + 6 + 6)
I. What are the main problems that Mobile IP is attempting to solve and how does it
solve it?
II. What are the problems with Mobile IP?
III. Suggest two different ways to overcome the shortcomings of Mobile IP by
discussing other mobility management solutions
A10.
I. Mobile IP strives to provide (1) transparency of connection while providing the
ability to move for mobile nodes. This means that the nodes communicating with a
mobile host do not know its current location, nonetheless they are able to establish
continuous communication with it.
(2) maintaining established connections (such as TCP) during mobility.
Mobile IP provides this transparency by having the correspondent node (CN) send
packets to the home network, then the home agent (HA) would tunnel these packets to the
mobile node. The home agent knows the (new) address of the mobile node through
registration process that occurs through the foreign agent (FA) (in the foreign network).
II. The main drawbacks of basic Mobile IP are: (. 3 drawbacks are sufficient)
1. Triangle routing 2. Delay (or packet loss) during handoff 3. Communication overhead
during handoff 4. Not fit for micro mobility
III. Two suggestion to deal with the triangular routing problem are:
route optimization: the mobile node sends its new address to the correspondent host
so that further packets are sent directly to the mobile node without going to the home
agent. [or the home agent sends this new address to the correspondent host]
multicast-based mobility: have the mobile node use a multicast address (which is
independent of location), and whenever it moves to a new network it joins that
multicast group through the new network and leaves it through the old network. The
correspondent node always sends to the group.
Extra:
The advantage of both the above proposals is that they avoid triangular routing. In the
multicast-based mobility approach, there is no need for home agent or foreign agent, and
the handoff is theoretically simpler and faster than other approaches.
Disadvantages:
Route optimization: may incur handoff problems as does Mobile IP. Needs the
correspondent node to change address of the mobile host on the fly for the same
connection (like TCP connections).
Multicast-based mobility: needs to assign a multicast address for each mobile node.
Connection needs to be established with a multicast address, which may cause a problem
for come applications (like TCP).
Q11. (10 points: 3 + 3 + 4)
I. What is the spectral congestion problem is mobile networks?
II. How did cellular networks overcome such a problem?
III. What are the main problems created by the solution in II. above? [mention two
main problems at least]
A11. (more details are given in the lecture)
I.
Spectral congestion: Limited spectrum to provide communications, which
limits the number of channels and subsequently the number of users. The
contention of users for the limited channels/spectrum causes the spectral
congestion
II.
Instead of using a single powerful tower to cover a large area with a limited
number of channels, smaller towers are used with limited geographic
coverage. This allows for re-use of the spectrum in disjoint geographic areas,
and hence the support of more number of users over a larger geographic
extent.
III.
The two main problems include: 1- handoff: since the extent of every cell is
smaller than before, then the number of transitions between them through a
trip (e.g., using a vehicle) will increase, which would require frequency
handoff between the cells, and 2- frequency planning to combat interference
(both adjacent channel and co-channel intereferences) more details given in
the lecture.