CS作业代写 COMP90007 Internet Technologies Week 7 Workshop – cscodehelp代写

COMP90007 Internet Technologies Week 7 Workshop
Semester 2, 2021
Suggested solutions
© University of Melbourne 2021
*1

Question 1
What are the benefits and disadvantages of Transparent fragmentation in Network Layer?
Ans. Good design paradigm and encapsulation of fragmentation within each network. Transparent fragmentation is straightforward to implement and use but has problems. For
one thing, the exit router must know when it has received all the pieces, so either a
count field or an ‘‘end of packet’’ bit must be provided. Also, because all packets must exit via the same router so that they can be reassembled, the routes are constrained. By not allowing some fragments to follow one route to the ultimate destination and other fragments a disjoint route, some performance may be lost. More significant is the amount of work that the router may have to do. It may need to buffer the fragments as they arrive, and decide when to throw them away if not all of the fragments arrive. Some of this work may be wasteful, too, as the packet may pass through a series of small packet networks and need to be repeatedly fragmented and reassembled.
*2

Question 2
Convert the IP address 11000001, 01010010, 11010010, 00001111 to dotted decimal notation.
Ans. 193.82.210.15
*3

Question 3
Convert the IP address 240.68.10.10 to binary format Use the following key:
Ans. 1111 0000 . 0100 0100 . 0000 1010 . 0000 1010
*4

Question 4
A network on the Internet has a subnet mask of 255.255.240.0. What is the maximum number of hosts that it can handle?
Answer:
255.255.240.0 in binary is 11111111 11111111 11111111 11110000 0000000
The mask is 20 bits long, so the network part is 20 bits. The remaining 12 bits are for the host, so 4096 host addresses exist.
*5

Question 5
IPv6 uses 16 bytes addresses. If a block of 1 million addresses is allocated every picosecond, how long will the addresses last?
Answer:
With 16 bytes there are 2128 or addresses. If we allocate them at a rate of 106 /10-12 = 1018 addresses per second. Therefore it will take 3.4×1020 seconds to run out of IP addresses, which is about 1013 years.
This number is 1000 times the age of the universe. Of course, the address space is not flat, so they are not allocated linearly, but this calculation shows that even with an allocation scheme that has an efficiency of 1/1000 (0.1 percent), one will never run out.
*6

Question 6
A router has an entry in its table that can be represented with mask as 135.46.56.0/21. What is the maximum number of hosts that this network can represent?
Ans. 21 bits means network has 21 bits reserved, and remaining 11 bits are for hosts.
Hence maximum number of hosts is 2^11 = 2048
*7

Question 7
■ A router has the following entries in its routing table:
Prefix 151.46.184.0/22 151.46.188.0/22 151.53.40.0/23
default
Next hop Interface 0 Interface 1 Router 1
Router 2
For each of the following IP addresses, what does the router do If a packet with that address arrives?
(a) 151.46.191.10 ⇒ Interface 1
(b) 151.46.187.2 ⇒ Interface 0
*8

Leave a Reply

Your email address will not be published. Required fields are marked *