본문 바로가기

네트워크

네트워크 계층

기능

  1. 포워딩
    • Data plane
    • local, per-router function 
    • 라우터 input으로 들어온 datagram이 어떤 라우터 output port 로 포워딩될지 관여한다.
  2. 라우팅(전체경로)
    • Control plane
      1. traditional routing algorithm : implemented in routers
      2. software-defined networking(SDN) : implemented in (remote) servers
    • network-wide logic
    • datagram이 어떤 라우터들을 거쳐서 출발지에서 도착지로 가는지 관여한다.

 

 

라우터

: 패킷의 경로를 결정해주는 컴퓨터

 

  • 라우터 구조

 

https://electronicspost.com/router-architecture/

 

 

  • input processing

https://www.notion.so/4-3-What-s-Inside-a-Router-71f82b5b6cd346f88f54fb18ee2bf44b

physical layer(line termination)  -> data link layer -> queue -> switch fabric 루트로 datagram이 올라온다. 

- Lookup

   : datagram의 헤더 필드 정보를 가지고, forwarding table(in input port memory)를 참고해서 output port를 찾는다.

- Forwarding, Queuing

   : datagram이 switch fabric으로 포워딩 되는 속도보다 더 빠르게 도착하면 Queue에 저장된다. 

  • forwarding 방법에는 두가지가 있다
    1. Destination-based forwarding
    2. Logest prefix matching

 

  • Switching fabrics

세가지 타입이 있다. 

  1. memory
  2. bus
    • 동시 접속이 어려움
  3. crossbar
    • switching via interconnection network
    • input과 output 모든 경로에 연결

 

참고 : https://inyongs.tistory.com/65

'네트워크' 카테고리의 다른 글

소켓  (0) 2022.05.05
컴퓨터 네트워크와 인터넷  (0) 2022.05.05
OSI 참조 모델(OSI 7 layer, Open Systems Interconnection reference model)  (0) 2022.04.11
인터넷, tcp/ip  (0) 2022.04.11
소켓 프로그래밍(TCP/IP socket)[JAVA]  (0) 2022.03.31