Commit 6aaed882 authored by Ashkan's avatar Ashkan

Merge remote-tracking branch 'origin/feature/hecClasses' into feature/hecClasses

# Conflicts:
#	prrt/search_evaluation.py
parents c813df8f 0353de94
Pipeline #4326 failed with stages
in 2 seconds
app_max_latency,app_max_residual_loss_rate,app_data_rate,app_pkt_length,ch_loss_rate,ch_rtt_prop_fwd,ch_data_rate_btl_fwd,sys_block_coding_dly,sys_red_pkt_trans_dly,sys_proc_dly,sys_pkt_loss_detection_dly,sys_src_pkt_interval
10.0,0.00073681,10000000.0,428.0,0.2,0.0737,10000000.0,0.01,0.00313,0.00014,0.00014,0.5
10.0,0.00073681,10000000.0,428.0,0.2,0.0737,10000000.0,0.01,0.00313,0.00014,0.00014,0.0292
10.0,0.00073681,10000000.0,428.0,0.2,0.0737,10000000.0,0.01,0.00313,0.00014,0.00014,0.0017
10.0,0.00073681,10000000.0,428.0,0.2,0.0737,10000000.0,0.01,0.00313,0.00014,0.00014,0.0001
10.0,0.00073681,10000000.0,428.0,0.2,0.0737,10000000.0,0.01,0.00313,0.00014,4e-05,0.5
10.0,0.00073681,10000000.0,428.0,0.2,0.0737,10000000.0,0.01,0.00313,0.00014,4e-05,0.0292
10.0,0.00073681,10000000.0,428.0,0.2,0.0737,10000000.0,0.01,0.00313,0.00014,4e-05,0.0017
10.0,0.00073681,10000000.0,428.0,0.2,0.0737,10000000.0,0.01,0.00313,0.00014,4e-05,0.0001
10.0,0.00073681,10000000.0,428.0,0.2,0.0737,10000000.0,0.01,0.00313,0.00014,1e-05,0.5
10.0,0.00073681,10000000.0,428.0,0.2,0.0737,10000000.0,0.01,0.00313,0.00014,1e-05,0.0292
10.0,0.00073681,10000000.0,428.0,0.2,0.0737,10000000.0,0.01,0.00313,0.00014,1e-05,0.0017
10.0,0.00073681,10000000.0,428.0,0.2,0.0737,10000000.0,0.01,0.00313,0.00014,1e-05,0.0001
10.0,0.00073681,10000000.0,428.0,0.2,0.0737,10000000.0,0.01,0.00313,4e-05,0.0005,0.5
10.0,0.00073681,10000000.0,428.0,0.2,0.0737,10000000.0,0.01,0.00313,4e-05,0.0005,0.0292
10.0,0.00073681,10000000.0,428.0,0.2,0.0737,10000000.0,0.01,0.00313,4e-05,0.0005,0.0017
10.0,0.00073681,10000000.0,428.0,0.2,0.0737,10000000.0,0.01,0.00313,4e-05,0.0005,0.0001
10.0,0.00073681,10000000.0,428.0,0.2,0.0737,10000000.0,0.01,0.00313,4e-05,0.00014,0.5
10.0,0.00073681,10000000.0,428.0,0.2,0.0737,10000000.0,0.01,0.00313,4e-05,0.00014,0.0292
10.0,0.00073681,10000000.0,428.0,0.2,0.0737,10000000.0,0.01,0.00313,4e-05,0.00014,0.0017
10.0,0.00073681,10000000.0,428.0,0.2,0.0737,10000000.0,0.01,0.00313,4e-05,0.00014,0.0001
10.0,0.00073681,10000000.0,428.0,0.2,0.0737,10000000.0,0.01,0.00313,4e-05,4e-05,0.5
10.0,0.00073681,10000000.0,428.0,0.2,0.0737,10000000.0,0.01,0.00313,4e-05,4e-05,0.0292
10.0,0.00073681,10000000.0,428.0,0.2,0.0737,10000000.0,0.01,0.00313,4e-05,4e-05,0.0017
10.0,0.00073681,10000000.0,428.0,0.2,0.0737,10000000.0,0.01,0.00313,4e-05,4e-05,0.0001
10.0,0.00073681,10000000.0,428.0,0.2,0.0737,10000000.0,0.01,0.00313,4e-05,1e-05,0.5
10.0,0.00073681,10000000.0,428.0,0.2,0.0737,10000000.0,0.01,0.00313,4e-05,1e-05,0.0292
10.0,0.00073681,10000000.0,428.0,0.2,0.0737,10000000.0,0.01,0.00313,4e-05,1e-05,0.0017
10.0,0.00073681,10000000.0,428.0,0.2,0.0737,10000000.0,0.01,0.00313,4e-05,1e-05,0.0001
10.0,0.00073681,10000000.0,428.0,0.2,0.0737,10000000.0,0.01,0.00313,1e-05,0.0005,0.5
10.0,0.00073681,10000000.0,428.0,0.2,0.0737,10000000.0,0.01,0.00313,1e-05,0.0005,0.0292
10.0,0.00073681,10000000.0,428.0,0.2,0.0737,10000000.0,0.01,0.00313,1e-05,0.0005,0.0017
10.0,0.00073681,10000000.0,428.0,0.2,0.0737,10000000.0,0.01,0.00313,1e-05,0.0005,0.0001
10.0,0.00073681,10000000.0,428.0,0.2,0.0737,10000000.0,0.01,0.00313,1e-05,0.00014,0.5
10.0,0.00073681,10000000.0,428.0,0.2,0.0737,10000000.0,0.01,0.00313,1e-05,0.00014,0.0292
10.0,0.00073681,10000000.0,428.0,0.2,0.0737,10000000.0,0.01,0.00313,1e-05,0.00014,0.0017
10.0,0.00073681,10000000.0,428.0,0.2,0.0737,10000000.0,0.01,0.00313,1e-05,0.00014,0.0001
10.0,0.00073681,10000000.0,428.0,0.2,0.0737,10000000.0,0.01,0.00313,1e-05,4e-05,0.5
10.0,0.00073681,10000000.0,428.0,0.2,0.0737,10000000.0,0.01,0.00313,1e-05,4e-05,0.0292
10.0,0.00073681,10000000.0,428.0,0.2,0.0737,10000000.0,0.01,0.00313,1e-05,4e-05,0.0017
10.0,0.00073681,10000000.0,428.0,0.2,0.0737,10000000.0,0.01,0.00313,1e-05,4e-05,0.0001
10.0,0.00073681,10000000.0,428.0,0.2,0.0737,10000000.0,0.01,0.00313,1e-05,1e-05,0.5
10.0,0.00073681,10000000.0,428.0,0.2,0.0737,10000000.0,0.01,0.00313,1e-05,1e-05,0.0292
10.0,0.00073681,10000000.0,428.0,0.2,0.0737,10000000.0,0.01,0.00313,1e-05,1e-05,0.0017
10.0,0.00073681,10000000.0,428.0,0.2,0.0737,10000000.0,0.01,0.00313,1e-05,1e-05,0.0001
10.0,0.00073681,10000000.0,428.0,0.2,0.0737,10000000.0,0.01,3e-05,0.0005,0.0005,0.5
10.0,0.00073681,10000000.0,428.0,0.2,0.0737,10000000.0,0.01,3e-05,0.0005,0.0005,0.0292
10.0,0.00073681,10000000.0,428.0,0.2,0.0737,10000000.0,0.01,3e-05,0.0005,0.0005,0.0017
10.0,0.00073681,10000000.0,428.0,0.2,0.0737,10000000.0,0.01,3e-05,0.0005,0.0005,0.0001
10.0,0.00073681,10000000.0,428.0,0.2,0.0737,10000000.0,0.01,3e-05,0.0005,0.00014,0.5
10.0,0.00073681,10000000.0,428.0,0.2,0.0737,10000000.0,0.01,3e-05,0.0005,0.00014,0.0292
10.0,0.00073681,10000000.0,428.0,0.2,0.0737,10000000.0,0.01,3e-05,0.0005,0.00014,0.0017
10.0,0.00073681,10000000.0,428.0,0.2,0.0737,10000000.0,0.01,3e-05,0.0005,0.00014,0.0001
10.0,0.00073681,10000000.0,428.0,0.2,0.0737,10000000.0,0.01,3e-05,0.0005,4e-05,0.5
10.0,0.00073681,10000000.0,428.0,0.2,0.0737,10000000.0,0.01,3e-05,0.0005,4e-05,0.0292
10.0,0.00073681,10000000.0,428.0,0.2,0.0737,10000000.0,0.01,3e-05,0.0005,4e-05,0.0017
10.0,0.00073681,10000000.0,428.0,0.2,0.0737,10000000.0,0.01,3e-05,0.0005,4e-05,0.0001
10.0,0.00073681,10000000.0,428.0,0.2,0.0737,10000000.0,0.01,3e-05,0.0005,1e-05,0.5
10.0,0.00073681,10000000.0,428.0,0.2,0.0737,10000000.0,0.01,3e-05,0.0005,1e-05,0.0292
10.0,0.00073681,10000000.0,428.0,0.2,0.0737,10000000.0,0.01,3e-05,0.0005,1e-05,0.0017
10.0,0.00073681,10000000.0,428.0,0.2,0.0737,10000000.0,0.01,3e-05,0.0005,1e-05,0.0001
10.0,0.00073681,10000000.0,428.0,0.2,0.0737,10000000.0,0.01,3e-05,0.00014,0.0005,0.5
10.0,0.00073681,10000000.0,428.0,0.2,0.0737,10000000.0,0.01,3e-05,0.00014,0.0005,0.0292
10.0,0.00073681,10000000.0,428.0,0.2,0.0737,10000000.0,0.01,3e-05,0.00014,0.0005,0.0017
10.0,0.00073681,10000000.0,428.0,0.2,0.0737,10000000.0,0.01,3e-05,0.00014,0.0005,0.0001
10.0,0.00073681,10000000.0,428.0,0.2,0.0737,10000000.0,0.01,3e-05,0.00014,0.00014,0.5
10.0,0.00073681,10000000.0,428.0,0.2,0.0737,10000000.0,0.01,3e-05,0.00014,0.00014,0.0292
10.0,0.00073681,10000000.0,428.0,0.2,0.0737,10000000.0,0.01,3e-05,0.00014,0.00014,0.0017
10.0,0.00073681,10000000.0,428.0,0.2,0.0737,10000000.0,0.01,3e-05,0.00014,0.00014,0.0001
10.0,0.00073681,10000000.0,428.0,0.2,0.0737,10000000.0,0.01,3e-05,0.00014,4e-05,0.5
10.0,0.00073681,10000000.0,428.0,0.2,0.0737,10000000.0,0.01,3e-05,0.00014,4e-05,0.0292
10.0,0.00073681,10000000.0,428.0,0.2,0.0737,10000000.0,0.01,3e-05,0.00014,4e-05,0.0017
10.0,0.00073681,10000000.0,428.0,0.2,0.0737,10000000.0,0.01,3e-05,0.00014,4e-05,0.0001
10.0,0.00073681,10000000.0,428.0,0.2,0.0737,10000000.0,0.01,3e-05,0.00014,1e-05,0.5
10.0,0.00073681,10000000.0,428.0,0.2,0.0737,10000000.0,0.01,3e-05,0.00014,1e-05,0.0292
10.0,0.00073681,10000000.0,428.0,0.2,0.0737,10000000.0,0.01,3e-05,0.00014,1e-05,0.0017
10.0,0.00073681,10000000.0,428.0,0.2,0.0737,10000000.0,0.01,3e-05,0.00014,1e-05,0.0001
10.0,0.00073681,10000000.0,428.0,0.2,0.0737,10000000.0,0.01,3e-05,4e-05,0.0005,0.5
10.0,0.00073681,10000000.0,428.0,0.2,0.0737,10000000.0,0.01,3e-05,4e-05,0.0005,0.0292
10.0,0.00073681,10000000.0,428.0,0.2,0.0737,10000000.0,0.01,3e-05,4e-05,0.0005,0.0017
10.0,0.00073681,10000000.0,428.0,0.2,0.0737,10000000.0,0.01,3e-05,4e-05,0.0005,0.0001
10.0,0.00073681,10000000.0,428.0,0.2,0.0737,10000000.0,0.01,3e-05,4e-05,0.00014,0.5
10.0,0.00073681,10000000.0,428.0,0.2,0.0737,10000000.0,0.01,3e-05,4e-05,0.00014,0.0292
10.0,0.00073681,10000000.0,428.0,0.2,0.0737,10000000.0,0.01,3e-05,4e-05,0.00014,0.0017
10.0,0.00073681,10000000.0,428.0,0.2,0.0737,10000000.0,0.01,3e-05,4e-05,0.00014,0.0001
10.0,0.00073681,10000000.0,428.0,0.2,0.0737,10000000.0,0.01,3e-05,4e-05,4e-05,0.5
10.0,0.00073681,10000000.0,428.0,0.2,0.0737,10000000.0,0.01,3e-05,4e-05,4e-05,0.0292
10.0,0.00073681,10000000.0,428.0,0.2,0.0737,10000000.0,0.01,3e-05,4e-05,4e-05,0.0017
10.0,0.00073681,10000000.0,428.0,0.2,0.0737,10000000.0,0.01,3e-05,4e-05,4e-05,0.0001
10.0,0.00073681,10000000.0,428.0,0.2,0.0737,10000000.0,0.01,3e-05,4e-05,1e-05,0.5
10.0,0.00073681,10000000.0,428.0,0.2,0.0737,10000000.0,0.01,3e-05,4e-05,1e-05,0.0292
10.0,0.00073681,10000000.0,428.0,0.2,0.0737,10000000.0,0.01,3e-05,4e-05,1e-05,0.0017
10.0,0.00073681,10000000.0,428.0,0.2,0.0737,10000000.0,0.01,3e-05,4e-05,1e-05,0.0001
10.0,0.00073681,10000000.0,428.0,0.2,0.0737,10000000.0,0.01,3e-05,1e-05,0.0005,0.5
10.0,0.00073681,10000000.0,428.0,0.2,0.0737,10000000.0,0.01,3e-05,1e-05,0.0005,0.0292
10.0,0.00073681,10000000.0,428.0,0.2,0.0737,10000000.0,0.01,3e-05,1e-05,0.0005,0.0017
10.0,0.00073681,10000000.0,428.0,0.2,0.0737,10000000.0,0.01,3e-05,1e-05,0.0005,0.0001
10.0,0.00073681,10000000.0,428.0,0.2,0.0737,10000000.0,0.01,3e-05,1e-05,0.00014,0.5
10.0,0.00073681,10000000.0,428.0,0.2,0.0737,10000000.0,0.01,3e-05,1e-05,0.00014,0.0292
10.0,0.00073681,10000000.0,428.0,0.2,0.0737,10000000.0,0.01,3e-05,1e-05,0.00014,0.0017
10.0,0.00073681,10000000.0,428.0,0.2,0.0737,10000000.0,0.01,3e-05,1e-05,0.00014,0.0001
......@@ -292,20 +292,6 @@ class PrrtCodingConfiguration:
return True
return False
def is_maximum_loss_fulfilled(self):
total_packet_erasure = 0
for i in range(1, self.k):
for j in range(max(self.n - self.k + 1, i), self.n - self.k + i):
packet_erasure_at_i = i * prrt_utils.hypergeometric_distribution(self.n, self.k, i, j) * prrt_utils.get_error_prob(
j,
self.n,
self.prrtChannelParameters.loss_rate_fwd)
total_packet_erasure += packet_erasure_at_i
residual_packet_erasure_rate = (1 / self.k) * total_packet_erasure # Pr(k, n)
if (residual_packet_erasure_rate <= self.prrtApplicationParameters.max_residual_loss_rate):
return True
return False
# For now this condition is ignored.
def is_app_data_rate_fulfilled(self):
data_rate_constraint = self.prrtChannelParameters.data_rate_btl_fwd / (1 + self.get_redundant_information())
......
......@@ -27,7 +27,7 @@ cpdef float residual_packet_erasure_rate(int k, int n, float ch_loss_rate):
total_packet_erasure += i * hypergeometric_distribution(n, k, i, j) \
* get_error_prob(j, n, ch_loss_rate)
# Pr(k, n)
return (1 / k) * total_packet_erasure
return total_packet_erasure / k
@cdivision(True)
cpdef int get_k_lim(int smallestK, int biggestK, float loss_rate_fwd, float max_residual_loss_rate):
......@@ -48,7 +48,7 @@ cpdef int estimate_n_for_k(k, n_max, loss_rate_fwd, max_residual_loss_rate):
cdef int n = k + 1
while residual_packet_erasure_rate(k, n, loss_rate_fwd) > max_residual_loss_rate \
and n <= n_max - step_size:
n = n + step_size
n += step_size
return n
@cdivision(True)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment