AnswerOf Network Assignment
AnswerOf Network Assignment
Question 1:
What are the 2 most important network-layer functions in a datagram network? What are the 3
most important network-layer functions in a VC network?
Answer 1:
1. Routing: The process of selecting the best path for data to travel from the source to the
destination. Routing algorithms determine the most efficient path based on factors such as
network topology, link cost, and congestion.
2. Fragmentation and reassembly: In a datagram network, data is divided into small packets
called datagrams. The network layer is responsible for fragmenting large datagrams into smaller
ones that can be transmitted over the network. It is also responsible for reassembling the
datagrams at the receiving end.
In a VC (Virtual Circuit) network, the three most important network-layer functions are:
1. Virtual circuit setup and teardown: In a VC network, a virtual circuit is established between
the source and destination before data transmission begins. The network layer is responsible
for setting up and tearing down these virtual circuits.
3. Flow control and congestion control: In a VC network, the network layer is responsible for
managing the flow of data between the source and destination to prevent congestion and
ensure efficient data transmission.
Question 2:
Answer 2:
Routing and forwarding are two important processes in the network layer of the OSI model. The
main difference between them is as follows:
Routing: Routing is the process of selecting the best path for data to travel from the source to
the destination. Routing algorithms determine the most efficient path based on factors such as
network topology, link cost, and congestion. The router performs routing by analyzing the
network layer header of the incoming packet and selecting the best path based on the
destination address.
Forwarding: Forwarding is the process of transmitting a packet from one network interface to
another. In other words, forwarding is the actual movement of the packet through the network.
Once a router has determined the best path for a packet, it forwards the packet to the next hop
in the path. The router performs forwarding by updating the link-layer header of the packet and
transmitting it to the next hop.
Question 3:
Consider the network setup in (the figure below). Suppose that the ISP instead assigns the
router the address 126.13.89.67 and that the network address of the home network is
192.168/16. a. Assign addresses to all interfaces in the home network. b. Suppose each host has
two ongoing TCP connections, all to port 80 at host 128.119.40.86. Provide the Three
corresponding entries in the NAT translation table.
Unfortunately, I cannot see the figure you referred to as it was not included in your question.
However, I can provide a general explanation of how to assign addresses to interfaces in a
network and set up a NAT translation table.
Assuming the network address of the home network is 192.168/16, we can assign IP addresses
to the interfaces in the home network as follows:
Assuming that each host in the home network has two ongoing TCP connections, all to port 80
at host 128.119.40.86, we can set up a NAT translation table as follows:
| Internal IP address | Internal port | External IP address | External port |
|---------------------|---------------|---------------------|---------------|
In this table, the internal IP address and port represent the IP address and port number of the
host in the home network and the external IP address and port represent the IP address and
port number of the router. The router uses this translation table to map the internal IP address
and port to a unique external IP address and port combination, allowing multiple hosts to share
a single public IP address.
Question 4:
Consider sending a 3000 byte datagram into a link that has an MTU of 500 bytes. How many
fragments are generated? What are their characteristics (i.e. what are the flags and offset
values for each).
To send a 3000 byte datagram into a link with an MTU of 500 bytes, the datagram needs to be
fragmented into smaller packets that can be transmitted over the link. Each fragment will have
a maximum payload of 500 bytes, plus the IP header, which is usually 20 bytes. Therefore, each
fragment will be 520 bytes in size.
To determine the number and characteristics of the fragments, we can use the following
formula:
In this case, the datagram size is 3000 bytes and the MTU is 500 bytes, so:
Therefore, the 3000 byte datagram will be fragmented into 6 fragments, each with a maximum
payload of 500 bytes.
The first fragment will have the "MF" (More Fragments) flag set to 1, indicating that there are
more fragments to follow. The offset value for the first fragment will be 0.
The remaining fragments (2 to 6) will also have the "MF" flag set to 1, indicating that there are
more fragments to follow. The offset value for each of these fragments will be calculated as
follows:
The last fragment (fragment 6) will have the "MF" flag set to 0, indicating that this is the last
fragment in the datagram. The offset value for the last fragment will be the same as the offset
value calculated for fragment 5 (i.e., 325).
Question 5:
If Organization is allocated the range of addresses 192.111/24 and they want to divide it into 4
equal groups of addresses, what exactly would the new ranges of addresses be?
If an organization is allocated the range of addresses 192.111/24 and they want to divide it into
4 equal groups of addresses, each group would get a /26 subnet mask, which provides 64
addresses per subnet (62 usable addresses due to network and broadcast addresses).
To calculate the new ranges of addresses, we need to divide the original range of addresses
192.111/24 into four /26 subnets. To do this, we can use the following steps:
2. Since we need to divide the network into four equal subnets, we need to borrow two bits
from the host portion of the address to create four subnets. This means we need to use a
subnet mask of /26 (24 + 2 = 26).
So the new ranges of addresses for the four subnets would be: