Docsity

CS 515 Mobile and Wireless Networking, Lecture notes of Computer Networks

Toggle sidebar
bg1
CS 515 - Mobile and Wireless Networking, Final Exam
1
Bilkent University
Computer Engineering Department
CS 515
Mobile and Wireless Networking
Final Exam Solutions
Fall 2002-2003
Date: January 10, 2003, Friday
Duration: 120 minutes
Name of the Student
ID of the Student
1 –(30)
2 – (10)
3 – (18)
4 – (5)
5 – (4)
6 – (4)
7 – (8)
8 – (8)
9 – (8)
10- (5)
Please try to write as clean as possible!
No partial credits will be given for any of the questions!
Good Luck!
GRADE
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe

Partial preview of the text

Download CS 515 Mobile and Wireless Networking and more Lecture notes Computer Networks in PDF only on Docsity!

Bilkent University

Computer Engineering Department

CS 515

Mobile and Wireless Networking

Final Exam Solutions

Fall 2002-

Date: January 10, 2003, Friday

Duration: 120 minutes

Name of the Student

ID of the Student

Please try to write as clean as possible! No partial credits will be given for any of the questions!

Good Luck!

GRADE

Question 1 (30 points):

Put a tick under T (True) or F (False) for each of the statements below. A correct answer will get +1^ points, a wrong answer will get -1^ points (.i.e a wrong answer will cancel a correct answer). Hence, there is a chance of getting a negative total grade for this question if you mark without knowing the answers.

Statement T F

1 In Cellular IP, routers in a campus are not aware of mobility.^ x

2 We need a null-modem RS232C serial cable between a DTE device and DCE device.

x

RS232C serial communication provides full-duplex communication since we have both a transmit line and a receive line in an RS232C serial cable.

x

4 PPP MTU is always fixed and it is 1520 bytes.^ x

5 In Mobile IP, routers are not aware of mobility unless they implement home or foreign agent functionality.

x

RS232C can provide asynchronous transmission so that the time interval between any two consecutive bytes that are transmitted over the cable is not constant.

x

7 DHCP can provide portability but not seamless mobility.^ x

8 In cellular IP, the exact location of the mobile is always known at the gateway.

x

Cellular IP is a mobility solution for cellular networks that support data traffic, such as GPRS and EDGE.

X

In Mobile IP, the period of agent advertisements affect the handoff latency.

x

In base Mobile IP protocol, a mobile host that is changing point of attachment to a new foreign agent network does not have to register with home agent if it is not currently actively communicating.

x

12 In Mobile IP, an agent advertisement is a UDP packet that is broadcasted on the connected link.

X

A colocated care-of-address can be obtained by a dynamic IP address assignment mechanism such as PPP or DHCP.

X

Minimal encapsulation causes smaller encapsulated IP packets compared to IP-in-IP encapsulation.

X

Triangular routing caused by base Mobile IP protocol can be eliminated by use of binding caches at the correspondent hosts. But this requires software modifications in correspondent hosts.

X

Question 2 (10 points):

Assume that a mobile host MH is registered in Bilkent University campus network and obtained a permanent home address of 139.179.10.43. The mobile host moves to a new location in METU and obtains a new IP address (144.122.35.11) there automatically using DHCP. This new IP address will be used as the collocated care-of-address for the MH during its stay in METU. MH supports Mobile IP protocol and hence runs the mobile agent and foreign agent functionality together (this means it will be the start/end of tunnels). Both Bilkent and METU campuses are supporting Mobile IP as well.

Now, lets assume MH wants to send some data to a correspondent host CH (193.140.32.9) in Hacettepe University. The egress METU router R3 does source address filtering and drops any IP packet that is going to outside of METU and that has a source IP address field set to an IP address that is not from METU IP address pool. In this case, all IP packets sent directly from MH to CH will be dropped at the METU router since MH will have its home address, which is an IP address from Bilkent University address pool, as the source IP address in the packets.

A solution to this problem is to encapsulate^ all the IP packets that are originating from mobile host MH at MH using IP-in-IP encapsulation and then tunnel them to the home agent which in turn will forward them towards the correspondent host CH.

Assume this solution is applied. Answer the following questions:

Bilkent router

Hacettepe Router

IP source filtering applied in this router

R

HA

MH

CH

INTERNET

home IP address colocated care-of-address

Home agent IP address

