Network data reporting method, device, electronic device and non-volatile storage medium
By receiving commands from the network management system, determining the sampling method and collecting data from terminal, user and network elements, the problem of low efficiency in traditional network data acquisition and reporting is solved, and centralized data acquisition and unified reporting are realized.
Patent Information
- Application Number
- CN202211021611.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-08-24
- Publication Date
- 2024-12-27
- Estimated Expiration
- 2042-08-24
AI Technical Summary
In traditional telecommunications networks, network data acquisition and reporting efficiency is not high, and multiple different devices need to be cumbersome configuration, resulting in a single and inflexible data acquisition form.
By receiving the target processing commands sent by the network management system, the sampling methods of terminal units, user units and network element units are determined, including periodic sampling, status change sampling and response request sampling, and the traffic and status data of terminals, users and network elements are collected respectively. , and encapsulate it into a data format supported by the network management system to report.
Centralized network data acquisition and unified reporting are realized, the efficiency of data acquisition and reporting is improved, the problem of cumbersome configuration of multiple devices is avoided, and the data acquisition process is simplified.
Smart Images

Figure CN115276942B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of network communication technology, and in particular to a network data reporting method, device, electronic device and non-volatile storage medium. Background Art
[0002] With the continuous development of network communication technology, especially the continuous deployment of high-speed downlink packet access technology and high-speed access products, the data generated by users and user terminal devices has increased rapidly. In traditional telecommunications networks, the network management system needs to obtain the traffic information or status information of users and user terminals, and often needs to collect and obtain data through different devices such as optical network units (ONU), home customer premises equipment (homeCPE), and broadband access servers (BRAS). The data sources are distributed in different network nodes. The network management needs to maintain several communication interfaces. The configuration of data collection is complex and not flexible enough. When collecting and reporting network data, it is often necessary to perform cumbersome configuration on multiple different devices, resulting in low efficiency of data collection and reporting, and a single form of data collection.
[0003] To address the above-mentioned problems, no effective solution has been proposed yet. Summary of the invention
[0004] The embodiments of the present application provide a network data reporting method, device, electronic device and non-volatile storage medium to at least solve the technical problem of low data collection and reporting efficiency caused by the need to perform cumbersome configuration of multiple different devices when currently collecting and reporting network data.
[0005] According to one aspect of an embodiment of the present application, a network data reporting method is provided, comprising: receiving a target processing command sent by a network management system, wherein the target processing command comprises at least one of the following: a periodic sampling instruction, a status query instruction; according to the target processing command, determining a first sampling mode, a second sampling mode and a third sampling mode respectively, wherein the first sampling mode is a target sampling mode corresponding to a terminal unit, the second sampling mode is a target sampling mode corresponding to a user unit, the third sampling mode is a target sampling mode corresponding to a network element unit, one network element unit corresponds to at least one user unit, and each user unit corresponds to at least one terminal unit, and the target sampling modes comprise: a periodic sampling mode, a status change sampling mode, and a response request sampling mode; sampling the terminal unit, the user unit and the network element unit respectively according to the first sampling mode, the second sampling mode and the third sampling mode to obtain target sampling data; reporting the target sampling data to the network management system for analysis.
[0006] Optionally, the target sampling data includes terminal sampling data, user sampling data, and network element sampling data. The terminal unit, user unit and network element unit are sampled according to a first sampling method, a second sampling method and a third sampling method, respectively, to obtain the target sampling data, including: sampling the terminal unit according to the first sampling method to obtain terminal sampling data, wherein the terminal sampling data includes: terminal status data and terminal flow data; sampling the user unit according to the second sampling method to obtain user sampling data, wherein the user sampling data includes: user status data and user flow data; sampling the network element unit according to the third sampling method to obtain network element sampling data, wherein the network element sampling data includes: network element status data.
[0007] Optionally, the terminal unit is sampled according to a first sampling method to obtain terminal sampling data, including: when the first sampling method corresponding to the terminal unit includes a periodic sampling method, the terminal flow data of the terminal unit is obtained according to the sampling period in the sampling period setting instruction, wherein the terminal flow data includes: the number of uplink and downlink messages within the sampling period, the number of uplink and downlink message bytes within the sampling period, the uplink and downlink data throughput rate, and the bit rate; when the first sampling method corresponding to the terminal unit includes a state change sampling method, the terminal status data of the terminal device is monitored, and the terminal status data is obtained when the terminal status data changes, wherein the terminal status data includes: the user account, physical address, network protocol address, and offline status corresponding to the terminal unit; when the first sampling method corresponding to the terminal unit includes a response request sampling method, the terminal status data is obtained at the moment of receiving the status query instruction.
[0008] Optionally, sampling the user unit according to the second sampling method to obtain user sampling data includes: when the second sampling method corresponding to the user unit includes a periodic sampling method, obtaining user traffic data of the user unit according to the sampling period in the periodic sampling instruction, wherein the user traffic data includes: the number of uplink and downlink messages within the sampling period, the number of uplink and downlink message bytes within the sampling period, the uplink and downlink data throughput rate, and the bit rate; when the second sampling method corresponding to the user unit includes a state change sampling method, monitoring the user state data of the user device, and obtaining the user state data when the user state data changes, wherein the user state data includes: user account, error code of the first dialing error, error code of the latest dialing error, state information of the user unit wide area network side, and state information of the user unit local area network side; when the second sampling method corresponding to the user unit includes a response request sampling method, obtaining the user state data at the moment of receiving the state query instruction.
[0009] Optionally, the network element unit is sampled according to a third sampling method to obtain network element sampling data, including: when the third sampling method corresponding to the network element unit includes a state change sampling method, the network element status data of the network element device is monitored, and the network element status data is obtained when the network element status data changes, wherein the network element status data includes: the maximum number of users supported by the network element unit, the number of registered users, the number of online users, the number of offline users, and the number of online terminals; when the third sampling method corresponding to the network element unit includes a response request sampling method, the network element status data is obtained at the moment of receiving the status query instruction.
[0010] Optionally, the target sampling data includes terminal sampling data, user sampling data, and network element sampling data. The terminal sampling data includes: terminal status data and terminal flow data. The user sampling data includes: user status data and user flow data. The network element sampling data includes: network element status data. Reporting the target sampling data to the network management system for analysis includes: encapsulating the status data and flow data in the target sampling information pair into target format data packets, respectively, and uploading them to the network management system respectively, wherein the target format is a data format supported by the network management system, the status data includes: terminal status data, user status data and network element status data, and the flow data includes: terminal flow data and user flow data.
[0011] According to another aspect of the embodiment of the present application, a network data reporting system is also provided, including: an interface module, a dynamic host configuration protocol module, a point-to-point protocol module, an instruction processing module, a data reporting module, a terminal collection module, a user collection module and a network element collection module, wherein the interface module is used to communicate with the network management system, process and respond to network management side requests; the instruction processing module is used to send the configuration command sent by the network management system received from the interface module to the dynamic host configuration protocol module and the point-to-point protocol module, and send the collection command to the terminal collection module, the user collection module and the network element collection module; the data reporting module is used to seal the sampled data obtained by the terminal collection module, the user collection module and the network element collection module The data packets are packed into a target format and reported to the network management system through the interface module, wherein the target format is a data format supported by the network management system; a terminal acquisition module is used to collect terminal sampling data of the terminal unit, wherein the terminal sampling data includes: terminal status data and terminal flow data; a user acquisition module is used to collect user sampling data of the user unit, wherein the user sampling data includes: user status data and user flow data; a network element acquisition module is used to collect network element sampling data of the network element unit, wherein the network element sampling data includes: network element status data; a dynamic host configuration protocol module is used to allocate the Internet protocol address and gateway of the terminal unit, obtain the device information and physical address of the terminal unit, and synchronize them to the terminal acquisition module;
[0012] The point-to-point protocol module is used to implement dial-up Internet access for the user unit, obtain the wide area network side link information and Internet protocol address information of the user unit, and synchronize them to the user acquisition module, wherein the wide area network side link information includes at least one of the following: identity authentication information, encryption information.
[0013] Optionally, the terminal collection module includes: a terminal coroutine node, a terminal table, and a message node, wherein the terminal table is used to record terminal flow data and terminal status data; the message node is used to count the terminal flow data and update it to the terminal table; the terminal coroutine node is used to receive the collection command sent by the instruction processing module, and according to the target sampling method corresponding to the collection command, obtain the terminal flow data and / or terminal status data in the terminal table and send it to the data reporting module, wherein the target sampling method includes: periodic sampling method, state change sampling method, and response request sampling method.
[0014] Optionally, the user collection module includes: a user coroutine node, a user table, and a point-to-point protocol node, wherein the user table is used to record user traffic data and user status data; the point-to-point protocol node is used to count user traffic data and update it to the user table; the user coroutine node is used to receive the collection command sent by the instruction processing module, and according to the target sampling method corresponding to the collection command, obtain the user traffic data and / or user status data in the user table and send it to the data reporting module.
[0015] Optionally, the network element acquisition module includes: a network element coroutine node and a network element table, wherein the network element table is used to record network element status data, and the network element status data is used to characterize the offline status of the terminal unit and the user unit corresponding to the network element unit; the network element coroutine node is used to receive the acquisition command sent by the instruction processing module, and according to the target sampling method corresponding to the acquisition command, obtain the network element status data in the network element table and send it to the data reporting module.
[0016] According to another aspect of the embodiment of the present application, a network data reporting device is also provided, including: a command receiving module, used to receive a target processing command sent by a network management system, wherein the target processing command includes at least one of the following: a periodic sampling instruction, a status query instruction; a mode determination module, used to determine a first sampling mode, a second sampling mode and a third sampling mode respectively according to the target processing command, wherein the first sampling mode is the target sampling mode corresponding to the terminal unit, the second sampling mode is the target sampling mode corresponding to the user unit, and the third sampling mode is the target sampling mode corresponding to the network element unit. One network element unit corresponds to at least one user unit, and each user unit corresponds to at least one terminal unit. The target sampling modes include: a periodic sampling mode, a state change sampling mode, and a response request sampling mode; a data sampling module, used to sample the terminal unit, the user unit and the network element unit according to the first sampling mode, the second sampling mode and the third sampling mode respectively to obtain target sampling data; a data reporting module, used to report the target sampling data to the network management system for analysis.
[0017] According to another aspect of the embodiments of the present application, an electronic device is provided. The electronic device includes a processor, and the processor is used to run a program, wherein the network data reporting method is executed when the program is run.
[0018] According to another aspect of the embodiments of the present application, a non-volatile storage medium is provided, the non-volatile storage medium including a stored program, wherein when the program is running, the device where the non-volatile storage medium is located is controlled to execute the network data reporting method.
[0019] In an embodiment of the present application, a target processing command sent by a network management system is received, wherein the target processing command includes at least one of the following: a periodic sampling instruction and a state query instruction; according to the target processing command, a first sampling mode, a second sampling mode and a third sampling mode are determined respectively, wherein the first sampling mode is a target sampling mode corresponding to a terminal unit, the second sampling mode is a target sampling mode corresponding to a user unit, and the third sampling mode is a target sampling mode corresponding to a network element unit. One network element unit corresponds to at least one user unit, and each user unit corresponds to at least one terminal unit. The target sampling modes include: a periodic sampling mode, a state change sampling mode, and a response request sampling mode; the terminal unit, the user unit and the network element unit are sampled respectively according to the first sampling mode, the second sampling mode and the third sampling mode to obtain target sampling data; the target sampling data is reported to the network management system for analysis, and the relevant network statistical information of the terminal, the user and the network element is reported to the network management system through three modes of periodic reporting, state change reporting and request reporting, so as to achieve the purpose of centralized network data collection and unified reporting, thereby solving the technical problem of low efficiency of data collection and reporting caused by the cumbersome configuration of multiple different devices when collecting and reporting network data at present. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:
[0021] Figure 1 It is a schematic diagram of a method flow for reporting network data provided according to an embodiment of the present application;
[0022] Figure 2 It is a structural diagram of a data acquisition network framework provided according to an embodiment of the present application;
[0023] Figure 3 It is a schematic diagram of a framework of a network data reporting system provided according to an embodiment of the present invention;
[0024] Figure 4 is a structural schematic diagram of a terminal acquisition module provided according to an embodiment of the present invention;
[0025] Figure 5 is a structural schematic diagram of a user acquisition module provided according to an embodiment of the present invention;
[0026] Figure 6 is a structural diagram of a network element collection module provided according to an embodiment of the present invention;
[0027] Figure 7It is a hardware structure block diagram of a computer terminal (or electronic device) for implementing a method for reporting network data according to an embodiment of the present application;
[0028] Figure 8 It is a structural diagram of a network data reporting device provided according to an embodiment of the present invention. DETAILED DESCRIPTION
[0029] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present application.
[0030] In order to facilitate those skilled in the art to better understand the embodiments of the present application, some technical terms or nouns involved in the embodiments of the present application are explained as follows:
[0031] Virtual customer premises equipment (vCPE): Also known as cloud CPE, a method of providing virtual managed services such as routing, security, SD-WAN, etc. to branch offices or edge networks through software rather than hardware. vCPE can utilize software-based virtual functions to achieve all hardware-based operations.
[0032] Optical Network Unit (ONU): ONU is divided into active optical network unit and passive optical network unit. Generally, the equipment equipped with optical receiver, upstream optical transmitter, multiple bridge amplifier network monitoring is called optical node. PON uses a single optical fiber to connect to OLT, and then OLT connects to ONU. ONU provides data, IPTV (interactive network television), voice (using IAD, Integrated Access Device) and other services.
[0033] Customer premises equipment (CPE): refers to the router or Wi-Fi device that can connect the network service provided by the communication operator to the wired one, and can support multiple terminal devices, i.e. mobile phones. Since the construction of regional networks includes indoor and outdoor scenes such as homes, corporate offices or industrial plants, it is usually called customer terminal equipment. In a broad sense, it includes mobile phones, routers, bridges, modems or access points / sharers and other network communication devices.
[0034] Broadband Remote Access Server (BRAS) is a new access gateway for broadband network applications. It is located at the edge layer of the backbone network and can complete data access to the user's bandwidth IP / ATM network (access means are mainly based on xDSL / Cable Modem / High-speed Ethernet technology (LAN) / Wireless Broadband Data Access (WLAN) / FTTx, etc.), realize broadband Internet access for residents in commercial buildings and communities, IP VPN services based on IPSec (IPSecurityProtocol), build internal corporate Intranet, support ISP wholesale services to users, and other applications.
[0035] Dynamic Host Configuration Protocol (DHCP): It is a network protocol for a local area network. It refers to a range of IP addresses controlled by a server. When a client logs in to the server, it can automatically obtain the IP address and subnet mask assigned by the server. By default, DHCP, as a service component of Windows Server, will not be automatically installed by the system. The administrator needs to manually install it and perform necessary configuration.
[0036] Point-to-Point Protocol Over Ethernet (PPPoE): It is a network tunneling protocol that encapsulates the Point-to-Point Protocol (PPP) in the Ethernet framework. Since the PPP protocol is integrated into the protocol, it implements functions such as identity authentication, encryption, and compression that traditional Ethernet cannot provide. It can also be used in cable modems and digital subscriber lines (DSL) and other protocol systems that provide access services to users using the Ethernet protocol.
[0037] Hyper Text Transfer Protocol (HTTP) is a simple request-response protocol that usually runs on top of TCP. It specifies what messages a client may send to a server and what responses it may get. The headers of request and response messages are given in ASCII form; the message content has a MIME-like format.
[0038] Network Address Translation (NAT): When some hosts within a private network have been assigned local IP addresses (that is, private addresses used only within this private network), but want to communicate with hosts on the Internet (without encryption), the NAT method can be used.
[0039] VPP Agent: It is a control plane / management plane agent implemented for VPP based on cloud-native virtual network elements, GO language or JAVA language. The agent is built on the cloud-native infrastructure platform (CN-Infra). VPP Agent can be used as an agent for controlling or managing virtual network elements developed based on VPP.
[0040] GRPC: is a high-performance, general-purpose open source RPC framework developed based on the underlying HTTP / 2 protocol standard and the protocol layer Protobuf serialization protocol, and supports a wide range of development languages.
[0041] VPP (Vector Packet Processing): is a commercial code developed by Cisco in 2002. VPP runs in user space and supports multiple packet receiving methods. The most commonly used one is DPDK. It has two main functions: an extensible framework and mature switching / routing functions.
[0042] Media Access Control Address (MAC Address): Also known as LAN Address, MAC Address, Ethernet Address or Physical Address, it is an address used to identify the location of a network device. In the OSI model, the third layer, the network layer, is responsible for the IP address, and the second layer, the data link layer, is responsible for the MAC address. The MAC address is used to uniquely identify a network card in the network. If a device has one or more network cards, each network card needs and will have a unique MAC address.
[0043] Internet Protocol Address (IP Address): Also translated as Internet Protocol address. IP address is a unified address format provided by the IP protocol. It assigns a logical address to each network and each host on the Internet to shield the difference in physical addresses.
[0044] pps (Packets per Second) is a commonly used unit of network throughput (i.e., how many packets are sent per second). Network performance is usually measured by the throughput indicator.
[0045] Bit rate (bit per second, bps): refers to the number of bits transmitted per unit time, measured in bps.
[0046] Internet Protocol version 4 (IPv4): also known as the fourth version of the Internet Communication Protocol, is the fourth revised version in the development process of the Internet Protocol and the first widely deployed version of this protocol.
[0047] Internet Protocol version 6 (Ipv6): It is the next generation IP protocol designed by the Internet Engineering Task Force (IETF) to replace IPv4. It is said that the number of addresses it has is enough to encode an address for every grain of sand in the world.
[0048] Wide Area Network (WAN), also known as extranet or public network, is a remote network that connects local area networks or metropolitan area networks in different regions. It usually spans a large physical range, ranging from tens of kilometers to thousands of kilometers. It can connect multiple regions, cities and countries, or span several continents and provide long-distance communications to form an international remote network. Wide Area Network is not the same as the Internet.
[0049] A Local Area Network (LAN) is a computer network that connects computers in a limited area such as a residence, school, laboratory, university campus or office building. In contrast, a Wide Area Network (WAN) not only covers larger geographical distances, but also usually involves fixed dedicated lines and links to the Internet. The Internet is much broader and is a system that connects business and personal computers around the world.
[0050] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0051] Example 1
[0052] In a cloud-based telecommunications network, vCPE implements the functions of DHCP server, PPPoE client and HTTP client, and also needs to perform NAT conversion and routing forwarding on user data. In the past, the functions of multiple traditional network devices were concentrated in one network element for processing, so a centralized network data collection method and a unified reporting method were needed. To this end, according to an embodiment of the present application, a method embodiment of network data reporting is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although the logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in a different order than here.
[0053] Figure 1 is a schematic diagram of a method flow for reporting network data according to an embodiment of the present application, such as Figure 1 As shown, the method comprises the following steps:
[0054] Step S102, receiving a target processing command sent by the network management system, wherein the target processing command includes at least one of the following: a periodic sampling instruction, a status query instruction;
[0055] In this embodiment, the target processing instruction is sent from the network management system (NMS) to the vCPE module, the periodic sampling instruction is used to set the sampling period when data sampling and reporting are performed using the periodic sampling method, and the status query instruction is used to obtain status data.
[0056] In this embodiment, the vCPE module is a virtual client device based on a cloud scenario, which can carry up to 2,000 broadband users and can achieve unified management and deployment of users and terminals.
[0057] Step S104, according to the target processing command, respectively determine the first sampling mode, the second sampling mode and the third sampling mode, wherein the first sampling mode is the target sampling mode corresponding to the terminal unit, the second sampling mode is the target sampling mode corresponding to the user unit, and the third sampling mode is the target sampling mode corresponding to the network element unit. One network element unit corresponds to at least one user unit, and each user unit corresponds to at least one terminal unit. The target sampling modes include: periodic sampling mode, state change sampling mode, and response request sampling mode.
[0058] Figure 2 is a structural diagram of a data acquisition network framework provided according to an embodiment of the present application, such as Figure 2 As shown, in this embodiment, one network element corresponds to multiple user units, and each user unit corresponds to multiple terminal units;
[0059] Specifically, when collecting and reporting data, the collection and reporting of terminal information includes three types: periodic reporting of terminal traffic, reporting of terminal status changes, and reporting of terminal status requests. The collection and reporting of user information also includes three types: periodic reporting of user traffic, reporting of user status changes, and reporting of user status requests. The collection and reporting of network element information includes: reporting of network element status changes and reporting of network element status requests.
[0060] Step S106, sampling the terminal unit, the user unit and the network element unit respectively according to the first sampling method, the second sampling method and the third sampling method to obtain target sampling data;
[0061] In some embodiments of the present application, the target sampling data includes terminal sampling data, user sampling data, and network element sampling data. The terminal unit, user unit, and network element unit are sampled according to a first sampling method, a second sampling method, and a third sampling method, respectively, to obtain the target sampling data, including: sampling the terminal unit according to the first sampling method to obtain terminal sampling data, wherein the terminal sampling data includes: terminal status data and terminal flow data; sampling the user unit according to the second sampling method to obtain user sampling data, wherein the user sampling data includes: user status data and user flow data; sampling the network element unit according to the third sampling method to obtain network element sampling data, wherein the network element sampling data includes: network element status data.
[0062] In some embodiments of the present application, the terminal unit is sampled according to a first sampling method to obtain terminal sampling data, including: when the first sampling method corresponding to the terminal unit includes a periodic sampling method, the terminal flow data of the terminal unit is obtained according to the sampling period in the sampling period setting instruction, wherein the terminal flow data includes: the number of uplink and downlink messages within the sampling period, the number of uplink and downlink message bytes within the sampling period, the uplink and downlink data throughput rate, and the bit rate; when the first sampling method corresponding to the terminal unit includes a state change sampling method, the terminal status data of the terminal device is monitored, and the terminal status data is obtained when the terminal status data changes, wherein the terminal status data includes: the user account, physical address, network protocol address, and offline state corresponding to the terminal unit; when the first sampling method corresponding to the terminal unit includes a response request sampling method, the terminal status data is obtained at the moment of receiving the status query instruction.
[0063] Specifically, the first sampling method corresponding to the terminal unit includes periodic terminal traffic collection (i.e. the above-mentioned periodic collection method), terminal status change collection (i.e. the above-mentioned status change collection method), and terminal status request collection (i.e. the above-mentioned response request collection method), wherein the terminal traffic periodic collection content includes: timestamp, collection period, the number of uplink and downlink messages added during the period, the number of uplink and downlink message bytes added during the period, the cumulative number of uplink and downlink messages used by the terminal, the cumulative number of uplink and downlink bytes used by the terminal, and the uplink and downlink pps and bps. The terminal status change collection and terminal status request collection include: the user account to which the terminal belongs, the MAC address (i.e. the above-mentioned physical address), the IP address (network protocol address), the IPv4 gateway, the mask, the IPv6 address, the IPv6 gateway, the link local address, the offline state, the online protocol, and the terminal device information.
[0064] In some embodiments of the present application, sampling the user unit according to the second sampling method to obtain user sampling data includes: when the second sampling method corresponding to the user unit includes a periodic sampling method, obtaining user traffic data of the user unit according to the sampling period in the periodic sampling instruction, wherein the user traffic data includes: the number of uplink and downlink messages within the sampling period, the number of uplink and downlink message bytes within the sampling period, the uplink and downlink data throughput rate, and the bit rate; when the second sampling method corresponding to the user unit includes a state change sampling method, monitoring the user state data of the user device, and obtaining the user state data when the user state data changes, wherein the user state data includes: user account, error code of the first dialing error, error code of the latest dialing error, state information of the user unit wide area network side, and state information of the user unit local area network side; when the second sampling method corresponding to the user unit includes a response request sampling method, obtaining the user state data at the moment of receiving the state query instruction.
[0065] Specifically, the second sampling mode corresponding to the user unit includes periodic collection of user traffic (i.e. the above periodic collection mode), user status change collection (i.e. the above status change collection mode), and user status request collection (i.e. the above response request collection mode), wherein the periodic collection of user traffic includes: timestamp, collection period, the number of uplink and downlink messages increased within the period, the number of uplink and downlink message bytes increased within the period, and the uplink and downlink pps and bps. The user status change collection and user status request collection include: user account, error code and timestamp of the first dialing error, error code and timestamp of the last dialing error, error code and timestamp of the last dialing error, PPPoE session ID, WAN side IPv4 and IPv6 addresses obtained by the user, and WAN side and LAN side status.
[0066] In some embodiments of the present application, the network element unit is sampled according to a third sampling method to obtain network element sampling data, including: when the third sampling method corresponding to the network element unit includes a state change sampling method, the network element status data of the network element device is monitored, and the network element status data is obtained when the network element status data changes, wherein the network element status data includes: the maximum number of users supported by the network element unit, the number of registered users, the number of online users, the number of offline users, and the number of online terminals; when the third sampling method corresponding to the network element unit includes a response request sampling method, the network element status data is obtained at the moment of receiving the status query instruction.
[0067] Specifically, the third sampling method corresponding to the network element unit includes network element status change collection (i.e. the above-mentioned status change collection method) and network element status request collection (i.e. the above-mentioned response request collection method), wherein the network element status change collection and network element status request collection include: the maximum number of users supported by the network element, the number of users registered with the network element, the number of online users, the number of offline users, and the number of online terminals.
[0068] Step S108: reporting the target sampling data to the network management system for analysis.
[0069] In some embodiments of the present application, the target sampling data includes terminal sampling data, user sampling data, and network element sampling data. The terminal sampling data includes: terminal status data and terminal flow data. The user sampling data includes: user status data and user flow data. The network element sampling data includes: network element status data. Reporting the target sampling data to the network management system for analysis includes: encapsulating the status data and flow data in the target sampling information pair into data packets in a target format, respectively, and uploading them to the network management system respectively, wherein the target format is a data format supported by the network management system, the status data includes: terminal status data, user status data and network element status data, and the flow data includes: terminal flow data and user flow data.
[0070] In this implementation, terminal unit data, user unit data, and network element unit data are all collected and reported uniformly within the vCPE. Only one common interface is required to connect with the network management system, which can perform traffic analysis and control, resource allocation, and network orchestration based on the reported information. Changes in terminal or user status information are reported in real time so that the network management system can respond promptly based on the status information. Traffic information and status information are reported separately to avoid uploading too much information at the same time and causing congestion.
[0071] Through the above steps, the relevant network statistical information of terminals, users and network elements is reported to the network management system in three ways: periodic reporting, status change reporting and request reporting. The purpose of centralized network data collection and unified reporting is achieved, thereby solving the technical problem of low data collection and reporting efficiency caused by the need to perform cumbersome configuration of multiple different devices when currently collecting and reporting network data.
[0072] Example 2
[0073] According to an embodiment of the present invention, an embodiment of a network data reporting system is also provided. Figure 3 is a schematic diagram of a framework of a network data reporting system provided according to an embodiment of the present invention. Figure 3 As shown, the system includes: an interface module (vpp agent) 32, a dynamic host configuration protocol module 32, a point-to-point protocol module 33, an instruction processing module 34, a data reporting module 35, a terminal collection module 36, a user collection module 37 and a network element collection module 38, wherein the interface module 31 is used to communicate with the network management system, process and respond to network management side requests; the instruction processing module 34 is used to send the configuration command sent by the network management system received from the interface module 31 to the dynamic host configuration protocol module 32 and the point-to-point protocol module 33, and send the collection command to the terminal collection module 36, the user collection module 37 and the network element collection module 38; the data reporting module 35 is used to encapsulate the sampled data obtained by the terminal collection module 36, the user collection module 37 and the network element collection module 38 into a data packet of a target format, and report it to the network management system through the interface module 31, wherein the target format is a data format supported by the network management system. According to the format; the terminal acquisition module 36 is used to collect the terminal sampling data of the terminal unit, wherein the terminal sampling data includes: terminal status data and terminal flow data; the user acquisition module 37 is used to collect the user sampling data of the user unit, wherein the user sampling data includes: user status data and user flow data; the network element acquisition module 38 is used to collect the network element sampling data of the network element unit, wherein the network element sampling data includes: network element status data; the dynamic host configuration protocol module 32 is used to allocate the Internet protocol address and gateway of the terminal unit, obtain the device information and physical address of the terminal unit, and synchronize them to the terminal acquisition module 36; the point-to-point protocol module 33 is used to realize the dial-up Internet access of the user unit, obtain the wide area network side link information and Internet protocol address information of the user unit, and synchronize them to the user acquisition module 37, wherein the wide area network side link information includes at least one of the following: identity authentication information and encryption information.
[0074] In this embodiment, the vpp agent module is the communication interface between the vCPE network element and the network management, which is used to convert the gRPC request on the network management side into a vpp command line and send it to the instruction processing module, and forward the statistical data reported by the data reporting module to the network management; the DHCP server module is responsible for allocating the IP address and gateway of the terminal, obtaining the device information and MAC address of the terminal. And synchronize the information to the terminal acquisition module; the PPPOE client module is responsible for the user's dial-up Internet access, obtaining the user's wan-side link information and IP address information. And synchronize the information to the user acquisition module; the instruction processing module is used to encapsulate the relevant configuration request on the network management side into an event and forward it to the DHCP server or PPPoE client, and call the data acquisition module to collect data; the data reporting module is used to encapsulate the original data obtained by the data acquisition module into json data format, and send it to the vpp agent through the HTTP protocol.
[0075] Specifically, the instruction processing module 34 includes a command process node, which processes the command line issued by the vpp agent, encapsulates the request into an event and forwards it to the corresponding module. If it is a request to add or delete a user, it is forwarded to the PPPoEclient. If it is a DHCP configuration request, it is forwarded to the DHCP server. If it is a request to collect data, it is forwarded to each data collection module.
[0076] Specifically, the data reporting module 35 is an HTTP client developed based on vpp, which encapsulates the data collected by each collection module into json format and forwards it to the vpp agent.
[0077] Figure 4 is a schematic diagram of the structure of a terminal acquisition module provided according to an embodiment of the present invention, such as Figure 4 As shown, the terminal acquisition module 36 includes: a terminal process node, a terminal table, and a message node (disp node), wherein the terminal table is used to record terminal flow data and terminal status data; the message node is used to count the terminal flow data and update it to the terminal table; the terminal process node is used to receive the collection command sent by the instruction processing module 34, and according to the target sampling method corresponding to the collection command, obtain the terminal flow data and / or terminal status data in the terminal table and send it to the data reporting module 35, wherein the target sampling method includes: periodic sampling method, state change sampling method, and response request sampling method.
[0078] Specifically, the terminal collection module includes the terminal process node, terminal table, and disp node. The terminal table records the flow data and status data. The disp node is the node through which the user message is processed. It can count the flow data and update the terminal table. Figure 4 Each part is introduced in detail:
[0079] vpp agent: Written in JAVA, it is the northbound interface of vpp and communicates with the network management through HTTP and gRPC protocols.
[0080] Command process: vpp node, receives command lines sent by vpp agent, and encapsulates them into events to notify other modules.
[0081] DHCP server: written based on vpp, responsible for managing and maintaining the terminal information of each user. When the terminal status changes, it will send a message to notify the terminal process node.
[0082] Terminal process: A timer is maintained internally. The sampling period can be set according to the request of the network management, and the terminal traffic data is periodically collected and uploaded to the data reporting module. When the status changes or a reporting command is received, the terminal table is queried to report the terminal status information. According to the timer, the terminal table is periodically queried to report the terminal traffic information; it can receive the network management side request forwarded by the command process, enable sampling, and modify the sampling period; it can receive the network management side request forwarded by the command process, and instantly sample the status information of all terminals under a single user, and upload it to the data reporting module; it can receive events sent by the DHCP server, which contains the terminal identifier of the status change. The terminal process node queries the terminal table according to the terminal identifier, obtains the status data, and uploads it to the data reporting module.
[0083] Terminal table: saves the status information and traffic information of each terminal.
[0084] http client: encapsulates the reported information into json format and reports it to vpp agent.
[0085] disp node: The node through which the user message passes. It counts the traffic of each terminal and updates it to the terminal table.
[0086] In this embodiment, the vpp agent receives the network management request and sends the request to the command process node. The command process node calls the terminal process node to obtain the uploaded data, calls the http client to encapsulate the data into json format, and sends it back to the network management.
[0087] Figure 5 is a structural diagram of a user acquisition module provided according to an embodiment of the present invention, such as Figure 5 As shown, the user collection module 37 includes: a user process node, a user table, and a point-to-point protocol node (PPPoE node), wherein the user table is used to record user flow data and user status data; the point-to-point protocol node is used to count user flow data and update it to the user table; the user process node is used to receive the collection command sent by the instruction processing module 34, and obtain the user flow data and / or user status data in the user table according to the target sampling method corresponding to the collection command, and send it to the data reporting module 35.
[0088] Specifically, the user collection module 37 includes a user process node, a user table, and a PPPoE node node. The user table records the flow data and status data. The PPPoE node is the node through which the user message is processed. It can count the flow data and update the user table. Figure 5 Each part is introduced in detail:
[0089] vpp agent: Written in JAVA, it is the northbound interface of vpp and communicates with the network management through HTTP and gRPC protocols.
[0090] Command process: vpp node, receives command lines sent by vpp agent, and encapsulates them into events to notify other modules.
[0091] PPPoE client: written based on vpp, implements PPPoE client functions and user dial-up Internet access functions. When the user status changes, a message will be sent to notify the user process node.
[0092] User process: It maintains a timer internally. It can set the sampling period according to the request of the network management, periodically collect the user's traffic data, and upload the data to the data reporting module. When the status changes or the reporting command is received, it queries the user table to report the user status information. According to the timer, it periodically queries the user table and reports the user traffic information; it can receive the network management side request forwarded by the command process, enable sampling, and modify the sampling period; it can receive the network management side request forwarded by the command process, and immediately sample the status information of a single user and upload it to the data reporting module; it can receive the event sent by the DHCP server, which contains the user ID of the status change. The user process node queries the user process according to the user ID, obtains the status data, and uploads it to the data reporting module.
[0093] User table: saves the status information and traffic information of each terminal.
[0094] http client: encapsulates the reported information into json format and reports it to vpp agent.
[0095] pppoe node: the node through which user packets pass, counts the traffic of each user, and updates the data to the user table.
[0096] In this embodiment, the vpp agent receives the network management request and sends the request to the command process node. The command process node calls the user process node to obtain the uploaded data, calls the http client to encapsulate the data into json format, and sends it back to the network management.
[0097] Figure 6 is a schematic diagram of the structure of a network element acquisition module provided according to an embodiment of the present invention, such as Figure 6 As shown, the network element acquisition module 38 includes: a network element process node (element process) and a network element table (element table), wherein the network element table is used to record network element status data, and the network element status data is used to characterize the offline status of the terminal unit and the user unit corresponding to the network element unit; the network element process node is used to receive the acquisition command sent by the instruction processing module 34, and obtain the network element status data in the network element table according to the target sampling method corresponding to the acquisition command, and send it to the data reporting module 35.
[0098] Specifically, the network element collection module 38 includes an element process node and an element table, which are used to collect online and offline statistical data of terminals or users and upload them to the data reporting module.
[0099] In this embodiment, when the status of a user or terminal changes, the DHCP server and the PPPoE client update the element table and notify the element process to upload the status change information.
[0100] In this embodiment, each processing module and acquisition module is a node created based on vpp, which has the characteristics of flexible deployment and strong portability.
[0101] Example 3
[0102] According to an embodiment of the present invention, an embodiment of a computer terminal for implementing the method for reporting network data is also provided. Figure 7 1 is a hardware structure block diagram of a computer terminal (or electronic device) for implementing a method for reporting network data according to an embodiment of the present invention. Figure 7 As shown, the computer terminal 70 (or electronic device 70) may include one or more (shown as 702a, 702b, ..., 702n in the figure) processors (the processor may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA), a memory 704 for storing data, and a transmission module 706 for communication functions. In addition, it may also include: a display, an input / output interface (I / O interface), a universal serial bus (USB) port (which may be included as one of the ports of the I / O interface), a network interface, a power supply and / or a camera. It can be understood by those skilled in the art that Figure 7 The structure shown is only for illustration and does not limit the structure of the above electronic device. Figure 7 More or fewer components as shown, or with Figure 7 Different configurations are shown.
[0103] It should be noted that the one or more processors and / or other data processing circuits described above may generally be referred to herein as "data processing circuits". The data processing circuits may be embodied in whole or in part as software, hardware, firmware, or any other combination thereof. In addition, the data processing circuit may be a single independent processing module, or may be incorporated in whole or in part into any of the other components in the computer terminal 70 (or electronic device). As described in the embodiments of the present application, the data processing circuit acts as a processor control (e.g., selection of a variable resistor terminal path connected to an interface).
[0104] The memory 704 can be used to store software programs and modules of application software, such as program instructions / data storage devices corresponding to the method for reporting network data in the embodiment of the present application. The processor executes various functional applications and data processing by running the software programs and modules stored in the memory 704, that is, realizing the above-mentioned method for reporting network data. The memory 704 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 704 may further include a memory remotely arranged relative to the processor, and these remote memories may be connected to the computer terminal 70 via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0105] The transmission module 706 is used to receive or send data via a network. The specific example of the above network may include a wireless network provided by a communication provider of the computer terminal 70. In one example, the transmission device 706 includes a network adapter (Network Interface Controller, NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 706 can be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.
[0106] The display may be, for example, a touch screen liquid crystal display (LCD) that enables a user to interact with a user interface of the computer terminal 70 (or electronic device).
[0107] It should be noted that, in some optional embodiments, the above Figure 7 The computer device (or electronic device) shown may include hardware elements (including circuits), software elements (including computer code stored on a computer-readable medium), or a combination of hardware elements and software elements. It should be noted that Figure 7 This is merely one example of a particular embodiment and is intended to illustrate the types of components that may be present in the above-described computer device (or electronic device).
[0108] It should be noted that Figure 7 The electronic device for reporting network data is used to perform Figure 1 The method for reporting network data shown in the figure, therefore the relevant explanations in the above-mentioned method for reporting network data are also applicable to the electronic device for reporting network data, and will not be repeated here.
[0109] According to an embodiment of the present invention, an embodiment of a network data reporting device is also provided. Figure 8is a schematic diagram of the structure of a network data reporting device provided according to an embodiment of the present invention. Figure 8 As shown, the device comprises:
[0110] The command receiving module 80 is used to receive a target processing command sent by the network management system, wherein the target processing command includes at least one of the following: a periodic sampling command and a status query command;
[0111] The mode determination module 82 is used to determine the first sampling mode, the second sampling mode and the third sampling mode respectively according to the target processing command, wherein the first sampling mode is the target sampling mode corresponding to the terminal unit, the second sampling mode is the target sampling mode corresponding to the user unit, and the third sampling mode is the target sampling mode corresponding to the network element unit. One network element unit corresponds to at least one user unit, and each user unit corresponds to at least one terminal unit. The target sampling modes include: periodic sampling mode, state change sampling mode, and response request sampling mode;
[0112] The data sampling module 84 is used to sample the terminal unit, the user unit and the network element unit respectively according to the first sampling mode, the second sampling mode and the third sampling mode to obtain target sampling data;
[0113] The data reporting module 86 is used to report the target sampling data to the network management system for analysis.
[0114] It should be noted that the network data reporting device provided in this embodiment can be used to execute Figure 1 The network data reporting method shown, therefore, the relevant explanations and instructions on the above-mentioned network data reporting method are also applicable to the embodiments of the present application and will not be repeated here.
[0115] According to an embodiment of the present application, an embodiment of a non-volatile storage medium is also provided, and the non-volatile storage medium includes a stored program, wherein when the program is running, the device where the non-volatile storage medium is located is controlled to execute the following network data reporting method: receiving a target processing command sent by a network management system, wherein the target processing command includes at least one of the following: a periodic sampling instruction, a status query instruction; according to the target processing command, determining a first sampling method, a second sampling method and a third sampling method respectively, wherein the first sampling method is a target sampling method corresponding to a terminal unit, the second sampling method is a target sampling method corresponding to a user unit, and the third sampling method is a target sampling method corresponding to a network element unit, one network element unit corresponds to at least one user unit, and each user unit corresponds to at least one terminal unit, and the target sampling methods include: a periodic sampling method, a state change sampling method, and a response request sampling method; sampling the terminal unit, the user unit and the network element unit according to the first sampling method, the second sampling method and the third sampling method respectively, to obtain target sampling data; reporting the target sampling data to the network management system for analysis.
[0116] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.
[0117] In the above embodiments of the present application, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, please refer to the relevant description of other embodiments.
[0118] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the device embodiments described above are only schematic. For example, the division of the units can be a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.
[0119] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple units. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
[0120] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0121] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, in essence, or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, a server or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, disk or optical disk and other media that can store program codes.
[0122] The above is only a preferred implementation of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.
Claims
1. A network data reporting method, characterized in that: include: The interface module of the network data reporting system receives a target processing command sent by the network management system, wherein the target processing command includes at least one of the following: a periodic sampling instruction and a status query instruction; the network data reporting system includes: an interface module, a dynamic host configuration protocol module, a point-to-point protocol module, an instruction processing module, a data reporting module, a terminal collection module, a user collection module and a network element collection module; the network data reporting system is a virtual customer premises equipment vCPE in a cloud-based telecommunications network; The instruction processing module of the network data reporting system determines the first sampling mode, the second sampling mode and the third sampling mode respectively according to the target processing command, wherein the first sampling mode is the target sampling mode corresponding to the terminal unit, including using the terminal acquisition module to collect data, the second sampling mode is the target sampling mode corresponding to the user unit, including using the user acquisition module to collect data, the third sampling mode is the target sampling mode corresponding to the network element unit, including using the network element acquisition module to collect data, one network element unit corresponds to at least one user unit, each user unit corresponds to at least one terminal unit, and the target sampling modes include: periodic sampling mode, state change sampling mode, and response request sampling mode; The terminal acquisition module of the network data reporting system samples the terminal unit according to the first sampling method to obtain target sampling data; the user acquisition module samples the user unit according to the second sampling method to obtain target sampling data; the network element acquisition module samples the network element unit according to the third sampling method to obtain target sampling data; Reporting the target sampling data to the network management system for analysis includes using the data reporting module to report the target sampling data.
2. The network data reporting method according to claim 1, characterized in that: The target sampling data includes terminal sampling data, user sampling data, and network element sampling data. The terminal unit, the user unit, and the network element unit are sampled according to the first sampling method, the second sampling method, and the third sampling method, respectively, and the target sampling data obtained includes: Sampling the terminal unit according to the first sampling mode to obtain the terminal sampling data, wherein the terminal sampling data includes: terminal status data and terminal flow data; Sampling the user unit according to the second sampling mode to obtain the user sampling data, wherein the user sampling data includes: user state data and user flow data; The network element unit is sampled according to the third sampling method to obtain the network element sampling data, wherein the network element sampling data includes: network element status data.
3. The network data reporting method according to claim 2, characterized in that: Sampling the terminal unit according to the first sampling mode to obtain the terminal sampling data includes: In the case where the first sampling mode corresponding to the terminal unit includes a periodic sampling mode, the terminal flow data of the terminal unit is obtained according to the sampling period in the sampling period setting instruction, wherein the terminal flow data includes: the number of uplink and downlink messages within the sampling period, the number of uplink and downlink message bytes within the sampling period, the uplink and downlink data throughput rate, and the bit rate; In a case where the first sampling mode corresponding to the terminal unit includes the state change sampling mode, monitoring the terminal state data of the terminal unit, and acquiring the terminal state data when the terminal state data changes, wherein the terminal state data includes: a user account, a physical address, a network protocol address, and an offline state corresponding to the terminal unit; In a case where the first sampling mode corresponding to the terminal unit includes the response request sampling mode, the terminal status data is acquired at the moment when the status query instruction is received.
4. The network data reporting method according to claim 2, characterized in that: Sampling the user unit according to the second sampling mode to obtain the user sampling data includes: In the case where the second sampling mode corresponding to the user unit includes the periodic sampling mode, the user flow data of the user unit is obtained according to the sampling period in the periodic sampling instruction, wherein the user flow data includes: the number of uplink and downlink messages within the sampling period, the number of uplink and downlink message bytes within the sampling period, the uplink and downlink data throughput rate, and the bit rate; In the case where the second sampling mode corresponding to the user unit includes the state change sampling mode, monitoring the user state data of the user device, and acquiring the user state data when the user state data changes, wherein the user state data includes: user account, error code of the first dialing error, error code of the latest dialing error, state information of the user unit wide area network side, and state information of the user unit local area network side; In a case where the second sampling mode corresponding to the user unit includes the response request sampling mode, the user status data is acquired at the moment of receiving the status query instruction.
5. The network data reporting method according to claim 2, characterized in that: Sampling the network element unit according to the third sampling mode to obtain the network element sampling data includes: In a case where the third sampling mode corresponding to the network element unit includes the state change sampling mode, monitoring the network element state data of the network element device, and acquiring the network element state data when the network element state data changes, wherein the network element state data includes: a maximum number of users supported by the network element unit, a number of registered users, a number of online users, a number of offline users, and a number of online terminals; In a case where the third sampling mode corresponding to the network element unit includes the response request sampling mode, the network element status data is acquired at the moment when the status query instruction is received.
6. The network data reporting method according to claim 1, characterized in that: The target sampling data includes terminal sampling data, user sampling data, and network element sampling data. The terminal sampling data includes: terminal status data and terminal flow data. The user sampling data includes: user status data and user flow data. The network element sampling data includes: network element status data. Reporting the target sampling data to the network management system for analysis includes: The status data and flow data in the target sampling information pair are respectively encapsulated into data packets in a target format and uploaded to the network management system respectively, wherein the target format is a data format supported by the network management system, the status data includes: the terminal status data, the user status data and the network element status data, and the flow data includes: the terminal flow data and the user flow data.
7. A network data reporting system, characterized in that: include: Interface module, dynamic host configuration protocol module, point-to-point protocol module, instruction processing module, data reporting module, terminal collection module, user collection module and network element collection module, the network data reporting system is a virtual customer premise equipment vCPE in a cloud-based telecommunications network, wherein, The interface module is used to communicate with the network management system, process and respond to network management side requests; The instruction processing module is used to send the configuration command sent by the network management system received from the interface module to the dynamic host configuration protocol module and the point-to-point protocol module, and send the collection command to the terminal collection module, the user collection module and the network element collection module; The data reporting module is used to encapsulate the sampled data obtained by the terminal acquisition module, the user acquisition module and the network element acquisition module into a data packet in a target format, and report it to the network management system through the interface module, wherein the target format is a data format supported by the network management system; The terminal collection module is used to collect terminal sampling data of the terminal unit, wherein the terminal sampling data includes: terminal status data and terminal flow data; The user collection module is used to collect user sampling data of the user unit, wherein the user sampling data includes: user status data and user flow data; The network element collection module is used to collect network element sampling data of the network element unit, wherein the network element sampling data includes: network element status data; The dynamic host configuration protocol module is used to allocate the Internet protocol address and gateway of the terminal unit, obtain the device information and physical address of the terminal unit, and synchronize them to the terminal acquisition module; The point-to-point protocol module is used to implement dial-up Internet access for the user unit, obtain the wide area network side link information and Internet protocol address information of the user unit, and synchronize them to the user acquisition module, wherein the wide area network side link information includes at least one of the following: identity authentication information, encryption information.
8. The network data reporting system according to claim 7, characterized in that: The terminal collection module includes: a terminal co-process node, a terminal table, and a message node, wherein: The terminal table is used to record the terminal flow data and the terminal status data; The message node is used to count the terminal flow data and update it into the terminal table; The terminal coroutine node is used to receive the collection command sent by the instruction processing module, and obtain the terminal traffic data and / or the terminal status data in the terminal table and send them to the data reporting module according to the target sampling method corresponding to the collection command, wherein the target sampling method includes: periodic sampling method, state change sampling method, and response request sampling method.
9. The network data reporting system according to claim 7, characterized in that: The user collection module includes: user coroutine node, user table, point-to-point protocol node, wherein: The user table is used to record the user traffic data and the user status data; The point-to-point protocol node is used to count the user traffic data and update it into the user table; The user coroutine node is used to receive the collection command sent by the instruction processing module, and obtain the user traffic data and / or the user status data in the user table according to the target sampling method corresponding to the collection command, and send them to the data reporting module.
10. The network data reporting system according to claim 7, characterized in that: The network element collection module includes: a network element co-process node and a network element table, wherein: The network element table is used to record the network element status data, and the network element status data is used to represent the offline status of the terminal unit and the user unit corresponding to the network element unit; The network element coroutine node is used to receive the acquisition command sent by the instruction processing module, and obtain the network element status data in the network element table according to the target sampling method corresponding to the acquisition command and send it to the data reporting module.
11. A network data reporting device, characterized in that: include: A command receiving module, used for receiving a target processing command sent by a network management system through an interface module of a network data reporting system, wherein the target processing command includes at least one of the following: a periodic sampling instruction and a status query instruction; the network data reporting system includes: an interface module, a dynamic host configuration protocol module, a point-to-point protocol module, a command processing module, a data reporting module, a terminal collection module, a user collection module and a network element collection module; the network data reporting system is a virtual customer premises equipment vCPE in a cloud-based telecommunications network; A mode determination module, an instruction processing module for the network data reporting system, determines a first sampling mode, a second sampling mode and a third sampling mode respectively according to the target processing command, wherein the first sampling mode is a target sampling mode corresponding to a terminal unit, including using the terminal acquisition module to collect data, the second sampling mode is a target sampling mode corresponding to a user unit, including using the user acquisition module to collect data, the third sampling mode is a target sampling mode corresponding to a network element unit, including using the network element acquisition module to collect data, one network element unit corresponds to at least one user unit, each user unit corresponds to at least one terminal unit, and the target sampling modes include: periodic sampling mode, state change sampling mode, and response request sampling mode; A data sampling module, wherein the terminal acquisition module of the network data reporting system samples the terminal unit according to the first sampling method to obtain target sampling data; the user acquisition module samples the user unit according to the second sampling method to obtain target sampling data; the network element acquisition module samples the network element unit according to the third sampling method to obtain target sampling data; A data reporting module is used to report the target sampling data to the network management system for analysis, including using the data reporting module to report the target sampling data.
12. An electronic device, comprising a processor, characterized in that: The processor is used to run a program, wherein the program executes the network data reporting method according to any one of claims 1 to 6 when running.
13. A non-volatile storage medium, characterized in that: The non-volatile storage medium includes a stored program, wherein when the program is running, the device where the non-volatile storage medium is located is controlled to execute the network data reporting method according to any one of claims 1 to 6.