4. Transport Layer Flashcards

1
Q

What is the transport layer responsible for?

A
  1. Logical communications between applications running on different hosts
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What layers are responsible for network transmission?

A
  1. Link between the application layer and the lower layers
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What information does Transport Layer adds? ( Responsibilities )

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

What does Transport Layer track? ( Responsibilities )

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

What does transport layer segment and reassembling ? ( 2 , Responsibilities )

A
  1. Data ( Segmenting )
  2. Segments ( Reassembling )
  • 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
6
Q

What will transport layer do on multiple conversations? ( 3 , Responsibilities )

A
  1. Identify
  2. Separate
  3. Manage
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What does transport layer protocols specify? ( 2 )

A
  1. How to transfer between hosts
  2. Responsible for managing reliability requirements of a conversation
  • IP does not specify how the delivery or transportation of the packets takes place
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Transport Layer includes what protocols? ( 2 )

A
  1. TCP Protocols
    • Provides reliability and flow control
  2. UDP Protocols
    • Provides 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
9
Q

List out TCP basic operations ( 5 )

A
  1. Number and track data segments transmitted to a specific host from a specific application
  2. Acknowledge received data
  3. Retransmit any unacknowledged data after a certain amount of time
  4. Sequence data that might arrive in wrong order
  5. Send data at an efficient rate that is acceptable by the receiver
  • Transmission Control Protocol ( TCP )
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What is the required protocol properties for UDP and TCP?

A

TCP
1. Reliable
2. Acknowledges Data
3. Resends Lost Data
4. Delivers Data in Sequencial Order

UDP
1. Fast
2. Low Overhead
3. Does not Require Acknowledgements
4. Does not Resend Lost Data
5. Delievers Data as it Arrives

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

What is UDP is known for?

A
  1. Best-effort delivery protocol because there is no acknowledgement that that data is received at the destination
  • It was an unreliable protocol because it has little overhead and data checking
  • User Datagram Protocol ( UDP )
  • It is also a connectionless protocol
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What applications uses UDP?

A
  1. Request-and-Reply applications
  • Where data is minimal, and retransmission can be done quickly
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

When will TCP used?

A
  1. 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
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What are the features for TCP? ( 4 )

A
  1. Establishes a Session
  2. Ensures Reliable Delievery
  3. Provides Same-Order Delivery
    • May provide multiple routes
  4. Supports Flow Control
  • It is a stateful protocol which means it keeps track of the state of the communication session
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What will TCP records? ( 2 )

A
  1. Which information it has sent
  2. Which information has been acknoledged
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What is the 2 most important things in TCP and UDP header?

A
  1. Source Port
  2. Destination Port
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

What does TCP handles?

A
  1. All tasks associated with driving the data stream into segments, providing reliability, controlling data flow, and reording segments
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q

What is the features for UDP? ( 4 )

A
  1. Data is reconstructed in the order that it is received
  2. Any segments that are lost are not resent
  3. There is no session establishment
  4. The sending is not informed about resource availability
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
19
Q

What application uses UDP? ( 3 )

A
  1. Live video and multimedia applications
  2. Simple request and reply applications
  3. Applications that handle reliability themselves
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
20
Q

What does TCP and UDP transport layer protocols uses to manage multiple, simultaneous conversations?

A
  1. Port Numbers
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
21
Q

What are placed within the segment?

A
  1. Source Port Number
  2. Destination Port Number
  • They are then encapsulated within an IP packet
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
22
Q

What is the name for the source IP address and source port number, or the destination IP address and destination port number?

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

What does sockets enable?

A
  1. Enable multiple process, running on a client, to distinguish themselves from each other, and multiple connections to a server process to be distinguished from each other
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
24
Q

What is the number range for well-known ports?

A
  1. 0 - 1023
  • Reserved for common or popular services ( web-browser, remote access clients )
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
25
Q

What is the number range for registered ports?

A
  1. 1024 - 49151
  • Assigned by IANA
  • Are primarily individual applications that a user has chosen to instal, rather than common applications that would receive a well-known port number
26
Q

What is the number range for private and / or dynamic ports?

A
  1. 49152 - 65535
  • It only have value until 65535 due to the 2^16 ( 16 bit )
  • It is also known as ephemeral ports
27
Q

What port numbers are assigned by IANA?

A
  1. Registered ports
28
Q

What port are also known as ephemeral ports?

A
  1. Private and / or Dynamic Ports
29
Q

What is the Port Number for :
Protocol - TCP
Application - File Transfer Protocol ( FTP ) , Data

A
  1. 20
30
Q

What is the Port Number for :
Protocol - TCP
Application - File Transfer Protocol ( FTP ) , Control

A
  1. 21
31
Q

What is the Port Number for :
Protocol - TCP
Application - Secure Shell ( SSH )

A
  1. 22
32
Q

What is the Port Number for :
Protocol - TCP
Application - Telnet

A
  1. 23
33
Q

What is the Port Number for :
Protocol - TCP
Application - Simple Mail Transfer Protocol ( SMTP )?

A
  1. 25
