I’ve read that IP packets can sometimes get lost in transmission and that TCP often requests retransmission of lost data.  How often are packets lost permanently?  What are the requirements for retransmission?  Are lost packets a security risk?