TASP: Enabling Time-Triggered Task Scheduling in TSN-Based Mixed-Criticality Systems

Xuyan Jiang, Yiming Zhang, Wenwen Fu, Xiangrui Yang, Yinhan Sun, Zhigang Sun
{"title":"TASP: Enabling Time-Triggered Task Scheduling in TSN-Based Mixed-Criticality Systems","authors":"Xuyan Jiang, Yiming Zhang, Wenwen Fu, Xiangrui Yang, Yinhan Sun, Zhigang Sun","doi":"10.1109/IWQoS54832.2022.9812898","DOIUrl":null,"url":null,"abstract":"Distributed mixed-criticality system (DMCS) has been widely used in various critical domains such as self-driving cars and space crafts. To guarantee the end-to-end QoS (i.e., deadline/jitter requirements) of sensing-controlling-actuating control loops (CL) applications, DMCS adopts Time-Sensitive Networking (TSN), an emerging real-time Ethernet technology, for communication between end systems (ES). TSN provides a synchronized global clock and guarantees bounded delay for time-critical traffic in CLs, making it possible for DMCS to collaboratively schedule the computation (on ES) and communication (in TSN) to meet the Quality of Service (QoS) requirement. However, as modern DMCS tends to use fully-fledged Linux distributions (rather than a custom real-time OS) on ES to enjoy Linux’s mature ecosystem, it is challenging for DMCS to realize TSN-based QoS guarantees because the event-triggered scheduling of Linux on ES is incompatible with TSN.This paper proposes TAsk Scheduling Puppeteer (TASP), a mechanism that schedules CL tasks based on TSN without modifying the Linux OS. The key idea of TASP is to manipulate task scheduling by controlling the timing of CL packet submissions at the interface between TSN and ES. Specifically, TASP extracts two parameters: Fore Guardband (ForeGB) and Back Guardband (BackGB). During the ForeGB period before a CL packet’s submission, TASP forbids any packets’ submission; while during the BackGB period after a CL packet’s submission, TASP forbids any other CL packets’ submission. ForeGB and BackGB can ensure that there is at most one schedulable task on the ES at any time, and thus Linux has no choice but to schedule the only task, making the Linux scheduler a puppet. We have deployed TASP and evaluated it in real-world TSN switches based on an open-source TSN project, OpenTSN. The TASP-enabled ES can achieve task scheduling precisely based on TSN’s global clock, which outperforms the original ES by reducing end-to-end jitter from milliseconds to microseconds.","PeriodicalId":353365,"journal":{"name":"2022 IEEE/ACM 30th International Symposium on Quality of Service (IWQoS)","volume":"24 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2022-06-10","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"3","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"2022 IEEE/ACM 30th International Symposium on Quality of Service (IWQoS)","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1109/IWQoS54832.2022.9812898","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 3

Abstract

Distributed mixed-criticality system (DMCS) has been widely used in various critical domains such as self-driving cars and space crafts. To guarantee the end-to-end QoS (i.e., deadline/jitter requirements) of sensing-controlling-actuating control loops (CL) applications, DMCS adopts Time-Sensitive Networking (TSN), an emerging real-time Ethernet technology, for communication between end systems (ES). TSN provides a synchronized global clock and guarantees bounded delay for time-critical traffic in CLs, making it possible for DMCS to collaboratively schedule the computation (on ES) and communication (in TSN) to meet the Quality of Service (QoS) requirement. However, as modern DMCS tends to use fully-fledged Linux distributions (rather than a custom real-time OS) on ES to enjoy Linux’s mature ecosystem, it is challenging for DMCS to realize TSN-based QoS guarantees because the event-triggered scheduling of Linux on ES is incompatible with TSN.This paper proposes TAsk Scheduling Puppeteer (TASP), a mechanism that schedules CL tasks based on TSN without modifying the Linux OS. The key idea of TASP is to manipulate task scheduling by controlling the timing of CL packet submissions at the interface between TSN and ES. Specifically, TASP extracts two parameters: Fore Guardband (ForeGB) and Back Guardband (BackGB). During the ForeGB period before a CL packet’s submission, TASP forbids any packets’ submission; while during the BackGB period after a CL packet’s submission, TASP forbids any other CL packets’ submission. ForeGB and BackGB can ensure that there is at most one schedulable task on the ES at any time, and thus Linux has no choice but to schedule the only task, making the Linux scheduler a puppet. We have deployed TASP and evaluated it in real-world TSN switches based on an open-source TSN project, OpenTSN. The TASP-enabled ES can achieve task scheduling precisely based on TSN’s global clock, which outperforms the original ES by reducing end-to-end jitter from milliseconds to microseconds.
在基于tsn的混合临界系统中启用时间触发任务调度
分布式混合临界系统(DMCS)已广泛应用于自动驾驶汽车、航天器等关键领域。为了保证传感-控制-驱动控制回路(CL)应用的端到端QoS(即截止日期/抖动要求),DMCS采用了一种新兴的实时以太网技术——时间敏感网络(TSN),用于终端系统(ES)之间的通信。TSN提供了一个同步的全局时钟,并保证了CLs中时间关键流量的有限延迟,使DMCS能够协同调度计算(在ES上)和通信(在TSN上),以满足服务质量(QoS)要求。然而,由于现代DMCS倾向于在ES上使用完全成熟的Linux发行版(而不是自定义的实时操作系统)来享受Linux成熟的生态系统,因此由于ES上Linux的事件触发调度与TSN不兼容,DMCS实现基于TSN的QoS保证是具有挑战性的。TAsk Scheduling Puppeteer (TASP)是一种在不修改Linux操作系统的情况下,基于TSN调度CL任务的机制。TASP的关键思想是通过控制在TSN和ES之间的接口上CL包提交的时间来操纵任务调度。具体来说,TASP提取了两个参数:前护带(ForeGB)和后护带(BackGB)。在提交CL包之前的ForeGB期间,TASP禁止任何包的提交;而在提交CL包后的BackGB期间,TASP禁止提交任何其他CL包。ForeGB和BackGB可以确保在任何时候ES上最多有一个可调度任务,因此Linux别无选择,只能调度唯一的任务,使Linux调度器成为傀儡。我们已经在基于开源TSN项目OpenTSN的真实TSN交换机中部署了TASP并对其进行了评估。启用tsp的ES可以基于TSN的全局时钟精确地实现任务调度,通过将端到端抖动从毫秒减少到微秒,优于原始ES。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
自引率
0.00%
发文量
0
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:604180095
Book学术官方微信