







Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
A final exam for the Mobile Networking course, part II of the course “Re´seaux et mobilite´” taught by Prof. J.-P.Hubaux. The exam consists of 13 pages and covers topics such as WLANs and ad hoc networks. The exam includes questions related to IEEE802.11, channel capacity sharing, packet exchange, packet drop rate, vulnerabilities of IEEE802.11, and throughput in ad hoc networks. The exam is in English or French and allows all documents.
Typology: Exams
1 / 13
This page cannot be seen from the preview
Don't miss anything!








Duration: 2 hours, all documents allowed
Please write your answers on these sheets, at the end of each question; use extra sheets if necessary (put your name on them)
You may write your answers in English or in French.
The total number of points (65) corresponding to the proposed questions is higher than the number of points (50) required to obtain the highest mark. Let p be the number of points you obtain; your final mark to this exam will be min(6, (1 + p/10)).
This document contains 13 pages.
Student First name: Last name:
(answers to the questions are shown in italic and blue)
1 WLANs (30 points)
Consider the following scenario:
S1 D S
S1 and S2 send CBR / UDP traffic to the common destination D, using IEEE 802.11 (DCF).
1.1.1 Scenario 1: Consider S1, S2 and D all within receive range of each other
a) When the basic scheme is used (no RTS/CTS):
Data
Data
ACK
SIFS
DIFS
S
D
S
DIFS Time Data Data
SIFS
ACK
bkf = rand(doubled CW)
Consider the following scenario:
2Mb/s MS1 MS
AP
S
10Mb/s
192.168.10.
192.168.12.
192.168.12.
192.168.10.
192.168.12.
where S0 is a station wire-connected to the access point (AP). MS1 and MS2 are wireless nodes associated to the AP, using IEEE 802.11 (DCF basic mode, i.e. no RTS/CTS). The cable capacity is 10 Mb/s, the total wireless channel capacity is 2 Mb/s. Note that all downlink flows share the same queue at the AP.
Scenario 1: Consider the channel to be clear (no noise). S0 sends 1 CBR/UDP flow to MS at 5 Mb/s, and 1 CBR/UDP flow to MS2 at 5 Mb/s. (Both flows go through the AP)
P(collision) = 0, i.e. no collisions, since only the AP is transmitting
Scenario 2: S0 sends 1 CBR/UDP flow to MS1 at 5 Mb/s, and 1 CBR/UDP flow to MS2 at 5 Mb/s, (both flows go through the AP). The channel between the AP and MS2 has a high error rate.
Scenario 3: The channel is clear, S0 sends TCP packets to MS1 only (via the AP).
S0 AP MS
IP[ TCP[data] ]
TCP[data]
Time
TCP−ACK IP[ ... ] MAC[ ... ] MAC−ACK
Legend
DIFS+backoff
DIFS+backoff
SIFS
MAC(IP(TCP−ACK))
MAC−ACK
SIFS
MAC(IP(...))
MAC−ACK
IP(TCP−ACK)
To give priority to ACKs, which must be transmitted before any new data packet.
To increase his share of the throughput, a cheater may use the following cheating methods in IEEE 802.11:
Questions:
2 Cellular Networks (15 points)
No. Because in GSM, which uses TDMA instead of CDMA, a handset cannot communicate with more than one base station at the same time.
Near/far effect is a problem specific to CDMA-based cellular networks. If there is more than one active user, the interference power with respect to a given user (reference user) at the base station is the transmitted power of other users (non-reference users) suppressed by a factor depending on the code used by the CDMA system. However, if some non-reference users are closer to the base station than the reference user, it is possible that the interference caused by these non-reference users (however suppressed) has more power than the reference user. As a result, the SIR of the reference user becomes too lower to allow correct reception. Control the transmission power of each user such that the received power at the base station is equal for all user is a solution.
3 N. Note that a larger Q implies a larger cluster size and less channels assigned to each cell.
- Use sectoring technique to further divide a cell into multiple sectors. This means that the usage of directional antennae and a sacrifice of trunk efficiency within a cell.
3 Ad hoc networks (20 points)
In static multi-hop ad hoc networks, the maximal throughput decreases approx. with
N , where N is the number of nodes in the network.
a) Explain precisely which throughput decreases at that rate.
The throughput that decreases at that rate is the throughput of the end-to-end traffic between randomly chosen sources and destinations.
b) Explain the intuition behind this throughput decrease. In an ad hoc network, nodes that are sufficiently distant can transmit concurrently. Therefore the total amount of data that can be simultaneously transmitted for one hop increases linearly with the total area of the ad hoc network. If node density is constant, this means that the total one-hop capacity is O(n), where n is the total number of nodes. However, as the network grows larger, the number of hops between each source and destination may also grow larger, depending on communication patterns. One might expect the average path length to grow with the spatial diameter of the network, equivalently the square root of the area, i.e., O(
n). With this assumption, the total end-to-end capacity is roughly O(n/
n), and the end-to-end throughput available to each node is O(1/
n).
c) Explain how each of the following situations influences throughput:
(i) The message sources and destinations are necessarily neighbors If the message sources and destinations are neighbors, all the communications are single-hop and the throughput is high.
(ii) The nodes send video traffic at a constant rate to randomly chosen destinations If destinations are chosen at random, the communications may be multi-hop, which decreases the end-to-end throughput. Furthermore, the video traffic assumes streaming, which induces more inter- ference, more collisions and therefore low end-to-end throughput.
(iii) The nodes communicate by occasionally sending messages (e.g., SMS) to randomly chosen destinations. As explained previously, multi-hop communications decrease end-to-end throughput. However, oc- casional traffic leads to less interference and collisions than in the previous case; the end-to-end throughput is therefore higher than for the previous case.
(iv) Nodes are mobile, but the application is not latency-sensitive. If the application is not latency-sensitive, this means that buffering and retransmissions are possible. Therefore, the throughput is expected to be high.
Today’s mainstream proposals for ad hoc network routing are DSR and AODV protocols.
a) Would it be efficient to make use of AODV or DSR protocols for routing in today’s Internet? If Yes, explain how. If No, explain why. No. Indeed, the Internet is a wired network where the majority of the nodes are static and where the quantity of information exchanged is very important; a reactive routing protocol such as AODV and DSR is therefore not suitable for this kind of network.
b) Why is security important for routing? Describe one simple attack by which a single malicious node can disable all communication of its neighbors. If the routing protocol is not secure, an attacker can easily disrupt the communications in the ad hoc network. E.g., by sending forged routing packets, an attacker could route all packets for some destination to itself and then discard them. This attack is called “Black hole attack”.
c) Consider an ad hoc network running a DSR protocol. If all nodes in the network share pairwise keys, and if all mutual communication between nodes is encrypted with the keys that they share (both packet headers and payload), does this make the network resistant to attacks? If yes, explain how. If no, describe the attacks that you believe can harm the network routing protocol operation. No. Indeed, even if all nodes in the network share pairwise keys, the “Black hole attack” described above is still possible.