Transport Layer

0.0(0)
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/120

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

121 Terms

1
New cards
26/10/2023 1
2
New cards
26/10/2023
3
New cards
▪The transport layer is:
4
New cards
• responsible for logical
5
New cards
communications between
6
New cards
applications running on
7
New cards
different hosts.
8
New cards
• The link between the
9
New cards
application layer and the
10
New cards
lower layers that are
11
New cards
responsible for network
12
New cards
transmission.
13
New cards
• IP does not specify how the delivery or transportation of the packets takes place.
14
New cards
• Transport layer protocols specify how to transfer
15
New cards
messages between hosts, and are responsible for managing reliability requirements of a conversation.
16
New cards
• The transport layer includes the TCP and UDP protocols.
17
New cards
2
18
New cards
26/10/2023
19
New cards
TCP provides reliability and flow control. TCP basic operations:
20
New cards
• Number and track data segments transmitted to a specific host from a specific application
21
New cards
• Acknowledge received data
22
New cards
• Retransmit any unacknowledged data after a certain amount of time
23
New cards
• Sequence data that might arrive in wrong order
24
New cards
• Send data at an efficient rate that is acceptable by the receiver
25
New cards
UDP provides the basic
26
New cards
functions for delivering
27
New cards
datagrams between the
28
New cards
appropriate applications, with very little overhead and data checking.
29
New cards
• UDP is a connectionless protocol.
30
New cards
• UDP is known as a best-effort delivery protocol because there is no acknowledgment that the data is received at the destination.
31
New cards
3
32
New cards
26/10/2023
33
New cards
▪UDP is also used by request and-reply applications where the data is minimal, and retransmission can be done quickly.
34
New cards
▪If it is important that all the data arrives and that it can be processed in its proper sequence, TCP is used as the transport protocol.
35
New cards
4
36
New cards
26/10/2023
37
New cards
▪ Establishes a Session - TCP is a connection-oriented protocol that negotiates and establishes a permanent connection (or session) between source and destination devices prior to forwarding any traffic.
38
New cards
▪ Ensures Reliable Delivery - For many reasons, it is possible for a segment to become corrupted or lost completely, as it is transmitted over the network. TCP ensures that each segment that is sent by the source arrives at the destination.
39
New cards
▪ Provides Same-Order Delivery - Because networks may provide multiple routes that can have different transmission rates, data can arrive in the wrong order.
40
New cards
▪ Supports Flow Control - Network hosts have limited resources (i.e., memory and processing power). When TCP is aware that these resources are overtaxed, it can request that the sending application reduce the rate of data flow.
41
New cards
▪TCP is a stateful protocol
42
New cards
which means it keeps track
43
New cards
of the state of the
44
New cards
communication session.
45
New cards
▪TCP records which
46
New cards
information it has sent, and
47
New cards
which information has been
48
New cards
acknowledged.
49
New cards
5
50
New cards
26/10/2023
51
New cards
• TCP can also help maintain the flow of packets so that devices do not become overloaded.
52
New cards
• There may be times when TCP segments do not arrive at their destination or arrive out of order.
53
New cards
• All the data must be received and the data in these segments must be reassembled into the original order.
54
New cards
• Sequence numbers are assigned in the header of each packet to achieve this goal.
55
New cards
6
56
New cards
26/10/2023
57
New cards
No matter how well designed a network is, data loss
58
New cards
occasionally occurs.
59
New cards
TCP provides methods of managing these segment losses. Among these is a mechanism to retransmit segments for
60
New cards
unacknowledged data.
61
New cards
▪TCP also provides mechanisms for flow control as follows:
62
New cards
• Flow control is the amount of data that the destination can receive and process reliably.
63
New cards
• Flow control helps maintain the reliability of TCP transmission by adjusting the rate of data flow between source and destination for a given session.
64
New cards
7
65
New cards
26/10/2023
66
New cards
TCP handles all tasks associated with dividing the data stream into segments, providing reliability,
67
New cards
controlling data flow, and reordering segments.
68
New cards
8
69
New cards
▪UDP features include the following:
70
New cards
• Data is reconstructed in the order that it is received. • Any segments that are lost are not resent.
71
New cards
• There is no session establishment.
72
New cards
• The sending is not informed about resource availability.
73
New cards
The UDP header is far simpler than the TCP header because it only has four fields and requires 8 bytes (i.e. 64 bits).
74
New cards
26/10/2023 9
75
New cards
26/10/2023
76
New cards
The table identifies and describes the four fields in a UDP header.
77
New cards
UDP does not establish a connection. UDP provides low overhead data transport because it has a small datagram header and no network management traffic.
78
New cards
10
79
New cards
26/10/2023
80
New cards
• UDP does not track
81
New cards
sequence numbers the
82
New cards
way TCP does.
83
New cards
• UDP has no way to
84
New cards
reorder the datagrams
85
New cards
into their transmission
86
New cards
order.
87
New cards
• UDP simply reassembles the data in the order that it was received and
88
New cards
forwards it to the
89
New cards
application.
90
New cards
▪ Live video and multimedia applications - These applications can tolerate some data loss but require little or no delay.
91
New cards
Examples include VoIP and live streaming video.
92
New cards
▪ Simple request and reply applications - Applications with simple transactions where a host sends a request and may or may not receive a reply. Examples include DNS and DHCP.
93
New cards
▪ Applications that handle reliability themselves - Unidirectional
94
New cards
communications where flow control, error detection, acknowledgments, and error recovery is not required, or can be handled by the application.
95
New cards
Examples include SNMP and TFTP.
96
New cards
11
97
New cards
▪TCP and UDP transport layer protocols use port numbers to manage multiple, simultaneous conversations.
98
New cards
▪The source port number is associated with the originating application on the local host whereas the destination port number is associated with the destination application on the remote host.
99
New cards
26/10/2023 12
100
New cards
• The source and destination ports are