hgn / captcp

A open source program for TCP analysis of PCAP files
http://research.protocollabs.com/captcp/
GNU General Public License v3.0
113 stars 40 forks source link

Captcp error wtih ns3 #11

Closed salmasubh closed 11 years ago

salmasubh commented 11 years ago

Hi I´m getting an error while trying to graph the throughput with captcp on actual ubuntu 12.04 the pcap file generate using ns3 simulator and i would like to graph the output with captcp

root@salma:~# captcp statistic Amrr2.pcap captcp 2010-2013 Hagen Paul Pfeifer (c) Traceback (most recent call last): File "/usr/bin/captcp", line 4364, in sys.exit(captcp.run()) File "/usr/bin/captcp", line 4332, in run pcap_parser = PcapParser(self.pcap_file_path, self.pcap_filter) File "/usr/bin/captcp", line 518, in init self.pc = dpkt.pcap.Reader(self.pcap_file) File "/usr/lib/pymodules/python2.7/dpkt/pcap.py", line 105, in init self.dloff = dltoff[self.__fh.linktype] KeyError: 105

please could you tell me why ?

hgn commented 11 years ago

Sure! But first oft all: send me your pcap file or upload it somewhere where I can download the file. Thank you

salmasubh commented 11 years ago

thanks :) i uploded in medifire

http://www.mediafire.com/?3me4g3n4tzcugmg

hgn commented 11 years ago

OK, here we go:

captcp uses dpkt as the base pcap/packet parser. Your trace is a pure 802.11 trace with wifi data and management frames. The YOUR current version of dpkt do not support any 802.11 frames (type 105). But current dpkt support wifi! See https://code.google.com/p/dpkt/source/browse/trunk/dpkt/pcap.py - so my advise is to email the maintainer of your distribution (debian, ubuntu, fedora) to update the package! Its a shame that today 802.11 is not supported!

Sorry!

salmasubh commented 11 years ago

ok thanks for your help ,, i will mail the maintainer and can i ask you if you know anther programme can help me in draw and calculate throughput ? please

hgn commented 11 years ago

Tcptrace could do the job

salmasubh commented 11 years ago

thanks hgn :)