Transport Layer Protocols Flashcards
What is the purpose of the transport layer?
Provides network access to applications and their data
True or False: IP provides reliability for packet transmission
False! “if it doesn’t make is, oh well”
What are the two core transport layer protocols in the TCP/IP Protocol Suite?
Transmission Control Protocol(TCP)
User Datagram Protocol (UDP)
What is a network process assigned?
a port
What does a process listening on a port mean?
the port is open
What services does TCP provide
Stream-Oriented, Connection-Oriented, reliability, and flow control
How is connection-oriented service provided?
providing explicit connection establishment and teardown
How is reliability provided?
detection of data loss, data errors, and retransmission of data
How does TCP messaging work?
1) every byte/octet if data sent by TCP is given a sequence number
2) data is sent as a stream of bytes
3) all or a portion of the streamed data is packages into a TCP segment
4) sequence number field is set to the first sequence number in the segment
What does flow control do?
window field tells sender how much data receiver can handle, since TCP buffers can fill up and you need time to catch up with processing -> modified the flow of data
What services does UDP provide? (4)
message oriented, connectionless, no reliability, port information
How is the UDP connectionless service provided?
each datagram is unique and not see as a part of a defined connection
How does UDP messaging work? (3)
1) data is packaged into a discrete message by the application
2) application sends the message to UDP
3) entire message becomes a UDP datagram
Why is UDP preferred over TCP?
TCP is expensive
Why is TCP expensive? (4)
)connection establishment takes time
)ACKing data takes time
)retransmission takes time
)flow control times time