Im having a circuit connecting RouterA to Router B. This circuit is problematic thus the provider gave a hard loop somewhere near to Router B facing towards Router A.
I am able to see the loop in Router A.
My question is, when I ping my own interface ip in Router A Serial interface, would the ICMP packet goes through the providers line till where the loop was given and comeback? Would the icmp packet leave the router even when pinging its own interface ip address?
Yes. The ICMP packet will leave the interface, travel over the link till it gets to the loop, and will then return to you.
It is one of the basic behaviors of Cisco IOS that when you ping your own interface address on a point to point serial link, that the router actually sends the ICMP out on the link. The ICMP should arrive at the other end of the point to point serial and be forwarded back. (the ping response also travels over the point to point serial link). It is an interesting test and I suggest that you ping the neighbor on the point to point serial link and then ping your own interface address. The response times for ping to your own address should be double the response time to ping the neighbor.