Basic of computer Network 8:The process of data transmission across a data network

Each layer in the OSI 7-layer reference model receives the data from the upper layer and adds the control information of the layer to the header of the data unit. Some layers also attach the checksum information to the tail of the data unit. This process is called Encapsulation. It is like mailing an item, a data packet itself is like the item, and encapsulation is like filling in all kinds of mailing information.
After each layer encapsulates the data unit name is different, after the application layer, presentation layer, session layer protocol data unit are called Data; in the transport layer, it is called Segment; in the network layer, it is called Packet; In data link layer protocol data unit called Frame; in the physical layer, it is called Bits.
When the data arrives at the receiving end, each layer reads the corresponding control information and transfers the data unit to the upper layer according to the content of the control information. Before passing the information to the upper layer, the control header and tail information (if any) of this layer are removed. This process is called Decapsulation.

The process of data encapsulation in OSI 7 Layer Reference model as follows:
在这里插入图片描述

(Encapsulation)

  1. The user information is converted into data for transmission on the network from Application layer to Session layer by adding header on the user data, there are AH (Application Header), PH (Presentation Header) and SH (Session Header).
  2. Convert data into segments and establish a reliable connection between the sender and recipient hosts in Transport layer and add TCP Header, and then submit to next layer.
  3. The data segment is converted into a packet and IP address is placed in the header so that each packet can be transmitted over the Internet.
  4. Data packets is converted to frames in Data Link Layer and add MAC header and LLC header to the frames. The layer also adds FCS (Frame Check Sequence is use for error checking) on the tail of the frame.
  5. The frame is converted to bit in the Physical Layer and put into digital signal (so it can be read by devices). Of course, there are few 1 and 0 are added in front of frame, thus, the receiver can synchronize with the digital signal it will receive. And then transfer it into cable (Transmission Media).
    (Decapsulation)
  6. The receiving computer will synchronize with the digital signal first and read the extra 1 and 0 which is added on step 5. After that, the extra 1 and 0 will be removed, and the frame will be transfer to Data Link Layer.
  7. The data link layer will execute CRC (Cyclic Redundancy Check) on the frame. If it is correct, the MAC header, LLC header and FCS tail will be removed, and the packet will be transfer to Network Layer; if it is incorrect, the frame would be discarded.
  8. Similarly, the network layer, transport layer, session layer, presentation layer, and application layer also need to do similar work (remove the header which is added by each layer). Ultimately, the raw data is delivered to the specific application on the receiving computer.

Reference:
Mahak Kalal, The Tech Win, What is Ethernet data encapsulation and data decapsulation? 24 June 2018, Available from https://thetechwin.wordpress.com/2018/06/24/what-is-ethernet-data-encapsulation-and-data-decapsulation/ [28/02/20]
Firewall.cx, Data Encapsulation & Decapsulation in the OSI Model, available from http://www.firewall.cx/networking-topics/the-osi-model/179-osi-data-encapsulation.html [28/02/20]

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
basic_table.html:1加载资源失败,服务器返回了404的状态码。[1] 这可能是由于资源文件找不到导致的。解决方法可以尝试以下两种方案: 方案一:在config目录下找到index.js文件,打开并修改assetsPublicPath为“./”。这会确保资源文件路径正确。 方案二:检查传给后台的时间参数是否转换成了正确的时间戳格式,有些情况下400状态码可能是由于时间参数格式错误引起的。 另外,如果出现504(网关超时)或401(未授权)状态码,可以通过检查后台服务器是否正常启动或联系后端开发人员来解决。 常见状态码解释: - 200:请求成功 - 304:请求的页面没有修改 - 400:请求语法错误,服务器不理解 - 401:请求要求用户身份信息 - 403:服务器理解请求,但拒绝执行 - 404:请求资源找不到 - 500:服务器内部错误,无法完成请求 - 504:充当网关或代理的服务器未及时从远端服务器获取请求 所以,你可以尝试检查basic_table.html文件的路径是否正确,并确保服务器能够正确响应该资源文件。如果问题仍然存在,请联系后台开发人员进行进一步处理。<span class="em">1</span><span class="em">2</span><span class="em">3</span> #### 引用[.reference_title] - *1* [vue打包npm run build时候界面报错的解决](https://download.csdn.net/download/weixin_38626943/13128820)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"] - *2* *3* [整理Vue项目开发过程中遇到的常见问题1](https://blog.csdn.net/weixin_41697323/article/details/97807163)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"] [ .reference_list ]
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值