Sponsored Content
Special Forums UNIX and Linux Applications Information on forwarding queue occupation in a Linux router Post 303039947 by i_mll on Friday 18th of October 2019 12:29:31 PM
Old 10-18-2019
Information on forwarding queue occupation in a Linux router

Hello.
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.
 

3 More Discussions You Might Find Interesting

1. IP Networking

Linux Router?

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)
Discussion started by: cstovall
1 Replies

2. Cybersecurity

ssh X-forwarding and remote forwarding behind proxy

Hi, 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)
Discussion started by: vampirodolce
1 Replies

3. Shell Programming and Scripting

Send information about disk occupation periodically by email

Hi, 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)
Discussion started by: Adam Brave
7 Replies
RADVD(8)																  RADVD(8)

NAME
radvd - router advertisement daemon for IPv6 SYNOPSIS
radvd [ -hsv ] [ -d debuglevel ] [ -C configfile ] [ -p pidfile ] [ -m logmethod ] [ -l logfile ] [ -f facility ] [ -t chrootdir ] [ -u username ] DESCRIPTION
radvd is the router advertisement daemon for IPv6. It listens to router solicitations and sends router advertisements as described in "Neighbor Discovery for IP Version 6 (IPv6)" (RFC 4861). With these advertisements hosts can automatically configure their addresses and some other parameters. They also can choose a default router based on these advertisements. Note that if debugging is not enabled, radvd will not start if IPv6 forwarding is disabled. IPv6 forwarding can be controlled via sysctl(8), net.ipv6.conf.all.forwarding on Linux or net.inet6.ip6.forwarding on BSD. Similarly, the configuration file must not be writable by others, and if non-root operation is requested, not even by self/own group. OPTIONS
For every one character option there is also a long option, which is listed right next to the "short" option name: -v, --version Displays the version of radvd and then aborts. -h, --help Displays a short usage description and then aborts. -s, --singleprocess On Linux if username is specified, privilege separation is enabled and there will be two processes. This option disables privilege separation, and as a result, the non-privileged radvd process does not have permissions to change interface configuration. -d debuglevel, --debug debuglevel With this option you turn on debugging information. The debugging level is an integer in the range from 1 to 5, from quiet to very verbose. A debugging level of 0 completely turns off debugging. If a debugging level greater than 0 is used, radvd doesn't back- ground itself on start. The default debugging level is 0. -C configfile, --config configfile Specifies an alternate config file. Normally the compiled in default /etc/radvd.conf is used. -p pidfile, --pidfile pidfile Specifies an alternate pidfile. Normally the compiled in default /var/run/radvd/radvd.pid is used. -m method, --logmethod method Specifies the logging method to use. Possibly values are: none Completely disables any logging. logfile Logs to the logfile which is specified by the -l option. If no logfile is specified on the command line, then a compiled in default is used (see next option). stderr Logs to standard error. stderr_syslog Logs only the high messages (of at least LOG_ERR priority) to standard error, and everything to syslog (default method). syslog Logs to syslog. -l logfile, --logfile logfile Specifies the logfile to use when using the logging method logfile. The default logfile is /var/log/radvd.log. -f facility, --facility facility Specifies the facility (as an integer) when using syslog logging. Default is LOG_DAEMON. -t chrootdir, --chrootdir chrootdir If specified, switches to chrootdir before doing anything else. This directory and its subdirectories must have been populated first. For security reasons, -u must always be used when using chrootdir. Note that on Linux radvd requires access to the /proc filesystem, so it is more challenging to set up the chroot environment. -u username, --username username If specified, drops root privileges and changes user ID to username and group ID to the primary group of username. This is recom- mended for security reasons. You might also need to use -p to point to a file in a username -writable directory (e.g. /var/run/radvd/radvd.pid). FILES
/usr/sbin/radvd /etc/radvd.conf /var/run/radvd/radvd.pid /var/log/radvd.log BUGS
There certainly are some bugs. If you find them or have other suggestions please contact Pekka Savola <pekkas@netcore.fi>. SEE ALSO
radvd.conf(5), radvdump(8) AUTHORS
Pedro Roque <roque@di.fc.ul.pt> - wrote first version for Linux Lars Fenneberg <lf@elemental.net> - previous maintainer Nathan Lutchansky <lutchann@litech.org> - previous maintainer Pekka Savola <pekkas@netcore.fi> - current maintainer Craig Metz <cmetz@inner.net> - port to NRL's IPv6 code for BSD4.4 Marko Myllynen <myllynen@lut.fi> - RFC 2461 update, Mobile IPv6 support Jim Paris <jim@jtan.com> - Privilege separation support radvd 1.3 24 Jan 2008 RADVD(8)
All times are GMT -4. The time now is 03:59 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy