microsoft / microsoft/demikernel

[inetstack] Deduplicate state machine

Open
#1,007 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
Rust
Stars
1.2k
Forks
151
PR merge metrics
No merged PRs in 30d

Description

Context

Currently we have one state machine that is used by Catnap and Catloop and then an additional one in the inetstack. This should be deduplicated into one state machine.

Proposed Solution

Add the ability to store state/sockets in the state machine? I think we should be able to store sockets in the state machine and/or addresses depending on the state that the queue/socket is in. This will eliminate the need for the existing state machine in the TCP stack.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading the state machines used by Catnap, Catloop, and inetstack, then trace how they store sockets, addresses, and queue state. Done means the duplicate inetstack state machine is replaced by one shared state machine without losing the required TCP state handling.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
networking
Issue type
Refactor
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.