Skip to content

Monitoring Output Port Lookup

Adam edited this page Mar 26, 2014 · 1 revision

Name

osnt_monitoring_output_port_lookup

Version

v1.00a

Author

Gianni Antichi (gianni.antichi_at_cl.cam.ac.uk)

Type

pcore (HW)

Location

lib/hw/osnt/pcores/osnt_monitoring_output_port_lookup_v1_00_a/

Interface Types

AXI4-Stream

AXI4-Lite

Busses

S_AXIS: Slave AXI4-Stream bus, Variable width

M_AXIS: Master AXI4-Stream bus, Variable width

S_AXI: Slave AXI4-Lite

Parameters

C_BAR0_BASEADDR: Base address value of counters.

C_BAR0_HIGHADDR: High address value of counters.

C_BAR1_BASEADDR: Base address value of the filter table.

C_BAR1_HIGHADDR: High address value of the filter table.

C_M/S_AXIS_DATA_WIDTH: Data width of the AXI4-Stream bus.

Register map

C_BAR0_BASEADDR + 0x00: Soft Reset (level sensitive)
C_BAR0_BASEADDR + 0x04: Stats Freeze (level sensitive)
C_BAR0_BASEADDR + 0x08: Interface 0 packets count
C_BAR0_BASEADDR + 0x0c: Interface 1 packets count
C_BAR0_BASEADDR + 0x10: Interface 2 packets count
C_BAR0_BASEADDR + 0x14: Interface 3 packets count
C_BAR0_BASEADDR + 0x18: Interface 0 bytes count
C_BAR0_BASEADDR + 0x1c: Interface 1 bytes count
C_BAR0_BASEADDR + 0x20: Interface 2 bytes count
C_BAR0_BASEADDR + 0x24: Interface 3 bytes count
C_BAR0_BASEADDR + 0x28: Interface 0 VLAN packets count
C_BAR0_BASEADDR + 0x2c: Interface 1 VLAN packets count
C_BAR0_BASEADDR + 0x30: Interface 2 VLAN packets count
C_BAR0_BASEADDR + 0x34: Interface 3 VLAN packets count
C_BAR0_BASEADDR + 0x38: Interface 0 IP packets count
C_BAR0_BASEADDR + 0x3c: Interface 1 IP packets count
C_BAR0_BASEADDR + 0x40: Interface 2 IP packets count
C_BAR0_BASEADDR + 0x44: Interface 3 IP packets count
C_BAR0_BASEADDR + 0x48: Interface 0 UDP packets count
C_BAR0_BASEADDR + 0x4c: Interface 1 UDP packets count
C_BAR0_BASEADDR + 0x50: Interface 2 UDP packets count
C_BAR0_BASEADDR + 0x54: Interface 3 UDP packets count
C_BAR0_BASEADDR + 0x58: Interface 0 TCP packets count
C_BAR0_BASEADDR + 0x5c: Interface 1 TCP packets count
C_BAR0_BASEADDR + 0x60: Interface 2 TCP packets count
C_BAR0_BASEADDR + 0x64: Interface 3 TCP packets count
C_BAR0_BASEADDR + 0x68: Statistic Time (less significant 32 bits) - valid when stats freeze is asserted -
C_BAR0_BASEADDR + 0x6c: Statistic Time (most significant 32 bits) - valid when stats freeze is asserted -

C_BAR1_BASEADDR + 0x00: Filter Table Source IP Entry
C_BAR1_BASEADDR + 0x04: Filter Table Source IP Entry Mask
C_BAR1_BASEADDR + 0x08: Filter Table Destination IP Entry
C_BAR1_BASEADDR + 0x0c: Filter Table Destination IP Entry Mask
C_BAR1_BASEADDR + 0x10: Filter Table Layer 4 ports Entry - 16 most significant bits represent the destination port -
C_BAR1_BASEADDR + 0x14: Filter Table Layer 4 ports Entry Mask - 16 most significant bits represent the destination port -
C_BAR1_BASEADDR + 0x18: Filter Table Protocol Entry
C_BAR1_BASEADDR + 0x1c: Filter Table Protocol Entry Mask
C_BAR1_BASEADDR + 0x20: Filter Table Write Pointer
C_BAR1_BASEADDR + 0x24: Filter Table Read Pointer

Description

Two are the main function of this block:

  • packet filtering permitting selection of traffic-of-interest.
  • statistic gathering.

Only packets that are matched to a rule are sent to the software, while all other packets are dropped. Per port based statistics are taken regardless a packet will be dropped or not.