The Problem
While analysing an outgoing TCP stream, I noticed unexpected sequences of \0 bytes appearing in the tcpflow output. These null byte sequences were observed in the middle of an otherwise valid data stream.
Here is how it appears when viewed with less. I verified using xxd that these symbols are indeed \0 bytes:
GLOBAL_USER_CACHE_INVALIDATE11633_fe31e7f08d14de2f075ae2bffb88e9384a734c00ca77f72722301d504644826ded816371c8abb61dcd51f51a0fff6b21770cf3f5dc42e6998daa193f1ee7a95a1730232e68aa463c26fa0bb5b190dbc1f9d9b8ecedd5db08bb7c005b96fd5d2db930f794b60e15599aa01ea21fcd5fd103400463035943127dfc6c03331579f31cb1c8aa20bcb41a9c406509303e89ca35792dd4615e5d8f83a1459fef4afc59fddc4e00ce54acf0b9fe779ce4e000514f2fe5c7953a7529a0f5a390604d8778ab6d8db561d61057c03bb195d7147aaf6d911095d940dba7b2d670b1c6^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@
I successfully captured the traffic using both tcpdump and tcpflow, and compared the problematic frame. Interestingly, neither tcpdump nor tshark shows these null byte sequences. The frame in question is somewhat unusual — it contains 11,264 bytes of data.
I'm attaching the tshark output of that frame for reference:
frame.txt.gz
The null sequence in tcpflow output starts exactly where tshark writes "Data [truncated]: ".
The Problem
While analysing an outgoing TCP stream, I noticed unexpected sequences of \0 bytes appearing in the tcpflow output. These null byte sequences were observed in the middle of an otherwise valid data stream.
Here is how it appears when viewed with less. I verified using xxd that these symbols are indeed \0 bytes:
I successfully captured the traffic using both tcpdump and tcpflow, and compared the problematic frame. Interestingly, neither tcpdump nor tshark shows these null byte sequences. The frame in question is somewhat unusual — it contains 11,264 bytes of data.
I'm attaching the tshark output of that frame for reference:
frame.txt.gz
The null sequence in tcpflow output starts exactly where tshark writes "Data [truncated]: ".