Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
PRRT
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
37
Issues
37
List
Boards
Labels
Service Desk
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
LARN
PRRT
Commits
bdc6bc20
Commit
bdc6bc20
authored
Mar 21, 2018
by
Andreas Schmidt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Extract pacing rate. Update app_limited.
parent
7f88c93b
Pipeline
#2105
failed with stages
in 21 seconds
Changes
5
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
14 additions
and
1 deletion
+14
-1
prrt/cprrt.pxd
prrt/cprrt.pxd
+1
-0
prrt/proto/receiver.c
prrt/proto/receiver.c
+1
-1
prrt/proto/socket.c
prrt/proto/socket.c
+5
-0
prrt/proto/socket.h
prrt/proto/socket.h
+1
-0
prrt/prrt.pyx
prrt/prrt.pyx
+6
-0
No files found.
prrt/cprrt.pxd
View file @
bdc6bc20
...
...
@@ -154,6 +154,7 @@ cdef extern from "proto/socket.h":
float
PrrtSocket_get_pacing_gain
(
PrrtSocket
*
s
)
uint32_t
PrrtSocket_get_cwnd
(
PrrtSocket
*
s
)
uint32_t
PrrtSocket_get_inflight
(
PrrtSocket
*
s
)
uint32_t
PrrtSocket_get_pacing_rate
(
PrrtSocket
*
s
)
bint
PrrtSocket_get_app_limited
(
PrrtSocket
*
socket
)
...
...
prrt/proto/receiver.c
View file @
bdc6bc20
...
...
@@ -118,7 +118,7 @@ void PrrtReceiver_on_application_write(PrrtReceiver* receiver) {
PrrtPacketTracking
*
tracking
=
receiver
->
packetTracking
;
if
(
PrrtInFlightPacketStore_get_queue_size
(
receiver
->
dataInflightPacketStore
)
+
PrrtInFlightPacketStore_get_queue_size
(
receiver
->
redundancyInflightPacketStore
)
==
0
)
{
tracking
->
app_limited
=
(
tracking
->
delivered
+
tracking
->
p
ipe
)
?
:
1
;
tracking
->
app_limited
=
(
tracking
->
delivered
+
tracking
->
p
ackets_in_flight
)
?
:
1
;
}
check
(
pthread_mutex_unlock
(
&
receiver
->
lock
)
==
0
,
"Unlock failed."
);
return
;
...
...
prrt/proto/socket.c
View file @
bdc6bc20
...
...
@@ -637,6 +637,11 @@ float PrrtSocket_get_pacing_gain(PrrtSocket *s) {
return
BBR_getPacingGain
(
s
->
receiver
->
bbr
);
}
uint32_t
PrrtSocket_get_pacing_rate
(
PrrtSocket
*
s
)
{
return
BBR_getPacingRate
(
s
->
receiver
->
bbr
);
}
uint32_t
PrrtSocket_get_cycle_index
(
PrrtSocket
*
s
)
{
return
BBR_getCycleIndex
(
s
->
receiver
->
bbr
);
}
...
...
prrt/proto/socket.h
View file @
bdc6bc20
...
...
@@ -145,6 +145,7 @@ uint32_t PrrtSocket_get_cycle_index(PrrtSocket *s);
float
PrrtSocket_get_pacing_gain
(
PrrtSocket
*
s
);
uint32_t
PrrtSocket_get_cwnd
(
PrrtSocket
*
s
);
uint32_t
PrrtSocket_get_inflight
(
PrrtSocket
*
s
);
uint32_t
PrrtSocket_get_pacing_rate
(
PrrtSocket
*
s
);
#endif // PRRT_SOCKET_H
prrt/prrt.pyx
View file @
bdc6bc20
...
...
@@ -235,6 +235,12 @@ cdef class PrrtSocket:
raise
Exception
(
"Not a sender."
)
return
cprrt
.
PrrtSocket_get_inflight
(
self
.
_c_socket
)
property
bbr_pacing_rate
:
def
__get__
(
self
):
if
not
self
.
isSender
:
raise
Exception
(
"Not a sender."
)
return
cprrt
.
PrrtSocket_get_pacing_rate
(
self
.
_c_socket
)
property
app_limited
:
def
__get__
(
self
):
if
not
self
.
isSender
:
...
...
Write
Preview
Markdown
is supported
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