Socket Communication


<aside> 🎫

소켓 함수 호출 순서(UDP)


image.png

</aside>

<aside> 🥼

바이트 순서 함수


<aside> 🛤️

TCP/IP Packet Transmission


image.png

<aside> 🛤️

TCP/IP 패킷 송신 - Driver와 NIC


image.png

  1. Build send descriptors(TX Ring 생성)
  2. Tell NIC There are New Descriptors(NIC에 알림)
  3. Fetch(DMA)descriptors
  4. Fetch(DMA)packet
  5. Transmit Packet
  6. Update DMA State Block
  7. Interrupt

<aside> 🏸

TCP/IP 패킷 수신 - Driver와 NIC


image.png

  1. Allocate Packet Buffers and Build Receive Descriptors(RX Ring 생성)
  2. Tell NIC There Are New Descriptors(NIC에 알림)
  3. Fetch (DMA) Descriptors
  4. Packet Arrives
  5. Write (DMA) Packet
  6. Write (DMA) Receive Return Descriptor
  7. Interrupt

<aside> 🧤

DMA란


<aside> 🩰

Interrupt vs Polling




NAPI