When the NMS obtains interface traffic statistics through the MIB tables iftable and ifxtable, the time for querying interface traffic statistics in real time is long. When the device has a large number of interfaces, the query efficiency of the NMS is low. To resolve this issue, switches can be configured to periodically collect traffic statistics on interfaces. In this case, the NMS can directly obtain traffic statistics collected on interfaces, improving the query efficiency.