Lesson 9: Explaining Transport Layer Protocols Flashcards
What is the purpose of the transport layer protocols (Layer 4)?
Establishes end-end connections by linking the application layer to the network.
What is a port?
A unique number assigned to a particular application protocol used to identify the service once the packet has been routed to the destination
What is a well known port?
Port numbers 0-1023
What is the highest port number available?
65,535
Define a socket
The combination of a ip address and port number
What is the difference between a server socket and a client socket?
A server socket can support multiple connections from multiple client sockets
Define TCP (Transmission Control Protocol)
Transport layer protocol providing connection-oriented guaranteed communication using acknowledges to ensure delivery
How does TCP (Transmission Control Protocol) function?
TCP divides data from an application into segments (based on MTU) each with its own header while providing acknowledgements of receipt, sequencing, and retransmissions
What are the fields in a TCP datagram?
- Source/Destination port
- Sequence number
- Ack number
- Data length
- Flags
- Window
- Checksum
- Options
What is the purpose of the sequence number field in a TCP datagram?
The seq number is sent by the TCP initiator identifying the current segment of data allowing the receiver to rebuild the message with out of order packets
What is the purpose of the ack number field in a TCP datagram?
The seq number is sent by the TCP server/recipient, which is the sequence number of the previous segment with an increment of 1 (+1), and lets the original sender know if retransmission of the data is necessary
What is the purpose of the data length field in a TCP header?
Defines length of TCP segment
What is the purpose of the flags field in a TCP header?
Identifies type of content in the segment (ACK, SYN, FIN, etc.)
What is the purpose of the window field in a TCP header?
The amount of data the host is willing to receive before sending another acknowledgement allowing one side of the communication to tell the other side to slow the sending rate
What is the purpose of the urgent pointer field in a TCP header?
Identifies if urgent data is being sent