About replay attack definition
Replay attack is a form of network attack in which the attacker records messages and replays them later. Generally attacker uses them to get authenticated during one way or two way authentication. 
Random nonces are used to prevent them instead of timestamp as the latter requires clock synchronization which is tough in practice.