OSI Model(Open Systems Interconnection)

本文详细介绍了OSI(开放式系统互联)模型的七个层级,包括应用层、表示层、会话层、传输层、网络层、数据链路层及物理层。各层的功能和服务被逐一阐述,帮助读者理解数据在网络中如何传输。

what is OSI model?

在这里插入图片描述
The OSI stands for open systems interconnection and it is a comceptual a framework for how applications communicate over a network.
There are seven layers within the model, and the layers depiction is used to help users identify what is happening within a networking system.

# 7 Application layer

The application layer provides network services to the end user.
These services are protocols that work with the data the client is using. One of these protocols may be HTTP that is used with web browers such as Google Chrome, Firefox, and Internet Explorer. Other examples of applications that use this layer are office,outlook and skype.
All of those interactive applications provide a set of services that allow the application layer to supply data and receive data from the Presentation layer.
在这里插入图片描述

# 6 Presentation layer

The presentation layer performs uncomplicated task of syntax processing or converting data from one format to another.
For instance, considering you are ordering something from an online store.
These transactions are typically handle in a secure transmission, which means that the data passing between the store or the website application will transmit encrypted data to the Presentation layer that will need to be decrypted and processed.
This layer handles translating the data from the top layer, which is presented in application format to network format and vice versa.
After the Presentation layer processes the data from one format to another, the information is then passed to the Session Layer or Application layer depending on the application data is transmitting or receiving.

在这里插入图片描述

# 5 Session layer

At the Sesion layer, the construction, direction, and conclusion of connections between devices occur.
This layer supports multiple types of connections as well as being responsible for authentication and reconnection if a network interruption should occur.
After the Sessin layer is established, the data then passes to or from the Transport Layer.
在这里插入图片描述

# 4 Tansport layer

The transport layer is reponsible for the transmission of data across network connections. This layer coordinates how much data to send , how fast where it goes, and these sorts of things.

Of the most widely know protocols for internet applications, these services may be provided by Transmission Control Protocol (TCP) and User Datagram Protocol(UDP).

Other protocols may provide additional capabilities including error recovery, data flow, and retransmission.

Once the Transport layer has completed its functions, the data is then passed to or from the Network layer.
在这里插入图片描述

# 3 Network layer

The network layer handles the routing of the data. After the data arrives at this layer, each frame of data is examined to conclude if the data has reached its ultimate traget.
The layer sends data to the correct destination on outgoing transmissions and receives incoming transmission as well.
The IP protion of TCP/IP is the commonly know network layer for the internet.
This layer also manages the mapping between logical addresses and physical addresses. For IP addresses, this is accomplished through Address Resolution Protocol (ARP).
The data is then passed to the next required layer, which is the
Data Link Layer.
在这里插入图片描述

# 2 Network layer

The Data LInk Layer is considered the most complex of the layers. This layer is often divided into sublayers, called Media Access Control(MAC) and Logical Link Control(LLC).
The layer sets up links across the physical network, when this layer receives data from the Physical layer, it checks for transmission errors and then packages the bits into data frames.
From there, this layer manages the physical addressing methods for the MAC or LLC layers.
An example of the MAC layer includes 802.11 whireless specifications as well as Ethrnet.
At the Data Link Layer, the data passes to or from the final layer, which is the Physical layer.
在这里插入图片描述

# 1 Physical layer

The Physical layer is the electrical/Physical layer of the model.
This layer encompasses the network cables, power plugs, cable pinouts, wireless radio frequencies, connectors, transceivers, receivers, repeaters, pulses of light, electric voltages, etc.

在这里插入图片描述

### Cisco Packet Tracer 中的 OSI 模型解释与应用 #### 1. OSI 模型概述 OSI (Open Systems Interconnection) 模型是一个概念框架,用于理解网络通信过程中的不同层次。该模型分为七层,每一层负责特定的功能,并与其他层协同工作来实现完整的数据传输。 - **物理层 (Layer 1)**:定义电气和物理规格,如电缆、连接器和其他硬件设备。确保比特流能够在介质上传输。 - **数据链路层 (Layer 2)**:处理节点之间的可靠数据传输,包括错误检测和纠正机制。MAC地址在此层起作用[^1]。 - **网络层 (Layer 3)**:管理逻辑寻址(IP 地址),路由选择以及分组交换功能。路由器主要在这个层面运作。 - **传输层 (Layer 4)**:提供端到端的数据传递服务,TCP 和 UDP 是这一层的主要协议。它还负责流量控制和服务质量保障。 - **会话层 (Layer 5)**:建立、管理和终止应用程序间的对话。可以同步不同的进程间交互。 - **表示层 (Layer 6)**:转换数据格式以便于接收方能够理解和解码发送的信息;加密/解密也属于此层的任务之一。 - **应用层 (Layer 7)**:直接面向用户提供各种高级别服务的应用程序接口(API),例如HTTP, FTP等。 #### 2. 使用 Cisco Packet Tracer 进行实验 通过模拟真实的网络环境,Cisco Packet Tracer 能够帮助学习者更好地掌握 OSI 各个层次的工作原理: - 创建拓扑结构并配置设备参数; - 发送不同类型的消息包观察其在网络中经过哪些层次; - 利用内置工具分析抓取的数据包内容及其所处的位置; - 实践常见的故障排除技巧,比如查看ARP表项或者追踪路由路径。 ```python # Python脚本可用于自动化某些重复性的任务,在Packet Tracer环境中运行 def send_packet(source_device, destination_device): packet = create_custom_packet() source_device.send(packet) trace_route(packet) send_packet(routerA, routerB) ```
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值