190 likes | 205 Views
TCP Protocol Analysis. Access UMKC Home Page. Slides provided by Bob Cotter, updated by Shuai Zhao. UMKC Home Page. Ethereal Filter. TCP (First syn). TCP (Syn+Ack). TCP (Second ack). TCP (First packet – HTTP request). TCP (ack for first data packet). TCP – IP info. Ethernet Frame.
E N D
TCP ProtocolAnalysis Access UMKC Home Page Slides provided by Bob Cotter, updated by Shuai Zhao
tcpdump on Linux • On Windows: WinDump • Using LibPacp library as Wireshark • Run tcpdump as root
tcpdump basic usage • sudo tcpdump –nnvvSdst 134.193.116.82 • sudo tcpdump –vvS dst 134.193.116.82 • sudo tcpdump –i any/eth0/en0
Look for traffic based on host name/protocol/ip block/port • sudo tcpdump host www.umkc.edu • sudo tcpdump icmp/ip • sudo tcpdump 192.168.0.0/24 • sudo tcpdump port 80 • combination using “and” • sudo tcpdump srcip port x.x.x.x and dstip y.y.y.y
tcpdump write/read • tcpdump –w filename • tcpdump –r captured file
Summary • TCP is a complex protocol, but tools are available to analyze it. • Client / Server Programs are widely used. • Analysis of the protocols (at all layers) can lead to a greater understanding of how the applications work.