WO2017156940A1 - 一种数据统计方法和装置 - Google Patents

一种数据统计方法和装置 Download PDF

Info

Publication number
WO2017156940A1
WO2017156940A1 PCT/CN2016/089810 CN2016089810W WO2017156940A1 WO 2017156940 A1 WO2017156940 A1 WO 2017156940A1 CN 2016089810 W CN2016089810 W CN 2016089810W WO 2017156940 A1 WO2017156940 A1 WO 2017156940A1
Authority
WO
WIPO (PCT)
Prior art keywords
statistical
statistics
central office
entity
query request
Prior art date
Application number
PCT/CN2016/089810
Other languages
English (en)
French (fr)
Inventor
朱绪全
张阳春
Original Assignee
中兴通讯股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2017156940A1 publication Critical patent/WO2017156940A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/14Network analysis or design
    • H04L41/142Network analysis or design using statistical or mathematical methods
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/03Protocol definition or specification 

Definitions

  • This application relates to, but is not limited to, the field of data communication technology.
  • This paper proposes a data statistics method and device, which can improve the utilization rate of products and realize the value-added services of products.
  • a method of data statistics including:
  • the method further includes:
  • a method of data statistics including:
  • the setting according to the opening statistics notification message, setting a corresponding entity, and setting the statistical condition in an attribute of the entity, includes:
  • the entity when the network access device is a broadband passive optical network GPON network access device, the entity includes a network statistics custom condition entity and a GPON network statistics data entity;
  • the entity includes an EPON network statistics data entity.
  • the method further includes:
  • the shutdown statistics notification message After receiving the shutdown statistics notification message sent by the central office, the shutdown statistics notification message is sent to the network access device, where the shutdown statistics notification message is used to notify the network access device to close the corresponding statistical process.
  • a method of data statistics including:
  • the method further includes:
  • the statistics process corresponding to the shutdown statistics notification message is closed according to the shutdown statistics notification message;
  • a data statistics device is disposed on the central office, and the device includes:
  • the first notification module is configured to: send an open statistics notification message to the central office management device, where the open statistical notification message carries a corresponding statistical condition;
  • the first notification response module is configured to: receive an open statistical success response message sent by the central office management device;
  • the first query requesting module is configured to: send a statistical query request message to the central office management device;
  • the first statistical result receiving module is configured to: receive the statistical result data corresponding to the statistical query request message sent by the first query requesting module.
  • the data statistics device further includes:
  • the first closing statistics notification module is configured to: after the first statistical result receiving module receives the statistical result data corresponding to the statistical query request message, send a close statistical notification message to the central office management device.
  • a data statistics device is disposed on a central office management device, and the device includes:
  • the second receiving module is configured to: receive an open statistics notification message sent by the central office;
  • the opening statistics notification message carries a corresponding statistical condition;
  • the second setting module is configured to: set the corresponding entity according to the opening statistics notification message received by the second receiving module, and set the statistical condition in an attribute of the entity;
  • the second sending module is configured to: send the corresponding entity set by the second setting module to the network access device;
  • the second obtaining module is configured to: receive a statistical query request message sent by the central office, and obtain statistical result data corresponding to the statistical query request message from the network access device according to the statistical query request message;
  • the second statistical result sending module is configured to: send the statistical result data corresponding to the statistical query request message acquired by the second obtaining module to the central office.
  • the second setting module is configured to: convert the open statistics notification message to the corresponding entity according to a communication standard protocol or a management manner followed by the network access device.
  • the second setting module includes one or more of the following:
  • the first setting unit is configured to: when the network access device is a broadband passive optical network GPON network access device, the set entity includes a network statistics custom condition entity and a GPON network statistics data entity;
  • the second setting unit is configured to: when the network access device is an Ethernet passive optical network EPON network access device, the set entity includes an EPON network statistics data entity.
  • the data statistics device further includes:
  • a second sending module configured to: after the second statistical result sending module sends the statistical result data corresponding to the statistical query request message to the central office, and receives the closing statistics sent by the central office
  • the network access device sends a shutdown statistics notification message, where the shutdown statistics notification message is used to notify the network access device to close the corresponding statistical process.
  • a data statistics device is disposed on a network access device, where the device includes:
  • the third receiving module is configured to: receive an entity sent by the central office management device, where the entity carries a statistical condition;
  • the third parsing module is configured to: perform parsing processing according to the entity received by the third receiving module, and start a corresponding data statistics process according to the parsing result;
  • the third statistic result generating module is configured to: receive a statistical query request message sent by the central office management device, and generate corresponding statistical result data according to the statistical query request message;
  • the third sending module is configured to: send the statistical result data corresponding to the statistical query request message generated by the third statistical result generating module to the central office management device.
  • the data statistics device further includes:
  • a third closing module configured to: after the third sending module sends the statistical result data corresponding to the statistical query request message to the central office management device, and receives the shutdown sent by the central office management device After the notification message is received, the statistics process corresponding to the closing of the statistics notification message is closed according to the closing statistics notification message;
  • the third reply module is configured to: reply to the central office management device to close the statistical response message.
  • the data statistics method and device provided by the embodiment of the present invention sends a start statistics notification message to the central office management device, where the open statistics notification message carries a corresponding statistical condition; and the receiving statistical success response sent by the central office management device is received.
  • the message is sent to the central office management device by the central office to receive the statistical result data corresponding to the statistical query request message.
  • the network access device is used as a collection point of the network data, and the statistical process is completed by using the rich data source of the network access device, thereby improving the utilization rate of the product and realizing the value-added service of the product.
  • FIG. 1 is a flowchart of a data statistics method according to an embodiment of the present invention
  • FIG. 3 is a flowchart of interaction of another data statistics method according to an embodiment of the present invention.
  • FIG. 5 is an interaction flowchart of still another data statistics method according to an embodiment of the present invention.
  • FIG. 6 is a flowchart of a data statistics method according to an embodiment of the present invention.
  • FIG. 7 is a flowchart of another data statistics method according to an embodiment of the present invention.
  • FIG. 8 is a flowchart of still another method for data statistics according to an embodiment of the present invention.
  • FIG. 9 is a schematic structural diagram of an access network in the related art.
  • FIG. 10 is a schematic diagram of an application scenario for performing network data statistics according to the access network shown in FIG. 9;
  • FIG. 11 is a schematic diagram of another application scenario for performing network data statistics according to the access network shown in FIG. 9;
  • FIG. 12 is a schematic diagram of still another application scenario for performing network data statistics according to the access network shown in FIG. 9;
  • FIG. 13 is a schematic structural diagram of a data statistics apparatus according to an embodiment of the present invention.
  • FIG. 14 is a schematic structural diagram of still another data statistics apparatus according to an embodiment of the present invention.
  • FIG. 15 is a schematic structural diagram of still another data statistics apparatus according to an embodiment of the present invention.
  • FIG. 1 is a flowchart of a data statistics method according to an embodiment of the present invention.
  • the data statistics method provided in this embodiment may include the following steps, that is, steps 110 to 130:
  • Step 110 Start a network statistics process.
  • Step 120 Obtain statistical result data.
  • step 130 the network statistics process is closed.
  • the step 110 in the example shown in FIG. 1 may include the following steps, that is, steps 111 to 116:
  • Step 111 The central office sends a start statistics notification message to the central office management device, where the open statistics notification message carries a corresponding statistical condition.
  • Step 112 The central office management device converts the statistics notification message into a corresponding entity according to a communication standard protocol or a management mode followed by the network access device.
  • Step 113 The central office management device sends the corresponding entity to the network access device, where the network access device includes a protocol processing module and a data statistics module.
  • Step 114 The protocol processing module of the network access device parses the entity according to a communication standard protocol or a management manner.
  • Step 115 The protocol processing module of the network access device notifies the data statistics module to start corresponding data statistics.
  • Step 116 The data statistics module of the network access device starts a corresponding data statistics process according to the parsed result.
  • the step 120 after the step 116 in this embodiment may include the following steps, that is, steps 121 to 122:
  • Step 121 The protocol processing module of the network access device notifies the data statistics module to obtain statistical data.
  • Step 122 The data statistics module of the network access device acquires a data statistics result.
  • the central office management device is an optical line terminal (Optical Line Terminal, OLT for short), and the network access device is an optical network unit (Optical Network). Unit, abbreviated as: ONU) is explained as an example.
  • OLT optical Line Terminal
  • ONU optical network unit
  • the central office management device may also be other types of management devices, and the network access device may be other types of access devices.
  • Step 110 in the example shown in FIG. 1 may include the following steps, step 111 to step 117:
  • step 111 the central office (Manager) sends an open statistics notification message to the OLT; wherein the open statistical notification message carries a corresponding statistical condition;
  • Step 112 The OLT parses the received open statistics notification message and encapsulates the corresponding network protocol message.
  • the OLT encapsulates the open statistical notification message into an ONU management and control interface under the GPON system (ONU Management and Control Interface (referred to as: OMCI) message, the OMCI message is a configuration transmission channel message defined in the GPON standard; in the case that the system is an Ethernet Passive Optical Network (EPON) system
  • OMCI ONU Management and Control Interface
  • EPON Ethernet Passive Optical Network
  • the OLT encapsulates the statistics notification message into an OAM message of the EPON system.
  • Step 113 The OLT sets a corresponding entity according to the statistics notification message, and sets a statistical condition in the attribute of the entity.
  • Step 114 The OLT sends the corresponding entity to the network access device, where the entity carries a statistical condition.
  • Step 115 The ONU returns a set response message to the OLT.
  • Step 116 The ONU performs parsing processing according to the received entity, and starts a corresponding data statistics process according to the parsed result;
  • Step 117 The OLT sends a startup success notification message to the central office.
  • Step 120 in this embodiment may include the following steps, that is, step 121 to step 125:
  • Step 121 The central office sends a statistical query request message to the OLT.
  • Step 122 The OLT sends a statistical query request message to the ONU according to the received statistical query request message, for example, a get message, where the get message is used to request the statistical result data corresponding to the statistical query request message.
  • Step 123 The ONU generates, according to the get message, statistical result data corresponding to the statistical query request message.
  • Step 124 The ONU sends the statistical result data corresponding to the statistical query request message to the OLT;
  • Step 125 The OLT sends the statistical result data corresponding to the statistical query request message to the central office.
  • the step 130 may include the following steps, that is, steps 131 to 134:
  • Step 131 The central office sends a close statistics notification message to the OLT.
  • Step 132 The OLT sends a shutdown statistics notification to the ONU according to the received shutdown statistics notification message.
  • the message may be, for example, a delete message, and the delete message is used to notify the ONU to close the corresponding statistical process;
  • Step 133 The ONU closes the statistics process corresponding to the closing statistics notification message according to the delete message.
  • step 134 the ONU replies to the OLT with a closing statistics response message, for example, a delete response message.
  • the data statistics method provided in this embodiment may include the following steps, that is, steps 211 to 234:
  • Step 211 The central office sends an open statistics notification message to the OLT.
  • the open statistical notification message carries a corresponding statistical condition.
  • the statistical condition may be “a certain ONU terminal user accesses a certain keyword of the Internet”, and the customization requirement may be implemented by setting corresponding statistical conditions.
  • Step 212 The OLT parses the received open statistics notification message and encapsulates the corresponding network protocol message.
  • Step 213 The OLT sets a corresponding entity according to the statistics notification message, and sets a statistical condition in the attribute of the entity.
  • the entity may include an Internet statistical customized condition entity and a GPON Internet statistical data entity.
  • the GPON network statistics data entity is used to collect data information of users surfing the Internet, and the OLT can perform corresponding data collection and statistics according to customized requirements. This entity is created and deleted by the OLT.
  • Table 1 Exemplary attribute settings for GPON network statistics entities
  • custom conditions can be set, and the OLT performs corresponding statistics according to these conditions. This entity is created and deleted by the OLT.
  • custom conditions include custom condition 1, custom condition 2...custom condition N.
  • Table 2 Exemplary property settings for network statistics custom condition entities
  • Step 214 The OLT sends the corresponding entity to the network access device.
  • the entity in this embodiment includes a network statistics custom condition entity and a GPON network statistics data entity, and the entity carries a statistical condition.
  • step 213 the OLT parses the received open statistics notification message, sets the corresponding entity, and encapsulates the entity into a corresponding GPON system OMCI message.
  • the OMCI protocol defines a plurality of message formats.
  • a statistically relevant format is set in the OMCI message format, and the foregoing information is used to enable the statistics notification message to be opened by parsing. Entity.
  • the OLT sends a message to create an ONT internet statistical data entity to the network access terminal.
  • set ME Class Value
  • the field in the field counts the number of visits to the address with the IP address 10.30.22.22.
  • the OLT wants to view statistics, it sends a message to the terminal that obtains the ONT network statistics data entity.
  • step 214 the method further includes step 215, the ONU replies to the OLT with a create response message.
  • Step 216 The ONU performs parsing processing according to the received entity, and starts a corresponding data statistics process according to the parsed result;
  • the ONU After receiving the message, the ONU parses the message, parses the custom conditions in the network statistics custom condition entity, and the control block information in the ONU network statistics data entity, and sends the data to the ONU data statistics module for processing. Statistics on related data. And return the corresponding create response message to the OLT.
  • Step 217 The OLT sends a startup success notification message to the central office.
  • Step 221 The central office sends a statistical query request message to the OLT.
  • the central office In the case that the central office wants to obtain the statistical result, the central office sends a statistical query request message to the OLT.
  • Step 222 The OLT sends a statistical query request message to the ONU according to the received statistical query request message, for example, a get message, where the get message is used to request to obtain statistical result data corresponding to the statistical query request message.
  • the OLT After receiving the statistical query request message sent by the central office, the OLT converts the format into an OMCI protocol and sends a get message to the ONU involved.
  • Step 223 The ONU generates, according to the get message, statistics result data corresponding to the statistical query request message.
  • the ONU parses the OMCI message, and obtains the corresponding statistical result from the data statistics processing module, and is encapsulated in the statistical query response message, for example, may be a get response message.
  • Step 224 the ONU sends the statistical result data corresponding to the statistical query request message to the OLT;
  • the ONU sends the statistics result data corresponding to the query request message to the OLT through a get response message.
  • Step 225 The OLT sends the statistical result data corresponding to the statistical query request message to the central office.
  • the OLT parses the statistical result data and sends a message to the central office, and the central office can obtain the corresponding statistical result.
  • Step 231 the central office sends a close statistics notification message to the OLT.
  • the central office wants to stop the statistics of the data under the customized condition, the corresponding statistic notification message is sent to the OLT, and the OLT encapsulates the message into a closed statistical notification message, for example, may be a Delete message and sent to the ONU, and the ONU returns to the OLT.
  • the statistical response message for example, can be a delete response, and stop the statistical work of the data.
  • Step 232 The OLT sends a shutdown statistics notification message to the ONU according to the received shutdown statistics notification message, for example, a delete message, where the delete message is used to notify the ONU to close the corresponding statistical process.
  • Step 233 The ONU closes the statistics process corresponding to the closing statistics notification message according to the delete message.
  • step 234 the ONU replies to the OLT with a closing statistics response message, for example, a delete response message.
  • the data statistics method provided in this embodiment may include the following steps, that is, steps 311 to 334:
  • Step 311 The central office sends an open statistics notification message to the OLT.
  • the open statistical notification message carries a corresponding statistical condition.
  • the statistical condition may be “a certain ONU terminal user accesses a certain keyword of the Internet”, and the customization requirement may be implemented by setting corresponding statistical conditions.
  • Step 312 The OLT parses the received open statistics notification message, and encapsulates the extended OAM message into an EPON system.
  • Step 313 The OLT sets a corresponding entity according to the statistics notification message, and sets a statistical condition in the attribute of the entity.
  • the entity may include an EPON Internet statistical data entity.
  • the EPON network statistics data entity is used to collect data information of the user on the Internet, and the OLT can perform corresponding data collection and statistics according to customized requirements. This entity is created and deleted by the OLT.
  • the OLT initiates a set (set) message of ONU Internet statistical data to the ONU, and sets information of statistical conditions in the Control Block. For example, if you want to count the traffic statistics of the “food” under the ONU, the following information is:
  • Customized condition string “Gourmet”
  • the network access device uses an ONU as an example for description.
  • Step 314 The OLT sends the corresponding entity to the network access device.
  • the entity in this embodiment includes an EPON network statistics data entity, and the entity carries a statistical condition.
  • step 315 the ONU replies to the OLT with a create response message.
  • Step 316 The ONU performs parsing processing according to the received entity, and starts a corresponding data statistics process according to the parsed result.
  • the ONU After receiving the message, the ONU parses the extended OAM message, parses the Control Block attribute, and sends it to the ONU data statistics module for processing.
  • step 317 the OLT sends a startup success notification message to the central office.
  • Step 321 The central office sends a statistical query request message to the OLT.
  • the central office In the case that the central office wants to obtain the statistical result, the central office sends a statistical query request message to the OLT.
  • Step 322 The OLT sends a statistical query request message to the ONU according to the received statistical query request message, for example, a get message, where the get message is used to request the statistical result data corresponding to the statistical query request message.
  • the OLT After receiving the statistical query request message sent by the central office, the OLT converts the format into an OMCI protocol and sends a get message to the ONU involved.
  • Step 323 The ONU generates, according to the get message, statistics result data corresponding to the statistical query request message.
  • the ONU parses the OMCI message, and obtains the corresponding statistical result from the data statistics processing module, and encapsulates the statistical query response message, for example, in a get response message.
  • Step 324 the ONU sends the statistical result data corresponding to the statistical query request message to the OLT;
  • the ONU sends the statistics result data corresponding to the query request message to the OLT through a get response message.
  • Step 325 The OLT sends the statistical result data corresponding to the statistical query request message to the central office.
  • the OLT parses the statistical result data and sends a message to the central office, and the central office can obtain the corresponding statistical result.
  • Step 331 The central office sends a close statistics notification message to the OLT.
  • Step 332 The OLT sends a set message to the ONU according to the received shutdown statistics notification message, where the set message is used to notify the ONU to close the corresponding statistical process.
  • Step 333 The ONU closes the statistics process corresponding to the closing statistics notification message according to the set message.
  • step 334 the ONU returns a set response message to the OLT.
  • the EPON implementation process can also set statistical conditions and statistics by resetting the control block attribute, making the statistics more flexible.
  • FIG. 6 is a flowchart of a data statistics method according to an embodiment of the present invention.
  • the data statistics method provided in this embodiment is performed by the central office in the foregoing embodiment shown in FIG. 1 to FIG. 5, and the method may include the following steps, that is, steps 410 to 440:
  • Step 410 Send an open statistics notification message to the central office management device, where the open statistical notification message carries a corresponding statistical condition;
  • Step 420 Receive an open statistical success response message sent by the central office management device.
  • Step 430 Send a statistical query request message to the central office management device.
  • Step 440 Receive statistical result data corresponding to the statistical query request message.
  • the central office management device in this embodiment may also be an OLT.
  • the central office after receiving the statistical result data corresponding to the statistical query request message, the central office may further include:
  • Step 450 Send a shutdown statistics notification message to the central office management device.
  • FIG. 7 is a flowchart of another data statistics method according to an embodiment of the present invention.
  • the data statistics method provided in this embodiment is performed by the central office management device in the embodiment shown in FIG. 1 to FIG. 5, and the central office management device in this embodiment may also be an OLT.
  • the method may include the following steps, that is, steps. 510 to step 550:
  • Step 510 Receive an open statistics notification message sent by the central office, where the open statistical notification message carries a corresponding statistical condition.
  • Step 520 Set a corresponding entity according to the statistics notification message, and set a statistical condition in an attribute of the entity.
  • Step 530 the corresponding entity is sent to the network access device;
  • the network access device in this embodiment may also be an ONU;
  • Step 540 Receive a statistical query request message sent by the central office, and obtain statistical result data corresponding to the statistical query request message from the network access device according to the statistical query request message.
  • Step 550 Send the statistical result data corresponding to the statistical query request message to the central office.
  • step 550 further includes:
  • Step 560 After receiving the shutdown statistics notification message sent by the central office, send a shutdown statistics notification message to the network access device, where the shutdown statistics notification message is used to notify the network access device to close the corresponding statistical process.
  • the entity when the network access device is a GPON network access device, the entity includes a network statistics custom condition entity and a GPON network statistics data entity;
  • the entity includes an EPON network statistics data entity.
  • FIG. 8 is a flowchart of still another method for data statistics provided by an embodiment of the present invention.
  • the data statistics method provided by the embodiment is performed by the network access device in the embodiment shown in FIG. 1 to FIG. 5, and the network access device in this embodiment may also be an ONU.
  • the method may include the following steps, step 610. ⁇ Step 650:
  • Step 610 Receive an entity sent by the central office management device; the entity carries a statistical condition; the central office management device in this embodiment may also be an OLT;
  • Step 620 Perform parsing processing according to the received entity, and start a corresponding data statistics process according to the parsed result;
  • Step 630 Receive a statistical query request message sent by the central office management device, and generate corresponding statistical result data according to the statistical query request message.
  • Step 640 Send the statistical result data corresponding to the statistical query request message to the central office management device.
  • the method provided in this embodiment may further include:
  • Step 650 After receiving the shutdown statistics notification message sent by the central office management device, the statistics process corresponding to the shutdown statistics notification message is closed according to the shutdown statistics notification message.
  • Step 660 Reply to the central office management device to close the statistical response message.
  • FIG. 9 is a schematic structural diagram of an access network in the related art
  • FIG. 10 is a schematic diagram of an application scenario for performing network data statistics according to the access network shown in FIG. 9, and
  • FIG. 11 is a schematic diagram according to FIG.
  • FIG. 12 is a schematic diagram of another application scenario for performing network data statistics according to the access network shown in FIG. 9.
  • the operator can A variety of customized needs of upstream customers, access to the corresponding Internet data, is a manifestation of value-added services in network access equipment. Statistics are more diverse, statistics are customizable, and statistics are more flexible and flexible.
  • the customization requirement is to acquire data of the corresponding Internet according to a geographical location, a region, and a designated business circle; as shown in FIG. 11, the customization requirement is to obtain a corresponding Internet according to the specified network access device.
  • the data; as shown in Figure 12, the customization requirement is to obtain the corresponding Internet data according to the user of the specified device.
  • FIG. 13 is a schematic structural diagram of a data statistics apparatus according to an embodiment of the present invention.
  • Ben The device provided by the embodiment is disposed on the central office, and the device comprises:
  • the first notification module 11 is configured to: send an open statistics notification message to the central office management device; wherein the open statistical notification message carries a corresponding statistical condition; the central office management device in this embodiment may also be an OLT;
  • the first notification response module 12 is configured to: receive an open statistical success response message sent by the central office management device;
  • the first query requesting module 13 is configured to: send a statistical query request message to the central office management device;
  • the first statistical result receiving module 14 is configured to: receive the statistical result data corresponding to the statistical query request message.
  • the data statistics apparatus may further include:
  • the first closing statistics notification module is configured to: after the first statistical result receiving module 14 receives the statistical result data corresponding to the statistical query request message, send a close statistical notification message to the central office management device.
  • FIG. 14 is a schematic structural diagram of still another data statistics apparatus according to an embodiment of the present invention.
  • the device provided in this embodiment is configured on the central office management device, and the central office management device in this embodiment may also be an OLT.
  • the device may include:
  • the second receiving module 21 is configured to: receive an open statistics notification message sent by the central office; where the open statistical notification message carries a corresponding statistical condition;
  • the second setting module 22 is configured to: set a corresponding entity according to the open statistics notification message received by the second receiving module 21, and set the statistical condition in an attribute of the entity;
  • the second sending module 23 is configured to: send the corresponding entity set by the second setting module 22 to the network access device;
  • the network access device in this embodiment may be, for example, an ONU;
  • the second obtaining module 24 is configured to: receive a statistical query request message sent by the central office, and obtain statistical result data corresponding to the statistical query request message from the network access device according to the statistical query request message;
  • the second statistical result sending module 25 is configured to: send the statistical result data corresponding to the statistical query request message acquired by the second obtaining module 24 to the central office.
  • the second setting module is configured to: convert the open statistical notification message into a corresponding entity according to a communication standard protocol or a management mode followed by the network access device.
  • the second setting module 22 in the embodiment of the present invention includes one or more of the following:
  • the first setting unit is configured to: when the network access device is a GPON network access device, the set entity includes a network statistics custom condition entity and a GPON network statistics data entity;
  • the second setting unit is configured to: when the network access device is an EPON network access device, the set entity includes an EPON network statistics data entity;
  • the data statistics apparatus provided in the embodiment of the present invention may further include:
  • the second sending module is configured to: after the second statistical result sending module 25 sends the statistical result data corresponding to the statistical query request message to the central office, and after receiving the closing statistical notification message sent by the central office, the network is sent to the network
  • the access device sends a shutdown statistics notification message, where the shutdown statistics notification message is used to notify the network access device to close the corresponding statistical process.
  • FIG. 15 is a schematic structural diagram of still another data statistics apparatus according to an embodiment of the present invention.
  • the data statistics device provided in this embodiment is configured on the network access device, and the network access device may be, for example, an ONU, where the device may include:
  • the third receiving module 31 is configured to: receive an entity sent by the central office management device; wherein the entity carries a statistical condition; the central office management device in this embodiment may be, for example, an OLT;
  • the third parsing module 32 is configured to: perform parsing processing according to the entity received by the third receiving module 31, and start a corresponding data statistics process according to the parsed result;
  • the third statistical result generating module 33 is configured to: receive a statistical query request message sent by the central office management device, and generate corresponding statistical result data according to the statistical query request message;
  • the third sending module 34 is configured to: send the statistical result data corresponding to the statistical query request message generated by the third statistical result generating module 33 to the central office management device.
  • the data statistics apparatus may further include:
  • the third closing module is configured to: after the third sending module 34 sends the statistical result data corresponding to the statistical query request message to the central office management device, and after receiving the closing statistical notification message sent by the central office management device, according to the The statistics notification message is closed, and the statistical process corresponding to the closing of the statistical notification message is closed.
  • the third reply module is configured to: reply to the central office management device to close the statistical response message.
  • all or part of the steps of the above embodiments may also be implemented by using an integrated circuit. These steps may be separately fabricated into individual integrated circuit modules, or multiple modules or steps may be fabricated into a single integrated circuit module. achieve.
  • the device/function module/function module in the above embodiment may be implemented by a general-purpose computing device, which may be concentrated on a single computing device or distributed on a network composed of a plurality of computing devices.
  • the device/function module/function module in the above embodiment When the device/function module/function module in the above embodiment is implemented in the form of a software function module and sold or used as a stand-alone product, it can be stored in a computer readable storage medium.
  • the above mentioned computer readable storage medium may be a read only memory, a magnetic disk or an optical disk or the like.
  • the embodiment of the present invention sends a statistics-opening notification message to the central office management device, where the statistics-opening notification message carries a corresponding statistical condition, and receives a statistical success response message sent by the central office management device;
  • the end management device sends a statistical query request message, so as to receive the statistical result data corresponding to the statistical query request message.
  • the network access device is used as a collection point of the network data, and the statistical process is completed by using the rich data source of the network access device, thereby improving the utilization rate of the product and realizing the value-added service of the product.

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • General Physics & Mathematics (AREA)
  • Physics & Mathematics (AREA)
  • Algebra (AREA)
  • Computer Security & Cryptography (AREA)
  • Mathematical Analysis (AREA)
  • Mathematical Optimization (AREA)
  • Mathematical Physics (AREA)
  • Probability & Statistics with Applications (AREA)
  • Pure & Applied Mathematics (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

一种数据统计方法和装置,其中,该方法包括:向局端管理设备发送开启统计通知消息;其中,该开启统计通知消息中携带有相应的统计条件;接收局端管理设备发送的开启统计成功响应消息;向局端管理设备发送统计查询请求消息;接收该统计查询请求消息对应的统计结果数据。

Description

一种数据统计方法和装置 技术领域
本申请涉及但不限于数据通信技术领域。
背景技术
相关技术在网络接入设备的应用中,已经能够实现宽带上网、窄带语音等基本业务,面对布局已经很成熟完善的地区,设备的需求量已经达到了饱和,相关的业务能够满足客户的基本的需求。那么,如何让网络接入设备产品能够承载更多的功能,帮助运营商实现产品价值的提升,是一个值得研究的课题。
相关技术中,针对用户互联网数据的统计已经在相关的领域取得了很大的进步,技术也日趋变得成熟,网络接入设备作为网络数据的汇集点,有更丰富的数据源,运营商可以借助自身提供的网络服务的优势为上游客户(例如商业用户等)提供其所关心的数据,提高产品的利用率,实现产品的增值服务。
发明内容
以下是对本文详细描述的主题的概述。本概述并非是为了限制权利要求的保护范围。
本文提出了一种数据统计方法和装置,能够提高产品的利用率,实现产品的增值服务。
一种数据统计方法,包括:
向局端管理设备发送开启统计通知消息;其中,所述开启统计通知消息中携带有相应的统计条件;
接收所述局端管理设备发送的开启统计成功响应消息;
向所述局端管理设备发送统计查询请求消息;
接收所述统计查询请求消息对应的统计结果数据。
可选地,所述接收所述统计查询请求消息对应的统计结果数据之后,所述方法还包括:
向所述局端管理设备发送关闭统计通知消息。
一种数据统计方法,包括:
接收局端发送的开启统计通知消息;其中,所述开启统计通知消息中携带有相应的统计条件;
根据所述开启统计通知消息,设置对应的实体,并在所述实体的属性中设置所述统计条件;
将所述对应的实体发送给网络接入设备;
接收所述局端发送的统计查询请求消息,并根据所述统计查询请求消息,从所述网络接入设备获取统计查询请求消息对应的统计结果数据;
将所述统计查询请求消息对应的统计结果数据发送给所述局端。
可选地,所述根据所述开启统计通知消息,设置对应的实体,并在所述实体的属性中设置所述统计条件,包括:
按照所述网络接入设备所遵循的通信标准协议或管理方式,将所述开启统计通知消息转换为所述对应的实体。
可选地,在所述网络接入设备是宽带无源光网络GPON网络接入设备时,所述实体包括网络统计定制条件实体和GPON网络统计数据实体;
在所述网络接入设备是以太网无源光网络EPON网络接入设备时,所述实体包括EPON网络统计数据实体。
可选地,所述将所述统计查询请求消息对应的统计结果数据发送给所述局端之后,所述方法还包括:
在接收到所述局端发送的关闭统计通知消息之后,向网络接入设备发送所述关闭统计通知消息,所述关闭统计通知消息用于通知所述网络接入设备关闭对应的统计过程。
一种数据统计方法,包括:
接收局端管理设备发送的实体;其中,所述实体中携带有统计条件;
根据接收的所述实体,执行解析处理,并根据解析的结果开启相应的数据统计流程;
接收所述局端管理设备发送的统计查询请求消息,并根据所述统计查询请求消息,生成对应的统计结果数据;
将所述统计查询请求消息对应的统计结果数据发送给所述局端管理设备。
可选地,所述将所述统计查询请求消息对应的统计结果数据发送给所述局端管理设备之后,所述方法还包括:
在接收到所述局端管理设备发送的关闭统计通知消息之后,根据所述关闭统计通知消息关闭所述关闭统计通知消息对应的统计过程;
向所述局端管理设备回复关闭统计响应消息。
一种数据统计装置,设置在局端上,所述装置包括:
第一通知模块,设置为:向局端管理设备发送开启统计通知消息;其中,所述开启统计通知消息中携带有相应的统计条件;
第一通知响应模块,设置为:接收所述局端管理设备发送的开启统计成功响应消息;
第一查询请求模块,设置为:向所述局端管理设备发送统计查询请求消息;
第一统计结果接收模块,设置为:接收所述第一查询请求模块发送的所述统计查询请求消息对应的统计结果数据。
可选地,所述数据统计装置还包括:
第一关闭统计通知模块,设置为:在所述第一统计结果接收模块接收所述统计查询请求消息对应的统计结果数据之后,向所述局端管理设备发送关闭统计通知消息。
一种数据统计装置,设置在局端管理设备上,所述装置包括:
第二接收模块,设置为:接收局端发送的开启统计通知消息;其中,所 述开启统计通知消息中携带有相应的统计条件;
第二设置模块,设置为:根据所述第二接收模块接收的所述开启统计通知消息,设置对应的实体,并在所述实体的属性中设置所述统计条件;
第二发送模块,设置为:将所述第二设置模块设置的所述对应的实体发送给网络接入设备;
第二获取模块,设置为:接收所述局端发送的统计查询请求消息,并根据所述统计查询请求消息,从所述网络接入设备获取统计查询请求消息对应的统计结果数据;
第二统计结果发送模块,设置为:将所述第二获取模块获取的所述统计查询请求消息对应的统计结果数据发送给所述局端。
可选地,所述第二设置模块,是设置为:按照所述网络接入设备所遵循的通信标准协议或管理方式,将所述开启统计通知消息转换为所述对应的实体。
可选地,所述第二设置模块包括以下一项或多项:
第一设置单元,设置为:在网络接入设备是宽带无源光网络GPON网络接入设备时,设置的实体包括网络统计定制条件实体和GPON网络统计数据实体;
第二设置单元,设置为:在网络接入设备是以太网无源光网络EPON网络接入设备时,设置的实体包括EPON网络统计数据实体。
可选地,所述数据统计装置还包括:
第二下发模块,设置为:在所述第二统计结果发送模块将所述统计查询请求消息对应的统计结果数据发送给所述局端之后,且在接收到所述局端发送的关闭统计通知消息之后,向网络接入设备发送关闭统计通知消息,所述关闭统计通知消息用于通知所述网络接入设备关闭对应的统计过程。
一种数据统计装置,设置在网络接入设备上,所述装置包括:
第三接收模块,设置为:接收局端管理设备发送的实体;其中,所述实体中携带有统计条件;
第三解析模块,设置为:根据所述第三接收模块接收的所述实体,执行解析处理,并根据解析的结果开启相应的数据统计流程;
第三统计结果生成模块,设置为:接收所述局端管理设备发送的统计查询请求消息,并根据所述统计查询请求消息,生成对应的统计结果数据;
第三发送模块,设置为:将所述第三统计结果生成模块生成的与所述统计查询请求消息对应的统计结果数据发送给所述局端管理设备。
可选地,所述数据统计装置还包括:
第三关闭模块,设置为:在所述第三发送模块将所述统计查询请求消息对应的统计结果数据发送给所述局端管理设备之后,且在接收到所述局端管理设备发送的关闭统计通知消息之后,根据所述关闭统计通知消息关闭所述关闭统计通知消息对应的统计过程;
第三回复模块,设置为:向所述局端管理设备回复关闭统计响应消息。
本发明实施例提供的数据统计方法和装置,通过局端向局端管理设备发送开启统计通知消息,该开启统计通知消息中携带有相应的统计条件;接收局端管理设备发送的开启统计成功响应消息;并通过局端向局端管理设备发送统计查询请求消息,从而接收统计查询请求消息对应的统计结果数据。本发明实施例通过网络接入设备作为网络数据的汇集点,利用网络接入设备具有的丰富的数据源完成统计过程,能够提高产品的利用率,实现产品的增值服务。
在阅读并理解了附图和详细描述后,可以明白其他方面。
附图概述
图1为本发明实施例提供的一种数据统计方法的流程图;
图2为本发明实施例提供的一种数据统计方法的交互流程图;
图3为本发明实施例提供的另一种数据统计方法的交互流程图;
图4为本发明实施例提供的又一种数据统计方法的交互流程图;
图5为本发明实施例提供的再一种数据统计方法的交互流程图;
图6为本发明实施例提供的一种数据统计方法的流程图;
图7为本发明实施例提供的另一种数据统计方法的流程图;
图8为本发明实施例提供的又一种数据统计方法的流程图;
图9为相关技术中一种接入网络的结构示意图;
图10为根据图9所示接入网络进行网络数据统计的一种应用场景示意图;
图11为根据图9所示接入网络进行网络数据统计的另一种应用场景示意图;
图12为根据图9所示接入网络进行网络数据统计的又一种应用场景示意图;
图13为本发明实施例提供一种数据统计装置的结构示意图;
图14为本发明实施例提供又一种数据统计装置的结构示意图;
图15为本发明实施例提供又一种数据统计装置的结构示意图。
本发明的实施方式
下文中将结合附图对本发明的实施方式进行详细说明。需要说明的是,在不冲突的情况下,本文中的实施例及实施例中的特征可以相互任意组合。
在附图的流程图示出的步骤可以在诸根据一组计算机可执行指令的计算机***中执行。并且,虽然在流程图中示出了逻辑顺序,但是在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤。
如图1所示,为本发明实施例提供的一种数据统计方法的流程图。本实施例提供的数据统计方法可以包括如下步骤,即步骤110~步骤130:
步骤110,启动网络统计过程;
步骤120,获取统计结果数据;
步骤130,关闭网络统计过程。
如图2所示,为本发明实施例提供的一种数据统计方法的交互流程图。图1所示实例中的步骤110可以包括如下步骤,即步骤111~步骤116:
步骤111、局端向局端管理设备发送开启统计通知消息;其中,该开启统计通知消息中携带有相应的统计条件;
步骤112,局端管理设备按照网络接入设备所遵循的通信标准协议或管理方式,将开启统计通知消息转换为对应的实体;
步骤113,局端管理设备将对应的实体发送给网络接入设备;其中,网络接入设备包括协议处理模块和数据统计模块;
步骤114,网络接入设备的协议处理模块按照通信标准协议或管理方式,对实体进行解析;
步骤115,网络接入设备的协议处理模块通知数据统计模块开启对应的数据统计;
步骤116,网络接入设备的数据统计模块根据解析的结果开启相应的数据统计流程;
本实施例在步骤116之后的步骤120可以包括以下步骤,即步骤121~步骤122:
步骤121,网络接入设备的协议处理模块通知数据统计模块获取统计数据;
步骤122,网络接入设备的数据统计模块获取数据统计结果。
下面结合实际应用场景对本发明实施例进行说明,本发明实施例中,以局端管理设备是光线路终端(Optical Line Terminal,简称为:OLT),以网络接入设备是光网络单元(Optical Network Unit,简称为:ONU)为例进行说明。在实际应用中,局端管理设备也可以是其他类型的管理设备,网络接入设备是也可以是其他类型的接入设备。
如图3所示,为本发明实施例提供的另一种数据统计方法的交互流程图。图1所示实例中的步骤110可以包括如下步骤,即步骤111~步骤117:
步骤111,局端(Manager)向OLT发送开启统计通知消息;其中,该开启统计通知消息中携带有相应的统计条件;
步骤112,OLT对接收的开启统计通知消息进行解析,并封装成对应的网络协议消息;
可选地,在***为宽带无源光网络(Gigabit-Capable Passive Optical Network,简称为:)***的情况下,OLT将开启统计通知消息封装成GPON***下的ONU管理和控制接口(ONU Management and Control Interface,简称为:OMCI)消息,该OMCI消息为GPON标准中定义的一种配置传输通道消息;在***为以太网无源光网络(Ethernet Passive Optical Network,简称为:EPON)***的情况下,OLT将开启统计通知消息封装成EPON***的OAM消息。
步骤113,OLT根据开启统计通知消息,设置对应的实体,并在该实体的属性中设置统计条件;
步骤114,OLT将该对应的实体发送给网络接入设备;其中,该实体中携带有统计条件;
步骤115,ONU向OLT回复设置响应(set response)消息;
步骤116,ONU根据接收的实体,执行解析处理,并根据解析的结果开启相应的数据统计流程;
步骤117,OLT向局端发送启动成功通知消息。
本实施例中的步骤120可以包括以下步骤,即步骤121~步骤125:
步骤121,局端向OLT发送统计查询请求消息;
步骤122,OLT根据接收的统计查询请求消息,向ONU发送统计查询请求消息,例如可以是get消息,该get消息用于请求获取统计查询请求消息对应的统计结果数据;
步骤123,ONU根据该get消息,生成统计查询请求消息对应的统计结果数据;
步骤124,ONU将统计查询请求消息对应的统计结果数据发送给OLT;
步骤125,OLT发送统计查询请求消息对应的统计结果数据给局端。
本发明实施例中,步骤130可以包括如下步骤,即步骤131~步骤134:
步骤131,局端向OLT发送关闭统计通知消息;
步骤132,OLT根据接收的关闭统计通知消息,向ONU发送关闭统计通知 消息,例如可以为delete消息,该delete消息用于通知ONU关闭对应的统计过程;
步骤133,ONU根据该delete消息,关闭上述关闭统计通知消息对应的统计过程;
步骤134,ONU向OLT回复关闭统计响应消息,例如可以为delete response消息。
下面结合GPON网络的实施情况,对本发明实施例提出的数据统计方法进行详细说明。
如图4所示,为本发明实施例提供的又一种数据统计方法的交互流程图。本实施例提供的数据统计方法可以包括如下步骤,即步骤211~步骤234:
步骤211,局端向OLT发送开启统计通知消息;其中,该开启统计通知消息中携带有相应的统计条件;
例如,统计条件可以是“某个ONU终端用户访问互联网某个关键词”,通过设置相应的统计条件,可以实现定制化要求。
步骤212,OLT对接收的开启统计通知消息进行解析,并封装成对应的网络协议消息。
步骤213,OLT根据开启统计通知消息,设置对应的实体,并在该实体的属性中设置统计条件。
其中,该实体可以包括网络统计定制条件(Internet statistical Customized condition)实体和GPON网络统计数据(GPON Internet statistical data)实体。
其中,GPON网络统计数据实体用于统计用户在互联网上网的数据信息,OLT可以根据定制化的需求进行相应的数据收集和统计。该实体由OLT创建和删除。
请参见表1,为GPON网络统计数据实体的示例性的属性设置。
Figure PCTCN2016089810-appb-000001
Figure PCTCN2016089810-appb-000002
Figure PCTCN2016089810-appb-000003
表1 GPON网络统计数据实体的示例性的属性设置
在网络统计定制条件实体的属性中,可以设置定制条件,OLT根据这些条件进行相应的统计。该实体由OLT创建和删除。
例如,定制条件包括定制条件1、定制条件2…定制条件N。
请参见表2,为网络统计定制条件实体的示例性的属性设置。
Figure PCTCN2016089810-appb-000004
Figure PCTCN2016089810-appb-000005
表2 网络统计定制条件实体的示例性的属性设置
步骤214,OLT将该对应的实体发送给网络接入设备;其中,本实施例中的实体包括网络统计定制条件实体和GPON网络统计数据实体,并且该实体中携带有统计条件;
通过步骤213,OLT对接收的开启统计通知消息进行解析,设置对应的实体,并将实体封装成对应的GPON***OMCI消息。
OLT和ONU之间进行信息交互时,可以遵循OMCI协议,OMCI协议定义了许多消息格式,本实施例中,在OMCI消息格式中设置统计相关的格式,用于传输上述通过解析开启统计通知消息设置的实体。
下面结合一个示例进行说明:
例如,要进行某个IP地址的统计,以GPON***举例,OLT发送创建(create)ONT网络统计数据(ONT internet statistical data)实体的消息给网络接入终端,在上述实体中,设置ME Class=value,ME id(Managed entity id)=1,并且在该实体中设置如下:设置control block属性中的某个字段,如:IP字段=10.30.22.22,网络接入终端收到实体后,根据实体中的字段,对IP地址为10.30.22.22的地址的访问量进行统计。
OLT要查看统计的话,发送获取(get)ONT网络统计数据实体的消息给终端,上述实体中设置ME Class=value,ME id=1,终端通过实体中字段ME Class=value,ME ID=1,确定对应的数据统计,并返回统计数据给OLT。
此外,如果同时还希望还要进行另外一个统计项的统计:如统计某个大楼(科技大厦)里面的用户在用百度在搜索什么,可以通过上述OLT发送创建(create)ONT网络统计数据(internet statistical data)实体的消息给终端,该终端即为网络接入设备,实体中设置ME Class=value,ME id=2,并且在该 实体中设置如下:control block属性中的某个字段,如:areat字段=“科技大厦”,关键字=“百度搜索”,终端收到数据后开始统计。OLT要查看统计的话,发送获取(get)ONT网络统计数据实体的消息给终端,上述实体中设置ME Class=value,ME id=2,确定对应的数据统计,终端返回对应的统计数据给OLT。
以此类推,可以同时进行很多种类的统计:只要ME Class=value,ME id与已经创建的统计值不同,并且设置control block里面的字段为“希望进行的统计条件”,name就可以进行统计了。其中value是一个固定不变的值。
步骤214之后,还包括步骤215,ONU向OLT回复create response消息。
步骤216,ONU根据接收的实体,执行解析处理,并根据解析的结果开启相应的数据统计流程;
ONU收到消息后,解析消息,对网络统计定制条件实体里面的定制条件,以及ONU网络统计数据实体中的Control block信息分别进行解析,分段下发到ONU的数据统计模块进行处理,开始进行相关数据的统计。并返回相对应的create response消息给OLT。
步骤217,OLT向局端发送启动成功通知消息。
步骤221,局端向OLT发送统计查询请求消息;
在局端想要获取统计结果的情况下,局端向OLT下发统计查询请求消息。
步骤222,OLT根据接收的统计查询请求消息,向ONU发送统计查询请求消息,例如可以是get消息,该get消息用于请求获取统计查询请求消息对应的统计结果数据;
OLT收到局端发送的统计查询请求消息后,转成OMCI协议格式,发送get消息给所涉及的ONU。
步骤223,ONU根据该get消息,生成统计查询请求消息对应的统计结果数据;
ONU对OMCI消息进行解析,并从数据统计处理模块获取相应的统计结果,并封装在统计查询响应消息,例如可以是get response消息中。
步骤224,ONU将统计查询请求消息对应的统计结果数据发送给OLT;
ONU通过get response消息将查询请求消息对应的统计结果数据发送给OLT。
步骤225,OLT发送统计查询请求消息对应的统计结果数据给局端。
OLT对统计结果数据进行解析,并发送消息给局端,局端就能得到相应的统计结果。
步骤231,局端向OLT发送关闭统计通知消息;
如果局端要停止该定制条件下的数据统计,那么发送对应的关闭统计通知消息给OLT,OLT将消息封装成关闭统计通知消息,例如可以为Delete消息,并发送给ONU,ONU向OLT返回关闭统计响应消息,例如可以为delete response,并停止数据的统计工作。
步骤232,OLT根据接收的关闭统计通知消息,向ONU发送关闭统计通知消息,例如可以为delete消息,该delete消息用于通知ONU关闭对应的统计过程;
步骤233,ONU根据该delete消息,关闭上述关闭统计通知消息对应的统计过程;
步骤234,ONU向OLT回复关闭统计响应消息,例如可以为delete response消息。
下面结合EPON网络的实施情况,对本发明实施例提出的数据统计方法进行详细说明。
如图5所示,为本发明实施例提供的再一种数据统计方法的交互流程图。本实施例提供的数据统计方法可以包括如下步骤,即步骤311~步骤334:
步骤311,局端向OLT发送开启统计通知消息;其中,该开启统计通知消息中携带有相应的统计条件;
例如,统计条件可以是“某个ONU终端用户访问互联网某个关键词”,通过设置相应的统计条件,可以实现定制化要求。
步骤312,OLT对接收的开启统计通知消息进行解析,并封装成EPON***扩展OAM消息;
步骤313,OLT根据开启统计通知消息,设置对应的实体,并在该实体的属性中设置统计条件。
其中,该实体可以包括EPON网络统计数据(EPON Internet statistical data)实体。
其中,EPON网络统计数据实体用于统计用户在互联网上网的数据信息,OLT可以根据定制化的需求进行相应的数据收集和统计。该实体由OLT创建和删除。
OLT向ONU发起ONU网络统计数据(ONU Internet statistical Data)的设置(set)消息,设置Control Block里面的统计条件的信息。例如,如果希望统计该ONU下用户对于“美食”的点击量统计,那么以下信息分别为:
Customized condition string=“美食”
Start flag:=1
Statistical mask=0x2000
请参见表3,为EPON网络统计数据实体的示例性的属性设置。
Figure PCTCN2016089810-appb-000006
Figure PCTCN2016089810-appb-000007
Figure PCTCN2016089810-appb-000008
表3 EPON网络统计数据实体的示例性的属性设置
本发明实施例中,网络接入设备以ONU为例进行说明,
步骤314,OLT将对应的实体发送给网络接入设备;其中,本实施例中的实体包括EPON网络统计数据实体,并且该实体中携带有统计条件;
步骤315,ONU向OLT回复create response消息。
步骤316,ONU根据接收的实体,执行解析处理,并根据解析的结果开启相应的数据统计流程;
ONU收到消息后,解析扩展OAM消息,将Control Block属性进行分段解析,下发到ONU的数据统计模块进行处理,开始进行相关统计项数据的统计。
步骤317,OLT向局端发送启动成功通知消息。
步骤321,局端向OLT发送统计查询请求消息;
在局端想要获取统计结果的情况下,局端向OLT下发统计查询请求消息。
步骤322,OLT根据接收的统计查询请求消息,向ONU发送统计查询请求消息,例如可以是get消息,该get消息用于请求获取统计查询请求消息对应的统计结果数据;
OLT收到局端发送的统计查询请求消息后,转成OMCI协议格式,发送get消息给所涉及的ONU。
步骤323,ONU根据该get消息,生成统计查询请求消息对应的统计结果数据;
ONU对OMCI消息进行解析,并从数据统计处理模块获取相应的统计结果,并封装在统计查询响应消息,例如可以是get response消息中,
步骤324,ONU将统计查询请求消息对应的统计结果数据发送给OLT;
ONU通过get response消息将查询请求消息对应的统计结果数据发送给OLT。
步骤325,OLT发送统计查询请求消息对应的统计结果数据给局端。
OLT对统计结果数据进行解析,并发送消息给局端,局端就能得到相应的统计结果。
步骤331,局端向OLT发送关闭统计通知消息;
如果局端要停止该条件下的数据统计,那么发送关闭统计通知消息给OLT,OLT将消息通过set消息下发给ONU,设置Control Block属性里面的字段“Start flag”=0的。
步骤332,OLT根据接收的关闭统计通知消息,向ONU发送set消息,该set消息用于通知ONU关闭对应的统计过程;
上述set消息的Control Block属性里面的字段“Start flag”=0
步骤333,ONU根据该set消息,关闭上述关闭统计通知消息对应的统计过程;
步骤334,ONU向OLT回复set response消息。
在实际应用中,EPON实施过程中也可以通过重新设置(set)control block属性来设置统计条件和统计项,使得统计更加灵活。
如图6所示,为本发明实施例提供的一种数据统计方法的流程图。本实施例提供的数据统计方法由上述图1到图5所示实施例中的局端执行,该方法可以包括如下步骤,即步骤410~步骤440:
步骤410,向局端管理设备发送开启统计通知消息,其中,该开启统计通知消息中携带有相应的统计条件;
步骤420,接收局端管理设备发送的开启统计成功响应消息;
步骤430,向局端管理设备发送统计查询请求消息;
步骤440,接收该统计查询请求消息对应的统计结果数据。
可选地,本实施例中的局端管理设备同样可以是OLT,另外,本发明实施例中,在局端接收统计查询请求消息对应的统计结果数据之后,还可以包括:
步骤450,向局端管理设备发送关闭统计通知消息。
如图7所示,为本发明实施例提供的另一种数据统计方法的流程图。本实施例提供的数据统计方法由上述图1到图5所示实施例中的局端管理设备执行,本实施例中的局端管理设备同样可以是OLT,该方法可以包括如下步骤,即步骤510~步骤550:
步骤510,接收局端发送的开启统计通知消息,其中,该开启统计通知消息中携带有相应的统计条件;
步骤520,根据开启统计通知消息,设置对应的实体,并在该实体的属性中设置统计条件;
步骤530,将该对应的实体发送给网络接入设备;本实施例中的网络接入设备同样可以是ONU;
步骤540,接收局端发送的统计查询请求消息,并根据该统计查询请求消息,从网络接入设备获取统计查询请求消息对应的统计结果数据;
步骤550,将所述统计查询请求消息对应的统计结果数据发送给局端。
可选地,本实施例提供的方法,在步骤550之后,还包括:
步骤560,在接收到局端发送的关闭统计通知消息之后,向网络接入设备发送关闭统计通知消息,该关闭统计通知消息用于通知网络接入设备关闭对应的统计过程。
本发明实施例中,在网络接入设备是GPON网络接入设备的情况下,该实体包括网络统计定制条件实体和GPON网络统计数据data实体;
在网络接入设备是EPON网络接入设备的情况下,该实体包括EPON网络统计数据实体。
如图8所示,为本发明实施例提供的又一种数据统计方法的流程图。本实 施例提供的数据统计方法由上述图1到图5所示实施例中的网络接入设备执行,本实施例中的网络接入设备同样可以是ONU,该方法可以包括如下步骤,即步骤610~步骤650:
步骤610,接收局端管理设备发送的实体;该实体中携带有统计条件;本实施例中的局端管理设备同样可以是OLT;
步骤620,根据接收的实体,执行解析处理,并根据解析的结果开启相应的数据统计流程;
步骤630,接收局端管理设备发送的统计查询请求消息,并根据该统计查询请求消息,生成对应的统计结果数据;
步骤640,将该统计查询请求消息对应的统计结果数据发送给局端管理设备。
可选地,本实施例提供的方法,在步骤640之后,还可以包括:
步骤650,在接收到局端管理设备发送的关闭统计通知消息之后,根据该关闭统计通知消息关闭该关闭统计通知消息对应的统计过程;
步骤660,向局端管理设备回复关闭统计响应消息。
下面结合实际的应用场景对本发明各实施例提供的方法进行说明。
如图9所示,为相关技术中一种接入网络的结构示意图,图10为根据图9所示接入网络进行网络数据统计的一种应用场景示意图,图11为根据图9所示接入网络进行网络数据统计的另一种应用场景示意图,图12为根据图9所示接入网络进行网络数据统计的又一种应用场景示意图,如图10到图12所示,运营商能够根据上游客户多种多样的定制化需求,获取相应的互联网的数据,属于网络接入设备中增值服务的一种表现方式。统计更加多样性,统计的可定制性,统计的功能更丰富灵活。
例如,如图10所示,定制化需求为根据地理位置、地域、指定商圈,获取相应的互联网的数据;如图11所示,定制化需求为根据指定网络接入设备,获取相应的互联网的数据;如图12示,定制化需求为根据指定的设备的用户,获取相应的互联网的数据。
如图13所示,为本发明实施例提供一种数据统计装置的结构示意图。本 实施例提供的装置设置在局端上,该装置包括:
第一通知模块11,设置为:向局端管理设备发送开启统计通知消息;其中,该开启统计通知消息中携带有相应的统计条件;本实施例中的局端管理设备同样可以为OLT;
第一通知响应模块12,设置为:接收局端管理设备发送的开启统计成功响应消息;
第一查询请求模块13,设置为:向局端管理设备发送统计查询请求消息;
第一统计结果接收模块14,设置为:接该述统计查询请求消息对应的统计结果数据。
可选地,本发明实施例提供的数据统计装置还可以包括:
第一关闭统计通知模块,设置为:在第一统计结果接收模块14接收统计查询请求消息对应的统计结果数据之后,向局端管理设备发送关闭统计通知消息。
如图14所示,为本发明实施例提供又一种数据统计装置的结构示意图。本实施例提供的装置设置在局端管理设备上,本实施例中的局端管理设备同样可以为OLT,该装置可以包括:
第二接收模块21,设置为:接收局端发送的开启统计通知消息;其中,该开启统计通知消息中携带有相应的统计条件;
第二设置模块22,设置为:根据第二接收模块21接收的开启统计通知消息,设置对应的实体,并在该实体的属性中设置所述统计条件;
第二发送模块23,设置为:将第二设置模块22设置的对应的实体发送给网络接入设备;本实施例中的网络接入设备例如可以为ONU;
第二获取模块24,设置为:接收局端发送的统计查询请求消息,并根据所述统计查询请求消息,从网络接入设备获取统计查询请求消息对应的统计结果数据;
第二统计结果发送模块25,设置为:将第二获取模块24获取的统计查询请求消息对应的统计结果数据发送给局端。
其中,第二设置模块,是设置为:按照网络接入设备所遵循的通信标准协议或管理方式,将开启统计通知消息转换为对应的实体。
可选地,本发明实施例中的第二设置模块22包括以下一项或多项:
第一设置单元,设置为:在网络接入设备是GPON网络接入设备的情况下,设置的实体包括网络统计定制条件实体和GPON网络统计数据实体;
第二设置单元,设置为:在网络接入设备是EPON网络接入设备的情况下,设置的实体包括EPON网络统计数据实体;
可选地,本发明实施例中提供的数据统计装置还可以包括:
第二发送模块,设置为:在第二统计结果发送模块25将统计查询请求消息对应的统计结果数据发送给所述局端之后,且在接收到局端发送的关闭统计通知消息之后,向网络接入设备发送关闭统计通知消息,该关闭统计通知消息用于通知网络接入设备关闭对应的统计过程。
如图15所示,为本发明实施例提供又一种数据统计装置的结构示意图。本实施例提供的数据统计装置设置在网络接入设备上,该网络接入设备例如可以为ONU,其中,该装置可以包括:
第三接收模块31,设置为:接收局端管理设备发送的实体;其中,所述实体中携带有统计条件;本实施例中的局端管理设备例如可以为OLT;
第三解析模块32,设置为:根据第三接收模块31接收的实体,执行解析处理,并根据解析的结果开启相应的数据统计流程;
第三统计结果生成模块33,设置为:接收局端管理设备发送的统计查询请求消息,并根据该统计查询请求消息,生成对应的统计结果数据;
第三发送模块34,设置为:将第三统计结果生成模块33生成的与统计查询请求消息对应的统计结果数据发送给局端管理设备。
可选地,本发明实施例提供的数据统计装置还可以包括:
第三关闭模块,设置为:在第三发送模块34将统计查询请求消息对应的统计结果数据发送给局端管理设备之后,且在接收到局端管理设备发送的关闭统计通知消息之后,根据该关闭统计通知消息关闭该关闭统计通知消息对应的统计过程;
第三回复模块,设置为:向局端管理设备回复关闭统计响应消息。
本领域普通技术人员可以理解上述实施例的全部或部分步骤可以使用计算机程序流程来实现,所述计算机程序可以存储于一计算机可读存储介质中,所述计算机程序在相应的硬件平台上(根据***、设备、装置、器件等)执行,在执行时,包括方法实施例的步骤之一或其组合。
可选地,上述实施例的全部或部分步骤也可以使用集成电路来实现,这些步骤可以被分别制作成一个个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。
上述实施例中的装置/功能模块/功能模块可以采用通用的计算装置来实现,它们可以集中在单个的计算装置上,也可以分布在多个计算装置所组成的网络上。
上述实施例中的装置/功能模块/功能模块以软件功能模块的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。上述提到的计算机可读取存储介质可以是只读存储器,磁盘或光盘等。
工业实用性
本发明实施例通过局端向局端管理设备发送开启统计通知消息,该开启统计通知消息中携带有相应的统计条件;接收局端管理设备发送的开启统计成功响应消息;并通过局端向局端管理设备发送统计查询请求消息,从而接收统计查询请求消息对应的统计结果数据。本发明实施例通过网络接入设备作为网络数据的汇集点,利用网络接入设备具有的丰富的数据源完成统计过程,能够提高产品的利用率,实现产品的增值服务。

Claims (16)

  1. 一种数据统计方法,包括:
    向局端管理设备发送开启统计通知消息;其中,所述开启统计通知消息中携带有相应的统计条件;
    接收所述局端管理设备发送的开启统计成功响应消息;
    向所述局端管理设备发送统计查询请求消息;
    接收所述统计查询请求消息对应的统计结果数据。
  2. 根据权利要求1所述的数据统计方法,其中,所述接收所述统计查询请求消息对应的统计结果数据之后,所述方法还包括:
    向所述局端管理设备发送关闭统计通知消息。
  3. 一种数据统计方法,包括:
    接收局端发送的开启统计通知消息;其中,所述开启统计通知消息中携带有相应的统计条件;
    根据所述开启统计通知消息,设置对应的实体,并在所述实体的属性中设置所述统计条件;
    将所述对应的实体发送给网络接入设备;
    接收所述局端发送的统计查询请求消息,并根据所述统计查询请求消息,从所述网络接入设备获取统计查询请求消息对应的统计结果数据;
    将所述统计查询请求消息对应的统计结果数据发送给所述局端。
  4. 根据权利要求3所述的数据统计方法,其中,所述根据所述开启统计通知消息,设置对应的实体,并在所述实体的属性中设置所述统计条件,包括:
    按照所述网络接入设备所遵循的通信标准协议或管理方式,将所述开启统计通知消息转换为所述对应的实体。
  5. 根据权利要求4所述的数据统计方法,其中,
    在所述网络接入设备是宽带无源光网络GPON网络接入设备时,所述实 体包括网络统计定制条件实体和GPON网络统计数据实体;
    在所述网络接入设备是以太网无源光网络EPON网络接入设备时,所述实体包括EPON网络统计数据实体。
  6. 根据权利要求3所述的数据统计方法,其中,所述将所述统计查询请求消息对应的统计结果数据发送给所述局端之后,所述方法还包括:
    在接收到所述局端发送的关闭统计通知消息之后,向网络接入设备发送所述关闭统计通知消息,所述关闭统计通知消息用于通知所述网络接入设备关闭对应的统计过程。
  7. 一种数据统计方法,包括:
    接收局端管理设备发送的实体;其中,所述实体中携带有统计条件;
    根据接收的所述实体,执行解析处理,并根据解析的结果开启相应的数据统计流程;
    接收所述局端管理设备发送的统计查询请求消息,并根据所述统计查询请求消息,生成对应的统计结果数据;
    将所述统计查询请求消息对应的统计结果数据发送给所述局端管理设备。
  8. 根据权利要求7所述的数据统计方法,其中,所述将所述统计查询请求消息对应的统计结果数据发送给所述局端管理设备之后,所述方法还包括:
    在接收到所述局端管理设备发送的关闭统计通知消息之后,根据所述关闭统计通知消息关闭所述关闭统计通知消息对应的统计过程;
    向所述局端管理设备回复关闭统计响应消息。
  9. 一种数据统计装置,设置在局端上,所述装置包括:
    第一通知模块,设置为:向局端管理设备发送开启统计通知消息;其中,所述开启统计通知消息中携带有相应的统计条件;
    第一通知响应模块,设置为:接收所述局端管理设备发送的开启统计成功响应消息;
    第一查询请求模块,设置为:向所述局端管理设备发送统计查询请求消 息;
    第一统计结果接收模块,设置为:接收所述第一查询请求模块发送的所述统计查询请求消息对应的统计结果数据。
  10. 根据权利要求9所述的数据统计装置,还包括:
    第一关闭统计通知模块,设置为:在所述第一统计结果接收模块接收所述统计查询请求消息对应的统计结果数据之后,向所述局端管理设备发送关闭统计通知消息。
  11. 一种数据统计装置,设置在局端管理设备上,所述装置包括:
    第二接收模块,设置为:接收局端发送的开启统计通知消息;其中,所述开启统计通知消息中携带有相应的统计条件;
    第二设置模块,设置为:根据所述第二接收模块接收的所述开启统计通知消息,设置对应的实体,并在所述实体的属性中设置所述统计条件;
    第二发送模块,设置为:将所述第二设置模块设置的所述对应的实体发送给网络接入设备;
    第二获取模块,设置为:接收所述局端发送的统计查询请求消息,并根据所述统计查询请求消息,从所述网络接入设备获取统计查询请求消息对应的统计结果数据;
    第二统计结果发送模块,设置为:将所述第二获取模块获取的所述统计查询请求消息对应的统计结果数据发送给所述局端。
  12. 根据权利要求11所述的数据统计装置,其中,第二设置模块,是设置为:按照所述网络接入设备所遵循的通信标准协议或管理方式,将所述开启统计通知消息转换为所述对应的实体。
  13. 根据权利要求12所述的数据统计装置,其中,第二设置模块包括以下一项或多项:
    第一设置单元,设置为:在网络接入设备是宽带无源光网络GPON网络接入设备时,设置的实体包括网络统计定制条件实体和GPON网络统计数据实体;
    第二设置单元,设置为:在网络接入设备是以太网无源光网络EPON网络接入设备时,设置的实体包括EPON网络统计数据实体。
  14. 根据权利要求11所述的数据统计装置,还包括:
    第二发送模块,设置为:在所述第二统计结果发送模块将所述统计查询请求消息对应的统计结果数据发送给所述局端之后,且在接收到所述局端发送的关闭统计通知消息之后,向网络接入设备发送关闭统计通知消息,所述关闭统计通知消息用于通知所述网络接入设备关闭对应的统计过程。
  15. 一种数据统计装置,设置在网络接入设备上,所述装置包括:
    第三接收模块,设置为:接收局端管理设备发送的实体;其中,所述实体中携带有统计条件;
    第三解析模块,设置为:根据所述第三接收模块接收的所述实体,执行解析处理,并根据解析的结果开启相应的数据统计流程;
    第三统计结果生成模块,设置为:接收所述局端管理设备发送的统计查询请求消息,并根据所述统计查询请求消息,生成对应的统计结果数据;
    第三发送模块,设置为:将所述第三统计结果生成模块生成的与所述统计查询请求消息对应的统计结果数据发送给所述局端管理设备。
  16. 根据权利要求15所述的数据统计装置,还包括:
    第三关闭模块,设置为:在所述第三发送模块将所述统计查询请求消息对应的统计结果数据发送给所述局端管理设备之后,且在接收到所述局端管理设备发送的关闭统计通知消息之后,根据所述关闭统计通知消息关闭所述关闭统计通知消息对应的统计过程;
    第三回复模块,设置为:向所述局端管理设备回复关闭统计响应消息。
PCT/CN2016/089810 2016-03-14 2016-07-12 一种数据统计方法和装置 WO2017156940A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610142790.6A CN107196775A (zh) 2016-03-14 2016-03-14 一种数据统计方法和装置
CN201610142790.6 2016-03-14

Publications (1)

Publication Number Publication Date
WO2017156940A1 true WO2017156940A1 (zh) 2017-09-21

Family

ID=59850740

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/089810 WO2017156940A1 (zh) 2016-03-14 2016-07-12 一种数据统计方法和装置

Country Status (2)

Country Link
CN (1) CN107196775A (zh)
WO (1) WO2017156940A1 (zh)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101047451A (zh) * 2006-06-16 2007-10-03 华为技术有限公司 在线测量无源光网络性能参数的方法
CN101719851A (zh) * 2009-11-26 2010-06-02 中兴通讯股份有限公司 一种实现光网络单元性能统计的方法及装置
US7925156B2 (en) * 2007-01-16 2011-04-12 Broadlight, Ltd. Apparatus and method for measuring the quality of burst signals and performing optical line diagnostics
CN102413387A (zh) * 2011-11-09 2012-04-11 华为技术有限公司 无源光网络***的数据处理方法、装置及***
CN105007263A (zh) * 2015-06-16 2015-10-28 上海斐讯数据通信技术有限公司 一种光网络单元的用户配置方法及***

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060228113A1 (en) * 2003-12-01 2006-10-12 Siemens Aktiengesellschaft Passive optical network unit management and control interface support for a digital subscriber line network
CN1914896A (zh) * 2003-12-01 2007-02-14 西门子公司 用于数字用户线路网络的无源光网络单元管理与控制接口支持
CN103812709B (zh) * 2014-02-28 2020-02-25 上海斐讯数据通信技术有限公司 一种光线路局端***及其中的数据统计方法

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101047451A (zh) * 2006-06-16 2007-10-03 华为技术有限公司 在线测量无源光网络性能参数的方法
US7925156B2 (en) * 2007-01-16 2011-04-12 Broadlight, Ltd. Apparatus and method for measuring the quality of burst signals and performing optical line diagnostics
CN101719851A (zh) * 2009-11-26 2010-06-02 中兴通讯股份有限公司 一种实现光网络单元性能统计的方法及装置
CN102413387A (zh) * 2011-11-09 2012-04-11 华为技术有限公司 无源光网络***的数据处理方法、装置及***
CN105007263A (zh) * 2015-06-16 2015-10-28 上海斐讯数据通信技术有限公司 一种光网络单元的用户配置方法及***

Also Published As

Publication number Publication date
CN107196775A (zh) 2017-09-22

Similar Documents

Publication Publication Date Title
US10915822B2 (en) Complex event processing method, apparatus, and system
CN108306877B (zh) 基于node js的用户身份信息的验证方法、装置和存储介质
US8630191B2 (en) Device selection for broadcast messages
US8817955B2 (en) Peer-to-peer broadcasting in a VoIP system
TWI450119B (zh) 管理樹中之管理物件的定址方法及相關之裝置管理系統
KR20190114023A (ko) 패킷 기반 데이터 통신의 디바이스 식별자 의존적 오퍼레이션 프로세싱
WO2013170566A1 (zh) 终端用户社交网的数据挖掘方法、相关方法、装置和***
WO2017114327A1 (zh) 网络切片管理装置和网络切片管理方法
EP2579524A1 (en) Method and system for identifying accessing network for home gateway
US20130311283A1 (en) Data mining method for social network of terminal user and related methods, apparatuses and systems
CN101729491B (zh) 一种增强基于脚本业务的应用可靠性的方法、装置和***
CN114189885B (zh) 网元信息处理方法、设备及存储介质
US9295070B2 (en) Quality of service level adaptation for visual services in mobile communication networks
US11146517B2 (en) Intermediary device for data message network routing
WO2021062793A1 (zh) 一种通信方法、设备、***及存储介质
US20080003941A1 (en) VoIP two-way broadcasting
CN111865881A (zh) 一种接口转换方法、装置、介质及计算机设备
JP6169662B2 (ja) Api変換アダプタ、api変換システム、及びapi変換プログラム
WO2014194725A1 (zh) 报文控制方法和装置
WO2015184879A1 (zh) 物联网的终端拓扑管理服务方法、装置及***
WO2016082537A1 (zh) 一种用于选取服务节点的方法及装置、应用引擎
WO2018192367A1 (zh) 与目标客户的通话方法、业务终端、服务器及存储介质
WO2017156940A1 (zh) 一种数据统计方法和装置
Arokkiam et al. Design, implementation, and evaluation of an XG-PON module for the ns-3 network simulator
WO2017193814A1 (zh) 一种业务链生成方法及***

Legal Events

Date Code Title Description
NENP Non-entry into the national phase

Ref country code: DE

121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 16894101

Country of ref document: EP

Kind code of ref document: A1

122 Ep: pct application non-entry in european phase

Ref document number: 16894101

Country of ref document: EP

Kind code of ref document: A1