• Home
  • History
  • Annotate
  • only in this directory
NameDateSize

..13-Aug-201322

closerequest.cppH A D13-Aug-20131.4 KiB

closerequest.hppH A D13-Aug-20131.2 KiB

COPYINGH A D13-Aug-201334.3 KiB

ethernet.cppH A D13-Aug-20131.7 KiB

ethernet.hppH A D13-Aug-20131.1 KiB

ip.cppH A D13-Aug-20132.4 KiB

ip.hppH A D13-Aug-20131.3 KiB

main.cppH A D13-Aug-201329.2 KiB

MakefileH A D13-Aug-20131.3 KiB

ntcreateandxrequest.cppH A D13-Aug-20132.8 KiB

ntcreateandxrequest.hppH A D13-Aug-20131.6 KiB

ntcreateandxresponse.cppH A D13-Aug-20131.3 KiB

ntcreateandxresponse.hppH A D13-Aug-20131.6 KiB

readandxrequest.cppH A D13-Aug-20132.2 KiB

readandxrequest.hppH A D13-Aug-20131.4 KiB

readandxresponse.hppH A D13-Aug-20131.4 KiB

READMEH A D13-Aug-2013922

smb.cppH A D13-Aug-20132 KiB

smb.hppH A D13-Aug-20131.3 KiB

tcp.cppH A D13-Aug-20132 KiB

tcp.hppH A D13-Aug-20131.2 KiB

writeandxrequest.cppH A D13-Aug-20132.4 KiB

writeandxrequest.hppH A D13-Aug-20131.5 KiB

README

1pcap2nbench
2-----------
3
4About
5
6This program converts a libpcap network trace file (produced by ethereal or
7another pcap-aware network analyzer) into a output suitable for nbench.  The
8only option it takes it -i which supresses any reads/writes/closes that use a
9FID that does not have a corresponding ntcreateandx
10
11Limitations
12
131) pcap2nbench does not handle ip fragmentation.  You should not normally see
14   very much fragmentation so this should not really affect a workload.
152) unicode on the wire is not supported.
163) only a limited number of SMBs are supported.  Namely: NtCreateAndX,
17   ReadAndX, WriteAndX, and Close.  In addition, not all WCTs are supported on
18   each of these SMBs.
19
20Future Work
21
22It would be nice to use Samba or Ethereal's parsing code to handle the SMBs.
23At first glance, this seemed non-trivial.  It would also be nice to handle some
24Trans2 SMBs specifically QueryFileInfo and QueryPathInfo.
25