Commit 2529bb82 authored by Pedro Oliveira's avatar Pedro Oliveira

reuse topology of broadcast tree

parent edf28819
Script started on Tue Jul 24 16:01:13 2018
root@switch1:~#
root@switch1:~# y tcpdump -i et  br0 -Q in -w /hosthome/Desktop/test_pim/pim/TestResults/Switch.pcap &
[1] 1594
root@switch1:~# tcpdump: listening on br0, link-type EN10MB (Ethernet), capture size 262144 bytes
root@switch1:~# t python3 ServerLogJoinPrune.py
Test1: Formation of (S,G) Broadcast Tree
Having Client0 and Client1 interested
About to start TCP server...
pim.KernelEntry.UpstreamInterface.JoinPrune DEBUG 2018-07-24 16:02:09,030 (10.1.1.100,224.12.12.12) 0 eth0 R1 Upstream state transitions to Forward
pim.KernelEntry.UpstreamInterface.JoinPrune DEBUG 2018-07-24 16:02:09,031 (10.1.1.100,224.12.12.12) 0 eth0 R1 sourceIsNowDirectConnect, F -> F
pim.KernelEntry.DownstreamInterface.JoinPrune DEBUG 2018-07-24 16:02:09,130 (10.1.1.100,224.12.12.12) 1 eth1 R1 Downstream state transitions to NoInfo
pim.KernelEntry.DownstreamInterface.JoinPrune DEBUG 2018-07-24 16:02:09,131 (10.1.1.100,224.12.12.12) 2 eth2 R1 Downstream state transitions to NoInfo
pim.KernelEntry.DownstreamInterface.JoinPrune DEBUG 2018-07-24 16:02:09,133 (10.1.1.100,224.12.12.12) 3 eth3 R1 Downstream state transitions to NoInfo
pim.KernelEntry.UpstreamInterface.JoinPrune DEBUG 2018-07-24 16:02:09,255 (10.1.1.100,224.12.12.12) 0 eth0 R3 Upstream state transitions to Forward
pim.KernelEntry.UpstreamInterface.JoinPrune DEBUG 2018-07-24 16:02:09,282 (10.1.1.100,224.12.12.12) 0 eth0 R4 Upstream state transitions to Forward
pim.KernelEntry.UpstreamInterface.JoinPrune DEBUG 2018-07-24 16:02:09,290 (10.1.1.100,224.12.12.12) 0 eth0 R2 Upstream state transitions to Forward
pim.KernelEntry.DownstreamInterface.JoinPrune DEBUG 2018-07-24 16:02:09,391 (10.1.1.100,224.12.12.12) 1 eth1 R3 Downstream state transitions to NoInfo
pim.KernelEntry.DownstreamInterface.JoinPrune DEBUG 2018-07-24 16:02:09,442 (10.1.1.100,224.12.12.12) 1 eth1 R2 Downstream state transitions to NoInfo
pim.KernelEntry.DownstreamInterface.JoinPrune DEBUG 2018-07-24 16:02:09,445 (10.1.1.100,224.12.12.12) 2 eth2 R2 Downstream state transitions to NoInfo
pim.KernelEntry.DownstreamInterface.JoinPrune DEBUG 2018-07-24 16:02:09,468 (10.1.1.100,224.12.12.12) 1 eth1 R4 Downstream state transitions to NoInfo
pim.KernelEntry.UpstreamInterface.JoinPrune DEBUG 2018-07-24 16:02:09,528 (10.1.1.100,224.12.12.12) 0 eth0 R5 Upstream state transitions to Forward
pim.KernelEntry.UpstreamInterface.JoinPrune DEBUG 2018-07-24 16:02:09,549 (10.1.1.100,224.12.12.12) 0 eth0 R6 Upstream state transitions to Forward
pim.KernelEntry.UpstreamInterface.JoinPrune DEBUG 2018-07-24 16:02:09,596 (10.1.1.100,224.12.12.12) 0 eth0 R7 Upstream state transitions to Forward
pim.KernelEntry.DownstreamInterface.JoinPrune DEBUG 2018-07-24 16:02:09,689 (10.1.1.100,224.12.12.12) 1 eth1 R6 Downstream state transitions to NoInfo
pim.KernelEntry.DownstreamInterface.JoinPrune DEBUG 2018-07-24 16:02:09,694 (10.1.1.100,224.12.12.12) 1 eth1 R5 Downstream state transitions to NoInfo
pim.KernelEntry.DownstreamInterface.JoinPrune DEBUG 2018-07-24 16:02:09,739 (10.1.1.100,224.12.12.12) 1 eth1 R7 Downstream state transitions to NoInfo
pim.KernelEntry.DownstreamInterface.JoinPrune DEBUG 2018-07-24 16:02:09,740 (10.1.1.100,224.12.12.12) 2 eth2 R7 Downstream state transitions to NoInfo
pim.KernelEntry.DownstreamInterface.JoinPrune DEBUG 2018-07-24 16:02:09,797 (10.1.1.100,224.12.12.12) 2 eth2 R2 receivedPrune, NI -> PP
pim.KernelEntry.DownstreamInterface.JoinPrune DEBUG 2018-07-24 16:02:09,798 (10.1.1.100,224.12.12.12) 2 eth2 R2 Downstream state transitions to PrunePending
pim.KernelEntry.DownstreamInterface.JoinPrune DEBUG 2018-07-24 16:02:09,814 (10.1.1.100,224.12.12.12) 2 eth2 R2 PPTexpires, PP -> P
pim.KernelEntry.DownstreamInterface.JoinPrune DEBUG 2018-07-24 16:02:09,816 (10.1.1.100,224.12.12.12) 2 eth2 R2 Downstream state transitions to Pruned
pim.KernelEntry.UpstreamInterface.JoinPrune DEBUG 2018-07-24 16:02:34,140 (10.1.1.100,224.12.12.12) 0 eth0 R5 RPFnbrChanges_olistIsNotNull, F -> AP
pim.KernelEntry.UpstreamInterface.JoinPrune DEBUG 2018-07-24 16:02:34,140 (10.1.1.100,224.12.12.12) 0 eth0 R5 Upstream state transitions to AckPending
pim.KernelEntry.UpstreamInterface.JoinPrune DEBUG 2018-07-24 16:02:34,158 (10.1.1.100,224.12.12.12) 0 eth0 R2 olistIsNowNull, F -> P
pim.KernelEntry.UpstreamInterface.JoinPrune DEBUG 2018-07-24 16:02:34,159 (10.1.1.100,224.12.12.12) 0 eth0 R2 Upstream state transitions to Pruned
pim.KernelEntry.UpstreamInterface.JoinPrune DEBUG 2018-07-24 16:02:34,156 (10.1.1.100,224.12.12.12) 0 eth0 R6 RPFnbrChanges_olistIsNotNull, F -> AP
pim.KernelEntry.UpstreamInterface.JoinPrune DEBUG 2018-07-24 16:02:34,157 (10.1.1.100,224.12.12.12) 0 eth0 R6 Upstream state transitions to AckPending
pim.KernelEntry.DownstreamInterface.JoinPrune DEBUG 2018-07-24 16:02:34,195 (10.1.1.100,224.12.12.12) 1 eth1 R1 receivedPrune, NI -> PP
pim.KernelEntry.DownstreamInterface.JoinPrune DEBUG 2018-07-24 16:02:34,196 (10.1.1.100,224.12.12.12) 1 eth1 R1 Downstream state transitions to PrunePending
pim.KernelEntry.UpstreamInterface.JoinPrune DEBUG 2018-07-24 16:02:34,207 (10.1.1.100,224.12.12.12) 0 eth0 R3 olistIsNowNull, F -> P
pim.KernelEntry.UpstreamInterface.JoinPrune DEBUG 2018-07-24 16:02:34,209 (10.1.1.100,224.12.12.12) 0 eth0 R3 Upstream state transitions to Pruned
pim.KernelEntry.UpstreamInterface.JoinPrune DEBUG 2018-07-24 16:02:34,221 (10.1.1.100,224.12.12.12) 0 eth0 R5 RPFnbrChanges_olistIsNotNull, AP -> AP
pim.KernelEntry.DownstreamInterface.JoinPrune DEBUG 2018-07-24 16:02:34,234 (10.1.1.100,224.12.12.12) 1 eth1 R1 PPTexpires, PP -> P
pim.KernelEntry.DownstreamInterface.JoinPrune DEBUG 2018-07-24 16:02:34,237 (10.1.1.100,224.12.12.12) 1 eth1 R1 Downstream state transitions to Pruned
pim.KernelEntry.DownstreamInterface.JoinPrune DEBUG 2018-07-24 16:02:34,266 (10.1.1.100,224.12.12.12) 1 eth1 R2 receivedGraft, NI -> NI
pim.KernelEntry.DownstreamInterface.JoinPrune DEBUG 2018-07-24 16:02:34,270 (10.1.1.100,224.12.12.12) 1 eth1 R3 receivedGraft, NI -> NI
pim.KernelEntry.UpstreamInterface.JoinPrune DEBUG 2018-07-24 16:02:34,275 (10.1.1.100,224.12.12.12) 0 eth0 R5 RPFnbrChanges_olistIsNotNull, AP -> AP
pim.KernelEntry.DownstreamInterface.JoinPrune DEBUG 2018-07-24 16:02:34,278 (10.1.1.100,224.12.12.12) 1 eth1 R4 receivedPrune, NI -> PP
pim.KernelEntry.DownstreamInterface.JoinPrune DEBUG 2018-07-24 16:02:34,279 (10.1.1.100,224.12.12.12) 1 eth1 R4 Downstream state transitions to PrunePending
pim.KernelEntry.DownstreamInterface.JoinPrune DEBUG 2018-07-24 16:02:34,281 (10.1.1.100,224.12.12.12) 1 eth1 R3 receivedPrune, NI -> PP
pim.KernelEntry.DownstreamInterface.JoinPrune DEBUG 2018-07-24 16:02:34,282 (10.1.1.100,224.12.12.12) 1 eth1 R3 Downstream state transitions to PrunePending
pim.KernelEntry.DownstreamInterface.JoinPrune DEBUG 2018-07-24 16:02:34,300 (10.1.1.100,224.12.12.12) 2 eth2 R1 receivedPrune, NI -> PP
pim.KernelEntry.DownstreamInterface.JoinPrune DEBUG 2018-07-24 16:02:34,303 (10.1.1.100,224.12.12.12) 2 eth2 R1 Downstream state transitions to PrunePending
pim.KernelEntry.UpstreamInterface.JoinPrune DEBUG 2018-07-24 16:02:34,312 (10.1.1.100,224.12.12.12) 0 eth0 R6 RPFnbrChanges_olistIsNotNull, AP -> AP
pim.KernelEntry.UpstreamInterface.JoinPrune DEBUG 2018-07-24 16:02:34,315 (10.1.1.100,224.12.12.12) 0 eth0 R5 seePrune, AP -> AP
pim.KernelEntry.DownstreamInterface.JoinPrune DEBUG 2018-07-24 16:02:34,327 (10.1.1.100,224.12.12.12) 1 eth1 R2 receivedGraft, NI -> NI
pim.KernelEntry.DownstreamInterface.JoinPrune DEBUG 2018-07-24 16:02:34,329 (10.1.1.100,224.12.12.12) 1 eth1 R3 receivedGraft, PP -> NI
pim.KernelEntry.UpstreamInterface.JoinPrune DEBUG 2018-07-24 16:02:34,342 (10.1.1.100,224.12.12.12) 0 eth0 R5 seePrune, AP -> AP
pim.KernelEntry.DownstreamInterface.JoinPrune DEBUG 2018-07-24 16:02:34,343 (10.1.1.100,224.12.12.12) 1 eth1 R3 Downstream state transitions to NoInfo
pim.KernelEntry.UpstreamInterface.JoinPrune DEBUG 2018-07-24 16:02:34,348 (10.1.1.100,224.12.12.12) 0 eth0 R5 seePrune, AP -> AP
pim.KernelEntry.DownstreamInterface.JoinPrune DEBUG 2018-07-24 16:02:34,361 (10.1.1.100,224.12.12.12) 2 eth2 R1 PPTexpires, PP -> P
pim.KernelEntry.DownstreamInterface.JoinPrune DEBUG 2018-07-24 16:02:34,363 (10.1.1.100,224.12.12.12) 2 eth2 R1 Downstream state transitions to Pruned
Test1 Success
Test2: Client1 not interested in receiving traffic destined to group G
R6 sends a Prune and R5 overrides the prune
pim.KernelEntry.UpstreamInterface.JoinPrune DEBUG 2018-07-24 16:02:34,402 (10.1.1.100,224.12.12.12) 0 eth0 R6 RPFnbrChanges_olistIsNotNull, AP -> AP
pim.KernelEntry.DownstreamInterface.JoinPrune DEBUG 2018-07-24 16:02:34,418 (10.1.1.100,224.12.12.12) 1 eth1 R4 receivedGraft, PP -> NI
pim.KernelEntry.DownstreamInterface.JoinPrune DEBUG 2018-07-24 16:02:34,419 (10.1.1.100,224.12.12.12) 1 eth1 R4 Downstream state transitions to NoInfo
pim.KernelEntry.UpstreamInterface.JoinPrune DEBUG 2018-07-24 16:02:34,425 (10.1.1.100,224.12.12.12) 0 eth0 R5 recvGraftAckFromRPFnbr, AP -> F
pim.KernelEntry.UpstreamInterface.JoinPrune DEBUG 2018-07-24 16:02:34,426 (10.1.1.100,224.12.12.12) 0 eth0 R5 Upstream state transitions to Forward
pim.KernelEntry.DownstreamInterface.JoinPrune DEBUG 2018-07-24 16:02:34,477 (10.1.1.100,224.12.12.12) 1 eth1 R4 receivedPrune, NI -> PP
pim.KernelEntry.DownstreamInterface.JoinPrune DEBUG 2018-07-24 16:02:34,478 (10.1.1.100,224.12.12.12) 1 eth1 R4 Downstream state transitions to PrunePending
pim.KernelEntry.UpstreamInterface.JoinPrune DEBUG 2018-07-24 16:02:34,486 (10.1.1.100,224.12.12.12) 0 eth0 R6 seePrune, AP -> AP
pim.KernelEntry.UpstreamInterface.JoinPrune DEBUG 2018-07-24 16:02:34,503 (10.1.1.100,224.12.12.12) 0 eth0 R6 seePrune, AP -> AP
pim.KernelEntry.UpstreamInterface.JoinPrune DEBUG 2018-07-24 16:02:34,515 (10.1.1.100,224.12.12.12) 0 eth0 R6 seePrune, AP -> AP
pim.KernelEntry.DownstreamInterface.JoinPrune DEBUG 2018-07-24 16:02:34,571 (10.1.1.100,224.12.12.12) 1 eth1 R4 receivedGraft, PP -> NI
pim.KernelEntry.DownstreamInterface.JoinPrune DEBUG 2018-07-24 16:02:34,573 (10.1.1.100,224.12.12.12) 1 eth1 R4 Downstream state transitions to NoInfo
pim.KernelEntry.UpstreamInterface.JoinPrune DEBUG 2018-07-24 16:02:34,577 (10.1.1.100,224.12.12.12) 0 eth0 R6 recvGraftAckFromRPFnbr, AP -> F
pim.KernelEntry.UpstreamInterface.JoinPrune DEBUG 2018-07-24 16:02:34,579 (10.1.1.100,224.12.12.12) 0 eth0 R6 Upstream state transitions to Forward
pim.KernelEntry.UpstreamInterface.JoinPrune DEBUG 2018-07-24 16:02:34,962 (10.1.1.100,224.12.12.12) 0 eth0 R5 OTexpires, F -> F
pim.KernelEntry.DownstreamInterface.JoinPrune DEBUG 2018-07-24 16:02:34,973 (10.1.1.100,224.12.12.12) 1 eth1 R4 receivedJoin, NI -> NI
pim.KernelEntry.UpstreamInterface.JoinPrune DEBUG 2018-07-24 16:02:34,980 (10.1.1.100,224.12.12.12) 0 eth0 R6 seeJoinToRPFnbr, F -> F
pim.KernelEntry.UpstreamInterface.JoinPrune DEBUG 2018-07-24 16:02:48,937 (10.1.1.100,224.12.12.12) 0 eth0 R6 olistIsNowNull, F -> P
pim.KernelEntry.UpstreamInterface.JoinPrune DEBUG 2018-07-24 16:02:48,939 (10.1.1.100,224.12.12.12) 0 eth0 R6 Upstream state transitions to Pruned
Test2 Success
Test3: R5 overrides prune via Join
R4 should transition to Forward state
pim.KernelEntry.DownstreamInterface.JoinPrune DEBUG 2018-07-24 16:02:48,955 (10.1.1.100,224.12.12.12) 1 eth1 R4 receivedPrune, NI -> PP
pim.KernelEntry.DownstreamInterface.JoinPrune DEBUG 2018-07-24 16:02:48,957 (10.1.1.100,224.12.12.12) 1 eth1 R4 Downstream state transitions to PrunePending
pim.KernelEntry.UpstreamInterface.JoinPrune DEBUG 2018-07-24 16:02:48,964 (10.1.1.100,224.12.12.12) 0 eth0 R5 seePrune, F -> F
pim.KernelEntry.UpstreamInterface.JoinPrune DEBUG 2018-07-24 16:02:50,980 (10.1.1.100,224.12.12.12) 0 eth0 R5 OTexpires, F -> F
pim.KernelEntry.UpstreamInterface.JoinPrune DEBUG 2018-07-24 16:02:50,992 (10.1.1.100,224.12.12.12) 0 eth0 R6 seeJoinToRPFnbr, P -> P
pim.KernelEntry.DownstreamInterface.JoinPrune DEBUG 2018-07-24 16:02:51,003 (10.1.1.100,224.12.12.12) 1 eth1 R4 receivedJoin, PP -> NI
pim.KernelEntry.DownstreamInterface.JoinPrune DEBUG 2018-07-24 16:02:51,005 (10.1.1.100,224.12.12.12) 1 eth1 R4 Downstream state transitions to NoInfo
Test3 Success
Test4: No client interested
Prune tree
pim.KernelEntry.UpstreamInterface.JoinPrune DEBUG 2018-07-24 16:03:18,046 (10.1.1.100,224.12.12.12) 0 eth0 R7 olistIsNowNull, F -> P
pim.KernelEntry.UpstreamInterface.JoinPrune DEBUG 2018-07-24 16:03:18,048 (10.1.1.100,224.12.12.12) 0 eth0 R7 Upstream state transitions to Pruned
pim.KernelEntry.DownstreamInterface.JoinPrune DEBUG 2018-07-24 16:03:18,099 (10.1.1.100,224.12.12.12) 1 eth1 R5 receivedPrune, NI -> PP
pim.KernelEntry.DownstreamInterface.JoinPrune DEBUG 2018-07-24 16:03:18,100 (10.1.1.100,224.12.12.12) 1 eth1 R5 Downstream state transitions to PrunePending
pim.KernelEntry.DownstreamInterface.JoinPrune DEBUG 2018-07-24 16:03:18,121 (10.1.1.100,224.12.12.12) 1 eth1 R5 PPTexpires, PP -> P
pim.KernelEntry.DownstreamInterface.JoinPrune DEBUG 2018-07-24 16:03:18,122 (10.1.1.100,224.12.12.12) 1 eth1 R5 Downstream state transitions to Pruned
pim.KernelEntry.UpstreamInterface.JoinPrune DEBUG 2018-07-24 16:03:18,123 (10.1.1.100,224.12.12.12) 0 eth0 R5 olistIsNowNull, F -> P
pim.KernelEntry.UpstreamInterface.JoinPrune DEBUG 2018-07-24 16:03:18,124 (10.1.1.100,224.12.12.12) 0 eth0 R5 Upstream state transitions to Pruned
pim.KernelEntry.DownstreamInterface.JoinPrune DEBUG 2018-07-24 16:03:18,130 (10.1.1.100,224.12.12.12) 1 eth1 R4 receivedPrune, NI -> PP
pim.KernelEntry.DownstreamInterface.JoinPrune DEBUG 2018-07-24 16:03:18,131 (10.1.1.100,224.12.12.12) 1 eth1 R4 Downstream state transitions to PrunePending
pim.KernelEntry.UpstreamInterface.JoinPrune DEBUG 2018-07-24 16:03:18,130 (10.1.1.100,224.12.12.12) 0 eth0 R6 seePrune, P -> P
pim.KernelEntry.DownstreamInterface.JoinPrune DEBUG 2018-07-24 16:03:21,160 (10.1.1.100,224.12.12.12) 1 eth1 R4 PPTexpires, PP -> P
pim.KernelEntry.DownstreamInterface.JoinPrune DEBUG 2018-07-24 16:03:21,161 (10.1.1.100,224.12.12.12) 1 eth1 R4 Downstream state transitions to Pruned
pim.KernelEntry.UpstreamInterface.JoinPrune DEBUG 2018-07-24 16:03:21,165 (10.1.1.100,224.12.12.12) 0 eth0 R4 olistIsNowNull, F -> P
pim.KernelEntry.UpstreamInterface.JoinPrune DEBUG 2018-07-24 16:03:21,167 (10.1.1.100,224.12.12.12) 0 eth0 R4 Upstream state transitions to Pruned
pim.KernelEntry.DownstreamInterface.JoinPrune DEBUG 2018-07-24 16:03:21,178 (10.1.1.100,224.12.12.12) 3 eth3 R1 receivedPrune, NI -> PP
pim.KernelEntry.DownstreamInterface.JoinPrune DEBUG 2018-07-24 16:03:21,183 (10.1.1.100,224.12.12.12) 3 eth3 R1 Downstream state transitions to PrunePending
pim.KernelEntry.DownstreamInterface.JoinPrune DEBUG 2018-07-24 16:03:21,269 (10.1.1.100,224.12.12.12) 3 eth3 R1 PPTexpires, PP -> P
pim.KernelEntry.DownstreamInterface.JoinPrune DEBUG 2018-07-24 16:03:21,277 (10.1.1.100,224.12.12.12) 3 eth3 R1 Downstream state transitions to Pruned
Test4 Success
Test5: client1 interested in receiving traffic
Graft tree
pim.KernelEntry.UpstreamInterface.JoinPrune DEBUG 2018-07-24 16:03:21,293 (10.1.1.100,224.12.12.12) 0 eth0 R6 seePrune, P -> P
pim.KernelEntry.UpstreamInterface.JoinPrune DEBUG 2018-07-24 16:03:21,294 (10.1.1.100,224.12.12.12) 0 eth0 R5 seePrune, P -> P
pim.KernelEntry.UpstreamInterface.JoinPrune DEBUG 2018-07-24 16:03:46,677 (10.1.1.100,224.12.12.12) 0 eth0 R6 olistIsNowNotNull, P -> AP
pim.KernelEntry.UpstreamInterface.JoinPrune DEBUG 2018-07-24 16:03:46,677 (10.1.1.100,224.12.12.12) 0 eth0 R6 Upstream state transitions to AckPending
pim.KernelEntry.DownstreamInterface.JoinPrune DEBUG 2018-07-24 16:03:46,684 (10.1.1.100,224.12.12.12) 1 eth1 R4 receivedGraft, P -> NI
pim.KernelEntry.DownstreamInterface.JoinPrune DEBUG 2018-07-24 16:03:46,687 (10.1.1.100,224.12.12.12) 1 eth1 R4 Downstream state transitions to NoInfo
pim.KernelEntry.UpstreamInterface.JoinPrune DEBUG 2018-07-24 16:03:46,689 (10.1.1.100,224.12.12.12) 0 eth0 R4 olistIsNowNotNull, P -> AP
pim.KernelEntry.UpstreamInterface.JoinPrune DEBUG 2018-07-24 16:03:46,690 (10.1.1.100,224.12.12.12) 0 eth0 R4 Upstream state transitions to AckPending
pim.KernelEntry.DownstreamInterface.JoinPrune DEBUG 2018-07-24 16:03:46,691 (10.1.1.100,224.12.12.12) 3 eth3 R1 receivedGraft, P -> NI
pim.KernelEntry.DownstreamInterface.JoinPrune DEBUG 2018-07-24 16:03:46,692 (10.1.1.100,224.12.12.12) 3 eth3 R1 Downstream state transitions to NoInfo
pim.KernelEntry.UpstreamInterface.JoinPrune DEBUG 2018-07-24 16:03:46,707 (10.1.1.100,224.12.12.12) 0 eth0 R4 recvGraftAckFromRPFnbr, AP -> F
pim.KernelEntry.UpstreamInterface.JoinPrune DEBUG 2018-07-24 16:03:46,708 (10.1.1.100,224.12.12.12) 0 eth0 R4 Upstream state transitions to Forward
pim.KernelEntry.UpstreamInterface.JoinPrune DEBUG 2018-07-24 16:03:46,709 (10.1.1.100,224.12.12.12) 0 eth0 R6 recvGraftAckFromRPFnbr, AP -> F
pim.KernelEntry.UpstreamInterface.JoinPrune DEBUG 2018-07-24 16:03:46,710 (10.1.1.100,224.12.12.12) 0 eth0 R6 Upstream state transitions to Forward
Test5 Success
pim.KernelEntry.DownstreamInterface.JoinPrune DEBUG 2018-07-24 16:05:06,845 (10.1.1.100,224.12.12.12) 2 eth2 R2 PTexpires, P -> NI
pim.KernelEntry.DownstreamInterface.JoinPrune DEBUG 2018-07-24 16:05:06,847 (10.1.1.100,224.12.12.12) 2 eth2 R2 Downstream state transitions to NoInfo
pim.KernelEntry.UpstreamInterface.JoinPrune DEBUG 2018-07-24 16:05:06,873 (10.1.1.100,224.12.12.12) 0 eth0 R2 olistIsNowNotNull, P -> AP
pim.KernelEntry.UpstreamInterface.JoinPrune DEBUG 2018-07-24 16:05:06,876 (10.1.1.100,224.12.12.12) 0 eth0 R2 Upstream state transitions to AckPending
pim.KernelEntry.DownstreamInterface.JoinPrune DEBUG 2018-07-24 16:05:06,928 (10.1.1.100,224.12.12.12) 1 eth1 R1 receivedGraft, P -> NI
pim.KernelEntry.DownstreamInterface.JoinPrune DEBUG 2018-07-24 16:05:06,930 (10.1.1.100,224.12.12.12) 1 eth1 R1 Downstream state transitions to NoInfo
pim.KernelEntry.UpstreamInterface.JoinPrune DEBUG 2018-07-24 16:05:06,979 (10.1.1.100,224.12.12.12) 0 eth0 R2 recvGraftAckFromRPFnbr, AP -> F
pim.KernelEntry.UpstreamInterface.JoinPrune DEBUG 2018-07-24 16:05:06,986 (10.1.1.100,224.12.12.12) 0 eth0 R2 Upstream state transitions to Forward
pim.KernelEntry.UpstreamInterface.JoinPrune DEBUG 2018-07-24 16:05:09,844 (10.1.1.100,224.12.12.12) 0 eth0 R7 olistIsNowNotNull, P -> AP
pim.KernelEntry.UpstreamInterface.JoinPrune DEBUG 2018-07-24 16:05:09,850 (10.1.1.100,224.12.12.12) 0 eth0 R7 Upstream state transitions to AckPending
pim.KernelEntry.DownstreamInterface.JoinPrune DEBUG 2018-07-24 16:05:09,913 (10.1.1.100,224.12.12.12) 1 eth1 R5 receivedGraft, P -> NI
pim.KernelEntry.DownstreamInterface.JoinPrune DEBUG 2018-07-24 16:05:09,916 (10.1.1.100,224.12.12.12) 1 eth1 R5 Downstream state transitions to NoInfo
pim.KernelEntry.UpstreamInterface.JoinPrune DEBUG 2018-07-24 16:05:09,945 (10.1.1.100,224.12.12.12) 0 eth0 R5 olistIsNowNotNull, P -> AP
pim.KernelEntry.UpstreamInterface.JoinPrune DEBUG 2018-07-24 16:05:09,947 (10.1.1.100,224.12.12.12) 0 eth0 R5 Upstream state transitions to AckPending
pim.KernelEntry.DownstreamInterface.JoinPrune DEBUG 2018-07-24 16:05:09,970 (10.1.1.100,224.12.12.12) 1 eth1 R4 receivedGraft, NI -> NI
pim.KernelEntry.UpstreamInterface.JoinPrune DEBUG 2018-07-24 16:05:09,986 (10.1.1.100,224.12.12.12) 0 eth0 R7 recvGraftAckFromRPFnbr, AP -> F
pim.KernelEntry.UpstreamInterface.JoinPrune DEBUG 2018-07-24 16:05:09,986 (10.1.1.100,224.12.12.12) 0 eth0 R7 Upstream state transitions to Forward
pim.KernelEntry.UpstreamInterface.JoinPrune DEBUG 2018-07-24 16:05:09,982 (10.1.1.100,224.12.12.12) 0 eth0 R5 recvGraftAckFromRPFnbr, AP -> F
pim.KernelEntry.UpstreamInterface.JoinPrune DEBUG 2018-07-24 16:05:09,987 (10.1.1.100,224.12.12.12) 0 eth0 R5 Upstream state transitions to Forward
pim.KernelEntry.UpstreamInterface.JoinPrune DEBUG 2018-07-24 16:05:34,226 (10.1.1.100,224.12.12.12) 0 eth0 R3 olistIsNowNotNull, P -> AP
pim.KernelEntry.UpstreamInterface.JoinPrune DEBUG 2018-07-24 16:05:34,228 (10.1.1.100,224.12.12.12) 0 eth0 R3 Upstream state transitions to AckPending
pim.KernelEntry.DownstreamInterface.JoinPrune DEBUG 2018-07-24 16:05:34,252 (10.1.1.100,224.12.12.12) 2 eth2 R1 receivedGraft, P -> NI
pim.KernelEntry.DownstreamInterface.JoinPrune DEBUG 2018-07-24 16:05:34,257 (10.1.1.100,224.12.12.12) 2 eth2 R1 Downstream state transitions to NoInfo
pim.KernelEntry.UpstreamInterface.JoinPrune DEBUG 2018-07-24 16:05:34,352 (10.1.1.100,224.12.12.12) 0 eth0 R3 recvGraftAckFromRPFnbr, AP -> F
pim.KernelEntry.UpstreamInterface.JoinPrune DEBUG 2018-07-24 16:05:34,354 (10.1.1.100,224.12.12.12) 0 eth0 R3 Upstream state transitions to Forward
pim.KernelEntry.UpstreamInterface.JoinPrune DEBUG 2018-07-24 16:05:49,516 (10.1.1.100,224.12.12.12) 0 eth0 R5 RPFnbrChanges_olistIsNotNull, F -> AP
pim.KernelEntry.UpstreamInterface.JoinPrune DEBUG 2018-07-24 16:05:49,518 (10.1.1.100,224.12.12.12) 0 eth0 R5 Upstream state transitions to AckPending
pim.KernelEntry.UpstreamInterface.JoinPrune DEBUG 2018-07-24 16:05:49,523 (10.1.1.100,224.12.12.12) 0 eth0 R6 RPFnbrChanges_olistIsNotNull, F -> AP
pim.KernelEntry.UpstreamInterface.JoinPrune DEBUG 2018-07-24 16:05:49,525 (10.1.1.100,224.12.12.12) 0 eth0 R6 Upstream state transitions to AckPending
pim.KernelEntry.UpstreamInterface.JoinPrune DEBUG 2018-07-24 16:05:49,553 (10.1.1.100,224.12.12.12) 0 eth0 R3 olistIsNowNull, F -> P
pim.KernelEntry.UpstreamInterface.JoinPrune DEBUG 2018-07-24 16:05:49,554 (10.1.1.100,224.12.12.12) 0 eth0 R3 Upstream state transitions to Pruned
pim.KernelEntry.UpstreamInterface.JoinPrune DEBUG 2018-07-24 16:05:49,576 (10.1.1.100,224.12.12.12) 0 eth0 R5 RPFnbrChanges_olistIsNotNull, AP -> AP
pim.KernelEntry.DownstreamInterface.JoinPrune DEBUG 2018-07-24 16:05:49,579 (10.1.1.100,224.12.12.12) 1 eth1 R4 receivedGraft, NI -> NI
pim.KernelEntry.DownstreamInterface.JoinPrune DEBUG 2018-07-24 16:05:49,584 (10.1.1.100,224.12.12.12) 1 eth1 R4 receivedPrune, NI -> PP
pim.KernelEntry.DownstreamInterface.JoinPrune DEBUG 2018-07-24 16:05:49,585 (10.1.1.100,224.12.12.12) 1 eth1 R4 Downstream state transitions to PrunePending
pim.KernelEntry.DownstreamInterface.JoinPrune DEBUG 2018-07-24 16:05:49,562 (10.1.1.100,224.12.12.12) 2 eth2 R1 receivedPrune, NI -> PP
pim.KernelEntry.DownstreamInterface.JoinPrune DEBUG 2018-07-24 16:05:49,563 (10.1.1.100,224.12.12.12) 2 eth2 R1 Downstream state transitions to PrunePending
pim.KernelEntry.DownstreamInterface.JoinPrune DEBUG 2018-07-24 16:05:49,605 (10.1.1.100,224.12.12.12) 1 eth1 R4 receivedPrune, PP -> PP
pim.KernelEntry.DownstreamInterface.JoinPrune DEBUG 2018-07-24 16:05:49,599 (10.1.1.100,224.12.12.12) 2 eth2 R1 PPTexpires, PP -> P
pim.KernelEntry.DownstreamInterface.JoinPrune DEBUG 2018-07-24 16:05:49,608 (10.1.1.100,224.12.12.12) 1 eth1 R2 receivedGraft, NI -> NI
pim.KernelEntry.DownstreamInterface.JoinPrune DEBUG 2018-07-24 16:05:49,603 (10.1.1.100,224.12.12.12) 2 eth2 R1 Downstream state transitions to Pruned
pim.KernelEntry.DownstreamInterface.JoinPrune DEBUG 2018-07-24 16:05:49,618 (10.1.1.100,224.12.12.12) 1 eth1 R2 receivedGraft, NI -> NI
pim.KernelEntry.UpstreamInterface.JoinPrune DEBUG 2018-07-24 16:05:49,620 (10.1.1.100,224.12.12.12) 0 eth0 R5 recvGraftAckFromRPFnbr, AP -> F
pim.KernelEntry.UpstreamInterface.JoinPrune DEBUG 2018-07-24 16:05:49,621 (10.1.1.100,224.12.12.12) 0 eth0 R5 Upstream state transitions to Forward
pim.KernelEntry.UpstreamInterface.JoinPrune DEBUG 2018-07-24 16:05:49,626 (10.1.1.100,224.12.12.12) 0 eth0 R7 olistIsNowNull, F -> P
pim.KernelEntry.UpstreamInterface.JoinPrune DEBUG 2018-07-24 16:05:49,628 (10.1.1.100,224.12.12.12) 0 eth0 R7 Upstream state transitions to Pruned
pim.KernelEntry.UpstreamInterface.JoinPrune DEBUG 2018-07-24 16:05:49,636 (10.1.1.100,224.12.12.12) 0 eth0 R6 RPFnbrChanges_olistIsNotNull, AP -> AP
pim.KernelEntry.DownstreamInterface.JoinPrune DEBUG 2018-07-24 16:05:49,641 (10.1.1.100,224.12.12.12) 1 eth1 R5 receivedPrune, NI -> PP
pim.KernelEntry.DownstreamInterface.JoinPrune DEBUG 2018-07-24 16:05:49,646 (10.1.1.100,224.12.12.12) 1 eth1 R5 Downstream state transitions to PrunePending
pim.KernelEntry.DownstreamInterface.JoinPrune DEBUG 2018-07-24 16:05:49,670 (10.1.1.100,224.12.12.12) 2 eth2 R2 receivedPrune, NI -> PP
pim.KernelEntry.DownstreamInterface.JoinPrune DEBUG 2018-07-24 16:05:49,670 (10.1.1.100,224.12.12.12) 2 eth2 R2 Downstream state transitions to PrunePending
pim.KernelEntry.DownstreamInterface.JoinPrune DEBUG 2018-07-24 16:05:49,683 (10.1.1.100,224.12.12.12) 1 eth1 R4 receivedGraft, PP -> NI
pim.KernelEntry.DownstreamInterface.JoinPrune DEBUG 2018-07-24 16:05:49,682 (10.1.1.100,224.12.12.12) 1 eth1 R5 PPTexpires, PP -> P
pim.KernelEntry.DownstreamInterface.JoinPrune DEBUG 2018-07-24 16:05:49,683 (10.1.1.100,224.12.12.12) 1 eth1 R5 Downstream state transitions to Pruned
pim.KernelEntry.UpstreamInterface.JoinPrune DEBUG 2018-07-24 16:05:49,685 (10.1.1.100,224.12.12.12) 0 eth0 R5 olistIsNowNull, F -> P
pim.KernelEntry.UpstreamInterface.JoinPrune DEBUG 2018-07-24 16:05:49,687 (10.1.1.100,224.12.12.12) 0 eth0 R5 Upstream state transitions to Pruned
pim.KernelEntry.DownstreamInterface.JoinPrune DEBUG 2018-07-24 16:05:49,686 (10.1.1.100,224.12.12.12) 1 eth1 R4 Downstream state transitions to NoInfo
pim.KernelEntry.UpstreamInterface.JoinPrune DEBUG 2018-07-24 16:05:49,694 (10.1.1.100,224.12.12.12) 0 eth0 R6 seePrune, AP -> AP
pim.KernelEntry.DownstreamInterface.JoinPrune DEBUG 2018-07-24 16:05:49,697 (10.1.1.100,224.12.12.12) 1 eth1 R4 receivedPrune, NI -> PP
pim.KernelEntry.DownstreamInterface.JoinPrune DEBUG 2018-07-24 16:05:49,698 (10.1.1.100,224.12.12.12) 1 eth1 R4 Downstream state transitions to PrunePending
pim.KernelEntry.DownstreamInterface.JoinPrune DEBUG 2018-07-24 16:05:49,717 (10.1.1.100,224.12.12.12) 2 eth2 R2 PPTexpires, PP -> P
pim.KernelEntry.DownstreamInterface.JoinPrune DEBUG 2018-07-24 16:05:49,718 (10.1.1.100,224.12.12.12) 2 eth2 R2 Downstream state transitions to Pruned
pim.KernelEntry.UpstreamInterface.JoinPrune DEBUG 2018-07-24 16:05:49,731 (10.1.1.100,224.12.12.12) 0 eth0 R2 olistIsNowNull, F -> P
pim.KernelEntry.UpstreamInterface.JoinPrune DEBUG 2018-07-24 16:05:49,728 (10.1.1.100,224.12.12.12) 0 eth0 R6 seePrune, AP -> AP
pim.KernelEntry.UpstreamInterface.JoinPrune DEBUG 2018-07-24 16:05:49,733 (10.1.1.100,224.12.12.12) 0 eth0 R2 Upstream state transitions to Pruned
pim.KernelEntry.UpstreamInterface.JoinPrune DEBUG 2018-07-24 16:05:49,741 (10.1.1.100,224.12.12.12) 0 eth0 R6 seePrune, AP -> AP
pim.KernelEntry.UpstreamInterface.JoinPrune DEBUG 2018-07-24 16:05:49,743 (10.1.1.100,224.12.12.12) 0 eth0 R6 recvGraftAckFromRPFnbr, AP -> F
pim.KernelEntry.UpstreamInterface.JoinPrune DEBUG 2018-07-24 16:05:49,745 (10.1.1.100,224.12.12.12) 0 eth0 R6 Upstream state transitions to Forward
pim.KernelEntry.DownstreamInterface.JoinPrune DEBUG 2018-07-24 16:05:49,744 (10.1.1.100,224.12.12.12) 1 eth1 R1 receivedPrune, NI -> PP
pim.KernelEntry.UpstreamInterface.JoinPrune DEBUG 2018-07-24 16:05:49,755 (10.1.1.100,224.12.12.12) 0 eth0 R5 seePrune, P -> P
pim.KernelEntry.UpstreamInterface.JoinPrune DEBUG 2018-07-24 16:05:49,762 (10.1.1.100,224.12.12.12) 0 eth0 R5 seePrune, P -> P
pim.KernelEntry.DownstreamInterface.JoinPrune DEBUG 2018-07-24 16:05:49,745 (10.1.1.100,224.12.12.12) 1 eth1 R1 Downstream state transitions to PrunePending
pim.KernelEntry.DownstreamInterface.JoinPrune DEBUG 2018-07-24 16:05:49,780 (10.1.1.100,224.12.12.12) 1 eth1 R1 PPTexpires, PP -> P
pim.KernelEntry.DownstreamInterface.JoinPrune DEBUG 2018-07-24 16:05:49,781 (10.1.1.100,224.12.12.12) 1 eth1 R1 Downstream state transitions to Pruned
pim.KernelEntry.UpstreamInterface.JoinPrune DEBUG 2018-07-24 16:05:49,962 (10.1.1.100,224.12.12.12) 0 eth0 R6 OTexpires, F -> F
pim.KernelEntry.DownstreamInterface.JoinPrune DEBUG 2018-07-24 16:05:49,977 (10.1.1.100,224.12.12.12) 1 eth1 R4 receivedJoin, PP -> NI
pim.KernelEntry.UpstreamInterface.JoinPrune DEBUG 2018-07-24 16:05:49,979 (10.1.1.100,224.12.12.12) 0 eth0 R5 seeJoinToRPFnbr, P -> P
pim.KernelEntry.DownstreamInterface.JoinPrune DEBUG 2018-07-24 16:05:49,986 (10.1.1.100,224.12.12.12) 1 eth1 R4 Downstream state transitions to NoInfo
^CException KeyboardInterrupt: KeyboardInterrupt() in <module 'threading' from '/usr/lib/python3.2/threading.py'> ignored
root@switch1:~# fg
tcpdump -i br0 -Q in -w /hosthome/Desktop/test_pim/pim/TestResults/Switch.pcap
^C1613 packets captured
2848 packets received by filter
100 packets dropped by kernel
root@switch1:~# exit
exit
Script done on Tue Jul 24 16:06:02 2018
ip addr add dev eth0 10.6.6.100/24
ip addr add dev eth0 10.8.8.100/24
ip link set dev eth0 up
#default route para obter conectividade internet
ip route add 0.0.0.0/0 via 10.6.6.5
ip route add 0.0.0.0/0 via 10.8.8.7
#apt-get update && apt-get --assume-yes install python3 python3-pip
......
......@@ -5,11 +5,11 @@ router1[0]=source
router1[1]=A
router1[2]=B
router1[3]=C
router1[4]=tap,192.168.2.1,192.168.2.2
router1[mem]=256
router2[0]=A
router2[1]=switchnetwork0
router2[2]=router2and7
router2[mem]=256
router3[0]=B
......@@ -21,14 +21,17 @@ router4[1]=switchnetwork2
router4[mem]=256
router5[0]=switchnetwork3
router5[1]=client0
router5[1]=router5and7
router5[mem]=256
router6[0]=switchnetwork4
router6[1]=client1
router6[mem]=256
router7[0]=router5and7
router7[1]=client0
router7[2]=router2and7
router7[mem]=256
#########################################
......@@ -39,7 +42,6 @@ switch1[1]=switchnetwork1
switch1[2]=switchnetwork2
switch1[3]=switchnetwork3
switch1[4]=switchnetwork4
switch1[5]=logserver
switch1[mem]=256
......@@ -55,8 +57,3 @@ client0[mem]=256
client1[0]=client1
client1[mem]=256
log_server[0]=logserver
log_server[mem]=256
......@@ -5,7 +5,8 @@ router4: router1
switch1: router2 router3 router4
router5: switch1
router6: switch1
router7: router5
log_server: switch1
client0: router5
client0: router7
client1: router6
ip addr add dev eth0 10.5.5.100/24
ip link set dev eth0 up
#default route para obter conectividade internet
ip route add 0.0.0.0/0 via 10.5.5.2
#apt-get update && apt-get --assume-yes install python3 python3-pip
......@@ -9,7 +9,7 @@ ip link set dev eth3 up
#NAT for private ip's
iptables -t nat -A POSTROUTING -s 0.0.0.0/0 -o eth4 -j MASQUERADE
#iptables -t nat -A POSTROUTING -s 0.0.0.0/0 -o eth4 -j MASQUERADE
# Zebra and OSPF
/etc/init.d/quagga restart
......
......@@ -12,7 +12,6 @@ router ospf
network 10.2.2.0/24 area 0
network 10.3.3.0/24 area 0
network 10.4.4.0/24 area 0
network 192.168.2.0/24 area 0
default-information originate always
!
log stdout
......@@ -5,7 +5,7 @@ cd MulticastRouting
python3 Run.py -stop
python3 Run.py -start
python3 Run.py -t R1 10.5.5.100
python3 Run.py -t R1 10.5.5.7
python3 Run.py -aiigmp eth0
python3 Run.py -aiigmp eth1
python3 Run.py -aiigmp eth2
......
......@@ -2,6 +2,8 @@ ip addr add dev eth0 10.2.2.2/24
ip link set dev eth0 up
ip addr add dev eth1 10.5.5.2/24
ip link set dev eth1 up
ip addr add dev eth2 10.9.9.2/24
ip link set dev eth2 up
#default route para obter conectividade internet
#ip route add 0.0.0.0/0 via 10.2.2.1
......
......@@ -10,5 +10,6 @@ password zebra
router ospf
network 10.2.2.0/24 area 0
network 10.5.5.0/24 area 0
network 10.9.9.0/24 area 0
!
log stdout
......@@ -5,9 +5,11 @@ cd MulticastRouting
python3 Run.py -stop
python3 Run.py -start
python3 Run.py -t R2 10.5.5.100
python3 Run.py -t R2 10.5.5.7
python3 Run.py -aiigmp eth0
python3 Run.py -aiigmp eth1
python3 Run.py -aiigmp eth2
python3 Run.py -ai eth0
python3 Run.py -ai eth1
python3 Run.py -ai eth2
python3 Run.py -v
......@@ -5,7 +5,7 @@ cd MulticastRouting
python3 Run.py -stop
python3 Run.py -start
python3 Run.py -t R3 10.5.5.100
python3 Run.py -t R3 10.5.5.7
python3 Run.py -aiigmp eth0
python3 Run.py -aiigmp eth1
python3 Run.py -ai eth0
......
......@@ -5,7 +5,7 @@ cd MulticastRouting
python3 Run.py -stop
python3 Run.py -start
python3 Run.py -t R4 10.5.5.100
python3 Run.py -t R4 10.5.5.7
python3 Run.py -aiigmp eth0
python3 Run.py -aiigmp eth1
python3 Run.py -ai eth0
......
......@@ -5,7 +5,7 @@ cd MulticastRouting
python3 Run.py -stop
python3 Run.py -start
python3 Run.py -t R5 10.5.5.100
python3 Run.py -t R5 10.5.5.7
python3 Run.py -aiigmp eth0
python3 Run.py -aiigmp eth1
python3 Run.py -ai eth0
......
......@@ -5,7 +5,7 @@ cd MulticastRouting
python3 Run.py -stop
python3 Run.py -start
python3 Run.py -t R6 10.5.5.100
python3 Run.py -t R6 10.5.5.7
python3 Run.py -aiigmp eth0
python3 Run.py -aiigmp eth1
python3 Run.py -ai eth0
......
ip addr add dev eth0 10.6.6.7/24
ip link set dev eth0 up
ip addr add dev eth1 10.8.8.7/24
ip link set dev eth1 up
ip addr add dev eth2 10.9.9.7/24
ip link set dev eth2 up
#default route para obter conectividade internet
#ip route add 0.0.0.0/0 via 10.5.5.2
# Zebra and OSPF
/etc/init.d/quagga restart
# wait for default route information from OSPF
while ! $(ip route | grep -q "default")
do
sleep 2
done
echo VTYSH_PAGER=more > /etc/environment
# This file tells the quagga package which daemons to start.
#
# Entries are in the format: <daemon>=(yes|no|priority)
# 0, "no" = disabled
# 1, "yes" = highest priority
# 2 .. 10 = lower priorities
# Read /usr/share/doc/quagga/README.Debian for details.
#
# Sample configurations for these daemons can be found in
# /usr/share/doc/quagga/examples/.
#
# ATTENTION:
#
# When activation a daemon at the first time, a config file, even if it is
# empty, has to be present *and* be owned by the user and group "quagga", else
# the daemon will not be started by /etc/init.d/quagga. The permissions should
# be u=rw,g=r,o=.
# When using "vtysh" such a config file is also needed. It should be owned by
# group "quaggavty" and set to ug=rw,o= though. Check /etc/pam.d/quagga, too.
#
# The watchquagga daemon is always started. Per default in monitoring-only but
# that can be changed via /etc/quagga/debian.conf.
#
zebra=yes
bgpd=no
ospfd=yes
ospf6d=no
ripd=no
ripngd=no
isisd=no
babeld=no
#
# If this option is set the /etc/init.d/quagga script automatically loads
# the config via "vtysh -b" when the servers are started.
# Check /etc/pam.d/quagga if you intend to use "vtysh"!
#
vtysh_enable=yes
zebra_options=" --daemon -A 127.0.0.1"
bgpd_options=" --daemon -A 127.0.0.1"
ospfd_options=" --daemon -A 127.0.0.1"
ospf6d_options=" --daemon -A ::1"
ripd_options=" --daemon -A 127.0.0.1"
ripngd_options=" --daemon -A ::1"
isisd_options=" --daemon -A 127.0.0.1"
babeld_options=" --daemon -A 127.0.0.1"
#
# Please note that watchquagga_options is an array and not a string so that
# quotes can be used.
#
# The list of daemons to watch is automatically generated by the init script
# from daemons.conf and appended to the watchquagga_options.
# Example:
# watchquagga_options=("-Adz" "-r" '/sbin/service %s restart' -s '/sbin/service %s start' -k '/sbin/service %s stop')
watchquagga_enable=yes
watchquagga_options=(--daemon)
! -*- ospf -*-
!
! OSPFd sample configuration file
!
!
hostname ospfd
password zebra
!enable password please-set-at-here
!
interface eth2
ip ospf cost 100
!
router ospf
network 10.6.6.0/24 area 0
network 10.8.8.0/24 area 0
network 10.9.9.0/24 area 0
!
log stdout
!
! Sample configuration file for vtysh.
!
!service integrated-vtysh-config
hostname quagga-router
username root nopassword
!
! -*- zebra -*-
!
! zebra sample configuration file
!
! $Id: zebra.conf.sample,v 1.1 2002/12/13 20:15:30 paul Exp $
!
hostname Router
password zebra
enable password zebra
!
! Interface's description.
!
!interface lo
! description test of desc.
!
!interface sit0
! multicast
!
! Static default route sample.
!
!ip route 0.0.0.0/0 203.181.89.241
!
!log file /var/log/quagga/zebra.log
rm -rf MulticastRouting/
cp -rf /hosthome/Desktop/pim/ MulticastRouting/
cd MulticastRouting
#pip-3.2 install --index-url=https://pypi.python.org/simple/ -r requirements.txt
python3 Run.py -stop
python3 Run.py -start
python3 Run.py -t R7 10.5.5.7
python3 Run.py -aiigmp eth0
python3 Run.py -aiigmp eth1
python3 Run.py -aiigmp eth2
python3 Run.py -ai eth0
python3 Run.py -ai eth1
python3 Run.py -ai eth2
python3 Run.py -v
......@@ -3,14 +3,12 @@ ip link set dev eth1 up
ip link set dev eth2 up
ip link set dev eth3 up
ip link set dev eth4 up
ip link set dev eth5 up
brctl addbr br0
brctl addif br0 eth0
brctl addif br0 eth1
brctl addif br0 eth2
brctl addif br0 eth3
brctl addif br0 eth4
brctl addif br0 eth5
ip link set dev br0 up
ip addr add dev br0 10.5.5.7/24
......
......@@ -95,7 +95,7 @@ class LogRecordSocketReceiver(socketserver.ThreadingTCPServer):
def main():
import sys
handler = TestHandler(sys.stdout)
formatter = logging.Formatter('%(name)-50s %(levelname)-8s %(tree)-35s %(vif)-2s %(interfacename)-5s %(routername)-2s %(message)s')
formatter = logging.Formatter('%(name)-50s %(levelname)-8s %(asctime)-25s %(tree)-35s %(vif)-2s %(interfacename)-5s %(routername)-2s %(message)s')
handler.setFormatter(formatter)
logging.getLogger('my_logger').addHandler(handler)
logging.getLogger('my_logger').addFilter(CustomFilter())
......@@ -104,7 +104,7 @@ def main():
t = threading.Thread(target=worker)
t.start()
tcpserver = LogRecordSocketReceiver(host='10.5.5.100')
tcpserver = LogRecordSocketReceiver(host='10.5.5.7')
print('About to start TCP server...')
tcpserver.serve_until_stopped()
......
......@@ -5,7 +5,7 @@ from abc import ABCMeta, abstractmethod
class CustomFilter(logging.Filter):
def filter(self, record):
return record.name in ("pim.KernelEntry.DownstreamInterface.JoinPrune", "pim.KernelEntry.UpstreamInterface.JoinPrune", "pim.KernelInterface") and \
record.routername in ["R1", "R2","R3","R4","R5","R6"]
record.routername in ["R1", "R2", "R3", "R4", "R5", "R6", "R7"]
class Test(object):
......@@ -37,14 +37,17 @@ class Test(object):
class Test1(Test):
def __init__(self):
expectedState = {"R1": {"eth0": "F", "eth1": "P", "eth2": "P", "eth3": "NI"}, # Only downstream interface connected to AssertWinner \
expectedState = {"R1": {"eth0": "Upstream state transitions to Forward", "eth1": "Downstream state transitions to Pruned",
"eth2": "Downstream state transitions to Pruned", "eth3": "Downstream state transitions to NoInfo"},
# Only downstream interface connected to AssertWinner \
# in NI state and upstream interface connected to source\
# in Forward state
"R2": {"eth0": "P"}, # Assert Loser upstream interface in pruned state
"R3": {"eth0": "P"}, # Assert Loser upstream interface in pruned state
"R4": {"eth0": "F", "eth1": "NI"}, # Assert Winner upstream interface in forward state
"R5": {"eth0": "F"}, # Downstream router interested (client0)
"R6": {"eth0": "F"}, # Downstream router interested (client0)
"R2": {"eth0": "Upstream state transitions to Pruned"}, # Assert Loser upstream interface in pruned state
"R3": {"eth0": "Upstream state transitions to Pruned"}, # Assert Loser upstream interface in pruned state
"R4": {"eth0": "Upstream state transitions to Forward", "eth1": "Downstream state transitions to NoInfo"}, # Assert Winner upstream interface in forward state
"R5": {"eth0": "Upstream state transitions to Forward"}, # Downstream router interested (client0)
"R6": {"eth0": "Upstream state transitions to Forward"}, # Downstream router interested (client1)
"R7": {"eth0": "Upstream state transitions to Forward"}, # Downstream router interested (client0)
}
success = {"R1": {"eth0": False, "eth1": False, "eth2": False, "eth3": False},
......@@ -53,6 +56,7 @@ class Test1(Test):
"R4": {"eth0": False, "eth1": False},
"R5": {"eth0": False},
"R6": {"eth0": False},
"R7": {"eth0": False},
}
super().__init__("Test1", expectedState, success)
......@@ -64,8 +68,8 @@ class Test1(Test):
class Test2(Test):
def __init__(self):
expectedState = {"R4": {"eth1": "PP"}, # Assert Winner upstream interface in PP because of Prune msg
"R6": {"eth0": "P"}, # Downstream router not interested
expectedState = {"R4": {"eth1": "Downstream state transitions to PrunePending"}, # Assert Winner upstream interface in PP because of Prune msg
"R6": {"eth0": "Upstream state transitions to Pruned"}, # client not interested causes Usptream interface to be Pruned
}
success = {"R4": {"eth1": False},
......@@ -80,7 +84,7 @@ class Test2(Test):
class Test3(Test):
def __init__(self):
expectedState = {"R4": {"eth1": "NI"}, # Assert Winner upstream interface in PP because of Join msg
expectedState = {"R4": {"eth1": "Downstream state transitions to NoInfo"}, # Assert Winner upstream interface in PP because of Join msg
}
success = {"R4": {"eth1": False},
......@@ -95,11 +99,11 @@ class Test3(Test):
class Test4(Test):
def __init__(self):
expectedState = {"R1": {"eth3": "P"}, # Only interface eth3 changes to Pruned state... eth1 is directly connected so it should stay in a Forward state
expectedState = {"R1": {"eth3": "Downstream state transitions to Pruned"}, # Only interface eth3 changes to Pruned state... eth1 is directly connected so it should stay in a Forward state
#"R2": {"eth0": "P"}, #R2 already in a Pruned state
#"R3": {"eth0": "P"}, #R3 already in a Pruned state
"R4": {"eth0": "P", "eth1": "P"}, # Assert Winner upstream interface in forward state
"R5": {"eth0": "P"}, # Downstream router interested (client0)
"R4": {"eth0": "Upstream state transitions to Pruned", "eth1": "Downstream state transitions to Pruned"}, # Assert Winner upstream interface in forward state
"R5": {"eth0": "Upstream state transitions to Pruned"}, # Downstream router interested (client0)
#"R6": {"eth0": "P"}, # R6 already in a Pruned state
}
......@@ -117,18 +121,18 @@ class Test4(Test):
class Test5(Test):
def __init__(self):
expectedState = {"R1": {"eth3": "NI"}, # R4 grafted this interface
"R4": {"eth0": "F", "eth1": "NI"}, # R5 grafted this interface
"R5": {"eth0": "F"}, # client0 interested
expectedState = {"R1": {"eth3": "Downstream state transitions to NoInfo"}, # R4 grafted this interface
"R4": {"eth0": "Upstream state transitions to Forward", "eth1": "Downstream state transitions to NoInfo"}, # R5 grafted this interface
"R6": {"eth0": "Upstream state transitions to Forward"}, # client0 interested
}
success = {"R1": {"eth3": False},
"R4": {"eth0": False, "eth1": False},
"R5": {"eth0": False},
"R6": {"eth0": False},
}
super().__init__("Test5", expectedState, success)
def print_test(self):
print("Test5: client0 interested in receiving traffic")
print("Test5: client1 interested in receiving traffic")
print("Graft tree")
rm /hosthome/Desktop/join_prune_graft_capture.pcap
tcpdump -i br0 -Q in -w /hosthome/Desktop/join_prune_graft_capture.pcap
topology.png

65 KB | W: | H:

topology.png

72.7 KB | W: | H:

topology.png
topology.png
topology.png
topology.png
  • 2-up
  • Swipe
  • Onion skin
<mxfile userAgent="Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.186 Safari/537.36" version="8.3.2" editor="www.draw.io" type="device"><diagram name="Page-1" id="11f5d53f-c264-6b31-e1a8-d7fc60da157b">7V1bb6M4FP41eWyEba6P03Y6u9KsNNKstLtPFU3chB2Cs+A07fz6NWATfMmUJphcG2kaDtCE833n6gMzQneL1y95vJz/QaY4HUFn+jpC9yMIozBk/5aCt1oAAuDWklmeTLlsI/ie/MRc6HDpKpniQjqQEpLSZCkLJyTL8IRKsjjPyVo+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khpOPo69rb6ss2TcN7Pg06rc+5ZNNamcc7hEs9zG8RWjY8dAqZnDOnTaMdULewQ0WQjMTwhxNbyEnD09sLu1UKJjXtKtnTjQXvG5CpNI1/vmlgzJmAsArcEPvMzvI4cxR4AasZffjH9birT+0FI7650R0hLQ/xLwMtVli1MeNmzKNg1POkiPbWUAJPzxrNCzFMQEzeTDBHagF5dA2ccsNcRzua5rpwDQNFtGmLWBwBjrtztkY8Gcsvx45zprayLuPpQoK1nuwHzU1R99jpCeiNHGa0OBhyfBIYp3Su9O4AG5bEiBPV4a43e0JjB7hxvvQtBTFmnNjy70Fq8hVsz2itiv0BMyZAia4ixzc3/FlTta/2XTOjz/w==</diagram></mxfile>
\ No newline at end of file
<mxfile userAgent="Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/67.0.3396.99 Safari/537.36" version="8.9.7" editor="www.draw.io" type="device"><diagram name="Page-1" id="11f5d53f-c264-6b31-e1a8-d7fc60da157b">7V1Lc6M4EP41PsaFHryOk2Qye5itmqrZqt05TRGb2Oxg5AV5nMyvXwESRg9PcEA4foRDTIMw9Pep1d1q5Am6Wz1/yqP18k8yj9MJdObPE3Q/gRA4GLJ/peSFS3zk1ZJFnsy5bCf4mvyKRVMu3STzuJBOpISkNFnLwhnJsnhGJVmU52Qrn/ZEUvlb19Ei1gRfZ1GqS/9O5nRZSwPo7eR/xMliKb4ZeGF95DGa/VjkZJPx75tA9FT91YdXkbgWf9BiGc3JtiVCHyfoLieE1p9Wz3dxWipXqK1u97DnaHPfeZzRLg0C3qKgL+LZ4zlTBd/NSMb+3VYPFJdNHLa3pKuUfQTsY/yc0H9K8dTle9+qvTDgu1/iPFnFNM55W3Zb+UurRbn7rX1MbVDQKKcfSkh3t1PJHpI0bRrOlTOYpHX835jSF06yaEMJE5GcLsmCZFH6mZA1f5qC5uRHfEdSkleqQAg57K85IqjAULp9IhnllwSY77daPlR/TK4DIjRONvmMq1ywhz3XIuan+W4tK+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7gQ+qQUI3fANjvk7qcphdxY/DzPOOTeO4dzJXfniKZZbnUUcvdcDK/xeCfSYirn9qsxPT1eUZrXdni5HzqGx4v0RAOzYCHb3qEFayadmx8i0yeh7VkwpAcHe+q2TmsW2v99pV0/xJCMmHiJc4yJGNS5zk4aTS4br1B+/QyJAHh4wNju7ofxqmOtnx9EH/8H</diagram></mxfile>
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment