中国科学技术大学:《嵌入式系统设计方法》课程教学资源(课件讲稿,第一版)06 分布式DRE系统(时钟同步-TTP)

® 实时系统设计(DRE系统) 李曦 llxx@ustc.edu.cn 计算机系计算机应用研究室
实时系统设计(DRE系统) 李曦 llxx@ustc.edu.cn 计算机系计算机应用研究室

内容提要 ·分布式实时系统 Leslie Lamport "A system is distributed if the message transmission delay is not negligible compared to the time between events in a single process."[Lam78b]. Real-Time Systems and Dependable Systems Temporal properties Timing constraints on interface,including ordering restrictions ·分布式通信协议 OSI collapsed model LIN/CAN 。 时间同步 ·TTP协议 ·H.Kopetz. Real-Time Systems:Design Principles for Distributed Embedded Applications.Kluwer Academic Publishers.1997. P.Verissimo and L.Rodriguez. Distributed Systems for System Architects.Kluwer Academic Publishers.2001
内容提要 • 分布式实时系统 – Leslie Lamport • “A system is distributed if the message transmission delay is not negligible compared to the time between events in a single process.” [Lam78b]. • Real-Time Systems and Dependable Systems – Temporal properties • Timing constraints on interface, including ordering restrictions • 分布式通信协议 – OSI collapsed model – LIN/CAN • 时间同步 • TTP协议 • H. Kopetz. – Real-Time Systems: Design Principles for Distributed Embedded Applications. Kluwer Academic Publishers. 1997. • P. Veríssimo and L. Rodríguez. – Distributed Systems for System Architects. Kluwer Academic Publishers. 2001

Architecture model of CPS Round Robin Fixed Priority EDF Output Events ECU ECU ECU Communication Bus
Architecture model of CPS

Why build distributed systems? Centralized intelligence ECU need to communicate - cabling started to be a problem Co-operation using the network to extremely complex connection provide end-to-end functionality poor fault-tolerance ·Point-to-point Shared multiplex buses 。 Distributed intelligence delay,unreliable - Minimizes peripheral wiring improved fault-tolerance ·Independently ·more manageable Scalability ⑧Sensor ☒Actuator ECU -Wiring ☒ Control System Ec可 ECU
Why build distributed systems? • Centralized intelligence – cabling started to be a problem – extremely complex connection – poor fault-tolerance • Distributed intelligence – Minimizes peripheral wiring – improved fault-tolerance • Independently • more manageable – Scalability • ECU need to communicate – Co-operation using the network to provide end-to-end functionality • Point-to-point • Shared multiplex buses – delay,unreliable

Reactive,real-time and distributed S 前端模块 风精雨副罗 音响/信息损乐 MB90495G Me89215 系镜 HB90540 Me89935B MB90340 MB90590 MB90390 坐调面饭 MB90430 后裤棋典 终端电用 4B89215 MB90540G 电动座精 MB90385 MB39935B 1B90590G NB90385 4B90495G LIN MB90495G MB90545G 高逃CAN Bus 发动机 ABS 兼客检测 低速CAN 位表同关 电动门 MB90385 Bus MB90340 4B90385 MB90495G Me90390 4B90495G MB90420G Me90440G 后规镜 方向控 门禁系统 Me90540G Me89215 MB90385 MB90495G M890590G Me899358 MB90495
Reactive, real-time and distributed ES

Centralized or Distributed Systems? ·Fact: 一 centralized systems are far simpler than distributed ones. But: -Fault-tolerance forces distribution -Physical position of sensors and computers also forces distribution -Efficiency sometimes requires distribution Real-Time Predictability Must ensure end-to-end deadlines are met before system deployment
Centralized or Distributed Systems? • Fact: – centralized systems are far simpler than distributed ones. • But: – Fault-tolerance forces distribution – Physical position of sensors and computers also forces distribution – Efficiency sometimes requires distribution • Real-Time Predictability – Must ensure end-to-end deadlines are met before system deployment

Distributed architecture USTC Temporal contracts Node Both the network and ECU resources are shared - Placing deadlines on each component network arbitration scheme Event Static(cyclic)scheduling Processing Message Message occurs begins generated ready for ·LIN ◆transmission Node response time Priority-based arbitration CAN(Controller Area Network) Network Source Event Node Node Destination Node Node Node Response Network Response Node Response End-to-End Deadline
Distributed architecture • Temporal contracts – Both the network and ECU resources are shared – Placing deadlines on each component • network arbitration scheme – Static (cyclic) scheduling • LIN – Priority-based arbitration • CAN (Controller Area Network) Source Node Destination Node

OSI collapsed model sc》 Some requirements related to traffic Efficient transmission of short data(few bytes) Periodic transmission(monitoring,feedback control)with short periods(ms)and low jitter(time variation) Fast transmission(ms)of aperiodic requests(alarms) Transmission of non-real-time data(configuration,logs) - Multicasting The end-to-end communication delay must be bounded In most real-time networks,most layers are unnecessary No data conversion,no routing,no data fragmentation... OSI collapsed model:Physical,Data Link and Application fieldbuses Node Node Node Application Host Presentation Computer Session CNI Transport CNI Comm. Network Application Controller Data Link Data Link CNI Physical Physical 8 12/20/20 Physical interconnection medium
8 12/20/2016 OSI collapsed model • Some requirements related to traffic – Efficient transmission of short data (few bytes) – Periodic transmission (monitoring, feedback control) with short periods (ms) and low jitter (time variation) – Fast transmission (ms) of aperiodic requests (alarms) – Transmission of non-real-time data (configuration, logs) – Multicasting • The end-to-end communication delay must be bounded • In most real-time networks, most layers are unnecessary – No data conversion, no routing, no data fragmentation… – OSI collapsed model: Physical, Data Link and Application – fieldbuses

Physical Layer features 》 In many cases low cost of the cabling scheme is fundamental! Is simplifies cabling Makes unnecessary for the protocol to perform routing -It facilitates a consistent reception of the same information in broadcast mode It facilitates the achievement of a consistent order in the reception of the messages. 9 12/20/2016
9 12/20/2016 Physical Layer features • In many cases low cost of the cabling scheme is fundamental! – Is simplifies cabling – Makes unnecessary for the protocol to perform routing – It facilitates a consistent reception of the same information in broadcast mode – It facilitates the achievement of a consistent order in the reception of the messages

