Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added enq-deq-equiv/notes.pdf
Binary file not shown.
876 changes: 876 additions & 0 deletions enq-deq-equiv/notes.tex

Large diffs are not rendered by default.

9 changes: 9 additions & 0 deletions enq-deq-equiv/refs.bib
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
@misc{OG,
title={Formal Abstractions for Packet Scheduling},
author={Anshuman Mohan and Yunhe Liu and Nate Foster and Tobias Kappé and Dexter Kozen},
year={2023},
eprint={2211.11659},
archivePrefix={arXiv},
primaryClass={cs.NI},
url={https://arxiv.org/abs/2211.11659},
}
11 changes: 11 additions & 0 deletions enq-deq-equiv/sched_trans/pifo/z_post-pop.pseudo
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
def z_post-pop(st, pkt):
f = flow(pkt)
turn = int(s["turn"])
i = turn
while i != f:
st["r_" + str(i)] += n
i = (i + 1) % n
st["turn"] = float((f + 1) % n)
if turn >= st["turn"]:
st["cycle"] += 1
return st
7 changes: 7 additions & 0 deletions enq-deq-equiv/sched_trans/pifo/z_pre-push.pseudo
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
def z_pre-push(st, pkt):
r = arrival_time(pkt)
f = flow(pkt)
rank_ptr = "r_" + str(f)
r_i = int(st[rank_ptr])
st["rank_ptr"] += float(n)
return ((f, r_i) :: r, st)
4 changes: 4 additions & 0 deletions enq-deq-equiv/sched_trans/rio/z_post-pop.pseudo
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
def z_post-pop(st, pkt):
f = flow(pkt)
st["turn"] = float((f + 1) % n)
return st
7 changes: 7 additions & 0 deletions enq-deq-equiv/sched_trans/rio/z_pre-pop.pseudo
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
def z_pre-pop(st):
turn = int(s["turn"])
rs = []
for i in range(n):
# Python %, e.g. -2 % 3 == 1, not -2
rs.append((i - turn) % n)
return Internal(rs, [Leaf] * n)
2 changes: 2 additions & 0 deletions enq-deq-equiv/sched_trans/rio/z_pre_push.pseudo
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
def z_pre-push(st, pkt):
return arrival_time(pkt)