This tutorial explains how IPsec performs protection against replay attacks. The general idea of a replay attack has been explained by us in an earlier movie; this movie focuses on IPsec. It shows how IPsec uses sequence numbers and a window mechanism to detect such attacks. It also touches the difference between the IPsec window mechanism and that of TCP.