Corresspondent Host IP address

METU router

MH

R

R

a) (1) For a packet that is traveling from MH towards HA, how many IP headers will present in the packet if you analyze the packet completely?

Two headers.

b) (4) Depending on your answer in a), provide the source IP address and destination IP address in each of the IP headers that will present in the packet (start from outer- most header if there are more than one headers).

i. src IP address:__144.122.35.11__________________

dst IP address:__139.179.10.27__________________

ii. src IP address:__139.179.10.43__________________

dst IP address:__193.140.32.9___________________

iii. src IP address:_______________________________

dst IP address:_______________________________

(fill as many as necessary depending on your answer in a))

c) (1) For a packet that is traveling from HA to CH, how many IP headers will present in the packet if you analyze the packet completely?

One header

d) (4) Depending on your answer in c), provide the source IP address and destination IP address in each of the IP headers that will present in the packet (start from outer- most header if there are more than one headers).

i. src IP address:___ 139.179.10.43__________________________

dst IP address:____193.140.32.9__________________________

ii. src IP address:_______________________________

dst IP address:_______________________________

iii. src IP address:_______________________________

dst IP address:_______________________________

(fill as many as necessary depending on your answer in c))

Answer the following questions:

a) (2) How many messages per second are generated as agent advertisements messages?

There are a total of 15 links connected to 10 FAs. In each link, 5 messages per second are generated. 15x5 = 75 messages/second.

b) (2) What is size of the smallest agent advertisement message (including ethernet header)? The smalllest message will contain 1 IP address (4 bytes). 14+20+8+8+4 = 54 bytes.

c) (2) What is size of the largest agent advertisement message (including ethernet header)? The largest message will contain 4 IP addresses (16 bytes). 14+20+8+8+16 = 66 bytes.

d) (4) What is the total advertisement message traffic in the campus network? Express your answer in units of bytes/second. (Note: you should include also the ethernet header bytes in your count). Messages containing 1 IP address (each 54 bytes): 3x5 = 15 messages/second. 54 x 15 = 810 bytes/second. Messages containing 2 IP address (each 58 bytes): 5x5 = 25 messages/second. 58x25 = 1450 bytes/second. Messages containing 3 IP address (each 62 bytes): 5x5 = 25 messages/second. 62x25 = 1550 bytes/second. Messages containing 4 IP address (each 66 bytes): 2x5 = 10 messages/second. 66x10 = 660 bytes/second. Total = 810+1450+1550+660 = 4470 bytes/second.

e) (2) What is the percentage of advertisement traffic to network capacity? There are 15 links in the network in the figure. 15x10 Mbps =150 Mbps. Percentage = (4470x8 / 150,000,000) x 100 = 0.2384 %

f) (6) Assume a mobile host MH is initially connected to foreign agent FA5. Then it starts traveling and gets connected to the following foreign agents in order: FA9, FA10, FA7, FA8. That means a total of four handoffs occur. Assume a registration packet (no matter how big it is) travels a link between two agents or a link between the mobile and an agent in 1 ms (one way). Assume node and processing delays are zero. Assume agent advertisements are received immediately upon each handoff without any delay.

Compute the approximate handoff latencies for the following handoffs:

i. Handoff from FA5 to FA9: 6 ms. (path = MH-FA9-FA6-FA2-FA6-FA9-MH)

ii. Handoff from FA9 to FA10: 4 ms.

iii. Handoff from FA10 to FA7: 6 ms.

iv. Handoff from FA7 to FA8: 4 ms.

Question 4 (5 points):

Given the following input byte sequence (in hex): 4f 7d 34 1a 7e 7d 00 01 0a 7e 2b 4c

a) (3) Provide the output after byte stuffing algorithm for PPP is applied to the sequence.

Output sequence = 4f 7d 5d 34 1a 7d 5e 7d 5d 00 01 0a 7d 5e 2b 4c

b) (2) Compute the percentage increase in the original sequence length.

New sequence is 16 bytes. Percent increase = (16-12/12) * 100 = 33%

Question 5 (4 points) :

GSM is using 890-915 MHz spectrum band for reverse channels and 935-960MHz spectrum band for forward channels. GSM also uses 100 KHz guard band at the beginning and at the end of each spectrum band (i.e., 200 KHz guard band per simplex spectrum band). GSM radio channels are using 200 KHz channel bandwith. How many total duplex channels can be supported in GSM to carry data/control traffic?

