Patent ID: 8490149

Claim:
A method comprising: updating, by a device, at least one old policy to a new policy; obtaining, by the device, a plurality of data packets transmitted between endpoints of an ongoing communication session; determining, by the device, whether the updating occurs during a first communication session, of the ongoing communication session, the first communication session including a plurality of data packets and a transmission a first block of data packets, of the plurality of data packets, between the endpoints before the updating; determining, by the device and based on determining that the updating occurs during the first communication session, whether the updating occurs after beginning the transmission of the first block of data packets and before ending the transmission of the first block of data packets; applying, by the device and based on determining that the updating occurs after beginning the transmission of the first block of data packets and before ending the transmission of the first block of data packets, the at least one old policy to the entire first block of data packets without applying the new policy; applying, by the device and based on determining that the updating occurs after beginning the transmission of the first block of data packets and before ending the transmission of the first block of data packets, the new policy and the at least one old policy to a second block of data packets, of the plurality of data packets, the at least one old policy being applied to the entire second block of data packets and the new policy being applied to the entire second block of data packets; and applying, by the device, the new policy and not the at least one old policy to a third block of data packets, of a plurality of data packets, included in a second communication session, of the ongoing communication session, the second communication session including a transmission of the third block of data packets between the endpoints after the updating, the second communication session being different than the first communication session and the second communication session beginning after the first communication session ends.