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

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

asked 24 Oct '14, 17:18

candres's gravatar image

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)
           NLRI prefix length: 16
           NLRI prefix: (

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


permanent link

answered 26 Oct '14, 15:44

Kurt%20Knochner's gravatar image

Kurt Knochner ♦
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



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text]( "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:


question asked: 24 Oct '14, 17:18

question was seen: 2,440 times

last updated: 26 Oct '14, 15:49

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