915-890 = 25MHz. Number od duplex channels = (25,000 – 200) / 200 = 124

Question 6 (4 points) :

Bluetooth radio channel for a piconet is a frequency hopping channel with hop rate of 1600 hops/second (it hops through 79 different carrier frequencies). Bluetooth can support 1Mbps maximum data-rate over this piconet radio channel. What is the maximum number of bits that can be transmitted without changing carrier frequency in a Bluetooth piconet radio channel.

1x 6 bps (1 /1600 second/hop) = 625 bits.

Ethernet Header

IP Header (first 12 bytes)

IP src address? 139.179.21.

IP dst address? 139.179.20. UDP Header

Tunnel Header

PPP Header

IP Header (first 12 bytes)

IP src address? 139.179.30.

IP dst address? 139.179.31. PPP CRC

IP Header

IP Header

Ethernet Header

IP Header (first 12 bytes)

IP src address? 139.179.20. IP dst address? 139.179.22. UDP Header

Tunnel Header

PPP Header

IP Header (first 12 bytes)

IP src address? 139.179.30. IP dst address? 139.179.31. PPP CRC

IP Header

IP Header

a) b)

Question 8 (8 points) :

BlueSky mobility and Mobile IP can be used together as shown in the figure below. BlueSky mobiliy can be used for micro-mobility around a backend server (BS), while changing from one access point to an other one. Mobile IP can be used for macro-mobility for roaming between backend servers (BSs), while changing from one backend server to an other one.

In the figure, three backend servers (BS1, BS2, BS3) are used. Each backend server serves a number of access points. A mobile host M (with home IP address 139.179.6.25) is traveling starting from the cell of left-most access point AP1 towards the cell of right-most access point AP7. While M is handing off between access points that are served by the same backend server, BlueSky mobility is active and PPP connection is not re-established. In this case, M retains its care-of-address together with its permanent home address. While M is handing off between access points that are served by different backend servers, a new PPP connection is established and a new care-of-address is obtained. The new care-of-address is then indicated to the home agent through Mobile IP registration process. In this way, Mobile IP is only invoked for handoffs between access points that belong to different backend servers.

HA CH

BS

BS

BS

AP AP AP AP

AP

AP

AP

M

M

M

M M

M

139.179.17.

139.179.33.

139.179.49.

139.179.16.

139.179.32.

139.179.48.

New PPP New PPP

New PPP

139.179.6.

139.179.6.

139.179.6.

139.179.6.3 144.122.10.

INTERNET

METU Bilkent

139.179.40.

Care-of-address (collocated) Home address

Question 9 (8 points):

Assume an RS-232C serial connection between two computers is using the following connection parameters:

Baudrate : 9600 bits/second Start bit state: logic 0 (number of start bits is 1) Number of data bits : 8 Number of parity bits : 1 [ Even parity is used (*)] Number of Stop bits : 2

(*) Even parity means: data bits and parity bit together should contain even number of 1’s.

The signal shown in the figure is observed on an oscilloscope connected to the transmit line of the RS-232C cable.

Answer the following questions:

a) (4) What is the information (data bit sequence) that is encoded into the signal that is shown in the figure.

1 st^ byte = 11000100 2 nd^ byte = 01011100 3 rd^ byte = 00010101

b) (2) How long does it take from the start of transmission until the end of transmission according to the figure.

Bit-period = 1/9600 second There are total 36 bits that are transmitted. 36 bit-period = 36x(1/9600) = 3.75 ms.

c) (2) What is the maximum user data-rate (in bits/second) that can be transmitted over this serial line with the parameters shown in the beginning of the question?

Overhead = 4 bits, Data = 8 bits, Total = 12 bits (8/12) x 9600bps = 6400 bps.

start of transmission

end of transmission

+5V

- 5V

Question 10 (5 points):

A digital bit stream that is coming to a BPSK modulator is modulated over the air and the above pattern is observed for the modulated signal in the air. The data bit-rate coming to the modulator is 5000 bps. Which data bit pattern is respresented with the signal above? (Namely, what is the data bit sequence encoded into the signal above?).

1/5000 = 0.2ms = bit-period; 1.2/0.2 = 6 bits are transmitted totally. Answer = 1 1 0 1 0 1

time

0 0.1ms 0.2ms 0.3ms 1.2ms