P4utils: reboot P4 switch


[Topology]

Note: Please refer to Traceroutable first. Each time, when h1 runs traceroute, it will choose randomly from paths from s1 to s6. During runtime, I will reset s1 switch. And add one new rule to s1 so that packets from h1 can only go via s1-s2-s6 and then arrive at h2.

 

[Execution]

 

1 traceroute: h1-s1-s4-s6-h2

 

2 traceroute:h1-s1-s5-s6-h2

 

3 traceroute:

 

Use simple_switch_CLI to connect to s1 and check the rules for ipv4_lpm table.

 

reboot s1 switch

 

Now, you can not ping h2 from h1. (because you reboot s1. No rules in s1)

 

In another terminal, use simple_switch_CLI to connect to s1 and check the rules for ipv4_lpm table. (you need to reconnect to s1 again)

No rule in S1.

 

Add two rules in s1. One for h1. The other is for h2 (go via s2).

 

No rule for ecmp_group_to_nhop in s1.

 

Pint and traceroute

 

Dr. Chih-Heng Ke

Department of Computer Science and Information Engineering, National Quemoy University, Kinmen, Taiwan

Email: smallko@gmail.com