Goal
- 정보를 안정적으로 보내기 위함
- limited packet’s size
- end-end communication ← 실제로 sender ↔ receiver간의 data를 주고받는 계층이기 때문
Transport services and protocols
- Logical communication → end-end communication이라고 불리는 것과 같음
- sender : segment (segmentation packet)을 보냄
- receiver : 받은 segment를 다시 이어붙임
- 대표적인 Protocol : TCP, UDP
Transport layer VS Network layer
- Transport layer : process ↔ process간의 communication
- Network layer : host ↔ host간의 communication
Transport layer Actions
- Application layer에서 내려온 payload에 header를 붙여 network layer로 내려보냄
- header에는 segmentation packet을 붙이라는 지침을 함께 써놓음
Multiplexing (sender), Demultiplexing(receiver)
- Multiplexing : segmentation packet을 destination에게 보내기 위해 처리하는 작업
- Destination address, Port number(socket)
- add transport header
- Demultiplexing : 받은 정보를 확인하기 위해 역으로 데이터를 해석하는 작업
Connectionless Demultiplexing (UDP)
- 보내는 이는 중요하지 않음
- 받는사람, Destination의 address, Port number 필수
- dest address, port number는 같지만, source IP가 달라도 같은 Port로 전송됨
Connection-Oriented Demultiplexing (TCP)
- source, destination의 정보가 둘 다 필요함
- Source’s address, Port number
- Destination’s address, Port number
Summary
- UDP : connectionless demultiplexing (Only destination’s address, port number)
- TCP : connection-oriented demultiplexing (Source’s info, Destination’s info)
UDP (User Datagram Protocol)
UDP (User Datagram Protocol)
Reliable data transfer
RDT : Reliable Data Transfer
TCP (Transmission Control Protocol)
TCP (Transmission Control Protocol)