AUTOSAR-PDU&SDU

本文介绍了协议数据单元(PDU)和服务数据单元(SDU)的基本概念及其在不同协议层之间的转换过程。通过实例展示了TCP/IP协议栈中PDU与SDU的关系,并提及了AUTOSAR通信层中的PDU应用。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

 
PDU: Protocol Data Unit
The PDU contains SDU and PCI. On the transmission side the PDU is passed from the upper layer to the lower layer, which interprets this PDU as its SDU.
 
SDU: Service Data Unit
It is the data passed by an upper layer, with the request to transmit the data. It is as well the data which is extracted after reception by the lower layer and passed to the upper layer. A SDU is part of a PDU.
 
PCI: Protocol Control Information
This Information is needed to pass a SDU from one instance of a specific protocol layer to another instance. E.g. it contains source and target information.
The PCI is added by a protocol layer on the transmission side and is removed again on the receiving side.
 
普通概念
相对专有概念而言,这是一个关于协议(Protocol)的基本概念,每一个协议都有PDU和SDU。比如TCP/IP二层桥有BPDU,802.11中有MSDU/MPDU/PSDU/PPDU。
 
SDU对于该协议而言只是data(plain bytes),协议规定了PCI,供发送端和接收端进行编解码使用。发送端使用PCI将SDU封装,就是PDU,即:PDU = PCI + SDU。
 
相对概念
PDU和SDU是相对的概念,上一层的PDU,传到下一层就是SDU。
比如TCP/IP中的各层:
  1. 应用层要发送的数据(data),
  1. 在TCP/UDP层是SDU,经过传输层加上TCP/UDP头封装之后是TCP/UDP的PDU;
  1. TCP/UDP PDU传到IP层,是IP层的SDU,IP层封装加上IP头之后,是IP层的PDU;
  1. IP PDU传到MAC层,是MAC层的SDU,MAC层加上MAC头之后,是MAC的PDU;
  1. MAC PDU传到物理层,是物理层的SDU,物理层加上PHY头之后,是PHY PDU;
 
图示如下:
 
AUTOSAR中的PDU们
AUTOSAR Communication各层中对PDU的称呼如下表:

转载于:https://www.cnblogs.com/wjcdx/p/9032978.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值