[HW] HW#01 2022

291 views
Skip to first unread message

夏秋如

unread,
Nov 5, 2022, 2:30:20 AM11/5/22
to NCCU Networking@MIS

Q1. What are the pros and cons of ADSL and cable access network?

A1.

ADSL

Pros:

a) Dedicated line which guarantees personal use.

b) Build on the phone line which most of the household has already.

c) Asymmetric upstream and downstream design fit the general users. (more download than upload)

d) Data is not easy to be stolen.

Cons:

a) In Taiwan, ADSL has the higher cost than cable.

b) Transmission rate may be influenced by the distance between home and central office.

c) ADSL has slower transmission rate. (comparing to VDSL, fiber or even Cable)

d) ADSL technique is out-of-date and not available everywhere.

Cable

Pros:

a) Cable has a higher bandwidth than ADSL.

b) Cable has lower cost because multiple households share the cable infrastructure.

c) Cable has faster transmission rate than ADSL.

d) Cable is easy to wire and easy to expand due to flexibility.

Cons:

a) Shared cable which shares the bandwidth with other users, so the throughput may be influenced by the number of users.

b) Using cable will be prone to data leak because of the shared line.

c) Need cable available near your house; otherwise, a new cable is needed from the headend to your house.

d) In Taiwan, most of the Cable ISP are not tier-one ISP.


Q2. What are the pros and cons of wired and wireless network?

A2.

Wired Network

Pros:

a) Delicate line; no interfering.

b) High speed (up to 10Gbps), such as fiber.

c) Less noise; physical link is usually protected.

d) May have better security which is quite well-protected from unwanted and unauthorized access.

Cons:

a) Connected through a physical line; not convenient.

b) Not easy to upgrade physical links.

c) May require more time to install.

d) Maintenance costs could increase if adding more devices to the network. (In company, may need hire staff to maintain)

Wireless Network

Pros:

a) No physical link, high mobility; can transmit through the wall.

b) Lower cost of setup.

c) Easier to install and maintain.

d) Wireless networks make your workplace look neater because there are not cables.

Cons:

a) High interference; high noise.

b) May need multiple access points to cover a wide area.

c) The transmission rate is lower. (comparing with a physical link)

d) May have a security problem, e.g., a malicious user may connect to your home WiFi.

e) Shared media; low throughput.

 

Q3. What is the reason why application messages must be fragmented?

A3. As we use packet-switching network, the fragmented messages (i.e., packets) are sent one by one. Thus, we do not need to retransmit the whole message when it is lost on the Internet. For the intermediated routers, they can set up a queue to perform store-and-forward style transmission for the incoming packets from multiple hosts. Therefore, a physical link would not be occupied by one host; rather is shared among multiple hosts.


Q4. Assume an ISP deploys routers along with Taiwan’s High-Speed Rail train stations (total 12 stations, i.e., 11 hops), and the total length of the railroad is 349.5 KM. How long (in seconds) does it take for a packet of length 1,000 bytes to propagate over these fiber links (the fiber propagation speed is 2.5 x 108 m/s and the transmission rate is 10Gbps)?

A4.

1. Total propagation delay = (the end-to-end distance) / (propagation speed) = (349.5 KM) / (2.5 x 10^8 m/s) = (3.495 *10^5m) / (2.5 * 10^8 m/s) = 1.398 * 10^-3 s = 1.398 ms

2. One-hop transmission delay = (packet length)/(transmission rate) = (1000 bytes) / (10Gbps) = ( 8* 10^3 bits) / (10 * 10^9 bps) = 0.8 * 10^-6 s = 0.8 mu second

Total transmission delay = 11 hops delay = 11* 0.8 mu sec = 8.8 mu sec

=> Total delay of propagation and transmission is 1.398 ms + 8.8 mu sec = 1.4068 ms

 

Q5. We plan to develop an in-game VoIP service over a packet-switched network. Assume the analog voice signals are converted to a digital 64 kbps bit stream on the fly and voice sender then groups the bits into 56-byte packets. Assume Internet bandwidth is 100 Mbps on the average and its average propagation delay is 100 msec. How long (in seconds) does it take for you to wait for a voice response from your friend? Is there any other possible delay? Please list them as more as possible.

A5.

a) Think of the first 56-byte packet sent from you to your friend.

It takes x seconds to collect the first 56-byte voice data with a 64 kbps encoder.

64 kbps = 64 * 10^3 bps = 8 *10^3 Byte/sec = 8000 bytes/sec

So, 56 bytes needs 0.007 second (i.e., x) = 7 msec.

The propagation delay is 100 msec.

The one-hop transmission delay is (56 bytes) / (transmission rate) = (56 *8 bit) / 100Mbps) = 4.48 *10^-6 s

However, we do not know how many hops are there between you and your friends.

But notice that the one-hop transmission delay (several mu seconds) is much smaller than the propagation delay (100 msec) and encoder's processing delay (7 msec). So the transmission delay is negligible.

Thus, the (two-way) response time is

=> 7 msec (encoding) + 100 msec (propagation) + n hops * 4.48 * 10^-6 s (negligible transmission delay ) + 7 msec (decoding) + 7 msec (encoding response) + 100 msec (response propagation) + n hops * 4.48 * 10^-6 s (negligible response transmission delay) + 7 msec (decoding response)

b) queuing delay in the router, processing delay by routers and hosts, retransmission delay (if packets are lost), encoding/decoding delay

 

Q6. Suppose users share a 3 Mbps link. Also suppose each user requires 150 kbps when transmitting, but each user transmits only 10 percent of the time.

a. When circuit switching is used, how many users can be supported?

b. For the remainder of this problem, suppose packet switching is used. Find the probability that a given user is transmitting.

c. Suppose there are 120 users. Find the probability that at any given time, exactly n users are transmitting simultaneously. (Hint: binomial distribution.)

d. Find the probability that there are 21 or more users transmitting simultaneously. 

A6.

a) number of users = (total capacity) / (one user demand) = 3Mbps / 150 kbps = 3 *10^6 / 150 * 10^3 = 20 users.

b) each user transmits only 10 percent of the time => that is, given any time and any arbitrary user, the probability of transmission on this user is 0.1.

c) P{k} = P{exactly k users are transmitting out of m users} = C(m, k) * (0.1)^k * (0.9)^(m-k). Now let m be 120 and k be n.

The equation means that at any given time, selecting k users out of 120 users, and only k users are transmitting with probability = 0.1 and the rest of the users (i.e., 120-k) are not transmitting with probability = 0.9.

d) P{ >= 21 users} = 1.0 - P{<= 20 users} = 1.0 - Sigma{k = 0 to 20}(P{k}).

Note that you can find the Binomial Distribution Table at the end of your statistics textbook to find this value.

However, this table usually only provides the results when m <= 20. So, you can use normal distribution and Z score to approximate this value,

i.e.,

the average of this distribution = 120 users * activate user prob 0.1 = 12

the standard deviation of this distribution = (120*0.1*0.9)^(1/2) = 3.286335345030997

then Z score is => (Z-12)/3.286335345030997

then P(<=20) = P{Z < (20-12)/(3.286335345030997)} = P{Z< 2.434322477800738} ~= 0.9925

so 1.0 - Sigma{k = 0 to 20}(P{k}) = 1.0 - P(<=20) ~= 1.0 - P{Z< 2.434322477800738} ~= 0.0075

Reply all
Reply to author
Forward
0 new messages