๐ก ๊ฐ์ ๋ชฉํ
- Protocol Architecture์ ํ์์ฑ์ ์ดํดํ๋ค.
- Layered Protocol Architecture์ ๊ธฐ๋ณธ ์๋ฆฌ๋ฅผ ์ดํดํ๋ค.
- ํ์ค์ธ Standard Protocol Architecture๋ฅผ ๊ธฐ์ตํ๋ค.
โช๏ธ Protocol Architecture์ ํ์์ฑ


- ๋ฐฐ๊ฒฝ ์ํฉ
: Communcation System is Very Complex. So It's hard to understand it easily. ๐ก - ํด๊ฒฐ ๋ฐฉ๋ฒ
: Do it 'Divide and Rule/Conquer'.
: (1) Make it in to several subtasks.
: (2) Stack subtasks and make STACK OF LAYERS. → "Layered Architecture (๊ณ์ธต ๊ตฌ์กฐ)"
โช๏ธ Layered Architecture Principle (๊ณ์ธต ๊ตฌ์กฐ ์์น)
Communication System์ Layered Architecture๋ ๋ฐ๋์ ๊ท์ ๋ ์์น๋ค์ ์ง์ผ์ผ ํ๋๋ฐ ์ด๋ ์๋์ ๊ฐ๋ค.
- ๊ฐ ๋ ์ด์ด๋ ์ฃผ์ด์ง ํต์ ๊ธฐ๋ฅ์ ์ํํด์ผ ํ๋ค.
- ๊ฐ ๋ ์ด์ด๋ ์ง์ ์ ์ธ ๋ฐ๋ก ์๋ ๋ ์ด์ด(-1)์๋ง ์์กด์ ์ด์ด์ผ ํ๋ค.
- ๊ฐ ๋ ์ด์ด๋ ์ง์ ์ ์ธ ๋ฐ๋ก ์ ๋ ์ด์ด(+1)์๋ง ์๋น์ค๋ฅผ ์ ๊ณตํด์ผ ํ๋ค.
- ํ ๋ ์ด์ด์ ๋ณ๋์ด ํ ๋ ์ด์ด์ ๋ณ๋์ ์ํฅ์ ๋ฏธ์น์ง ์์์ผ ํ๋ค.
์ฆ, ์ด ์์น๋ค์ ๊ดํตํ๋ ํต์ฌ ๊ฐ๋ ์ ๋ฐ๋ก ๋ชจ๋์ฑ์ด๋ผ๊ณ ๋ณผ ์ ์๋ค. ๊ฐ๋ฅํ ์ต๋ํ subTask๋ก ์ชผ๊ฐ๊ณ ํ ๋ ์ด์ด์์ ์ํธ์ฐ๊ด์ฑ์ ์ ๊ฑฐํ์ฌ ๋ณด๋ค ๋ ๋ฆฝ์ ์ผ๋ก ๋์ํ๊ฒ ํด, ์๋ฌ ๋ฐฉ์ง ๋ฐ ์ ์ง๋ณด์์ ์ฉ์ดํ๊ฒ ํ๊ณ ์ ํ๋ ๊ฒ์ด๋ค. ์ด์ ์ํํธ์จ์ด๊ณตํ ์์ ์์ ๋ฐฐ์ ๋ ๊ฒฐํฉ๋(coupling), ์์ง๋(cohesion)์ ๋๋ํ ๋ค์ด์๋ ์บก์ํ, Abstaction ๋ฐ์์ ๊ฐ๋ ๋ค ๋ํ ์ด ๋งฅ๋ฝ๊ณผ ๊ฐ์ ๋งฅ๋ฝ์ด๋ผ๊ณ ์ดํดํ๋ฉด ๋ ๊ฒ ๊ฐ๋ค.
์์ ๊ฐ์ ์ด์ ๋ก Communication System์ ์ต๋ํ ์๊ฒ ์ชผ๊ฐ์ด ๋ถ๋ฆฌํ๋ค. ์ด์ ํ๋์ communication system์ด ์๋ ๊ฐ๋ณ์ Layer๋ค๋ง์ด ์กด์ฌํ๋ฉฐ ์ด๋ค์ ์ง์ ์ ์ฐ๊ด์ด ์๋ ๊ด๊ณ์ ์ผ์ด์ค๊ฐ ์๋ ํ Independency๋ฅผ ๊ฐ์ง๋ค. ๊ทธ๋ ๋ค๋ฉด ์ด๋ Layer์ Layer์ ํต์ ์ ์ด๋ป๊ฒ ์ด๋ฃจ์ด์ง ์ ์์๊น?

