node.js - nodejs pcap tcp segment -
my node.js program use capture packet specific port , analyse data binary stream.
normally range of packet length should 100 - 300 sometime reason destination server got hang , didn't send data program. , later on when back, sent bulk of binary data. separate many tcp stream packets picture in link. picture show packets detail
i capture packets , open wireshark. realise packets doesn't came psh flag in tcp layer except last one. , incorrect sequence, program can't work expectation (it crash).
can tell me how handle situation ? need consider psh flag , reassembly packets before process logic node.js program.
reference: https://github.com/mranney/node_pcap
Comments
Post a Comment