[P4] Fwd: Fwd: P4 presentation
Tejfel Máté
matej at caesar.elte.hu
Thu Jul 16 22:49:29 CEST 2015
Sziasztok!
Aki tud, pillantson rá. Ill. akinek van hozzáférése (Zoli?) próbálja
ki, le tudja-e szedni az anyagokat...
M.
-------- Továbbított üzenet --------
Tárgy: Fwd: P4 presentation
Dátum: Thu, 16 Jul 2015 10:06:11 +0200
Feladó: Gergely Pongracz <Gergely.Pongracz at ericsson.com>
Szervezet: Ericsson AB
Címzett: 'Tejfel Máté' <matej at caesar.elte.hu>, Leskó Dániel
<ldani at elte.hu>
CC: András Császár <Andras.Csaszar at ericsson.com>, István Kerekes
<istvan.kerekes at ericsson.com>, Sandor Balajthy
<sandor.balajthy at ericsson.com>, Tamás Kámán <tamas.kaman at ericsson.com>
Sziasztok!
Mellekelve a kanadai egyetem P4 munkaja: slide-ok, ill. a demohoz
szukseges installalas leirasa. Probaljatok ki, hogy egyaltalan lejon-e
nektek minden, ill. nezzetek meg, hogy van-e belole hasznosithato
szamotokra egy Spider backend-hez.
Istvan, Sanyi, majd esetleg beszeljuk meg, benneteket mennyire
erdekelnek ezek az eredmenyek, illetve merrefele menjenek a kanadaiak.
Udv,
G.
-------- Forwarded Message --------
Subject: P4 presentation
Date: Tue, 14 Jul 2015 17:50:11 +0200
From: Bochra Boughzala <bochra.boughzala at ericsson.com>
To: Gergely Pongracz <Gergely.Pongracz at ericsson.com>, Gordon Bailey
(gb at gordonbailey.net) <gb at gordonbailey.net>, Samar Abdi
(samar at ece.concordia.ca) <samar at ece.concordia.ca>, François-R Boyer
(Francois-R.Boyer at polymtl.ca) <Francois-R.Boyer at polymtl.ca>
CC: Denis Monette <denis.monette at ericsson.com>, András Császár
<Andras.Csaszar at ericsson.com>
Hi Gergely,
Heres today presentation on P4.
The demo material is available on
https://forge.ericsson.net/projects/DataPlaneResearch/
<https://forge.ericsson.net/projects/DataPlaneResearch/> --> Git --> spider.
I also made some changes to the demo instructions that Gordon provided
(and I forget that I had this update, so Gordon you probably dont need
to go back and update the instructions file, everything should be there).
Action Item:
-The university to share their plans for the next few months ( ~ till
the end of the year).
Regards,
/Bochra
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://plc.inf.elte.hu/pipermail/p4/attachments/20150716/cc9f042e/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Gordon-Spider-P4-integration.pdf
Type: application/pdf
Size: 788470 bytes
Desc: Gordon-Spider-P4-integration.pdf
URL: <https://plc.inf.elte.hu/pipermail/p4/attachments/20150716/cc9f042e/attachment-0001.pdf>
-------------- next part --------------
Building
========
$ sudo add-apt-repository ppa:ubuntu-toolchain-r/test
$ sudo apt-get update
$ sudo apt-get install gcc-4.9
$ sudo apt-get install clang-3.5
$ sudo apt-get install cmake
$ sudo apt-get install realpath
$ wget http://www.tcpdump.org/release/libpcap-1.6.2.tar.gz
$ tar -xzf libpcap-1.6.2.tar.gz
$ cd libpcap-1.6.2/
$ ./configure
$ make
$ make install
$ cd
$ wget http://www.tcpdump.org/release/tcpdump-4.6.2.tar.gz
$ tar -xzf tcpdump-4.6.2.tar.gz
$ cd tcpdump-4.6.2/
$ ./configure
$ make
$ make install
$ cd
$ wget https://www.openssl.org/source/old/1.0.1/openssl-1.0.1k.tar.gz
$ tar -xzf openssl-1.0.1k.tar.gz
$ cd openssl-1.0.1k/
$ ./config
$ make
$ make install
First of all, clone the repository, and enter it:
git clone --recurse-submodules --branch demo-06-26-2015 ssh://gitolite@forge.ericsson.net/dataplaneresearch/spider.git
To build the project, you may need to install a few things:
The p4 code has many dependencies, which take a long time to install. They can be installed as follows:
# NB: Assumes that you're using Ubuntu 14.04
cd spider/submodules/p4factory
./install.sh
cd -
For the spider model, System C must be installed. This also takes a little bit of time:
cd spider/build
./install-sysc.bash
cd -
Additionally, you will need cmake, and either gcc>=4.9 or clang>=3.5. These can be installed using your package manager.
Once all the dependencies are installed, you can now set up the project to be built:
# depending on which compiler you're using:
CC=gcc-4.9 CXX=g++-4.9 cmake -G 'Unix Makefiles' ..
make
Running
=======
If the project was built successfully, it should now be possible to run the demo.
Open two terminals (referred to as A and B) and navigate to spider/submodules/p4factory/targets/simple_router in both.
In terminal A, execute the following command, which starts the mininet topology with 6 hosts, each running the harpoon traffic generator script.
./run_demo.bash 6 --harpoon
In terminal B, execute the following command, which populates the soft switch's match-action tables and begins capturing on all of its interfaces.
./capture.bash 6
In terminal A, press enter, initiating the traffic generator scripts. After waiting for a few seconds for enough traffic to be captured,
press ctrl-d to end the session. This will automatically stop the capture script, which will merge and copy the resulting pcap files into spider/build,
to be used as input for the SystemC model.
Once this is done, navigate back to spider/build, and execute the following command to run the SystemC model:
./SpiderAPI
Once this command finishes, the output can be compared with the expected output by running the following command:
./compare.bash
More information about the P4
mailing list