A detecting apparatus, comprising: a receiving unit, configured to receive, from a control plane entity, air interface connection information of a user equipment UE, and receive, from a data plane entity, service information of the UE, wherein the air interface connection information comprises time points at which the UE establishes and releases an air interface connection, the service information comprises time points at which the UE starts and stops transmitting data of a service, and the service comprises a to-be-detected service, wherein the to-be-detected service refers to a service for which statistics about air interface resource consumption needs to be collected, wherein the service information further includes traffic information generated between the time points at which the UE starts and stops transmitting the data of the service; and a determining unit, configured to determine a target air interface connection set according to the air interface connection information and the service information, and determine air interface resource consumption information of the to-be-detected service according to the target air interface connection set, wherein the target air interface connection set comprises one or more target air interface connections, and the target air interface connection is an air interface connection transmitting data of the to-be-detected service, wherein the determining unit is further configured to determine, according to the service information, traffic generated by the to-be-detected service; and determine, according to the traffic generated by the to-be-detected service and the air interface resource consumption information of the to-be-detected service, air interface duration consumed by unit traffic of the to-be-detected service. a receiving unit, configured to receive, from a control plane entity, air interface connection information of a user equipment UE, and receive, from a data plane entity, service information of the UE, wherein the air interface connection information comprises time points at which the UE establishes and releases an air interface connection, the service information comprises time points at which the UE starts and stops transmitting data of a service, and the service comprises a to-be-detected service, wherein the to-be-detected service refers to a service for which statistics about air interface resource consumption needs to be collected, wherein the service information further includes traffic information generated between the time points at which the UE starts and stops transmitting the data of the service; and a determining unit, configured to determine a target air interface connection set according to the air interface connection information and the service information, and determine air interface resource consumption information of the to-be-detected service according to the target air interface connection set, wherein the target air interface connection set comprises one or more target air interface connections, and the target air interface connection is an air interface connection transmitting data of the to-be-detected service, wherein the determining unit is further configured to determine, according to the service information, traffic generated by the to-be-detected service; and determine, according to the traffic generated by the to-be-detected service and the air interface resource consumption information of the to-be-detected service, air interface duration consumed by unit traffic of the to-be-detected service.