I am trying to calculate the link latency between the switches. Below
is my bare minimal topology.
(h1)------(s1)------(s2)-----(h2)
Link latency is calculated in p4 as,
link_latency = s2.standard_metadata.ingress_timestamp -
s1.standard_metadata.egress_timestamp
I am using the bmv2 switch and made a change in the code to sync the
time with the system time as suggested. My setup is all done in the
mininet.
My expectation was that the latency would mostly be stable around some
values with some jitter. But what I am seeing is huge fluctuations in
the link latency whenever there is a change in queue occupancy in the
switches. If the switches are congested then the link latencies would
go up by a very high number.
Is my expectation of having relatively stable link latency with some
jitter correct in terms of how real networks work? If so, why am I
seeing such behavior with the bmv2 switch? Or is my way of calculating
the link latency is flawed? In that case, how should I calculate the
link latency?
Thank you
--
John Grant
Nine Tiles, Cambridge, England
+44 1223 862599 and +44 1223 511455
http://www.ninetiles.com
> _______________________________________________
> P4-discuss mailing list
> P4-di...@lists.p4.org
> http://lists.p4.org/mailman/listinfo/p4-discuss_lists.p4.org
J.
On 31/10/2020 20:29, Bibek Shrestha wrote:
> Does that mean the huge latency fluctuations that I am seeing is reasonable?