p4factory子目录下的run_all_tests

安装好p4factory之后,打算跑一下样例来测试是否正确。

但是,跑了targets目录内的basic_routing,make又报错了,但之前成功过,我想可能是长时间放置导致一些虚拟接口的问题,于是cd回上级目录,跑下全部的样例,看看是什么结果。

半个小时过去了,终于跑完了,可能是因为有其它进程的原因,导致某些样例没有通过。

**************************************
TESTS PASSED: 10/13
sudo killall -q behavioral-model
sudo killall -q drivers-switchapi
sudo killall -q drivers
sudo killall -q l2_switch_bmv2
sudo killall -q switch_bmv2
sudo killall -q basic_routing_bmv2
sudo killall -q drivers-switchsai
3 TESTS FAILED!
If some tests fail because extra packets are received, you may want to try disabling IPv6 with:
sudo sysctl -w net.ipv6.conf.eth0.disable_ipv6=1

于是在没有其它终端执行命令的情况下又跑了一遍,还是这个结果,于是打算按它提示的试一试。

basic_routing

终端A,执行./behavior-model

终端B,执行sudo python run_tests.py --test-dir tests/ptf-tests/

A的结果:

Resetting buffer
Resetting buffer
Cleaning all state (resetting all tables)
In ipv4_fib_set_default_action_on_miss
ipv4_fib: setting default action
In ipv4_fib_lpm_set_default_action_on_miss
ipv4_fib_lpm: setting default action
In rewrite_mac_set_default_action_on_miss
rewrite_mac: setting default action
In port_mapping_table_add_with_set_bd
port_mapping: adding entry
empty index: 0 **********
entry at index 0:
key:
standard_metadata_ingress_port: 0x00000001 (0 0 0 1),
action:
set_bd
action data:
bd: 0x0000000a (0 0 0 10),
********** In port_mapping_table_add_with_set_bd
port_mapping: adding entry
empty index: 1 **********
entry at index 1:
key:
standard_metadata_ingress_port: 0x00000002 (0 0 0 2),
action:
set_bd
action data:
bd: 0x0000000a (0 0 0 10),
********** In port_mapping_table_add_with_set_bd
port_mapping: adding entry
empty index: 2 **********
entry at index 2:
key:
standard_metadata_ingress_port: 0x00000003 (0 0 0 3),
action:
set_bd
action data:
bd: 0x00000014 (0 0 0 20),
********** In port_mapping_table_add_with_set_bd
port_mapping: adding entry
empty index: 3 **********
entry at index 3:
key:
standard_metadata_ingress_port: 0x00000004 (0 0 0 4),
action:
set_bd
action data:
bd: 0x00000014 (0 0 0 20),
********** In bd_table_add_with_set_vrf
bd: adding entry
empty index: 0 **********
entry at index 0:
key:
ingress_metadata_bd: 0x0000000a (0 0 0 10),
action:
set_vrf
action data:
vrf: 0x0000001e (0 0 0 30),
********** In bd_table_add_with_set_vrf
bd: adding entry
empty index: 1 **********
entry at index 1:
key:
ingress_metadata_bd: 0x00000014 (0 0 0 20),
action:
set_vrf
action data:
vrf: 0x0000001e (0 0 0 30),
********** In ipv4_fib_lpm_table_add_with_fib_hit_nexthop
ipv4_fib_lpm: adding entry
empty index: 0 **********
entry at index 0:
key:
ingress_metadata_vrf: 0x0000001e (0 0 0 30), ipv4_dstAddr: 0xc0a80000 (192 168 0 0),
prefix_length:
48
action:
fib_hit_nexthop
action data:
nexthop_index: 0x00000001 (0 0 0 1),
********** In ipv4_fib_lpm_table_add_with_fib_hit_nexthop
ipv4_fib_lpm: adding entry
empty index: 1 **********
entry at index 1:
key:
ingress_metadata_vrf: 0x0000001e (0 0 0 30), ipv4_dstAddr: 0x0a000000 (10 0 0 0),
prefix_length:
40
action:
fib_hit_nexthop
action data:
nexthop_index: 0x00000003 (0 0 0 3),
********** In nexthop_table_add_with_set_egress_details
nexthop: adding entry
empty index: 0 **********
entry at index 0:
key:
ingress_metadata_nexthop_index: 0x00000001 (0 0 0 1),
action:
set_egress_details
action data:
egress_spec: 0x00000001 (0 0 0 1),
********** In rewrite_mac_table_add_with_rewrite_src_dst_mac
rewrite_mac: adding entry
empty index: 0 **********
entry at index 0:
key:
ingress_metadata_nexthop_index: 0x00000001 (0 0 0 1),
action:
rewrite_src_dst_mac
action data:
smac: 0x010101010101, dmac: 0x000101010101,
********** In nexthop_table_add_with_set_egress_details
nexthop: adding entry
empty index: 1 **********
entry at index 1:
key:
ingress_metadata_nexthop_index: 0x00000002 (0 0 0 2),
action:
set_egress_details
action data:
egress_spec: 0x00000002 (0 0 0 2),
********** In rewrite_mac_table_add_with_rewrite_src_dst_mac
rewrite_mac: adding entry
empty index: 1 **********
entry at index 1:
key:
ingress_metadata_nexthop_index: 0x00000002 (0 0 0 2),
action:
rewrite_src_dst_mac
action data:
smac: 0x010202020202, dmac: 0x000202020202,
********** In nexthop_table_add_with_set_egress_details
nexthop: adding entry
empty index: 2 **********
entry at index 2:
key:
ingress_metadata_nexthop_index: 0x00000003 (0 0 0 3),
action:
set_egress_details
action data:
egress_spec: 0x00000003 (0 0 0 3),
********** In rewrite_mac_table_add_with_rewrite_src_dst_mac
rewrite_mac: adding entry
empty index: 2 **********
entry at index 2:
key:
ingress_metadata_nexthop_index: 0x00000003 (0 0 0 3),
action:
rewrite_src_dst_mac
action data:
smac: 0x010303030303, dmac: 0x000303030303,
********** In nexthop_table_add_with_set_egress_details
nexthop: adding entry
empty index: 3 **********
entry at index 3:
key:
ingress_metadata_nexthop_index: 0x00000004 (0 0 0 4),
action:
set_egress_details
action data:
egress_spec: 0x00000004 (0 0 0 4),
********** In rewrite_mac_table_add_with_rewrite_src_dst_mac
rewrite_mac: adding entry
empty index: 3 **********
entry at index 3:
key:
ingress_metadata_nexthop_index: 0x00000004 (0 0 0 4),
action:
rewrite_src_dst_mac
action data:
smac: 0x010404040404, dmac: 0x000404040404,
********** Packet in on port 2 length 100; first bytes:
00010203 04050006 0708090a 08004500
new packet, len : 100, ingress : 2
rmt proc returns 0
ingress_pipeline: packet dequeued
parsing start
parsing parse_ethernet
parsing parse_ipv4
payload length: 66
all checksums are correct
Applying table port_mapping
Lookup key for port_mapping:
standard_metadata_ingress_port: 0x00000002,
table hit **********
entry at index 1:
key:
standard_metadata_ingress_port: 0x00000002 (0 0 0 2),
action:
set_bd
action data:
bd: 0x0000000a (0 0 0 10),
********** action set_bd
action data:
bd: 0x0000000a (0 0 0 10),
executing next table for action
Applying table bd
Lookup key for bd:
ingress_metadata_bd: 0x0000000a,
table hit **********
entry at index 0:
key:
ingress_metadata_bd: 0x0000000a (0 0 0 10),
action:
set_vrf
action data:
vrf: 0x0000001e (0 0 0 30),
********** action set_vrf
action data:
vrf: 0x0000001e (0 0 0 30),
executing next table for action
Applying table ipv4_fib
Lookup key for ipv4_fib:
ingress_metadata_vrf: 0x0000001e, ipv4_dstAddr: 0x0a000002,
table miss, applying default action
action on_miss
executing next table for action
Applying table ipv4_fib_lpm
Lookup key for ipv4_fib_lpm:
ingress_metadata_vrf: 0x0000001e, ipv4_dstAddr: 0x0a000002,
table hit **********
entry at index 1:
key:
ingress_metadata_vrf: 0x0000001e (0 0 0 30), ipv4_dstAddr: 0x0a000000 (10 0 0 0),
prefix_length:
40
action:
fib_hit_nexthop
action data:
nexthop_index: 0x00000003 (0 0 0 3),
********** action fib_hit_nexthop
action data:
nexthop_index: 0x00000003 (0 0 0 3),
executing next table for action
Applying table nexthop
Lookup key for nexthop:
ingress_metadata_nexthop_index: 0x00000003,
table hit **********
entry at index 2:
key:
ingress_metadata_nexthop_index: 0x00000003 (0 0 0 3),
action:
set_egress_details
action data:
egress_spec: 0x00000003 (0 0 0 3),
********** action set_egress_details
action data:
egress_spec: 0x00000003 (0 0 0 3),
executing next table for action
total length for outgoing pkt: 100
deparsing ethernet
deparsing ipv4
total length for outgoing meta: 26
copying metadata
deparsing standard_metadata
deparsing ingress_metadata
queuing system: packet dequeued
egress port set to 3
instance type set to 0
egress_pipeline: packet dequeued
parsing start
parsing parse_ethernet
parsing parse_ipv4
payload length: 66
extracting metadata
extracting all metadata for 0x7f1974000930
Applying table rewrite_mac
Lookup key for rewrite_mac:
ingress_metadata_nexthop_index: 0x00000003,
table hit **********
entry at index 2:
key:
ingress_metadata_nexthop_index: 0x00000003 (0 0 0 3),
action:
rewrite_src_dst_mac
action data:
smac: 0x010303030303, dmac: 0x000303030303,
********** action rewrite_src_dst_mac
action data:
smac: 0x010303030303, dmac: 0x000303030303,
executing next table for action
total length for outgoing pkt: 100
deparsing ethernet
deparsing ipv4
outgoing thread: packet dequeued
outgoing thread: sending pkt: Size[100]: Port[3]
Packet in on port 4 length 100; first bytes:
00010203 04050006 0708090a 08004500
new packet, len : 100, ingress : 4
rmt proc returns 0
ingress_pipeline: packet dequeued
parsing start
parsing parse_ethernet
parsing parse_ipv4
payload length: 66
all checksums are correct
Applying table port_mapping
Lookup key for port_mapping:
standard_metadata_ingress_port: 0x00000004,
table hit **********
entry at index 3:
key:
standard_metadata_ingress_port: 0x00000004 (0 0 0 4),
action:
set_bd
action data:
bd: 0x00000014 (0 0 0 20),
********** action set_bd
action data:
bd: 0x00000014 (0 0 0 20),
executing next table for action
Applying table bd
Lookup key for bd:
ingress_metadata_bd: 0x00000014,
table hit **********
entry at index 1:
key:
ingress_metadata_bd: 0x00000014 (0 0 0 20),
action:
set_vrf
action data:
vrf: 0x0000001e (0 0 0 30),
********** action set_vrf
action data:
vrf: 0x0000001e (0 0 0 30),
executing next table for action
Applying table ipv4_fib
Lookup key for ipv4_fib:
ingress_metadata_vrf: 0x0000001e, ipv4_dstAddr: 0xc0a80102,
table miss, applying default action
action on_miss
executing next table for action
Applying table ipv4_fib_lpm
Lookup key for ipv4_fib_lpm:
ingress_metadata_vrf: 0x0000001e, ipv4_dstAddr: 0xc0a80102,
table hit **********
entry at index 0:
key:
ingress_metadata_vrf: 0x0000001e (0 0 0 30), ipv4_dstAddr: 0xc0a80000 (192 168 0 0),
prefix_length:
48
action:
fib_hit_nexthop
action data:
nexthop_index: 0x00000001 (0 0 0 1),
********** action fib_hit_nexthop
action data:
nexthop_index: 0x00000001 (0 0 0 1),
executing next table for action
Applying table nexthop
Lookup key for nexthop:
ingress_metadata_nexthop_index: 0x00000001,
table hit **********
entry at index 0:
key:
ingress_metadata_nexthop_index: 0x00000001 (0 0 0 1),
action:
set_egress_details
action data:
egress_spec: 0x00000001 (0 0 0 1),
********** action set_egress_details
action data:
egress_spec: 0x00000001 (0 0 0 1),
executing next table for action
total length for outgoing pkt: 100
deparsing ethernet
deparsing ipv4
total length for outgoing meta: 26
copying metadata
deparsing standard_metadata
deparsing ingress_metadata
queuing system: packet dequeued
egress port set to 1
instance type set to 0
egress_pipeline: packet dequeued
parsing start
parsing parse_ethernet
parsing parse_ipv4
payload length: 66
extracting metadata
extracting all metadata for 0x7f1970000930
Applying table rewrite_mac
Lookup key for rewrite_mac:
ingress_metadata_nexthop_index: 0x00000001,
table hit **********
entry at index 0:
key:
ingress_metadata_nexthop_index: 0x00000001 (0 0 0 1),
action:
rewrite_src_dst_mac
action data:
smac: 0x010101010101, dmac: 0x000101010101,
********** action rewrite_src_dst_mac
action data:
smac: 0x010101010101, dmac: 0x000101010101,
executing next table for action
total length for outgoing pkt: 100
deparsing ethernet
deparsing ipv4
outgoing thread: packet dequeued
outgoing thread: sending pkt: Size[100]: Port[1]

