The Transport Layer Flashcards
What does the transport layer do?
It is an end to end layer that provides services to the application layer. It isolates the application layer from technology, design and imperfections of lower layers
What does the data link layer do?
This moves frames from one end of the wire to the other
What does the network layer do?
It gets packets from the source all the way to the destination. Overall it provides routing
What are the differences between the transport layer and the network layer?
The transport layer code runs entirely on users’ machines but the network layer mostly runs on the routers which are operated by the carrier.
Users have no real control over the network layer so they cannot solve the problem of unreliable network layer service by using better routers or putting more error handling in the data link layer but in the transport layer lost packets and mangled data can be detected and compensated for.
The transport layer has abstraction because transport service primitives can be implemented as library procedures in order to make them independent of the network service primitives.
What services and protocols does the transport provide?
Logical communication between app processes running on different hosts.
Transport protocols run in end systems. Which means it is typically handled by processes in the host compute OS and not routers
Allows more than one transport protocol to be available to apps TCP, UDP
What is a socket?
The combination of an IP address and a port number
What is multiplexing?
This is where multiple distinct transport sessions all using the same IP address connect to different servers/clients. Each transport session uses a different port.
What is the breakdown of multiplexing/demultiplexing?
Each IP packet has a source IP address, destination IP address.
Each IP packet carries 1 transport layer segment/datagram
Each transport layer segment/datagram has source, destination port number
Host uses network layer IP address & transport layer port number to direct segment/datagram to appropriate socket
What does the UAPRSF stand for in TCP segment structure?
U- URG: urgent data
A- ACK #
P - PSH push data now
RSF - RST, SYN, FIN which are connection establishment (setup, teardown commands)
What does checksum mean in TCP segment structure?
Internet checksum such as UDP (User datagram protocol)
What is the receive window in TCP segment structure?
This is the # of bytes the rcvr is willing to accept
What is the sequence number and acknowledgement number counting by in TCP segment structure?
It is counting by bytes of data and not segments
What does ver, head len, type of service, time to live, upper layer and length mean in IP packet format?
ver - the ip protocol version number
head len - the header length
type of service - type of data
time to live - max number remaining hops this is decremented at each router
upper layer - the upper layer protocol to deliver payload to
length - total packet length
How much overhead with TCP?
20 bytes of TCP + 20 bytes of IP = 40 bytes + app layer overhead
What are ports 21, 23, 25, 69, 79, 80, 110 and 119 used for?
21 - FTP and is used for file transfer
23 - Telnet and is used remote login
25 - SMTP and is used for E-mail
69 - TFTP and is used for Trivial File Transfer Protocol
79 - Finger and is used for lookup info about a user
80 - HTTP and is used for World Wide Web
110 - POP-3 and is used for remote e-mail access
119 - NNTP and is used for USENET news