Skip to contentSkip to conversation

tcp probe connection tracing

PATCH New Stephen Hemminger 1 participant 1 message May 30, 2006

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tcp probe connection tracing

Since there seems to be lots of interest in TCP congestion control, here is a cleaned up version of my TCP congestion tracker. I will put in the TCP git tree for 2.6.18
----

This adds a new module for tracking TCP state variables non-intrusively using kprobes. It has a simple /proc interface that outputs one line for each packet received. A sample usage is to collect congestion window and ssthresh over time graphs.

---

 net/Kconfig          |   15 ++++
 net/ipv4/Makefile    |    1 
 net/ipv4/tcp_probe.c |  179 ++++++++++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 195 insertions(+), 0 deletions(-)
 create mode 100644 net/ipv4/tcp_probe.c

f62dd92bdf3b6be5904c1ba347fa21f0f2deccda

net/Kconfig +15 -0
index 4193cdc..ff0db80 100644
@@ -215,6 +215,21 @@ config NET_PKTGEN
 	  To compile this code as a module, choose M here: the
 	  module will be called pktgen.
 
+config NET_TCPPROBE
+	tristate "TCP connection probing"
+	depends on INET && EXPERIMENTAL && PROC_FS && KPROBES
+	---help---
+	This module allows for capturing the changes to TCP connection
+	state in response to incoming patckets. It is used for debugging
+	TCP congestion avoidance modules. If you don't understand
+	what was just said, you don't need it: say N.
+
+	Documentation on how to use the packet generator can be found
+	at http://linux-net.osdl.org/index.php/TcpProbe
+
+	To compile this code as a module, choose M here: the
+	module will be called tcp_probe.
+
 endmenu
 
 endmenu
net/ipv4/Makefile +1 -0
index 65ab5ba..ac7eb0e 100644
@@ -34,6 +34,7 @@ obj-$(CONFIG_IP_VS) += ipvs/
 obj-$(CONFIG_INET_DIAG) += inet_diag.o 
 obj-$(CONFIG_IP_ROUTE_MULTIPATH_CACHED) += multipath.o
 obj-$(CONFIG_INET_TCP_DIAG) += tcp_diag.o
+obj-$(CONFIG_NET_TCPPROBE) += tcp_probe.o
 obj-$(CONFIG_TCP_CONG_BIC) += tcp_bic.o
 obj-$(CONFIG_TCP_CONG_CUBIC) += tcp_cubic.o
 obj-$(CONFIG_TCP_CONG_WESTWOOD) += tcp_westwood.o
net/ipv4/tcp_probe.c new file +179 -0

179 lines not on this page · raw message

Signature · 1 line
1.3.3