Linux Router KIT

I wonder how long 'netstat -rn' takes on *BSD with 54k routes.

6 seconds (output to /dev/null) on a Pentium something-or-other
running BSD/OS 3.1.

Stephen

How about 'netstat -rn | wc -l'

-Dan

> > I wonder how long 'netstat -rn' takes on *BSD with 54k routes.
> 6 seconds (output to /dev/null) on a Pentium something-or-other
> running BSD/OS 3.1.
How about 'netstat -rn | wc -l'

[bgw1.pa:i386] head /var/db/dmesg.boot
BSDI BSD/OS 3.1 Kernel #3: Sun Apr 26 10:03:00 PDT 1998
    root@bb.rc.vix.com:/tmp_mnt/db/db2/proj/src/BSDI/3.1/sys/compile/VIXLADDR
cpu = Pentium (about 200 MHz) model 2, stepping 12, type 0, features 1bf
delay multiplier 5111
real mem = 134217728 (128.00 MB)
avail mem = 129523712 (123.52 MB)
buffer cache = 13258752 (12.64 MB)
isa0 (root)
pci0 at root: configuration mechanism 1
keyboard disconnected? (code fe)

[bgw1.pa:i386] time sh -c 'netstat -rn | wc -l'
   53217
4.047u 3.730s 0:07.71 100.7% 0+0k 0+3io 0pf+0w

[bgw1.pa:i386] uptime
12:59PM up 120 days, 5:22, 2 users, load averages: 0.25, 0.16, 0.10

[bgw1.pa:i386] netstat -i
Name Mtu Network Address Ipkts Ierrs Opkts Oerrs Coll
de0* 1500 <link1> 00:00:f8:23:92:dd 0 0 0 0 0
de1 1500 <link2> 00:c0:95:e0:1e:1c 454157833 0 3149262405 695 11267799
de1 1500 core-net.pa bgw1-core 454157833 0 3149262405 695 11267799
de2 1500 <link3> 00:c0:95:e0:1e:1d 54420576 0 14698905052 1458728 85038844
de2 1500 iana-net.pa bgw1-iana 54420576 0 14698905052 1458728 85038844
de3* 1500 <link4> 00:c0:95:e0:1e:1e 0 0 0 0 0
de4* 1500 <link5> 00:c0:95:e0:1e:1f 0 0 0 0 0
fpa0 4470 <link6> 00:00:f8:41:02:34 17887289596 0 90176835 0 0
fpa0 4470 net.ix.pa-x xfw1-paix 17887289596 0 90176835 0 0
lo0 1536 <link7> 154949 0 154949 0 0
lo0 1536 bgw1.pa.vix bgw1 154949 0 154949 0 0
lo0 1536 loopback-ne localhost 154949 0 154949 0 0
sl0* 308 <link8> 0 0 0 0 0
ppp0* 1500 <link9> 0 0 0 0 0
ppp1* 1500 <link10> 0 0 0 0 0
pif0* 576 <link11> 0 0 0 0 0
tun0* 1500 <link12> 0 0 0 0 0
tun1* 1500 <link13> 0 0 0 0 0

Good test for a GRF router which runs BSD. We see almost exactly this many
routers and when we reconfig a router we use the command a lot to what
routes coming in. In most cases with a full 51-56k routes it is about
3-4secs.

GRF is a 166mhz pentium, 2.1BSDI, 512meg RAM.

> > I wonder how long 'netstat -rn' takes on *BSD with 54k routes.
> 6 seconds (output to /dev/null) on a Pentium something-or-other
> running BSD/OS 3.1.
How about 'netstat -rn | wc -l'

[bgw1.pa:i386] head /var/db/dmesg.boot
BSDI BSD/OS 3.1 Kernel #3: Sun Apr 26 10:03:00 PDT 1998
   root@bb.rc.vix.com:/tmp_mnt/db/db2/proj/src/BSDI/3.1/sys/compile/VIXLADDR
cpu = Pentium (about 200 MHz) model 2, stepping 12, type 0, features 1bf
delay multiplier 5111
real mem = 134217728 (128.00 MB)
avail mem = 129523712 (123.52 MB)
buffer cache = 13258752 (12.64 MB)
isa0 (root)
pci0 at root: configuration mechanism 1
keyboard disconnected? (code fe)

[bgw1.pa:i386] time sh -c 'netstat -rn | wc -l'
  53217
4.047u 3.730s 0:07.71 100.7% 0+0k 0+3io 0pf+0w

[bgw1.pa:i386] uptime
12:59PM up 120 days, 5:22, 2 users, load averages: 0.25, 0.16, 0.10

[bgw1.pa:i386] netstat -i
Name Mtu Network Address Ipkts Ierrs Opkts Oerrs
Coll
de0* 1500 <link1> 00:00:f8:23:92:dd 0 0 0 0
0
de1 1500 <link2> 00:c0:95:e0:1e:1c 454157833 0 3149262405 695
11267799
de1 1500 core-net.pa bgw1-core 454157833 0 3149262405 695
11267799
de2 1500 <link3> 00:c0:95:e0:1e:1d 54420576 0 14698905052
1458728 85038844
de2 1500 iana-net.pa bgw1-iana 54420576 0 14698905052
1458728 85038844
de3* 1500 <link4> 00:c0:95:e0:1e:1e 0 0 0 0
0
de4* 1500 <link5> 00:c0:95:e0:1e:1f 0 0 0 0
0
fpa0 4470 <link6> 00:00:f8:41:02:34 17887289596 0 90176835
0 0
fpa0 4470 net.ix.pa-x xfw1-paix 17887289596 0 90176835
0 0
lo0 1536 <link7> 154949 0 154949 0
0
lo0 1536 bgw1.pa.vix bgw1 154949 0 154949 0
0
lo0 1536 loopback-ne localhost 154949 0 154949 0
0
sl0* 308 <link8> 0 0 0 0
0
ppp0* 1500 <link9> 0 0 0 0
0
ppp1* 1500 <link10> 0 0 0 0
0
pif0* 576 <link11> 0 0 0 0
0
tun0* 1500 <link12> 0 0 0 0
0
tun1* 1500 <link13> 0 0 0 0
0

--
Paul Vixie <paul@vix.com>

Thank you,
David Diaz
Chief Technical Officer
Netrail, Inc

email: davediaz@netrail.net
pager: 888-576-1018
office: 888-NETRAIL

Colo facilities: Atlanta-NAP, Miami, Arlington, Chicago, San Francisco
888-NETRAIL for further information