34
Q

What is the Port Number for :
Protocol - TCP, UDP
Application - Domain Name Service ( DNS )

A
  1. 53
35
Q

What is the Port Number for :
Protocol - UDP
Application - Dynamic Host Configuration Protocol ( DHCP ) - Server

A
  1. 67
36
Q

What is the Port Number for :
Protocol - UDP
Application - Dynamic Host Configuration Protocol ( DHCP ) , Client

A
  1. 68
37
Q

What is the Port Number for :
Protocol - UDP
Application - Trivial File Transfer Protocol ( TFTP )

A
  1. 69
38
Q

What is the Port Number for :
Protocol - TCP
Application - Hypertext Transfer Protocol

A
  1. 80
39
Q

What is the Port Number for :
Protocol - TCP
Application - Post Office Protocol Version 3 ( POP3 )

A
  1. 110
40
Q

What is the Port Number for :
Protocol - TCP
Application - Internet Message Access Protocol ( SNMP )

A
  1. 143
41
Q

What is the Port Number for :
Protocol - UDP
Application - Simple Network Management Protocol ( SNMP )

A

1.161

42
Q

What is the Port Number for :
Protocol - TCP
Application - Hypertext Transfer Protocol Secure ( HTTPS )

A

1.443

43
Q

What is the code for verify connections to prevent major security threat in unexplained TCP connections

A
  1. netstat
44
Q

What is configured when each application process running on a server?

A
  1. Port Number
45
Q

An individual server cannot have what within the same transport layer services?

A
  1. 2 services assigned to the same port number
46
Q

What does it means that an active server application assigned to a specific port is considered open?

A
  1. The transport layer accepts, and processes segments addressed to that port.
  • Any incoming client request addressed to the correct socket is accepted, and the data is passed to the server application
47
Q

What is the step for TCP connection establishment ? ( 3 )

A
  1. The initiating client requests a client-to-server communication session with the server
  2. The server acknowledges the client-to-server communication session and requests a server-to-client communication session
  3. The initiating client acknowledges the server-to-client communication session
48
Q

List out the steps for TCP Session Termination

A
  1. When the client has no more data to send in the stream, it sends a segment with the FIN flag set
  2. The server sends an ACK to acknowledge the receipt of the FIN to terminate the session from client to server
  3. The server sends a FIN to the client to terminate the server-to-client session
  4. The client responds with an ACK to acknowledge the FIN from the owner
49
Q

What are the functions for TCP Three-Way-Handshake Analysis?

A
  1. It establishes the destination device is present on the network.
  2. It verifies that the destination device has an active service and is accepting requests on the port number that the initiating client intends to use.
  3. It informs the destination device that the source client intends to establish a communication that port number.
50
Q

What will happen after the communication is completed ? ( 2 )

A
  1. Sessions are closed
  2. Connection is terminated
51
Q

What enable TCP reliability function? ( 2 )

A
  1. Connection
  2. Session Mechanisms
52
Q

List out the six control bit flags

A
  1. URG ( Urgent )
    • Urgent pointer field significant
  2. ACK ( Acknowledgement )
    • Acknowledgement flag used in connection establishment and session termination
  3. PSH ( Push )
    • Push function
  4. RST ( Reset )
    • Reset the connection when an error or timeout occurs
  5. SYN ( Synchronize )
    • Synchronize sequence numbers used in connection establishment
  6. FIN ( Finish )
    • No more data from sender and used in session termination
53
Q

What can TCP help ( Reliability ) ?

A
  1. 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.
54
Q

What will happen no matter how well designed a network is?

A
  1. Data loss occasionally occurs
  • TCP provides methods of managing these segment losses. Among these is a mechanism to retransmit segments for unacknowledged data
55
Q

What feature that host operating system today typically employed?

A
  1. Selective Acknowledgement ( SACK )
  • Negotiated during the Three-Way Handshake
  • If both hosts support SACK, the receiver can explicity acknowledge which segments ( bytes ) were received including any discontinuous segments
56
Q

What is flow control?

A
  1. The amount of data that the destination can receive and process reliably
57
Q

What does Flow Control maintain?

A
  1. The realiability of TCP transmission by adjusting the rate of data flow between source and destination for a given session
58
Q

What does Maximum Segment Size ( MSS ) defined for?

A
  1. The maximum amount of data that the destination device can receive
  • A common MSS is 1460 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.
  • 1500 minus 60 (20 bytes for the IPv4 header and 20 bytes for the TCP header) leaves 1460 bytes.
59
Q

What will happen when congestion happen on a network?

A
  1. it results in packets being discarded by the overloaded router
  • To avoid and control congestion, TCP employs several congestion handling mechanisms, timers, and algorithms.
60
Q

How does UDP provides low overhead data transport?

A

1.It has a small datagram header and no network management traffic

61
Q

What is the characteristics of UDP ? ( 3 )

A
  1. Does not track sequence numbers the way TCP does
  2. UDP has no way to reorder the datagrams into their transmission order
  3. UDP simply reassembles the data in the order that it was received and forwards it to the application