コード例 #1
0
 def __init__(self, flow_id, source, destination, amount, env, time, bw):
     """ Constructor for Flow class
     """
     Flow.__init__(self, flow_id, source, destination, amount, env, time,
                   bw)
     self._ssthresh = 9999
     self._resend_time = 100
コード例 #2
0
    def __init__(self, ns, flow_id, src, dest, data_amount, start_time):
        Flow.__init__(self, ns, flow_id, src, dest, data_amount, start_time)
        self._gamma = FAST_GAMMA
        self._alpha = FAST_ALPHA
        self.last_rtt = float('inf')
        self.base_rtt = float('inf')

        self.schedule_next_update()
コード例 #3
0
 def __init__(self, flow_id, source, destination, amount, env, time, bw):
     """ Constructor for Flow class
     """
     Flow.__init__(self, flow_id, source, destination, amount, env, time,
                   bw)
     self._alpha = 20.0
     self._gamma = 0.8
     self.env.add_event(
         Event("Start window calc", self._flow_id, self._update_window),
         self._flow_start - 1)
     self._total_num_pack = (int)(self._amount / (1024 * 8)) + 1
     self._cwnd = self._alpha
     self._resend_time = 1
コード例 #4
0
ファイル: fast_flow.py プロジェクト: BLQ-Software/black-widow
 def __init__(self, flow_id, source, destination, amount, env, time, bw):
     """ Constructor for Flow class
     """
     Flow.__init__(self, flow_id, source, destination, amount, env, time,
                   bw)
     self._alpha = 20.0
     self._gamma = 0.8
     self.env.add_event(Event("Start window calc", self._flow_id,
                              self._update_window),
                        self._flow_start-1)
     self._total_num_pack = (int)(self._amount/(1024*8)) + 1
     self._cwnd = self._alpha
     self._resend_time = 1
コード例 #5
0
ファイル: flowreno.py プロジェクト: hatooku/NetworkSimulator
    def __init__(self, ns, flow_id, src, dest, data_amount, start_time):
        self.fast_recovery = False
        Flow.__init__(self, ns, flow_id, src, dest, data_amount, start_time)

        self.first_partial_ack = -1
        self.last_partial_ack = -1