저는 전자공학과를 나왔지만, OSI 7계층은 정말 힘든 7겹입니다.
저는 5겹살까지는 먹어봤습니다. 😅

OSI가 뭐의 약자인지도 모르고 그냥 OSI 7 Layer 단어만 얘기했거든요. 물론 7층의 맨 위는 Application Layer 는 정확히 기억하고 있습니다.

OSI (Open Systems Interconnection) 이라고 검색이 되서 다행입니다. `열린 시스템들의 상호연결`이라고 해석됩니다. 랜선을 통한 컴퓨터의 연결로 이해하셔도 될 것입니다.

그럼 오늘 공유하고 싶은 것을 소개합니다. 아침에 메일 받고 너무 인상적으로 잘 표현했기 때문입니다.

OSI 7 Layer APSTNDP

그리고, 물리적(Physical)으로 표현한 것입니다.

여기서 MAC는 애플의 맥이 아니고 Media Access Control address (MAC address)를 의미합니다.

`애플리케이션 계층Application Layer

애플리케이션 계층은 최종 사용자에게 가장 가깝습니다. 대부분의 응용 프로그램은 이 계층에 상주합니다. 데이터 전송 세부 사항을 이해할 필요 없이 백엔드 서버에서 데이터를 요청합니다. 이 계층의 프로토콜에는 HTTP, SMTP, FTP, DNS 등이 포함됩니다. 나중에 다룰 것입니다.The application layer is the closest to the end users. Most applications reside in this layer. We request data from a backend server without needing to understand data transmission specifics. Protocols in this layer include HTTP, SMTP, FTP, DNS, etc. We will cover them later.

프레젠테이션 계층Presentation Layer

이 계층은 데이터 인코딩, 암호화 및 압축을 처리하여 애플리케이션 계층을 위한 데이터를 준비합니다. 예를 들어 HTTPS는 클라이언트와 서버 간의 보안 통신을 위해 TLS(Transport Layer Security)를 활용합니다. This layer handles data encoding, encryption, and compression, preparing data for the application layer. For example, HTTPS leverages TLS (Transport Layer Security) for secure communications between clients and servers. 

세션 계층Session Layer

이 계층은 두 장치 간의 통신을 열고 닫습니다. 데이터 크기가 크면 처음부터 다시 보내지 않도록 세션 계층에서 체크포인트를 설정합니다.This layer opens and closes the communications between two devices. If the data size is large, the session layer sets a checkpoint to avoid resending from the beginning.

전송 계층Transport Layer

이 계층은 두 장치 간의 종단 간 통신을 처리합니다. 발신자 측에서 데이터를 세그먼트로 나누고 수신자 측에서 재조립합니다. 혼잡을 방지하기 위해 이 계층에 흐름 제어가 있습니다. 이 계층의 주요 프로토콜은 TCP와 UDP이며 나중에 설명하겠습니다.This layer handles end-to-end communication between the two devices. It breaks data into segments at the sender’s side and reassembles them at the receiver’s. There is flow control in this layer to prevent congestion. Key protocols in this layer are TCP and UDP, which we’ll discuss later.

네트워크 계층Network Layer

이 계층은 서로 다른 네트워크 간의 데이터 전송을 가능하게 합니다. 또한 세그먼트 또는 데이터그램을 더 작은 패킷으로 분해하고 IP 주소를 사용하여 최종 목적지까지의 최적 경로를 찾습니다. 이 프로세스를 라우팅이라고 합니다.This layer enables data transfer between different networks. It further breaks down segments or datagrams into smaller packets and finds the optimal route to the final destination using IP addresses. This process is known as routing.

데이터 링크 계층Data Link Layer

이 계층은 동일한 네트워크에 있는 장치 간의 데이터 전송을 허용합니다. 패킷은 로컬 영역 네트워크에 국한된 프레임으로 나뉩니다. This layer allows data transfer between devices on the same network. Packets are broken down into frames, which are confined to a local area network. 

물리적 계층Physical Layer

이 계층은 케이블과 스위치를 통해 비트스트림을 전송하여 장치 간의 물리적 연결과 밀접하게 연결됩니다.This layer sends bitstreams over cables and switches, making it closely associated with the physical connection between devices.

OSI 모델에 비해 TCP/IP 모델은 4계층만 있습니다. 레이어를 논의할 때 컨텍스트를 지정하는 것이 중요합니다.Compared to the OSI model, the TCP/IP model only has 4 layers. When discussing layers, it’s important to specify the context.

이제 각 계층의 책임을 이해했으므로 다음 다이어그램을 사용하여 데이터 전송 프로세스를 요약해 보겠습니다. 이를 캡슐화 및 캡슐화 해제라고 합니다. 캡슐화에는 데이터가 목적지를 향해 이동할 때 데이터에 헤더를 추가하는 작업이 포함됩니다. 캡슐화 해제는 이러한 헤더를 제거하여 원본 데이터를 검색합니다.Now that we understand the responsibilities of each layer, let’s summarize the data transfer process using the following diagram. This is called encapsulation and decapsulation. Encapsulation involves adding headers to the data as it travels towards its destination. Decapsulation removes these headers to retrieve the original data.

`

너무 잘 정리된 내용인데, 더 깊이 보려면 유료구독이 필요합니다. 저는 무료 구독자이지만, 너무 괜찮아서 공유합니다.

https://blog.bytebytego.com/p/network-protocols-run-the-internet

 

Network Protocols Run the Internet

In distributed systems, data is sent over the network using various network protocols. As an application developer, this often seems like a block box until an issue arises. In this issue, we’ll explain how common network protocols work, where they are us

blog.bytebytego.com

 

좋은 주말 되시길 바랍니다.

+ Recent posts