Skip to content

QuickStart

andymalakov edited this page Dec 4, 2014 · 36 revisions

General description of this tool can be found here.

Setup

Run

Live traffic monitoring

If your computer has multiple network adapters or VPN software, you need to obtain a list of network interfaces. Run bin\live-traffic.cmd without arguments:

cd LATENCY_METER/bin
live-traffic

You will see an output like:

COMMAND LINE ARGUMENTS:
	-in:<protocol-handler>	- Specifies inbound protocol handler. For example: -in:timebase 
	-out:<protocol-handler>	- Specifies outbound protocol handler. For example: -out:fix:299
	-csv:filename	- Specifies file name of output file will latencies stats. [Optional]
	-interface:N	- Specifies index of interface to listen on. Default is 0.
	-filter:<capture filter>	- Specifies LIBPCAP capture filter, for example: "(tcp src port 2509) or (tcp dst port 2508)"

Network devices found:
#0: \Device\NPF_{0093D9BE-190D-4B59-BF8F-D9CE04004DBE} [Marvell Yukon Ethernet Controller.]
#1: \Device\NPF_{BC81C4FC-242F-4F1C-9DAD-EA9523CC992D} [Intel(R) PRO/100 VE Network Connection]

You will need select network card you want to capture packets on. Let's assume we want to capture network packets on Yukon network card from the above list. It has index #0. In this case we need to run with argument -interface:0.

The following example shows how to capture FIX conversation with Integral FX Inside FIX Server. Server offers two FIX connection: Market Data Session is running on port 2508. Trading Session is running on port 2509. We are going to parse inbound FIX market data and extract tag QuoteEntryID(299) from bids and asks. For outbound traffic we are going parse outbound FIX messages and extract tag QuoteID(117) from trade orders. Utility is going to correlate inbound and outbound messages based on the quote IDs.

live-traffic.cmd -interface:0 -in:fix:299 -out:fix:117 -dir:2509:2508 "-filter:(tcp src port 2509) or (tcp dst port 2508)"

TODO: Generate capture filter automatically?

Captured traffic processing

This tool can also process previously captured network traffic. For example you can setup your own capture using Wireshark or TCPDump and later process it via this tool.

Command line syntax is similar

cd bin
filed-traffic -pcap:./data/timebase.pcap  -in:fix:299 -out:fix:117 -dir:2509:2508

[Known limitations(Limitations)]

Clone this wiki locally