카테고리 없음

[CS][컴퓨터 네트워킹 하향식 접근] Chapter3.2 멀티플렉싱, 디멀티플렉싱 (Multiplexing, Demultiplexing)

y-seo 2024. 1. 21. 17:51
 
 

Multiplexing과 Demultiplexing

sender에서 multipelxing을 하고, receiver에서 demultiplexing을 한다고 이야기 한다.

 

 
 

Connectionless demultiplexing의 과정

  • UDP에 관한 이야기이다.
  • socket을 만들 때 host의 local port 설정 필요하다.
  • UDP soket으로 보내기 위한 datagram을 만들 때 필요한 것
    • destination IP address
    • destination Port number(#)
  • receiving host가 UDP segment를 받으면 destination port # 를 체크하고,  그 port#를 가지고 있는 socket으로 보낸다.
  • 같은 dest, port#을 가졌지만 다른 source IP 주소 또는 source port#을 가진 IP/UDP datagram은 같은 socket으로 가게 한다.

 

 
 

Connection-oriented demultiplexing의 과정

  • TCP에 관한 이야기이다.
  • socket을 구분하려면 아래 4가지가 필요하다.
    • source IP address
    • source port number
    • dest IP address
    • dest port number
  • demux란, receiver가 4 tuple을 모두 사용하여 segment가 적절한 socket에 가도록 하는 것이다.
  • server는 여러 개의 TCP socket을 서비스할 수 있다
    • 각각의 socket은 위 4가지로 구분이 된다.
    • 각각의 한 client에게만 서비스 한다 = association
  • receiver 입장에서는 demultiplexing이 더 중요하다.