openalto / ietf-hackathon

3 stars 7 forks source link

Demo 2: Write JSON parser for ALTO flow cost service #24

Open jacobdunefsky opened 2 years ago

jacobdunefsky commented 2 years ago

Specification: https://datatracker.ietf.org/doc/html/draft-gao-alto-fcs-07#section-5.5.3

Server side: https://github.com/openalto/alto/blob/main/tools/server.py

Client side: https://github.com/openalto/alto/blob/main/src/alto/client/client.py

giralt commented 2 years ago

The code for this task is in the task2 branch of ALTO repo: https://github.com/openalto/alto/tree/task2

emiapwil commented 2 years ago

Ideally, the parsed data can be encapsulated to avoid direct manipulation of JSON objects, and be decoupled from the data retrieval. The idea is to make the parser a library that can be used by server instances with different backends. Currently the code is more like an application rather than a library.

jacobdunefsky commented 2 years ago

See https://github.com/openalto/alto/blob/task2-arch-fix-untested/src/alto/server/estimate_throughput.py and https://github.com/openalto/alto/blob/task2-arch-fix-untested/src/alto/server/g2parser.py. Note that these are both untested.