[attacks] Add simulation-time message scheduling for attack stages

未关闭
#217 0 条评论 0 个 reaction 已指派 1 人 在 GitHub 查看

维护者通常 1 天内回复

@xxxdvt 已经在做这个了。

开始于 2026年11月25日。

评估

难度
5/5
预计耗时
一周以上
新手友好度
35/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
活跃
技术栈
python

调研方向

Start by locating the replay stage and its handling of service and capability binding outputs, then trace how simulation time and attack start or stop are represented. The issue proposes a bounded queue with configurable delays, replay selection, reordering, duplication, deterministic randomization, overflow behavior, and stop behavior, but leaves these design choices open. Done means those behaviors are defined and implemented with tests for delivery timing and edge cases.

由索引模型根据 Issue 内容生成。

描述

enhancement
Problem or motivation

The current replay stage stores the previous output for each service and capability binding and returns it on the next handler invocation. It provides a one-invocation shift but cannot express a configurable delay in simulation ticks, replay an older selected message, or schedule message reordering and duplication.

Add a bounded message queue driven by simulation time. Support configurable delivery delays, replay selection, reordering, and duplication, with deterministic randomization where applicable. Define queue overflow behavior and whether pending messages are discarded or delivered when an attack stops.

Proposed solution

...

Area

Simulation

Alternatives considered

No response

Additional context

No response

主要语言
Python
星标
11
派生
11
平均合并
1 天 16 小时
30 天内合并 PR
12

环境准备

  • 提供 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

CAVISE/OpenCDA 的其他 Issue

查看 CAVISE/OpenCDA 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。