COMPLETE first apply the policies using just the OR and AND…
Question Answered step-by-step COMPLETE first apply the policies using just the OR and AND… COMPLETE first apply the policies using just the OR and AND operators to create a single policy expression (that also occupies a single policy chain spot): [edit protocols bgp group Ext-AS65010] lab@Merlot# show type external; export ( Muscat-routes || Chablis-routes && Check-for-Community ); peer-as 65010; neighbor 10.100.10.2; If we assume that our thought process is correct, then the 192.168.2.64 /28 route from the Muscat router should be advertised to Cabernet by Merlot. Because the AND operator has precedence over the OR operator, the Chablis-routes and Check-for-Community policies are evaluated together first. The route doesn’t match the Chablis-routes policy and returns a false result. This guarantees the result of the expression itself, so the action of reject from that policy is applied to the route and it is not advertised to Cabernet: user@Merlot> show route advertising-protocol bgp 10.100.10.2 192.168.2.64/28 user@Merlot> This is clearly not the result we intended, so it appears that the group operator has some usefulness after all! Let’s alter the policy expression on Merlot: [edit protocols bgp group Ext-AS65010] lab@Merlot# show type external; export (( Muscat-routes || Chablis-routes ) && Check-for-Community ); peer-as 65010; neighbor 10.100.10.2; The group operator now causes Merlot to evaluate the Muscat-routes and Chablis-routes policies together before evaluating the Check-for-Community policy. Using the same 192.168.2.64 /28 route, Merlot evaluates the Muscat-routes policy and gets a true result. This guarantees a true result for the first portion of the expression, so the Chablis-routes policy is skipped and Merlot evaluates the Check-for-Community policy. This policy also returns a true result based on the find-routes term, because the route does indeed have the community attached. The Check-for-Community policy guaranteed the result of the expression, so its action of accept is applied to the route and it is advertised to the Cabernet router: user@Merlot> show route advertising-protocol bgp 10.100.10.2 192.168.2.64/28 inet.0: 30 destinations, 32 routes (30 active, 0 holddown, 0 hidden) Prefix Nexthop MED Lclpref AS path 192.168.2.64/28 SelfImage transcription textProblem #1 (Algorithmic Complexity) (10 pts) 1. (4 pts) AlgorithmicComplexity a. What is the asymptotic complexity (Big-O) of thefunction 75 + 400n + 7 ? O( b. What is the asymptotic… Show more… Show moreImage transcription textProblem 4: Algorithm Complexity (7 points) (1) [3 points] State thedefinition of the fact that f(n) is O(g(n)), where f(n) and g(n) arefunctions from the set of positive integers to the set … Show more… Show more Computer Science Engineering & Technology Networking COMPLETERE 04 Share QuestionEmailCopy link Comments (0)