B的结果:

WARNING: No route found for IPv6 destination :: (no default route?)
routing.TwoBdLpmTest ... ok ----------------------------------------------------------------------
Ran 1 test in 1.829s OK

2016/10/14

P4factory 运行结果展示 basic_routing 以及 ./run_all_tests 的运行结果的更多相关文章

  1. C# 获取当前服务器运行程序的根目录,获取当前运行程序物理路径

    C# 获取当前服务器运行程序的根目录,获取当前运行程序物理路径 string tmpRootDir = AppDomain.CurrentDomain.BaseDirectory;//获得当前服务器程 ...

  2. 未能加载文件或程序集“BLL”或它的某一个依赖项。生成此程序集的运行时比当前加载的运行时新,无法加载此程序集。

    今天使用VS2012创建项目的时候,考虑到项目中代码的重用性以及清晰简洁性,搭建了一个三层架构,但是在项目运行的时候,总是报错: “未能加载文件或程序集“BLL”或它的某一个依赖项.生成此程序集的运行 ...

  3. Docker在Linux上运行NetCore系列(一)配置运行DotNetCore控制台

    转发请注明此文章作者与路径,请尊重原著,违者必究. 系列文章:https://www.cnblogs.com/alunchen/p/10121379.html 本篇文章操作系统信息 Linux:ubu ...

  4. Ubuntu上运行Blender,在控制台上查看运行结果

    1.首先在控制台打开Blender. 具体操作:找到Blender的安装路径,我的是:/home/lcx/下载/blender-2.78c-linux-glibc219-x86_64 $cd /hom ...

  5. Singer 学习七 运行&&开发taps、targets (二 targets 运行说明)

    接上文: Singer 学习六 运行&&开发taps.targets (一 taps 运行说明) 说明target 需要tap 进行配合运行,所以需要了解tap 的使用 运行targe ...

  6. Java线程面试题:子线程先运行 2 次,然后主线程运行 4 次,如此反复运行 3 次

    package thread; /** * 需求:线程编程:子线程先运行 2 次,然后主线程运行 4 次,如此反复运行 3 次. * @author zhongfg * @date 2015-06-1 ...

  7. bat 判断 bat 是否是以管理员权限运行,和自动以管理员权限运行

    bat 判断 bat 是否是以管理员权限运行,和自动以管理员权限运行 判断 @echo off net.exe session 1>NUL 2>NUL && ( goto ...

  8. C#.Net集成Bartender条码打印,VS调试运行可以打印,发布到IIS运行打印报错

    C#.Net集成Bartender条码打印,VS调试运行可以打印,发布到IIS运行打印报错 问题原因: 问题出现在iis账户权限. 解决方法: iis默认是用network service这个账户去执 ...

  9. bat代码中判断 bat是否是以管理员权限运行,以及自动以管理员权限运行CMD BAT

    · bat 代码中判断bat是否是以管理员权限运行,以及自动以管理员权限运行CMD BAT 一.判断bat是否是以管理员权限运行 @echo off net.exe session >NUL & ...

随机推荐

  1. 天使之城(codevs 2821)

    2821 天使之城  时间限制: 1 s  空间限制: 128000 KB  题目等级 : 黄金 Gold 题解  查看运行结果     题目描述 Description 天使城有一个火车站,每辆火车 ...

  2. 昨天用的流量有点多60M

    就是因为值班这里没有无线,然后自己又是受前几次的影响,没有收到微信,然后就看了热点,这是用的快的.

  3. Windows中检测当前是否有窗口全屏

    不时看到有人问起如何判断当前是否有窗口正处于全屏状态? 不过, 在解决这个问题之前先来解决一个简单的问题?         什么是全屏?     相当一部分人认为: 窗口如果是最大化的, 那么它就是最 ...

  4. hdu 1284 分硬币 && uva 147

    #include<bits/stdc++.h> using namespace std; int main() { unsigned ]; memset(dp,,sizeof(dp)); ...

  5. Xamarin Android提示找不到资源属性定义

    Xamarin Android提示找不到资源属性定义 错误信息:”Resource.Attribute”未包含”actonBarSize”的定义Xamarin Android经常会出现找不到资源属性的 ...

  6. 思维 UVALive 3708 Graveyard

    题目传送门 /* 题意:本来有n个雕塑,等间距的分布在圆周上,现在多了m个雕塑,问一共要移动多少距离: 思维题:认为一个雕塑不动,视为坐标0,其他点向最近的点移动,四舍五入判断,比例最后乘会10000 ...

  7. 【python游戏编程之旅】第一篇---初识pygame

    本系列博客介绍以python+pygame库进行小游戏的开发.有写的不对之处还望各位海涵. 一.pygame简介 Pygame 是一组用来开发游戏软件的 Python 程序模块,基于 SDL 库的基础 ...

  8. BZOJ3838 : [Pa2013]Raper

    将选取的$A$看成左括号,$B$看成右括号,那么答案是一个合法的括号序列. 那么只要重复取出$k$对价值最小的左右括号,保证每时每刻都是一个合法的括号序列即可. 将$($看成$1$,$)$看成$-1$ ...

  9. BZOJ2102 : [Usaco2010 Dec]The Trough Game

    暴力枚举答案然后检验. #include<cstdio> int n,m,i,j,k,a[100],b[100],cnt,ans;char s[20]; int main(){ for(s ...

  10. 在桌面chrome中调试android设备中的web页面

    准备工作 1, 桌面版chrome 2, Android设备(安装有chrome浏览器) 3, Android-sdk Android-sdk安装及设置 SKD安装 从http://developer ...