Skip to content

Include a simple Lab with InBand Network Telemetry and P4 for students and researchers

Notifications You must be signed in to change notification settings

dcomp-leris/InbandNetworkTelemetry-P4

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Lab INT-P4

This is my first lab to use InBand Network Telemetry with P4. To use this lab, you will need following requirements:

  • Virtualbox
  • Vagrant
  • Ansible

Purpose of the lab

Use InBand Network Telemetry to collect metadata from BMv2 switches.

Topology

INT-P4 Topology

Commands

  • vagrant up will create four virtual machines and start the topology.
  • vagrant ssh host-1 will make a ssh connection in a virtual machine host-1. This virtual machine has IP address 192.168.50.11
  • vagrant ssh host-2 will make a ssh connection in a virtual machine host-2. This virtual machine has IP address 192.168.50.12

Host-2

In host-2 you need run the python script (receive.py) for start server application.

  • cd /vagrant/code
  • sudo ./receive.py

Host-1

In host-1 you need run the python script (send.py) for start client application.

  • cd /vagrant/code
  • sudo ./send.py 192.168.50.12

InBand Network Telemetry metadata

In host-2 terminal you can see metadata that were collected from switches. The metadata are:

  • switchID_t: switch identifier
  • ingress_port: for new packets, the number of the ingress port on which the packet arrived to the device.
  • egress_port: the output port this packet is destined to.
  • egress_spec: Can be assigned a value in ingress code to control which output port a packet will go to.
  • ingress_global_timestamp: a timestamp, in microseconds, set when the packet shows up on ingress.
  • egress_global_timestamp: a timestamp, in microseconds, set when the packet starts egress processing.
  • enq_timestamp: a timestamp, in microseconds, set when the packet is first enqueued.
  • enq_qdepth: the depth of the queue when the packet was first enqueued, in units of number of packets (not the total size of packets).
  • deq_timedelta: the time, in microseconds, that the packet spent in the queue.
  • deq_qdepth: the depth of queue when the packet was dequeued, in units of number of packets (not the total size of packets).

About

Include a simple Lab with InBand Network Telemetry and P4 for students and researchers

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published