networking assignment
networking assignment
While Data Link Layer requires the MAC address (48 bits address contained inside
the Network Interface Card of every host machine) of source-destination hosts to
correctly deliver a frame and the Network layer requires the IP address for
appropriate routing of packets, in a similar way Transport Layer requires a Port
number to correctly deliver the segments of data to the correct process amongst
the multiple processes running on a particular host. A port number is a 16-bit
address used to identify any client-server program uniquely.
The transport layer is also responsible for creating the end-to-end Connection
between hosts for which it mainly uses TCP and UDP. TCP is a secure, connection-
orientated protocol that uses a handshake protocol to establish a robust
connection between two end hosts. TCP ensures the reliable delivery of messages
and is used in various applications. UDP, on the other hand, is a stateless and
unreliable protocol that ensures best-effort delivery. It is suitable for applications
that have little concern with flow or error control and requires sending the bulk of
data like video conferencing. It is often used in multicasting protocols.
Multiplexing (many to one) is when data is acquired from several processes from
the sender and merged into one packet along with headers and sent as a single
packet. Multiplexing allows the simultaneous use of different processes over a
network that is running on a host. The processes are differentiated by their port
numbers. Similarly, Demultiplexing (one to many is required at the receiver side
when the message is distributed into different processes. Transport receives the
segments of data from the network layer distributes and delivers it to the
appropriate process running on the receiver’s machine.
PPP (Point-To-Point) protocol is a protocol used in the data link layer. The PPP
protocol is mainly used to establish a direct connection between two nodes.
This protocol defines how two devices can authenticate with each other.
PPP protocol also defines the format of the frames that are to be
exchanged between the devices.
This protocol also defines how the data of the network layer are
encapsulated in the data link frame.
The PPP protocol defines how the two devices can negotiate the
establishment of the link and then can exchange the data.
This protocol provides multiple services of the network layer and also
supports various network-layer protocols.
This protocol also provides connection over multiple links.
Ans:-
ARP works by broadcasting an ARP request packet on the local network, asking for
the MAC address associated with a specific IP address. The device with the
matching IP address responds to the request with its MAC address, allowing
devices to communicate with each other using this hardware address.
b) Telnet: Telnet is a network protocol used to virtually access a computer and to
provide a two-way, collaborative and text-based communication channel
between two machines.
It follows a user command Transmission Control Protocol/Internet Protocol
(TCP/IP) networking protocol for creating remote sessions. On the web, Hypertext
Transfer Protocol (HTTP) and File Transfer Protocol (FTP) simply enable users to
request specific files from remote computers, while, through Telnet, users can log
on as a regular user with the privileges they are granted to the specific
applications and data on that computer.
c) FTP: The term file transfer protocol (FTP) refers to a process that involves the
transfer of files between devices over a network. The process works when one
party allows another to send or receive files over the Internet. Originally used as a
way for users to communicate and exchange information between two physical
devices, it is now commonly used to store files in the cloud, which is usually a
secure location that is held and accessed remotely.
FTP may be used by a business or individual to transfer files from one computer
system to another or by websites to upload or download files from their servers.
d) HDLC Frame: High-Level Data Link Control (HDLC) generally uses term “frame”
to indicate and represent an entity of data or a protocol of data unit often
transmitted or transferred from one station to another station. Each and every
frame on link should begin and end with Flag Sequence Field (F). Each of frames in
HDLC includes mainly six fields. It begins with a flag field, an address field, a
control field, an information field, an frame check sequence (FCS) field, and an
ending flag field. The ending flag field of one frame can serve as beginning flag
field of the next frame in multiple-frame transmissions.
2. Routing and Forwarding: At each hop, the network device (e.g., router)
examines the packet's destination address, makes routing decisions based on its
routing table, and forwards the packet to the next hop on the path. This process
repeats until the packet reaches its final destination.
3. Data Path Optimization: The path taken by data packets from source to
destination is not always the same, as it can vary depending on network
conditions, routing protocols, and the best available route. Network devices aim
to optimize data paths for efficiency and reliability.
h) UDP: User Datagram Protocol (UDP) is a Transport Layer protocol. UDP is a part
of the Internet Protocol suite, referred to as UDP/IP suite. Unlike TCP, it is an
unreliable and connectionless protocol. So, there is no need to establish a
connection prior to data transfer. The UDP helps to establish low-latency and loss-
tolerating connections establish over the network. The UDP enables process to
process communication.
Though Transmission Control Protocol (TCP) is the dominant transport layer
protocol used with most of the Internet services; provides assured delivery,
reliability, and much more but all these services cost us additional overhead and
latency. Here, UDP comes into the picture. For real-time services like computer
gaming, voice or video communication, live conferences; we need UDP. Since high
performance is needed, UDP permits packets to be dropped instead of processing
delayed packets. There is no error checking in UDP, so it also saves bandwidth.
User Datagram Protocol (UDP) is more efficient in terms of both latency and
bandwidth
Stop and wait means that the sender provides the recipient’s desired data. The
sender pauses after transferring the data and waits for the receiver to
acknowledge his transmission. The stop and wait protocol, which is a flow control
protocol, uses the data link layer’s flow control functionality.
It is a DDL (data-link layer) protocol that is used to send data through channels
with no background noise. It offers unidirectional data transfer, which means that
only one of the two operations, data sending or receiving, can occur concurrently.
Although it offers a flow-control system, there is no error control mechanism.
The concept behind using this frame is that after sending one frame, the sender
will wait for an acknowledgement before sending another one.
Sender’s Side
Rule 1: The sender sends one data packet at a time.
Rule 2: The sender only sends the subsequent packet after getting the preceding
packet’s acknowledgement.
Therefore, the concept behind the stop and wait protocol on the sender’s end is
relatively straightforward: Send one packet at a time and refrain from sending any
additional packets until you have received an acknowledgement.
Receiver’s Side
Rule 1: Receive the data packet and then consume it.
As a result, the stop and wait protocol’s basic tenet on the receiver’s end is
similarly extremely straightforward: Ingest the packet, and after it has been
consumed, send the acknowledgement. This is a mechanism for flow control.
Suppose the data was sent by the sender and was also received by the recipient.
The acknowledgement is then sent by the recipient, but it is not received until the
timeout period has passed on the sender’s end. Due to the acknowledgement
being received after this, it can be mistaken for acknowledging the receipt of
another data packet.
Reapeater Amplifier
Repeater takes high input power and Amplifier takes low input power and
provides low output power. provides high output power.