OSI 7 Layers
Last updated
Was this helpful?
Last updated
Was this helpful?
์์ด๋ก ๋ ๋ถ๋ถ์ ์ฒ์์ ๊ณต๋ถํ ๋ด์ฉ & ํ๊ธ๋ก ๋ ๋ถ๋ถ์ ์ฑ ๋ณด๋ฉฐ ๋ค์ ๊ณต๋ถํ ๋ด์ฉ
Reference: [์ฑ ] IT ์์ง๋์ด๋ฅผ ์ํ ๋คํธ์ํฌ ์ ๋ฌธ
๊ณผ๊ฑฐ์๋ ํต์ ์ฉ ๊ท์ฝ์ด ํ์คํ๋์ง ์์์ ํธํ๋์ง ์๋ system์ด๋ application์ด ๋ง์๊ณ ํต์ ์ด ๋ถ๊ฐ๋ฅ ํ์
์ด๊ฒ์ ํ๋์ ๊ท์ฝ์ผ๋ก ํตํฉ ํ๋ ค๋ ๋
ธ๋ ฅ์ด ํ์ฌ์ OSI 7 Layers
๋ก ๋จ์์๋ค!
OSI 7 Layers
๊ฐ network ๋์์ ๋๋์ด ์ดํดํ๊ณ ๊ฐ๋ฐํ๋๋ฐ ๋์์ด ๋๋ฏ๋ก main network reference model๋ก ํ์ฉ๋๊ณ ์์ง๋ง,
ํ์ฌ ๋๋ถ๋ถ์ protocol์ TCP/IP protocol stack ๊ธฐ๋ฐ์ผ๋ก ๋์ด ์๋ค
OSI (= Open Systems Interconnection) is a 7 layer architecture with each layer having specific functionality to perform.
All these 7 layers work collaboratively to transmit the data from one person to another across the globe.
OSI 7 Layers๋ ๊ณ์ธต์ ์ญํ ๊ณผ ๋ชฉํ์ ๋ฐ๋ผ ๋ ๊ฐ์ง ๊ณ์ธต์ผ๋ก ๋๋ ์ ์๋ค.
Lower Layer
Data Flow Layer
data๋ฅผ ์๋๋ฐฉ์๊ฒ ์ ์ ๋ฌํ๋ ์ญํ ์ ๊ฐ๊ณ ์๋ค
Upper Layer
Application Layer
data๋ฅผ ๋ง๋๋ ์ญํ ์ ํ๋ ๋ถ๋ถ์ด๋ค
application ๊ฐ๋ฐ์
data flow layer๋ฅผ ๊ณ ๋ คํ์ง ์๊ณ data๋ฅผ ํํํ๋ ๋ฐ ์ด์ ์ ๋ง์ถ๋ค
Top-down
ํ์์ผ๋ก network๋ฅผ ๋ฐ๋ผ๋ณธ๋ค
network engineer
application layer๋ application ๊ฐ๋ฐ์๋ค์ด ๊ณ ๋ คํด์ผ ํ ์์ญ์ด๋ฏ๋ก network engineer๋ ์ด ๋ถ๋ถ์ ๋ํด ์ผ๋ฐ์ ์ผ๋ก ์ฌ๊ฐํ๊ฒ ๊ณ ๋ฏผํ์ง ์๋๋ค
Bottom-up
ํ์์ผ๋ก network๋ฅผ ๋ฐ๋ผ๋ณธ๋ค
The lowest layer of the OSI reference model is the physical layer.
It is responsible for the actual physical connection between the devices.
The physical layer contains information in the form of bits.
It is responsible for transmitting individual bits from one node to the next.
When receiving data, this layer will get the signal received and convert it into 0s and 1s and send them to the Data Link layer, which will put the frame back together.
๋ฌผ๋ฆฌ์ ์ฐ๊ฒฐ๊ณผ ๊ด๋ จ๋ ์ ๋ณด๋ฅผ ์ ์
์ฃผ๋ก ์ ๊ธฐ ์ ํธ ๋ฅผ ์ ๋ฌํ๋๋ฐ ์ด์ ์ด ๋ง์ถ์ด์ ธ ์์
๋ค์ด์จ ์ ๊ธฐ ์ ํธ๋ฅผ ๊ทธ๋๋ก ์ ์ ๋ฌํ๋ ๊ฒ์ด ๋ชฉ์ ์ด๋ฏ๋ก ์ ๊ธฐ ์ ํธ๊ฐ 1๊ณ์ธต ์ฅ๋น
์ ๋ค์ด์ค๋ฉด ์ด ์ ๊ธฐ ์ ํธ๋ฅผ ์ฌ์์ฑํ์ฌ ๋ด๋ณด๋ธ๋ค
1๊ณ์ธต ์ฅ๋น๋ ์ฃผ์์ ๊ฐ๋ ์ด ์๋ค!
์ ํธ๊ฐ ๋ค์ด์จ port๋ฅผ ์ ์ธํ๊ณ ๋ชจ๋ port์ ๊ฐ์ ์ ๊ธฐ ์ ํธ๋ฅผ ์ ์กํ๋ค
์ฆ, ์ถ๋ฐ์ง์ ๋ชฉ์ ์ง๋ฅผ ๊ตฌ๋ถ ํ ์ ์๋ค
The data link layer is responsible for the node to node delivery of the message.
The main function of this layer is to make sure data transfer is error-free from one node to another, over the physical layer.
When a packet
arrives in a network, it is the responsibility of DLL to transmit it to the Host using its MAC address
.
Data Link Layer is divided into two sub layers :
Logical Link Control (LLC)
Media Access Control (MAC)
The packet received from Network layer is further divided into frames depending on the frame size of NIC(Network Interface Card)
.
DLL encapsulates Sender and Receiverโs MAC address in the header.
์ ๊ธฐ ์ ํธ๋ฅผ ๋ชจ์ ์ฐ๋ฆฌ๊ฐ ์์๋ณผ ์ ์๋ data ํํ๋ก ์ฒ๋ฆฌํ๋ค
1๊ณ์ธต๊ณผ๋ ๋ค๋ฅด๊ฒ ์ ๊ธฐ ์ ํธ๋ฅผ ์ ํํ ์ ๋ฌํ๊ธฐ ๋ณด๋ค๋ ์ฃผ์ ์ ๋ณด
๋ฅผ ์ ์ํ๊ณ ์ ํํ ์ฃผ์
๋ก ํต์ ํ๋๋ฐ ์ด์ ์ด ๋ง์ถ์ด์ ธ ์๋ค
์ถ๋ฐ์ง
์ ๋์ฐฉ์ง
์ฃผ์๋ฅผ ํ์ธํ๊ณ ๋ด๊ฒ ๋ณด๋ธ ๊ฒ์ด ๋ง๋์ง or ๋ด๊ฐ ์ฒ๋ฆฌํด์ผ ํ๋์ง์ ๋ํด ๊ฒ์ฌํ ํ์ data ์ฒ๋ฆฌ๋ฅผ ์ํํ๋ค
2๊ณ์ธต์์๋ ์ฃผ์ ์ฒด๊ณ
๊ฐ ์๊ธฐ๋ฉด์ ์ฌ๋ฌ ํต์ ์ด ํ๊บผ๋ฒ์ ์ด๋ฃจ์ด์ง๋ ๊ฒ์ ๊ตฌ๋ถํ๊ธฐ ์ํ ๊ธฐ๋ฅ์ด ์ฃผ๋ก ์ ์๋๋ค
์ ๊ธฐ ์ ํธ
๋ฅผ ๋ชจ์ data ํํ๋ก ์ฒ๋ฆฌํ๋ฏ๋ก data์ ๋ํ error๋ฅผ ํ์งํ๊ฑฐ๋ ๊ณ ์น๋ ์ญํ ์ ์ํํ ์ ์๋ค
Ethernet ๊ธฐ๋ฐ network์ 2๊ณ์ธต์์๋ error๋ฅผ ํ์งํ๋ ์ญํ ๋ง ์ํํ๋ค
์ฃผ์ ์ฒด๊ณ๊ฐ ์๊ธด๋ค๋ ๊ฒ์ ํ ๋ช ๊ณผ ํต์ ํ๋ ๊ฒ์ด ์๋๋ผ ๋์์ ์ฌ๋ฌ ๋ช ๊ณผ ํต์ ํ ์ ์๋ค๋ ๊ฒ์ด๋ฏ๋ก ๋ฌด์์ data๋ฅผ ๋์ง๋ ๊ฒ์ด ์๋๋ผ ๋ฐ๋ ์ฌ๋์ด ํ์ฌ data๋ฅผ ๋ฐ์ ์ ์๋์ง ํ์ธ ํ๋ ์์ ๋ถํฐ ํด์ผ ํ๋ค
์ด ์ญํ ์ Flow Control
์ด๋ผ๊ณ ๋ถ๋ฅธ๋ค
Flow Control
์๋ฒ์์ ์ค์์น๋ก data ์ ์ก
์ค์์น ํผ์ก ์ํฉ ๋ฐ์. ์ค์์น๋ ์๋ฒ๋ก Pause frame ์ ์ก
์๋ฒ๋ Pause frame ์์ ์ ๋๊ธฐ
2๊ณ์ธต์ network ๊ตฌ์ฑ ์์๋ Network Interface Card
์ Switch
์ด๋ค
2๊ณ์ธต์ ๊ฐ์ฅ ์ค์ํ ํน์ง์ MAC ์ฃผ์๋ผ๋ ์ฃผ์ ์ฒด๊ณ๊ฐ ์๋ค๋ ๊ฒ์ด๋ค
2๊ณ์ธต์์ ๋์ํ๋ Network Interface Card
์ Switch
๋ชจ๋ MAC ์ฃผ์๋ฅผ ์ดํดํ ์ ์๊ณ , Switch
๋ MAC ์ฃผ์๋ฅผ ๋ณด๊ณ ํต์ ํด์ผ ํ port๋ฅผ ์ง์ ํด ๋ด๋ณด๋ด๋ ๋ฅ๋ ฅ์ด ์๋ค
Network Interface Card ๋์ ๋ฐฉ์
์ ๊ธฐ ์ ํธ๋ฅผ data ํํ๋ก ๋ง๋ ๋ค
๋ชฉ์ ์ง MAC ์ฃผ์์ ์ถ๋ฐ์ง MAC ์ฃผ์๋ฅผ ํ์ธํ๋ค
Network Interface Card์ MAC ์ฃผ์๋ฅผ ํ์ธํ๋ค
๋ชฉ์ ์ง MAC ์ฃผ์์ Network Interface Card๊ฐ ๊ฐ๊ณ ์๋ MAC ์ฃผ์๊ฐ ๋ง์ผ๋ฉด data๋ฅผ ์ฒ๋ฆฌํ๊ณ , ๋ค๋ฅด๋ฉด data๋ฅผ ํ๊ธฐํ๋ค
Switch ๋์ ๋ฐฉ์
Swtich๋ ๋จ๋ง์ด ์ด๋ค MAC ์ฃผ์์ธ์ง, ์ฐ๊ฒฐ๋ port๋ ์ด๋ ๊ฒ์ธ์ง ์ฃผ์ ์ต๋ (Address learning) ๊ณผ์ ์์ ์ ์ ์๋ค
์ด data๋ฅผ ๊ธฐ๋ฐ์ผ๋ก ๋จ๋ง๋ค์ด ํต์ ํ ๋ port๋ฅผ ์ ์ ํ filtering ํ๊ณ , ์ ํํ port๋ก forwarding ํด์ค๋ค
Switch์ ์ ์ ํ filtering๊ณผ forwarding ๊ธฐ๋ฅ์ผ๋ก ํต์ ์ด ํ์ํ port๋ง ์ฌ์ฉํ๊ณ , network ์ ์ฒด์ ๋ถํ์ํ ์ฒ๋ฆฌ๊ฐ ๊ฐ์ํ๋ฉด์
Ethernet network ํจ์จ์ฑ์ด ํฌ๊ฒ ํฅ์๋์๊ณ ,
Ethernet ๊ธฐ๋ฐ network๊ฐ ๊ธ์ฆํ๋ ๊ณ๊ธฐ๊ฐ ๋์๋ค!
Network layer works for the transmission of data from one host to the other located in different networks.
It also takes care of packet routing
i.e. selection of the shortest path to transmit the packet, from the number of routes available.
The sender & receiverโs IP address are placed in the header by the network layer.
The functions of the Network layer are :
Routing
The network layer protocols determine which route is suitable from source to destination.
This function of network layer is known as routing.
Logical Addressing
In order to identify each device on internetwork uniquely, network layer defines an addressing scheme.
The sender & receiverโs IP address are placed in the header by network layer.
Such an address distinguishes each device uniquely and universally.
Network layer is implemented by networking devices such as routers
3๊ณ์ธต์์๋ IP ์ฃผ์
์ ๊ฐ์ ๋
ผ๋ฆฌ์ ์ธ ์ฃผ์๊ฐ ์ ์๋๋ค
data ํต์ ์ ํ ๋์๋ ๋ ๊ฐ์ง ์ฃผ์๊ฐ ์ฌ์ฉ๋๋ค
2๊ณ์ธต์ ๋ฌผ๋ฆฌ์ ์ธ MAC ์ฃผ์
3๊ณ์ธต์ ๋ ผ๋ฆฌ์ ์ธ IP ์ฃผ์
MAC ์ฃผ์์ ๋ฌ๋ฆฌ IP ์ฃผ์๋ ์ฌ์ฉ์๊ฐ ํ๊ฒฝ์ ๋ง๊ฒ ๋ณ๊ฒฝํด ์ฌ์ฉํ ์ ์๋ค
IP์ฃผ์๋ ๋คํธ์ํฌ ์ฃผ์ ๋ถ๋ถ
๊ณผ ํธ์คํธ ์ฃผ์ ๋ถ๋ถ
์ผ๋ก ๋๋๋ค
3๊ณ์ธต์ ์ดํดํ ์ ์๋ ์ฅ๋น๋ ๋จ๋ง์ ๋คํธ์ํฌ ์ฃผ์ ์ ๋ณด๋ฅผ ์ด์ฉํด์
์์ ์ด ์ํ ๋คํธ์ํฌ
์ ์๊ฒฉ์ง ๋คํธ์ํฌ
๋ฅผ ๊ตฌ๋ถํ ์ ์๊ณ
์๊ฒฉ์ง ๋คํธ์ํฌ๋ฅผ ๊ฐ๋ ค๋ฉด ์ด๋๋ก ๊ฐ์ผํ๋์ง ๊ฒฝ๋ก๋ฅผ ์ง์ ํ ์ ์๋ค
3๊ณ์ธต์์ ๋์ํ๋ ์ฅ๋น๋ Router๋ค
Router๋ 3๊ณ์ธต์์ ์ ์ํ IP ์ฃผ์๋ฅผ ์ดํดํ ์ ์๋ค
Router๋ IP ์ฃผ์๋ฅผ ์ฌ์ฉํด ์ต์ ์ ๊ฒฝ๋ก๋ฅผ ์ฐพ์์ฃผ๊ณ , ํด๋น ๊ฒฝ๋ก๋ก packet
์ ์ ์กํ๋ ์ญํ ์ ํ๋ค
Transport layer provides services to application layer and takes services from network layer.
The data in the transport layer is referred to as Segments
.
It is responsible for the End to End Delivery of the complete message.
The transport layer also provides the acknowledgement of the successful data transmission and re-transmits the data if an error is found.
Transport layer is operated by the Operating System
.
It is a part of the OS and communicates with the Application Layer (Layer 7) by making system calls.
Transport Layer is called as Heart of OSI model.
4๊ณ์ธต์ 1~3๊ณ์ธต๊ณผ๋ ๋ค๋ฅธ ์ญํ ์ ํ๋ค
ํ์ ๊ณ์ธต (Layer 1~4)์ data๋ฅผ ์ชผ๊ฐ ์ ๋ณด๋ฅผ ๋ถ์ฌ ๋ชฉ์ ์ง๊น์ง ์ ์ ๋ฌํ๋ ์ญํ ์ ํ๋๋ฐ,
1~3๊ณ์ธต์ ์ ํธ์ data๋ฅผ ์ฌ๋ฐ๋ฅธ ์์น๋ก ๋ณด๋ด๊ณ , ์ค์ ์ ํธ๋ฅผ ์ ๋ง๋ค์ด ๋ณด๋ด๋๋ฐ ์ง์คํ๋ค
๋ฐ๋ฉด 4๊ณ์ธต์ ์ค์ ๋ก ํด๋น data๋ค์ด ์ ์์ ์ผ๋ก ์ ๋ณด๋ด์ง๋๋ก ํ์ธํ๋ ์ญํ ์ ํ๋ค
Packet network
๋ data๋ฅผ ๋ถํ ํด packet์ ์ค์ด๋ณด๋ด๋ค ๋ณด๋ ์ค๊ฐ์ packet์ด ์ ์ค๋๊ฑฐ๋ ์์๊ฐ ๋ค๋ฐ๋๋ ๊ฒฝ์ฐ๊ฐ ์๊ธธ ์ ์๋ค
์ด๋ด ๋ ๋ฐ๋ก ์ก์์ฃผ๋ ์ญํ ์ 4๊ณ์ธต์์ ๋ด๋นํ๋ค
4๊ณ์ธต์์ packet์ ๋ถํ ํ ๋ packet header
์ ๋ณด๋ด๋ ์์์ ๋ฐ๋ ์์๋ฅผ ์ ์ด ํต์ ํ๋ฏ๋ก
packet์ด ์ ์ค๋๋ฉด ์ฌ์ ์ก์ ์์ฒญํ ์ ์๊ณ ,
์์๊ฐ ๋ค๋ฐ๋๋๋ผ๋ ๋ฐ๋ก ์ก์ ์ ์๋ค
Packet์ ๋ณด๋ด๋ ์์๋ฅผ ๋ช
์ํ ๊ฒ์ด ์ํ์ค ๋ฒํธ(Sequence Number)
์ด๊ณ ,
Packet์ ๋ฐ๋ ์์๋ฅผ ๋ช
์ํ ๊ฒ์ด ACK ๋ฒํธ(Acknowledgement Number)
์ด๋ค
์ฅ์น ๋ด์ ๋ง์ application์ ๊ตฌ๋ถํ ์ ์๋๋ก ํฌํธ ๋ฒํธ(Port Number)
๋ฅผ ์ฌ์ฉํด ์์ application์ ๊ตฌ๋ถํ๋ค
4๊ณ์ธต์์ ๋์ฅํ๋ ์ฅ๋น๋ Load Balancer์ ๋ฐฉํ๋ฒฝ์ด๋ค
์ด ์ฅ๋น๋ค์ 4๊ณ์ธต์์ ๋ณผ ์ ์๋ application ๊ตฌ๋ถ์ (Port Number
)์ Sequence
, ASK number
์ ๋ณด๋ฅผ ์ด์ฉํด์
๋ถํ๋ฅผ ๋ถ์ฐํ๊ฑฐ๋ ๋ณด์ ์ ์ฑ ์ ์๋ฆฝํด packet์ ํต๊ณผ, ์ฐจ๋จํ๋ ๊ธฐ๋ฅ์ ์ํํ๋ค
The Session layer is responsible for establishment of connection, maintenance of sessions, authentication and also ensures security.
The functions of the session layer are :
Session establishment, maintenance and termination
The layer allows the two processes to establish, use and terminate a connection.
Synchronization
This layer allows a process to add checkpoints which are considered as synchronization points
into the data.
These synchronization point help to identify the error so that the data is re-synchronized properly, and ends of the messages are not cut prematurely and data loss is avoided.
Dialog Controller
The session layer allows two systems to start communication with each other in half-duplex or full-duplex.
5๊ณ์ธต์ธ **์ธ์ ๊ณ์ธต(Session Layer)**์ ์ ๋๋จ์ ์์ฉ ํ๋ก์ธ์ค๊ฐ
์ฐ๊ฒฐ์ ์ฑ๋ฆฝํ๋๋ก ๋์์ฃผ๊ณ ,
์ฐ๊ฒฐ์ด ์์ ์ ์ผ๋ก ์ ์ง๋๋๋ก ๊ด๋ฆฌํ๊ณ ,
์์ ์๋ฃ ํ์๋ ์ฐ๊ฒฐ์ ๋๋ ์ญํ ์ ํ๋ค
Session
์ ๊ด๋ฆฌํ๋ ๊ฒ์ด ์ฃผ ์ญํ ์ธ session layer๋ TCP/IP session์ ๋ง๋ค๊ณ ์์ ๋ ์ญํ ์ ํ๋ค
Error๋ก ์ค๋จ๋ ํต์ ์ ๋ํ ๋ณต๊ตฌ์ ์ฌ์ ์ก๋ ์ํํ๋ค
Presentation layer is also called the Translation layer.
The data from the application layer is extracted here and manipulated as per the required format to transmit over the network.
The functions of the presentation layer are :
Translation
For example, ASCII to EBCDIC.
Encryption/ Decryption
Data encryption translates the data into another form or code.
Compression
Reduces the number of bits that need to be transmitted on the network.
6๊ณ์ธต์ธ presentation layer๋ ํํ ๋ฐฉ์์ด ๋ค๋ฅธ application์ด๋ system ๊ฐ์ ํต์ ์ ๋๊ธฐ ์ํด ํ๋์ ํต์ผ๋ ๊ตฌ๋ฌธ ํ์์ผ๋ก ๋ณํ์ํค๋ ๊ธฐ๋ฅ์ ์ํํ๋ค
์ผ์ข
์ ๋ฒ์ญ๊ธฐ
๋ ๋ณํ๊ธฐ
์ญํ ์ ์ํํ๋ ๊ณ์ธต์ด๊ณ ,
์ด๋ฌํ ๊ธฐ๋ฅ์ ์ฌ์ฉ์ system์ ์์ฉ ๊ณ์ธต์์ data์ ํ์์์ ์ฐจ์ด๋ฅผ ๋ค๋ฃจ๋ ๋ถ๋ด์ ๋์ด์ค๋ค
MIME encoding
์ด๋ ์ํธํ
, ์์ถ
, ์ฝ๋ ๋ณํ
๊ณผ ๊ฐ์ ๋์์ด ์ด ๊ณ์ธต์์ ์ด๋ฃจ์ด์ง๋ค
At the very top of the OSI Reference Model stack of layers, we find Application layer which is implemented by the network applications.
These applications produce the data, which has to be transferred over the network.
This layer also serves as a window for the application services to access the network and for displaying the received information to the user.
Ex: Application โ Browsers, Skype Messenger etc.
Application Layer is also called as Desktop Layer.
OSI 7 Layers์ ์ต์์ 7๊ณ์ธต์ธ application layer๋ application process๋ฅผ ์ ์ํ๊ณ application service๋ฅผ ์ํํ๋ค
Network software์ UI ๋ถ๋ถ์ด๋ ์ฌ์ฉ์ I/O ๋ถ๋ถ์ ์ ์ํ๋ ๊ฒ์ด application layer์ ์ญํ ์ด๋ค
application layer์ protocol์ ์์ฒญ๋๊ฒ ๋ง์ ์ข
๋ฅ๊ฐ ์์ง๋ง ๋ํ์ ์ธ Protocol๋ก๋ FTP
, SMTP
, HTTP
TELNET
์ด ์๋ค
Application Layer
HTTP, SMP, SMTP, STUN, TFTP, TELNET
ADC, NGFW, WAF
Presentation Layer
TLS, AFP, SSH
Session Layer
L2TP, PPTP, NFS, RPC, RTCP, SIP, SSH
Transport Layer
TCP, UDP, SCTP, DCCP, AH, AEP
LB, Firewall
Network Layer
ARP, IPv4, IPv6, NAT, IPSec, VRRP, Routing protocol
Router, L3 Switch
Datalink Layer
IEEE 802.2, FDDI
Switch, Bridge, NIC
Physical Layer
RS-232, RS-449, V.35, S ๋ฑ์ cable
Cable, Hub, TAP
The Receiverโs MAC address is obtained by placing an ARP(Address Resolution Protocol)
request onto the wire asking โWho has that IP address?โ and the destination host will reply with its MAC address.
Segment in Network layer is referred as Packet.