Tutorial 1
Chapter 1 - Computer networks and the internet
Question 1
Compare and contrast packet switching and circuit switching.
Answer
Packet switching and circuit switching represent two fundamentally different approaches to data transmission in networks. In packet switching, as used in the Internet data is broken into smaller packets that can travel independently through the network. These packets share network resources with other users’ data, making efficient use of available capacity.When I send an email, for example, the message might be split into several packets, each finding its own path to the destination.
Circuit switching, on other hand, establishes a dedicated path between sender and receiver before any data transfer begins - much like traditional telephone calls. This path remains reserved for the entire duration of the communication, whether data is being transmitted or not. Think of it as having private highway lane reserved just for you, even if you are not using it continuously.
The key differences manifest in several ways. Packet switching tends to be more efficient for bursty data traffic, as resources are only used when needed. However, this can lead to variable delay and possible packet loss during congestion. Circuit switching provides guaranteed quality once a connection is established but can be less efficient since resources remain allocated even during silent periods.
From a cost perspective, packet switching generally proves more economical for data networks because it allows statistical multiplexing - essentially sharing resource among many users. Circuit switching, while more expensive due to dedicate resource allocation, excels in applications requiring constant data rates and minimal delay variation, like traditional voice calls.
Question 2
Do you agree that a traffic intensity of greater than 0.8 indicates congestion? Explain your answer.
Answer
No, I wouldn’t necessarily agree that a traffic intensity above 0.8 automatically indicates congestion. While it is true that 0.8 is often used as a warning threshold in network planning.
Question 3
This elementary problem begins to explore propagation delay and transmission delay, two central concepts in data networking. Consider two hosts, and , connected by a single lik of rate bps. Suppose that the two hosts are separated by meters, and suppose the propagation speed along the link is meters/sec. Host A is to send a packet of size bits to Host
Question 3a
Express the propagation delay, , in terms of and
Answer
The propagation delay is time taken for a bit to travel from source to destination over a distance at propagation speed . Therefore,
Question 3b
Determine the transmission time of packet, , in terms of and
Answer
The transmission time is the time needed to push all bits of the packet into the link at rate bits per seconds. Therefore,
Question 3c
Ignoring processing and queuing delays, obtain an expression for the end-to-end delay.
Answer
The total end-to-end delay is simply the sum of propagation delay and transmission time
Question 3d
Suppose Host begins to transmit the packet at time . At time , where is the last bit of the packet?
Answer
At the time , the last bit has just been transmitted and is at the beginning of the link at Host ’s end. It hasn’t started its propagation journey yet.
Question 3e
Suppose is greater than . At time , where is the first bit of the packet
Answer
When , the first bit is still traveling along the link and hasn’t reached Host yet. The exact position would be at () meters from the source.
Question 3f
Suppose is less than . At the time , where is first bit of the packet?
Answer
When , at the time , the first bit has already arrived at the Host , while the last bit is just begging its journey from Host
Question 3g
Suppose . Find the distance so that equals .
Answer
Since we want , we can write . Solving for : Substitute values:
Question 4
Suppose that there a client-server pairs. Denote and for the rates of the server links, client links, and network link. Assume all other links have abundant capacity and that there is no other traffic in the network besides the traffic generated by client-server pairs. Derive general expression for throughput in terms of
Answer
The key here is to understand that bottleneck could occur at three different points:
- The server’s upload link ()
- The client’s download link ()
- The network link that all traffic must share since pairs share it
The throughput will be limited by the minimum of three rates This is because:
- Each server can upload at rate
- Each client can download at rate
- The network link with capacity must be share among pairs, so each pair gets
Question 5
Suppose two host, and , are separated by 20 000 kilometers and connected by a direct link of . Suppose, the propagation speed over link is meters/sec
Question 5a
Calculate the bandwidth-delay product,
Answer
First, let’s calculate therefore