Professional Documents
Culture Documents
Computer Networks Assignment - Lpu
Computer Networks Assignment - Lpu
Q1. With the help of a suitable diagrams wherever required, explain the role
of layer 2, keeping in view of the services it provides at the sender and the
receiver end. Note: You need to take describe the concepts related to layer 2
as a whole.
The main work of the data link layer is to provide services to the network layer. The main
service of the data link layer is to transfer data of network layer from the source machine to
the network layer of the destination machine.
Following are the services provided by the data link layer to the network layer :
FRAMING :
To provide services to the network layer, data link layer uses the services provided to
it by the physical layer. Physical layer sends the data in the form of bits in streams.
Data link layer break the bit stream into the discrete frames and calculates the sum
which is called the checksum The breaking of bit stream into discrete frames by
adding time gaps or inserting spaces is called as framing.
ERROR CONTROL
To ensure proper services and safe delivery of the packets data link layer uses a mechanism
which is called as error control. In this the receiver sends back an acknowledgment bit which
shows that the data is safely delivered to the destination machine. For this the receiver
when receives the data or does not receives it sends back the either the positive or negative
acknowledgement. If the data is properly received it sends back the positive
acknowledgement and if it does not receive the correct data or incomplete data it sends
back the negative acknowledgement. This method is known as error control.
FLOW CONTROL :
It is very important that the transmission speed of both the machines should be same.
because if this is not the case then there occur many problems like when sender sends the
data at a very fast speed or at very slow speed and the receiver receives the data at very
slow speed or at very fast speed, in either of the case the receiver will start loosing the data.
To prevent this flow of data flow control mechanism is incorporated in them. like Automatic
Repeat Request (ARQ).
Q2. An organization namely LPU was using class full addressing but shifted to
classless addressing, provide the 2 appropriate reasons with justification.
LPU shifted to classless addressing because of reasons given below:
Classless addressing effectively manage the available IP address space and
reduces the number of routing table entries. It has is method of assigning IP
addresses in efficient way. In Classless addressing, you can assign IP address
according to number of hosts present in your network. In Classful addressing
importing of subnet information is not possible but in classless it is available ..
Q6. Suppose one of the hosts of block 33 of LPU is using 128.17.19.11 address
and wants to communicate with host of block 38 that uses FF10::FF67, how
can the communication be successful?
In above given, host block 33 of LPU uses IPV4 address and block 38 uses IPV6
address. Communication between both the host can be successful by following
methods.
a. Dual stack mechanism - Dual stack implies providing
complete implementations of both versions of the Internet Protocol
(IPv4 and IPv6),
This mechanism provides a server which can configure both IPV4 and IPV6
because of this we can communicate.
b. NAT protocol translation:-The NAT64 server then creates a NAT-mapping
between the IPv6 and the IPv4 address, allowing them to communicate.
Q7. Do you think dynamic routing is always better? Justify your answer
No ,Dynamic routing is not always better. Algorithm of dynamic routing is very
complex to implement. It also requires knowledge of additional commands.It is
also costlier as it requires resources to store information and it is also less
secure than static routing and also there is predictability issues.
Q8. What is the role of a speaker node? What if speaker node is not present,
can you suggest any solution?
Speaker node creates an automatic system. The main role of speaker node is
to create routing table and send to its neighbour speaker node by this it create
a routing path for sending message.
Speaker node create an automatic system.so if it is not their we can manually
update the routing table of each router by ourself.
Q10. Use Dijktra’s algorithm to find the shortest path tree and forwarding
tables for each node in the Fig (a).