Information on forwarding queue occupation in a Linux router
I have an OpenWrt router forwarding traffic from a network to another and I'm building a monitoring tool that requires information about the packet queue/ ring buffer (in the receiving side/interface - rx) occupation, alerting me when it is close to its maximum capacity.
However, after analysing the following files (linux filesystem):
tcp_mem/tcp_rmem/tcp_wmem in /proc/sys/net/ipv4
tx_queue_len in /sys/class/net/(interface)
sockstat in /proc/net
I concluded these files would only be relevant for my program if the router was the destination or source of the TCP packets, which is not the case. So, as I discussed with a professor of mine, the metrics these files provide are not relevant in a forwarding situation, as the packets do not go to the TCP queues.
If that's true, then where (in what folder/file) can I find information about the router's forwarding queue's current occupation and its maximum occupation, if there's any information on the matter? Note that this question is not limited to the OpenWrt OS, but any linux system.
Location: Asia Pacific, Cyberspace, in the Dark Dystopia
Thanks Given: 2,336
Thanked 3,279 Times in 1,835 Posts
TCP is a "connection-oriented" "end-to-end" client-server protocol.
This means that parameters related to TCP sockets, buffers, lengths, fragments, etc. effect the end-to-end connection and are controlled by the end-to-end TCP connection, not the intermediate routing devices and intermediate hosts.
I want to make a shell script that gives me the information about the disk occupation by sending me an email once in a month for example.
With this command df|tr -s " "|cut -d" " -f 1,5 I can see the occupation but I dont know how to make the machine to send me the email with this... (7 Replies)
from my workplace we use a proxy to connect to the outside world, including external ssh servers.
The problem is that the server is seeing the connection coming from the proxy and knows nothing about the client behind it. The ssh connection itself works fine, but x-forwarding does not work as... (1 Reply)
I am trying to set up a linux box as a router, but I am a little confused
on how to do this. I am using Red Hat 9.0 on a machine that has 2
nic cards. Also, I am using a DSL pppoe connection. I have installed
rp-pppoe and I am connected to the internet via the pseudo pppoe
interface. I have... (1 Reply)