Commit b51f0a89 authored by Kai Vogelgesang's avatar Kai Vogelgesang
Browse files

Use RTT for reception table query window

parent dd7bcb82
Pipeline #3199 passed with stages
in 4 minutes and 36 seconds
...@@ -158,6 +158,7 @@ static void handle_data_packet(PrrtSocket *sock_ptr, PrrtPacket *packet) { ...@@ -158,6 +158,7 @@ static void handle_data_packet(PrrtSocket *sock_ptr, PrrtPacket *packet) {
PrrtChannelStateInformation_update_delivery_rate(sock_ptr->senderChannelStateInformation, payload->btlbw); PrrtChannelStateInformation_update_delivery_rate(sock_ptr->senderChannelStateInformation, payload->btlbw);
sock_ptr->send_peer_btl_pace = payload->btl_pace; sock_ptr->send_peer_btl_pace = payload->btl_pace;
sock_ptr->send_peer_app_total_pace = payload->appSendTotal_pace; sock_ptr->send_peer_app_total_pace = payload->appSendTotal_pace;
sock_ptr->rtt = payload->groupRTprop_us;
prrtSequenceNumber_t baseSequenceNumber = packet->sequenceNumber - packet->index; prrtSequenceNumber_t baseSequenceNumber = packet->sequenceNumber - packet->index;
// forward to application layer // forward to application layer
......
...@@ -682,8 +682,8 @@ bool PrrtSocket_cleanup(PrrtSocket *s) { ...@@ -682,8 +682,8 @@ bool PrrtSocket_cleanup(PrrtSocket *s) {
debug(DEBUG_CLEANUP, "Loss stats."); debug(DEBUG_CLEANUP, "Loss stats.");
s->lossStatistics = PrrtLossStatistics_add( s->lossStatistics = PrrtLossStatistics_add(
// TODO find proper timestamps // TODO find proper timestamps
PrrtReceptionTable_calculate_statistics(s->dataReceptionTable, s->send_peer_app_total_pace, 0, now), PrrtReceptionTable_calculate_statistics(s->dataReceptionTable, s->send_peer_app_total_pace, now - 2 * s->rtt, now),
PrrtReceptionTable_calculate_statistics(s->redundancyReceptionTable, s->send_peer_app_total_pace, 0, now) PrrtReceptionTable_calculate_statistics(s->redundancyReceptionTable, s->send_peer_app_total_pace, now - 2 * s->rtt, now)
); );
debug(DEBUG_CLEANUP, "PrrtSocket_cleanup done"); debug(DEBUG_CLEANUP, "PrrtSocket_cleanup done");
return true; return true;
......
...@@ -79,6 +79,8 @@ typedef struct prrtSocket { ...@@ -79,6 +79,8 @@ typedef struct prrtSocket {
PrrtCodingConfiguration *codingParameters; PrrtCodingConfiguration *codingParameters;
PrrtCoder *coder; PrrtCoder *coder;
prrtTimedelta_t rtt;
// Pacing // Pacing
PrrtPace* appSendPace; PrrtPace* appSendPace;
PrrtPace* prrtTransmitPace; PrrtPace* prrtTransmitPace;
......
Supports Markdown
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