WO2020024303A1 - Data collection method and apparatus - Google Patents

Data collection method and apparatus Download PDF

Info

Publication number
WO2020024303A1
WO2020024303A1 PCT/CN2018/098688 CN2018098688W WO2020024303A1 WO 2020024303 A1 WO2020024303 A1 WO 2020024303A1 CN 2018098688 W CN2018098688 W CN 2018098688W WO 2020024303 A1 WO2020024303 A1 WO 2020024303A1
Authority
WO
WIPO (PCT)
Prior art keywords
network element
protocol
ipdr
data
request
Prior art date
Application number
PCT/CN2018/098688
Other languages
French (fr)
Chinese (zh)
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 华为技术有限公司
Priority to PCT/CN2018/098688 priority Critical patent/WO2020024303A1/en
Publication of WO2020024303A1 publication Critical patent/WO2020024303A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/40Network security protocols

Definitions

  • the present application relates to the field of communication technologies, and in particular, to a method and device for data collection.
  • CMTS equipment can use CMTS equipment to collect data from user-side equipment (such as Cable Modem (CM)), such as the operating status of the CM, and the types of services of different user terminals connected to the CM.
  • user-side equipment such as Cable Modem (CM)
  • CM Cable Modem
  • FIG. 1 shows a traditional CMTS networking architecture.
  • the OLT is deployed in the central office room to manage multiple CMTS devices (only one CMTS is shown as an example in the figure).
  • the CMTS device is deployed in the residential room.
  • CMs are deployed in users 'homes.
  • Each CM can be connected to multiple customer premise equipment (CPE).
  • CPE customer premise equipment
  • CMs can be used to connect users' mobile phones, computers, and cable television.
  • the CMTS device collects the data of each CM, uploads the collected CM data to the OLT, and the OLT uploads the CM data to the operator server.
  • the industry has proposed a new networking architecture.
  • different functions of the CMTS can be separated and deployed in different locations.
  • the downstream CMTS and PHY layer processing can be separated from the CMTS and MAC layer processing and deployed at different locations, or the upstream and downstream CMTS and PHY layer processing can be separated from the CMTS and MAC layer processing and deployed at different locations.
  • the CMTS processing unit and the CMTS processing unit are connected by optical fibers. This connection method is generally called a remote physical layer (Remote Physical) (R-PHY) architecture.
  • R-PHY remote physical layer
  • the new network architecture has a larger change in network element composition, network element location, and network element functions than the traditional CMTS network architecture, the data collection technology in the traditional CMTS network architecture is no longer available. Applicable to the new networking architecture.
  • the embodiments of the present application provide a data collection method and device, which can execute a data collection process in a new networking architecture.
  • an embodiment of the present application provides a data collection method.
  • the method includes: a second network element receiving a first message encapsulated in a first interface protocol format sent by a third network element, and encapsulating according to a second interface protocol format.
  • First message get the second message.
  • the second network element determines at least one first network element associated with the third network element according to the second message, and sends a second message to the at least one first network element, respectively.
  • first network element is any one of at least one first network element
  • first interface protocol format A piece of data to obtain second data
  • determine a third network element associated with the first network element according to the second data and send the second data to the third network element.
  • the first interface protocol is the Internet Detailed Record (IPDR) protocol
  • the second interface protocol includes a characterization state transfer configuration (restconf) protocol, a network configuration (netconf) protocol, and a simple network management protocol (Simple Network Management Protocol). (SNMP), Remote Procedure Call (RPC) protocol; the second message is used to request data collected by at least one first network element.
  • IPDR Internet Detailed Record
  • restconf characterization state transfer configuration
  • network configuration network configuration
  • RPC Remote Procedure Call
  • the second network element after receiving the first message encapsulated in the first interface protocol format sent by the third network element, the second network element encapsulates the first message according to the second interface protocol format to obtain the second Message, and send a second message to the first network element to obtain first data sent by the first network element.
  • the second network element After obtaining the first data, the second network element encapsulates the first data according to the first interface protocol format to obtain the second data, so that the second data can be carried in the transmission channel between the second network element and the third network element, thereby The data collected by the first network element is successfully transmitted to the third network element via the second network element.
  • each segment of the transmission channel can transmit data or messages consistent with the format of the channel, which improves the probability of successfully transmitting data or messages in the channel, thereby improving the success rate of data collection .
  • the second network element before the second network element receives the first message sent by the third network element and encapsulated in the first interface protocol format, the following steps may be performed: the second network element receives the first message sent by the third network element. For the first version negotiation request, the second network element sends a first version negotiation response to the third network element.
  • the first version negotiation request is used to request to negotiate the first protocol version.
  • the first protocol version is an IPDR protocol version between the second network element and the third network element.
  • the first version negotiation response carries the first protocol version.
  • the above process uses the third network element to actively initiate a version negotiation request as an example to explain the process of negotiating the IPDR protocol version between the third network element and the second network element.
  • the second network may also be used by the second network.
  • the element actively initiates an IPDR protocol version negotiation request with the third network element.
  • the second network element sends a first version negotiation request to the third network element, and receives a first version negotiation response sent by the third network element.
  • the following steps may be performed:
  • the second network element sends a second version negotiation request to the first network element, and receives a second version negotiation response sent by the first network element.
  • the second version negotiation request is used to request to negotiate a second protocol version.
  • the second protocol version is an IPDR protocol version between the second network element and the first network element.
  • the second version negotiation response carries the second protocol version.
  • the second network element actively initiates an IPDR protocol version negotiation request with the first network element to negotiate the IPDR protocol version with the first network element.
  • the first network element may also actively initiate the IPDR protocol version negotiation request.
  • the second network element receives the second version negotiation request sent by the first network element, and sends a second version negotiation response to the first network element.
  • a first interface protocol is used when communicating between the second network element and the third network element, and the first interface protocol may be the IPDR protocol, and the second The network element and the first network element use a second interface protocol for communication, and the second interface protocol may be an IPDR protocol.
  • the second network element encapsulates the first message according to the second interface protocol format to obtain the second message, which can be specifically implemented as follows:
  • the second network element learns that the first protocol version is different from the second protocol version
  • the second network element changes the encapsulation format of the first message from the encapsulation format corresponding to the first protocol version to An encapsulation format corresponding to the second protocol version to obtain a second message.
  • the second network element encapsulates the first data according to the format of the first interface protocol to obtain the second data, which can be specifically implemented as:
  • the second network element changes the encapsulation format of the first data from the encapsulation format corresponding to the second protocol version to the encapsulation format corresponding to the first protocol version to obtain the second data.
  • the first interface protocol used in the communication between the second network element and the third network element is the IPDR protocol
  • the second interface used in the communication between the second network element and the first network element can be any of restconf, netconf, SNMP, and SNMP protocols.
  • the second network element encapsulates the first message according to the second interface protocol format to obtain the second message, which can be specifically implemented as follows:
  • the second network element encapsulates the first message's encapsulation format with the encapsulation format corresponding to the first protocol version.
  • the second message is obtained by modifying the encapsulation format corresponding to any protocol other than the IPDR protocol in the second interface protocol.
  • the second network element encapsulates the first data according to the first interface protocol format to obtain the second data, which can be specifically implemented as follows: the second network element divides the encapsulation format of the first data from the IPDR protocol by the second interface protocol The encapsulation format corresponding to any other protocol is modified to the encapsulation format corresponding to the first protocol version to obtain the second data.
  • control Protocol Transmission Control Protocol
  • the second network element receives a TCP connection request sent by the third network element, where the TCP connection request is used to request establishment of a TCP between the third network element and the second network element connection;
  • TCP Transmission Control Protocol
  • the second network element before the second network element receives the first message encapsulated in the first interface protocol format sent by the third network element, the second network element performs the following steps to establish a connection with the first network element.
  • TCP connection :
  • the second network element When the second network element works in the active mode, the second network element sends a TCP connection request to the first network element, and the TCP connection request is used to request establishment of a TCP connection between the second network element and the first network element.
  • the second network element before the second network element receives the first message encapsulated in the first interface protocol format sent by the third network element, the second network element performs the following steps to establish a connection with the first network element. TCP connection between the two network elements: when the second network element works in the passive mode, the second network element receives the TCP connection request sent by the first network element.
  • the second network element before the second network element receives the first message encapsulated in the first interface protocol format sent by the third network element, the second network element performs the following steps to establish a connection with the third network element.
  • IPDR connection
  • the second network element sends an IPDR connection request to the third network element, and receives the IPDR connection response sent by the third network element.
  • the IPDR connection request is used to request to establish an IPDR connection between the third network element and the second network element.
  • the second network element before the second network element receives the first message encapsulated in the first interface protocol format sent by the third network element, the second network element performs the following steps to establish a connection with the third network element.
  • IPDR connection between: In the case where the third network element works in the active mode, the second network element receives the IPDR connection request sent by the third network element and sends an IPDR connection response to the third network element.
  • the second network element before the second network element receives the first message encapsulated in the first interface protocol format sent by the third network element, the second network element performs the following steps to establish a connection with the first network element.
  • IPDR connection When the second network element works in the passive mode, the second network element receives the IPDR connection request sent by the first network element and sends an IPDR connection response to the third network element. The IPDR connection request is used to request to establish an IPDR connection between the first network element and the second network element.
  • the second network element before the second network element receives the first message encapsulated in the first interface protocol format sent by the third network element, the second network element performs the following steps to establish a connection with the first network element.
  • IPDR connection between the two network elements When the second network element works in the active mode, the second network element sends an IPDR connection request to the first network element, and receives the IPDR connection response sent by the first network element.
  • the second network element may further perform the following steps: the second network element receives the third The session query request sent by the network element, and sends a session query response to the third network element.
  • the session query request is used to request to query the session associated with the first network element; the session query response carries the session associated with the first network element.
  • the second network element may further perform the following steps:
  • the second network element sends a session query request to the first network element, and receives a session query response sent by the first network element.
  • the session query response carries a session associated with the first network element, and the session query request is used to request to query the first network element. Associated Session.
  • an embodiment of the present application provides a data acquisition device.
  • the device is provided with a transceiver and a processor.
  • the transceiver is configured to receive the first message encapsulated in the first interface protocol format sent by the third network element; and the processor is configured to encapsulate the first message received by the transceiver according to the second interface protocol format to obtain the second message.
  • the first interface protocol is the Internet detailed record IPDR protocol.
  • the second interface protocol includes a state transfer configuration restconf protocol, a network configuration netconf protocol, a simple network management protocol SNMP, and a remote procedure call RPC protocol.
  • the processor is also used to The message determines at least one first network element associated with the third network element; the transceiver is further configured to send a second message to the at least one first network element, respectively, and the second message is used to request the data collected by the at least one first network element Data; receiving the first data encapsulated in the second interface protocol format sent by the first network element; the processor is further configured to encapsulate the first data according to the first interface protocol format to obtain the second data, and the first network element is at least one Any one of the first network elements, the first network element; determining the third network element associated with the first network element according to the second data; the transceiver is further configured to send a signal to the third network element Transmitting the second data element.
  • the transceiver is further configured to receive a first version negotiation request sent by a third network element.
  • the first version negotiation request is used to request to negotiate a first protocol version, and the first protocol version is a second network element.
  • IPDR protocol version with the third network element; sending a first version negotiation response to the third network element, where the first version negotiation response carries the first protocol version.
  • the transceiver is further configured to send a first version negotiation request to a third network element; and receive a first version negotiation response sent by the third network element.
  • the transceiver is further configured to send a second version negotiation request to the first network element, the second version negotiation request is used to request to negotiate a second protocol version, and the second protocol version is the second network element and The version of the IPDR protocol between the first network elements; receiving the second version negotiation response sent by the first network element, and the second version negotiation response carrying the second protocol version.
  • the transceiver is further configured to receive a second version negotiation request sent by the first network element; and send a second version negotiation response to the first network element.
  • the processor is configured to encapsulate the first message according to the second interface protocol format to obtain the second message, including: if the first protocol version is different from For the second protocol version, the encapsulation format of the first message is modified from the encapsulation format corresponding to the first protocol version to the encapsulation format corresponding to the second protocol version to obtain the second message.
  • the processor is configured to encapsulate the first data according to the first interface protocol format to obtain the second data, including: if the first protocol version is different from the second protocol version, The encapsulation format is changed from the encapsulation format corresponding to the second protocol version to the encapsulation format corresponding to the first protocol version to obtain the second data.
  • the processor is configured to encapsulate the first message according to the second interface protocol format to obtain a second message, including: encapsulating the first message.
  • the format is changed from the encapsulation format corresponding to the first protocol version to the encapsulation format corresponding to any protocol other than the IPDR protocol in the second interface protocol to obtain a second message.
  • the processor is configured to encapsulate the first data according to the first interface protocol format to obtain the second data, including: dividing the encapsulation format of the first data from the IPDR protocol by the second interface protocol.
  • the encapsulation format corresponding to any external protocol is modified to the encapsulation format corresponding to the first protocol version to obtain the second data.
  • the transceiver is further configured to receive a Transmission Control Protocol TCP connection request sent by the third network element when the third network element works in an active mode, and the TCP connection request is used to request establishment of a third TCP connection between the network element and the second network element.
  • the transceiver is further configured to send a TCP connection request to the third network element when the third network element works in the passive mode.
  • the transceiver is further configured to send a TCP connection request to the first network element when the second network element works in an active mode, and the TCP connection request is used to request establishment of the second network element and the first network element. TCP connection between network elements.
  • the transceiver is further configured to receive a TCP connection request sent by the first network element when the second network element works in a passive mode.
  • the second network element actively initiates an IPDR connection request with the third network element
  • the transceiver is further configured to send the third network element to the third network element when the third network element works in the passive mode.
  • the second network element passively receives an IPDR connection request initiated by the third network element, and the transceiver is further configured to receive the third network element when the third network element works in an active mode.
  • the second network element passively receives the IPDR connection request initiated by the first network element, and the transceiver is further configured to receive the first network element to send the IPDR when the second network element works in the passive mode.
  • a connection request sending an IPDR connection response to the third network element; the IPDR connection request is used to request the establishment of an IPDR connection between the first network element and the second network element;
  • the second network element actively initiates an IPDR connection request with the first network element
  • the transceiver is further configured to send the first network element to the first network element when the second network element works in an active mode.
  • the network element sends an IPDR connection request; receives the IPDR connection response sent by the first network element.
  • the transceiver is further configured to receive a session query request sent by a third network element, and send a session query response to the third network element; the session query request is used to request a query about a session associated with the first network element; The session query response carries the session associated with the first network element.
  • the transceiver is further configured to send a session query request to the first network element and receive a session query response sent by the first network element; the session query request is used to request a query about a session associated with the first network element; The session query response carries the session associated with the first network element.
  • an embodiment of the present application provides a data acquisition device, which has a function of implementing the data acquisition method of any one of the first aspects.
  • This function can be realized by hardware, and can also be implemented by hardware executing corresponding software.
  • the hardware or software includes one or more modules corresponding to the above functions.
  • a data acquisition device including: a processor and a memory; the memory is configured to store computer execution instructions, and when the data acquisition device is running, the processor executes the computer execution instructions stored in the memory so that The data acquisition device executes the data acquisition method according to any one of the first aspects.
  • a data acquisition device including: a processor; the processor is coupled to the memory and reads instructions in the memory, and then executes the data acquisition method according to any one of the first aspects according to the instructions.
  • a computer-readable storage medium stores instructions that, when run on a computer, enable the computer to execute the data collection method of any one of the first aspects.
  • a computer program product containing instructions which, when run on a computer, enables the computer to execute the data collection method of any one of the above-mentioned first aspects.
  • a circuit system includes a processing circuit configured to execute the data acquisition method according to any one of the first aspects.
  • a chip includes a processor, and the processor is coupled to a memory.
  • the memory stores program instructions.
  • the program instructions stored in the memory are executed by the processor to implement the first chip.
  • the data collection method according to any one of the aspects.
  • the technical effects brought by any one of the design methods in the second aspect to the ninth aspect can refer to the technical effects brought by the different design methods in the first aspect, and are not repeated here.
  • FIG. 1 is a schematic diagram of the architecture of a traditional data acquisition system
  • FIG. 2 is a schematic structural diagram of a data acquisition system according to an embodiment of the present application.
  • FIG. 3 is a schematic structural diagram of a data acquisition system according to an embodiment of the present application.
  • FIG. 4 is a schematic structural diagram of a data acquisition device according to an embodiment of the present application.
  • FIG. 5 is a flowchart of a data collection preprocessing method according to an embodiment of the present application.
  • FIG. 6 is a schematic diagram of a version negotiation message according to an embodiment of the present application.
  • FIG. 7 is a flowchart of another data collection and preprocessing method according to an embodiment of the present application.
  • FIG. 8 is a first method flowchart of a data collection method according to an embodiment of the present application.
  • FIG. 9 is a second method flowchart of a data collection method according to an embodiment of the present application.
  • FIG. 10 is a schematic structural diagram of a data acquisition device according to an embodiment of the present application.
  • first and “second” in the specification of the present application and the drawings are used to distinguish different objects, or to distinguish different processes on the same object, rather than to describe a specific order of the objects.
  • the terms “including” and “having” as well as any variants thereof mentioned in the description of the present application are intended to cover non-exclusive inclusion.
  • a process, method, system, product, or device that contains a series of steps or units is not limited to the listed steps or units, but optionally also includes other steps or units not listed, or optionally also Include other steps or units inherent to these processes, methods, products, or equipment.
  • words such as “exemplary” or “for example” are used as examples, illustrations or illustrations.
  • the system includes an Internet detailed record server (Internet Protocol Record Server, IPDR Server), a media access control management network element (MAC Manager, also referred to herein as a MAC controller), and a remote media access control.
  • IPDR Server Internet Protocol Record Server
  • MAC Manager media access control management network element
  • CM Physical layer
  • R-MACPHY Remote Media Access Control and Physical
  • the IPDR server is located at the aggregation layer and is used to manage at least one MAC Manager (only one is shown as an example in the figure).
  • MAC Manager is used to manage at least one remote entity.
  • the form of the remote entity may be different under different networking architectures.
  • the MAC layer and PHY layer functions of the CMTS are separated and deployed in different locations.
  • the PHY layer function of the CMTS is sunk to the user side to form the R-PHY entity (to simplify the description, the R-PHY entity is referred to as R-PHY hereinafter), and the R-PHY entity is responsible for the PHY layer processing.
  • the function of the MAC layer is retained at the central office side, forming an R-MAC entity (for simplicity of description, the R-MAC entity is hereinafter referred to simply as R-MAC), and the R-MAC entity is responsible for MAC layer processing.
  • R-MAC the R-MAC entity
  • the MAC Manager directly manages at least one R-MAC (only one is exemplarily shown in FIG. 2), and the R-MAC manages at least one R-PHY.
  • the functions of the MAC layer and the PHY layer of the CMTS are sunk to the user side to form the R-MACPHY entity (to simplify the description, the R-MACPHY entity is referred to as R-MACPHY hereinafter), and the R-MACPHY MACPHY is responsible for MAC layer and PHY layer processing. Therefore, in this architecture, at least one R-MACPHY is directly managed by the MAC Manager (only one is exemplarily shown in FIG. 2).
  • the R-PHY or R-MACPHY is located in the access layer and is used to manage at least one CM (the case where each R-MACPHY or R-PHY manages one CM is exemplarily shown in FIG. 2).
  • the CM is located in the user's home and is used to manage at least one CPE.
  • the CPE located in the user's home, is used to connect user terminals and provide users with integrated access to services such as home cable broadband, Internet Protocol Television (IPTV), and Voice over Internet Protocol (VOIP).
  • the CPE involved in the embodiments of the present application may include various devices having an access function, such as a digital video conversion box (Set Top Box, STB), a home gateway, and the like.
  • the user terminal may be, for example, a cable TV, or a wearable device, a computing device, a personal digital assistant (PDA) computer, a tablet computer, a laptop computer, and a machine type communication, MTC) terminal, user equipment (UE), and so on.
  • PDA personal digital assistant
  • MTC machine type communication
  • UE user equipment
  • the following mainly uses the R-PHY architecture as an example to describe the data transmission method of the system of FIG. 2.
  • the downlink data is sent by the IPDR server to the MAC manager, and then sent by the MAC manager to the R-PHY through the R-MAC.
  • the R-PHY demodulates and decodes to obtain the original downlink data.
  • Re-encoding and modulation convert the original downlink data into a coaxial cable signal and send it to each connected CM, and the CM sends the coaxial cable signal to the CPE (such as a set-top box and / or a personal computer).
  • the CPE sends the uplink data to the CM, and the CM transmits the data to the R-PHY through a coaxial cable.
  • the R-PHY demodulates and decodes the data, and then encodes and modulates the data.
  • the shaft cable signal is converted into an optical fiber signal, which is then sent to the R-MAC by the R-PHY through the optical fiber.
  • the R-MAC uploads the downlink data to the IPDR server through the MAC Manager.
  • the names of the network elements in FIG. 2 are only examples, and the names of the network elements in the specific implementation may be other names, or the network elements may also be called entities, which is not specifically limited in the embodiment of the present application. All or part of the foregoing network elements may be physical physical network elements or virtualized network elements, which is not limited herein.
  • the network architecture and service scenarios described in the embodiments of the present application are intended to more clearly illustrate the technical solutions of the embodiments of the present application, and do not constitute a limitation on the technical solutions provided in the embodiments of the present application. With the evolution of the network architecture and the emergence of new service scenarios, the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems.
  • an embodiment of the present application provides a data acquisition system, which includes a third network element 303, a second network element 302, and a first network element 301.
  • the first network element 301 is configured to collect data from the CM, and the collected data includes CM operating status, CM-related charging information, spectrum information of uplink and downlink channels of the link where the CM is located, and debugging information of the CM.
  • the second network element 302 has an Internet Protocol (IP) layer function, and is configured to upload data collected by the first network element 301 to the third network element 303.
  • IP Internet Protocol
  • the second network element 302 and the first network element 301 have a second protocol interface
  • the second network element 302 and the third network element 303 have a first protocol interface.
  • the second network element 302 and the first network element 301 use the second interface protocol to encapsulate communication data when communicating
  • the second network element 302 and the third network element 303 use the first interface protocol to encapsulate communication data when communicating.
  • the third network element 303 is configured to receive the collected data sent by the second network element 302 and upload the collected data to an upper network.
  • the data collection system provided in the embodiment of the present application may be applied to the system shown in FIG. 2 or a system with a similar architecture or a subsequent evolved system.
  • the first network element 301 described above The corresponding network element or entity may be the R-MAC and / or R-MACPHY in FIG. 2
  • the network element or entity corresponding to the above-mentioned second network element 302 may be the MAC manager in FIG. 2
  • the network element or entity corresponding to the network element 303 may be the IPDR server in FIG. 2.
  • the first network element 301, the second network element 302, and the third network element 303 in FIG. 3 may be implemented by multiple devices, and may also be implemented by one device, for example, different functions in one device may be implemented.
  • Module which is not specifically limited in the embodiment of the present application. It can be understood that the foregoing function module may be a network element in a hardware device, a software function running on a hardware device, or a virtualization function instantiated on a platform (for example, a cloud platform).
  • FIG. 4 is a schematic diagram of a hardware structure of a communication device according to an embodiment of the present application.
  • the communication device 400 includes at least one processor 401, a communication line 402, a memory 403, and at least one communication interface 404.
  • the processor 401 may be a general-purpose central processing unit (CPU), a microprocessor, an application-specific integrated circuit (ASIC), or one or more processors for controlling the execution of the program of the solution of the present application. integrated circuit.
  • CPU central processing unit
  • ASIC application-specific integrated circuit
  • the communication line 402 may include a path for transmitting information between the aforementioned components.
  • the communication interface 404 uses any device such as a transceiver to communicate with other devices or communication networks, such as Ethernet, radio access network (RAN), wireless local area networks (WLAN), etc. .
  • RAN radio access network
  • WLAN wireless local area networks
  • the memory 403 may be a read-only memory (ROM) or other types of static storage devices that can store static information and instructions, a random access memory (RAM) or other types that can store information and instructions
  • the dynamic storage device can also be electrically erasable programmable read-only memory (EEPROM-ready-only memory (EEPROM)), compact disc (read-only memory (CD-ROM)) or other optical disk storage, optical disk storage (Including compact discs, laser discs, optical discs, digital versatile discs, Blu-ray discs, etc.), magnetic disk storage media or other magnetic storage devices, or can be used to carry or store desired program code in the form of instructions or data structures and can be used by a computer Any other media accessed, but not limited to this.
  • the memory may exist independently, and is connected to the processor through the communication line 402. The memory can also be integrated with the processor.
  • the memory 403 is configured to store computer execution instructions for executing the solutions in the embodiments of the present application, and the execution is controlled by the processor 401.
  • the processor 401 is configured to execute computer execution instructions stored in the memory 403, so as to implement the data collection method provided in the following embodiments of the present application.
  • the memory 403 is used to store two tables shown in FIG. 4, namely, the association relationship between the IPDR server and the R-MACPHY, and the IPDR protocol versions supported by the IPDR server and the R-MACPHY, respectively.
  • the computer-executable instructions in the embodiments of the present application may also be referred to as application program codes, which are not specifically limited in the embodiments of the present application.
  • the processor 401 may include one or more CPUs, such as CPU0 and CPU1 in FIG. 4.
  • the communication device 400 may include multiple processors, such as the processor 401 and the processor 405. Each of these processors may be a single-CPU processor or a multi-CPU processor.
  • a processor herein may refer to one or more devices, circuits, and / or processing cores for processing data (such as computer program instructions).
  • FIG. 4 only shows an exemplary hardware structure diagram of a communication device.
  • the communication device 400 may further include other components. Limitation.
  • the above-mentioned communication device 400 may be a general-purpose device or a special-purpose device.
  • the communication device 400 may be a device having a similar structure as in FIG. 4.
  • the embodiment of the present application does not limit the type of the communication device 400.
  • the second network element and the third network element adopt a first interface protocol for communication, and the first interface protocol may be an IPDR protocol.
  • the second network element communicates with the first network element using a second interface protocol, and the second interface protocol may be an IPDR protocol or a non-IPDR protocol.
  • non-IPDR protocols include restconf protocol, netconf protocol, SNMP protocol, and RPC protocol.
  • the RPC protocol includes but is not limited to Google Remote Procedure Call (GRPC) GRPC protocol, Apache Thrift and so on.
  • the pre-processing flow of the embodiment of the present application is given.
  • the IPDR server sends a first version negotiation request (Version Request) to the MAC Manager.
  • the MAC Manager receives the first version negotiation request sent by the IPDR Server.
  • the first version negotiation request is used to request to negotiate a first protocol version, and the first protocol version is an IPDR protocol version between the MAC Manager and the IPDR Server.
  • the fields included in the first version negotiation request message sent by the IPDR Server include a request ID (IDentity, ID) field, which occupies 4 bytes, a request time field, and an IPDR version field of the IPDR Server.
  • request ID IDentity, ID
  • the MAC Manager sends a first version negotiation response to the IPDR Server.
  • the IPDR Server receives the first version negotiation response sent by the MAC Manager.
  • the first version negotiation response carries the first protocol version.
  • the first version negotiation response message sent by the MAC Manager includes the following fields: the transmission type field of the MAC Manager, the IPDR protocol version field of the MAC Manager, and the port number used by the MAC Manager Fields, reserved words, and fields to indicate additional information.
  • the transmission type is used to indicate the transport layer protocol defined by the TCP / IP protocol.
  • the above S501 and S502 are the IPDR protocol version negotiation process between the MAC Manager and the IPDR server, and may also be referred to herein as the first protocol version negotiation process.
  • the MAC Manager can also actively initiate the protocol negotiation process, that is, the MAC Manager sends a first version negotiation request to the IPDR Server and receives the first version negotiation response sent by the IPDR Server.
  • the embodiment of the present application does not limit specific devices that actively initiate a protocol negotiation process.
  • the MAC Manager sends a second version negotiation request to the R-MACPHY.
  • the R-MACPHY receives the second version negotiation request sent by the MAC Manager.
  • the second version negotiation request is used to request to negotiate a second protocol version, and the second protocol version is an IPDR protocol version between the MAC Manager and the R-MACPHY.
  • the R-MACPHY sends a second version negotiation response to the MAC Manager.
  • the MAC Manager receives the second version negotiation response sent by the R-MACPHY.
  • the second version negotiation response carries a second protocol version.
  • S503 and S504 are processes for negotiating the IPDR protocol version between the R-MACPHY and the MAC Manager, and may also be referred to herein as a second protocol version negotiation process.
  • the R-MACPHY can initiate the protocol version negotiation process with the MAC Manager.
  • the first protocol version negotiation process and the second protocol version negotiation process are performed independently. This means that when the MAC Manager actively initiates the negotiation process in the first protocol version negotiation process, the MAC Manager in the second protocol version negotiation process can actively initiate the negotiation process or passively receive the R-MACPHY version negotiation response.
  • the IPDR Server In the case where the IPDR Server works in the active mode, the IPDR Server sends a TCP connection request to the MAC Manager.
  • the MAC Manager receives the TCP connection request sent by the IPDR Server.
  • the TCP connection request is used to request to establish a TCP connection between the IPDR Server and the MAC Manager.
  • a TCP connection between the peers is usually established through a three-way handshake.
  • the schematic process of the three-way handshake is shown in FIG. 5.
  • the TCP connection between the MAC Manager and the IPDR Server was successfully established.
  • the MAC Manager actively initiates a TCP connection request to the IPDR Server to establish a TCP connection with the IPDR Server.
  • the MAC Manager When the MAC Manager works in the active mode, the MAC Manager sends a TCP connection request to the R-MACPHY.
  • the R-MACPHY receives the TCP connection request sent by the MAC Manager.
  • the TCP connection request is used to request establishment of a TCP connection between the MAC Manager and the R-MACPHY.
  • S506 can also be implemented as: R-MACPHY sends a TCP connection request to the MAC Manager to establish a TCP connection with the MAC Manager.
  • the IPDR Server sends an IPDR connection request to the MAC Manager.
  • the MAC Manager receives the IPDR connection request sent by the IPDR Server.
  • the IPDR connection request is used to request to establish an IPDR connection between the IPDR server and the MAC manager.
  • the MAC Manager sends an IPDR connection response to the IPDR Server.
  • S507 and S508 are procedures for establishing an IPDR connection between the MAC Manager and the IPDR Server.
  • the MACDR Manager can actively initiate an IPDR connection request.
  • S507 and S508 may be implemented as follows: The MAC Manager sends an IPDR connection request to the IPDR Server, and receives the IPDR connection response sent by the IPDR Server.
  • the R-MACPHY receives the IPDR connection request sent by the MAC Manager.
  • the IPDR connection request is used to request the establishment of an IPDR connection between the MAC Manager and the R-MACPHY.
  • the R-MACPHY sends an IPDR connection response to the MAC Manager.
  • the MAC Manager receives the IPDR connection response sent by the R-MACPHY.
  • S509 and S510 can be implemented as follows: R-MACPHY sends an IPDR connection request to the MAC Manager and receives an IPDR connection response sent by the MAC Manager.
  • the IPDR server sends a session query request to the MAC Manager.
  • the MAC Manager receives the session query request sent by the IPDR Server.
  • the session query request is used to request to query a session associated with the R-MACPHY.
  • the MAC Manager sends a session query response to the IPDR Server.
  • the IPDR Server receives the session query response sent by the MAC Manager.
  • the session query response carries a session associated with the R-MACPHY.
  • S512 may be directly executed to feed back the session query response to the IPDR Server.
  • the MAC Manager sends a session query request to the R-MACPHY (S513) and receives the session query sent by the R-MACPHY A response (S514), and sends the session query response to the IPDR server (S515).
  • the other pre-processing process includes the following steps:
  • the IPDR server sends a first version negotiation request (Version Request) to the MAC manager.
  • the MAC Manager receives the first version negotiation request sent by the IPDR Server.
  • the MAC manager sends a first version negotiation response (Version Response) to the IPDR server.
  • the IPDR Server receives the first version negotiation response sent by the MAC Manager.
  • the IPDR Server works in the active mode, the IPDR Server sends a TCP connection request to the MAC Manager.
  • the MAC Manager receives the TCP connection request sent by the IPDR Server.
  • the IPDR server sends an IPDR connection request to the MAC Manager.
  • the MAC Manager receives the IPDR connection request sent by the IPDR Server.
  • the MAC Manager sends an IPDR connection response to the IPDR Server.
  • the IPDR server receives the IPDR connection response sent by the MAC Manager.
  • the IPDR server sends a session query request to the MAC manager.
  • the MAC Manager receives the session query request sent by the IPDR Server.
  • the MAC Manager sends a session query response to the IPDR Server.
  • the IPDR Server receives the session query response sent by the MAC Manager.
  • the embodiment of the present application provides a data collection method.
  • the second interface protocol is the IPDR protocol, based on the preprocessing process shown in FIG. 5, and as shown in FIG. 8, the data collection method provided in the embodiment of the present application, It includes the following steps:
  • the IPDR server sends a first message encapsulated in a first interface protocol format to the MAC manager.
  • the MAC Manager receives the first message sent by the IPDR Server.
  • the first interface protocol is the IPDR protocol.
  • the first message may be an IPDR session control message, and the first message carries an IPDR server identifier and is used to address an R-MACPHY associated with the IPDR server.
  • the IPDR server identification includes but is not limited to the IP address of the IPDR server and the MAC address of the IPDR server identification.
  • the MAC manager encapsulates the first message according to the second interface protocol format to obtain the second message.
  • the MAC Manager learns that the first protocol version is different from the second protocol version after the protocol version negotiation.
  • S802 can be implemented as follows: The MAC Manager encapsulates the first message from the first The encapsulation format corresponding to the protocol version is changed to the encapsulation format corresponding to the second protocol version to obtain a second message.
  • the first message carries the IPDR server identifier, and accordingly, the re-encapsulated second message also carries the IPDR server identifier.
  • the MAC Manager finds that the IPDR protocol version between the MAC Manager and the IPDR Server is IPDR 2.0, and the IPDR protocol version between the MAC Manager and the R-MACPHY is IPDR 1.0. Subsequently, the MAC Manager receives the first message of the IPDR 2.0 version, parses the first message, and repackages the first message according to the format of the IPDR 1.0 to obtain the second message.
  • the MAC manager determines at least one R-MACPHY associated with the IPDR server according to the second message.
  • the MAC Manager stores the association relationship between the IPDR server and the R-MACPHY.
  • the memory 403 of the MAC Manager stores an association table of the IPDR server ID and the R-MACPHY ID.
  • the MAC Manager may query the stored association table according to the IPDR server identifier carried in the second message to determine one or more R-MACPHYs to which the IPDR server is associated.
  • the MAC manager sends a second message to at least one R-MACPHY, respectively.
  • the R-MACPHY receives the second message from the MAC Manager.
  • the second message is used to request data collected by at least one R-MACPHY.
  • the R-MACPHY sends the first data encapsulated in the second interface protocol format to the MAC Manager.
  • the MAC Manager receives the first data sent by the R-MACPHY.
  • the first data includes, but is not limited to, the CM operating state, CM-related charging information, spectrum information of uplink and downlink channels of the link where the CM is located, and debugging information of the CM.
  • the first data carries an R-MACPHY identifier and is used to address an IPDR server associated with the R-MACPHY.
  • the MAC Manager encapsulates the first data according to the first interface protocol format to obtain the second data.
  • the first protocol version between the MAC Manager and the IPDR server is different from the second protocol version between the MAC Manager and the R-MACPHY.
  • S806 can be implemented as follows: The MAC Manager converts the first data encapsulation format from the second protocol version. The corresponding encapsulation format is modified to the encapsulation format corresponding to the first protocol version to obtain second data, where the second data carries the R-MACPHY identifier.
  • the MAC manager determines the IPDR server associated with the R-MACPHY according to the second data.
  • the MAC Manager queries the association table shown in FIG. 4 according to the R-MACPHY identifier carried in the second data to determine the IPDR Server associated with the R-MACPHY.
  • the MAC Manager sends the second data to the IPDR Server.
  • the second network element after receiving the first message encapsulated in the first interface protocol format sent by the third network element, the second network element repackages the first message according to the second interface protocol format to obtain the first message. Two messages and sending the second message to the first network element to trigger the first network element to send the collected first data to the second network element. After obtaining the first data, the second network element repackages the first data according to the first interface protocol format to obtain the second data, so that the second data can be carried in the transmission channel between the second network element and the third network element, Thus, the data collected by the first network element is successfully transmitted to the third network element via the second network element.
  • each segment of the transmission channel can transmit data or messages consistent with the format of the channel, which improves the probability of successfully transmitting data or messages in the channel, thereby improving the success rate of data collection.
  • An embodiment of the present application further provides a data collection method.
  • the data collection method includes the following steps: :
  • the IPDR server sends a first message encapsulated in a first interface protocol format to the MAC Manager.
  • the MAC Manager receives the first message sent by the IPDR Server.
  • the MAC Manager encapsulates the first message according to the second interface protocol format to obtain a second message.
  • S902 can be implemented as follows: The MAC Manager changes the encapsulation format of the first message from the encapsulation format corresponding to the first protocol version to the corresponding one of the second interface protocols except the IPDR protocol (that is, non-IPDR protocol). Encapsulated format to get the second message.
  • IPDR protocol that is, non-IPDR protocol
  • the second interface protocol is the GRPC protocol.
  • the IPDR protocol version between the MAC Manager and the IPDR Server is IPDR 2.0.
  • the MAC Manager receives the first message of the IPDR 2.0 version, parses the first message, and repackages the first message according to the GRPC format to obtain the second message.
  • the MAC manager determines at least one R-MACPHY associated with the IPDR server according to the second message.
  • the MAC Manager establishes a connection with the R-MACPHY.
  • the MAC Manager establishes a GRPC connection with the R-MACPHY.
  • the MAC Manager can establish a GRPC connection with the R-MACPHY in any of the following two ways:
  • Method 1 The MAC Manager actively sends a GRPC connection request to the R-MACPHY to establish a GRPC connection.
  • R-MACPHY can collect data periodically and upload the collected data to a designated device. If the specified device is not configured, R-MACPHY uploads the collected data to MAC Manager by default. And, in the method 1, if the GRPC connection between the MAC Manager and the R-MACPHY is disconnected, the R-MACPHY no longer pushes the collected data upwards.
  • Method 2 The MAC Manager receives a GRPC connection request initiated by the R-MACPHY to establish a GRPC connection with the R-MACPHY.
  • R-MACPHY will retry to establish a GRPC connection and upload the collected data to the MAC Manager.
  • the MAC Manager can also trigger the action of establishing a connection with the R-MACPHY after receiving the first message (ie, S901) from the IPDR Server, or it can be executed after S902 or simultaneously with S902.
  • S901 the first message
  • S902 the first message
  • S904 the execution timing of S904 is restricted.
  • the R-MACPHY receives the second message from the IPDR server.
  • the R-MACPHY sends the first data encapsulated in the second interface protocol format to the MAC Manager.
  • the MAC Manager receives the first data sent by the R-MACPHY.
  • the MAC Manager encapsulates the first data according to the first interface protocol format to obtain the second data.
  • S907 can be implemented as follows:
  • the MAC Manager changes the encapsulation format of the first data from the encapsulation format corresponding to any protocol in the second interface protocol except the IPDR protocol to the encapsulation format corresponding to the first protocol version to obtain the second data.
  • the second interface protocol is the GRPC protocol and the first protocol version is IPDR 2.0
  • the MAC Manager decapsulates the first data after receiving the first data in the GRPC format, and decapsulates the first data. Re-encapsulate according to the IPDR 2.0 format to obtain the second data.
  • the MAC manager determines the IPDR server associated with the R-MACPHY according to the second data.
  • the MAC Manager sends the second data to the IPDR Server.
  • data or messages encapsulated in the IPDR protocol format are transmitted between the second network element and the third network element, and data or messages encapsulated in the non-IPDR protocol format are transmitted between the second network element and the third network element, so that The data or message format is adapted to the transmission channel carrying the data or message, and the success rate of data collection is improved.
  • the first interface protocol in the embodiment of the present application is not limited to the IPDR protocol, and may also be an evolved protocol of the IPDR protocol, or another protocol having the same function as the IPDR protocol.
  • the second interface protocol is not limited to the above-listed protocols, but may also be an evolved version of the listed protocols, or other protocols having the same functions as the listed protocols.
  • the network element in the embodiment of the present application includes a hardware structure and / or a software module corresponding to each function.
  • the embodiments of this application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a certain function is performed by hardware or computer software-driven hardware depends on the specific application of the technical solution and design constraints. Those skilled in the art may use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the technical solutions of the embodiments of the present application.
  • each functional unit may be divided corresponding to each function, or two or more functions may be integrated into one processing unit.
  • the above integrated unit may be implemented in the form of hardware or in the form of software functional unit. It should be noted that the division of the units in the embodiments of the present application is schematic, and is only a logical function division. There may be another division manner in actual implementation.
  • FIG. 10 shows a schematic block diagram of a data acquisition device provided in an embodiment of the present application, and the data acquisition device may be the foregoing second network element.
  • the data acquisition device 1000 may exist in the form of software, or may be a chip that can be used in a device.
  • the data acquisition device 1000 includes a processing unit 1002 and a communication unit 1003.
  • the processing unit 1002 may be used to support the second network element to perform S802, S803, S806, S807 in FIG. 8, S902, S903, S907, S908, etc. in FIG. 9, and / or other processes for the scheme described herein .
  • the communication unit 1003 is configured to support communication between the second network element and other network elements (for example, the first network element and the third network element described above).
  • the second network element supports S501 to S512 in FIG. 5 and FIG. 7. S701 to S707, S801, S804, S805, and S808 in FIG. 8, S901, S904, S905, S906, and S909 in FIG. 9.
  • the data acquisition device 1000 may further include a storage unit 1001 for storing program codes and data of the data acquisition device 1000.
  • the data may include, but is not limited to, original data or intermediate data.
  • the processing unit 1002 may be a controller or the processor 401 or the processor 405 shown in FIG. 4, for example, it may be a central processing unit (CPU), a general-purpose processor, and digital signal processing ( Digital Signal Processing (DSP), Application Specific Integrated Circuit (ASIC), Field-Programmable Gate Array (FPGA) or other programmable logic devices, transistor logic devices, hardware components or any of them combination. It may implement or execute various exemplary logical blocks, modules, and circuits described in connection with the present disclosure.
  • the processor may also be a combination that implements computing functions, such as a combination including one or more microprocessors, a combination of a DSP and a microprocessor, and so on.
  • the communication unit 1003 may be a transceiver, a transceiver circuit, or the communication interface 404 shown in FIG. 4 and the like.
  • the storage unit 1001 may be a memory 403 shown in FIG. 4.
  • the computer program product includes one or more computer instructions.
  • the computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices.
  • the computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be from a website site, computer, server, or data center Transmission to another website site, computer, server or data center via wired (such as coaxial cable, optical fiber, Digital Subscriber Line (DSL)) or wireless (such as infrared, wireless, microwave, etc.).
  • the computer-readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server, a data center, and the like including one or more available medium integration.
  • the usable medium may be a magnetic medium (for example, a floppy disk, a hard disk, a magnetic tape), an optical medium (for example, a Digital Video Disc (DVD)), or a semiconductor medium (for example, a solid state disk (Solid State Disk, SSD)) )Wait.
  • a magnetic medium for example, a floppy disk, a hard disk, a magnetic tape
  • an optical medium for example, a Digital Video Disc (DVD)
  • DVD Digital Video Disc
  • semiconductor medium for example, a solid state disk (Solid State Disk, SSD)
  • the disclosed systems, devices, and methods may be implemented in other ways.
  • the device embodiments described above are only schematic.
  • the division of the unit is only a logical function division.
  • multiple units or components may be combined or Can be integrated into another system, or some features can be ignored or not implemented.
  • the displayed or discussed mutual coupling or direct coupling or communication connection may be indirect coupling or communication connection through some interfaces, devices or units, and may be electrical or other forms.
  • the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, which may be located in one place, or may be distributed to multiple network devices (for example, Terminal device). Some or all of the units may be selected according to actual needs to achieve the objective of the solution of this embodiment.
  • each functional unit in each embodiment of the present application may be integrated into one processing unit, or each functional unit may exist independently, or two or more units may be integrated into one unit.
  • the above integrated unit may be implemented in the form of hardware, or in the form of hardware plus software functional units.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Communication Control (AREA)

Abstract

A data collection method and apparatus, relating to the technical field of communications and used for executing a data collection procedure in a new networking architecture. The method comprises: a second network element receiving a first message sent by a third network element and encapsulated in the format of a first interface protocol (S801), and encapsulating the first message in the format of a second interface protocol to obtain a second message (S802), wherein the first interface protocol is an IPDR protocol, and the second interface protocol comprises a restconf protocol, a netconf protocol, an SNMP and an RPC protocol; the second network element determining, according to the second message, at least one first network element associated with the third network element, and respectively sending the second message to the at least one first network element (S804); the second network element receiving first data sent by the first network element and encapsulated in the format of the second interface protocol (S805), and encapsulating the first data in the format of the first interface protocol to obtain second data (S806); and the second network element determining, according to the second data, the third network element associated with the first network element (S807), and sending the second data to the third network element (S808).

Description

数据采集方法及装置Data acquisition method and device 技术领域Technical field
本申请涉及通信技术领域,尤其涉及一种数据采集的方法及装置。The present application relates to the field of communication technologies, and in particular, to a method and device for data collection.
背景技术Background technique
目前,在CMTS组网架构中,营运商可以利用CMTS设备采集用户侧设备(例如电缆调制解调器(Cable Modem,CM))的数据,例如CM的运行状态,CM所连接的不同用户终端的业务类型,以便于营运商掌握不同用户终端的业务情况,并根据不同用户终端的业务情况实现计费、故障定位、网络运行状态的分析。At present, in the CMTS networking architecture, operators can use CMTS equipment to collect data from user-side equipment (such as Cable Modem (CM)), such as the operating status of the CM, and the types of services of different user terminals connected to the CM. In order to facilitate operators to grasp the business conditions of different user terminals, and to analyze the billing, fault location and network operation status according to the business conditions of different user terminals.
图1给出一种传统的CMTS组网架构,OLT部署于局端中心机房,用于管理多个CMTS设备(图中仅示例性的示出一个CMTS),CMTS设备部署于小区机房,用于管理多个CM,CM部署于用户家中,每一CM可连接多个用户驻地设备(Custrom Premises Equipment,CPE),比如,CM可用于连接用户的手机、电脑、有线电视等。在图1所示的组网架构中,由CMTS设备采集各个CM的数据,并向OLT上传所采集的CM数据,再由OLT将CM数据上传至营运商服务器。Figure 1 shows a traditional CMTS networking architecture. The OLT is deployed in the central office room to manage multiple CMTS devices (only one CMTS is shown as an example in the figure). The CMTS device is deployed in the residential room. Manage multiple CMs. CMs are deployed in users 'homes. Each CM can be connected to multiple customer premise equipment (CPE). For example, CMs can be used to connect users' mobile phones, computers, and cable television. In the networking architecture shown in FIG. 1, the CMTS device collects the data of each CM, uploads the collected CM data to the OLT, and the OLT uploads the CM data to the operator server.
为适应更高的业务需求,业界提出了新的组网架构,在新组网架构中,可对CMTS的不同功能进行分离,并部署在不同位置。比如,可将下行CMTS PHY层处理与CMTS MAC层处理分离开,并部署在不同的位置,或者将上、下行CMTS PHY层处理均与CMTS MAC层处理分离开,部署在不同的位置。其中,CMTS PHY层处理装置与CMTS MAC层处理装置之间通过光纤连接。这种连接方式一般称为远端物理层(Remote Physical,R-PHY)架构。In order to meet higher business requirements, the industry has proposed a new networking architecture. In the new networking architecture, different functions of the CMTS can be separated and deployed in different locations. For example, the downstream CMTS and PHY layer processing can be separated from the CMTS and MAC layer processing and deployed at different locations, or the upstream and downstream CMTS and PHY layer processing can be separated from the CMTS and MAC layer processing and deployed at different locations. Among them, the CMTS processing unit and the CMTS processing unit are connected by optical fibers. This connection method is generally called a remote physical layer (Remote Physical) (R-PHY) architecture.
可见,由于新的组网架构相比于传统的CMTS组网架构来说,网元构成、网元位置、网元功能均改动较大,因此,传统CMTS组网架构中的数据采集技术已无法适用于新的组网架构。It can be seen that because the new network architecture has a larger change in network element composition, network element location, and network element functions than the traditional CMTS network architecture, the data collection technology in the traditional CMTS network architecture is no longer available. Applicable to the new networking architecture.
发明内容Summary of the invention
本申请实施例提供一种数据采集方法及装置,可以在新的组网架构中执行数据采集流程。The embodiments of the present application provide a data collection method and device, which can execute a data collection process in a new networking architecture.
为达到上述目的,本申请实施例采用如下技术方案:To achieve the above purpose, the embodiments of the present application adopt the following technical solutions:
第一方面,本申请实施例提供一种数据采集方法,该方法包括:第二网元接收第三网元发送的以第一接口协议格式封装的第一消息,以及按照第二接口协议格式封装第一消息,得到第二消息。之后,第二网元根据第二消息确定第三网元所关联的至少一个第一网元,以及分别向至少一个第一网元发送第二消息。接收第一网元(该第一网元为至少一个第一网元中的任意一个第一网元)发送的以第二接口协议格式封装的第一数据,以及按照第一接口协议格式封装第一数据,得到第二数据,之后根据第二数据确定第一网元所关联的第三网元,以及向第三网元发送第二数据。According to a first aspect, an embodiment of the present application provides a data collection method. The method includes: a second network element receiving a first message encapsulated in a first interface protocol format sent by a third network element, and encapsulating according to a second interface protocol format. First message, get the second message. After that, the second network element determines at least one first network element associated with the third network element according to the second message, and sends a second message to the at least one first network element, respectively. Receiving first data encapsulated in a second interface protocol format sent by a first network element (the first network element is any one of at least one first network element), and encapsulating the first data in the first interface protocol format A piece of data to obtain second data, and then determine a third network element associated with the first network element according to the second data, and send the second data to the third network element.
其中,第一接口协议为互联网详细记录(Internet Protocol Detail Record,IPDR)协议,第二接口协议包括表征状态转移配置(restconf)协议、网络配置(netconf)协 议、简单网络管理协议(Simple Network Management Protocol,SNMP)、远程过程调用(Remote Procedure Call,RPC)协议;第二消息用于请求至少一个第一网元所采集的数据。Among them, the first interface protocol is the Internet Detailed Record (IPDR) protocol, and the second interface protocol includes a characterization state transfer configuration (restconf) protocol, a network configuration (netconf) protocol, and a simple network management protocol (Simple Network Management Protocol). (SNMP), Remote Procedure Call (RPC) protocol; the second message is used to request data collected by at least one first network element.
本申请实施例提供的数据采集方法,第二网元在接收到第三网元发送的以第一接口协议格式封装的第一消息后,按照第二接口协议格式封装第一消息,得到第二消息,并将第二消息发送至第一网元,以获取第一网元发送的第一数据。在获取第一数据后,第二网元按照第一接口协议格式封装该第一数据,得到第二数据,使得第二数据能够承载在第二网元与第三网元的传输通道中,从而第一网元采集的数据经由第二网元被成功传输至第三网元。可见,在本申请实施例的数据采集方法中,每一段传输通道均可以传输与该通道格式一致的数据或消息,提升了在通道中成功传输数据或消息的概率,从而提升数据采集的成功率。In the data collection method provided in the embodiment of the present application, after receiving the first message encapsulated in the first interface protocol format sent by the third network element, the second network element encapsulates the first message according to the second interface protocol format to obtain the second Message, and send a second message to the first network element to obtain first data sent by the first network element. After obtaining the first data, the second network element encapsulates the first data according to the first interface protocol format to obtain the second data, so that the second data can be carried in the transmission channel between the second network element and the third network element, thereby The data collected by the first network element is successfully transmitted to the third network element via the second network element. It can be seen that, in the data collection method of the embodiment of the present application, each segment of the transmission channel can transmit data or messages consistent with the format of the channel, which improves the probability of successfully transmitting data or messages in the channel, thereby improving the success rate of data collection .
在一种可能的设计中,在第二网元接收第三网元发送的以第一接口协议格式封装的第一消息之前,还可以执行如下步骤:第二网元接收第三网元发送的第一版本协商请求,第二网元向第三网元发送第一版本协商响应。In a possible design, before the second network element receives the first message sent by the third network element and encapsulated in the first interface protocol format, the following steps may be performed: the second network element receives the first message sent by the third network element. For the first version negotiation request, the second network element sends a first version negotiation response to the third network element.
其中,第一版本协商请求用于请求协商第一协议版本,第一协议版本为第二网元与第三网元之间的IPDR协议版本;第一版本协商响应携带第一协议版本。The first version negotiation request is used to request to negotiate the first protocol version. The first protocol version is an IPDR protocol version between the second network element and the third network element. The first version negotiation response carries the first protocol version.
需要说明的是,上述流程以第三网元主动发起版本协商请求为例来说明第三网元与第二网元之间协商IPDR协议版本的流程,除此之外,还可以由第二网元主动发起与第三网元之间的IPDR协议版本协商请求,具体的,第二网元向第三网元发送第一版本协商请求,并接收第三网元发送的第一版本协商响应。It should be noted that the above process uses the third network element to actively initiate a version negotiation request as an example to explain the process of negotiating the IPDR protocol version between the third network element and the second network element. In addition, the second network may also be used by the second network. The element actively initiates an IPDR protocol version negotiation request with the third network element. Specifically, the second network element sends a first version negotiation request to the third network element, and receives a first version negotiation response sent by the third network element.
在一种可能的设计中,在第二网元接收第三网元发送的以第一接口协议格式封装的第一消息之前,还可以执行如下步骤:In a possible design, before the second network element receives the first message sent by the third network element and encapsulated in the first interface protocol format, the following steps may be performed:
第二网元向第一网元发送第二版本协商请求,并接收第一网元发送的第二版本协商响应。The second network element sends a second version negotiation request to the first network element, and receives a second version negotiation response sent by the first network element.
其中,第二版本协商请求用于请求协商第二协议版本,第二协议版本为第二网元与第一网元之间的IPDR协议版本;第二版本协商响应携带第二协议版本。The second version negotiation request is used to request to negotiate a second protocol version. The second protocol version is an IPDR protocol version between the second network element and the first network element. The second version negotiation response carries the second protocol version.
上述流程中,第二网元主动发起与第一网元之间的IPDR协议版本协商请求,以协商与第一网元之间的IPDR协议版本。本申请实施例中还可以由第一网元主动发起该IPDR协议版本协商请求。具体的,第二网元接收第一网元发送的第二版本协商请求,并向第一网元发送第二版本协商响应。In the above process, the second network element actively initiates an IPDR protocol version negotiation request with the first network element to negotiate the IPDR protocol version with the first network element. In the embodiment of the present application, the first network element may also actively initiate the IPDR protocol version negotiation request. Specifically, the second network element receives the second version negotiation request sent by the first network element, and sends a second version negotiation response to the first network element.
需要说明的是,在本申请实施例提供的一种数据采集方法中,第二网元与第三网元之间通信时采用第一接口协议,该第一接口协议可以为IPDR协议,第二网元与第一网元之间通信时采用第二接口协议,该第二接口协议可以为IPDR协议。在这种场景中,第二网元按照第二接口协议格式封装第一消息,得到第二消息,具体可以实现为如下步骤:It should be noted that, in a data collection method provided in the embodiment of the present application, a first interface protocol is used when communicating between the second network element and the third network element, and the first interface protocol may be the IPDR protocol, and the second The network element and the first network element use a second interface protocol for communication, and the second interface protocol may be an IPDR protocol. In this scenario, the second network element encapsulates the first message according to the second interface protocol format to obtain the second message, which can be specifically implemented as follows:
若在上述IPDR协议版本协商流程的基础上,第二网元获知第一协议版本不同于第二协议版本,第二网元将第一消息的封装格式由第一协议版本对应的封装格式修改为第二协议版本对应的封装格式,得到第二消息。If, based on the IPDR protocol version negotiation process, the second network element learns that the first protocol version is different from the second protocol version, the second network element changes the encapsulation format of the first message from the encapsulation format corresponding to the first protocol version to An encapsulation format corresponding to the second protocol version to obtain a second message.
相应的,在第一接口协议和第二接口协议均为IPDR协议的场景中,第二网元按 照第一接口协议格式封装第一数据,得到第二数据,具体可以实现为:Correspondingly, in a scenario where the first interface protocol and the second interface protocol are both IPDR protocols, the second network element encapsulates the first data according to the format of the first interface protocol to obtain the second data, which can be specifically implemented as:
若第一协议版本不同于第二协议版本,第二网元将第一数据的封装格式由第二协议版本对应的封装格式修改为第一协议版本对应的封装格式,得到第二数据。If the first protocol version is different from the second protocol version, the second network element changes the encapsulation format of the first data from the encapsulation format corresponding to the second protocol version to the encapsulation format corresponding to the first protocol version to obtain the second data.
在另一种可能的设计中,第二网元与第三网元之间通信时采用的第一接口协议为IPDR协议,第二网元与第一网元之间通信时采用的第二接口协议可以为restconf、netconf、SNMP、SNMP协议中的任意一个。In another possible design, the first interface protocol used in the communication between the second network element and the third network element is the IPDR protocol, and the second interface used in the communication between the second network element and the first network element The protocol can be any of restconf, netconf, SNMP, and SNMP protocols.
相应的,第二网元按照第二接口协议格式封装第一消息,得到第二消息,具体可以实现为如下步骤:第二网元将第一消息的封装格式由第一协议版本对应的封装格式修改为第二接口协议中除IPDR协议之外的任一协议对应的封装格式,得到第二消息。Correspondingly, the second network element encapsulates the first message according to the second interface protocol format to obtain the second message, which can be specifically implemented as follows: The second network element encapsulates the first message's encapsulation format with the encapsulation format corresponding to the first protocol version. The second message is obtained by modifying the encapsulation format corresponding to any protocol other than the IPDR protocol in the second interface protocol.
相应的,第二网元按照第一接口协议格式封装第一数据,得到第二数据,具体可以实现为如下步骤:第二网元将第一数据的封装格式由第二接口协议中除IPDR协议之外的任一协议对应的封装格式修改为第一协议版本对应的封装格式,得到第二数据。Correspondingly, the second network element encapsulates the first data according to the first interface protocol format to obtain the second data, which can be specifically implemented as follows: the second network element divides the encapsulation format of the first data from the IPDR protocol by the second interface protocol The encapsulation format corresponding to any other protocol is modified to the encapsulation format corresponding to the first protocol version to obtain the second data.
在一种可能的设计中,在第二网元接收第三网元发送的以第一接口协议格式封装的第一消息之前,还可以执行如下步骤,以建立与第三网元之间的传输控制协议(Transmission Control Protocol,TCP)连接:In a possible design, before the second network element receives the first message encapsulated in the first interface protocol format sent by the third network element, the following steps may be performed to establish transmission with the third network element. Control Protocol (Transmission Control Protocol) TCP connection:
在第三网元工作在主动模式的情况下,第二网元接收第三网元发送的TCP连接请求,其中,TCP连接请求用于请求建立第三网元与第二网元之间的TCP连接;When the third network element works in the active mode, the second network element receives a TCP connection request sent by the third network element, where the TCP connection request is used to request establishment of a TCP between the third network element and the second network element connection;
或者,在一种可能的设计中,在第二网元接收第三网元发送的以第一接口协议格式封装的第一消息之前,还可以执行如下步骤,以建立与第三网元之间的传输控制协议(Transmission Control Protocol,TCP)连接:在第三网元工作在被动模式的情况下,第二网元向第三网元发送TCP连接请求。Or, in a possible design, before the second network element receives the first message encapsulated in the first interface protocol format sent by the third network element, the following steps may be performed to establish a connection with the third network element. Transmission Control Protocol (TCP) connection: When the third network element works in a passive mode, the second network element sends a TCP connection request to the third network element.
在一种可能的设计中,在第二网元接收第三网元发送的以第一接口协议格式封装的第一消息之前,第二网元执行如下步骤,以建立与第一网元之间的TCP连接:In a possible design, before the second network element receives the first message encapsulated in the first interface protocol format sent by the third network element, the second network element performs the following steps to establish a connection with the first network element. TCP connection:
在第二网元工作在主动模式的情况下,第二网元向第一网元发送TCP连接请求,TCP连接请求用于请求建立第二网元与第一网元间的TCP连接。When the second network element works in the active mode, the second network element sends a TCP connection request to the first network element, and the TCP connection request is used to request establishment of a TCP connection between the second network element and the first network element.
或者,在一种可能的设计中,在第二网元接收第三网元发送的以第一接口协议格式封装的第一消息之前,第二网元执行如下步骤,以建立与第一网元之间的TCP连接:在第二网元工作在被动模式的情况下,第二网元接收第一网元发送的TCP连接请求。Or, in a possible design, before the second network element receives the first message encapsulated in the first interface protocol format sent by the third network element, the second network element performs the following steps to establish a connection with the first network element. TCP connection between the two network elements: when the second network element works in the passive mode, the second network element receives the TCP connection request sent by the first network element.
在一种可能的设计中,在第二网元接收第三网元发送的以第一接口协议格式封装的第一消息之前,第二网元执行如下步骤,以建立与第三网元之间的IPDR连接:In a possible design, before the second network element receives the first message encapsulated in the first interface protocol format sent by the third network element, the second network element performs the following steps to establish a connection with the third network element. IPDR connection:
在第三网元工作在被动模式的情况下,第二网元向第三网元发送IPDR连接请求,并接收第三网元发送的IPDR连接响应。其中,IPDR连接请求用于请求建立第三网元与第二网元间的IPDR连接。When the third network element works in the passive mode, the second network element sends an IPDR connection request to the third network element, and receives the IPDR connection response sent by the third network element. The IPDR connection request is used to request to establish an IPDR connection between the third network element and the second network element.
或者,在一种可能的设计中,在第二网元接收第三网元发送的以第一接口协议格式封装的第一消息之前,第二网元执行如下步骤,以建立与第三网元之间的IPDR连接:在第三网元工作在主动模式的情况下,第二网元接收第三网元发送的IPDR连接请求,并向第三网元发送IPDR连接响应。Or, in a possible design, before the second network element receives the first message encapsulated in the first interface protocol format sent by the third network element, the second network element performs the following steps to establish a connection with the third network element. IPDR connection between: In the case where the third network element works in the active mode, the second network element receives the IPDR connection request sent by the third network element and sends an IPDR connection response to the third network element.
在一种可能的设计中,在第二网元接收第三网元发送的以第一接口协议格式封装的第一消息之前,第二网元执行如下步骤,以建立与第一网元之间的IPDR连接:在 第二网元工作在被动模式的情况下,第二网元接收第一网元发送IPDR连接请求,并向第三网元发送IPDR连接响应。其中,IPDR连接请求用于请求建立第一网元与第二网元间的IPDR连接。In a possible design, before the second network element receives the first message encapsulated in the first interface protocol format sent by the third network element, the second network element performs the following steps to establish a connection with the first network element. IPDR connection: When the second network element works in the passive mode, the second network element receives the IPDR connection request sent by the first network element and sends an IPDR connection response to the third network element. The IPDR connection request is used to request to establish an IPDR connection between the first network element and the second network element.
或者,在一种可能的设计中,在第二网元接收第三网元发送的以第一接口协议格式封装的第一消息之前,第二网元执行如下步骤,以建立与第一网元之间的IPDR连接:在第二网元工作在主动模式的情况下,第二网元向第一网元发送IPDR连接请求,并接收第一网元发送的IPDR连接响应。Or, in a possible design, before the second network element receives the first message encapsulated in the first interface protocol format sent by the third network element, the second network element performs the following steps to establish a connection with the first network element. IPDR connection between the two network elements: When the second network element works in the active mode, the second network element sends an IPDR connection request to the first network element, and receives the IPDR connection response sent by the first network element.
在一种可能的设计中,在第二网元接收第三网元发送的以第一接口协议格式封装的第一消息之前,第二网元还可以执行如下步骤:第二网元接收第三网元发送的会话查询请求,并向第三网元发送会话查询响应。其中,会话查询请求用于请求查询第一网元关联的会话;会话查询响应携带第一网元关联的会话。In a possible design, before the second network element receives the first message sent by the third network element and encapsulated in the first interface protocol format, the second network element may further perform the following steps: the second network element receives the third The session query request sent by the network element, and sends a session query response to the third network element. The session query request is used to request to query the session associated with the first network element; the session query response carries the session associated with the first network element.
在一种可能的设计中,在第二网元接收第三网元发送的以第一接口协议格式封装的第一消息之前,第二网元还可以执行如下步骤:In a possible design, before the second network element receives the first message sent by the third network element and encapsulated in the first interface protocol format, the second network element may further perform the following steps:
第二网元向第一网元发送会话查询请求,并接收第一网元发送的会话查询响应,会话查询响应携带第一网元所关联的会话,会话查询请求用于请求查询第一网元关联的会话。The second network element sends a session query request to the first network element, and receives a session query response sent by the first network element. The session query response carries a session associated with the first network element, and the session query request is used to request to query the first network element. Associated Session.
第二方面,本申请实施例提供一种数据采集装置,该装置设置有收发器和处理器。其中,收发器,用于接收第三网元发送的以第一接口协议格式封装的第一消息;处理器,用于按照第二接口协议格式封装收发器接收的第一消息,得到第二消息,第一接口协议为互联网详细记录IPDR协议,第二接口协议包括表征状态转移配置restconf协议、网络配置netconf协议、简单网络管理协议SNMP、远程过程调用RPC协议;处理器,还用于根据第二消息确定第三网元所关联的至少一个第一网元;收发器,还用于分别向至少一个第一网元发送第二消息,第二消息用于请求至少一个第一网元所采集的数据;接收第一网元发送的以第二接口协议格式封装的第一数据;处理器,还用于按照第一接口协议格式封装第一数据,得到第二数据,第一网元为至少一个第一网元中的任意一个第一网元;根据第二数据确定第一网元所关联的第三网元;收发器,还用于向第三网元发送第二数据。In a second aspect, an embodiment of the present application provides a data acquisition device. The device is provided with a transceiver and a processor. The transceiver is configured to receive the first message encapsulated in the first interface protocol format sent by the third network element; and the processor is configured to encapsulate the first message received by the transceiver according to the second interface protocol format to obtain the second message. The first interface protocol is the Internet detailed record IPDR protocol. The second interface protocol includes a state transfer configuration restconf protocol, a network configuration netconf protocol, a simple network management protocol SNMP, and a remote procedure call RPC protocol. The processor is also used to The message determines at least one first network element associated with the third network element; the transceiver is further configured to send a second message to the at least one first network element, respectively, and the second message is used to request the data collected by the at least one first network element Data; receiving the first data encapsulated in the second interface protocol format sent by the first network element; the processor is further configured to encapsulate the first data according to the first interface protocol format to obtain the second data, and the first network element is at least one Any one of the first network elements, the first network element; determining the third network element associated with the first network element according to the second data; the transceiver is further configured to send a signal to the third network element Transmitting the second data element.
在一种可能的设计中,收发器,还用于接收第三网元发送的第一版本协商请求,第一版本协商请求用于请求协商第一协议版本,第一协议版本为第二网元与第三网元之间的IPDR协议版本;向第三网元发送第一版本协商响应,第一版本协商响应携带第一协议版本。In a possible design, the transceiver is further configured to receive a first version negotiation request sent by a third network element. The first version negotiation request is used to request to negotiate a first protocol version, and the first protocol version is a second network element. IPDR protocol version with the third network element; sending a first version negotiation response to the third network element, where the first version negotiation response carries the first protocol version.
或者,在一种可能的设计中,收发器,还用于向第三网元发送第一版本协商请求;接收第三网元发送的第一版本协商响应。Or, in a possible design, the transceiver is further configured to send a first version negotiation request to a third network element; and receive a first version negotiation response sent by the third network element.
在一种可能的设计中,收发器,还用于向第一网元发送第二版本协商请求,第二版本协商请求用于请求协商第二协议版本,第二协议版本为第二网元与第一网元之间的IPDR协议版本;接收第一网元发送的第二版本协商响应,第二版本协商响应携带第二协议版本。In a possible design, the transceiver is further configured to send a second version negotiation request to the first network element, the second version negotiation request is used to request to negotiate a second protocol version, and the second protocol version is the second network element and The version of the IPDR protocol between the first network elements; receiving the second version negotiation response sent by the first network element, and the second version negotiation response carrying the second protocol version.
或者,在一种可能的设计中,收发器,还用于接收第一网元发送的第二版本协商请求;向第一网元发送第二版本协商响应。Alternatively, in a possible design, the transceiver is further configured to receive a second version negotiation request sent by the first network element; and send a second version negotiation response to the first network element.
当第二接口协议为IPDR协议时,在一种可能的设计中,处理器,用于按照第二接口协议格式封装第一消息,得到第二消息,包括:用于若第一协议版本不同于第二协议版本,将第一消息的封装格式由第一协议版本对应的封装格式修改为第二协议版本对应的封装格式,得到第二消息。When the second interface protocol is the IPDR protocol, in a possible design, the processor is configured to encapsulate the first message according to the second interface protocol format to obtain the second message, including: if the first protocol version is different from For the second protocol version, the encapsulation format of the first message is modified from the encapsulation format corresponding to the first protocol version to the encapsulation format corresponding to the second protocol version to obtain the second message.
在一种可能的设计中,处理器,用于按照第一接口协议格式封装第一数据,得到第二数据,包括:用于若第一协议版本不同于第二协议版本,将第一数据的封装格式由第二协议版本对应的封装格式修改为第一协议版本对应的封装格式,得到第二数据。In a possible design, the processor is configured to encapsulate the first data according to the first interface protocol format to obtain the second data, including: if the first protocol version is different from the second protocol version, The encapsulation format is changed from the encapsulation format corresponding to the second protocol version to the encapsulation format corresponding to the first protocol version to obtain the second data.
当第二接口协议为非IPDR协议时,在一种可能的设计中,处理器,用于按照第二接口协议格式封装第一消息,得到第二消息,包括:用于将第一消息的封装格式由第一协议版本对应的封装格式修改为第二接口协议中除IPDR协议之外的任一协议对应的封装格式,得到第二消息。When the second interface protocol is a non-IPDR protocol, in a possible design, the processor is configured to encapsulate the first message according to the second interface protocol format to obtain a second message, including: encapsulating the first message. The format is changed from the encapsulation format corresponding to the first protocol version to the encapsulation format corresponding to any protocol other than the IPDR protocol in the second interface protocol to obtain a second message.
在一种可能的设计中,处理器,用于按照第一接口协议格式封装第一数据,得到第二数据,包括:用于将第一数据的封装格式由第二接口协议中除IPDR协议之外的任一协议对应的封装格式修改为第一协议版本对应的封装格式,得到第二数据。In a possible design, the processor is configured to encapsulate the first data according to the first interface protocol format to obtain the second data, including: dividing the encapsulation format of the first data from the IPDR protocol by the second interface protocol. The encapsulation format corresponding to any external protocol is modified to the encapsulation format corresponding to the first protocol version to obtain the second data.
在一种可能的设计中,收发器,还用于在第三网元工作在主动模式的情况下,接收第三网元发送的传输控制协议TCP连接请求,TCP连接请求用于请求建立第三网元与第二网元之间的TCP连接。In a possible design, the transceiver is further configured to receive a Transmission Control Protocol TCP connection request sent by the third network element when the third network element works in an active mode, and the TCP connection request is used to request establishment of a third TCP connection between the network element and the second network element.
或者,在一种可能的设计中,收发器,还用于在第三网元工作在被动模式的情况下,向第三网元发送TCP连接请求。Or, in a possible design, the transceiver is further configured to send a TCP connection request to the third network element when the third network element works in the passive mode.
在一种可能的设计中,收发器,还用于在第二网元工作在主动模式的情况下,向第一网元发送TCP连接请求,TCP连接请求用于请求建立第二网元与第一网元间的TCP连接。In a possible design, the transceiver is further configured to send a TCP connection request to the first network element when the second network element works in an active mode, and the TCP connection request is used to request establishment of the second network element and the first network element. TCP connection between network elements.
或者,在一种可能的设计中,收发器,还用于在第二网元工作在被动模式的情况下,接收第一网元发送的TCP连接请求。Or, in a possible design, the transceiver is further configured to receive a TCP connection request sent by the first network element when the second network element works in a passive mode.
在一种可能的设计中,第二网元主动发起与第三网元之间的IPDR连接请求,收发器,还用于在第三网元工作在被动模式的情况下,向第三网元发送IPDR连接请求,接收第三网元发送的IPDR连接响应;IPDR连接请求用于请求建立第三网元与第二网元间的IPDR连接。In a possible design, the second network element actively initiates an IPDR connection request with the third network element, and the transceiver is further configured to send the third network element to the third network element when the third network element works in the passive mode. Send an IPDR connection request and receive an IPDR connection response sent by the third network element; the IPDR connection request is used to request the establishment of an IPDR connection between the third network element and the second network element.
或者,在一种可能的设计中,第二网元被动接收第三网元发起的IPDR连接请求,收发器,还用于在第三网元工作在主动模式的情况下,接收第三网元发送的IPDR连接请求;向第三网元发送IPDR连接响应。Or, in a possible design, the second network element passively receives an IPDR connection request initiated by the third network element, and the transceiver is further configured to receive the third network element when the third network element works in an active mode. The IPDR connection request sent; an IPDR connection response is sent to the third network element.
在一种可能的设计中,第二网元被动接收第一网元发起的IPDR连接请求,收发器,还用于在第二网元工作在被动模式的情况下,接收第一网元发送IPDR连接请求,向第三网元发送IPDR连接响应;IPDR连接请求用于请求建立第一网元与第二网元间的IPDR连接;In a possible design, the second network element passively receives the IPDR connection request initiated by the first network element, and the transceiver is further configured to receive the first network element to send the IPDR when the second network element works in the passive mode. A connection request, sending an IPDR connection response to the third network element; the IPDR connection request is used to request the establishment of an IPDR connection between the first network element and the second network element;
或者,在一种可能的设计中,第二网元主动发起与第一网元之间的IPDR连接请求,收发器,还用于在第二网元工作在主动模式的情况下,向第一网元发送IPDR连接请求;接收第一网元发送的IPDR连接响应。Or, in a possible design, the second network element actively initiates an IPDR connection request with the first network element, and the transceiver is further configured to send the first network element to the first network element when the second network element works in an active mode. The network element sends an IPDR connection request; receives the IPDR connection response sent by the first network element.
在一种可能的设计中,收发器,还用于接收第三网元发送的会话查询请求,向第 三网元发送会话查询响应;会话查询请求用于请求查询第一网元关联的会话;会话查询响应携带第一网元关联的会话。In a possible design, the transceiver is further configured to receive a session query request sent by a third network element, and send a session query response to the third network element; the session query request is used to request a query about a session associated with the first network element; The session query response carries the session associated with the first network element.
在一种可能的设计中,收发器,还用于向第一网元发送会话查询请求,接收第一网元发送的会话查询响应;会话查询请求用于请求查询第一网元关联的会话;会话查询响应携带第一网元所关联的会话。In a possible design, the transceiver is further configured to send a session query request to the first network element and receive a session query response sent by the first network element; the session query request is used to request a query about a session associated with the first network element; The session query response carries the session associated with the first network element.
第三方面,本申请实施例提供一种数据采集装置,该装置具有实现上述第一方面任一项的数据采集方法的功能。该功能可以通过硬件实现,也可以通过硬件执行相应的软件实现。该硬件或软件包括一个或多个与上述功能相对应的模块。In a third aspect, an embodiment of the present application provides a data acquisition device, which has a function of implementing the data acquisition method of any one of the first aspects. This function can be realized by hardware, and can also be implemented by hardware executing corresponding software. The hardware or software includes one or more modules corresponding to the above functions.
第四方面,提供一种数据采集装置,包括:处理器和存储器;该存储器用于存储计算机执行指令,当该数据采集装置运行时,该处理器执行该存储器存储的该计算机执行指令,以使该数据采集装置执行如上述第一方面中任一项的数据采集方法。According to a fourth aspect, a data acquisition device is provided, including: a processor and a memory; the memory is configured to store computer execution instructions, and when the data acquisition device is running, the processor executes the computer execution instructions stored in the memory so that The data acquisition device executes the data acquisition method according to any one of the first aspects.
第五方面,提供一种数据采集装置,包括:处理器;处理器用于与存储器耦合,并读取存储器中的指令之后,根据指令执行如上述第一方面中任一项的数据采集方法。According to a fifth aspect, a data acquisition device is provided, including: a processor; the processor is coupled to the memory and reads instructions in the memory, and then executes the data acquisition method according to any one of the first aspects according to the instructions.
第六方面,提供一种计算机可读存储介质,该计算机可读存储介质中存储有指令,当其在计算机上运行时,使得计算机可以执行上述第一方面中任一项的数据采集方法。According to a sixth aspect, a computer-readable storage medium is provided. The computer-readable storage medium stores instructions that, when run on a computer, enable the computer to execute the data collection method of any one of the first aspects.
第七方面,提供一种包含指令的计算机程序产品,当其在计算机上运行时,使得计算机可以执行上述第一方面中任一项的数据采集方法。According to a seventh aspect, a computer program product containing instructions is provided, which, when run on a computer, enables the computer to execute the data collection method of any one of the above-mentioned first aspects.
第八方面,提供一种电路系统,电路系统包括处理电路,处理电路被配置为执行如上述第一方面中任一项的数据采集方法。According to an eighth aspect, a circuit system is provided. The circuit system includes a processing circuit configured to execute the data acquisition method according to any one of the first aspects.
第九方面,提供一种芯片,所述芯片包括处理器,所述处理器和存储器耦合,所述存储器存储有程序指令,当所述存储器存储的程序指令被所述处理器执行时实现上述第一方面任意一项所述的数据采集方法。According to a ninth aspect, a chip is provided. The chip includes a processor, and the processor is coupled to a memory. The memory stores program instructions. The program instructions stored in the memory are executed by the processor to implement the first chip. The data collection method according to any one of the aspects.
其中,第二方面至第九方面中任一种设计方式所带来的技术效果可参见第一方面中不同设计方式所带来的技术效果,此处不再赘述。The technical effects brought by any one of the design methods in the second aspect to the ninth aspect can refer to the technical effects brought by the different design methods in the first aspect, and are not repeated here.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
图1为传统的数据采集系统的架构示意图;FIG. 1 is a schematic diagram of the architecture of a traditional data acquisition system;
图2为本申请实施例提供的数据采集系统的架构示意图;FIG. 2 is a schematic structural diagram of a data acquisition system according to an embodiment of the present application; FIG.
图3为本申请实施例提供的数据采集系统的架构示意图;FIG. 3 is a schematic structural diagram of a data acquisition system according to an embodiment of the present application; FIG.
图4为本申请实施例提供的数据采集装置的结构示意图;4 is a schematic structural diagram of a data acquisition device according to an embodiment of the present application;
图5为本申请实施例提供的数据采集预处理的方法流程图;FIG. 5 is a flowchart of a data collection preprocessing method according to an embodiment of the present application;
图6为本申请实施例提供的版本协商报文的示意图;6 is a schematic diagram of a version negotiation message according to an embodiment of the present application;
图7为本申请实施例提供的另一数据采集预处理的方法流程图;7 is a flowchart of another data collection and preprocessing method according to an embodiment of the present application;
图8为本申请实施例提供的数据采集方法的方法流程图一;FIG. 8 is a first method flowchart of a data collection method according to an embodiment of the present application; FIG.
图9为本申请实施例提供的数据采集方法的方法流程图二;9 is a second method flowchart of a data collection method according to an embodiment of the present application;
图10为本申请实施例提供的数据采集装置的结构示意图。FIG. 10 is a schematic structural diagram of a data acquisition device according to an embodiment of the present application.
具体实施方式detailed description
本申请的说明书以及附图中的术语“第一”和“第二”等是用于区别不同的对象,或者用于区别对同一对象的不同处理,而不是用于描述对象的特定顺序。此外,本申请的描述中所提到的术语“包括”和“具有”以及它们的任何变形,意图在于覆盖不 排他的包含。例如包含了一系列步骤或单元的过程、方法、系统、产品或设备没有限定于已列出的步骤或单元,而是可选地还包括其他没有列出的步骤或单元,或可选地还包括对于这些过程、方法、产品或设备固有的其它步骤或单元。需要说明的是,本申请实施例中,“示例性的”或者“例如”等词用于表示作例子、例证或说明。本申请实施例中被描述为“示例性的”或者“例如”的任何实施例或设计方案不应被解释为比其它实施例或设计方案更优选或更具优势。确切而言,使用“示例性的”或者“例如”等词旨在以具体方式呈现相关概念。The terms “first” and “second” in the specification of the present application and the drawings are used to distinguish different objects, or to distinguish different processes on the same object, rather than to describe a specific order of the objects. Furthermore, the terms "including" and "having" as well as any variants thereof mentioned in the description of the present application are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or device that contains a series of steps or units is not limited to the listed steps or units, but optionally also includes other steps or units not listed, or optionally also Include other steps or units inherent to these processes, methods, products, or equipment. It should be noted that, in the embodiments of the present application, words such as "exemplary" or "for example" are used as examples, illustrations or illustrations. Any embodiment or design described as “exemplary” or “for example” in the embodiments of the present application should not be construed as more preferred or more advantageous than other embodiments or designs. Rather, the use of the words "exemplary" or "for example" is intended to present the relevant concept in a concrete manner.
首先给出本申请实施例所涉及的系统架构如下:First, the system architecture involved in the embodiment of the present application is as follows:
如图2所示,该系统包括互联网详细记录服务器(Internet Protocol Detail Record Server,IPDR Server)、媒体接入控制管理网元(MAC Manager,本文中也称为MAC Controller)、远端媒体接入控制层(Remote Media Access Control,R-MAC)实体、R-PHY实体、远端媒体接入控制层和物理层(Remote Media Access Control and Physical,R-MACPHY)实体、CM、CPE。As shown in Figure 2, the system includes an Internet detailed record server (Internet Protocol Record Server, IPDR Server), a media access control management network element (MAC Manager, also referred to herein as a MAC controller), and a remote media access control. Layer (Remote Media Access Control, R-MAC) entity, R-PHY entity, remote media access control layer and physical layer (Remote Media Access Control and Physical, R-MACPHY) entity, CM, CPE.
IPDR Server位于汇聚层,用于管理至少一个MAC Manager(图中仅示例性的示出一个)。The IPDR server is located at the aggregation layer and is used to manage at least one MAC Manager (only one is shown as an example in the figure).
MAC Manager用于管理至少一个远端实体。通常,在不同组网架构下,远端实体的形态可能不同。可选的,在R-PHY架构中,CMTS的MAC层和PHY层功能被分离开,部署在不同位置。其中,CMTS的PHY层功能被下沉至用户侧,形成R-PHY实体(为简化描述,下文将R-PHY实体简称为R-PHY),并由R-PHY实体负责PHY层处理,CMTS的MAC层功能保留在局端侧,形成R-MAC实体(为简化描述,下文中将R-MAC实体简称为R-MAC),并由R-MAC实体负责MAC层处理。这样一来,由MAC Manager直接管理至少一个R-MAC(图2中仅示例性的示出一个),由R-MAC管理至少一个R-PHY。在R-MACPHY架构中,CMTS的MAC层和PHY层功能均被下沉至用户侧,形成R-MACPHY实体(为简化描述,下文将R-MACPHY实体简称为R-MACPHY),并由R-MACPHY负责MAC层和PHY层处理。因此,这种架构中,由MAC Manager直接管理至少一个R-MACPHY(图2中仅示例性的示出一个)。MAC Manager is used to manage at least one remote entity. Generally, the form of the remote entity may be different under different networking architectures. Optionally, in the R-PHY architecture, the MAC layer and PHY layer functions of the CMTS are separated and deployed in different locations. Among them, the PHY layer function of the CMTS is sunk to the user side to form the R-PHY entity (to simplify the description, the R-PHY entity is referred to as R-PHY hereinafter), and the R-PHY entity is responsible for the PHY layer processing. The function of the MAC layer is retained at the central office side, forming an R-MAC entity (for simplicity of description, the R-MAC entity is hereinafter referred to simply as R-MAC), and the R-MAC entity is responsible for MAC layer processing. In this way, the MAC Manager directly manages at least one R-MAC (only one is exemplarily shown in FIG. 2), and the R-MAC manages at least one R-PHY. In the R-MACPHY architecture, the functions of the MAC layer and the PHY layer of the CMTS are sunk to the user side to form the R-MACPHY entity (to simplify the description, the R-MACPHY entity is referred to as R-MACPHY hereinafter), and the R-MACPHY MACPHY is responsible for MAC layer and PHY layer processing. Therefore, in this architecture, at least one R-MACPHY is directly managed by the MAC Manager (only one is exemplarily shown in FIG. 2).
当然,随着网络演进,还可能针对CMTS的各个功能产生不同的组网架构,本申请实施例的技术方案不局限于图2所示的R-PHY架构或R-MACPHY架构。Of course, as the network evolves, different networking architectures may also be generated for each function of the CMTS. The technical solution of the embodiment of the present application is not limited to the R-PHY architecture or R-MACPHY architecture shown in FIG. 2.
R-PHY或者R-MACPHY位于接入层,用于管理至少一个CM(图2中示例性的示出每一R-MACPHY或R-PHY分别管理一个CM的情况)。The R-PHY or R-MACPHY is located in the access layer and is used to manage at least one CM (the case where each R-MACPHY or R-PHY manages one CM is exemplarily shown in FIG. 2).
CM位于用户家中,用于管理至少一个CPE。The CM is located in the user's home and is used to manage at least one CPE.
CPE,位于用户家中,用于连接用户终端,为用户终端提供家庭有线宽带、网络协议电视(Internet Protocol Television,IPTV)、网络协议语音(Voice over Internet Protocol,VOIP)等业务的综合接入。可选的,本申请实施例中所涉及到的CPE可以包括各种具有接入功能的设备,例如可以为数字视频变换盒(Set Top Box,STB)、家庭网关等。用户终端例如可以为有线电视,或者为可穿戴设备、计算设备、个人数字助理(personal digital assistant,PDA)电脑、平板型电脑、膝上型电脑(laptop computer)、机器类型通信(machine type communication,MTC)终端、用户设备(user equipment,UE)等。CPE, located in the user's home, is used to connect user terminals and provide users with integrated access to services such as home cable broadband, Internet Protocol Television (IPTV), and Voice over Internet Protocol (VOIP). Optionally, the CPE involved in the embodiments of the present application may include various devices having an access function, such as a digital video conversion box (Set Top Box, STB), a home gateway, and the like. The user terminal may be, for example, a cable TV, or a wearable device, a computing device, a personal digital assistant (PDA) computer, a tablet computer, a laptop computer, and a machine type communication, MTC) terminal, user equipment (UE), and so on.
为便于理解,以下主要以R-PHY架构为例说明图2系统的数据传输方式。在下行传输(由IPDR Server至CPE的方向)中,下行数据由IPDR Server发送至MAC Manager,再由MAC Manager通过R-MAC发送至R-PHY,R-PHY解调、解码得到原始下行数据,再编码、调制将原始下行数据转换为同轴电缆信号并发送至各个连接的CM,CM再将同轴电缆信号发送给CPE(比如机顶盒和/或个人电脑)。To facilitate understanding, the following mainly uses the R-PHY architecture as an example to describe the data transmission method of the system of FIG. 2. In the downlink transmission (from the IPDR server to the CPE), the downlink data is sent by the IPDR server to the MAC manager, and then sent by the MAC manager to the R-PHY through the R-MAC. The R-PHY demodulates and decodes to obtain the original downlink data. Re-encoding and modulation convert the original downlink data into a coaxial cable signal and send it to each connected CM, and the CM sends the coaxial cable signal to the CPE (such as a set-top box and / or a personal computer).
在上行传输(由CPE至IPDR Server的方向)中,CPE将上行数据发送至CM,由CM通过同轴电缆传输给R-PHY,在R-PHY处解调、解码,然后编码、调制将同轴电缆信号转化为光纤信号,再由R-PHY通过光纤发送给R-MAC。之后,R-MAC通过MAC Manager将下行数据上传至IPDR Server。In the uplink transmission (from the CPE to the IPDR server), the CPE sends the uplink data to the CM, and the CM transmits the data to the R-PHY through a coaxial cable. The R-PHY demodulates and decodes the data, and then encodes and modulates the data. The shaft cable signal is converted into an optical fiber signal, which is then sent to the R-MAC by the R-PHY through the optical fiber. After that, the R-MAC uploads the downlink data to the IPDR server through the MAC Manager.
可选的,图2中的各个网元的名字只是一个示例,具体实现中各个网元的名字可能为其他名字,或者网元也可以称之为实体,本申请实施例对此不作具体限定。上述全部或者部分网元可以是物理上的实体网元,也可以是虚拟化的网元,在此不做限定。Optionally, the names of the network elements in FIG. 2 are only examples, and the names of the network elements in the specific implementation may be other names, or the network elements may also be called entities, which is not specifically limited in the embodiment of the present application. All or part of the foregoing network elements may be physical physical network elements or virtualized network elements, which is not limited herein.
此外,本申请实施例描述的网络架构以及业务场景是为了更加清楚的说明本申请实施例的技术方案,并不构成对于本申请实施例提供的技术方案的限定,本领域普通技术人员可知,随着网络架构的演变和新业务场景的出现,本申请实施例提供的技术方案对于类似的技术问题,同样适用。In addition, the network architecture and service scenarios described in the embodiments of the present application are intended to more clearly illustrate the technical solutions of the embodiments of the present application, and do not constitute a limitation on the technical solutions provided in the embodiments of the present application. With the evolution of the network architecture and the emergence of new service scenarios, the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems.
如图3所示,本申请实施例提供一种数据采集系统,该系统包括第三网元303、第二网元302、第一网元301。As shown in FIG. 3, an embodiment of the present application provides a data acquisition system, which includes a third network element 303, a second network element 302, and a first network element 301.
第一网元301,用于从CM处采集数据,所采集的数据包括CM运行状态、CM相关计费信息、CM所处链路的上下行信道的频谱信息、CM的调试信息。The first network element 301 is configured to collect data from the CM, and the collected data includes CM operating status, CM-related charging information, spectrum information of uplink and downlink channels of the link where the CM is located, and debugging information of the CM.
第二网元302具备互联网协议(Internet Protocol,IP)层功能,用于将第一网元301采集的数据上传至第三网元303。其中,第二网元302与第一网元301之间具有第二协议接口,第二网元302与第三网元303之间具有第一协议接口。第二网元302与第一网元301之间通信时采用第二接口协议封装通信数据,第二网元302与第三网元303通信时采用第一接口协议封装通信数据。The second network element 302 has an Internet Protocol (IP) layer function, and is configured to upload data collected by the first network element 301 to the third network element 303. The second network element 302 and the first network element 301 have a second protocol interface, and the second network element 302 and the third network element 303 have a first protocol interface. The second network element 302 and the first network element 301 use the second interface protocol to encapsulate communication data when communicating, and the second network element 302 and the third network element 303 use the first interface protocol to encapsulate communication data when communicating.
第三网元303,用于接收第二网元302发送的采集数据,并向上层网络上传该采集数据。The third network element 303 is configured to receive the collected data sent by the second network element 302 and upload the collected data to an upper network.
本申请实施例提供的数据采集系统可以应用于如图2所示的系统或者相似架构的系统或者后续的演进系统中,当应用于如图2所示的系统时,上述的第一网元301所对应的网元或者实体可以为图2中的R-MAC和/或R-MACPHY,上述的第二网元302所对应的网元或者实体可以为图2中的MAC Manager,上述的第三网元303对应的网元或者实体可以为图2中的IPDR Server。The data collection system provided in the embodiment of the present application may be applied to the system shown in FIG. 2 or a system with a similar architecture or a subsequent evolved system. When applied to the system shown in FIG. 2, the first network element 301 described above The corresponding network element or entity may be the R-MAC and / or R-MACPHY in FIG. 2, and the network element or entity corresponding to the above-mentioned second network element 302 may be the MAC manager in FIG. 2, and the above-mentioned third The network element or entity corresponding to the network element 303 may be the IPDR server in FIG. 2.
可选的,图3中的第一网元301、第二网元302、第三网元303可以分别由多个设备实现,还可以由一个设备实现,例如可以实现为一个设备内的不同功能模块,本申请实施例对此不作具体限定。可以理解的是,上述功能模块既可以是硬件设备中的网络元件,也可以是在硬件设备上运行的软件功能,或者是平台(例如,云平台)上实例化的虚拟化功能。Optionally, the first network element 301, the second network element 302, and the third network element 303 in FIG. 3 may be implemented by multiple devices, and may also be implemented by one device, for example, different functions in one device may be implemented. Module, which is not specifically limited in the embodiment of the present application. It can be understood that the foregoing function module may be a network element in a hardware device, a software function running on a hardware device, or a virtualization function instantiated on a platform (for example, a cloud platform).
例如,本申请实施例中的第一网元、第二网元、第三网元可以通过图4中的通信设备来实现。图4所示为本申请实施例提供的通信设备的硬件结构示意图。该通信设 备400包括至少一个处理器401,通信线路402,存储器403以及至少一个通信接口404。For example, the first network element, the second network element, and the third network element in the embodiment of the present application may be implemented by the communication device in FIG. 4. FIG. 4 is a schematic diagram of a hardware structure of a communication device according to an embodiment of the present application. The communication device 400 includes at least one processor 401, a communication line 402, a memory 403, and at least one communication interface 404.
处理器401可以是一个通用中央处理器(central processing unit,CPU),微处理器,特定应用集成电路(application-specific integrated circuit,ASIC),或一个或多个用于控制本申请方案程序执行的集成电路。The processor 401 may be a general-purpose central processing unit (CPU), a microprocessor, an application-specific integrated circuit (ASIC), or one or more processors for controlling the execution of the program of the solution of the present application. integrated circuit.
通信线路402可包括一通路,在上述组件之间传送信息。The communication line 402 may include a path for transmitting information between the aforementioned components.
通信接口404,使用任何收发器一类的装置,用于与其他设备或通信网络通信,如以太网,无线接入网(radio access network,RAN),无线局域网(wireless local area networks,WLAN)等。The communication interface 404 uses any device such as a transceiver to communicate with other devices or communication networks, such as Ethernet, radio access network (RAN), wireless local area networks (WLAN), etc. .
存储器403可以是只读存储器(read-only memory,ROM)或可存储静态信息和指令的其他类型的静态存储设备,随机存取存储器(random access memory,RAM)或者可存储信息和指令的其他类型的动态存储设备,也可以是电可擦可编程只读存储器(electrically erasable programmable read-only memory,EEPROM)、只读光盘(compact disc read-only memory,CD-ROM)或其他光盘存储、光碟存储(包括压缩光碟、激光碟、光碟、数字通用光碟、蓝光光碟等)、磁盘存储介质或者其他磁存储设备、或者能够用于携带或存储具有指令或数据结构形式的期望的程序代码并能够由计算机存取的任何其他介质,但不限于此。存储器可以是独立存在,通过通信线路402与处理器相连接。存储器也可以和处理器集成在一起。The memory 403 may be a read-only memory (ROM) or other types of static storage devices that can store static information and instructions, a random access memory (RAM) or other types that can store information and instructions The dynamic storage device can also be electrically erasable programmable read-only memory (EEPROM-ready-only memory (EEPROM)), compact disc (read-only memory (CD-ROM)) or other optical disk storage, optical disk storage (Including compact discs, laser discs, optical discs, digital versatile discs, Blu-ray discs, etc.), magnetic disk storage media or other magnetic storage devices, or can be used to carry or store desired program code in the form of instructions or data structures and can be used by a computer Any other media accessed, but not limited to this. The memory may exist independently, and is connected to the processor through the communication line 402. The memory can also be integrated with the processor.
其中,存储器403用于存储执行本申请实施例方案的计算机执行指令,并由处理器401来控制执行。处理器401用于执行存储器403中存储的计算机执行指令,从而实现本申请下述实施例提供的数据采集方法。比如,存储器403用于存储图4所示的两个表,即IPDR Server与R-MACPHY的关联关系、IPDR Server与R-MACPHY各自支持的IPDR协议版本。The memory 403 is configured to store computer execution instructions for executing the solutions in the embodiments of the present application, and the execution is controlled by the processor 401. The processor 401 is configured to execute computer execution instructions stored in the memory 403, so as to implement the data collection method provided in the following embodiments of the present application. For example, the memory 403 is used to store two tables shown in FIG. 4, namely, the association relationship between the IPDR server and the R-MACPHY, and the IPDR protocol versions supported by the IPDR server and the R-MACPHY, respectively.
可选的,本申请实施例中的计算机执行指令也可以称之为应用程序代码,本申请实施例对此不作具体限定。Optionally, the computer-executable instructions in the embodiments of the present application may also be referred to as application program codes, which are not specifically limited in the embodiments of the present application.
在具体实现中,作为一种实施例,处理器401可以包括一个或多个CPU,例如图4中的CPU0和CPU1。In a specific implementation, as an embodiment, the processor 401 may include one or more CPUs, such as CPU0 and CPU1 in FIG. 4.
在具体实现中,作为一种实施例,通信设备400可以包括多个处理器,比如处理器401和处理器405。这些处理器中的每一个可以是一个单核(single-CPU)处理器,也可以是一个多核(multi-CPU)处理器。这里的处理器可以指一个或多个设备、电路、和/或用于处理数据(例如计算机程序指令)的处理核。In a specific implementation, as an embodiment, the communication device 400 may include multiple processors, such as the processor 401 and the processor 405. Each of these processors may be a single-CPU processor or a multi-CPU processor. A processor herein may refer to one or more devices, circuits, and / or processing cores for processing data (such as computer program instructions).
可以理解的是,图4仅示出了通信设备的一种示例性的硬件结构示意图,为了实现本申请实施例的技术方案,通信设备400还可能包括其他的组件,本申请实施例并不对此进行限制。It can be understood that FIG. 4 only shows an exemplary hardware structure diagram of a communication device. In order to implement the technical solution of the embodiment of the present application, the communication device 400 may further include other components. Limitation.
上述的通信设备400可以是一个通用设备或者是一个专用设备。在具体实现中,通信设备400可以是具有如图4中类似结构的设备。本申请实施例不限定通信设备400的类型。The above-mentioned communication device 400 may be a general-purpose device or a special-purpose device. In a specific implementation, the communication device 400 may be a device having a similar structure as in FIG. 4. The embodiment of the present application does not limit the type of the communication device 400.
下面将结合图1至图4对本申请实施例提供的数据采集方法进行具体阐述。The data collection method provided by the embodiment of the present application will be specifically described below with reference to FIGS. 1 to 4.
需要说明的是,本申请下述实施例中各个网元之间的消息名字或消息中各参数的 名字等只是一个示例,具体实现中也可以是其他的名字,在此统一说明,以下不再赘述。It should be noted that the names of the messages or the names of the parameters in the messages between the various network elements in the following embodiments of this application are only examples, and other names may also be used in the specific implementation, which are uniformly described here and will not be described below To repeat.
如上文所描述,在本申请实施例中,第二网元与第三网元之间采取第一接口协议通信,第一接口协议可以为IPDR协议。第二网元与第一网元之间采用第二接口协议通信,该第二接口协议可以为IPDR协议,也可以为非IPDR协议。其中,非IPDR协议包括restconf协议、netconf协议、SNMP协议、RPC协议。其中,RPC协议包括但不限于谷歌远程过程调用(Google Remote Procedure Call,GRPC)GRPC协议、Apache Thrift等。As described above, in the embodiment of the present application, the second network element and the third network element adopt a first interface protocol for communication, and the first interface protocol may be an IPDR protocol. The second network element communicates with the first network element using a second interface protocol, and the second interface protocol may be an IPDR protocol or a non-IPDR protocol. Among them, non-IPDR protocols include restconf protocol, netconf protocol, SNMP protocol, and RPC protocol. Among them, the RPC protocol includes but is not limited to Google Remote Procedure Call (GRPC) GRPC protocol, Apache Thrift and so on.
首先,以图3所示的数据采集系统中的第一网元为R-MACPHY,且第二接口协议为IPDR协议为例,给出本申请实施例的预处理流程,该预处理流程为本申请实施例提供的数据采集方法的基础。如图5所示,该预处理流程包括如下步骤:First, taking the first network element in the data acquisition system shown in FIG. 3 as the R-MACPHY and the second interface protocol as the IPDR protocol as an example, the pre-processing flow of the embodiment of the present application is given. The basis of the data collection method provided in the application examples. As shown in Figure 5, the pre-processing process includes the following steps:
S501、IPDR Server向MAC Manager发送第一版本协商请求(Version Request)。S501. The IPDR server sends a first version negotiation request (Version Request) to the MAC Manager.
相应的,MAC Manager接收IPDR Server发送的第一版本协商请求。Correspondingly, the MAC Manager receives the first version negotiation request sent by the IPDR Server.
其中,第一版本协商请求用于请求协商第一协议版本,第一协议版本为MAC Manager与IPDR Server之间的IPDR协议版本。The first version negotiation request is used to request to negotiate a first protocol version, and the first protocol version is an IPDR protocol version between the MAC Manager and the IPDR Server.
示例性的,第一版本协商请求的格式如图6中(a)所示:Exemplarily, the format of the first version negotiation request is shown in FIG. 6 (a):
IPDR Server发送的第一版本协商请求报文包含的字段包括请求标识(IDentity,ID)字段,该字段占用4字节、请求时间字段、IPDR Server的IPDR版本字段。The fields included in the first version negotiation request message sent by the IPDR Server include a request ID (IDentity, ID) field, which occupies 4 bytes, a request time field, and an IPDR version field of the IPDR Server.
S502、MAC Manager向IPDR Server发送第一版本协商响应。S502. The MAC Manager sends a first version negotiation response to the IPDR Server.
相应的,IPDR Server接收MAC Manager发送的第一版本协商响应。第一版本协商响应携带第一协议版本。Correspondingly, the IPDR Server receives the first version negotiation response sent by the MAC Manager. The first version negotiation response carries the first protocol version.
示例性的,如图6中(b)所示,MAC Manager发送的第一版本协商响应报文包含如下字段:MAC Manager的传输类型字段、MAC Manager的IPDR协议版本字段、MAC Manager使用的端口号字段、保留字以及用于指示其他信息的字段。其中,传输类型用于指示TCP/IP协议所定义的传输层协议。Exemplarily, as shown in FIG. 6 (b), the first version negotiation response message sent by the MAC Manager includes the following fields: the transmission type field of the MAC Manager, the IPDR protocol version field of the MAC Manager, and the port number used by the MAC Manager Fields, reserved words, and fields to indicate additional information. Among them, the transmission type is used to indicate the transport layer protocol defined by the TCP / IP protocol.
上述S501、S502为MAC Manager和IPDR Server之间的IPDR协议版本协商流程,在本文中也可以称为第一协议版本协商流程。当然,协议协商流程中,还可以由MAC Manager主动发起协议协商流程,即MAC Manager向IPDR Server发送第一版本协商请求,并接收IPDR Server发送的第一版本协商响应。本申请实施例不对主动发起协议协商流程的具体设备加以限制。The above S501 and S502 are the IPDR protocol version negotiation process between the MAC Manager and the IPDR server, and may also be referred to herein as the first protocol version negotiation process. Of course, in the protocol negotiation process, the MAC Manager can also actively initiate the protocol negotiation process, that is, the MAC Manager sends a first version negotiation request to the IPDR Server and receives the first version negotiation response sent by the IPDR Server. The embodiment of the present application does not limit specific devices that actively initiate a protocol negotiation process.
S503、MAC Manager向R-MACPHY发送第二版本协商请求。S503. The MAC Manager sends a second version negotiation request to the R-MACPHY.
相应的,R-MACPHY接收MAC Manager发送的第二版本协商请求。Correspondingly, the R-MACPHY receives the second version negotiation request sent by the MAC Manager.
其中,第二版本协商请求用于请求协商第二协议版本,第二协议版本为MAC Manager与R-MACPHY之间的IPDR协议版本。The second version negotiation request is used to request to negotiate a second protocol version, and the second protocol version is an IPDR protocol version between the MAC Manager and the R-MACPHY.
S504、R-MACPHY向MAC Manager发送第二版本协商响应。S504. The R-MACPHY sends a second version negotiation response to the MAC Manager.
MAC Manager接收R-MACPHY发送的第二版本协商响应。The MAC Manager receives the second version negotiation response sent by the R-MACPHY.
其中,第二版本协商响应携带第二协议版本。The second version negotiation response carries a second protocol version.
这里,S503、S504为R-MACPHY与MAC Manager之间协商IPDR协议版本的流程,在本文中也可称为第二协议版本协商流程。类似的,可以由R-MACPHY主动发 起与MAC Manager之间的协议版本协商流程。并且,第一协议版本协商流程与第二协议版本协商流程之间是独立执行的。这就意味着,当第一协议版本协商流程中MAC Manager主动发起协商流程时,第二协议版本协商流程中MAC Manager可主动发起协商流程,也可被动接收R-MACPHY的版本协商响应。Here, S503 and S504 are processes for negotiating the IPDR protocol version between the R-MACPHY and the MAC Manager, and may also be referred to herein as a second protocol version negotiation process. Similarly, the R-MACPHY can initiate the protocol version negotiation process with the MAC Manager. In addition, the first protocol version negotiation process and the second protocol version negotiation process are performed independently. This means that when the MAC Manager actively initiates the negotiation process in the first protocol version negotiation process, the MAC Manager in the second protocol version negotiation process can actively initiate the negotiation process or passively receive the R-MACPHY version negotiation response.
S505、在IPDR Server工作在主动模式的情况下,IPDR Server向MAC Manager发送TCP连接请求。S505. In the case where the IPDR Server works in the active mode, the IPDR Server sends a TCP connection request to the MAC Manager.
相应的,MAC Manager接收IPDR Server发送的TCP连接请求。Correspondingly, the MAC Manager receives the TCP connection request sent by the IPDR Server.
其中,TCP连接请求用于请求建立IPDR Server与MAC Manager之间的TCP连接。Among them, the TCP connection request is used to request to establish a TCP connection between the IPDR Server and the MAC Manager.
可以理解的是,通常需通过三次握手建立对端之间的TCP连接,图5中给出了三次握手的示意流程。通过图5所示的三次握手,MAC Manager与IPDR Server之间的TCP连接成功建立。It can be understood that a TCP connection between the peers is usually established through a three-way handshake. The schematic process of the three-way handshake is shown in FIG. 5. Through the three-way handshake shown in Figure 5, the TCP connection between the MAC Manager and the IPDR Server was successfully established.
作为S505的替换步骤,在IPDR Server工作在被动模式的情况下,由MAC Manager主动向IPDR Server发起TCP连接请求,以建立与IPDR Server之间的TCP连接。As an alternative to S505, when the IPDR Server works in passive mode, the MAC Manager actively initiates a TCP connection request to the IPDR Server to establish a TCP connection with the IPDR Server.
S506、在MAC Manager工作在主动模式的情况下,MAC Manager向R-MACPHY发送TCP连接请求。S506. When the MAC Manager works in the active mode, the MAC Manager sends a TCP connection request to the R-MACPHY.
相应的,R-MACPHY接收MAC Manager发送的TCP连接请求。Correspondingly, the R-MACPHY receives the TCP connection request sent by the MAC Manager.
其中,TCP连接请求用于请求建立MAC Manager与R-MACPHY间的TCP连接。Among them, the TCP connection request is used to request establishment of a TCP connection between the MAC Manager and the R-MACPHY.
类似的,在MAC Manager工作在被动模式的情况下,S506还可以实现为:R-MACPHY向MAC Manager发送TCP连接请求,以建立与MAC Manager间的TCP连接。Similarly, when the MAC Manager works in the passive mode, S506 can also be implemented as: R-MACPHY sends a TCP connection request to the MAC Manager to establish a TCP connection with the MAC Manager.
S507、在IPDR Server工作在主动模式的情况下,IPDR Server向MAC Manager发送IPDR连接请求。S507. In the case where the IPDR Server works in the active mode, the IPDR Server sends an IPDR connection request to the MAC Manager.
相应的,MAC Manager接收IPDR Server发送的IPDR连接请求。Correspondingly, the MAC Manager receives the IPDR connection request sent by the IPDR Server.
其中,IPDR连接请求用于请求建立IPDR Server与MAC Manager之间的IPDR连接。Among them, the IPDR connection request is used to request to establish an IPDR connection between the IPDR server and the MAC manager.
S508、MAC Manager向IPDR Server发送IPDR连接响应。S508. The MAC Manager sends an IPDR connection response to the IPDR Server.
上述S507、S508为MAC Manager与IPDR Server之间建立IPDR连接的流程。可替换的,当IPDR Server工作在被动模式时,可由MAC Manager主动发起IPDR连接请求。具体的,S507、S508可以实现为:MAC Manager向IPDR Server发送IPDR连接请求,并接收IPDR Server发送的IPDR连接响应。The above S507 and S508 are procedures for establishing an IPDR connection between the MAC Manager and the IPDR Server. Alternatively, when the IPDR Server works in passive mode, the MACDR Manager can actively initiate an IPDR connection request. Specifically, S507 and S508 may be implemented as follows: The MAC Manager sends an IPDR connection request to the IPDR Server, and receives the IPDR connection response sent by the IPDR Server.
S509、在MAC Manager工作在主动模式的情况下,MAC Manager向R-MACPHY发送IPDR连接请求。S509. When the MAC Manager works in the active mode, the MAC Manager sends an IPDR connection request to the R-MACPHY.
相应的,R-MACPHY接收MAC Manager发送的IPDR连接请求。Correspondingly, the R-MACPHY receives the IPDR connection request sent by the MAC Manager.
其中,IPDR连接请求用于请求建立MAC Manager与R-MACPHY间的IPDR连接。Among them, the IPDR connection request is used to request the establishment of an IPDR connection between the MAC Manager and the R-MACPHY.
S510、R-MACPHY向MAC Manager发送IPDR连接响应。S510. The R-MACPHY sends an IPDR connection response to the MAC Manager.
相应的,MAC Manager接收R-MACPHY发送的IPDR连接响应。Correspondingly, the MAC Manager receives the IPDR connection response sent by the R-MACPHY.
可替换的,S509、S510还可分别实现为:R-MACPHY向MAC Manager发送IPDR连接请求,并接收MAC Manager发送的IPDR连接响应。Alternatively, S509 and S510 can be implemented as follows: R-MACPHY sends an IPDR connection request to the MAC Manager and receives an IPDR connection response sent by the MAC Manager.
S511、IPDR Server向MAC Manager发送会话查询请求。S511. The IPDR server sends a session query request to the MAC Manager.
相应的,MAC Manager接收IPDR Server发送的会话查询请求。Correspondingly, the MAC Manager receives the session query request sent by the IPDR Server.
其中,会话查询请求用于请求查询R-MACPHY关联的会话。The session query request is used to request to query a session associated with the R-MACPHY.
S512、MAC Manager向IPDR Server发送会话查询响应。S512. The MAC Manager sends a session query response to the IPDR Server.
相应的,IPDR Server接收MAC Manager发送的会话查询响应。Correspondingly, the IPDR Server receives the session query response sent by the MAC Manager.
其中,会话查询响应携带R-MACPHY关联的会话。The session query response carries a session associated with the R-MACPHY.
可选的,若MAC Manager中存储有R-MACPHY关联的会话,则可直接执行S512向IPDR Server反馈会话查询响应。或者,若MAC Manager中未存储R-MACPHY关联的会话,则如图5中虚线框中的流程所示,MAC Manager向R-MACPHY发送会话查询请求(S513),接收R-MACPHY发送的会话查询响应(S514),并向IPDR Server发送该会话查询响应(S515)。Optionally, if the R-MACPHY associated session is stored in the MAC Manager, S512 may be directly executed to feed back the session query response to the IPDR Server. Alternatively, if the R-MACPHY associated session is not stored in the MAC Manager, as shown by the flow in the dashed box in FIG. 5, the MAC Manager sends a session query request to the R-MACPHY (S513) and receives the session query sent by the R-MACPHY A response (S514), and sends the session query response to the IPDR server (S515).
以图3所示的数据采集系统中的第一网元为R-MACPHY,且第二接口协议为非IPDR协议为例,给出本申请实施例的另一预处理流程,如图7所示,该另一预处理流程包括如下步骤:Taking the first network element in the data acquisition system shown in FIG. 3 as an R-MACPHY and the second interface protocol being a non-IPDR protocol as an example, another pre-processing flow of the embodiment of the present application is given, as shown in FIG. The other pre-processing process includes the following steps:
S701、IPDR Server向MAC Manager发送第一版本协商请求(Version Request)。S701. The IPDR server sends a first version negotiation request (Version Request) to the MAC manager.
相应的,MAC Manager接收IPDR Server发送的第一版本协商请求。Correspondingly, the MAC Manager receives the first version negotiation request sent by the IPDR Server.
S702、MAC Manager向IPDR Server发送第一版本协商响应(Version Response)。S702. The MAC manager sends a first version negotiation response (Version Response) to the IPDR server.
相应的,IPDR Server接收MAC Manager发送的第一版本协商响应。Correspondingly, the IPDR Server receives the first version negotiation response sent by the MAC Manager.
S703、在IPDR Server工作在主动模式的情况下,IPDR Server向MAC Manager发送TCP连接请求。S703. In the case where the IPDR Server works in the active mode, the IPDR Server sends a TCP connection request to the MAC Manager.
相应的,MAC Manager接收IPDR Server发送的TCP连接请求。Correspondingly, the MAC Manager receives the TCP connection request sent by the IPDR Server.
S704、在IPDR Server工作在主动模式的情况下,IPDR Server向MAC Manager发送IPDR连接请求。S704. In a case where the IPDR server works in the active mode, the IPDR server sends an IPDR connection request to the MAC Manager.
相应的,MAC Manager接收IPDR Server发送的IPDR连接请求。Correspondingly, the MAC Manager receives the IPDR connection request sent by the IPDR Server.
S705、MAC Manager向IPDR Server发送IPDR连接响应。S705. The MAC Manager sends an IPDR connection response to the IPDR Server.
相应的,IPDR Server接收MAC Manager发送的IPDR连接响应。Correspondingly, the IPDR server receives the IPDR connection response sent by the MAC Manager.
S706、IPDR Server向MAC Manager发送会话查询请求。S706. The IPDR server sends a session query request to the MAC manager.
相应的,MAC Manager接收IPDR Server发送的会话查询请求。Correspondingly, the MAC Manager receives the session query request sent by the IPDR Server.
S707、MAC Manager向IPDR Server发送会话查询响应。S707. The MAC Manager sends a session query response to the IPDR Server.
相应的,IPDR Server接收MAC Manager发送的会话查询响应。Correspondingly, the IPDR Server receives the session query response sent by the MAC Manager.
图7所示流程的具体描述可参见图5流程的描述,这里不再赘述。For a detailed description of the process shown in FIG. 7, refer to the description of the process shown in FIG.
本申请实施例提供一种数据采集方法,当第二接口协议为IPDR协议时,在图5所示的预处理流程的基础上,如图8所示,本申请实施例提供的数据采集方法,包括如下步骤:The embodiment of the present application provides a data collection method. When the second interface protocol is the IPDR protocol, based on the preprocessing process shown in FIG. 5, and as shown in FIG. 8, the data collection method provided in the embodiment of the present application, It includes the following steps:
S801、IPDR Server向MAC Manager发送以第一接口协议格式封装的第一消息。S801. The IPDR server sends a first message encapsulated in a first interface protocol format to the MAC manager.
相应的,MAC Manager接收IPDR Server发送的第一消息。Correspondingly, the MAC Manager receives the first message sent by the IPDR Server.
其中,第一接口协议为IPDR协议。The first interface protocol is the IPDR protocol.
可选的,第一消息可以为IPDR会话控制消息,第一消息携带IPDR Server标识,用以寻址该IPDR Server关联的R-MACPHY。IPDR Server标识标识包括但不限于IPDR Server的IP地址,IPDR Server标识的MAC地址。Optionally, the first message may be an IPDR session control message, and the first message carries an IPDR server identifier and is used to address an R-MACPHY associated with the IPDR server. The IPDR server identification includes but is not limited to the IP address of the IPDR server and the MAC address of the IPDR server identification.
S802、MAC Manager按照第二接口协议格式封装第一消息,得到第二消息。S802. The MAC manager encapsulates the first message according to the second interface protocol format to obtain the second message.
具体的,基于图5所示流程,MAC Manager获知在协议版本协商之后第一协议版本不同于第二协议版本,此时,S802具体可实现为:MAC Manager将第一消息的封装格式由第一协议版本对应的封装格式修改为第二协议版本对应的封装格式,得到第二消息。如上文所描述,第一消息携带IPDR Server标识,相应的,重新封装的第二消息也携带该IPDR Server标识。Specifically, based on the process shown in FIG. 5, the MAC Manager learns that the first protocol version is different from the second protocol version after the protocol version negotiation. At this time, S802 can be implemented as follows: The MAC Manager encapsulates the first message from the first The encapsulation format corresponding to the protocol version is changed to the encapsulation format corresponding to the second protocol version to obtain a second message. As described above, the first message carries the IPDR server identifier, and accordingly, the re-encapsulated second message also carries the IPDR server identifier.
比如,在图5所示的预处理流程中,MAC Manager发现MAC Manager与IPDR Server之间的IPDR协议版本为IPDR2.0,MAC Manager与R-MACPHY之间的IPDR协议版本为IPDR1.0。后续,MAC Manager接收到IPDR2.0版本的第一消息后,解析第一消息,并按照IPDR1.0的格式重新封装第一消息,得到第二消息。For example, in the preprocessing process shown in FIG. 5, the MAC Manager finds that the IPDR protocol version between the MAC Manager and the IPDR Server is IPDR 2.0, and the IPDR protocol version between the MAC Manager and the R-MACPHY is IPDR 1.0. Subsequently, the MAC Manager receives the first message of the IPDR 2.0 version, parses the first message, and repackages the first message according to the format of the IPDR 1.0 to obtain the second message.
S803、MAC Manager根据第二消息确定IPDR Server所关联的至少一个R-MACPHY。S803. The MAC manager determines at least one R-MACPHY associated with the IPDR server according to the second message.
在本申请实施例中,MAC Manager中存储有IPDR Server与R-MACPHY的关联关系。示例性的,如图4所示,MAC Manager的存储器403中存储有IPDR Server标识与R-MACPHY标识的关联表。如此,MAC Manager可根据第二消息携带的IPDR Server标识查询存储的关联表,以确定IPDR Server所关联到的一个或多个R-MACPHY。In the embodiment of the present application, the MAC Manager stores the association relationship between the IPDR server and the R-MACPHY. Exemplarily, as shown in FIG. 4, the memory 403 of the MAC Manager stores an association table of the IPDR server ID and the R-MACPHY ID. In this way, the MAC Manager may query the stored association table according to the IPDR server identifier carried in the second message to determine one or more R-MACPHYs to which the IPDR server is associated.
S804、MAC Manager分别向至少一个R-MACPHY发送第二消息。S804. The MAC manager sends a second message to at least one R-MACPHY, respectively.
相应的,R-MACPHY接收来自MAC Manager的第二消息。Accordingly, the R-MACPHY receives the second message from the MAC Manager.
其中,第二消息用于请求至少一个R-MACPHY所采集的数据。The second message is used to request data collected by at least one R-MACPHY.
S805、R-MACPHY向MAC Manager发送以第二接口协议格式封装的第一数据。S805. The R-MACPHY sends the first data encapsulated in the second interface protocol format to the MAC Manager.
相应的,MAC Manager接收R-MACPHY发送的第一数据。Correspondingly, the MAC Manager receives the first data sent by the R-MACPHY.
可选的,第一数据包括但不限于CM运行状态、CM相关计费信息、CM所处链路的上下行信道的频谱信息、CM的调试信息。作为一种可能的实现方式,第一数据携带R-MACPHY标识,用于寻址该R-MACPHY关联的IPDR Server。Optionally, the first data includes, but is not limited to, the CM operating state, CM-related charging information, spectrum information of uplink and downlink channels of the link where the CM is located, and debugging information of the CM. As a possible implementation manner, the first data carries an R-MACPHY identifier and is used to address an IPDR server associated with the R-MACPHY.
S806、MAC Manager按照第一接口协议格式封装第一数据,得到第二数据。S806. The MAC Manager encapsulates the first data according to the first interface protocol format to obtain the second data.
具体的,在MAC Manager与IPDR Server之间第一协议版本不同于MAC Manager与R-MACPHY之间的第二协议版本,S806可实现为:MAC Manager将第一数据的封装格式由第二协议版本对应的封装格式修改为第一协议版本对应的封装格式,得到第二数据,该第二数据携带R-MACPHY标识。Specifically, the first protocol version between the MAC Manager and the IPDR server is different from the second protocol version between the MAC Manager and the R-MACPHY. S806 can be implemented as follows: The MAC Manager converts the first data encapsulation format from the second protocol version. The corresponding encapsulation format is modified to the encapsulation format corresponding to the first protocol version to obtain second data, where the second data carries the R-MACPHY identifier.
S807、MAC Manager根据第二数据确定R-MACPHY所关联的IPDR Server。S807. The MAC manager determines the IPDR server associated with the R-MACPHY according to the second data.
作为一种可能的实现方式,MAC Manager根据第二数据携带的R-MACPHY标识查询图4所示的关联表,以确定R-MACPHY关联的IPDR Server。As a possible implementation manner, the MAC Manager queries the association table shown in FIG. 4 according to the R-MACPHY identifier carried in the second data to determine the IPDR Server associated with the R-MACPHY.
S808、MAC Manager向IPDR Server发送第二数据。S808. The MAC Manager sends the second data to the IPDR Server.
本申请实施例提供的数据采集方法,第二网元在接收到第三网元发送的以第一接口协议格式封装的第一消息后,按照第二接口协议格式重新封装第一消息,得到第二消息,并将第二消息发送至第一网元,以触发第一网元向第二网元发送所采集的第一数据。在获取第一数据后,第二网元按照第一接口协议格式重新封装该第一数据,得到第二数据,使得第二数据能够承载在第二网元与第三网元的传输通道中,从而第一网元采集的数据经由第二网元被成功传输至第三网元。可见,在本申请实施例的数据 采集方法中,每一段传输通道均可以传输与该通道格式一致的数据或消息,提升了在通道中成功传输数据或消息的概率,从而提升数据采集的成功率。According to the data collection method provided in the embodiment of the present application, after receiving the first message encapsulated in the first interface protocol format sent by the third network element, the second network element repackages the first message according to the second interface protocol format to obtain the first message. Two messages and sending the second message to the first network element to trigger the first network element to send the collected first data to the second network element. After obtaining the first data, the second network element repackages the first data according to the first interface protocol format to obtain the second data, so that the second data can be carried in the transmission channel between the second network element and the third network element, Thus, the data collected by the first network element is successfully transmitted to the third network element via the second network element. It can be seen that, in the data collection method of the embodiment of the present application, each segment of the transmission channel can transmit data or messages consistent with the format of the channel, which improves the probability of successfully transmitting data or messages in the channel, thereby improving the success rate of data collection. .
本申请实施例还提供一种数据采集方法,当第二接口协议为非IPDR协议时,在图7所示的预处理流程的基础上,如图9所示,该数据采集方法,包括如下步骤:An embodiment of the present application further provides a data collection method. When the second interface protocol is a non-IPDR protocol, based on the preprocessing process shown in FIG. 7, as shown in FIG. 9, the data collection method includes the following steps: :
S901、IPDR Server向MAC Manager发送以第一接口协议格式封装的第一消息。S901. The IPDR server sends a first message encapsulated in a first interface protocol format to the MAC Manager.
相应的,MAC Manager接收IPDR Server发送的第一消息。Correspondingly, the MAC Manager receives the first message sent by the IPDR Server.
S902、MAC Manager按照第二接口协议格式封装第一消息,得到第二消息。S902. The MAC Manager encapsulates the first message according to the second interface protocol format to obtain a second message.
具体的,S902可实现为:MAC Manager将第一消息的封装格式由第一协议版本对应的封装格式修改为第二接口协议中除IPDR协议之外的任一协议(即非IPDR协议)对应的封装格式,得到第二消息。Specifically, S902 can be implemented as follows: The MAC Manager changes the encapsulation format of the first message from the encapsulation format corresponding to the first protocol version to the corresponding one of the second interface protocols except the IPDR protocol (that is, non-IPDR protocol). Encapsulated format to get the second message.
比如,第二接口协议为GRPC协议,在图7所示的预处理流程中,发现MAC Manager与IPDR Server之间的IPDR协议版本为IPDR2.0。后续,MAC Manager接收到IPDR2.0版本的第一消息后,解析第一消息,并按照GRPC的格式重新封装第一消息,得到第二消息。For example, the second interface protocol is the GRPC protocol. In the preprocessing process shown in FIG. 7, it is found that the IPDR protocol version between the MAC Manager and the IPDR Server is IPDR 2.0. Subsequently, the MAC Manager receives the first message of the IPDR 2.0 version, parses the first message, and repackages the first message according to the GRPC format to obtain the second message.
S903、MAC Manager根据第二消息确定IPDR Server所关联的至少一个R-MACPHY。S903. The MAC manager determines at least one R-MACPHY associated with the IPDR server according to the second message.
S904、MAC Manager建立与R-MACPHY之间的连接。S904. The MAC Manager establishes a connection with the R-MACPHY.
示例性的,若第二接口协议为GRPC协议,则MAC Manager建立与R-MACPHY之间的GRPC连接。Exemplarily, if the second interface protocol is the GRPC protocol, the MAC Manager establishes a GRPC connection with the R-MACPHY.
可选的,MAC Manager可通过如下两种方式中的任意一种建立与R-MACPHY之间的GRPC连接:Optionally, the MAC Manager can establish a GRPC connection with the R-MACPHY in any of the following two ways:
方式1:MAC Manager主动向R-MACPHY发送GRPC连接请求,以建立GRPC连接。Method 1: The MAC Manager actively sends a GRPC connection request to the R-MACPHY to establish a GRPC connection.
如此,R-MACPHY可周期性的采集数据,并将采集的数据上传至指定设备。若未配置指定设备,则R-MACPHY默认将采集的数据上传至MAC Manager。并且,在方式1中,若MAC Manager与R-MACPHY之间的GRPC连接断开,则R-MACPHY不再向上推送所采集的数据。In this way, R-MACPHY can collect data periodically and upload the collected data to a designated device. If the specified device is not configured, R-MACPHY uploads the collected data to MAC Manager by default. And, in the method 1, if the GRPC connection between the MAC Manager and the R-MACPHY is disconnected, the R-MACPHY no longer pushes the collected data upwards.
方式2:MAC Manager接收R-MACPHY主动发起的GRPC连接请求,以建立与R-MACPHY之间的GRPC连接。Method 2: The MAC Manager receives a GRPC connection request initiated by the R-MACPHY to establish a GRPC connection with the R-MACPHY.
在方式2中,若MAC Manager与R-MACPHY之间的GRPC连接断开,R-MACPHY会重新尝试建立GRPC连接,并上传采集的数据至MAC Manager。In method 2, if the GRPC connection between the MAC Manager and R-MACPHY is disconnected, R-MACPHY will retry to establish a GRPC connection and upload the collected data to the MAC Manager.
需要说明的是,MAC Manager还可以在接收来自IPDR Server的第一消息(即S901)后触发建立与R-MACPHY间连接的动作,或者,在S902之后或与S902同时执行,本申请实施例不对S904的执行时机进行限制。It should be noted that the MAC Manager can also trigger the action of establishing a connection with the R-MACPHY after receiving the first message (ie, S901) from the IPDR Server, or it can be executed after S902 or simultaneously with S902. This embodiment of the present application is not correct. The execution timing of S904 is restricted.
S905、分别向至少一个R-MACPHY发送第二消息。S905. Send second messages to at least one R-MACPHY, respectively.
相应的,R-MACPHY接收来自IPDR Server的第二消息。Accordingly, the R-MACPHY receives the second message from the IPDR server.
S906、R-MACPHY向MAC Manager发送以第二接口协议格式封装的第一数据。S906. The R-MACPHY sends the first data encapsulated in the second interface protocol format to the MAC Manager.
相应的,MAC Manager接收R-MACPHY发送的第一数据。Correspondingly, the MAC Manager receives the first data sent by the R-MACPHY.
S907、MAC Manager按照第一接口协议格式封装第一数据,得到第二数据。S907. The MAC Manager encapsulates the first data according to the first interface protocol format to obtain the second data.
具体的,S907可实现为:MAC Manager将第一数据的封装格式由第二接口协议中除IPDR协议之外的任一协议对应的封装格式修改为第一协议版本对应的封装格式,得到第二数据。比如,若第二接口协议为GRPC协议,第一协议版本为IPDR2.0,则MAC Manager在接收到GRPC格式的第一数据后,解封装该第一数据,并将解封装后的第一数据按照IPDR2.0格式重新封装,得到第二数据。Specifically, S907 can be implemented as follows: The MAC Manager changes the encapsulation format of the first data from the encapsulation format corresponding to any protocol in the second interface protocol except the IPDR protocol to the encapsulation format corresponding to the first protocol version to obtain the second data. For example, if the second interface protocol is the GRPC protocol and the first protocol version is IPDR 2.0, the MAC Manager decapsulates the first data after receiving the first data in the GRPC format, and decapsulates the first data. Re-encapsulate according to the IPDR 2.0 format to obtain the second data.
S908、MAC Manager根据第二数据确定R-MACPHY所关联的IPDR Server。S908. The MAC manager determines the IPDR server associated with the R-MACPHY according to the second data.
S909、MAC Manager向IPDR Server发送第二数据。S909. The MAC Manager sends the second data to the IPDR Server.
图9所示的数据采集流程的详细描述可参见图8所示流程,这里不再赘述。For a detailed description of the data collection process shown in FIG. 9, refer to the process shown in FIG. 8, and details are not described herein again.
采用上述数据采集方法,第二网元与第三网元之间传输IPDR协议格式封装的数据或消息,第二网元与第三网元之间传输非IPDR协议格式封装的数据或消息,使得使得数据或消息格式与承载该数据或消息的传输通道相适应,提升数据采集的成功率。With the above data collection method, data or messages encapsulated in the IPDR protocol format are transmitted between the second network element and the third network element, and data or messages encapsulated in the non-IPDR protocol format are transmitted between the second network element and the third network element, so that The data or message format is adapted to the transmission channel carrying the data or message, and the success rate of data collection is improved.
需要说明的是,本申请实施例的第一接口协议不局限于IPDR协议,还可以为IPDR协议的演进协议,或者,与IPDR协议具备相同功能的其他协议。类似的,第二接口协议不局限于上述列举的协议,还可以为所列举协议的演进版本协议,或者,与所列举协议具备相同功能的其他协议。It should be noted that the first interface protocol in the embodiment of the present application is not limited to the IPDR protocol, and may also be an evolved protocol of the IPDR protocol, or another protocol having the same function as the IPDR protocol. Similarly, the second interface protocol is not limited to the above-listed protocols, but may also be an evolved version of the listed protocols, or other protocols having the same functions as the listed protocols.
可以理解的是,本申请实施例中的网元为了实现上述功能,其包含了执行各个功能相应的硬件结构和/或软件模块。结合本申请中所公开的实施例描述的各示例的单元及算法步骤,本申请实施例能够以硬件或硬件和计算机软件的结合形式来实现。某个功能究竟以硬件还是计算机软件驱动硬件的方式来执行,取决于技术方案的特定应用和设计约束条件。本领域技术人员可以对每个特定的应用来使用不同的方法来实现所描述的功能,但是这种实现不应认为超出本申请实施例的技术方案的范围。It can be understood that, in order to implement the foregoing functions, the network element in the embodiment of the present application includes a hardware structure and / or a software module corresponding to each function. With reference to the units and algorithm steps of each example described in the embodiments disclosed in this application, the embodiments of this application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a certain function is performed by hardware or computer software-driven hardware depends on the specific application of the technical solution and design constraints. Those skilled in the art may use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the technical solutions of the embodiments of the present application.
本申请实施例可以根据上述方法示例对网元进行功能单元的划分,例如,可以对应各个功能划分各个功能单元,也可以将两个或两个以上的功能集成在一个处理单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。需要说明的是,本申请实施例中对单元的划分是示意性的,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式。In the embodiment of the present application, functional unit division may be performed on the network element according to the foregoing method example. For example, each functional unit may be divided corresponding to each function, or two or more functions may be integrated into one processing unit. The above integrated unit may be implemented in the form of hardware or in the form of software functional unit. It should be noted that the division of the units in the embodiments of the present application is schematic, and is only a logical function division. There may be another division manner in actual implementation.
图10示出了本申请实施例中提供的数据采集装置的一种示意性框图,该数据采集装置可以为上述的第二网元。该数据采集装置1000可以以软件的形式存在,还可以为可用于设备的芯片。数据采集装置1000包括:处理单元1002和通信单元1003。FIG. 10 shows a schematic block diagram of a data acquisition device provided in an embodiment of the present application, and the data acquisition device may be the foregoing second network element. The data acquisition device 1000 may exist in the form of software, or may be a chip that can be used in a device. The data acquisition device 1000 includes a processing unit 1002 and a communication unit 1003.
处理单元1002可以用于支持第二网元执行图8中的S802、S803、S806、S807,图9中的S902、S903、S907、S908等,和/或用于本文所描述的方案的其它过程。通信单元1003用于支持第二网元和其他网元(例如上述第一网元、第三网元等)之间的通信,例如支持第二网元执行图5中的S501至S512,图7中的S701至S707,图8中的S801、S804、S805、S808,图9中的S901、S904、S905、S906、S909等。The processing unit 1002 may be used to support the second network element to perform S802, S803, S806, S807 in FIG. 8, S902, S903, S907, S908, etc. in FIG. 9, and / or other processes for the scheme described herein . The communication unit 1003 is configured to support communication between the second network element and other network elements (for example, the first network element and the third network element described above). For example, the second network element supports S501 to S512 in FIG. 5 and FIG. 7. S701 to S707, S801, S804, S805, and S808 in FIG. 8, S901, S904, S905, S906, and S909 in FIG. 9.
可选的,数据采集装置1000还可以包括存储单元1001,用于存储数据采集装置1000的程序代码和数据,数据可以包括不限于原始数据或者中间数据等。Optionally, the data acquisition device 1000 may further include a storage unit 1001 for storing program codes and data of the data acquisition device 1000. The data may include, but is not limited to, original data or intermediate data.
一种可能的方式中,处理单元1002可以是控制器或图4所示的处理器401或处理器405,例如可以是中央处理器(Central Processing Unit,CPU),通用处理器,数字信号处理(Digital Signal Processing,DSP),应用专用集成电路(Application Specific  Integrated Circuit,ASIC),现场可编程门阵列(Field-Programmable Gate Array,FPGA)或者其他可编程逻辑器件、晶体管逻辑器件、硬件部件或者其任意组合。其可以实现或执行结合本申请公开内容所描述的各种示例性的逻辑方框,模块和电路。所述处理器也可以是实现计算功能的组合,例如包含一个或多个微处理器组合,DSP和微处理器的组合等等。通信单元1003可以是收发器、收发电路或图4所示的通信接口404等。存储单元1001可以是图4所示的存储器403。In a possible manner, the processing unit 1002 may be a controller or the processor 401 or the processor 405 shown in FIG. 4, for example, it may be a central processing unit (CPU), a general-purpose processor, and digital signal processing ( Digital Signal Processing (DSP), Application Specific Integrated Circuit (ASIC), Field-Programmable Gate Array (FPGA) or other programmable logic devices, transistor logic devices, hardware components or any of them combination. It may implement or execute various exemplary logical blocks, modules, and circuits described in connection with the present disclosure. The processor may also be a combination that implements computing functions, such as a combination including one or more microprocessors, a combination of a DSP and a microprocessor, and so on. The communication unit 1003 may be a transceiver, a transceiver circuit, or the communication interface 404 shown in FIG. 4 and the like. The storage unit 1001 may be a memory 403 shown in FIG. 4.
本领域普通技术人员可以理解:在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。所述计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行所述计算机程序指令时,全部或部分地产生按照本申请实施例所述的流程或功能。所述计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。所述计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,所述计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线(Digital Subscriber Line,DSL))或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。所述计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包括一个或多个可用介质集成的服务器、数据中心等数据存储设备。所述可用介质可以是磁性介质,(例如,软盘、硬盘、磁带)、光介质(例如,数字视频光盘(Digital Video Disc,DVD))、或者半导体介质(例如固态硬盘(Solid State Disk,SSD))等。A person of ordinary skill in the art may understand that in the foregoing embodiments, all or part may be implemented by software, hardware, firmware, or any combination thereof. When implemented in software, it may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the processes or functions according to the embodiments of the present application are generated. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be from a website site, computer, server, or data center Transmission to another website site, computer, server or data center via wired (such as coaxial cable, optical fiber, Digital Subscriber Line (DSL)) or wireless (such as infrared, wireless, microwave, etc.). The computer-readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server, a data center, and the like including one or more available medium integration. The usable medium may be a magnetic medium (for example, a floppy disk, a hard disk, a magnetic tape), an optical medium (for example, a Digital Video Disc (DVD)), or a semiconductor medium (for example, a solid state disk (Solid State Disk, SSD)) )Wait.
在本申请所提供的几个实施例中,应该理解到,所揭露的系统,装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed systems, devices, and methods may be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the unit is only a logical function division. In actual implementation, there may be another division manner. For example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored or not implemented. In addition, the displayed or discussed mutual coupling or direct coupling or communication connection may be indirect coupling or communication connection through some interfaces, devices or units, and may be electrical or other forms.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络设备(例如终端设备)上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, which may be located in one place, or may be distributed to multiple network devices (for example, Terminal device). Some or all of the units may be selected according to actual needs to achieve the objective of the solution of this embodiment.
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个功能单元独立存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用硬件加软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each functional unit may exist independently, or two or more units may be integrated into one unit. The above integrated unit may be implemented in the form of hardware, or in the form of hardware plus software functional units.
通过以上的实施方式的描述,所属领域的技术人员可以清楚地了解到本申请可借助软件加必需的通用硬件的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在可读取的存储介质中,如计算机的软盘,硬盘或光盘等,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本申请各个实施例所述的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that this application can be implemented by means of software plus necessary general hardware, and of course, also by hardware, but in many cases the former is a better implementation. . Based on such an understanding, the technical solution of this application that is essentially or contributes to the existing technology can be embodied in the form of a software product, which is stored in a readable storage medium, such as a computer's floppy disk , A hard disk or an optical disc, etc., includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the methods described in the embodiments of the present application.
以上所述,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,在本申请揭露的技术范围内的变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以所述权利要求的保护范围为准。The above description is only a specific implementation of the present application, but the scope of protection of the present application is not limited thereto, and changes or replacements within the technical scope disclosed in the present application shall be covered by the protection of the present application. Therefore, the protection scope of this application shall be subject to the protection scope of the claims.

Claims (28)

  1. 一种数据采集方法,其特征在于,包括:A data collection method, comprising:
    第二网元接收第三网元发送的以第一接口协议格式封装的第一消息,以及按照第二接口协议格式封装所述第一消息,得到第二消息,所述第一接口协议为互联网详细记录IPDR协议,所述第二接口协议包括表征状态转移配置restconf协议、网络配置netconf协议、简单网络管理协议SNMP、远程过程调用RPC协议;The second network element receives the first message encapsulated in the first interface protocol format sent by the third network element, and encapsulates the first message according to the second interface protocol format to obtain a second message. The first interface protocol is the Internet. Record the IPDR protocol in detail. The second interface protocol includes a state transfer configuration restconf protocol, a network configuration netconf protocol, a simple network management protocol SNMP, and a remote procedure call RPC protocol.
    所述第二网元根据所述第二消息确定所述第三网元所关联的至少一个第一网元,以及分别向所述至少一个第一网元发送第二消息,所述第二消息用于请求所述至少一个第一网元所采集的数据;Determining, by the second network element, at least one first network element associated with the third network element according to the second message, and sending a second message to the at least one first network element, the second message, respectively Configured to request data collected by the at least one first network element;
    所述第二网元接收第一网元发送的以所述第二接口协议格式封装的第一数据,以及按照所述第一接口协议格式封装所述第一数据,得到第二数据,所述第一网元为所述至少一个第一网元中的任意一个第一网元;Receiving, by the second network element, first data sent by the first network element and encapsulated in the second interface protocol format, and encapsulating the first data according to the first interface protocol format to obtain second data, where The first network element is any one of the at least one first network element;
    所述第二网元根据所述第二数据确定所述第一网元所关联的所述第三网元,以及向所述第三网元发送所述第二数据。The second network element determines the third network element associated with the first network element according to the second data, and sends the second data to the third network element.
  2. 根据权利要求1所述的数据采集方法,其特征在于,在所述第二网元接收第三网元发送的以第一接口协议格式封装的第一消息之前,所述方法还包括:The data collection method according to claim 1, wherein before the second network element receives a first message encapsulated in a first interface protocol format sent by a third network element, the method further comprises:
    所述第二网元接收所述第三网元发送的第一版本协商请求,所述第一版本协商请求用于请求协商第一协议版本,所述第一协议版本为所述第二网元与所述第三网元之间的IPDR协议版本;Receiving, by the second network element, a first version negotiation request sent by the third network element, where the first version negotiation request is used to request to negotiate a first protocol version, and the first protocol version is the second network element An IPDR protocol version with the third network element;
    所述第二网元向所述第三网元发送第一版本协商响应,所述第一版本协商响应携带第一协议版本;Sending, by the second network element, a first version negotiation response to the third network element, where the first version negotiation response carries a first protocol version;
    或者,所述第二网元向所述第三网元发送所述第一版本协商请求;Alternatively, the second network element sends the first version negotiation request to the third network element;
    所述第二网元接收所述第三网元发送的第一版本协商响应。Receiving, by the second network element, a first version negotiation response sent by the third network element.
  3. 根据权利要求1所述的数据采集方法,其特征在于,在所述第二网元接收第三网元发送的以第一接口协议格式封装的第一消息之前,所述方法还包括:The data collection method according to claim 1, wherein before the second network element receives a first message encapsulated in a first interface protocol format sent by a third network element, the method further comprises:
    所述第二网元向所述第一网元发送第二版本协商请求,所述第二版本协商请求用于请求协商第二协议版本,所述第二协议版本为所述第二网元与所述第一网元之间的IPDR协议版本;Sending, by the second network element, a second version negotiation request to the first network element, where the second version negotiation request is used to request to negotiate a second protocol version, and the second protocol version is An IPDR protocol version between the first network elements;
    所述第二网元接收所述第一网元发送的第二版本协商响应,所述第二版本协商响应携带第二协议版本;Receiving, by the second network element, a second version negotiation response sent by the first network element, where the second version negotiation response carries a second protocol version;
    或者,所述第二网元接收所述第一网元发送的第二版本协商请求;Or, the second network element receives a second version negotiation request sent by the first network element;
    所述第二网元向所述第一网元发送第二版本协商响应。The second network element sends a second version negotiation response to the first network element.
  4. 根据权利要求2或3所述的数据采集方法,其特征在于,所述第二网元按照第二接口协议格式封装所述第一消息,得到第二消息,包括:The data collection method according to claim 2 or 3, wherein the second network element encapsulates the first message according to a second interface protocol format to obtain a second message, comprising:
    若第一协议版本不同于第二协议版本,所述第二网元将所述第一消息的封装格式由所述第一协议版本对应的封装格式修改为所述第二协议版本对应的封装格式,得到所述第二消息。If the first protocol version is different from the second protocol version, the second network element changes the encapsulation format of the first message from the encapsulation format corresponding to the first protocol version to the encapsulation format corresponding to the second protocol version. To get the second message.
  5. 根据权利要求2或3所述的数据采集方法,其特征在于,所述第二网元按照所述第一接口协议格式封装所述第一数据,得到第二数据,包括:The data collection method according to claim 2 or 3, wherein the second network element encapsulates the first data according to the first interface protocol format to obtain second data, comprising:
    若第一协议版本不同于第二协议版本,所述第二网元将所述第一数据的封装格式由所述第二协议版本对应的封装格式修改为所述第一协议版本对应的封装格式,得到所述第二数据。If the first protocol version is different from the second protocol version, the second network element changes the encapsulation format of the first data from the encapsulation format corresponding to the second protocol version to the encapsulation format corresponding to the first protocol version. To obtain the second data.
  6. 根据权利要求1或2所述的数据采集方法,其特征在于,所述第二网元按照第二接口协议格式封装所述第一消息,得到第二消息,包括:The data collection method according to claim 1 or 2, wherein the second network element encapsulates the first message according to a second interface protocol format to obtain a second message, comprising:
    所述第二网元将所述第一消息的封装格式由所述第一协议版本对应的封装格式修改为所述第二接口协议中除所述IPDR协议之外的任一协议对应的封装格式,得到第二消息。Modifying, by the second network element, an encapsulation format of the first message from an encapsulation format corresponding to the first protocol version to an encapsulation format corresponding to any protocol other than the IPDR protocol in the second interface protocol To get the second message.
  7. 根据权利要求1或2所述的数据采集方法,其特征在于,所述第二网元按照所述第一接口协议格式封装所述第一数据,得到第二数据,包括:The data collection method according to claim 1 or 2, wherein the second network element encapsulates the first data according to the first interface protocol format to obtain second data, comprising:
    所述第二网元将所述第一数据的封装格式由所述第二接口协议中除所述IPDR协议之外的任一协议对应的封装格式修改为所述第一协议版本对应的封装格式,得到所述第二数据。Modifying, by the second network element, the encapsulation format of the first data from an encapsulation format corresponding to any protocol other than the IPDR protocol in the second interface protocol to an encapsulation format corresponding to the first protocol version To obtain the second data.
  8. 根据权利要求1所述的数据采集方法,其特征在于,在所述第二网元接收第三网元发送的以第一接口协议格式封装的第一消息之前,所述方法还包括:The data collection method according to claim 1, wherein before the second network element receives a first message encapsulated in a first interface protocol format sent by a third network element, the method further comprises:
    在所述第三网元工作在主动模式的情况下,所述第二网元接收所述第三网元发送的传输控制协议TCP连接请求,所述TCP连接请求用于请求建立所述第三网元与所述第二网元之间的TCP连接;When the third network element works in an active mode, the second network element receives a Transmission Control Protocol TCP connection request sent by the third network element, and the TCP connection request is used to request establishment of the third network element. A TCP connection between the network element and the second network element;
    或者,在所述第三网元工作在被动模式的情况下,所述第二网元向所述第三网元发送TCP连接请求。Alternatively, when the third network element works in a passive mode, the second network element sends a TCP connection request to the third network element.
  9. 根据权利要求1所述的数据采集方法,其特征在于,在所述第二网元接收第三网元发送的以第一接口协议格式封装的第一消息之前,所述方法还包括:The data collection method according to claim 1, wherein before the second network element receives a first message encapsulated in a first interface protocol format sent by a third network element, the method further comprises:
    在所述第二网元工作在主动模式的情况下,所述第二网元向所述第一网元发送TCP连接请求,所述TCP连接请求用于请求建立所述第二网元与所述第一网元间的TCP连接;In a case where the second network element works in an active mode, the second network element sends a TCP connection request to the first network element, and the TCP connection request is used to request establishment of the second network element and all network elements. The TCP connection between the first network elements;
    或者,在所述第二网元工作在被动模式的情况下,所述第二网元接收所述第一网元发送的TCP连接请求。Alternatively, when the second network element works in a passive mode, the second network element receives a TCP connection request sent by the first network element.
  10. 根据权利要求1所述的数据采集方法,其特征在于,在所述第二网元接收第三网元发送的以第一接口协议格式封装的第一消息之前,所述方法还包括:The data collection method according to claim 1, wherein before the second network element receives a first message encapsulated in a first interface protocol format sent by a third network element, the method further comprises:
    在所述第三网元工作在被动模式的情况下,所述第二网元向所述第三网元发送IPDR连接请求,所述IPDR连接请求用于请求建立所述第三网元与所述第二网元间的IPDR连接;In a case where the third network element works in a passive mode, the second network element sends an IPDR connection request to the third network element, and the IPDR connection request is used to request establishment of the third network element and all network elements. The IPDR connection between the second network elements;
    所述第二网元接收所述第三网元发送的IPDR连接响应;Receiving, by the second network element, an IPDR connection response sent by the third network element;
    或者,在所述第三网元工作在主动模式的情况下,所述第二网元接收所述第三网元发送的IPDR连接请求;Alternatively, when the third network element works in an active mode, the second network element receives an IPDR connection request sent by the third network element;
    所述第二网元向所述第三网元发送IPDR连接响应。The second network element sends an IPDR connection response to the third network element.
  11. 根据权利要求1所述的数据采集方法,其特征在于,在所述第二网元接收第三网元发送的以第一接口协议格式封装的第一消息之前,所述方法还包括:The data collection method according to claim 1, wherein before the second network element receives a first message encapsulated in a first interface protocol format sent by a third network element, the method further comprises:
    在所述第二网元工作在被动模式的情况下,所述第二网元接收所述第一网元发送 IPDR连接请求,所述IPDR连接请求用于请求建立所述第一网元与所述第二网元间的IPDR连接;In a case where the second network element works in a passive mode, the second network element receives an IPDR connection request sent by the first network element, and the IPDR connection request is used to request establishment of the first network element and all network elements. The IPDR connection between the second network elements;
    所述第二网元向所述第三网元发送IPDR连接响应;Sending, by the second network element, an IPDR connection response to the third network element;
    或者,在所述第二网元工作在主动模式的情况下,所述第二网元向所述第一网元发送IPDR连接请求;Alternatively, when the second network element works in an active mode, the second network element sends an IPDR connection request to the first network element;
    所述第二网元接收所述第一网元发送的IPDR连接响应。Receiving, by the second network element, an IPDR connection response sent by the first network element.
  12. 根据权利要求1所述的数据采集方法,其特征在于,在所述第二网元接收第三网元发送的以第一接口协议格式封装的第一消息之前,所述方法还包括:The data collection method according to claim 1, wherein before the second network element receives a first message encapsulated in a first interface protocol format sent by a third network element, the method further comprises:
    所述第二网元接收所述第三网元发送的会话查询请求,所述会话查询请求用于请求查询所述第一网元关联的会话;Receiving, by the second network element, a session query request sent by the third network element, where the session query request is used to request to query a session associated with the first network element;
    所述第二网元向所述第三网元发送会话查询响应,所述会话查询响应携带所述第一网元关联的会话。The second network element sends a session query response to the third network element, and the session query response carries a session associated with the first network element.
  13. 根据权利要求1所述的数据采集方法,其特征在于,在所述第二网元接收第三网元发送的以第一接口协议格式封装的第一消息之前,所述方法还包括:The data collection method according to claim 1, wherein before the second network element receives a first message encapsulated in a first interface protocol format sent by a third network element, the method further comprises:
    所述第二网元向所述第一网元发送会话查询请求,所述会话查询请求用于请求查询所述第一网元关联的会话;Sending, by the second network element, a session query request to the first network element, where the session query request is used to request to query a session associated with the first network element;
    所述第二网元接收所述第一网元发送的会话查询响应,所述会话查询响应携带所述第一网元所关联的会话。The second network element receives a session query response sent by the first network element, and the session query response carries a session associated with the first network element.
  14. 一种数据采集装置,其特征在于,所述装置设置有收发器和处理器;A data acquisition device, characterized in that the device is provided with a transceiver and a processor;
    所述收发器,用于接收第三网元发送的以第一接口协议格式封装的第一消息;The transceiver is configured to receive a first message encapsulated in a first interface protocol format sent by a third network element;
    所述处理器,用于按照第二接口协议格式封装所述收发器接收的所述第一消息,得到第二消息,所述第一接口协议为互联网详细记录IPDR协议,所述第二接口协议包括表征状态转移配置restconf协议、网络配置netconf协议、简单网络管理协议SNMP、远程过程调用RPC协议;The processor is configured to encapsulate the first message received by the transceiver according to a second interface protocol format to obtain a second message, the first interface protocol is an Internet detailed record IPDR protocol, and the second interface protocol Including characterization state transfer configuration restconf protocol, network configuration netconf protocol, simple network management protocol SNMP, remote procedure call RPC protocol;
    所述处理器,还用于根据所述第二消息确定所述第三网元所关联的至少一个第一网元;The processor is further configured to determine at least one first network element associated with the third network element according to the second message;
    所述收发器,还用于分别向所述至少一个第一网元发送第二消息,所述第二消息用于请求所述至少一个第一网元所采集的数据;接收第一网元发送的以所述第二接口协议格式封装的第一数据;The transceiver is further configured to separately send a second message to the at least one first network element, where the second message is used to request data collected by the at least one first network element; and receive the first network element sends The first data encapsulated in the second interface protocol format;
    所述处理器,还用于按照所述第一接口协议格式封装所述第一数据,得到第二数据,所述第一网元为所述至少一个第一网元中的任意一个第一网元;根据所述第二数据确定所述第一网元所关联的所述第三网元;The processor is further configured to encapsulate the first data according to the first interface protocol format to obtain second data, and the first network element is any one of the at least one first network element. Element; determining the third network element associated with the first network element according to the second data;
    所述收发器,还用于向所述第三网元发送所述第二数据。The transceiver is further configured to send the second data to the third network element.
  15. 根据权利要求14所述的数据采集装置,其特征在于,The data acquisition device according to claim 14, wherein:
    所述收发器,还用于接收所述第三网元发送的第一版本协商请求,所述第一版本协商请求用于请求协商第一协议版本,所述第一协议版本为所述第二网元与所述第三网元之间的IPDR协议版本;向所述第三网元发送第一版本协商响应,所述第一版本协商响应携带第一协议版本;The transceiver is further configured to receive a first version negotiation request sent by the third network element, where the first version negotiation request is used to request to negotiate a first protocol version, and the first protocol version is the second An IPDR protocol version between the network element and the third network element; sending a first version negotiation response to the third network element, where the first version negotiation response carries the first protocol version;
    或者,所述收发器,还用于向所述第三网元发送所述第一版本协商请求;接收所 述第三网元发送的第一版本协商响应。Alternatively, the transceiver is further configured to send the first version negotiation request to the third network element; and receive the first version negotiation response sent by the third network element.
  16. 根据权利要求14所述的数据采集装置,其特征在于,The data acquisition device according to claim 14, wherein:
    所述收发器,还用于向所述第一网元发送第二版本协商请求,所述第二版本协商请求用于请求协商第二协议版本,所述第二协议版本为所述第二网元与所述第一网元之间的IPDR协议版本;接收所述第一网元发送的第二版本协商响应,所述第二版本协商响应携带第二协议版本;The transceiver is further configured to send a second version negotiation request to the first network element, where the second version negotiation request is used to request to negotiate a second protocol version, and the second protocol version is the second network An IPDR protocol version between the element and the first network element; receiving a second version negotiation response sent by the first network element, where the second version negotiation response carries a second protocol version;
    或者,所述收发器,还用于接收所述第一网元发送的第二版本协商请求;向所述第一网元发送第二版本协商响应。Alternatively, the transceiver is further configured to receive a second version negotiation request sent by the first network element; and send a second version negotiation response to the first network element.
  17. 根据权利要求15或16所述的数据采集装置,其特征在于,所述处理器,用于按照第二接口协议格式封装所述第一消息,得到第二消息,包括:用于若第一协议版本不同于第二协议版本,将所述第一消息的封装格式由所述第一协议版本对应的封装格式修改为所述第二协议版本对应的封装格式,得到所述第二消息。The data acquisition device according to claim 15 or 16, wherein the processor is configured to encapsulate the first message according to a second interface protocol format to obtain a second message, including: The version is different from the second protocol version, and the encapsulation format of the first message is modified from the encapsulation format corresponding to the first protocol version to the encapsulation format corresponding to the second protocol version to obtain the second message.
  18. 根据权利要求15或16所述的数据采集装置,其特征在于,所述处理器,用于按照所述第一接口协议格式封装所述第一数据,得到第二数据,包括:用于若第一协议版本不同于第二协议版本,将所述第一数据的封装格式由所述第二协议版本对应的封装格式修改为所述第一协议版本对应的封装格式,得到所述第二数据。The data acquisition device according to claim 15 or 16, wherein the processor is configured to encapsulate the first data according to the first interface protocol format to obtain second data, including: A protocol version is different from a second protocol version, and an encapsulation format of the first data is modified from an encapsulation format corresponding to the second protocol version to an encapsulation format corresponding to the first protocol version to obtain the second data.
  19. 根据权利要求14或15所述的数据采集装置,其特征在于,所述处理器,用于按照第二接口协议格式封装所述第一消息,得到第二消息,包括:用于将所述第一消息的封装格式由所述第一协议版本对应的封装格式修改为所述第二接口协议中除所述IPDR协议之外的任一协议对应的封装格式,得到第二消息。The data acquisition device according to claim 14 or 15, wherein the processor is configured to encapsulate the first message according to a second interface protocol format to obtain a second message, including: The encapsulation format of a message is changed from the encapsulation format corresponding to the first protocol version to the encapsulation format corresponding to any protocol other than the IPDR protocol in the second interface protocol to obtain a second message.
  20. 根据权利要求14或15所述的数据采集装置,其特征在于,所述处理器,用于按照所述第一接口协议格式封装所述第一数据,得到第二数据,包括:用于将所述第一数据的封装格式由所述第二接口协议中除所述IPDR协议之外的任一协议对应的封装格式修改为所述第一协议版本对应的封装格式,得到所述第二数据。The data acquisition device according to claim 14 or 15, wherein the processor is configured to encapsulate the first data according to the first interface protocol format to obtain second data, and includes: The encapsulation format of the first data is changed from an encapsulation format corresponding to any protocol in the second interface protocol except the IPDR protocol to an encapsulation format corresponding to the first protocol version to obtain the second data.
  21. 根据权利要求14所述的数据采集装置,其特征在于,The data acquisition device according to claim 14, wherein:
    所述收发器,还用于在所述第三网元工作在主动模式的情况下,接收所述第三网元发送的传输控制协议TCP连接请求,所述TCP连接请求用于请求建立所述第三网元与所述第二网元之间的TCP连接;The transceiver is further configured to receive a Transmission Control Protocol TCP connection request sent by the third network element when the third network element works in an active mode, and the TCP connection request is used to request establishment of the TCP connection request. A TCP connection between the third network element and the second network element;
    或者,所述收发器,还用于在所述第三网元工作在被动模式的情况下,向所述第三网元发送TCP连接请求。Alternatively, the transceiver is further configured to send a TCP connection request to the third network element when the third network element works in a passive mode.
  22. 根据权利要求14所述的数据采集装置,其特征在于,The data acquisition device according to claim 14, wherein:
    所述收发器,还用于在所述第二网元工作在主动模式的情况下,向所述第一网元发送TCP连接请求,所述TCP连接请求用于请求建立所述第二网元与所述第一网元间的TCP连接;The transceiver is further configured to send a TCP connection request to the first network element when the second network element works in an active mode, and the TCP connection request is used to request establishment of the second network element A TCP connection with the first network element;
    或者,所述收发器,还用于在所述第二网元工作在被动模式的情况下,接收所述第一网元发送的TCP连接请求。Alternatively, the transceiver is further configured to receive a TCP connection request sent by the first network element when the second network element works in a passive mode.
  23. 根据权利要求14所述的数据采集装置,其特征在于,The data acquisition device according to claim 14, wherein:
    所述收发器,还用于在所述第三网元工作在被动模式的情况下,向所述第三网元发送IPDR连接请求,接收所述第三网元发送的IPDR连接响应;所述IPDR连接请求 用于请求建立所述第三网元与所述第二网元间的IPDR连接;The transceiver is further configured to: when the third network element works in a passive mode, send an IPDR connection request to the third network element, and receive an IPDR connection response sent by the third network element; the The IPDR connection request is used to request to establish an IPDR connection between the third network element and the second network element;
    或者,所述收发器,还用于在所述第三网元工作在主动模式的情况下,接收所述第三网元发送的IPDR连接请求;向所述第三网元发送IPDR连接响应。Alternatively, the transceiver is further configured to receive an IPDR connection request sent by the third network element when the third network element works in an active mode; and send an IPDR connection response to the third network element.
  24. 根据权利要求14所述的数据采集装置,其特征在于,The data acquisition device according to claim 14, wherein:
    所述收发器,还用于在所述第二网元工作在被动模式的情况下,接收所述第一网元发送IPDR连接请求,向所述第三网元发送IPDR连接响应;所述IPDR连接请求用于请求建立所述第一网元与所述第二网元间的IPDR连接;The transceiver is further configured to: when the second network element works in a passive mode, receive an IPDR connection request sent by the first network element, and send an IPDR connection response to the third network element; the IPDR A connection request is used to request to establish an IPDR connection between the first network element and the second network element;
    或者,所述收发器,还用于在所述第二网元工作在主动模式的情况下,向所述第一网元发送IPDR连接请求;接收所述第一网元发送的IPDR连接响应。Alternatively, the transceiver is further configured to send an IPDR connection request to the first network element when the second network element works in an active mode; and receive an IPDR connection response sent by the first network element.
  25. 根据权利要求14所述的数据采集装置,其特征在于,The data acquisition device according to claim 14, wherein:
    所述收发器,还用于接收所述第三网元发送的会话查询请求,向所述第三网元发送会话查询响应;所述会话查询请求用于请求查询所述第一网元关联的会话;所述会话查询响应携带所述第一网元关联的会话。The transceiver is further configured to receive a session query request sent by the third network element, and send a session query response to the third network element; the session query request is used to request a query of the first network element association. Session; the session query response carries a session associated with the first network element.
  26. 根据权利要求14所述的数据采集装置,其特征在于,The data acquisition device according to claim 14, wherein:
    所述收发器,还用于向所述第一网元发送会话查询请求,接收所述第一网元发送的会话查询响应;所述会话查询请求用于请求查询所述第一网元关联的会话;所述会话查询响应携带所述第一网元所关联的会话。The transceiver is further configured to send a session query request to the first network element, and receive a session query response sent by the first network element; the session query request is used to request a query of the first network element association. Session; the session query response carries a session associated with the first network element.
  27. 一种可读存储介质,其特征在于,包括程序或指令,当所述程序或指令被执行时,如权利要求1至13中任一项所述的数据采集方法被实现。A readable storage medium, comprising a program or an instruction, and when the program or the instruction is executed, the data collection method according to any one of claims 1 to 13 is implemented.
  28. 一种芯片,其特征在于,所述芯片包括处理器,所述处理器和存储器耦合,所述存储器存储有程序指令,当所述存储器存储的程序指令被所述处理器执行时实现权利要求1至13任意一项所述的数据采集方法。A chip, characterized in that the chip includes a processor, the processor is coupled to a memory, the memory stores program instructions, and the program instruction stored in the memory is implemented when the processor executes claim 1 The data collection method according to any one of 13 to 13.
