Docsity
Docsity

Prepare for your exams
Prepare for your exams

Study with the several resources on Docsity


Earn points to download
Earn points to download

Earn points by helping other students or get them with a premium plan


Guidelines and tips
Guidelines and tips

5 Questions with Solution of Computer Networks Distributed Process | CSC 522, Exams of Computer Science

Material Type: Exam; Professor: Sengupta; Class: Comptr Netwrks/Distrbutd Procs; Subject: Computer Science; University: SUNY Institute of Technology at Utica-Rome; Term: Spring 2007;

Typology: Exams

Pre 2010

Uploaded on 08/09/2009

koofers-user-qm8-1
koofers-user-qm8-1 🇺🇸

10 documents

1 / 3

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
Midterm Exam
Computer Networks
CSC522
Spring 2007
Answer any five questions from the following
Policy: Take-home exam. Send your answer by email to kababs@gmail.com
Due date: March 18, 2007 (noon time).
1. (a) You want to measure the approximate available bandwidth between your host and a distant
station during a time when the packet-switched network is lightly loaded. Indicate how you would
approach the task. (b) Suppose you have a choice of sending messages either by packet-switching
or by circuit-switching. How would you decide?
2. Suppose that
x
bits of user data are to be transmitted over a
k
hop path in a packet switched
network as a train of packets each containing
p
data bits and
h
header bits with
hpx
+
>>
.
The bit rate of the lines traversed by the packets is
b
bps and the propagation delay is negligible.
What value of
p
minimizes the total delay?
3. Ethernet and wireless networks have some similarities and some differences. One property of
Ethernet is that only one frame at a time can be transmitted on an Ethernet. Does 802.11 share this
property with Ethernet? Discuss your answer.
4. Consider a network system with a link bandwidth
5.1
=
B
Mbps. The buffer capacity is infinite
and the arrival process is Poisson with mean average rate of
=
λ
1000 packets/sec. Assume that
packet lengths are exponential with a mean of
L
= 1000 b/packet.
a. Compute mean number of packets in the system.
b. Compute mean delay for a packet
c. Assume now that mean arrival rate triples and the bandwidth is increased to 4.5 Mbps.
What would be the mean number of packets and mean delay in the new case? How would
justify your answers both computationally and intuitively?
5. Compare and contrast the advantages and disadvantages of standard ALOHA vis-à-vis slotted
ALOHA. How would they compare with something like Reservation ALOHA?
6. As we know, CSMA works as follows: When a host wants to send a frame he checks if the
channel is busy. If not, the host sends its frame (possibly at the end of a mini-slot). If it is, it waits
a random time before sending its frame. In either case if there is a collision, the sender waits a
random back-off time (from the end of the epoch) and try to re-send.
In one modification of this protocol, called "persistent CSMA", the sender that finds the channel busy,
waits until it is not busy anymore, and then sends it frame.
(a) Under what condition will this protocol be better than then regular CSMA? Give example
and try to analyze the pros and cons of each protocol.
In another CSMA modification a compromise between these two protocols may be attempted. If the
host finds he channel busy it waits till the end of that epoch, and then with probability P it immediately
pf3

Partial preview of the text

Download 5 Questions with Solution of Computer Networks Distributed Process | CSC 522 and more Exams Computer Science in PDF only on Docsity!

Midterm Exam

Computer Networks

CSC

Spring 2007

Answer any five questions from the following

Policy: Take-home exam. Send your answer by email to kababs@gmail.com Due date: March 18, 2007 (noon time).

  1. (a) You want to measure the approximate available bandwidth between your host and a distant station during a time when the packet-switched network is lightly loaded. Indicate how you would approach the task. (b) Suppose you have a choice of sending messages either by packet-switching or by circuit-switching. How would you decide?

2. Suppose that x bits of user data are to be transmitted over a k hop path in a packet switched

network as a train of packets each containing p data bits and h header bits with x >> p + h.

The bit rate of the lines traversed by the packets is b bps and the propagation delay is negligible.

What value of p minimizes the total delay?

  1. Ethernet and wireless networks have some similarities and some differences. One property of Ethernet is that only one frame at a time can be transmitted on an Ethernet. Does 802.11 share this property with Ethernet? Discuss your answer.
  2. Consider a network system with a link bandwidth B = 1. 5 Mbps. The buffer capacity is infinite

and the arrival process is Poisson with mean average rate of λ =1000 packets/sec. Assume that

packet lengths are exponential with a mean of L = 1000 b/packet.

