Commit graph

153 commits

Author SHA1 Message Date
Nico Schottelius
25405a6ae1 [controller] stringify router 2019-03-06 14:00:35 +01:00
Nico Schottelius
6497db857c & remove checksumming again 2019-03-06 13:59:41 +01:00
Nico Schottelius
6f3bd8773b ... try reenabling checksumming in P4 2019-03-06 13:54:22 +01:00
Nico Schottelius
e9b08d638c s/bool/bit/ 2019-03-06 13:51:45 +01:00
Nico Schottelius
6dc5f34d43 s/ .. -> do_cksum 2019-03-06 13:51:06 +01:00
Nico Schottelius
8913cb8c3a Still getting json error, trying to short variable name 2019-03-06 13:50:03 +01:00
Nico Schottelius
6765b878c2 [p4] Disable checksum code again
To make the switch compile. Current error:

*** Starting 2 switches
s1 Starting P4 switch s1.
simple_switch -i 1@s1-eth1 -i 2@s1-eth2 -i 3@s1-eth3 -i 4@s1-eth4 -i 5@s1-cpu-eth0 --pcap=/home/p4/master-thesis/p4app/pcap --thrift-port 9090 --nanolog ipc:///tmp/bm-1-log.ipc --device-id 1 ../p4src/static-mapping.json --log-console >/home/p4/master-thesis/p4app/log/s1.log
P4 switch s1 did not start correctly. Check the switch log file.
p4@ubuntu:~/master-thesis/p4app$ cat /home/p4/master-thesis/p4app/log/s1.log
Warning: you requested the nanomsg event logger, but bmv2 was compiled without -DBMELOG, and the event logger cannot be activated
Calling target program-options parser
[12:24:10.407] [bmv2] [D] [thread 13263] Set default default entry for table 'MyIngress.v6_addresses': NoAction -
[12:24:10.407] [bmv2] [D] [thread 13263] Set default default entry for table 'MyIngress.v6_networks': NoAction -
[12:24:10.407] [bmv2] [D] [thread 13263] Set default default entry for table 'MyIngress.v4_networks': NoAction -
[12:24:10.408] [bmv2] [D] [thread 13263] Set default default entry for table 'tbl_act': act -
Invalid entry type 'expression' in field list
bad json:
{
   "type" : "expression",
   "value" : {
      "type" : "expression",
      "value" : {
         "left" : null,
         "op" : "d2b",
         "right" : {
            "type" : "field",
            "value" : [ "scalars", "metadata.calc_icmp6_checksum" ]
         }
      }
   }
}

p4@ubuntu:~/master-thesis/p4app$
2019-03-06 13:48:24 +01:00
Nico Schottelius
22da39377e Begin router support 2019-03-06 13:48:02 +01:00
Nico Schottelius
b0f3f5ea85 Try implicit cast by prepending 16 0 bits 2019-03-06 13:23:41 +01:00
Nico Schottelius
25f80b1b76 Try moving the cast to ingrees 2019-03-06 13:19:10 +01:00
Nico Schottelius
1b95179fc5 -typo 2019-03-06 13:13:01 +01:00
Nico Schottelius
0ca0b94b1c +notes; Try shifting the cast into the parser 2019-03-06 13:12:06 +01:00
Nico Schottelius
0bd12260c6 Re-introduce checksumming in p4 2019-03-05 22:42:51 +01:00
Nico Schottelius
2c3db11c80 +6 2019-03-05 22:33:03 +01:00
Nico Schottelius
8832069536 +-comment 2019-03-05 22:32:31 +01:00
Nico Schottelius
5620add27f Phasing in icmp6 in the switch 2019-03-05 22:31:05 +01:00
Nico Schottelius
7e2262cab5 Create answer 2019-03-05 22:06:17 +01:00
Nico Schottelius
6123dbfe86 self focused 2019-03-05 22:05:26 +01:00
Nico Schottelius
c9f8831865 icmp6 echo reply 2019-03-05 22:04:04 +01:00
Nico Schottelius
45e2bd4237 Disable checksumming in the switch 2019-03-05 21:53:27 +01:00
Nico Schottelius
81f89fe87a try resetting cksum (again) 2019-03-05 21:49:50 +01:00
Nico Schottelius
7d53abef6d Try deleting all chksums 2019-03-05 21:37:38 +01:00
Nico Schottelius
12097d0085 ++ unchecked checksums 2019-03-05 21:22:55 +01:00
Nico Schottelius
e4dd6eee93 Try v6 checksum instead of icmp6 2019-03-05 21:04:07 +01:00
Nico Schottelius
6f28013bb3 Change icmp6 (sub-)type 2019-03-05 20:15:55 +01:00
Nico Schottelius
3c215f6054 Unset router bit 2019-03-05 20:12:24 +01:00
Nico Schottelius
ec8d8abff4 Checksum in scapy: none = recalc 2019-03-05 19:56:11 +01:00
Nico Schottelius
23fa17d01d answer -> pkg 2019-03-05 17:09:17 +01:00
Nico Schottelius
253353daf5 Introduce more logging levels 2019-03-05 17:08:31 +01:00
Nico Schottelius
481675372d lladdr == src in this context 2019-03-05 17:01:21 +01:00
Nico Schottelius
a139ad6e83 Initial icmp6_na support in controller 2019-03-05 16:59:27 +01:00
Nico Schottelius
356f664019 ++doc
Signed-off-by: Nico Schottelius <nico@nico-notebook.schottelius.org>
2019-03-05 16:48:07 +01:00
Nico Schottelius
dd6986cf60 Disable multicast catchall by default 2019-03-05 16:19:43 +01:00
Nico Schottelius
69e483caf7 Use correct switch suffix 2019-03-05 16:15:54 +01:00
Nico Schottelius
3acbf88242 ++ todos 2019-03-05 16:14:36 +01:00
Nico Schottelius
29ff9e2333 Correct suffix to hex 2019-03-04 19:06:09 +01:00
Nico Schottelius
e51ed3ffcd Change action argument order
Fixing:

Invalid runtime data: Error while parsing 2001:db8::2a - Invalid input, could not cast to integer, try in hex with 0x prefix
Invalid runtime data: Error while parsing ff02::1:ff00:2a - Invalid input, could not cast to integer, try in hex with 0x prefix
Invalid runtime data: Error while parsing 2001:db8:0:1::2a - Invalid input, could not cast to integer, try in hex with 0x prefix
Invalid runtime data: Error while parsing ff02::1:ff00:2a - Invalid input, could not cast to integer, try in hex with 0x prefix
2019-03-04 19:02:28 +01:00
Nico Schottelius
cb67188780 Begin switching in controler based on task 2019-03-04 18:58:22 +01:00
Nico Schottelius
a274dcbcb8 commit correct stuff 2019-03-04 18:55:25 +01:00
Nico Schottelius
59655e0d32 Include correct offset AND debug info 2019-03-04 18:54:00 +01:00
Nico Schottelius
766dbba5c3 ++ 2019-03-04 18:41:10 +01:00
Nico Schottelius
7338580517 ++fix 2019-03-04 18:40:12 +01:00
Nico Schottelius
9771591a9d -bug 2019-03-04 18:39:09 +01:00
Nico Schottelius
6c1da54035 syntax 2019-03-04 18:38:08 +01:00
Nico Schottelius
816f11c864 Get shift from cpuheader def 2019-03-04 18:37:33 +01:00
Nico Schottelius
b465b366ea Adjust payload shift 2019-03-04 18:31:20 +01:00
Nico Schottelius
77b21207b9 Fix task width 2019-03-04 18:19:01 +01:00
Nico Schottelius
877359aaca Correct length of task field 2019-03-04 18:16:18 +01:00
Nico Schottelius
7ff09db32a Shift payload / ipv6 in cpu packet 2019-03-04 18:15:00 +01:00
Nico Schottelius
bc63f5edcf Bitwidth change / adjust 2019-03-04 18:13:34 +01:00