udp(5)
-
[FreeBSD] Network Layer Protocols, TCP/UDP and Bootstrapping
2.13 Network-Layer ProtocolsMost of the communication domains supported by the socket IPC mechanism provide access to network protocols. These protocols are implemented as a separate software layer logically below the socket software in the kernel. The kernel provides many ancillary services, such as buffer management, message routing, standardized interfaces to the protocols, and interfaces to ..
2024.07.06 -
[Computer Network] Chap8. Transport layer (1)
8. Transport layer 1 - 3๊ณ์ธต์ด ์ปดํจํฐ๋ ์ฐพ์๊ณ , 4๊ณ์ธต์ destination software๋ฅผ ์ฐพ๋ ๊ณผ์ (process to process) - ํ ํ๋ก์ธ์ค์์ ๋ค๋ฅธ ํ๋ก์ธ์ค๋ก packet์ ์ ๋ฌํ๊ธฐ ์ํ์ฌ - ๊ฐ์ฅ ์ ๋ช ํ ๊ฒ์ ํด๋ผ์ด์ธํธ / ์๋ฒ ๊ตฌ์กฐ / ์ปดํจํฐ 2๋์ ํต์ - ๋ณธ์ธ์ด ์์ฒญํ ๋, ๋ด๊ฐ local host / ์๋ํธ์ด remote host + ์ปดํจํฐ ์์ ์ํํธ์จ์ด, process๋ฅผ ์ง์นญํ๊ฒ ๋จ -> local process & remote process - Port number – ํธ์คํธ ์ด์์ฒด์ ์์์ ๋์๊ฐ๋ ๋ค์ํ ํ๋ก์ธ์ค, ํ๋ก๊ทธ๋จ์ ์๋ณํ๋ ๋ฒํธ (16 bit int) + ๋ง์ด ์ฌ์ฉํ๋ ํ์ค SW ํ๋ก๊ทธ๋จ์ ๋ฏธ๋ฆฌ 1024๊ฐ ์ง์ -> ์ด์ธ์ ๊ฐ์ ์์๋ก..
2023.12.19 -
[ํ์คํ] TCP ๋น๋๊ธฐ์ socket server programming
socketserver์ ๊ธฐ๋ฐ์ผ๋ก ํ ๋น๋๊ธฐ์ 1:N programming [์ ๊ทผ1] Socket API ๊ธฐ๋ฐ ๊ฐ๋ฐ Socket API๋ ๋๋ถ๋ถ์ ํ๋ก๊ทธ๋๋ฐ ์ธ์ด์์ ์ ์ฌํจ Socket API๋ง์ผ๋ก 1:N ์๋ฒ๋ฅผ ๊ตฌํํ๋ ๊ฒ๋ ๋น์ฐํ ๊ฐ๋ฅํจ 40๋ ์ ํต์ ์์กฐ ๋ง์ง ํ๋ก๊ทธ๋๋ฐ [์ ๊ทผ2] ์ธ์ด๋ณ ์ฐจ๋ณํ ๋ Socket ๊ธฐ๋ฅ์ผ๋ก ๊ฐ๋ฐ ์ต์ ํ๋ก๊ทธ๋๋ฐ ์ธ์ด๋ ๋ณด๋ค ํฅ์๋ Socket ๊ธฐ๋ฅ์ ์ ๊ณตํจ ์ต์ ํ๋ก๊ทธ๋๋ฐ ์ธ์ด์ Socket ๊ธฐ๋ฅ์ผ๋ก ๋น ๋ฅธ ๊ฐ๋ฐ๊ณผ ์์ ์ ์ธ ์ฑ๋ฅ ์ ๊ณต์ด ์ฉ์ดํจ ์ด๊ฑด ์ธ์ด์ ๋ฐ๋ผ ์์ ์๋ ์๊ณ , ์์ ์๋ ์๋ค. ex) cpp ์ด๋ฐ๊ฑฐ ๋ชปํ ์ ์๋ค. [๋ณธ ๊ฐ์์ ์์ ] Python์ ๋ํ [์ ๊ทผ2]๋ก ๊ตฌํ socketserver๋ฅผ ํตํด ์ฝ๊ฒ Socket ์๋ฒ ๊ฐ๋ฐ์ด ๊ฐ๋ฅ Multi-thr..
2023.04.16 -
[ํ์คํ] UDP - User Datagram Protocol
UDP User Datagram Protocol The User Datagram Protocol (UDP) is called a connectionless, unreliable transport protocol. It does not add anything to the services of IP except to provide process-to-process communication instead of host-to- host communication. If UDP is so powerless, why would a process want to use it? Very simple protocol using a minimum of overhead if a process wants to send a sma..
2023.04.11 -
[ํ์คํ] Transport Layer 4 / Process-to-Process Delivery
Process-to-Process Delivery The data link layer is responsible for delivery of frames between two neighboring nodes over a link. This is called node-to-node delivery. -> ์๋ก ๋ค๋ฅธ ๊ณ์ธต, ex) 1 - 2 ๊ณ์ธต ๊ฐ ์ฃผ๊ณ ๋ฐ์ ๋ The network layer is responsible for delivery of datagram between two hosts. This is called host-to-host delivery. -> ๋์ผํ ๊ณ์ธต๋ผ๋ฆฌ ์ฃผ๊ณ ๋ฐ์ ๋ (host) ์์ ์ดํด๋ณธ 1,2 ๊ทธ๋ฆฌ๊ณ 3 ๊ณ์ธต ์ด์ผ๊ธฐ The transport layer is respons..
2023.04.11