openoptics.utils.path2entries

Contents

openoptics.utils.path2entries#

openoptics.utils.path2entries(paths: List[Path], routing_mode, arch_mode='TO') → Dict[int, TimeFlowEntry][source]#

Convert paths to time flow table entries

Parameters:
  • paths – A list of paths

  • routing_mode – Per-hop or Source. Trim path if Per-hop.

  • arch_mode – TA or TO. In TA, packets for each dst has a dedicated queue. send_ts in TimeFlowHop is dst. In TO, send_ts is actual sending time slice.

Returns:

entries}

Return type:

The dictionary of {src_id