Equal Share
calculate_bandwidth_allocation(capacity, demands)
Calculates network shares using the simple notion of equal sharing, where the allocated bandwidth for each flow is equal to the available bandwidth divided by the number of active flows.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
capacity |
int
|
Network bandwidth to be shared. |
required |
demands |
list
|
List of demands (e.g.: list of demands of services that will be migrated). |
required |
Returns:
Name | Type | Description |
---|---|---|
list |
list
|
Network allocation scheme. |
Source code in edge_sim_py/components/flow_scheduling/equal_share.py
36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 |
|
equal_share(topology, flows)
Manages the execution of a equal bandwidth share algorithm for network flows.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
topology |
object
|
Network topology object. |
required |
flows |
list
|
List of flows in the topology. |
required |
Source code in edge_sim_py/components/flow_scheduling/equal_share.py
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 |
|