OpticalRouting

OpticalRouting#

User APIs#

openoptics.OpticalRouting.routing_direct(...)

Direct routing.

openoptics.OpticalRouting.routing_direct_ta(...)

Direct routing for traffic-aware.

openoptics.OpticalRouting.routing_hoho(...)

HoHo routing — shortest-path forwarding over the time-expanded schedule graph.

openoptics.OpticalRouting.routing_ksp(...)

Opera routing by searching the shortest path for each time slice.

openoptics.OpticalRouting.routing_vlb(...[, ...])

VLB routing.

Helper Functions#

openoptics.OpticalRouting.find_direct_path(...)

Helper function to find the direct paths between two nodes for all time slices.

openoptics.OpticalRouting.find_n_hop_path_node_pair(...)

Helper function to find the path between src and dst with the max hop of max_hop.

openoptics.OpticalRouting.extend_paths_to_all_time_slice(...)

Helper function used by opera and hoho routing.

openoptics.OpticalRouting.find_send_port(...)

Helper function to find the send port given the src and dst nodes in the topo.