Assign a buffer sizes proportionally to the product of link bandwidth and average network RTT. This is a rule of thumb according to which the buffers of Internet routers are generally configured.
Parameters : | topology : Topology or DirectedTopology
buffer_unit : string
mtu : int, optional
|
---|
Examples
>>> import fnss
>>> topology = fnss.erdos_renyi_topology(50, 0.2)
>>> fnss.set_capacities_constant(topology, 10, 'Mbps')
>>> fnss.set_delays_constant(topology, 2, 'ms')
>>> fnss.set_buffer_sizes_bw_delay_prod(topology)