tsnNetwork module

class panco.tsn.tsnNetwork.TsnNetwork(flows: List[TsnFlow], servers: List[TsnSwitch], be_flows=False, be_max_length=0)

Bases: object

Class that describes a TSN network and transforms in into a list of FIFO networks (one per CBS/BE class)

Parameters:
  • self.num_servers – number of servers in the network. It corresponds to the number of TSN switches

  • self.num_classes – number of classes in the network

  • self.flows – list of TSN flows circulating in the network

  • self.servers – list of TSN switches (max_packet can be initialized to 0 at the construction step)

to_fifo_networks() List[Network]

Function that transforms the TSN network into a list of FIFO networks, one per CBS/BE class. It first updates the maximum packet length of the flows for each servers in oder to compute residual service curves.

Returns:

the list of Network for the analysis of each class.