Difference between revisions of "Napatech"

From VoIPmonitor.org
Jump to navigation Jump to search
Line 2: Line 2:
  
 
=== First Installation ===
 
=== First Installation ===
 +
====The old way====
  
 
* download latest Napatech drivers and untar it into e.g. /opt/napatech3
 
* download latest Napatech drivers and untar it into e.g. /opt/napatech3
Line 18: Line 19:
 
  INCLUDES = -I/usr/napatech3/include -I/usr/local/include ${MYSQLINC} -I jitterbuffer/ ${JSONCFLAGS} ${GLIBCFLAGS}
 
  INCLUDES = -I/usr/napatech3/include -I/usr/local/include ${MYSQLINC} -I jitterbuffer/ ${JSONCFLAGS} ${GLIBCFLAGS}
 
  LIBS_PATH = -L/opt/napatech3/lib -L/usr/local/lib/
 
  LIBS_PATH = -L/opt/napatech3/lib -L/usr/local/lib/
 +
 +
* run make
 +
* check it's built properly
 +
 +
root@server:/usr/src/sniffer# ldd ./voipmonitor | grep pcap
 +
libpcap.so.1 => /opt/napatech3/lib/libpcap.so.1 (0x00007fc0b69b0000)
 +
 +
* replace original binary in the /usr/local/sbin
 +
* run it
 +
 +
 +
====The new way (from the sensor's version 24.23)====
 +
 +
* download latest Napatech drivers and untar it into e.g. /opt/napatech3
 +
* build the driver
 +
* download the the sniffer's source
 +
 +
cd /usr/src
 +
git clone https://github.com/voipmonitor/sniffer.git
 +
cd sniffer
 +
./configure --with-dpdk-include=/opt/napatech3/include --with-dpdk-lib=/opt/napatech3/lib
 +
 +
Install all libraries that the configure needs.
  
 
* run make
 
* run make
Line 30: Line 54:
 
=== Upgrade ===
 
=== Upgrade ===
  
 +
====The manual way====
 
  cd /usr/src/sniffer
 
  cd /usr/src/sniffer
 
  git pull
 
  git pull
Line 35: Line 60:
  
 
* copy to the original directory and restart sensor
 
* copy to the original directory and restart sensor
 +
 +
 +
====The automatic way====
 +
 +
* set these options into voipmonitor.conf
 +
 +
upgrade_by_git = yes
 +
git_folder = /usr/src/sniffer
 +
configure_param --with-dpdk-include=/opt/napatech3/include --with-dpdk-lib=/opt/napatech3/lib
 +
 +
* restart sniffer
 +
* do the upgrade via clicking in the GUI
 +
 +
The sniffer will perform (after click on UPGRADE in GUI) git pull,configure,make_clean,make, service voipmonitor stop, make install, service voipmonitor start.
  
  

Revision as of 14:18, 26 April 2019

Configuration & building

First Installation

The old way

  • download latest Napatech drivers and untar it into e.g. /opt/napatech3
  • build the driver
  • download the the sniffer's source
cd /usr/src
git clone https://github.com/voipmonitor/sniffer.git
cd sniffer
./configure

Install all libraries that the configure needs.

  • edit INCLUDES and LIBS_PATH lines in the Makefile
INCLUDES = -I/usr/napatech3/include -I/usr/local/include ${MYSQLINC} -I jitterbuffer/ ${JSONCFLAGS} ${GLIBCFLAGS}
LIBS_PATH = -L/opt/napatech3/lib -L/usr/local/lib/
  • run make
  • check it's built properly
root@server:/usr/src/sniffer# ldd ./voipmonitor | grep pcap
	libpcap.so.1 => /opt/napatech3/lib/libpcap.so.1 (0x00007fc0b69b0000)
  • replace original binary in the /usr/local/sbin
  • run it


The new way (from the sensor's version 24.23)

  • download latest Napatech drivers and untar it into e.g. /opt/napatech3
  • build the driver
  • download the the sniffer's source
cd /usr/src
git clone https://github.com/voipmonitor/sniffer.git
cd sniffer
./configure --with-dpdk-include=/opt/napatech3/include --with-dpdk-lib=/opt/napatech3/lib

Install all libraries that the configure needs.

  • run make
  • check it's built properly
root@server:/usr/src/sniffer# ldd ./voipmonitor | grep pcap
	libpcap.so.1 => /opt/napatech3/lib/libpcap.so.1 (0x00007fc0b69b0000)
  • replace original binary in the /usr/local/sbin
  • run it

Upgrade

The manual way

cd /usr/src/sniffer
git pull
make
  • copy to the original directory and restart sensor


The automatic way

  • set these options into voipmonitor.conf
upgrade_by_git = yes
git_folder = /usr/src/sniffer
configure_param --with-dpdk-include=/opt/napatech3/include --with-dpdk-lib=/opt/napatech3/lib
  • restart sniffer
  • do the upgrade via clicking in the GUI

The sniffer will perform (after click on UPGRADE in GUI) git pull,configure,make_clean,make, service voipmonitor stop, make install, service voipmonitor start.


Settings

  • in voipmonitor.conf
interface = napa0

# filter option must be commented out !!! E.g.
#filter = udp or (vlan and udp)
  • /opt/napatech3/config/ntpcap.ini
# Napatech default ntpcap.ini file
[Common]
Ntpl1 = "Assign[streamid=0;txport=0;txignore=true]=all"

[napa0 ]
StreamId = 0
Tx = 0
  • old version
[napa0]
Rx1="Assign[streamid=252;txport=0;txignore=true]=all"
Tx=0
  • /opt/napatech3/config/ntservice.ini
[System]
TimestampFormat = NATIVE_UNIX
TimestampMethod = EOF 
HostBufferWaitMethod = 0 
SDRAMFillLevelWarning = 0


[logging]
LogMask = 0x07
LogToFile = 0
LogFileName = /tmp/Log3G_%s.log
LogBufferWrap = wrap

[Adapter0]
AdapterType = NT4E
BusId = 00:07:00:00
PacketDescriptor = NT
HostBuffersRx = [8,16,0]
HostBuffersTx = [8,16,0]
TimeSyncProtocol = NT
TimeSyncConnectorIn = Ext
TimeSyncConnectorOut = None
TimeSyncConnectorRepeat = None
TimeSyncTimeJumpThreshold = 1
TimeSyncTimeOffset = 0
MaxFrameSize = 9018
AltTPID = 0x8100
Profile = Capture
DiscardSize = 16
OsTimeSyncFailover = DISABLE

Timing source In napatech where timestamp of packets is shifted to GMT and you want use system time instead: GMT:

TimeSyncConnectorExt1 = PpsIn

System dependent:

TimeSyncConnectorExt1 = NttsIn