Skip to content

Add rank examples LAS and EDF, with SP-PIFO and AIFO next to the PIFO (re-land of #124) - #125

Merged
Mingyumaz merged 1 commit into
mainfrom
feat/pifo-ranks
Dec 1, 2026
Merged

Mingyumaz merged 1 commit into
mainfrom
feat/pifo-ranks

Conversation

@Mingyumaz

Copy link
Copy Markdown
Contributor

Motivation

#124 was merged into feat/pifo, not into main: #123 merged 11 seconds earlier, and #124's base was still feat/pifo. So the LAS and EDF examples (commit 15cdecb) are not on main. This PR brings that same commit to main.

What changes

Nothing new. The head is the commit that #124 merged, 15cdecb, unchanged. It merges into main without conflicts, and the merged tree equals 15cdecb's tree (main holds exactly #123, 15cdecb's parent).

For the content (p4-pifo-las, p4-pifo-edf, the SP-PIFO and AIFO P4 controls, examples/pifo-example.h, docs), see #124.

Scope

feat/pifo now holds #124's merge commit as well; it can be deleted once this PR is merged.

🤖 Generated with Claude Code

p4-pifo-las and p4-pifo-edf build their network four times in one
simulation, with the same traffic, and serve the ranks of the P4 program in
four ways: a FIFO, SP-PIFO on the eight priority queues, AIFO on one FIFO,
and ns3::P4PifoScheduler.

- las.p4: least attained service; the rank is the bytes that the packet's
  TCP flow sent through the switch before it (AIFO's drops do not count).
  Short TCP flows pass two long ones; the example prints their completion
  times.
- edf.p4: earliest deadline first; the rank is the arrival time plus the
  deadline of the packet's class, and the egress counts the late packets
  per class.
- pifo_approx/sp_pifo.p4 and aifo.p4: SP-PIFO (NSDI 2020) and AIFO
  (SIGCOMM 2021) as P4 controls that a program applies once it knows the
  rank and the egress port.
- examples/pifo-example.h: the network, the Poisson source and the register
  access, also used by p4-pifo-stfq now (its output is unchanged).
- Docs: examples.md (rows, results, references), switch.md, README,
  TODO.md; the test list runs both examples.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Mingyumaz
Mingyumaz merged commit f269dd2 into main Dec 1, 2026
4 checks passed
@Mingyumaz
Mingyumaz deleted the feat/pifo-ranks branch December 2, 2026 15:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant