Hi!

I've a problem with a spanning tree application. I'm using basic spanning
tree with pyswitch.
I've to enable/disable a link after a certain number of packet.

This is my topology: I've a first host h1 linked with a switch (s2). This
switch is linked with two switches (s3 and s4) and these ones are connected
to another switch (s5) that is connnected to the host h6.
Every 100 packets, for example,  the link between s2 and s4 is disabled and
the link between s2 and s3 is enable, and vice versa after 100 packets
period.
I've modified spanning tree's code replancing dynamic implementation of the
tree with a static implementation and I introduced a packet counter in
"handle_packet_in" function, and it works but, when I do a ping test, it
sends packets always through the first path it learned without losing
packets and without changing path.
Is it possible?! Have you got any suggestions?
I think I've got to refresh switchs' flow table, erasing the previous path
and updating the new one, but I don't know how to do it!
Can you help me?!

Thanks!

-- 
Silvia Fichera

Reply via email to