0% found this document useful (0 votes)
30 views5 pages

Chapter 4 ACN

The document discusses three internet protocols: UDP prioritizes speed over reliability and is used for applications like online gaming and streaming. TCP focuses on reliable data delivery using features like segmentation and acknowledgments and is used for services like email and web browsing. SCTP offers reliable data delivery and multi-streaming capabilities, making it suitable for applications involving multiple data streams like VoIP and online gaming.

Uploaded by

shubhamaher9822
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
30 views5 pages

Chapter 4 ACN

The document discusses three internet protocols: UDP prioritizes speed over reliability and is used for applications like online gaming and streaming. TCP focuses on reliable data delivery using features like segmentation and acknowledgments and is used for services like email and web browsing. SCTP offers reliable data delivery and multi-streaming capabilities, making it suitable for applications involving multiple data streams like VoIP and online gaming.

Uploaded by

shubhamaher9822
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 5

Chapter 4

Understanding the User Datagram Protocol (UDP):

The User Datagram Protocol (UDP) is a communication protocol used on the internet to
send data in a simple and efficient way. Unlike its counterpart, the Transmission
Control Protocol (TCP), UDP prioritizes speed over reliability. Let's break down this
concept one step at a time, using relatable examples:
User Datagram: Imagine sending a short note to a friend. You write the message on a
piece of paper (data) and simply throw it through their door (send the data). You don't
wait for confirmation that they received it or if they understood the message (unreliable).
This is similar to how UDP delivers data.
UDP Services: Think of services like online games, live streaming, or DNS lookups.
These services prioritize speed and responsiveness over guaranteed delivery. For
example, in an online game, a slight delay in receiving information might not be
noticeable, while ensuring every single packet arrives perfectly could cause significant
lag. UDP is suitable for these services because it prioritizes speed over perfect delivery.
UDP Applications: Now, imagine tools you use daily that benefit from UDP's speed:
 Online gaming: As mentioned earlier, UDP allows for quick updates between players,
creating a smooth gaming experience.
 Live video and audio streaming: Real-time information needs to be delivered quickly,
and slight data loss is less noticeable compared to waiting for complete, reliable
packets.
 Voice over IP (VoIP) applications: Quick transmission of voice data is crucial for clear
communication, and UDP prioritizes speed over ensuring every single bit arrives
perfectly.
 DNS lookups: When you type a website address, UDP helps quickly translate it to the
corresponding IP address, allowing websites to load faster.
Key Takeaways:
 UDP prioritizes speed over reliability, making it ideal for applications where real-time
data and responsiveness are crucial.
 It works like sending a quick note, not waiting for confirmation of receipt.
 Examples of UDP applications include online gaming, live streaming, and VoIP calls.

Unveiling the Transmission Control Protocol (TCP): Reliability Takes Center


Stage

TCP, or Transmission Control Protocol, is the workhorse of the internet, ensuring the
reliable and accurate delivery of data across networks. Unlike UDP, which prioritizes
speed, TCP focuses on making sure your data arrives at its destination complete and
error-free, even if it takes a bit longer.

Let's explore the key aspects of TCP, using clear examples and breaking it down into
digestible pieces:

TCP Services: Imagine sending an important document to your colleague. You wouldn't
just throw it through their door (like UDP). You'd
 Divide it into manageable pieces (TCP segments).
 Number each piece for order and avoid confusion.
 Add a checksum to detect any errors during transmission.
 Establish a connection to confirm receipt and resend lost pieces if needed.

These features are all part of the reliable data transfer that TCP offers. Services like
email, file transfer, and web browsing rely heavily on TCP for secure and accurate data
exchange.

Key TCP Features:


 Segmentation: Breaking data into manageable chunks (segments).
 Sequencing: Numbering segments to ensure proper order upon arrival.
 Checksum: Adding a verification code to detect data corruption during transmission.
 Acknowledgment (ACK): Sending confirmation messages to indicate successful
segment receipt.
 Retransmission: Resending lost or corrupted segments if an acknowledgment isn't
received within a set time.
 Connection-Oriented: Establishing a connection between sender and receiver before
