摘要 |
<p>The present disclosure discloses a method for traffic counting, in which an address space for storing the traffic data of a user is allocated in a wireless network card. The method includes the following steps of: within a preset counting period, counting uplink traffic and downlink traffic after the wireless network card accesses the network, and updating the traffic data of the current online user stored in the address space of the wireless network card. The present disclosure also provides a method for automatically calculating a cost of surfing a network, including the following steps of: monitoring updated charging standards in real time or periodically; within a preset counting period, counting uplink traffic and downlink traffic and updating the traffic data corresponding to the current user; and within a preset charging period, calculating the current cost of surfing a network of the current day or the current month according to a charging standard for surfing the network and the traffic data of the current user. Accordingly, the present disclosure further provides a device for traffic counting and a device for automatically calculating a cost of surfing a network.</p> |