Coder Social home page Coder Social logo

andymalakov / libpcap-latency-meter Goto Github PK

View Code? Open in Web Editor NEW
4.0 4.0 3.0 1.2 MB

Measure latency between inbound and outbound TCP packets of a system. For example, tick to order latency of messages that use FIX protocol.

License: GNU Lesser General Public License v3.0

Java 99.59% Shell 0.19% Batchfile 0.22%
latency latency-test libpcap

libpcap-latency-meter's People

Contributors

andymalakov avatar nickdul avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

libpcap-latency-meter's Issues

Inbound packet loss

Under modest load of 1000 inbound signals per second, this tool experiences sporadic loss of 1-10 our of ~100K signals.

Debugging shows that these inbound signals are not received by packet handler of jNetPcap. At least by the time we get corresponding outbound signal.

BufferUnderflowException in FIX parser

Recently we started getting the following exception in FIX parser code. Happened 3 times during last 24h.

Exception in thread "main" java.nio.BufferUnderflowException
at org.jnetpcap.nio.JBuffer.check(Unknown Source)
at org.jnetpcap.nio.JBuffer.getByte(Unknown Source)
at org.tinyfix.latency.util.AsciiUtils.equals(AsciiUtils.java:21)
at org.tinyfix.latency.protocols.FixMessageTagExtractor.parse(FixMessageTagExtractor.java:35)
at org.tinyfix.latency.LatencyMeterPacketHandler.nextPacket(LatencyMeterPacketHandler.java:46)
at org.jnetpcap.Pcap.loop(Native Method)
at org.jnetpcap.Pcap.loop(Unknown Source)
at org.tinyfix.latency.AbstractCaptureProcessor.runCaptureLoop(AbstractCaptureProcessor.java:108)
at org.tinyfix.latency.LiveCaptureProcessor.run(LiveCaptureProcessor.java:60)
at org.tinyfix.latency.LiveCaptureProcessor.main(LiveCaptureProcessor.java:104)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.