TCP Udp
TCP Udp
❌ Disadvantages:
1️⃣Overhead: TCP includes additional control information in each packet, resulting in
larger overhead compared to UDP.
2️⃣Slower: The mechanisms for reliability and ordered data transfer make TCP slightly
slower compared to UDP, especially in low-latency scenarios.
3️⃣Limited scalability: TCP performs well in point-to-point communication but can
experience challenges in scaling to a large number of clients or connections.
❌ Disadvantages:
1️⃣Lack of reliability: Unlike TCP, UDP does not provide built-in mechanisms for error
recovery or retransmission, making it prone to lost or out-of-order packets.
2️⃣No flow control: UDP lacks flow control mechanisms, which means data can be
transmitted at a rate that overwhelms the receiver.
3️⃣Firewall challenges: Some firewalls or network setups may block UDP traffic, limiting
its accessibility in certain environments.
Understanding the trade-offs between TCP and UDP is crucial for selecting the right
protocol for specific use cases. Depending on the requirements of reliability, latency,
scalability, and traffic constraints, choosing the appropriate protocol can optimize
network performance. #Networking #Protocols #TCP #UDP
Congestion
.
Congestion occurs when a network or a network link becomes overloaded
with traffic, leading to slower transmission speeds and increased delays.
When congestion occurs, network devices such as routers and switches can
become overwhelmed with packets and may start to drop them. This leads to
a phenomenon known as congestion collapse, where network performance
deteriorates rapidly. To avoid congestion collapse, network devices use a
technique called congestion control.
Backoff
When a device detects that the network is congested, it can reduce its
transmission rate by a certain amount. This reduction is known as a backoff.
Congestion and backoff are two concepts that are closely related to each
other in networking. In contrast, backoff is a mechanism used by network
devices to manage congestion by slowing down their transmission rate
1. SYN: The first step is the client sending a SYN (synchronize) message
to the server. This message contains a sequence number (Seq) that
the client uses to number the bytes of the data it sends. The message
also includes a random initial sequence number (ISN) that the client
generates to start the sequence.
2. SYN-ACK: The second step is the server receiving the SYN message
and responding with a SYN-ACK (synchronize-acknowledge) message.
This message acknowledges the receipt of the client's SYN message
and contains the server's own random ISN. The server also increments
the client's sequence number by 1 and sends it back to the client.
3. ACK: The third step is the client receiving the SYN-ACK message from
the server and responding with an ACK (acknowledge) message. This
message acknowledges the receipt of the server's SYN-ACK message
and contains the next sequence number that the client will use for its
data. The server increments the sequence number it received from the
client by 1 and sends it back to the client.
It's important to note that during the three-way handshake, each device has
to wait for a response from the other device before proceeding to the next
step. This ensures that both devices are in sync and ready to communicate.
TCP vs UDP
Tabulate the differences between tcp and udp? 2. why UDP is preferred more than TCP
in real time applications
Aspect TCP UDP
Error Handling Retransmits lost packets, Error checking No retransmission, No error checking
Used for File transfer, Email, Web browsing Real-time video/audio streaming, Gaming
UDP is preferred more than TCP in real-time applications for the following reasons:
1. Lower latency: UDP is faster than TCP because it has a smaller header size and
does not perform error checking or retransmission of lost packets. This makes it
ideal for real-time applications that require low latency.
2. No congestion control: UDP does not perform congestion control, which means
that packets are sent as fast as possible without waiting for acknowledgments.
This is beneficial for real-time applications that require a constant stream of data,
as it reduces the delay caused by congestion control.
3. Ordering is not important: In real-time applications, the order in which packets
arrive is not as important as the timeliness of the data. UDP does not guarantee
the order of delivery, but it can deliver packets faster than TCP.
4. Simpler implementation: UDP is simpler to implement than TCP because it does
not require the complexity of congestion control and other features. This makes
it more suitable for applications that require a lightweight protocol.
1. Error:
An error, also known as a mistake or a fault, refers to a human action. Errors are
typically made by developers during the software development process, such as
coding errors, logic mistakes, or incorrect implementation of requirements.
2. Bug:
A bug, or a software bug, is an error in the software. It refers to a flaw or an
anomaly in the code that causes the software to behave differently from what
was intended or specified. Bugs can occur due to programming errors, design
flaws, or other issues in the software development process. Bugs can result in
unexpected behavior, crashes, incorrect calculations, or other undesirable
outcomes.
Explain MLAG?
MLAG is commonly deployed in data center networks, where high availability, load
balancing, and redundancy are crucial requirements. It enables efficient utilization of
network resources, improves fault tolerance, and simplifies network management by
presenting multiple switches as a single logical entity.
Ans)
The separation of the spine and leaf planes in the spine-leaf architecture
helps in achieving scalability, modularity, and efficient traffic flow within the
network.