Reading: https://mulloverthing.com/how-does-ssl-protect-against-replay-attack/ it says:
The SSL/TLS channel itself is protected against replay attacks using the MAC (Message Authentication Code), computed using the MAC secret and the sequence number. (The MAC mechanism is what ensures the TLS communication integrity).
Which raises 2 questions for me. Let's say I listened to SSL encrypted message over TCP:
Why I can't create the same copy of the message with the same old sequence number? Will TCP throw that package?
What if UDP is being sent and not TCP, will it still be thrown away?