Wisdom of XOR is if A and B totally match, result of A XOR B will be 0
otherwise (if the result have value other than 0) they (A , B) don't totally match.
Example:
A=2, B=2, A XOR B = 0, the result (0) means A and B match perfectly in binary.
A=3, B=4, A XOR B = 7, the result (7) means A and B doesn't match perfectly in binary.
XOR operation is used to:
1. Match 2 IP addresses
2. Match between an IP address and an access-list
otherwise (if the result have value other than 0) they (A , B) don't totally match.
Example:
A=2, B=2, A XOR B = 0, the result (0) means A and B match perfectly in binary.
A=3, B=4, A XOR B = 7, the result (7) means A and B doesn't match perfectly in binary.
XOR operation is used to:
1. Match 2 IP addresses
2. Match between an IP address and an access-list
No comments:
Post a Comment