Computer Network
Computer Network
Computer Network
hub or switch.
Ring Topology: Devices are connected in a circular
different topologies.
4. By Control Type
Peer-to-Peer (P2P): All devices have equal status and
techniques.
o Ensures bit synchronization and bit rate control.
CRC).
3. Network Layer (Layer 3)
Function: Manages logical addressing and determines
Responsibilities:
o Logical addressing (e.g., IP addresses).
o Routing and forwarding of packets.
networks).
4. Transport Layer (Layer 4)
Function: Ensures reliable data transfer between two
termination.
o Segmentation and reassembly of data.
packets).
Q3. What are the fundamental ways by which network
performance is measured in computer network?
Ans Network performance in a computer network is
measured using several fundamental metrics that provide
insights into the efficiency, reliability, and speed of the
network. These metrics help network administrators
understand the current state of the network, identify
potential issues, and make informed decisions to optimize
performance. Here are the primary ways network
performance is measured:
1. Bandwidth
Definition: Bandwidth is the maximum rate at which
addresses).
o Controls access to the physical transmission
medium.
o Ensures error detection and correction for frames.
2. Internet Layer
Function: Facilitates the logical addressing and routing
(routing).
o Manages packet fragmentation and reassembly.
3. Transport Layer
Function: Provides reliable data transfer services
hosts.
o Provides reliable data transfer with error detection
(TCP).
o Enables connectionless data transfer for
functions.
o Manages network communication for user
applications.
o Provides protocols for file transfer, email, web
UNIT 2
Q1. explain go-back-n and selective protocol?
Ans Go-Back-N and Selective Repeat Protocols
Go-Back-N and Selective Repeat are two error-control
protocols used in computer networks to ensure reliable data
transmission over an unreliable or noisy communication
channel. Both protocols are part of the Automatic Repeat
request (ARQ) family, which uses acknowledgments and
retransmissions to ensure data integrity.
Go-Back-N ARQ Protocol
Definition
Go-Back-N (GBN) is a sliding window protocol that allows the
sender to send multiple frames before needing an
acknowledgment for the first one, but requires that frames
be acknowledged in order. If an error is detected or a frame
is lost, all subsequent frames are retransmitted.
Key Characteristics
1. Sliding Window: The sender can send several frames
specified by the window size (N) before needing an
acknowledgment.
2. Sequential Acknowledgment: The receiver only
acknowledges the last correctly received frame in
sequence. If a frame is lost or an error is detected, all
subsequent frames are discarded.
3. Retransmission: If an acknowledgment (ACK) for a
frame is not received within a certain time (due to loss
or error), the sender retransmits that frame and all
subsequent frames in the window.
Example
Consider a window size of 4 (N=4):
The sender sends frames 0, 1, 2, and 3.
implement.
Disadvantages
Inefficiency: Retransmitting all frames after a lost or
throughput.
o Cons: More complex to implement compared to
stop-and-wait.
3. Credit-Based Flow Control:
o Mechanism: The receiver sends credit (permission)
to the sender, indicating how many frames or bytes
it can receive. The sender can transmit data up to
the credit limit.
o Pros: Adaptable to varying receiver capabilities.
exchanged.
Importance
Prevents Buffer Overflow: Avoids scenarios where the
understand.
Reliability: Ensures that each frame is acknowledged