Transport Layer Protocol Flashcards
1
Q
Port
A
- Unique indentification number used to direct incoming packets to appropriate service or application
- Multiple can be run simultaneously
- 0-1023 are preassigned to well known server applications
- Others must be assigned to applications to track requests
2
Q
Socket
A
- Port number used in conjunction with source IP.
- Each socket is bound to software purpose.
- Only one process can operate a socket at a given time
- Connection is formed when client socket requests service from server socket.
- Server socket can serve a number of client sockets.
3
Q
TCP
A
Transmission Control Protocol
- Works at Transport layer to provide connection-orients, guaranteed communications with acknowledgements confirm delivery.
- Can be used for Unicast only
- Missing packets can be resent
4
Q
TCP Segment
A
- Data from application layer is divided up and given header
- Becomes payload for underlying Datagrams
5
Q
Source Port
A
- Part of TCP segment header
- TCP Port Sending Host
6
Q
Destination Port
A
- Part of TCP segment header
- TCP port of destination host
7
Q
Sequence Number
A
- Part of TCP segment header
- ID number of the current TCP segment
- Allows receiver to rebuild message and deal with out of order packets
8
Q
ack number
A
- Part of TCP segment header
- Sequence number of next segment expected from other host
- allows for retransmission of missing data
- Negative Acknowledgment (NAK or NACK) forces retransmission
9
Q
Data length
A
- Part of TCP segment header
- Length of TCP Segment
10
Q
Flags
A
- Part of TCP segment header
- Type of conent in segment (ACK, SYN, FIN etc.)
11
Q
Window
A
- Part of TCP segment header
- Amount of data host is willing to receive before sending another ack
- TCPs flow control can slow down traffic if one side is getting overwhelmed
12
Q
Checksum
A
- Part of TCP segment header
- Ensures validity of segment
- Calculated on the TCP header and payload but also part of IP header (source and destination addresses)
- Process is different to calculate for IPV4 and v6
13
Q
Urgent Pointer
A
- If urgent data is being sent, specifies end of that data in segment
14
Q
Options
A
- Allows further connection parameters to be configured
- Most important is Maximum Segment Size
- Allows host to specify the size of segments to minimize fragmentation
15
Q
TCP Handshake 1
A
- Client sends segment with TCP flag SYN set to server with randomly generated number sequence. Client enters SYN-SENT state
16
Q
TCP Handshake 2
A
- Server (currently in LISTEN state) responds with SYN/ACK segment
- segment contains random number sequence
- Server enters SYN-RECEIVED state
17
Q
TCP Handhsake 3
A
- Client responds with an ACK segment
- Client assumes the connection is ESTABLISHED
18
Q
TCP Handshake 4
A
Server opens connection with Client and enters ESTABLISHED state