After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 773002 - netsim: more features and love
netsim: more features and love
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins-bad
git master
Other All
: Normal enhancement
: 1.13.1
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2016-10-15 22:08 UTC by Håvard Graff (hgr)
Modified: 2018-01-27 10:21 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
token bucket algorithm (21.76 KB, patch)
2016-10-15 22:08 UTC, Håvard Graff (hgr)
none Details | Review
add normal distribution and delay-distribution property (7.22 KB, patch)
2016-10-15 22:10 UTC, Håvard Graff (hgr)
committed Details | Review
max-delay inclusive (1.38 KB, patch)
2016-10-15 22:10 UTC, Håvard Graff (hgr)
committed Details | Review
add gamme (4.29 KB, application/mbox)
2016-10-15 22:10 UTC, Håvard Graff (hgr)
  Details
add gamma distribution (4.29 KB, patch)
2016-10-15 22:11 UTC, Håvard Graff (hgr)
committed Details | Review
update patch without stylistic changes (7.90 KB, patch)
2016-11-12 18:42 UTC, Håvard Graff (hgr)
none Details | Review
stylistic changes and gst-indent in separate patch (15.81 KB, patch)
2016-11-12 18:43 UTC, Håvard Graff (hgr)
none Details | Review

Description Håvard Graff (hgr) 2016-10-15 22:08:59 UTC
Created attachment 337768 [details] [review]
token bucket algorithm

A collection of patches that updates netsim with different types of delay distribution as well as a token bucket algorithm for simulating network congestion and general cleanups.

Maybe it could be destined for greater things (-good) in the not too distant future?
Comment 1 Håvard Graff (hgr) 2016-10-15 22:10:06 UTC
Created attachment 337769 [details] [review]
add normal distribution and delay-distribution property
Comment 2 Håvard Graff (hgr) 2016-10-15 22:10:30 UTC
Created attachment 337770 [details] [review]
max-delay inclusive
Comment 3 Håvard Graff (hgr) 2016-10-15 22:10:45 UTC
Created attachment 337771 [details]
add gamme
Comment 4 Håvard Graff (hgr) 2016-10-15 22:11:29 UTC
Created attachment 337772 [details] [review]
add gamma distribution
Comment 5 Olivier Crête 2016-10-18 17:32:01 UTC
Review of attachment 337768 [details] [review]:

Did you think of adding a "simulated" IP/UDP header to each packet. I guess for video it won't matter much, but for audio it probably would.

::: gst/netsim/gstnetsim.c
@@ -74,3 +82,2 @@
 #define GST_NET_SIM_GET_PRIVATE(o) \
-  (G_TYPE_INSTANCE_GET_PRIVATE ((o), GST_TYPE_NET_SIM, \
-                                GstNetSimPrivate))
+  (G_TYPE_INSTANCE_GET_PRIVATE ((o), GST_TYPE_NET_SIM, GstNetSimPrivate))

Did you run it through the gst-indent script?

@@ +100,3 @@
 gst_net_sim_loop (GstNetSim * netsim)
 {
+  GstNetSimPrivate *priv = netsim->priv;

Any chance you can separate the stylistic changes?
Comment 6 Håvard Graff (hgr) 2016-11-12 18:42:34 UTC
Created attachment 339713 [details] [review]
update patch without stylistic changes
Comment 7 Håvard Graff (hgr) 2016-11-12 18:43:19 UTC
Created attachment 339714 [details] [review]
stylistic changes and gst-indent in separate patch

apply this patch first!
Comment 8 Tim-Philipp Müller 2018-01-27 10:20:59 UTC
These features are in git already, I picked them from your github trees, so I think we can close this.