Commit Graph

43 Commits

Author SHA1 Message Date
Srivats P.
42a23b12ed Added a Error Msg Type to underlying RPC infra; RPC service now returns error for add/modify/delete stream if transmit is running; added prints for start/stop transmit/capture NOP cases; added a rpctest.py script 2014-06-29 20:07:01 +05:30
Srivats P.
4b19d8e1e7 start/stop Transmit/Capture return only after transmit/capture has been started/stopped. Removed sleep between startCapture and startTx from example.py 2014-06-21 19:55:55 +05:30
Srivats P.
3b4b5a19b9 Moved generation of pkg_info from setup.py to qmake/make - version.pri refactored suitably. Reimplemented sdist_clean as a new setuptools command 2014-06-08 19:10:49 +05:30
Srivats P.
2e8e7c0440 Merge with TOT 2014-05-22 20:38:25 +05:30
Srivats P.
8336d77dfa Added ReadWriteLock to protect RPC service methods in a multi-threaded environment 2014-05-22 20:37:53 +05:30
Srivats P.
0ebff976d8 Fixed build warnings 2014-05-22 20:24:04 +05:30
Srivats P.
f7c3c06845 Converted some static vars in RpcConnection:on_clientSock_dataAvail() into member vars to avoid contention across connections; fixed condition which causes a portgroup to never query for stats (it assumes a GetStats is already outstanding) caused by a timing condition (repeated connect/disconnect); improved debug output for RPCs on both client and server side 2014-05-19 18:26:20 +05:30
Srivats P.
1a6b23e31d Enabled multiple client connections to server, each in its own thread. Need to redo the thread design 'coz subclassing QThread with slots may cause problems. 2014-05-17 10:12:29 +05:30
Srivats P.
34d9da4a42 Merged NOX with latest HEAD 2014-05-10 11:27:16 +05:30
Srivats P.
925697dfcc NOX: Removed GUI stuff from the drone app. Changes may not compile 2014-03-03 20:30:42 +05:30
Giorgio Buffa
05cf3bdc5f A "packet set" can span multiple PacketSequences - the outermost loop during transmission should increment in units of PacketSet rather than PacketSequence
Fixes issue 116
2013-11-22 19:05:34 +05:30
Shlomo Shachar
53437d5216 Fix bug in LinuxPort::StatsMonitor::netlinkStats() causing some ports not to be updated on system with many ports. Problem occurs as the netlink msg size is calculated once and then received multiple times. The following commit makes sure the netlink msg size is recalcaulted before each recv.
Fixes issue 94
2013-01-01 15:23:06 +02:00
Srivats P.
f7d8cc2684 Fixed rx/tx rate stats on BSP/OSX 2012-07-22 13:26:52 +05:30
Srivats P.
19424d980c Added missing include for unistd.h since gcc 4.7 refuses to compile without it 2012-06-04 21:46:57 +05:30
Srivats P.
3931245463 Fixed BSD/OSX compilation issue 2012-04-15 20:32:13 +05:30
Srivats P.
64a82f9b2c Fixed linux compilation issue 2012-04-15 13:30:36 +05:30
Srivats P.
14721478a4 Corrected stats calculation to take care of counter roll over
Fixes issue 67
2012-04-14 23:35:01 +05:30
Srivats P.
9cac3cd918 Linux now uses stats using netlink - if that isn't available for some reason, we fallback to the /proc stats. If netlink stats is used, link state info is available. 2012-03-10 13:29:41 +05:30
Srivats P.
31c7f08e7c Fixed Win32 QPC timestamp diff that caused extraordinarily large inter-packet timing 2012-03-09 22:15:06 +05:30
Srivats P.
87ee8244fc Fix for segfault when a port failed to open due to any reason
Fixes issue 64
2012-03-07 19:25:09 +05:30
Srivats P.
0d253cdb09 Interface stats and link state for Mac OSX 2012-02-16 21:48:27 +05:30
Srivats P.
5f99e9456c BSD specific interface stats and error stats, including link state
Update issue 28
2012-02-12 12:55:26 +05:30
Srivats P.
88cb294567 Added support for rx error stats on Linux.
Updates issue 28
2012-02-08 22:14:20 +05:30
Srivats P.
eedc6f62ff Fixed incorrect very long delay in "interleaved streams" mode 2011-10-29 07:40:18 +05:30
Srivats P.
c9a7523ef9 Fixed crash on drone exit (on Windows) - now we do cleanup 2011-10-23 22:35:43 +05:30
Srivats P.
baf709b24d Fixed valgrind reported mem leaks 2011-10-23 13:08:24 +05:30
Srivats P.
e188655e67 For Linux added specific code to put interfaces in PROMISC mode, since we no longer use PCAP to do stats (which was indirectly setting PROMISC). Also added signal handlers to do cleanup for SIGTERM and SIGINT. Some code indentation fixes also.
Fixes issue 52
2011-10-22 14:55:05 +05:30
Srivats P.
264b446410 Replaced ULONG_LONG_MAX with the more portable (and standard) ULLONG_MAX 2011-10-21 22:11:38 +05:30
Srivats P.
e5d2ccaa0f Fixed windows problem where tx packets are looped back as rx packets also. Also fixed an issue with transmit at slow rate (< 0.5pps)
Fixes issue 46
2011-10-20 07:13:33 +05:30
Srivats P.
626ca8ad0e Code changes to improve transmit performance in Windows. Windows top-speed performance is now at par with Linux in my tests, however for fixed (high) rate transmit, accuracy is not good - need to find ways to improve that.
Fixes issue 33
Fixes issue 39
2011-10-16 08:04:09 +05:30
Srivats P.
e9ea3d7934 Added a minimum size of packets to be looped to improve performance. Also a bug fix that led to incorrect timing between packets 2011-10-12 20:20:36 +05:30
Srivats P.
210bdf11a9 Implemented new method protocolFrameVariableCount() and associated code for all the protocols that require it. With this commit, the set of changes required to reduce the time taken to prebuild the packets for transmit is done.
Fixes issue 35
Fixes issue 49
2011-10-09 17:57:02 +05:30
Srivats P.
0223f39994 refactored sendQueue code 2011-10-08 15:55:57 +05:30
Srivats P.
204e6efc2a Refactored send queue data structure and associated processing 2011-10-01 12:28:28 +05:30
Srivats P.
18e7b9b49c Snapshot before refactoring the send queue data structure 2011-09-26 20:47:27 +05:30
Srivats P.
ca7a264b36 Implemented Interleaved streams transmit mode. Changed port rate averaging algo.
Fixes issue 12
2011-08-31 18:16:42 +05:30
Srivats P.
ca4a6cb103 Implemented aggregate port rates, averaged across all active streams configured on the port.
Fixes issue 41
2011-08-14 14:03:57 +05:30
Srivats P.
b3bc9e36a7 Inter-packet and Inter-burst gaps are now calculated in nanosecond rather than milliseconds. However, the actual delay is still in milliseconds for all OS as of now.
Fixes issue 30
2011-07-18 19:22:32 +05:30
Srivats P.
670920afa6 Enable inter-packet gap to be more than one second
Fixes issue 42
2011-07-09 20:40:42 +05:30
Srivats P.
d2c4bf0834 Fixed packet rate accuracy when inter-packet (or inter-burst) gap had resolution less than a millisecond. 2011-07-07 21:43:12 +05:30
Srivats P.
aae32eb510 Fixed burst mode timing problem by taking into account overhead 2011-06-26 10:33:06 +05:30
Srivats P.
955be71082 Changes to improve pps performance for Linux. Changed implementation of stats collection for Linux - pps/Bps stats are now supported
Fixes Issue 26
2011-06-19 16:26:35 +05:30
Srivats P.
e0efac0f59 Removed the test code building from top level project file. Test code needs to be built manually 2011-04-17 10:51:08 +05:30