topic 11 : transport layer Flashcards

1
Q

role of transport layer

A
  • responsible for logical communications between applications running on different hosts
  • link between the application layer and the lower layers that are responsible for network transmission
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

transport layer responsibilities

A

1) tracking individual conversations
2) segmenting data and reassembling segments
3) adds header information
4) identify, separate and manage multiple conversations
5) uses segmentation and multiplexing to enable different communication conversations to be interleaved on the same network

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

transport layer protocols

A

TCP and UDP protocols

transport layer protocols specify how to transfer messages between hosts and are responsible for managing reliability requirements of a conversation

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

TCP (transmission control protocol)

A

provides reliability and flow control

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

TCP basic operations

A
  • number and track data segments transmitted to a specific host from a specific application
  • acknowledge received data
  • retransmit any unacknowledged data after a certain amount of time
  • sequence data that might arrive in wrong order
  • send data at an efficient rate that is acceptable by the receiver
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

UDP basic functions

A
  • connectionless protocol
  • best-effort delivery protocol because there is no acknowledgement that the data is received at the destination

(provides the basic functions for delivering datagrams between the appropriate applications with very little overhead and data checking)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

TCP features

A

1) establishes a session
2) ensures reliable delivery
3) provides same-order delivery
4) supports flow control

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

establishes a session

A

TCP is a connection-oriented protocol that negotiates and establishes a permanent connection/session between source and destination devices prior to forwarding any traffic

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

ensures reliable delivery

A

ensures that each segment that is sent by the source arrives at the destination
(ensures that the segment does not become corrupted or lost completely)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

provides same-order delivery

A

because networks may provide multiple routes that can have different transmission rates, data can arrive in the wrong order

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

supports flow control

A
  • network hosts have limited resources
  • when TCP is aware that these resources are overtaxed, it can request that the sending application reduce the rate of data flow
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

TCP header

A
  • stateful protocol : keeps track of the state of the communication session
  • records which information it has sent and has been acknowledged
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

applications that use TCP

A

TCP handles all tasks associated :
- with dividing the data stream into segments
- provides reliability
- controls data flow
- reordering segments

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

UDP features

A
  • data is reconstructed in the order that is received
    -any segments that are lost are not resent
  • no session establishment
  • sender is not informed about resource availability
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

UDP applications

A

1) live video and multimedia applications
- can tolerate some data loss but require little/no delay (eg VoIP, live streaming video)

2) simple request and reply applications
- with simple transactions where a host sends a request and may or may not receive a reply (DNS, DHCP)

3) applications that handle reliability themselves
- unidirectional communications where flow control, error detection, acknowledgements and error recovery is not required/can be handled by the application (eg SNMP, TFTP)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

source port number and destination port number

A

source port number : originating application on the local host

destination port number : destination application on the remote host

17
Q

well-known ports

A

number range : 0 to 1023

  • reserved for common or popular services and applications such as web browsers, email clients and remote access clients
18
Q

registered ports

A

number range : 1024 to 49151

19
Q

private/dynamic ports

A

number range : 49152 to 65535

20
Q

TCP port number groups

A

FTP (control) = 20
FTP (data) = 21
SSH = 22
Telnet = 23
SMTP = 25
HTTP = 80
POP3 = 1110
IMAP = 143
HTTPS = 443

21
Q

UDP port number groups

A

DHCP (server) = 67
DHCP (client) = 68
TFTP = 69
SNMP = 161

22
Q

UDP and TCP port number groups

23
Q

TCP connection establishment

A

1) initiating client requests a client-to-server communication session with the server
2) server acknowledges the client-to-server communication session
3) The initiating client acknowledges
the server-to-client communication session

24
Q

TCP reliability (guaranteed and ordered delivery)

A
  • TCP can also help maintain the flow of packets so that devices do not become overloaded
  • There may be times when TCP
    segments do not arrive at their
    destination or arrive out of order.
  • All the data must be received and the data in these segments must be
    reassembled into the original order.
  • Sequence numbers are assigned in
    the header of each packet to achieve this goal.
25
Q

TCP reliability (data loss and retransmission)

A

TCP provides methods of managing
these segment losses. Among these is a mechanism to retransmit segments for unacknowledged data

26
Q

TCP flow control (window size and acknowledgements)

A
  • Flow control is the amount of data
    that the destination can receive
    and process reliably.
  • Flow control helps maintain the
    reliability of TCP transmission by
    adjusting the rate of data flow
    between source and destination for
    a given session.
27
Q

TCP flow control (maximum segment size)

A
  • maximum amount of data that the destination device can receive
  • A common MSS is 1,460 bytes
    when using IPv4.
  • A host determines the value of its
    MSS field by subtracting the IP
    and TCP headers from the
    Ethernet maximum transmission
    unit (MTU), which is 1500 bytes
    be default.
28
Q

TCP flow control (congestion avoidance)

A
  • congestion : packets being discarded by the overloaded router
  • avoid and control congestion : congestion handling mechanisms, timers and algorithms
29
Q

UDP low overhead vs reliability

A
  • UDP = connectionless
  • provides low overhead data transport because it has a small datagram header and no network management traffic
30
Q

UDP datagram reassembly

A

UDP simply reassembles the
data in the order that it was
received and forwards it to
the application.

31
Q

UDP server processes and requests

A
  • assigned well-known/registered port numbers
  • receives a datagram
    destined for one of these ports, it
    forwards the application data to
    the appropriate application based
    on its port number
32
Q

UDP client processes

A
  • The UDP client process
    dynamically selects a port number
    from the range of port numbers
    and uses this as the source port
    for the conversation.
  • The destination port is usually the
    well-known or registered port
    number assigned to the server
    process.
  • After a client has selected the
    source and destination ports, the
    same pair of ports are used in the
    header of all datagrams in the
    transaction.