PCT/CN2018/098688 2018-08-03 2018-08-03 Data collection method and apparatus WO2020024303A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
PCT/CN2018/098688 WO2020024303A1 (en) 2018-08-03 2018-08-03 Data collection method and apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2018/098688 WO2020024303A1 (en) 2018-08-03 2018-08-03 Data collection method and apparatus

Publications (1)

Publication Number Publication Date
WO2020024303A1 true WO2020024303A1 (en) 2020-02-06

Family

ID=69231347

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/098688 WO2020024303A1 (en) 2018-08-03 2018-08-03 Data collection method and apparatus

Country Status (1)

Country Link
WO (1) WO2020024303A1 (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1449157A (en) * 2002-03-30 2003-10-15 深圳市中兴通讯股份有限公司 Network management system and method
CN103297273A (en) * 2013-06-04 2013-09-11 华为技术有限公司 Equipment management method, device and system
CN106357590A (en) * 2015-07-15 2017-01-25 艾默生网络能源系统北美公司 Network protocol conversion system, network protocol converter and network protocol conversion method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1449157A (en) * 2002-03-30 2003-10-15 深圳市中兴通讯股份有限公司 Network management system and method
CN103297273A (en) * 2013-06-04 2013-09-11 华为技术有限公司 Equipment management method, device and system
CN106357590A (en) * 2015-07-15 2017-01-25 艾默生网络能源系统北美公司 Network protocol conversion system, network protocol converter and network protocol conversion method

Similar Documents

Publication Publication Date Title
US20210084443A1 (en) Methods of joint registration and de-registration for proximity services and internet of things services
EP3576379B1 (en) Service layer interworking using mqtt protocol
KR101740449B1 (en) Method for changing gateway in machine-to-machine (m2m) system and device therefor
EP3025483B1 (en) End-to-end m2m service layer sessions
EP3005822B1 (en) Mac layer transport for wi-fi direct services application service platform without internet protocol
US20210274418A1 (en) Information Transmission Method and Apparatus
CN111434083B (en) Network management equipment and centralized authorization server for NETCONF
WO2019157968A1 (en) Communication method, apparatus and system
WO2017147772A1 (en) Method of transmitting information and core network access apparatus
WO2016180020A1 (en) Message processing method, device and system
US20220239761A1 (en) Data Subscription Method, Apparatus, and System
WO2019242525A1 (en) Data transmission method, related device and system
WO2018196463A1 (en) Method and apparatus for network access, storage medium, and processor
WO2022151420A1 (en) Method, apparatus, and system for transmitting data packet
CN111385131A (en) Configuration method, device, equipment and system of network equipment
US20200344725A1 (en) Data transmission method and apparatus, and computer storage medium
EP4233272A1 (en) Interactive calling for internet-of-things
WO2023035925A1 (en) Service processing method, apparatus and system
EP3220584A1 (en) Wifi sharing method and system, home gateway and wireless local area network gateway
WO2020024303A1 (en) Data collection method and apparatus
CN110620999B (en) User plane data processing method and device
US20220124008A1 (en) Automated Service Layer Message Flow Management In A Communications Network
WO2019140648A1 (en) Method and device for reporting information by terminal, and a computer storage medium
EP3912329B1 (en) Automated service layer message flow management in a communications network
EP4210384A1 (en) Service data flow transmission method, communication device, and communication system

Legal Events

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

Ref document number: 18928183

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 18928183

Country of ref document: EP

Kind code of ref document: A1