So say you are a user behind a NAT/router on an internal network. You begin sending UDP data to an internet-facing server. The packet hits your router, it inserts an entry to allow returning packets from that server on a specific port to be forwarded to your local machine when received.
However UDP is connectionless. How does the router know when to remove this rule when the client no longer wishes to send or receive data with this server?