You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Added witness latency calculation tests. Specifically the following
scenarios are now being tested:
- the request and the response have 8 ms of latency
- the request and the response have 0 ms of latency
- the request and the response overlap by -1 ms of latency
- the request and the response fully overlap each other have 0 ms of
latency
- the request and the response are in the wrong order have -4 ms of
latency
- the request and the response timestamps are the zero value have 0 ms
of latency
- a stream with two interleaved request and response each with 3 ms of
latency
- two pipelined requests and responses have 0 ms of latency
Added 2 validations in the stream processing layer:
- if the first or last packet timestamps are the default zero value,
override to `time.Now()`.
- if the last packet timestamp is before the first packet timestamp,
override last packet timestamp to first packet timestamp.
^These are being logged and printed as part of the `PrintWarnings`
report at the end of a session.
Added 3 validations in the backend collector layer:
- if the collector matches 2 requests or 2 responses together (due to
HTTP/1.1 pipelining and matching on `ACK`s), log it and leave latency
default value of `0.0`.
- if the collector sees timestamp zero values, log it and leave latency
default value of `0.0`
- if the collector sees negative latency calculation, log and report it.
printer.Stderr.Infof("Detected packet assembly context problems during capture: %v empty, %v bad type, %v empty after parse. ",
268
+
ifpcap.CountNilAssemblerContext>0||
269
+
pcap.CountNilAssemblerContextAfterParse>0||
270
+
pcap.CountBadAssemblerContextType>0||
271
+
pcap.CountZeroValuePacketTimestamp>0||
272
+
pcap.CountLastPacketBeforeFirstPacket>0 {
273
+
printer.Stderr.Infof("Detected packet assembly context problems during capture: %v empty, %v bad type, %v empty after parse, %v zero timestamp, %v last before first timestamp. ",
270
274
pcap.CountNilAssemblerContext,
271
275
pcap.CountBadAssemblerContextType,
272
-
pcap.CountNilAssemblerContextAfterParse)
276
+
pcap.CountNilAssemblerContextAfterParse,
277
+
pcap.CountZeroValuePacketTimestamp,
278
+
pcap.CountLastPacketBeforeFirstPacket)
273
279
printer.Stderr.Infof("These errors may cause some packets to be missing from the trace.\n")
0 commit comments