a. Compute mean number of packets in the system. b. Compute mean delay for a packet c. Assume now that mean arrival rate triples and the bandwidth is increased to 4.5 Mbps. What would be the mean number of packets and mean delay in the new case? How would justify your answers both computationally and intuitively?

  1. Compare and contrast the advantages and disadvantages of standard ALOHA vis-à-vis slotted ALOHA. How would they compare with something like Reservation ALOHA?
  2. As we know, CSMA works as follows: When a host wants to send a frame he checks if the channel is busy. If not, the host sends its frame (possibly at the end of a mini-slot). If it is, it waits a random time before sending its frame. In either case if there is a collision, the sender waits a random back-off time (from the end of the epoch) and try to re-send.

In one modification of this protocol, called "persistent CSMA", the sender that finds the channel busy, waits until it is not busy anymore, and then sends it frame.

(a) Under what condition will this protocol be better than then regular CSMA? Give example and try to analyze the pros and cons of each protocol.

In another CSMA modification a compromise between these two protocols may be attempted. If the host finds he channel busy it waits till the end of that epoch, and then with probability P it immediately

transmits, and with probability 1-P it transmits after a random time. Note that P=0 is regular CSMA and P=1 is "persistent CSMA”.

(b) Provide an example, which may consider the system load, showing that it is better to choose P that is not 1 or 0. Do you think that the performance is sensitive to the choice of P? Explain!!

  1. What would be the logical difference between routing and forwarding? Outline an ideal Router table that you think should be a standard.
  2. What parameters constitute QoS? A TCP connection, prior to its existence, needs a guaranteed QoS for its flow. What are the major problems that tend to challenge such requirements?
  3. From my desktop, I make an enquiry which is shown below with responses from the system. Indicate what I’m enquiring about. sengupta@fang:~>arp -a

cs-out.cs.sunyit.edu (150.156.192.1) at 00:09:44:44:dc:00 on em0 [ethernet] gw-out.cs.sunyit.edu (150.156.192.2) at 00:02:b3:8b:bb:e1 on em0 [ethernet] ? (150.156.192.6) at 00:0b:ac:d8:c8:c0 on em0 [ethernet] fang.cs.sunyit.edu (150.156.192.10) at 00:03:47:30:3c:0e on em0 permanent [ethernet] yoshi.cs.sunyit.edu (150.156.192.20) at 00:03:47:32:62:7f on em0 [ethernet] spuds.cs.sunyit.edu (150.156.192.21) at 00:03:47:32:62:72 on em0 [ethernet] spike2.cs.sunyit.edu (150.156.192.32) at 00:11:43:f0:18:6a on em0 [ethernet] milo.cs.sunyit.edu (150.156.192.34) at 00:11:43:f0:18:6a on em0 [ethernet] turing.cs.sunyit.edu (150.156.192.60) at 00:13:20:76:90:5a on em0 [ethernet] turing3.cs.sunyit.edu (150.156.192.62) at 00:03:ff:77:90:5a on em0 [ethernet] ? (150.156.192.255) at ff:ff:ff:ff:ff:ff on em0 permanent [ethernet] sengupta@fang:~>

Now I send a set of pings to a specific interface sengupta@fang:~>ping 150.156.192.

PING 150.156.192.33 (150.156.192.33): 56 data bytes 64 bytes from 150.156.192.33: icmp_seq=0 ttl=64 time=0.525 ms 64 bytes from 150.156.192.33: icmp_seq=1 ttl=64 time=0.211 ms 64 bytes from 150.156.192.33: icmp_seq=2 ttl=64 time=0.216 ms 64 bytes from 150.156.192.33: icmp_seq=3 ttl=64 time=0.218 ms 64 bytes from 150.156.192.33: icmp_seq=4 ttl=64 time=0.214 ms 64 bytes from 150.156.192.33: icmp_seq=5 ttl=64 time=0.224 ms ^C --- 150.156.192.33 ping statistics --- 6 packets transmitted, 6 packets received, 0% packet loss round-trip min/avg/max/stddev = 0.211/0.268/0.525/0.115 ms sengupta@fang:~>

Now if I recheck the ARP cache, we see it’s populated with some new info pertaining to network.33 host interface.

sengupta@fang:~>arp –a

cs-out.cs.sunyit.edu (150.156.192.1) at 00:09:44:44:dc:00 on em0 [ethernet] gw-out.cs.sunyit.edu (150.156.192.2) at 00:02:b3:8b:bb:e1 on em0 [ethernet] ? (150.156.192.6) at 00:0b:ac:d8:c8:c0 on em0 [ethernet] fang.cs.sunyit.edu (150.156.192.10) at 00:03:47:30:3c:0e on em0 permanent [ethernet] yoshi.cs.sunyit.edu (150.156.192.20) at 00:03:47:32:62:7f on em0 [ethernet]