CN Sem4
CN Sem4
Define pulling:- If the producer delivers the items after the consumer
has requested them, the delivery is referred to as pulling.
Define pushing:- If the sender delivers items whenever they are
produced without the prior request from the consumer the delivery is
referred to as pushing.
Explain the different services offered by the Network layer:-
1. Packetizing:- The process of encapsulating the data received from
upper layers of the network (also called as payload) in a network
layer packet at the source and decapsulating the payload from
the network layer packet at the destination is known as
packetizing. In other words, one responsibility of the network
layer is to carry the data packets from the source to the
destination without changing it or using it.
2. Routing and Forwarding:- Routing and forwarding are two other
services offered by the network layer. The network layer is
responsible for routing the packets from its source to the
destination. With the help of forwarding, data packets are
transferred from one place to another in the network.
3. Flow Control:- It regulates the amount of data a source can send
without overloading the receiver. If the source produces data at
a very faster rate than the receiver can consume it, the receiver
will be overloaded with data.
4. Error Control:- Error control also in the network layer is the
process of detecting and correcting data packets that have been
corrupted or lost during transmission.
Explain datagram format of UDP:- User datagram protocol (UDP)
operates on top of the Internet Protocol (IP) to transmit datagrams
over a network. UDP does not require the source and destination to
establish a three-way handshake before transmission takes place.
Additionally, there is no need for an end-to-end connection. Since
UDP avoids the overhead associated with connections, error checks
and the retransmission of missing data, it’s suitable for real-time or
high performance applications that don’t require data verification or
correction. If verification is needed, it can be performed at the
application layer.
Difference between TCP and UDP: