Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
LARN
PRRT
Commits
b51f0a89
Commit
b51f0a89
authored
Oct 30, 2018
by
Kai Vogelgesang
Browse files
Use RTT for reception table query window
parent
dd7bcb82
Pipeline
#3199
passed with stages
in 4 minutes and 36 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
prrt/proto/processes/dataReceiver.c
View file @
b51f0a89
...
...
@@ -158,6 +158,7 @@ static void handle_data_packet(PrrtSocket *sock_ptr, PrrtPacket *packet) {
PrrtChannelStateInformation_update_delivery_rate
(
sock_ptr
->
senderChannelStateInformation
,
payload
->
btlbw
);
sock_ptr
->
send_peer_btl_pace
=
payload
->
btl_pace
;
sock_ptr
->
send_peer_app_total_pace
=
payload
->
appSendTotal_pace
;
sock_ptr
->
rtt
=
payload
->
groupRTprop_us
;
prrtSequenceNumber_t
baseSequenceNumber
=
packet
->
sequenceNumber
-
packet
->
index
;
// forward to application layer
...
...
prrt/proto/socket.c
View file @
b51f0a89
...
...
@@ -682,8 +682,8 @@ bool PrrtSocket_cleanup(PrrtSocket *s) {
debug
(
DEBUG_CLEANUP
,
"Loss stats."
);
s
->
lossStatistics
=
PrrtLossStatistics_add
(
// TODO find proper timestamps
PrrtReceptionTable_calculate_statistics
(
s
->
dataReceptionTable
,
s
->
send_peer_app_total_pace
,
0
,
now
),
PrrtReceptionTable_calculate_statistics
(
s
->
redundancyReceptionTable
,
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
,
now
-
2
*
s
->
rtt
,
now
)
);
debug
(
DEBUG_CLEANUP
,
"PrrtSocket_cleanup done"
);
return
true
;
...
...
prrt/proto/socket.h
View file @
b51f0a89
...
...
@@ -79,6 +79,8 @@ typedef struct prrtSocket {
PrrtCodingConfiguration
*
codingParameters
;
PrrtCoder
*
coder
;
prrtTimedelta_t
rtt
;
// Pacing
PrrtPace
*
appSendPace
;
PrrtPace
*
prrtTransmitPace
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment