用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/hiyenwong/ai_collection --skill coflow-scheduling-ocs命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | coflow-scheduling-ocs |
| description | Coflow Scheduling in Multi-Core Optical Circuit Switching Networks with Performance Guarantees |
| version | 1.0.0 |
| author | Research Synthesis |
| license | MIT |
| metadata | {"hermes":{"tags":["coflow","optical-circuit-switching","data-center","scheduling","distributed-systems","networking"],"source_paper":"Scheduling Coflows in Multi-Core OCS Networks with Performance Guarantee (arXiv:2604.08242v1)","citations":0,"category":"systems-engineering"}} |
Coflow provides a key application-layer abstraction for capturing communication patterns in distributed systems. Modern data centers employ multiple independent optical circuit switching (OCS) cores operating concurrently to meet massive bandwidth demands. This paper addresses coflow scheduling in multi-core OCS fabrics, extending beyond single-core and electrical packet switching (EPS) approaches.
# Coflow Scheduling for Multi-Core OCS Networks
from dataclasses import dataclass
from typing import List, Dict
@dataclass
class Flow:
src: int
dst: int
size: int
@dataclass
class Coflow:
id: int
flows: List[Flow]
arrival_time: float
class MultiCoreOCSScheduler:
def __init__(self, num_cores: int, core_capacity: float):
self.num_cores = num_cores
self.core_capacity = core_capacity
self.circuit_duration = 10e-6
def schedule_coflow(self, coflow: Coflow) -> Dict[int, List]:
schedule = {i: [] for i in range(self.num_cores)}
sorted_flows = sorted(coflow.flows, key=lambda f: f.size, reverse=True)
for i, flow in enumerate(sorted_flows):
core_id = i % self.num_cores
duration = flow.size / (.core_capacity / )
start_time = ._find_earliest_slot(core_id, flow, duration)
schedule[core_id].append((flow, start_time, duration))
schedule