tcp(6)
-
[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 -
[ํ์คํ] TCP Socket programming (1:1)
Network Socket Network Socket is an internal endpoint for sending or receiving data within a node on a computer network. a representation of this endpoint in networking software (protocol stack) such as an entry in a table (listing communication protocol, destination, status, etc.), and is a form of system resource. 4๊ณ์ธต์ ๊น๊ณ , Application ์ด์ผ๊ธฐํ๋ค. IP ์ฃผ์ + ํฌํธ ๋ฒํธ -> socket address 4๊ณ์ธต๊ณผ 3๊ณ์ธต์ ์ด์์ฒด์ ์์ ์๋ค..
2023.04.12 -
[ํ์คํ] TCP - connection-oriented protocol
Transmission Control Protocol TCP is a connection-oriented protocol it creates a virtual connection between two TCPs to send data. In addition, TCP uses flow and error control mechanisms at the transport level. ์๋ฌ ๊ฒ์ถ, ๋ณต๊ตฌ ๋ฐ ํ๋ฆ ์ ์ด(Layer 4)์ ์ถฉ์คํ ํต์ ํ๋กํ ์ฝ TCP ํด๋ผ์ด์ธํธ - ์๋ฒ ๊ฐ ์ฐ๊ฒฐ ์์ฒญ, ์๋ต, ์ต์ข ๊ฒฐ์ ์๋ฌ ๊ฒ์ถ, ํ๋ฆ ๊ด๋ จ ๋ฉ์ปค๋์ฆ์ด ์๋ค. ์ผ๋ฐ์ ์ธ ๋์์ ์คํธ๋ฆฌ๋ฐ TCP(์๋ฌ ๊ฒ์ถ ๋ฐ ๋ณต๊ตฌ) or UDP(๋นจ๋ฆฌ ๋นจ๋ฆฌ) ๋ ์ค ํ๋๋ฅผ ์ฐ๋ ์๊ด ์๋ค. -> TCP๋ฅผ ์ ๋ฒํผ๋ง - ์ค๋ฅ๊ฐ ์๋๋ผ, ๋ฒํผ์..
2023.04.12 -
[ํ์คํ] 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