tsnFlow module¶
- class panco.tsn.tsnFlow.TsnFlow(arrival_curve: List[TokenBucket], path: List[int], max_length: float, tsn_class: int)¶
Bases:
object
Class describing a TSN flow
- Parameters:
arrival_curve – arrival curve of the flow
path – path (sequence of TSN switches) of the flow
max_length – maximum packet length of the flow
tsn_class – CBS/BE class of the flow
- panco.tsn.tsnFlow.aggregate_tsn_flows(list_flows: List[TsnFlow], num_servers: int, num_classes: int, be_max_length: float) Tuple[List[List[Flow]], ndarray] ¶
From a list of TSN flows and number of servers, computes the list of flows per CBS/BE classes, and the maximum packet size for each class and each tsn link.
- Parameters:
list_flows – list o TSN flows
num_servers – total number of servers
:param num_classes : number of classes :param be_max_length: maximum packet length of the best_effort traffic
- Returns:
the list of flows per class, and the maximum packet length