Data Link Layer features USTC ·Addressing Direct addressing:The sender and receiver(s)are explicitly identified in every transaction,using physical addresses (as in Ethernet) - Indirect(source)addressing:The message contents are explicitly identified(e.g.temperature of sensor X).Receivers that need the message,retrieve it from the network(as in CAN and WorldFIP) Indirect(time-based)addressing:The message is identified by the time instantat which it is transmitted(as in TTP) Logical Link Control (LLC) transmission error control Medium Access Control (MAC) -Which is fundamental for RT response 10 12/20/2016
10 12/20/2016 Data Link Layer features • Addressing – Direct addressing: The sender and receiver(s) are explicitly identified in every transaction, using physical addresses (as in Ethernet) – Indirect (source) addressing: The message contents are explicitly identified (e.g. temperature of sensor X). Receivers that need the message, retrieve it from the network (as in CAN and WorldFIP) – Indirect (time-based) addressing: The message is identified by the time instantat which it is transmitted (as in TTP) • Logical Link Control (LLC) – transmission error control • Medium Access Control (MAC) – Which is fundamental for RT response
按次数下载不扣除下载券;
注册用户24小时内重复下载只扣除一次;
顺序:VIP每日次数-->可用次数-->下载券;
- 中国科学技术大学:《嵌入式系统设计方法》课程教学资源(课件讲稿,第一版)05 RTE设计方法之CBD与MBD.pdf
- 中国科学技术大学:《嵌入式系统设计方法》课程教学资源(课件讲稿,第一版)05 嵌入式系统的描述与验证.pdf
- 中国科学技术大学:《嵌入式系统设计方法》课程教学资源(课件讲稿,第一版)05 嵌入式系统设计方法——软硬件协同设计方法.pdf
- 中国科学技术大学:《嵌入式系统设计方法》课程教学资源(课件讲稿,第一版)04 实时系统设计(软件设计、控制系统、EA、语言).pdf
- 中国科学技术大学:《嵌入式系统设计方法》课程教学资源(课件讲稿,第一版)04 实时系统设计(实时任务调度).pdf
- 中国科学技术大学:《嵌入式系统设计方法》课程教学资源(课件讲稿,第一版)03 嵌入式操作系统 μC/OS-I分析.pdf
- 中国科学技术大学:《嵌入式系统设计方法》课程教学资源(课件讲稿,第一版)03 嵌入式操作系统.pdf
- 中国科学技术大学:《嵌入式系统设计方法》课程教学资源(课件讲稿,第一版)02 ARM指令集.pdf
- 中国科学技术大学:《嵌入式系统设计方法》课程教学资源(课件讲稿,第一版)02 ARM体系结构(Advanced RISC Machines).pdf
- 中国科学技术大学:《嵌入式系统设计方法》课程教学资源(课件讲稿,第一版)01 嵌入式实时系统设计方法概论(主讲:李曦)Embedded real-time systems(Embedded Computing).pdf
- 中国科学技术大学:《计算机组成原理》课程教学资源(课件讲稿,2023)15 IO系统——外设、输入输出系统.pdf
- 中国科学技术大学:《计算机组成原理》课程教学资源(课件讲稿,2023)14 系统互连与通信——总线.pdf
- 中国科学技术大学:《计算机组成原理》课程教学资源(课件讲稿,2023)13 存储器(存储系统的可靠性).pdf
- 中国科学技术大学:《计算机组成原理》课程教学资源(课件讲稿,2023)12 存储器(虚拟存储器).pdf
- 中国科学技术大学:《计算机组成原理》课程教学资源(课件讲稿,2023)11 存储器(外存储器).pdf
- 中国科学技术大学:《计算机组成原理》课程教学资源(课件讲稿,2023)09 存储器(层次存储概述、Cache).pdf
- 中国科学技术大学:《计算机组成原理》课程教学资源(课件讲稿,2023)10 存储器(SRAM/DRAM原理、主存系统构建).pdf
- 中国科学技术大学:《计算机组成原理》课程教学资源(课件讲稿,2023)08 RV处理器设计——异常与中断.pdf
- 中国科学技术大学:《计算机组成原理》课程教学资源(课件讲稿,2023)07 RV处理器设计——流水线冒险、分支、多发射.pdf
- 中国科学技术大学:《计算机组成原理》课程教学资源(课件讲稿,2023)06 RV处理器设计——流水线冲突及冒险.pdf
- 中国科学技术大学:《嵌入式系统设计方法》课程教学资源(课件讲稿,第一版)07 低功耗系统设计.pdf
- 中国科学技术大学:《嵌入式系统设计方法》课程教学资源(课件讲稿,第二版)嵌入式实时系统及设计方法概述(主讲:李曦).pdf
- 中国科学技术大学:《嵌入式系统设计方法》课程教学资源(课件讲稿,第二版)嵌入式处理器体系结构.pdf
- 中国科学技术大学:《嵌入式系统设计方法》课程教学资源(课件讲稿,第二版)ARM体系结构与Cortex-M3(Advanced RISC Machines).pdf
- 中国科学技术大学:《嵌入式系统设计方法》课程教学资源(课件讲稿,第二版)嵌入式操作系统(概述).pdf
- 中国科学技术大学:《嵌入式系统设计方法》课程教学资源(课件讲稿,第二版)实时调度理论(任务调度、可调度性).pdf
- 中国科学技术大学:《嵌入式系统设计方法》课程教学资源(课件讲稿,第二版)实时调度(多处理器、调度异常、WCET).pdf
- 中国科学技术大学:《嵌入式系统设计方法》课程教学资源(课件讲稿,第二版)嵌入式操作系统(uC、OSII).pdf
- 中国科学技术大学:《嵌入式系统设计方法》课程教学资源(课件讲稿,第二版)嵌入式系统形式化规范与建模(FSM,KPN,SDF).pdf
- 中国科学技术大学:《嵌入式系统设计方法》课程教学资源(课件讲稿,第二版)设计验证与需求确认(嵌入式系统的属性与验证).pdf
- 中国科学技术大学:《嵌入式系统设计方法》课程教学资源(课件讲稿,第二版)实时嵌入式软件设计(控制系统,DARTS,EA,语言).pdf
- 中国科学技术大学:《嵌入式系统设计方法》课程教学资源(课件讲稿,第二版)RTE规范与建模方法之 Domain Specific Modeling Languages(MARTE、AADL、Autosar).pdf
- 佛山开放大学:《SQL Server 2000 程序设计》课程教学资源(PPT课件)第12章 ODBC数据库应用程序开发.ppt
- 佛山开放大学:《SQL Server 2000 程序设计》课程教学资源(PPT课件)第2章 数据库文件管理.ppt
- 佛山开放大学:《SQL Server 2000 程序设计》课程教学资源(PPT课件)第10章 服务器性能和活动监视.ppt
- 佛山开放大学:《SQL Server 2000 程序设计》课程教学资源(PPT课件)第1章 SQL Sever2000概述(教师:孟艳敏).ppt
- 佛山开放大学:《SQL Server 2000 程序设计》课程教学资源(PPT课件)第3章 表和表数据的操作.ppt
- 佛山开放大学:《SQL Server 2000 程序设计》课程教学资源(PPT课件)第4章 约束、默认和规则.ppt
- 佛山开放大学:《SQL Server 2000 程序设计》课程教学资源(PPT课件)第5章 关系、索引和视图.ppt
- 佛山开放大学:《SQL Server 2000 程序设计》课程教学资源(PPT课件)第6章 T-SQL程序设计.ppt