def delay(self, sender, receiver, packet, add_delay=<NUM_LIT:0>):
bw = min(sender.ul_bandwidth, receiver.dl_bandwidth)<EOL>delay = sender.base_latency + receiver.base_latency<EOL>delay += len(packet) / bw<EOL>delay += add_delay<EOL>return delay<EOL>
bandwidths are inaccurate, as we don't account for parallel transfers here