tcpdump not showing all data

I have a test VIP that load balances to a single web server which I can connect to with no problem over port 80…I’m running version 10.0.1.

I turned up tcpdump to watch the traffic oome in and out on the F5 and it only shows a packet or two every couple of minutes no matter how many times I refresh the browser.

I have tried this same thing for other traffic and the F5 continues not to show all traffic through tcpdump.

The F5 device is not showing any errors on the interfaces, the memory is low and so is the connection count.

Can anyone shed some light on this problem?

thanks

Jack

Have you tried via cmd shell?

I’m logged into the box over ssh using the admin account and running the tcpdump commands from the CLI, is there another way to do it?

There are only 2 ways to do it GUI or CLI, but the command line is the one that most sys admins prefer.

Bhattman

yes, I’m using the CLI and tcpdump doesn’t work correctly using this method, it doesn’t show all the network packet and is very delayed when it does work. Anyone see this issue on their boxes?

I’m running 10.0.1

thanks

Jack

Hi Jack,

I am running 10.0.1 HF3 and the TCPDUMPs is working properly.

What do you normal enter as the parameters

Bhattman

Do you see ‘x packets dropped’ when running the tcpdump command? If so, you could try to narrow down which packets you’re trying to capture using more exact filters.

Or are you using a FastL4 profile? If so, the packets accelerated by the PVA would not be fully seen by TMM or tcpdump:

The tcpdump utility runs on the Linux Host CPU, which does not receive PVA-accelerated traffic. Therefore, virtual server traffic that is fully accelerated by the PVA chip will not be captured by tcpdump. The PVA chip resides on the switchboard, between the BIG-IP system’s switch subsystem and the host motherboard.

The PVA handles accelerated traffic in the following order:

* The PVA receives accelerated traffic from the switch subsystem

* The PVA transforms the packet in order to redirect the packet to the appropriate pool member

* The PVA sends the packet back to the switch subsystem

Fully accelerated traffic never reaches the internal trunk and is not processed by TMM.

-------------

Running tcpdump on a switch interface is rate-limited to 200 packets per second. Therefore, if you run tcpdump on an interface that is processing more than 200 packets per second, the captured tcpdump file will not include all of the packets.

Aaron

On this particular VIP, I am not using FastL4 but that’s good to know that I won’t see all packets when doing so. I am using the “tcp” profile for this VIP.

Here is my command and some of the output. I never see the “dropped packet” counter increment and I have tried several different swithces in tcpdump command line and all of them give me the same thing:

[admin@ct1-f51600corp-01:Active] ~ tcpdump -i 1.1 host 172.21.61.3 -s 1514 -l

00:33:28.295468 802.1Q vlan4094 P0 172.21.61.3.http > 172.21.73.42.4436: F 149:149(0) ack 477 win 4856 (DF)

00:33:28.295468 802.1Q vlan4094 P0 172.21.61.3.http > 172.21.73.42.4437: P 1:149(148) ack 480 win 4859 (DF)

00:33:28.295468 802.1Q vlan4094 P0 172.21.61.3.http > 172.21.73.42.4437: F 149:149(0) ack 480 win 4859 (DF)

00:33:28.295468 802.1Q vlan4094 P0 172.21.73.42.4436 > 172.21.61.3.http: . ack 150 win 64364 (DF)

00:33:28.295468 802.1Q vlan4094 P0 172.21.73.42.4437 > 172.21.61.3.http: . ack 150 win 64364 (DF)

00:33:28.295468 802.1Q vlan4094 P0 172.21.73.42.4436 > 172.21.61.3.http: F 477:477(0) ack 150 win 64364 (DF)

00:33:28.295468 802.1Q vlan4094 P0 172.21.61.3.http > 172.21.73.42.4436: . ack 478 win 4856 (DF)

00:33:28.295468 802.1Q vlan4094 P0 172.21.73.42.4437 > 172.21.61.3.http: F 480:480(0) ack 150 win 64364 (DF)

00:33:28.295468 802.1Q vlan4094 P0 172.21.61.3.http > 172.21.73.42.4437: . ack 481 win 4859 (DF)

177 packets received by filter

0 packets dropped by kernel

You could verify if PVA is enable on the virtual by b virtual and looking to see if PVA is turned on.

The somewhat slowness you can get around by simply using the tcpdump -i 1.1 host 172.21.61.3 -s 1514 -l

Just my 2 cents

Bhattman

I just checked and I"m not running PVA on the interface however, I just reread this portion of a previous post which might explain my symbtoms:

“Running tcpdump on a switch interface is rate-limited to 200 packets per second. Therefore, if you run tcpdump on an interface that is processing more than 200 packets per second, the captured tcpdump file will not include all of the packets.”

I’m not sure if I’m exceeding 200pps…is there a command that can tell me that?

thanks

jack

You could also try dumping on the vlan name to avoid the interface limit:

tcpdump -i external host 172.21.61.3 -s 0 -l

Aaron

The tcpdump using the external host command didn’t render any output at all.

I was able however, to get the pps throughput using NGenius and I’m at around 2000-3000 pps on the inside interface so this would probably expliain why tcpdump is performing so poorly. The thing is, the F5 that I’m testing on isn’t even our production box that pushes alot more packets per second…how do you troubleshoot this box with a broken tcpdump???

The reason I ask is that the F5 is a fairly new deploy for me and I am starting to get calls from the Windows crew that have machines behind VIPS on this box and they want me to troubleshoot their flows and I can’t…I’m I missing something here?

jack

There isn’t a limitation on tcpdump if you use the VLAN instead of the port number. Just make sure you’re specifying the correct VLAN.

Aaron

what is the correct syntax for tcpdump using the vlan?

thanks

Just the name of the VLAN as listed in ‘b vlan list’.

Aaron

Thanks Aaron.

This was the only way I can get it to partially work:

tcpdump -i 1.1 vlan 4094 | grep 172.21.61.3

and again, I’m back to the same spotty output

Just use the vlan name instead of the port for the interface (and remove the vlan 4094 tag):

tcpdump -i external host 172.21.61.3 -s 0 -l

replace external with the actual vlan name from ‘b vlan list’.

Aaron

THAT WORKS!

nice..I guess I had a pps issue that needed the exact syntax as you pointed out, Aaron.

I opened a case with F5 and they didn’t provide me with any good information at all and never told me about a 200 pps limitation on tcpdump.

thanks again for all the help.

On another note, I really like those “b” commands that you suggested as I haven’t done much with the command line.

Is there any chance you can give me a short list of your favorite command line commands that can be useful in troubleshooting?

thanks again

jack

Glad that’s working for you. In v10 you have the new tmsh and existing bigpipe commands available. These are documented in the reference guides:

TMSH reference guide:

bigpipe reference guide:

Aaron

Hello, I have a problem with my ltm, writing tcpdump -ni external port xxxx can not see any kind of traffic passing, I tried with filters and nothing written here .. just sometimes looks good dump, have some idea? thank you very much , sorry my English so bad