A method, system and computer program product for generating variable price billing whereby a customer may balance its data traffic in response to such billing. A subsystem in an edge gateway may extract the packet header from a copy of a received packet of data associated with a session between a customer and a server and generate a key based on the extracted packet header. The key may be used to index into a table that may store pointers to particular statistics records associated with particular sessions. Once the subsystem identifies the statistics record associated with the current session, the subsystem may execute a per packet statistics update for the statistics record associated with the session.; A per packet statistics update may include one or more of the following: time stamping arrival of the packet, updating packet count, updating byte count, determining transfer rate, determining distance packet traveled.
A method for generating variable price billing comprising the steps of:
receiving a packet of data associated with a session;
extracting a packet header from said received packet of data;
generating a key based on said extracted packet header to identify a statistics record associated with said session; and
executing a per packet statistics update for said statistics record associated with said session.