2017년 10월 6일 금요일

OSI 7 Layer explained

Layer 1: Physical Layer

The physical layer defines the electrical and physical specifications of the data connection. It defines the relationship between a device and a physical transmission medium (for example, an electrical cable, an optical fiber cable, or a radio frequency link). This includes the layout of pins, voltages, line impedance, cable specifications, signal timing and similar characteristics for connected devices and frequency (5 GHz or 2.4 GHz etc.) for wireless devices. It is responsible for transmission and reception of unstructured raw data in a physical medium. Bit rate control is done at the physical layer. It may define transmission mode as simplex, half duplex, and full duplex. It defines the network topology as bus, mesh, or ring being some of the most common.
The physical layer of Parallel SCSI operates in this layer, as do the physical layers of Ethernet and other local-area networks, such as token ring, FDDI, ITU-T G.hn, and IEEE 802.11 (Wi-Fi), as well as personal area networks such as Bluetooth and IEEE 802.15.4.
The physical layer is the layer of low-level networking equipment, such as some hubs, cabling, and repeaters. The physical layer is never concerned with protocols or other such higher-layer items. Examples of hardware in this layer are network adapters, repeaters, network hubs, modems, and fiber media converters.

물리 계층은 데이터의 연결에 대한 전기적인, 물리적인 스펙을 이야기 한다. 장치 간의 물리적인 중간 매체(예를 들어, 전기 케이블, 광섬유 케이블, 혹은 라디오 주파수 등)를 정의한다. 여기에는 핀의 배치도, 사용되는 전압, 선의 저항값, 케이블의 스펙, 전송 신호의 타이밍, 무선 장치에서의 전송 주파수 등 비슷한 스펙들을 포함하고 있다. 물리적인 장치를 통해서 구조화 되지 않은 raw 데이터를 보내고 받는 것에 관련된 책임을 가지고 있다. bit rate는 물리 계층에서 이루어 진다. 여기에는 데이터 전송이 simplex인지 half duplex인지 full duplex인지도 정의되어 있다. network구조의 경우 bus, mesh, 나 ring 등 가장 일반적인 것들도 정의하고 있다. 병렬 SCSI의 물리적 계층은 이 계층에서 작동하며 이는 이더넷 및 기타 로컬 영역 네트워크의 토큰 링, FDDI, ITU-T G.hn 및 IEEE 802.11 (Wi-Fi)이나 개인영역 네트워크의 Bluetooth 및 IEEE 802.15.4와 동일한 역할이다.
물리 계층은 일부 허브, 케이블 링 및 중계기와 같은 하위 수준 네트워킹 장비의 계층이다. 물리 계층은 프로토콜 또는 기타 상위 계층 항목과 관련이 없다. 이 계층의 하드웨어의 예로는 네트워크 어댑터, 중계기, 네트워크 허브, 모뎀 및 광섬유 미디어 변환기가 있다.


Layer 2: Data Link Layer

The data link layer provides node-to-node data transfer—a link between two directly connected nodes. It detects and possibly corrects errors that may occur in the physical layer. It defines the protocol to establish and terminate a connection between two physically connected devices. It also defines the protocol for flow control between them.
IEEE 802 divides the data link layer into two sublayers:[5]
Media access control (MAC) layer – responsible for controlling how devices in a network gain access to a medium and permission to transmit data.
Logical link control (LLC) layer – responsible for identifying and encapsulating network layer protocols, and controls error checking and frame synchronization.
The MAC and LLC layers of IEEE 802 networks such as 802.3 Ethernet, 802.11 Wi-Fi, and 802.15.4 ZigBee operate at the data link layer.
The Point-to-Point Protocol (PPP) is a data link layer protocol that can operate over several different physical layers, such as synchronous and asynchronous serial lines.
The ITU-T G.hn standard, which provides high-speed local area networking over existing wires (power lines, phone lines and coaxial cables), includes a complete data link layer that provides both error correction and flow control by means of a selective-repeat sliding-window protocol.

데이터 링크 레이어는 node 와 node간의 데이터 전송(연결된 두개의 node)을 담당한다. 물리 계층에서의 데이터 전송간의 error를 감지하고 가능하면 error를 바로잡는다. 두 연결된 장치간의 연결의 확립과 종결과 관련된 프로토콜을 정의한다. flow control도 정의한다.  IEEE 802는 데이터 링크를 더 세부적인 서브 레이어들로 나눈다.
Media access control(MAC)
Logical link control(LLC)

Layer 3: Network Layer

서로 다른 네트워크에 접속하는 레이어

Layer 4: Transport Layer

데이터 전송간의 데이터가 제대로된 길이로 갔는지 확인할 수 있는 것
네트워크 간에 로스가 될 수 있으니

Layer 5: Session Layer
특정한 세션을 구축하는지의 문제, 로그인을 한 상태를 구분하는 것 등

Layer 6: Presentation Layer
데이터의 표현 방식에 대한 것으로 암호화가 된 것과 안된것을 구분하는 것 등

Layer 7: Application Layer
실제 필요한 데이터를 사용하는 것

댓글 없음:

댓글 쓰기