internet protocol stack (2) Flashcards
(13 cards)
what is the main function of the transport layer
to provided end to end communication between application process on different host
name 2 transport layer protocol
udp ( user datagram protocol)
tcp (transmission control protocol)
what do port number specify
specify processes running on a host
which protocol is connection oriented
tcp
what does a socket consists in a tcp
a 4 tuple - source ip, source port, destination ip, destination port
how does the receiver know which app a segment belongs to
it checks the destination port number in the transport header
give an example of an application that commonly uses udp
DNS, streaming video
what field in the tcp header is used for control flow control
the receive window (rwnd)
what is the purpose of the tcp checksum
to detect bit level errors in the segment
what does the tcp flow control prevent
prevents the sender from overwhelming the receiver buffer
why is the udp considered best effort
it doesn’t guarantee delivery, order or error correction
why do some application still use udp despite its unreliabilty
it is faster and suitable for apps that tolerate some loss (like video or audio streaming)
whats the difference between flow control and congestion control
flow control
It is between the sender and the receiver
Prevents buffer overflow
congestion control
between the sender and the network
prevents network overload