๋ง์ฝ ์ด๋ค ์๋ฃ๋ฅผ ๊ฐ๊ฐ์ ์ปดํจํฐ์์ ๋ค๋ฅธ ์ปดํจํฐ๋ก ์ฃผ๊ณ ๋ฐ์ผ๋ ค๊ณ ํ๋ค๊ณ ๊ฐ์ ํด๋ณด์. ์ด๋ A ์ปดํจํฐ๋ 8๋นํธ ์๋ฃ๋ฅผ ์ฌ์ฉํ๊ณ B์ปดํจํฐ๋ 7๋นํธ ์๋ฃ๋ฅผ ์ฌ์ฉํ๋ค. ๊ทธ๋ ๋ค๋ฉด ์๋ฃ๋ฅผ ๋ณด๋ด๋๋ผ๋ ์ฌ์ฉํ ์ ์๊ธฐ์ ์๋ฃ๋ ํ๊ธฐ์ฒ๋ถ์ด ๋์ด๋ฒ๋ฆฐ๋ค. ๋ณํ์ ํ์ฌ ์ฌ์ฉํ๋ค๊ณ ํ๋๋ผ๋ ์ด๋ ๊ต์ฅํ ๋ฒ๊ฑฐ๋ก์ด ์ ์ฐจ์ผ ๊ฒ์ด๋ค. ์ด ๋๋ฌธ์ ์ด๋ค ํ์์ผ๋ก ์๋ฃ๋ฅผ ์ฃผ๊ณ ๋ฐ์ ๊ฒ์ธ์ง ๋ฑ์ ์ฒดํนํ๋ ์ด๋ ํ ๊ท๊ฒฉํ๋ ์ฝ์์ด ํ์ํ๋ฐ, ์ด๊ฒ์ด ๋ฐ๋ก Protocol์ด๋ค. ์ด๋ More than one layers์์ ํต์ ์ ํ๊ณ ์ ํ๋ฉด protocol ๋ํ layered๋๊ฒ ๋๋๋ฐ ์ด๋ฅผ Protocol Layering์ด๋ผ๊ณ ํ๋ฉฐ ์ด๋ ๊ฒ ํ์ฑ๋ ์ํคํ ์ฒ๋ฅผ ๋ฐ๋ก Layered Protocol Architecture์ด๋ผ๊ณ ํ๋ค.
โช๏ธ Layered Protocol Architecture (LPA)

- Peer layers
: Peer์ด๋ ๋๋ฑํ, ๋๋ฑํ์ด๋ผ๋ ๋ป์ผ๋ก Peer layers๋ ๊ฐ์ ๋ ๋ฒจ์ ๊ณ์ธต์ ์ํ๋ layer๋ค์ ์ผ์ปซ๋ ์ฉ์ด์ด๋ค. - Protocol
: Set of communication rules between both systems & peer layers
: ์ ์ชฝ์ ์์คํ ํน์ peer layer๋ค๊ฐ์ ํต์ ์ ์ํด ํ์ํ ๊ท์น/๊ท๊ฒฉ์ด๋ค.
โช๏ธ Protocol
- ์ ์
: a set of Rules or Conventions that allow peer layers to communicate.
: ๊ฐ์ ๊ณ์ธต์ peer layer์์ ํต์ ์ ๊ฐ๋ฅํ๊ฒํ๋ ํต์ ๊ท์ฝ. - 3์์
1. Syntax # ํํ ๋ฐฉ์, ๋ฌธ๋ฒ (Ex. โ)
2. Semantics # ๊ตฌํ, ๊ฐ ์์ฒด (Ex. ์น๋ฆฌ)
3. Timing # Speed matching or Sequencing
โป [์ฐธ๊ณ ] Stack or Suite
โ Stack/Suite
: Set of Communication Protocols, ์ฆ '๋ค์์ ํต์ ๊ท์ฝ๋ค'์ ์ง์นญํ๋ ์ฉ์ด์ด๋ค.
โช๏ธ PDU, SDU, PCI

