Patent ID: 8799514

Claim:
A method comprising: allocating, by a network device, a first port range to a user device, the first port range being associated with a first Internet Protocol (IP) address; establishing, by the network device and after allocating the first port range, sessions by using first ports of the first port range; measuring, by the network device, a period of time after allocating the first port range; determining, by the network device, that the measured period of time is equal to a particular period of time; selecting, by the network device, a second port range based on determining that the measured period of time is equal to the particular period of time; allocating, by the network device, the second port range to the user device; and migrating, by the network device and after allocating the second port range, at least one of the sessions from the first ports of the first port range to second ports of the second port range.