This is our old Q&A Site. Please post any new questions and answers at ask.wireshark.org.

Can Wireshark count the number of BGP NLRIs in a capture?

asked 24 Oct '14, 17:18

candres's gravatar image

candres
11112
accept rate: 0%


Not directly, but you can use tshark and some scripting.

tshark -nr bgp.pcap -Y "bgp.update.nlri" -V -x > out.txt

Then parse out.txt with a script (perl, python, whatever) and look for something like this:

   Network Layer Reachability Information (NLRI)
       172.16.0.0/16
           NLRI prefix length: 16
           NLRI prefix: 172.16.0.0 (172.16.0.0)

As an alternative, you can write a LUA Listener, to count the NLRIs.

http://wiki.wireshark.org/Lua/Taps
https://www.wireshark.org/docs/wsug_html_chunked/wslua_tap_example.html
http://wiki.wireshark.org/Lua/Examples

Regards
Kurt

permanent link

answered 26 Oct '14, 15:44

Kurt%20Knochner's gravatar image

Kurt Knochner ♦
24.8k1039237
accept rate: 15%

edited 26 Oct '14, 15:49

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×18
×3
×1

question asked: 24 Oct '14, 17:18

question was seen: 1,863 times

last updated: 26 Oct '14, 15:49

p​o​w​e​r​e​d by O​S​Q​A