- PDU(Protocol Data Unit)
: ํ๋กํ ์ฝ ๋ฐ์ดํฐ ์ ๋
: ๋์ผ ํต์ ๊ณ์ธต(peer-to-peer) ๊ฐ์ ์ด๋ฐ/๊ตํ๋๋ ์ ์ฒด ๋ฐ์ดํฐ๋
: ์ค์ ๋ฐ์ดํฐ(SDU) + ์ ์ด ์ ๋ณด(PCI) - SDU(Service Data Unit)
: ํ๋กํ ์ฝ์ ์๋น์ค ๋์
: (N+1๋ก๋ถํฐ) ์ ๋ฌ๋ฐ๋ ์ค์ ๋ฐ์ดํฐ ' - PCI (Protocol Control Information)
: ํ๋กํ ์ฝ ํค๋(Header)
: (N์ ์ถ๊ฐ์ ๋ณด) ํ๋กํ ์ฝ ๊ธฐ๋ฅ ์คํ์ ์ํ ์ ์ด ์ ๋ณด
โช๏ธ Connections in Layered Protocol Architecture(LPA)

- ๋
ผ๋ฆฌ์ ํต์ ๊ฒฝ๋ก (Logical)
: ๊ฐ ๊ณ์ธต์์ Peer๋ค ์ฌ์ด์ ๋ ผ๋ฆฌ์ ์ผ๋ก ์ง์ ์ฐ๊ฒฐ๋์ด ํต์ ํ๋ ๊ฒ์ผ๋ก ๊ฐ์ฃผ. (์ค์ X)
: Ex. Maria(Layer 3) → Ann(Layer 3) - ๋ฌผ๋ฆฌ์ ํต์ ๊ฒฝ๋ก (Physical)
: ๋ฌผ๋ฆฌ์ ์ผ๋ก(์ค์ง์ ์ผ๋ก) ์ก/์์ ์์คํ ์ ๊ณ์ธต ๊ตฌ์กฐ๋ฅผ ๋ฐ๋ผ ๋ฉ์ธ์ง๊ฐ ์ ๋ฌ ๋จ.
: Ex. Maria(Layer 3) → Encrypt(Layer2) → Send(Layer1) → Receive(Layer1') → Decrypt(Layer2') → Ann(Layer3')
โป [์ฐธ๊ณ ] ์ถ๊ฐ ํ๊ธฐ
โช๏ธ Standardized Protocol Architectures
- Standard Protocol์ ํ์์ฑ
: Required for devices to communicate.
: Vendors have more marketable products.
: Customers can insist on standard based equipment.
: (์์ฝ) ํ์ค์ผ๋ก ๊ท๊ฒฉํ๋ Protocol์ด ์๋ค๋ฉด, ํต์ ์ด ๋ถ๊ฐ๋ฅ or ๋ถํ์ํ ์ฒ๋ฆฌ์ ์ฐจ๊ฐ ์๊ตฌ๋ ๊ฒ. → ๋นํจ์จ์ ๐ก - 2๊ฐ์ง ์ข
๋ฅ of standard Protocol
1. De Facto Standard # ์ค์ฌ์ฉ์ ํ์ค
: TCP/IP protocol suite
: Most widely used
2. De Jure Standard # ์ด๋ก ์ ํ์ค for ์คํฐ๋&๋ฆฌ์์น
: OSI(Open System Interconnection) Reference model with 7 Layers
: Developed by the international Organization for Standardization(ISO)
: A conceptual model that characterises and standardises the cmommunication functions
: A theoretical system delivered too late. (not implemented as a real system)
: But it is usally referred to in networking study and research

โช๏ธ OSI 7 Layers โญ์ค์โญ
- OSI 7 Layer
: OSI 7๊ณ์ธต์ด๋, ํต์ ์ด ์ผ์ด๋๋ ๊ณผ์ ์ 7๋จ๊ณ๋ก ๋๋์ด ํ๋ฆ์ ํ์ ํ๊ธฐ ์ฝ๋๋ก ๋ง๋ ํ์ค.

- OSI 7๊ณ์ธต - ๊ณ์ธต๋ณ ํน์ง
1. Physical (PHY)
: OSI 7๊ณ์ธต ์ค ์ตํ์์ธ 1๊ณ์ธต์ผ๋ก ์ ๊ธฐ์ , ๊ธฐ๊ณ์ , ๊ธฐ๋ฅ์ ์ธ ํน์ฑ์ ์ด์ฉํด ๋ฐ์ดํฐ๋ฅผ ์ ์กํ๋ ์ญํ ์ ์ํํจ.
: ํด๋น ๊ณ์ธต์ ๋ฐ์ดํฐ๋ง์ ์ ๋ฌํ๋ฉฐ, ๋ฐ์ดํฐ๋ 0โฝ1์ ๋นํธ์ด(Bit stream)/OnโฝOff์ ์ ๊ธฐ์ ์ ํธ ์ํ๋ก ์ด๋ฃจ์ด์ง.
: ์ฅ๋น๋ก๋ ์ผ์ด๋ธ, ๋ฆฌํผํฐ, ํ๋ธ๊ฐ ์์ผ๋ฉฐ Bit์คํธ๋ฆผ์ผ๋ก๋ Radio Wave, Acoustic Wave, Light ๋ฑ์ด ์์.
2. Data Link
: ๋ฌผ๋ฆฌ์ ์ฐ๊ฒฐ(PHY)์ ํตํ์ฌ ์ธ์ ํ ๋ ์ฅ์น ๊ฐ์ ์ ๋ขฐ์ฑ ์๋ ์ ๋ณด๋ฅผ ์ ์กํ๋ ์ญํ ์ ์ํํจ. #Point-To-Point
: ์์ ํ ์ ๋ณด์ ์ ๋ฌ์ ์ํ์ฌ ๋ฐ์ดํฐ ๋งํฌ ์์ ์ค๋ฅ ์ ์ด ๋ฐ ํ๋ฆ ์ ์ด, ๋๊ธฐํ ๋ฑ์ ๊ธฐ๋ฅ์ด ์กด์ฌํจ.
: MAC ์ฃผ์๋ฅผ ํตํ์ฌ ํต์ ํ๋ฉฐ, ํต์ ์ ๋ฐ์ดํฐ์ ๋จ์๋ ํ๋ ์(Frame)์ด๋ค.
: ์ฅ๋น๋ก๋ ๋ธ๋ฆฌ์ง, ์ค์์น๊ฐ ์์.
3. Network
โป Direct Data Link๋ฅผ ๋ชจ๋ ๋๋จ์ ๋จ๋ง๊ธฐ ๊ฐ์ ์ฐ๊ฒฐํ๋ ๊ฒ์ ๋ถ๊ฐ๋ฅํ๋ค. ๋ฐ๋ผ์ Sharing Link๊ฐ ํ์ํ๋ค.
: ์ค๊ณ ๋ ธ๋(Sharing Link)๋ฅผ ํตํ ์ข ๋จ ๊ฐ์ ์ ์ก์ ์ด๋ป๊ฒ ์ค๊ณํ ๊ฒ์ธ๊ฐ๋ฅผ ๊ท์ ํ๋ ์ญํ ์ ์ํํจ.
: ๋ผ์ฐํ ๊ธฐ๋ฅ์ ๋งก์ ๋ชฉ์ ์ง๊น์ง ๊ฐ์ฅ ๋น ๋ฅด๊ฒ ๋ฐ์ดํฐ๋ฅผ ๋ณด๋ด๋ ๊ฒฝ๋ก๋ฅผ ์ค์ ํ๋ ๊ธฐ๋ฅ์ ์ํํจ.
: IP ์ฃผ์๋ฅผ ํตํ์ฌ ์ปดํจํฐ ๊ฐ์ ํต์ ์ ๊ด์ฌํ๋ฉฐ, ํต์ ์ ๋ฐ์ดํฐ ๋จ์๋ ํจํท(Packet)์ด๋ค.
: ์ฅ๋น๋ก๋ ๋ผ์ฐํฐ, L3 ์ค์์น๊ฐ ์์ผ๋ฉฐ ๋ํ์ ์ธ ํ๋กํ ์ฝ๋ก๋ IP ํ๋กํ ์ฝ์ด ์กด์ฌํ๋ค.
4. Transport
: ์ข ๋จ ๊ฐ ์ ๋ขฐ์ฑ ์๊ณ ์ ํํ ๋ฐ์ดํฐ๋ฅผ ์ ์กํ๋ ์ญํ ์ ์ํํจ. → Network๊ณ์ธต์ IP ํ๋กํ ์ฝ์ ์์ ์ฑ์ ๋ณด์
: ์ข ๋จ ๊ฐ ์ ๋ขฐ์ /ํจ์จ์ ์ธ ๋ฐ์ดํฐ ์ ์ก์ ์ํด ์ค๋ฅ๊ฒ์ถ ๋ฐ ๋ณต๊ตฌ, ํ๋ฆ์ ์ด์ ์ค๋ณต๊ฒ์ฌ ๋ฑ์ ๊ธฐ๋ฅ์ ์ ๊ณตํจ.
: Port ๋ฒํธ๋ฅผ ํตํ์ฌ ๋ฐ์ดํฐ ํต์ ์ ๊ด์ฌํ๋ฉฐ, ํต์ ์ ๋ฐ์ดํฐ ๋จ์๋ ์ธ๊ทธ๋จผํธ(Segment)์ด๋ค.
: ๋ํ์ ์ธ ํ๋กํ ์ฝ๋ก TCP, UDP๊ฐ ์กด์ฌํ๋ค.
5. Session
: Application ๊ฐ, ์ฆ ํต์ ์ฅ์น ๊ฐ ์ํธ์์ฉ ๋ฐ ๋๊ธฐํ๋ฅผ ์ ์ดํ๋ ์ญํ ์ ์ํํจ.
: (์ฐ๊ฒฐ) ์ธ์ ์์์ ๋ฐ์ดํฐ ๊ตํ๊ณผ ์๋ฌ ๋ฐ์์ ๋ณต๊ตฌ๋ฅผ ๊ด๋ฆฌํ๋ ๊ธฐ๋ฅ์ ์ ๊ณตํจ.
6. Presentation
: Application์ ๋ ๋ฆฝ์ฑ ๋ณด์ฅ์ ์ํด, ๋ฐ์ดํฐ ๊ตฌ์กฐ๋ฅผ ํ๋์ ๋ฌธ๋ฒํ์์ผ๋ก ํต์ผํํด ํํํ๊ฒ๋ ํ๋ ์ญํ ์ ์ํํจ.
: ๋ค์์ ์ธ ๊ฐ์ง ๊ธฐ๋ฅ์ ์ ๊ณตํจ.
i. ๋ฐ์ดํฐ ํฌ๋งทํ(format) ๋ฐ ๋ถํธํ(encoding) # ์ก์ ์์๊ฒ์ ์จ ๋ฐ์ดํฐ๋ฅผ ํด์ํ๊ธฐ ์ํจ
ii. ๋ฐ์ดํฐ ์์ถ # ์์ ์๊ฐ ์์ ํ ๋ฐ์ดํฐ์ ์์ถ์ ํ ์ ์๊ฒ ํ๊ธฐ ์ํจ
iii. ๋ฐ์ดํฐ์ ์ํธํ์ ๋ณตํธํ
7. Application
: ์ฌ์ฉ์์ ๊ฐ์ฅ ๋ฐ์ ํ ๊ณ์ธต(7๊ณ์ธต)์ผ๋ก ์ผ๋ฐ์ ์ธ ์์ฉ ์๋น์ค๋ฅผ ์ ๊ณตํ๋ ์ธํฐํ์ด์ค ์ญํ ์ ์ํํจ.
: ์์ฉ ํ๋ก์ธ์ค ๊ฐ์ ์ ๋ณด ๊ตํ์ ๋ด๋นํ๋ฉฐ ํ์ผ์ ์ก, ์๊ฒฉ์ ์, ๋ฉ์ธ์ง ์ฒ๋ฆฌ ๊ตํ, ์ ์๊ฑฐ๋ ๋ฑ์ ๊ธฐ๋ฅ์ ์ ๊ณตํจ.
: ์๋ก๋ ์ ์๋ฉ์ผ, ์ธํฐ๋ท, ๋์์ ํ๋ ์ด์ด ๋ฑ์ด ์์ผ๋ฉฐ ๋ํ์ ์ธ ํ๋กํ ์ฝ๋ก๋ HTTP, FTP ๋ฑ์ด ์กด์ฌํ๋ค.
๐ ์ค์ ํค์๋์ ๋ฆฌ
- Layered Architecture
- Layered Protocol Architecture
: peer layers - Protocol
: syntax, semantics, timing
: [ๅค] stack, suite (ๅค) - PDU, SDU, PCI
: PDU[N] = SDU[N+1] + PCI[N] - Connection of Logical vs Physical
- Standard Protocol๊ณผ ๊ทธ ์ข
๋ฅ
: De Facto - TCP/IP, De Jure - OSI 7 - OSI 7 Layers
- Physical
- Data Link
- Network
- Transport
- Session
- Presentation
- Application
'Computer Science > Data communication' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
| [ํ๊ต์์ ] 02. Multiplexing - Part 1.FDM & TDM (0) | 2022.03.10 |
|---|
