Chapter 3: Transport Layer 3.1 - 3.4 Flashcards
Just for reminder , what are the 5 layers in protocol stack ?
From top to bottom : Application, Transport, Network, Link, Physical
How is transport layer differs from network layer?
Transport layer protocol provides logical communication between processes running on different hosts
Network layer protocol provides logical communication between hosts
Recall two distinct transport layer protocol UDP and TCP, what are the characteristics of these protocols?
UDP : unreliable, connectionless service
TCP : reliable, connection oriented service
What is the E2E(End to End) argument ?
“functions placed at lower levels may be
redundant or of little value when compared to the cost of providing them
at that low level.”
Examples of E2E:
Usually are things that are difficult to implement at low levels:
error detection, duplicate supression, FIFO ordering
E2E Pros and Cons:
Pros : reduces network complexity, reduces need for redundant checks, simplifies diagnosis of network bugs, keeps authority over complex functions local
Cons: more responsibility lies within the development
Briefly explains Multiplexing/Demultiplexing
Multiplexing (at sender): handle data from multiple sockets , add transport header
Demultiplexing (at receiver): use header info to deliver received segments to correct socket
Demultiplexing works by receiving IP datagrams, then do what with that?
host uses IP address & port numbers from each datagrams and direct segment to appropriate socket
How connectionless demultiplexing works ?
hosts creates datagram to send into UDP socket, must specified port and IP. Then when receiving host receives segment, check the port and IP address and directs appropriately.
In, connection-oriented demultiplexing, requires TCP socket, which requires 4-tuple:
- Source IP address
- Source port number
- Destination IP address
- Destination IP number
What is demux in connection oriented demultiplexing?
receiver uses all four values to direct segment to appropriate socket
What is http server default port number ?
80
There is no handshaking between server and client in UDP , and each segment is handled independently, which is why UDP is ___
connectionless
UDP segment header consists of
source port, dest port, length, checksum, application data
What is UDP checksum used for?
It is used for detecting error in transmitted segments