data transfer, similar to a phone call setup.
A TCP Connection: Think of a TCP connection as a dedicated line of communication
between your computer and the server you're connected to. It involves a three-way
handshake to establish the connection, followed by data exchange with all the features
mentioned above, and finally a graceful termination to close the connection.
State Transition Diagram (Optional): This is a more technical aspect that visually
depicts the different stages a TCP connection goes through, like establishing, sending
data, and closing. If you'd like to explore this later, let me know!
Windows in TCP: Imagine controlling the flow of data like water flowing through a pipe.
TCP uses "windows" to regulate the amount of data a receiver can handle at a time.
The sender transmits data within the advertised window size to avoid overwhelming the
receiver.
Flow Control and Error Control: These work hand-in-hand to ensure smooth data
transfer. Flow control regulates data flow using windows, while error control detects and
corrects any errors that might occur during transmission.
TCP Congestion Control: Just like managing traffic on a highway to avoid congestion,
TCP congestion control dynamically adjusts data transmission rates to prevent
overloading the network.
TCP Timers: These act like alarms, ensuring timely retransmissions and preventing
indefinite waits for acknowledgments.
Optimizing TCP: While TCP offers excellent reliability, it can sometimes experience
trade-offs in terms of speed. Optimizations and adjustments can be made depending on
network conditions and specific application needs.
Remember: This is a simplified overview of TCP. Each feature has its intricacies, but
hopefully, this gives you a solid foundation for understanding how TCP ensures reliable
data transmission.
SCTP: A Reliable and Flexible Transport Protocol

SCTP, or Stream Control Transmission Protocol, sits alongside TCP and UDP as a
transport protocol, offering a unique blend of their functionalities. Let's explore SCTP's
services, features, and key aspects in a clear and concise manner:

SCTP Services:

Imagine you're sending a large, complex project to a colleague. You wouldn't just send
it as one big file (like UDP) or break it down into unreliable pieces (like TCP with
potential reordering). Instead, you'd:

 Divide it into manageable streams (similar to separate folders for different project
components).
 Ensure reliable delivery of each stream, similar to TCP's guarantees.
 Maintain order within each stream, like keeping related files together.
 Offer flexibility for different data types, like text, images, and code within the same
project.
These functionalities make SCTP ideal for applications requiring both reliable data
delivery and the ability to handle multiple data streams, such as:
 Voice over IP (VoIP): SCTP ensures clear and reliable voice transmission, handling
audio and signaling data in separate streams.
 Online gaming: It allows for efficient handling of various data streams, like player
positions, chat messages, and game updates.
 Streaming media: SCTP can manage audio, video, and control data streams for
smooth and reliable playback.
SCTP Features:
 Multihoming: Similar to having multiple phone lines, SCTP allows a device to have
multiple network addresses, increasing reliability and redundancy.
 Multi-streaming: As mentioned earlier, SCTP can handle multiple data streams within
a single connection, similar to sending different folders in a project.
 Ordered delivery: SCTP ensures data within each stream arrives in the correct order,
important for maintaining coherence.
 Partial reliability: Unlike TCP, SCTP allows selective retransmission of lost data
chunks within a stream, improving efficiency.
SCTP Packet Format:

Think of an SCTP packet as a well-organized envelope. It contains:

 Common header: Similar to a general letterhead, it holds essential information about


the sender, receiver, and the overall packet.
 Chunk headers: These act like individual labels for each data stream within the packet,
similar to labels on folders within the project envelope.
 Data payload: This is where the actual data for each stream is carried.
SCTP Association:

Imagine establishing a dedicated communication channel with your colleague for the
project. An SCTP association is similar, setting up a reliable connection between
devices for data exchange, with the ability to handle multiple streams within that
association.

Flow Control and Error Control:

SCTP employs mechanisms similar to TCP:

 Flow control: regulates data flow to avoid overwhelming the receiver.


 Error control: detects and corrects errors during transmission using techniques like
checksums and retransmissions.
Remember: SCTP offers a unique combination of reliable data transfer, multi-streaming
capabilities, and flexibility compared to TCP and UDP. Understanding its core principles
provides a solid foundation for exploring its applications in various communication
scenarios.

You might also like