ComputerScience(126)
-
[ํ์คํ] 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 -
[ํ์คํ] 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 -
[์ด์์ฒด์ ] CFS in Linux
CFS Completely Fair Process Scheduling in Linux
2023.04.10 -
[ํ์คํ] 3 Layer Router, IP address, DNS
Packetizing packetizing -> ์์์ ๋ฐ์ ๊ฒ์, ๋ณธ์ธ์ด ํด์ผํ ์ผ, ์ฆ ์ ๋ณด๋ฅผ ๋ฃ๋๋ค. Encapsulating the payload in a network- layer packet at the source and decapsulating the payload from the network-layer packet at the destination In other words, one duty of the network layer is to carry a payload from the source to the destination without changing it or using it. The network layer is doing the service of a carrier such..
2023.04.08 -
[ํ์คํ] CSMA/CD _ Random Access Protocols in MAC Layer
CSMA / CD (์ด๋๋ท, ์ด๊ณ ์ ์ธํฐ๋ท, ๊ด ๋, IEEE 802.3) Carrier Sense Multiple Access with Collision Detection (CSMA/CD) augments the algorithm to handle the collision. In this method, a station monitors the medium after it sends a frame to see if the transmission was successful. If so, the station is finished. If, however, there is a collision, the frame is sent again. ํ ์ค์ ์ฌ๋ฌ ๋ช ์ด ๋์์ ์ฌ์ฉํ๋ค. ์๊ธฐ ์ ์ ๋๊ฐ ์๊ณ ์๋์ง ํ์ธ..
2023.04.08 -
[ํ์คํ] OSI 7 Layer
* OSI 7 Layer ์ปดํจํฐ ์ํํธ์จ์ด์ ํ๋์จ์ด๋ฅผ ํต์ ๊ด์ ์์ ์ดํดํ๋ ๋ชจ๋ธ The Open Systems Interconnection model (OSI model) is a conceptual model that characterizes and standardizes the communication functions of a telecommunication or computing system without regard to its underlying internal structure and technology. Its goal is the interoperability of diverse communication systems with standard protocols. The model pa..
2023.04.08 -
[์ด์์ฒด์ ] GPGPU for Deep Learning 2023.04.02