WO2021057802A1 - Das system management method and device, electronic device, and storage medium - Google Patents

Das system management method and device, electronic device, and storage medium Download PDF

Info

Publication number
WO2021057802A1
WO2021057802A1 PCT/CN2020/117184 CN2020117184W WO2021057802A1 WO 2021057802 A1 WO2021057802 A1 WO 2021057802A1 CN 2020117184 W CN2020117184 W CN 2020117184W WO 2021057802 A1 WO2021057802 A1 WO 2021057802A1
Authority
WO
WIPO (PCT)
Prior art keywords
snmp
master device
das system
snmp message
network management
Prior art date
Application number
PCT/CN2020/117184
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 三维通信股份有限公司
Publication of WO2021057802A1 publication Critical patent/WO2021057802A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/02Standardisation; Integration
    • H04L41/0213Standardised network management protocols, e.g. simple network management protocol [SNMP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/04Network management architectures or arrangements
    • H04L41/046Network management architectures or arrangements comprising network management agents or mobile agents therefor

Definitions

  • This application relates to the technical field of DAS systems, and in particular to a method, equipment, electronic equipment, and storage medium for managing a DAS system.
  • the Distributed Antenna System is a network composed of multiple antennas distributed in a building and dedicated to providing wireless indoor coverage.
  • the DAS system there are AU (Access Unit), EU (Expansion Unit), and RU (Remote Unit).
  • the DAS system is usually composed of a master device (note: this master device is AU), multiple slave devices and optional expansion units. Among them, there is a single master device, which serves as the control center of the entire DAS system and manages itself and all others.
  • the expansion unit and slave device are both slave devices and can be managed by the master device AU.
  • the master device and the slave device are connected through transmission media such as optical fiber and network cable, and communicate using the IP protocol.
  • a method for managing a DAS system including a master device and at least one slave device communicating with the master device, and the method includes:
  • the main device deploys a simple network management protocol agent according to preset rules
  • the Simple Network Management Protocol agent in the master device receives an SNMP message, and the SNMP message carries the device code of the target device;
  • the master device parses the SNMP message to obtain the target device to be managed in the DAS system;
  • the master device When the target device is the slave device, the master device performs conversion processing on the SNMP message so that the slave device can be accessed and managed.
  • the master device deploys the simple network management protocol agent according to preset rules, including:
  • the main device obtains the open source simple network management protocol proxy source code
  • the main device compiles and modifies the source code based on the version number of the simple network management protocol, so that the simple network management protocol agent can receive the SNMP message encoded by the portable device;
  • the host device installs the modified simple network management protocol proxy source code.
  • the main device compiling and modifying the source code based on the version number of the simple network management protocol includes:
  • a version number of the simple network management protocol Acquiring, by the master device, a version number of the simple network management protocol, where the version number includes a first version, a second version, or a third version;
  • the modification of the interface function in the source code includes:
  • the master device parsing the SNMP message to obtain the target device to be managed in the DAS system includes:
  • the master device parses a preset field in the SNMP message to obtain a device code
  • the target device Obtain the target device according to the device code; wherein the preset field is the location of the Community or the Context Name in the location of the SNMP message, and the device code is used to identify the target device.
  • the master device parsing the SNMP message to obtain the target device to be managed in the DAS system further includes:
  • the main device parses the preset fields in the SNMP message to obtain fixed characters
  • the method further includes:
  • the target device is obtained according to the device code.
  • the master device when the target device is the slave device, performs conversion processing on the SNMP message so that the slave device can be accessed and managed, including:
  • the master device converts the SNMP message to form a mobile data packet and outputs it to the target device, and the mobile data packet has a DAS protocol packet format;
  • the target device processes and responds to the mobile data packet and transmits it to the host device;
  • the master device converts the mobile data packet after the response into an SNMP data packet so that the slave device can be accessed and managed.
  • the method further includes:
  • the master device processes the SNMP message so that the master device can be accessed and managed.
  • a device for managing a DAS system including:
  • SNMP client used to send SNMP packets
  • the DAS system includes a master device and at least one slave device communicating with the master device; wherein the master device communicates with the SNMP client; the master device is deployed with a simple network management protocol agent according to preset rules , And receive and parse the SNMP message to obtain the target device to be managed in the DAS system.
  • the master device converts the SNMP message Process to enable the slave device to be accessed and managed.
  • an electronic device including a memory and a processor, and a computer program is stored in the memory.
  • the processor executes management Steps of the method of the DAS system.
  • a computer-readable storage medium on which a computer program is stored, characterized in that, when the computer program is executed by a processor, the steps of the method for managing a DAS system are implemented.
  • the entire DAS system only deploys the SNMP agent on the master device, and does not need to deploy the SNMP agent on the slave device of the DAS system, which can realize the management of all devices in the DAS system through SNMP. Furthermore, most of the slave devices in the DAS system do not need to deploy SNMP agents on the slave devices, which improves the stability of the entire DAS system, and when the SNMP development version needs to be updated, only the agent deployed in the master device needs to be modified. , Simplifies the secondary development.
  • Fig. 1 is an application environment diagram of a method for managing a DAS system according to an embodiment of the present application.
  • Fig. 2 is a flowchart of a method for managing a DAS system according to an embodiment of the present application.
  • Fig. 3 is a flow chart of a device according to an embodiment of the present application deploying a simple network management protocol agent according to preset rules.
  • Fig. 4 is a flowchart of a master device parsing the SNMP packet in an embodiment of the present application to obtain a target device used for processing the SNMP packet in the DAS system.
  • FIG. 5 is a flowchart of a master device parsing the SNMP message to obtain a target device used to process the SNMP message in the DAS system according to another embodiment of the present application.
  • Fig. 6 is a flow chart of the master device converting the SNMP message to enable the slave device to be accessed and managed when the target device is the slave device in an embodiment of the present application.
  • Fig. 7 is a flowchart of the conversion of SNMP messages between the master device and the slave device according to an embodiment of the present application.
  • first and second are only used for descriptive purposes, and cannot be understood as indicating or implying relative importance or implicitly indicating the number of indicated technical features. Therefore, the features defined with “first” and “second” may explicitly or implicitly include at least one of the features.
  • a plurality of means at least two, such as two, three, etc., unless specifically defined otherwise.
  • everal means at least one, such as one, two, etc., unless otherwise specifically defined.
  • the DAS system is usually composed of a master device (note: this master device is AU), multiple slave devices and optional expansion units. Among them, there is a single master device, which serves as the control center of the entire DAS system, managing itself and all others.
  • the expansion unit and slave device are usually composed of a master device (note: this master device is AU), multiple slave devices and optional expansion units. Among them, there is a single master device, which serves as the control center of the entire DAS system, managing itself and all others.
  • the expansion unit and slave device is usually composed of a master device (note: this master device is AU), multiple slave devices and optional expansion units.
  • the network management method of the DAS system is based on the Simple Network Management Protocol (SNMP) to manage the master and slave devices in the DAS system.
  • SNMP Simple Network Management Protocol
  • the SNMP protocol uses the C/S structure.
  • SNMP is a standard protocol specifically designed to manage network nodes (servers, workstations, routers, switches, HUBS, etc.) in an IP network. It is an application layer protocol, for example, an application layer protocol of the TCP/IP protocol suite .
  • the simple network management protocol includes three SNMP protocol versions: SNMPv1 (RFCs 1155-1157), SNMPv2c (RFCs 1901-1908), and SNMPv3 (RFCs 2271-2275).
  • Fig. 1 is a schematic diagram of an application environment of a network management method of a DAS system in an embodiment.
  • the application environment includes SNMP client (network management) and SNMP server.
  • the SNMP server can be understood as a master device deployed with an SNMP agent.
  • the master device has a unique IP address and MAC address.
  • Both SNMP client and SNMP server support the SNMP protocol to realize the communication between SNMP client and SNMP server.
  • the SNMP client can directly access the main device where the SNMP agent is deployed according to the IP address of the main device.
  • Fig. 2 is a flowchart of a method of managing a DAS system in an embodiment.
  • the method for managing the DAS system in this embodiment is described by taking the DAS system in FIG. 1 as an example. As shown in FIG. 2, the method of managing the DAS system includes steps 201 to 204.
  • Step 201 The master device deploys a simple network management protocol agent according to preset rules.
  • Agent is a network management software module that exists in the managed equipment.
  • the agent is used to control the management information of the local device and transmit the management information in a format compatible with SNMP.
  • the simple network management protocol agent (SNMP agent) is deployed in the master device of the DAS system according to preset rules.
  • the preset rules can be understood as the rules for compiling and modifying the traditional open source SNMP agent source code.
  • traditional open source SNMP agent source code can be compiled and modified based on preset rules to obtain custom SNMP agent source code.
  • the main device can use the custom SNMP agent source code to install and deploy the SNMP agent.
  • Step 202 The Simple Network Management Protocol agent in the master device receives an SNMP message.
  • the main device can be used as an SNMP server to realize network communication with SNMP clients.
  • the SNMP agent in the main device can interact with the SNMP client, and then accept SNMP packets sent by the SNMP client.
  • the character information in a specific location for example, Community and Context Name
  • the character information needs to be put in this specific position is provided by the host device developer with the protocol, and the SNMP client fills this field according to the protocol.
  • the target device to be managed can be set through the WEBOMT interface of the main device.
  • a fixed character can be set through the WEBOMT interface of the main device.
  • the fixed character and the device code form a preset field, which will be placed in a specific location (Community and Context Name) of the SNMP message and transmitted to the main device along with the SNMP message in.
  • the device code can be understood as the unique identification of the device.
  • the device number of the slave device can be configured by the master device, and the device number of each slave device in the same DAS system is unique.
  • the SNMP client needs to fill the community field in the SNMP v1/v2c data packet with fixed characters + device code before sending SNMP packet data.
  • the SNMP client needs to fill the Context Name field in the SNMPv3 packet with fixed characters + device code before sending SNMP packet data.
  • Step 203 The master device parses the SNMP message to obtain the target device to be managed in the DAS system.
  • the SNMP message carries the device code of the target device.
  • a simple SNMP v2c GET message can be displayed as follows: "snmpget-v 2c-c public local host system.sysName.0".
  • the community name (Community) in the traditional SNMP v1/v2c message is fixed as public. That is, before the source code is modified, after the master device receives the SNMP message data, it can only parse the Community as public.
  • the main device of the deployed simple network management protocol agent can handle any community, that is, the main The device can parse the characters in the position to obtain the device code carried in the SNMP message information, and obtain the target device to be managed according to the device code.
  • a simple SNMP v3 GET message can be displayed as follows: "snmpget-v 3-n"public"-u noAuthUser-l noAuthNoPriv” or "snmpget-v 3-u noAuthUser-l noAuthNoPriv” .
  • the SNMPv3 message has Context Name.
  • When adding with -n in the source code only public can be added. When other characters are added, the operation will be abnormally terminated; or it is not displayed in the message, and the default is public at this time. That is, before the source code is modified, after the master device receives the SNMP message data, it can only resolve the Context Name to public or not display it.
  • the SNMP v3 GET message can be displayed as follows: "snmpget-v 3-n"public"-l authPriv-u username-A spassword-a SHA-X spassword-x AES" or "snmpget-v 3-l authPriv-u username-A spassword-a SHA-X spassword-x AES”.
  • the master device of the deployed simple network management protocol agent can process any Context Name, that is, the master device can parse the characters in the position , To obtain the device code carried in the SNMP message information, and obtain the target device to be managed according to the device code.
  • the target device can be the master device in the DAS system or the slave device in the DAS system.
  • Step 204 When the target device is the slave device, the master device performs conversion processing on the SNMP message so that the slave device can be managed.
  • the master device can convert the SNMP message to convert it into a DAS internal protocol packet, and then send the DAS internal protocol packet to the corresponding slave device. After the DAS internal protocol packet is processed and responded, it is sent back to the master device. Among them, the data packet received by the slave device has been changed from the SNMP message data to the DAS internal protocol packet by the master device, so there is no need to do any SNMP processing on the slave device.
  • the master device receives the DAS internal protocol packet returned by the slave device, and then converts it into an SNMP packet and sends it to the SNMP network manager, so that the slave device can be accessed and managed by the SNMP network manager.
  • the main device deploys a simple network management protocol agent according to preset rules; the simple network management protocol agent in the main device receives SNMP packets, and the main device parses the SNMP packets, To obtain the target device to be managed in the DAS system; when the target device is the slave device, the master device performs conversion processing on the SNMP message to enable the slave device to be managed.
  • the entire DAS system only deploys the SNMP agent on the master device, and does not need to deploy the SNMP agent on the slave device of the DAS system, which can realize the management of all devices in the DAS system through SNMP.
  • the method for managing the DAS system further includes: when the target device is the master device, the master device processes the SNMP message so that the master device can be accessed and managed A step of.
  • the target device when the target device is the main device itself, its main device can process the SNMP packet, for example, it can parse the information contained in the SNMP packet, such as read power, write attenuation, and so on.
  • the main device can feed back the processed SNMP message to the SNMP client based on the SNMP protocol to realize the access management of the main device by SNMP.
  • the master device deploys the simple network management protocol agent according to preset rules, including:
  • Step 301 The main device obtains the open source simple network management protocol proxy source code.
  • Step 302 The main device compiles and modifies the source code based on the version number of the simple network management protocol, so that the simple network management protocol agent can receive the SNMP message encoded by the portable device.
  • Step 303 The host device installs the modified simple network management protocol proxy source code.
  • the master device obtains the version number of the simple network management protocol.
  • the simple network management protocol includes the first version of SNMPv1 (RFCs 1155-1157), the second version of SNMPv2c (RFCs 1901-1908), or the third version of SNMPv3 (RFCs2271-2275). ) Three SNMP protocol versions.
  • the first version of SNMPv1 is the initial version of the SNMP protocol, providing minimal network management functions.
  • SNMPv1 uses community name authentication, which is similar to a password and is used to restrict network management system (NMS) access to agents.
  • NMS network management system
  • the second version of SNMPv2c also uses community name authentication. It is compatible with SNMPv1 and also provides more operation types (GetBulk--Bulk get operation, etc.); supports more data types (Counter32, etc.).
  • the third version of SNMPv3 adds security management methods and remote control, it uses USM (user-based security control model) and VACM (view-based access control model) technology.
  • main device compiling and modifying the source code based on the version number of the simple network management protocol specifically includes:
  • the main device can transplant the open source simple network management protocol agent source code and modify the obtained agent source code.
  • the interface function Variables_Handler in the agent source code can be modified, where the interface function Variables_Handler is used to parse the data message.
  • the modification method can be to add the netsnmp_agent_request_info*reqinfo parameter to the interface function Variables_Handler, and add this parameter to all upper-level interface functions in the agent source code.
  • the agent after adding formal parameters to the interface function Variables_Handler, after the agent runs in the main device, when the SNMP client enters any character in the Community of the SNMP message, the simple network management protocol in the main device
  • the agent can receive the SNMP message data including the characters in the Community, and forward the SNMP message data to the SNMP process of the main device, and then the main device can analyze and process the SNMP message.
  • the community name in the SNMP message that is, the community Community
  • the agent in the main device can handle any community.
  • the version number is the third version of SNMPv3
  • the modification processing method of SNMPv1 or SNMPv2c cannot be used.
  • SNMPv3 is compatible with the above-mentioned SNMPv1 or SNMPv2c.
  • the source code of the open source simple network management protocol agent is modified again. Specifically, you can focus on modifying the Context Name registry detection function so that the agent can receive and process any Context Name in the SNMP message.
  • any Context Name in the SNMP message can be received by the Simple Network Management Protocol agent in the main device, and the SNMP message The data is forwarded to the SNMP process of the master device, and then the master device parses the SNMP message.
  • the DAS system implements three SNMP protocol version compatible processing, SNMPv1, SNMPv2c, and SNMPv3.
  • the SNMP client can use any version to access the master device and the slave device in the DAS system.
  • the master device parses the SNMP message to obtain the target device used for processing the SNMP message in the DAS system, which specifically includes:
  • Step 401 The master device parses a preset field in the SNMP message to obtain a device code
  • Step 402 Obtain the target device according to the device code; wherein the preset field is the location of Community or Context Name in the location of the SNMP message, and the device code is used to identify the target device.
  • the SNMP client needs to fill the community field in the SNMP v1/v2c data packet with fixed characters + device code before sending SNMP packet data.
  • the master device receives the SNMP message, it can parse the community field location to obtain the device code carried in the SNMP message information, and obtain the target device to be managed according to the device code.
  • the device code is used to identify the target device. That is, the preset field of the SNMP message carries identity information used to identify the target device.
  • SNMP v2c Take SNMP v2c as an example for description. Assume that the master device receives the following SNMP message "snmpget-v 2c-c swdas0hostIP OID". The master device can first parse the public swdas0, and then get the number after swdas, which is 0 here. Where 0 can be used to represent the identity information of the master device. Therefore, the SNMP message is sent by the SNMP client to the main device, and can be directly processed by the main device to realize access management to the main device.
  • SNMP v2c suppose the master device receives the following SNMP message "snmpget-v 2c-c swdas1hostIP OID".
  • the master device can first parse the swdas1 public body, and then obtain the number after swdas, which is 1 here. Among them, 1 can be used to represent the identity information of a certain slave device. It means that the SNMP message is not sent to the master device, but the SNMP client sends to the slave device corresponding to the device code "1" in the DAS system.
  • the SNMP client needs to fill the Context Name field in the SNMPv3 packet with fixed characters + device sub id before sending SNMP packet data.
  • the master device receives the SNMP message, it can parse the device code in the Context Name field to obtain the device code carried in the SNMP message information, and obtain the target device to be managed according to the device code.
  • the master device parses the SNMP message to obtain the target device to be managed in the DAS system, and further includes:
  • Step 403 The master device parses the preset fields in the SNMP message to obtain fixed characters.
  • Step 402 Before acquiring the target device according to the device code, step 404 is further included.
  • Step 404 Authenticate the fixed characters in the SNMP message, and execute step 402 after the authentication is passed.
  • step 402 is executed. For example, when the SNMP message received by the master device is "snmpget-v 2c-c swdas1hostIP OID", the master device will parse the swdas1 community, and first determine whether swdas meets the security requirements. If it meets the security requirements, perform step 402, Characters obtain the target device. That is, the master device will obtain the number after swdas, here is 1, which means that the SNMP message is not sent to the master device, but to the slave device corresponding to the device code "1" in the DAS system. That is the target device.
  • a preset field such as Community or Context Name
  • the master device converts the SNMP message so that the slave device can be accessed and managed, including :
  • Step 501 When the target device is the slave device, the master device converts the SNMP message to form a mobile data packet and outputs it to the target device.
  • the mobile data packet has a DAS protocol packet. format
  • Step 502 The target device processes and responds to the mobile data packet and transmits it to the host device;
  • Step 503 The master device converts the mobile data packet after the response into an SNMP data packet so that the slave device can be accessed and managed.
  • Packet 1 is an SNMP message received by the master device.
  • the master device parses data packet 1, and the device code contained in its Community is 1, that is, the target device is a slave device with device number 1.
  • the data packet 1 also includes the OID in the SNMP protocol.
  • the master device converts data packet 1 into data packet 2.
  • the data packet 2 can be understood as a packet of other protocols that can be recognized by the slave device, for example, DAS internal protocol packet .
  • the master device sends the mobile data packet to the target device for processing, and the target device does not need to deploy the SNMP agent to process and respond to the mobile data packet.
  • the target device When the target device processes the mobile data packet, it forms data packet 3, and sends the data packet 3 back to the master device.
  • the master device converts the mobile data packet after the response and converts it to something that can be recognized by the SNMP client. SNMP data packet, and then realize the access management to the target device.
  • steps in the flowcharts of FIGS. 2 to 6 are displayed in sequence as indicated by the arrows, these steps are not necessarily executed in sequence in the order indicated by the arrows. Unless there is a clear description in this article, there is no strict order for the execution of these steps, and these steps can be executed in other orders. Moreover, at least part of the steps in Figure 2-6 may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily executed at the same time, but can be executed at different times. These sub-steps or The execution order of the stages is not necessarily carried out sequentially, but may be executed alternately or alternately with at least a part of other steps or sub-steps or stages of other steps.
  • the equipment that manages the DAS system includes:
  • SNMP client used to send SNMP packets
  • the DAS system includes a master device and at least one slave device communicating with the master device; wherein the master device communicates with the SNMP client; the master device is deployed with a simple network management protocol agent according to preset rules , And receive and parse the SNMP message to obtain the target device to be managed in the DAS system.
  • the master device converts the SNMP message Process to enable the slave device to be accessed and managed.
  • the entire DAS system only deploys the SNMP agent on the master device, and does not need to deploy the SNMP agent on the slave device of the DAS system, and can manage all devices in the DAS system through SNMP. Furthermore, most of the slave devices in the DAS system do not need to deploy SNMP agents on the slave devices, which improves the stability of the entire DAS system, and when the SNMP development version needs to be updated, only the agent deployed in the master device needs to be modified. , Simplifies the secondary development.
  • the main device includes:
  • the deployment module is used to deploy a simple network management protocol agent according to preset rules
  • Agent module used to receive SNMP messages
  • a parsing module configured to parse the SNMP message to obtain the target device to be managed in the DAS system
  • the processing module is configured to: when the target device is the slave device, the master device performs conversion processing on the SNMP message so that the slave device can be accessed and managed.
  • the deployment module is further used to obtain the open source simple network management protocol agent source code; compile and modify the source code based on the version number of the simple network management protocol, so that the simple network management protocol agent can receive and carry The SNMP message encoded by the device; the simple network management protocol agent source code after installation and modification.
  • the parsing module is further configured to parse a preset field in the SNMP message to obtain a device code; obtain the target device according to the device code; wherein, the preset field is in the SNMP message
  • the location of is the location of Community or ContextName, and the device code is used to identify the target device.
  • the parsing module is further used to parse preset fields in the SNMP message to obtain fixed characters
  • the main device further includes an authentication module for verifying the fixed characters in the SNMP message.
  • the parsing module is further configured to obtain the target device according to the device code after the authentication is passed.
  • the processing module is also used to convert the SNMP message to form a mobile data packet and output it to the target device.
  • the mobile data packet has the format of a DAS protocol packet; The mobile data packet after the device response is converted into an SNMP data packet so that the slave device can be accessed and managed.
  • the processing module is further configured to, when the target device is the master device, the master device processes the SNMP message so that the master device can be accessed and managed.
  • each module in the device for managing the DAS system is only for illustration. In other embodiments, the device for managing the DAS system can be divided into different modules as needed to complete all or part of the device for managing the DAS system.
  • Each module in the above-mentioned equipment for managing the DAS system can be implemented in whole or in part by software, hardware, and combinations thereof.
  • the above-mentioned modules may be embedded in the form of hardware or independent of the processor in the computer equipment, or may be stored in the memory of the computer equipment in the form of software, so that the processor can call and execute the operations corresponding to the above-mentioned modules.
  • each module in the device for managing the DAS system may be in the form of a computer program.
  • the computer program can be run on a terminal or a server.
  • the program module composed of the computer program can be stored in the memory of the terminal or the server.
  • the embodiment of the present application also provides a computer-readable storage medium.
  • One or more non-volatile computer-readable storage media containing computer-executable instructions when the computer-executable instructions are executed by one or more processors, cause the processors to perform the steps of the method for managing a DAS system .
  • the embodiment of the present application also provides a computer program product containing instructions, which when running on a computer, causes the computer to execute the method for managing the DAS system.
  • An embodiment of the present application also provides an electronic device, including a memory and a processor, the memory stores a computer program, and when the computer program is executed by the processor, the processor executes the method for managing a DAS system A step of.
  • Non-volatile memory may include read only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory.
  • Volatile memory may include random access memory (RAM), which acts as external cache memory.
  • RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDR SDRAM), enhanced SDRAM (ESDRAM), synchronous Link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
  • SRAM static RAM
  • DRAM dynamic RAM
  • SDRAM synchronous DRAM
  • DDR SDRAM double data rate SDRAM
  • ESDRAM enhanced SDRAM
  • SLDRAM synchronous Link (Synchlink) DRAM
  • Rambus direct RAM
  • DRAM direct memory bus dynamic RAM
  • RDRAM memory bus dynamic RAM

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer And Data Communications (AREA)

Abstract

The present application relates to a DAS system management method and device, an electronic device, and a storage medium. A DAS system management method comprises: a master device deploying a simple network management protocol agent according to a preset rule; the simple network management protocol agent in the master device receiving an SNMP message, and the master device parsing the SNMP message, so as to acquire a target device to be managed in a DAS system; and if the target device is a slave device, the master device converting the SNMP message so as to enable the slave device to be managed. The entire DAS system only deploys an SNMP agent in a master device, without deploying an SNMP agent in a slave device of the DAS system, so that all devices in the DAS system can be managed by means of an SNMP, improving the stability of the entire DAS system, simplifying the secondary development.

Description

管理DAS系统的方法和设备、电子设备、存储介质Method and equipment for managing DAS system, electronic equipment and storage medium
相关申请Related application
本申请要求2019年9月23日申请的,申请号为201910900747.5,发明名称为“管理DAS系统的方法和设备、电子设备、存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application filed on September 23, 2019, the application number is 201910900747.5, and the invention title is "Method and equipment for managing DAS system, electronic equipment, storage medium", the entire content of which is incorporated by reference In this application.
技术领域Technical field
本申请涉及DAS系统技术领域,特别是涉及一种管理DAS系统的方法和设备、电子设备、存储介质。This application relates to the technical field of DAS systems, and in particular to a method, equipment, electronic equipment, and storage medium for managing a DAS system.
背景技术Background technique
分布式天线系统(Distributed Antenna System,DAS)是一个由分布于某个建筑物内、专门用于提供无线室内覆盖的多个天线组成的网络。DAS系统中分别有AU(Access Unit,接入单元)、EU(Expansion Unit,扩展单元)和RU(Remote Unit,远端单元)。DAS系统通常由主设备(注:这个主设备就是AU)以及多个从设备和可选的扩展单元构成,其中有唯一的一个主设备,作为整个DAS系统的控制中心,管理它本身以及其它所有的扩展单元以及从设备。其中,扩展单元EU和远端单元RU都是从设备,可由主设备AU管理。主设备与从设备通过光纤、网线等传输介质连接,使用IP协议进行通信。The Distributed Antenna System (DAS) is a network composed of multiple antennas distributed in a building and dedicated to providing wireless indoor coverage. In the DAS system, there are AU (Access Unit), EU (Expansion Unit), and RU (Remote Unit). The DAS system is usually composed of a master device (note: this master device is AU), multiple slave devices and optional expansion units. Among them, there is a single master device, which serves as the control center of the entire DAS system and manages itself and all others. The expansion unit and slave device. Among them, the expansion unit EU and the remote unit RU are both slave devices and can be managed by the master device AU. The master device and the slave device are connected through transmission media such as optical fiber and network cable, and communicate using the IP protocol.
需要对DAS系统的主设备和从设备进行管理时,一般只有一台主设备可以被外网访问,其他从设备没有外网,这些没有外网的从设备即使部署了简单网络管理协议代理,也无法被SNMP客户端访问。When it is necessary to manage the master device and slave device of the DAS system, generally only one master device can be accessed by the external network, and other slave devices have no external network. Even if the simple network management protocol agent is deployed for these slave devices without external network, Cannot be accessed by SNMP clients.
发明内容Summary of the invention
根据本申请的各种实施例,提供一种管理DAS系统的方法,所述DAS系统包括主设备和与所述主设备进行通信的至少一个从设备,所述方法包括:According to various embodiments of the present application, there is provided a method for managing a DAS system, the DAS system including a master device and at least one slave device communicating with the master device, and the method includes:
所述主设备按照预设规则部署简单网络管理协议代理;The main device deploys a simple network management protocol agent according to preset rules;
所述主设备中的所述简单网络管理协议代理接收SNMP报文,所述SNMP报文携带目标设备的设备编码;The Simple Network Management Protocol agent in the master device receives an SNMP message, and the SNMP message carries the device code of the target device;
所述主设备解析所述SNMP报文,以获取所述DAS系统中待管理的所述目标设备;The master device parses the SNMP message to obtain the target device to be managed in the DAS system;
当所述目标设备为所述从设备时,所述主设备对所述SNMP报文进行转换处理以使所述从设备能够被访问管理。When the target device is the slave device, the master device performs conversion processing on the SNMP message so that the slave device can be accessed and managed.
在其中一个实施例中,所述主设备按照预设规则部署简单网络管理协议代理,包括:In one of the embodiments, the master device deploys the simple network management protocol agent according to preset rules, including:
所述主设备获取开源的简单网络管理协议代理源码;The main device obtains the open source simple network management protocol proxy source code;
所述主设备基于所述简单网络管理协议的版本号对所述源码进行编译修改,以使所述简单网络管理协议代理能够接收携带设备编码的所述SNMP报文;The main device compiles and modifies the source code based on the version number of the simple network management protocol, so that the simple network management protocol agent can receive the SNMP message encoded by the portable device;
所述主设备安装修改后的简单网络管理协议代理源码。The host device installs the modified simple network management protocol proxy source code.
在其中一个实施例中,所述主设备基于所述简单网络管理协议的版本号对所述源码进行编译修改,包括:In one of the embodiments, the main device compiling and modifying the source code based on the version number of the simple network management protocol includes:
所述主设备获取所述简单网络管理协议的版本号,所述版本号包括第一版本、第二版本或第三版本;Acquiring, by the master device, a version number of the simple network management protocol, where the version number includes a first version, a second version, or a third version;
当所述版本号为所述第一版本或所述第二版本时,修改所述源码中的接口函数,所述接口函数用于解析数据报文;When the version number is the first version or the second version, modify the interface function in the source code, and the interface function is used to parse the data message;
当所述版本号为所述第三版本时,修改注册表检查函数。When the version number is the third version, modify the registry check function.
在其中一个实施例中,所述修改所述源码中的接口函数,包括:In one of the embodiments, the modification of the interface function in the source code includes:
增加netsnmp_agent_request_info*reqinfo形参。Add netsnmp_agent_request_info*reqinfo parameter.
在其中一个实施例中,所述主设备解析所述SNMP报文,以获取所述DAS系统中待管理的目标设备,包括:In one of the embodiments, the master device parsing the SNMP message to obtain the target device to be managed in the DAS system includes:
所述主设备解析所述SNMP报文中的预设字段以获取设备编码;The master device parses a preset field in the SNMP message to obtain a device code;
根据所述设备编码获取所述目标设备;其中,所述预设字段在所述SNMP报文的位置为Community或Context Name所在位置,所述设备编码用于标识所述目标设备。Obtain the target device according to the device code; wherein the preset field is the location of the Community or the Context Name in the location of the SNMP message, and the device code is used to identify the target device.
在其中一个实施例中,所述主设备解析所述SNMP报文,以获取所述DAS系统中待管理的目标设备,还包括:In one of the embodiments, the master device parsing the SNMP message to obtain the target device to be managed in the DAS system further includes:
所述主设备解析所述SNMP报文中的预设字段以获取固定字符;The main device parses the preset fields in the SNMP message to obtain fixed characters;
所述根据所述设备编码获取所述目标设备前,还包括:Before acquiring the target device according to the device code, the method further includes:
对所述SNMP报文中的固定字符进行鉴权;Authenticate the fixed characters in the SNMP message;
当鉴权通过后根据所述设备编码获取所述目标设备。After the authentication is passed, the target device is obtained according to the device code.
在其中一个实施例中,当所述目标设备为所述从设备时,所述主设备对所述SNMP报文进行转换处理以使所述从设备能够被访问管理,包括:In one of the embodiments, when the target device is the slave device, the master device performs conversion processing on the SNMP message so that the slave device can be accessed and managed, including:
当所述目标设备为所述从设备时,所述主设备对所述SNMP报文进行转换以形成移动数据包并输出给所述目标设备,所述移动数据包具有DAS协议包的格式;When the target device is the slave device, the master device converts the SNMP message to form a mobile data packet and outputs it to the target device, and the mobile data packet has a DAS protocol packet format;
所述目标设备处理并应答所述移动数据包并传输至所述主设备;The target device processes and responds to the mobile data packet and transmits it to the host device;
所述主设备将应答后的移动数据包转换为SNMP数据包以使所述从设备能够被访问管理。The master device converts the mobile data packet after the response into an SNMP data packet so that the slave device can be accessed and managed.
在其中一个实施例中,所述方法还包括:In one of the embodiments, the method further includes:
当所述目标设备为所述主设备时,所述主设备对所述SNMP报文处理以使所述主设备能够被访问管理。When the target device is the master device, the master device processes the SNMP message so that the master device can be accessed and managed.
根据本申请的各种实施例,还提供一种管理DAS系统的设备,包括:According to various embodiments of the present application, a device for managing a DAS system is also provided, including:
SNMP客户端,用于发送SNMP报文;SNMP client, used to send SNMP packets;
DAS系统,包括主设备和与所述主设备进行通信的至少一个从设备;其中,所述主设备与所述SNMP客户端进行通信;所述主设备按照预设规则部署有简单网络管理协议代理,并接收并解析所述SNMP报文,以获取所述DAS系统中待管理的所述目标设备,当所述目标设备为所述从设备时,所述主设备对所述SNMP报文进行转换处理以使所述从设备能够被访问管理。The DAS system includes a master device and at least one slave device communicating with the master device; wherein the master device communicates with the SNMP client; the master device is deployed with a simple network management protocol agent according to preset rules , And receive and parse the SNMP message to obtain the target device to be managed in the DAS system. When the target device is the slave device, the master device converts the SNMP message Process to enable the slave device to be accessed and managed.
根据本申请的各种实施例,还提供一种电子设备,包括存储器及处理器,所述存储器中储存有计算机程序,所述计算机程序被所述处理器执行时,使得所述处理器执行管理DAS系统的方法的步骤。According to various embodiments of the present application, there is also provided an electronic device, including a memory and a processor, and a computer program is stored in the memory. When the computer program is executed by the processor, the processor executes management Steps of the method of the DAS system.
根据本申请的各种实施例,还提供一种计算机可读存储介质,其上存储有计算机程序,其特征在于,所述计算机程序被处理器执行时实现管理DAS系统的方法的步骤。According to various embodiments of the present application, there is also provided a computer-readable storage medium on which a computer program is stored, characterized in that, when the computer program is executed by a processor, the steps of the method for managing a DAS system are implemented.
上述管理DAS系统的方法和设备、电子设备、计算机可读存储介质具有以下优点:The above-mentioned method and equipment for managing DAS system, electronic equipment, and computer-readable storage medium have the following advantages:
整个DAS系统仅在主设备部署SNMP代理,而不需要在DAS系统的从设备上部署SNMP代理,可实现通过SNMP管理DAS系统中的所有设备。进一步的,DAS系统中从设备居多,不需要在从设备上部署SNMP代理,提高了整个DAS系统的稳定性,并且当需要更新SNMP开发版本时,也只需要修改主设备中部署的代理即可,简化了二次开发。The entire DAS system only deploys the SNMP agent on the master device, and does not need to deploy the SNMP agent on the slave device of the DAS system, which can realize the management of all devices in the DAS system through SNMP. Furthermore, most of the slave devices in the DAS system do not need to deploy SNMP agents on the slave devices, which improves the stability of the entire DAS system, and when the SNMP development version needs to be updated, only the agent deployed in the master device needs to be modified. , Simplifies the secondary development.
附图说明Description of the drawings
为了更好地描述和说明这里公开的那些发明的实施例和/或示例,可以参考一幅或多幅附图。用于描述附图的附加细节或示例不应当被认为是对所公开的发明、目前描述的实施例和/或示例以及目前理解的这些发明的最佳模式中的任何一者的范围的限制。In order to better describe and explain the embodiments and/or examples of those inventions disclosed herein, one or more drawings may be referred to. The additional details or examples used to describe the drawings should not be considered as limiting the scope of any of the disclosed inventions, the currently described embodiments and/or examples, and the best mode of these inventions currently understood.
图1是本申请实施例的管理DAS系统的方法的应用环境图。Fig. 1 is an application environment diagram of a method for managing a DAS system according to an embodiment of the present application.
图2是本申请实施例的管理DAS系统的方法的流程图。Fig. 2 is a flowchart of a method for managing a DAS system according to an embodiment of the present application.
图3是本申请实施例的设备按照预设规则部署简单网络管理协议代理的流程图。Fig. 3 is a flow chart of a device according to an embodiment of the present application deploying a simple network management protocol agent according to preset rules.
图4是本申请实施例的主设备解析所述SNMP报文,以获取所述DAS系统中用于处 理所述SNMP报文的目标设备的流程图。Fig. 4 is a flowchart of a master device parsing the SNMP packet in an embodiment of the present application to obtain a target device used for processing the SNMP packet in the DAS system.
图5是本申请另一实施例的主设备解析所述SNMP报文,以获取所述DAS系统中用于处理所述SNMP报文的目标设备的流程图。FIG. 5 is a flowchart of a master device parsing the SNMP message to obtain a target device used to process the SNMP message in the DAS system according to another embodiment of the present application.
图6是本申请实施例的当所述目标设备为所述从设备时,所述主设备对所述SNMP报文进行转换处理以使所述从设备能够被访问管理的流程图。Fig. 6 is a flow chart of the master device converting the SNMP message to enable the slave device to be accessed and managed when the target device is the slave device in an embodiment of the present application.
图7是本申请实施例的SNMP报文在主设备和从设备中转换的流程图。Fig. 7 is a flowchart of the conversion of SNMP messages between the master device and the slave device according to an embodiment of the present application.
具体实施方式detailed description
为了便于理解本申请,为使本申请的上述目的、特征和优点能够更加明显易懂,下面结合附图对本申请的具体实施方式做详细的说明。在下面的描述中阐述了很多具体细节以便于充分理解本申请,附图中给出了本申请的较佳实施方式。但是,本申请可以以许多不同的形式来实现,并不限于本文所描述的实施方式。相反地,提供这些实施方式的目的是使对本申请的公开内容理解的更加透彻全面。本申请能够以很多不同于在此描述的其它方式来实施,本领域技术人员可以在不违背本申请内涵的情况下做类似改进,因此本申请不受下面公开的具体实施例的限制。In order to facilitate the understanding of this application, and to make the above objectives, features and advantages of this application more comprehensible, specific implementations of this application will be described in detail below with reference to the accompanying drawings. In the following description, many specific details are set forth in order to fully understand the application, and the preferred embodiments of the application are shown in the accompanying drawings. However, this application can be implemented in many different forms and is not limited to the implementation described herein. On the contrary, the purpose of providing these embodiments is to make the understanding of the disclosure of this application more thorough and comprehensive. This application can be implemented in many other ways different from those described herein, and those skilled in the art can make similar improvements without violating the connotation of this application. Therefore, this application is not limited by the specific embodiments disclosed below.
此外,术语“第一”、“第二”仅用于描述目的,而不能理解为指示或暗示相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括至少一个该特征。在本申请的描述中,“多个”的含义是至少两个,例如两个,三个等,除非另有明确具体的限定。在本申请的描述中,“若干”的含义是至少一个,例如一个,两个等,除非另有明确具体的限定。In addition, the terms "first" and "second" are only used for descriptive purposes, and cannot be understood as indicating or implying relative importance or implicitly indicating the number of indicated technical features. Therefore, the features defined with "first" and "second" may explicitly or implicitly include at least one of the features. In the description of the present application, "a plurality of" means at least two, such as two, three, etc., unless specifically defined otherwise. In the description of this application, "several" means at least one, such as one, two, etc., unless otherwise specifically defined.
除非另有定义,本文所使用的所有的技术和科学术语与属于本申请的技术领域的技术人员通常理解的含义相同。本文中所使用的术语只是为了描述具体的实施方式的目的,不是旨在于限制本申请。本文所使用的术语“及/或”包括一个或多个相关的所列项目的任意的和所有的组合。Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by those skilled in the technical field of this application. The terminology used herein is only for the purpose of describing specific embodiments, and is not intended to limit the application. The term "and/or" as used herein includes any and all combinations of one or more related listed items.
DAS系统通常由主设备(注:这个主设备就是AU)以及多个从设备和可选的扩展单元构成,其中有唯一的一个主设备,作为整个DAS系统的控制中心,管理他本身以及其它所有的扩展单元以及从设备。The DAS system is usually composed of a master device (note: this master device is AU), multiple slave devices and optional expansion units. Among them, there is a single master device, which serves as the control center of the entire DAS system, managing itself and all others. The expansion unit and slave device.
DAS系统的网络管理方法是基于简单网络管理协议(SNMP)来对DAS系统中的主设备和从设备进行管理,其中,SNMP协议采用的是C/S结构。SNMP是专门设计用于在IP网络管理网络节点(服务器、工作站、路由器、交换机及HUBS等)的一种标准协议,它是一种应用层协议,例如,TCP/IP协议簇的一个应用层协议。其中,简单网络管理协议包括 SNMPv1(RFCs 1155-1157)、SNMPv2c(RFCs 1901-1908)和SNMPv3(RFCs 2271-2275)三种SNMP协议版本。The network management method of the DAS system is based on the Simple Network Management Protocol (SNMP) to manage the master and slave devices in the DAS system. Among them, the SNMP protocol uses the C/S structure. SNMP is a standard protocol specifically designed to manage network nodes (servers, workstations, routers, switches, HUBS, etc.) in an IP network. It is an application layer protocol, for example, an application layer protocol of the TCP/IP protocol suite . Among them, the simple network management protocol includes three SNMP protocol versions: SNMPv1 (RFCs 1155-1157), SNMPv2c (RFCs 1901-1908), and SNMPv3 (RFCs 2271-2275).
图1为一个实施例中DAS系统的网络管理方法的应用环境示意图。如图1所示,该应用环境包括SNMP客户端(网管)和SNMP服务器。其中,SNMP服务器可以理解为部署了SNMP代理的主设备。该主设备有唯一的IP地址和MAC地址。SNMP客户端和SNMP服务器均支持SNMP协议,以实现SNMP客户端和SNMP服务器之间的通信。SNMP客户端可根据主设备的IP地址直接访问部署了SNMP代理的主设备。Fig. 1 is a schematic diagram of an application environment of a network management method of a DAS system in an embodiment. As shown in Figure 1, the application environment includes SNMP client (network management) and SNMP server. Among them, the SNMP server can be understood as a master device deployed with an SNMP agent. The master device has a unique IP address and MAC address. Both SNMP client and SNMP server support the SNMP protocol to realize the communication between SNMP client and SNMP server. The SNMP client can directly access the main device where the SNMP agent is deployed according to the IP address of the main device.
图2为一个实施例中管理DAS系统的方法的流程图。本实施例中的管理DAS系统的方法,以运行于图1中的DAS系统上为例进行描述。如图2所示,管理DAS系统的方法包括步骤201至步骤204。Fig. 2 is a flowchart of a method of managing a DAS system in an embodiment. The method for managing the DAS system in this embodiment is described by taking the DAS system in FIG. 1 as an example. As shown in FIG. 2, the method of managing the DAS system includes steps 201 to 204.
步骤201:所述主设备按照预设规则部署简单网络管理协议代理。Step 201: The master device deploys a simple network management protocol agent according to preset rules.
代理(agent)是一种存在于被管理的设备中的网络管理软件模块。agent用于控制本地设备的管理信息,以和SNMP兼容的格式传送该管理信息。Agent is a network management software module that exists in the managed equipment. The agent is used to control the management information of the local device and transmit the management information in a format compatible with SNMP.
在本申请实施例中,在DAS系统的主设备中按照预设规则部署该简单网络管理协议代理(SNMP agent)。其中,预设规则可以理解为对传统的开源的SNMP agent源码进行编译修改的规则。例如,可以基于预设规则对传统的开源的SNMP agent源码进行编译修改,以获取自定义的SNMP agent源码。主设备可以采用自定义的SNMP agent源码来安装部署SNMP agent。In the embodiment of the present application, the simple network management protocol agent (SNMP agent) is deployed in the master device of the DAS system according to preset rules. Among them, the preset rules can be understood as the rules for compiling and modifying the traditional open source SNMP agent source code. For example, traditional open source SNMP agent source code can be compiled and modified based on preset rules to obtain custom SNMP agent source code. The main device can use the custom SNMP agent source code to install and deploy the SNMP agent.
步骤202:所述主设备中的所述简单网络管理协议代理接收SNMP报文。Step 202: The Simple Network Management Protocol agent in the master device receives an SNMP message.
主设备中部署了新编译的SNMP agent,就可以将该主设备作为SNMP服务器,以实现与SNMP客户端之间的网络通信。当主设备中基于修改后的SNMP agent源码运行后,主设备中的SNMP agent就能够与SNMP客户端进行交互,进而接受SNMP客户端发送的SNMP报文。其中,SNMP客户端发送的SNMP报文中在特定位置(例如,Community和Context Name)的字符信息可被新编译的SNMP agent识别。而这个特定位置上需要放什么字符信息则由主设备开发者提供协议,SNMP客户端根据协议填充该字段。If the newly compiled SNMP agent is deployed in the main device, the main device can be used as an SNMP server to realize network communication with SNMP clients. When the main device runs based on the modified SNMP agent source code, the SNMP agent in the main device can interact with the SNMP client, and then accept SNMP packets sent by the SNMP client. Among them, the character information in a specific location (for example, Community and Context Name) in the SNMP message sent by the SNMP client can be recognized by the newly compiled SNMP agent. What character information needs to be put in this specific position is provided by the host device developer with the protocol, and the SNMP client fills this field according to the protocol.
例如,可通过主设备的WEBOMT界面对待管理的目标设备进行设置。例如,可以通过主设备的WEBOMT界面设置固定字符,该固定字符和设备编码组成预设字段,将会置于SNMP报文的特定位置(Community和Context Name)中,随SNMP报文传输到主设备中。设备编码可以理解为设备的唯一身份标识。其中,在DAS系统中,从设备的设备编号可由主设备来进行配置,且同一DAS系统中每台从设备的设备编号具有唯一性。For example, the target device to be managed can be set through the WEBOMT interface of the main device. For example, a fixed character can be set through the WEBOMT interface of the main device. The fixed character and the device code form a preset field, which will be placed in a specific location (Community and Context Name) of the SNMP message and transmitted to the main device along with the SNMP message in. The device code can be understood as the unique identification of the device. Among them, in the DAS system, the device number of the slave device can be configured by the master device, and the device number of each slave device in the same DAS system is unique.
在一实施例中,在SNMP v1/v2c中,SNMP客户端发SNMP报文数据前需要将SNMP  v1/v2c数据包中的公共体Community字段填充为固定字符+设备编码。In one embodiment, in SNMP v1/v2c, the SNMP client needs to fill the community field in the SNMP v1/v2c data packet with fixed characters + device code before sending SNMP packet data.
在一实施例中,在SNMPv3中,SNMP客户端发SNMP报文数据前需要将SNMP v3数据包中的Context Name字段填充为固定字符+设备编码。In one embodiment, in SNMPv3, the SNMP client needs to fill the Context Name field in the SNMPv3 packet with fixed characters + device code before sending SNMP packet data.
需要说明的是,填充时“+”不用填充。It should be noted that the "+" does not need to be filled when filling.
步骤203:所述主设备解析所述SNMP报文,以获取所述DAS系统中待管理的目标设备。所述SNMP报文携带目标设备的设备编码。Step 203: The master device parses the SNMP message to obtain the target device to be managed in the DAS system. The SNMP message carries the device code of the target device.
在一实施例中,例如,一般简单的SNMP v2c GET报文可如下显示:“snmpget-v 2c-c public local host system.sysName.0”。In an embodiment, for example, a simple SNMP v2c GET message can be displayed as follows: "snmpget-v 2c-c public local host system.sysName.0".
其中,传统的SNMP v1/v2c报文中团体名即公共体Community固定为public。也即,没有修改源码前,主设备收到SNMP报文数据后,只能将Community解析为public。但是在本申请实施例中,通过步骤202在主设备按照预设规则部署简单网络管理协议代理后,该部署的简单网络管理协议代理的主设备就能够处理任意的公共体community,也即,主设备能够对该位置的字符进行解析,以获取该SNMP报文信息中携带的设备编码,并根据该设备编码获取待管理的目标设备。Among them, the community name (Community) in the traditional SNMP v1/v2c message is fixed as public. That is, before the source code is modified, after the master device receives the SNMP message data, it can only parse the Community as public. However, in the embodiment of the present application, after the simple network management protocol agent is deployed by the main device according to preset rules through step 202, the main device of the deployed simple network management protocol agent can handle any community, that is, the main The device can parse the characters in the position to obtain the device code carried in the SNMP message information, and obtain the target device to be managed according to the device code.
在一实施例中,例如,一般简单的SNMP v3 GET报文可如下显示:“snmpget-v 3-n"public"-u noAuthUser-l noAuthNoPriv”或“snmpget-v 3-u noAuthUser-l noAuthNoPriv”。需要说明的是,上述两个只是举例用于说明Context Name。其中,SNMPv3的报文中有Context Name,在源码中通过-n添加时,只能添加public,添加为其他字符时会异常终止运行;或不在消息中显示,此时默认为public。也即,没有修改源码前,主设备收到SNMP报文数据后,只能将Context Name解析为public或不显示。In one embodiment, for example, a simple SNMP v3 GET message can be displayed as follows: "snmpget-v 3-n"public"-u noAuthUser-l noAuthNoPriv" or "snmpget-v 3-u noAuthUser-l noAuthNoPriv" . It should be noted that the above two are just examples to illustrate Context Name. Among them, the SNMPv3 message has Context Name. When adding with -n in the source code, only public can be added. When other characters are added, the operation will be abnormally terminated; or it is not displayed in the message, and the default is public at this time. That is, before the source code is modified, after the master device receives the SNMP message data, it can only resolve the Context Name to public or not display it.
在其中一个实施例中,SNMP v3 GET报文可如下显示:“snmpget-v 3-n"public"-l authPriv-u username-A spassword-a SHA-X spassword-x AES”或“snmpget-v 3-l authPriv-u username-A spassword-a SHA-X spassword-x AES”。通过步骤202在主设备按照预设规则部署简单网络管理协议代理后,该部署的简单网络管理协议代理的主设备就能够处理任意的Context Name,也即,主设备能够对该位置的字符进行解析,以获取该SNMP报文信息中携带的设备编码,并根据该设备编码获取待管理的目标设备。In one of the embodiments, the SNMP v3 GET message can be displayed as follows: "snmpget-v 3-n"public"-l authPriv-u username-A spassword-a SHA-X spassword-x AES" or "snmpget-v 3-l authPriv-u username-A spassword-a SHA-X spassword-x AES". Through step 202, after the master device deploys the simple network management protocol agent according to the preset rules, the master device of the deployed simple network management protocol agent can process any Context Name, that is, the master device can parse the characters in the position , To obtain the device code carried in the SNMP message information, and obtain the target device to be managed according to the device code.
需要说明的是,目标设备可以为DAS系统中的主设备,也可以为DAS系统中的从设备。It should be noted that the target device can be the master device in the DAS system or the slave device in the DAS system.
步骤204:当所述目标设备为所述从设备时,所述主设备对所述SNMP报文进行转换处理以使所述从设备能够被管理。Step 204: When the target device is the slave device, the master device performs conversion processing on the SNMP message so that the slave device can be managed.
当目标设备为所述从设备时,主设备能够对所述SNMP报文进行转换处理,以转换 为DAS内部协议包,再将该DAS内部协议包发送对对应的从设备,其从设备对该DAS内部协议包进行处理应答后,再回传给主设备。其中,从设备收到的数据包已经由主设备将SNMP报文数据改为了DAS内部协议包,因此从设备上不用做任何的SNMP处理。主设备接收从设备回传的DAS内部协议包后再将其转换为SNMP包发送给SNMP网管,以使该从设备能够被SNMP网管访问管理。When the target device is the slave device, the master device can convert the SNMP message to convert it into a DAS internal protocol packet, and then send the DAS internal protocol packet to the corresponding slave device. After the DAS internal protocol packet is processed and responded, it is sent back to the master device. Among them, the data packet received by the slave device has been changed from the SNMP message data to the DAS internal protocol packet by the master device, so there is no need to do any SNMP processing on the slave device. The master device receives the DAS internal protocol packet returned by the slave device, and then converts it into an SNMP packet and sends it to the SNMP network manager, so that the slave device can be accessed and managed by the SNMP network manager.
本申请实施例中,所述主设备按照预设规则部署简单网络管理协议代理;所述主设备中的所述简单网络管理协议代理接收SNMP报文,所述主设备解析所述SNMP报文,以获取所述DAS系统中待管理的所述目标设备;当所述目标设备为所述从设备时,所述主设备对所述SNMP报文进行转换处理以使所述从设备能够被管理。整个DAS系统仅在主设备部署SNMP代理,而不需要在DAS系统的从设备上部署SNMP代理,可实现通过SNMP管理DAS系统中的所有设备。进一步的,DAS系统中从设备居多,不需要在从设备上部署SNMP代理,提高了整个DAS系统的稳定性,并且当需要更新SNMP开发版本时,也只需要修改主设备中部署的代理即可,简化了二次开发。In the embodiment of the present application, the main device deploys a simple network management protocol agent according to preset rules; the simple network management protocol agent in the main device receives SNMP packets, and the main device parses the SNMP packets, To obtain the target device to be managed in the DAS system; when the target device is the slave device, the master device performs conversion processing on the SNMP message to enable the slave device to be managed. The entire DAS system only deploys the SNMP agent on the master device, and does not need to deploy the SNMP agent on the slave device of the DAS system, which can realize the management of all devices in the DAS system through SNMP. Furthermore, most of the slave devices in the DAS system do not need to deploy SNMP agents on the slave devices, which improves the stability of the entire DAS system, and when the SNMP development version needs to be updated, only the agent deployed in the master device needs to be modified. , Simplifies the secondary development.
在其中一个实施例中,所述管理DAS系统的方法还包括:当所述目标设备为所述主设备时,所述主设备对所述SNMP报文处理以使所述主设备能够被访问管理的步骤。In one of the embodiments, the method for managing the DAS system further includes: when the target device is the master device, the master device processes the SNMP message so that the master device can be accessed and managed A step of.
具体的,当目标设备为主设备本身时,其主设备能够对该SNMP报文进行处理,例如,可以解析SNMP报文这个数据包所包含的信息,比如读功率、写衰减等等。主设备将处理后的SNMP报文基于SNMP协议可以反馈给SNMP客户端,以实现SNMP对主设备的访问管理。Specifically, when the target device is the main device itself, its main device can process the SNMP packet, for example, it can parse the information contained in the SNMP packet, such as read power, write attenuation, and so on. The main device can feed back the processed SNMP message to the SNMP client based on the SNMP protocol to realize the access management of the main device by SNMP.
在其中一个实施例中,如图3所示,所述主设备按照预设规则部署简单网络管理协议代理,包括:In one of the embodiments, as shown in FIG. 3, the master device deploys the simple network management protocol agent according to preset rules, including:
步骤301:所述主设备获取开源的简单网络管理协议代理源码。Step 301: The main device obtains the open source simple network management protocol proxy source code.
步骤302:所述主设备基于所述简单网络管理协议的版本号对所述源码进行编译修改,以使所述简单网络管理协议代理能够接收携带设备编码的所述SNMP报文。Step 302: The main device compiles and modifies the source code based on the version number of the simple network management protocol, so that the simple network management protocol agent can receive the SNMP message encoded by the portable device.
步骤303:所述主设备安装修改后的简单网络管理协议代理源码。Step 303: The host device installs the modified simple network management protocol proxy source code.
所述主设备获取所述简单网络管理协议的版本号,简单网络管理协议包括第一版本SNMPv1(RFCs 1155-1157)、第二版本SNMPv2c(RFCs 1901-1908)或第三版本SNMPv3(RFCs2271-2275)三种SNMP协议版本。The master device obtains the version number of the simple network management protocol. The simple network management protocol includes the first version of SNMPv1 (RFCs 1155-1157), the second version of SNMPv2c (RFCs 1901-1908), or the third version of SNMPv3 (RFCs2271-2275). ) Three SNMP protocol versions.
其中,第一版本SNMPv1是SNMP协议的最初版本,提供最小限度的网络管理功能。SNMPv1采用团体名认证,团体名的作用类似于密码,用来限制网络管理系统(NMS)对agent的访问。第二版本SNMPv2c也采用团体名认证,在兼容SNMPv1的同时还提供了更多的操 作类型(GetBulk--批量获取操作等);支持更多的数据类型(Counter32等)。第三版本SNMPv3中增加了安全管理方式及远程控制,它采用了USM(基于用户的安全控制模型)和VACM(基于视图的访问控制模型)技术。Among them, the first version of SNMPv1 is the initial version of the SNMP protocol, providing minimal network management functions. SNMPv1 uses community name authentication, which is similar to a password and is used to restrict network management system (NMS) access to agents. The second version of SNMPv2c also uses community name authentication. It is compatible with SNMPv1 and also provides more operation types (GetBulk--Bulk get operation, etc.); supports more data types (Counter32, etc.). The third version of SNMPv3 adds security management methods and remote control, it uses USM (user-based security control model) and VACM (view-based access control model) technology.
进一步的,所述主设备基于所述简单网络管理协议的版本号对所述源码进行编译修改具体包括:Further, the main device compiling and modifying the source code based on the version number of the simple network management protocol specifically includes:
当所述简单网络管理协议为第一版本SNMPv1或第二版本SNMPv2c协议版本时,主设备可以移植开源的简单网络管理协议agent源码,并对获取的agent源码进行修改。具体的,可以对agent源码中的接口函数Variables_Handler进行修改,其中,接口函数Variables_Handler用于解析数据报文。其修改方式可以为在接口函数Variables_Handler增加netsnmp_agent_request_info*reqinfo形参,同时将agent源码中的所有上层的接口函数中均增加该形参。When the simple network management protocol is the first version SNMPv1 or the second version SNMPv2c protocol version, the main device can transplant the open source simple network management protocol agent source code and modify the obtained agent source code. Specifically, the interface function Variables_Handler in the agent source code can be modified, where the interface function Variables_Handler is used to parse the data message. The modification method can be to add the netsnmp_agent_request_info*reqinfo parameter to the interface function Variables_Handler, and add this parameter to all upper-level interface functions in the agent source code.
在本申请实施例中通过对接口函数Variables_Handler增加形参的处理后,agent在主设备中运行后,当SNMP客户端在SNMP报文的Community中输入任何字符时,主设备中的简单网络管理协议agent都能接收包括位于Community字符的SNMP报文数据,并将该SNMP报文数据转发到主设备的SNMP进程中,进而主设备来对SNMP报文进行解析处理。In the embodiment of this application, after adding formal parameters to the interface function Variables_Handler, after the agent runs in the main device, when the SNMP client enters any character in the Community of the SNMP message, the simple network management protocol in the main device The agent can receive the SNMP message data including the characters in the Community, and forward the SNMP message data to the SNMP process of the main device, and then the main device can analyze and process the SNMP message.
本申请实施例中,通过在接口函数Variables_Handler中增加netsnmp_agent_request_info*reqinfo形参,可以将SNMP报文中团体名即公共体Community不固定为public,而能够使主设备中的agent能处理任意的Community。In the embodiment of this application, by adding the netsnmp_agent_request_info*reqinfo parameter to the interface function Variables_Handler, the community name in the SNMP message, that is, the community Community, can not be fixed as public, and the agent in the main device can handle any community.
当所述版本号为第三版本SNMPv3时,SNMPv3的SNMP报文中没有共同体,无法使用SNMPv1或SNMPv2c的修改处理方式。但是SNMPv3能够兼容上述SNMPv1或SNMPv2c,在兼容上述SNMPv1或SNMPv2c的基础上,再次修改开源的简单网络管理协议agent源码。具体的,可以重点修改Context Name注册表检测函数,使得agent能接收处理SNMP报文中任意的Context Name。When the version number is the third version of SNMPv3, there is no community in the SNMP message of SNMPv3, and the modification processing method of SNMPv1 or SNMPv2c cannot be used. However, SNMPv3 is compatible with the above-mentioned SNMPv1 or SNMPv2c. On the basis of the above-mentioned SNMPv1 or SNMPv2c, the source code of the open source simple network management protocol agent is modified again. Specifically, you can focus on modifying the Context Name registry detection function so that the agent can receive and process any Context Name in the SNMP message.
在本申请实施例中通过修改Context Name注册表后,agent在主设备中运行后,SNMP报文中任意的Context Name,都可以被主设备中的简单网络管理协议agent接收,并将SNMP报文数据转发到主设备的SNMP进程中,进而主设备来对该SNMP报文进行解析处理。In the embodiment of this application, after modifying the Context Name registry, after the agent runs in the main device, any Context Name in the SNMP message can be received by the Simple Network Management Protocol agent in the main device, and the SNMP message The data is forwarded to the SNMP process of the master device, and then the master device parses the SNMP message.
在本申请实施例中,DAS系统实现了SNMPv1、SNMPv2c和SNMPv3三种SNMP协议版本兼容处理,SNMP客户端可以任意使用任何一个版本访问DAS系统中的主设备和从设备。In the embodiment of the present application, the DAS system implements three SNMP protocol version compatible processing, SNMPv1, SNMPv2c, and SNMPv3. The SNMP client can use any version to access the master device and the slave device in the DAS system.
在其中一个实施例中,如图4所示,所述主设备解析所述SNMP报文,以获取所述DAS系统中用于处理所述SNMP报文的目标设备,具体包括:In one of the embodiments, as shown in FIG. 4, the master device parses the SNMP message to obtain the target device used for processing the SNMP message in the DAS system, which specifically includes:
步骤401:所述主设备解析所述SNMP报文中的预设字段以获取设备编码;Step 401: The master device parses a preset field in the SNMP message to obtain a device code;
步骤402:根据所述设备编码获取所述目标设备;其中,所述预设字段在所述SNMP报文的位置为Community或Context Name所在位置,所述设备编码用于标识所述目标设备。Step 402: Obtain the target device according to the device code; wherein the preset field is the location of Community or Context Name in the location of the SNMP message, and the device code is used to identify the target device.
在其中一个实施例中,在SNMP v1/v2c中,SNMP客户端发SNMP报文数据前需要将SNMP v1/v2c数据包中的公共体Community字段填充为固定字符+设备编码。当主设备接收到该SNMP报文,可以对公共体Community字段位置进行解析,以获取该SNMP报文信息中携带的设备编码,并根据该设备编码获取待管理的目标设备。其中,所述设备编码用于标识所述目标设备。也即,该SNMP报文的预设字段中携带了用于标识目标设备的身份信息。In one of the embodiments, in SNMP v1/v2c, the SNMP client needs to fill the community field in the SNMP v1/v2c data packet with fixed characters + device code before sending SNMP packet data. When the master device receives the SNMP message, it can parse the community field location to obtain the device code carried in the SNMP message information, and obtain the target device to be managed according to the device code. Wherein, the device code is used to identify the target device. That is, the preset field of the SNMP message carries identity information used to identify the target device.
以SNMP v2c为例进行说明,假设主设备收到如下的SNMP报文为“snmpget-v 2c-c swdas0hostIP OID”。主设备可先解析swdas0这个公共体,再获取swdas后的数字,此处为0。其中0可以用于表示主设备的身份信息。因此,该SNMP报文是由SNMP客户端发给主设备的,可由主设备直接处理,进而实现对主设备的访问管理。Take SNMP v2c as an example for description. Assume that the master device receives the following SNMP message "snmpget-v 2c-c swdas0hostIP OID". The master device can first parse the public swdas0, and then get the number after swdas, which is 0 here. Where 0 can be used to represent the identity information of the master device. Therefore, the SNMP message is sent by the SNMP client to the main device, and can be directly processed by the main device to realize access management to the main device.
以SNMP v2c为例进行说明,假设主设备收到如下的SNMP报文为“snmpget-v 2c-c swdas1hostIP OID”。主设备可先解析swdas1这个公共体,再获取swdas后的数字,此处为1。其中1可以用于表示某一从设备的身份信息。表示该SNMP报文不是发给主设备的,而是SNMP客户端发给DAS系统中的与设备编码“1”所对应的从设备。Taking SNMP v2c as an example, suppose the master device receives the following SNMP message "snmpget-v 2c-c swdas1hostIP OID". The master device can first parse the swdas1 public body, and then obtain the number after swdas, which is 1 here. Among them, 1 can be used to represent the identity information of a certain slave device. It means that the SNMP message is not sent to the master device, but the SNMP client sends to the slave device corresponding to the device code "1" in the DAS system.
在SNMPv3中,SNMP客户端发SNMP报文数据前需要将SNMP v3数据包中的Context Name字段填充为固定字符+device sub id。当主设备接收到该SNMP报文,可以对Context Name字段位置的设备编码进行解析,以获取该SNMP报文信息中携带的设备编码,并根据该设备编码获取待管理的目标设备。In SNMPv3, the SNMP client needs to fill the Context Name field in the SNMPv3 packet with fixed characters + device sub id before sending SNMP packet data. When the master device receives the SNMP message, it can parse the device code in the Context Name field to obtain the device code carried in the SNMP message information, and obtain the target device to be managed according to the device code.
在其中一个实施例中,如图5所示,所述主设备解析所述SNMP报文,以获取所述DAS系统中待管理的目标设备,还包括:In one of the embodiments, as shown in FIG. 5, the master device parses the SNMP message to obtain the target device to be managed in the DAS system, and further includes:
步骤403:所述主设备解析所述SNMP报文中的预设字段以获取固定字符。Step 403: The master device parses the preset fields in the SNMP message to obtain fixed characters.
步骤402:根据所述设备编码获取所述目标设备前,还包括步骤404。Step 402: Before acquiring the target device according to the device code, step 404 is further included.
步骤404:对所述SNMP报文中的固定字符进行鉴权,当鉴权通过后执行步骤402。Step 404: Authenticate the fixed characters in the SNMP message, and execute step 402 after the authentication is passed.
在其中一个实施例中,为了保证主设备收到安全的数据报文,主设备收到SNMP报文后,会对预设字段(例如Community或Context Name)中的固定字符进行鉴权,也即验证Community或Context Name字段是否满足安全要求,若不满足安全要求时,返回出错。当满足安全要求则执行步骤402。例如,当主设备接收的SNMP报文为“snmpget-v 2c-c swdas1hostIP OID”,主设备会解析swdas1这个公共体,先判断swdas是否符合安全,若符合安全,则执行步骤402,根据所述固定字符获取所述目标设备。也即,主设备会获取swdas后的数 字,此处为1,表示该SNMP报文不是发给主设备的,而是发给DAS系统中的与设备编码“1”所对应的从设备,也即目标设备。In one of the embodiments, in order to ensure that the master device receives a secure data message, after the master device receives the SNMP message, it will authenticate the fixed characters in a preset field (such as Community or Context Name), that is, Verify whether the Community or Context Name field meets the security requirements. If the security requirements are not met, an error is returned. When the safety requirements are met, step 402 is executed. For example, when the SNMP message received by the master device is "snmpget-v 2c-c swdas1hostIP OID", the master device will parse the swdas1 community, and first determine whether swdas meets the security requirements. If it meets the security requirements, perform step 402, Characters obtain the target device. That is, the master device will obtain the number after swdas, here is 1, which means that the SNMP message is not sent to the master device, but to the slave device corresponding to the device code "1" in the DAS system. That is the target device.
在其中一个实施例中,如图6所示,当所述目标设备为所述从设备时,所述主设备对所述SNMP报文进行转换处理以使所述从设备能够被访问管理,包括:In one of the embodiments, as shown in FIG. 6, when the target device is the slave device, the master device converts the SNMP message so that the slave device can be accessed and managed, including :
步骤501:当所述目标设备为所述从设备时,所述主设备对所述SNMP报文进行转换以形成移动数据包并输出给所述目标设备,所述移动数据包具有DAS协议包的格式;Step 501: When the target device is the slave device, the master device converts the SNMP message to form a mobile data packet and outputs it to the target device. The mobile data packet has a DAS protocol packet. format;
步骤502:所述目标设备处理并应答所述移动数据包并传输至所述主设备;Step 502: The target device processes and responds to the mobile data packet and transmits it to the host device;
步骤503:所述主设备将应答后的移动数据包转换为SNMP数据包以使所述从设备能够被访问管理。Step 503: The master device converts the mobile data packet after the response into an SNMP data packet so that the slave device can be accessed and managed.
具体的,参考图7,以SNMPv2c的Community简单举例说明。数据包1为主设备接收的SNMP报文。主设备对数据包1进行解析,其Community中包含的设备编码为1,也即该目标设备为设备编号为1的从设备,同时,该数据包1中还包括了SNMP协议中OID。当目标设备为所述从设备时,所述主设备对数据包1进行转换,转换为数据包2,该数据包2可以理解为从设备可以识别的其他协议的包,例如,DAS内部协议包。主设备将移动数据包发送给该目标设备进行处理,其目标设备上不用部署SNMP agent也即对该移动数据包进行处理和应答。当目标设备将移动数据包处理完成之后形成数据包3,并将数据包3回传至主设备,由主设备对应答后的移动数据包进行转换,并将其转换为SNMP客户端可以识别的SNMP数据包,进而实现对该目标设备的访问管理。Specifically, referring to Fig. 7, a simple example of SNMPv2c Community is used for illustration. Packet 1 is an SNMP message received by the master device. The master device parses data packet 1, and the device code contained in its Community is 1, that is, the target device is a slave device with device number 1. At the same time, the data packet 1 also includes the OID in the SNMP protocol. When the target device is the slave device, the master device converts data packet 1 into data packet 2. The data packet 2 can be understood as a packet of other protocols that can be recognized by the slave device, for example, DAS internal protocol packet . The master device sends the mobile data packet to the target device for processing, and the target device does not need to deploy the SNMP agent to process and respond to the mobile data packet. When the target device processes the mobile data packet, it forms data packet 3, and sends the data packet 3 back to the master device. The master device converts the mobile data packet after the response and converts it to something that can be recognized by the SNMP client. SNMP data packet, and then realize the access management to the target device.
应该理解的是,虽然图2-图6的流程图中的各个步骤按照箭头的指示依次显示,但是这些步骤并不是必然按照箭头指示的顺序依次执行。除非本文中有明确的说明,这些步骤的执行并没有严格的顺序限制,这些步骤可以以其它的顺序执行。而且,图2-图6中的至少一部分步骤可以包括多个子步骤或者多个阶段,这些子步骤或者阶段并不必然是在同一时刻执行完成,而是可以在不同的时刻执行,这些子步骤或者阶段的执行顺序也不必然是依次进行,而是可以与其它步骤或者其它步骤的子步骤或者阶段的至少一部分轮流或者交替地执行。It should be understood that, although the steps in the flowcharts of FIGS. 2 to 6 are displayed in sequence as indicated by the arrows, these steps are not necessarily executed in sequence in the order indicated by the arrows. Unless there is a clear description in this article, there is no strict order for the execution of these steps, and these steps can be executed in other orders. Moreover, at least part of the steps in Figure 2-6 may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily executed at the same time, but can be executed at different times. These sub-steps or The execution order of the stages is not necessarily carried out sequentially, but may be executed alternately or alternately with at least a part of other steps or sub-steps or stages of other steps.
如图1所示,管理DAS系统的设备包括:As shown in Figure 1, the equipment that manages the DAS system includes:
SNMP客户端,用于发送SNMP报文;SNMP client, used to send SNMP packets;
DAS系统,包括主设备和与所述主设备进行通信的至少一个从设备;其中,所述主设备与所述SNMP客户端进行通信;所述主设备按照预设规则部署有简单网络管理协议代理,并接收并解析所述SNMP报文,以获取所述DAS系统中待管理的所述目标设备,当所述目标设备为所述从设备时,所述主设备对所述SNMP报文进行转换处理以使所述从设备能够被访问管理。The DAS system includes a master device and at least one slave device communicating with the master device; wherein the master device communicates with the SNMP client; the master device is deployed with a simple network management protocol agent according to preset rules , And receive and parse the SNMP message to obtain the target device to be managed in the DAS system. When the target device is the slave device, the master device converts the SNMP message Process to enable the slave device to be accessed and managed.
整个DAS系统仅在主设备部署SNMP代理,而不需要在DAS系统的从设备上部署SNMP代理,可实现通过SNMP管理DAS系统中的所有设备。进一步的,DAS系统中从设备居多,不需要在从设备上部署SNMP代理,提高了整个DAS系统的稳定性,并且当需要更新SNMP开发版本时,也只需要修改主设备中部署的代理即可,简化了二次开发。The entire DAS system only deploys the SNMP agent on the master device, and does not need to deploy the SNMP agent on the slave device of the DAS system, and can manage all devices in the DAS system through SNMP. Furthermore, most of the slave devices in the DAS system do not need to deploy SNMP agents on the slave devices, which improves the stability of the entire DAS system, and when the SNMP development version needs to be updated, only the agent deployed in the master device needs to be modified. , Simplifies the secondary development.
在其中一个实施例中,主设备包括:In one of the embodiments, the main device includes:
部署模块,用于按照预设规则部署有简单网络管理协议代理;The deployment module is used to deploy a simple network management protocol agent according to preset rules;
代理模块,用于接收SNMP报文;Agent module, used to receive SNMP messages;
解析模块,用于解析所述SNMP报文,以获取所述DAS系统中待管理的所述目标设备;A parsing module, configured to parse the SNMP message to obtain the target device to be managed in the DAS system;
处理模块,用于当所述目标设备为所述从设备时,所述主设备对所述SNMP报文进行转换处理以使所述从设备能够被访问管理。The processing module is configured to: when the target device is the slave device, the master device performs conversion processing on the SNMP message so that the slave device can be accessed and managed.
进一步的,部署模块进一步的还用于获取开源的简单网络管理协议代理源码;基于所述简单网络管理协议的版本号对所述源码进行编译修改,以使所述简单网络管理协议代理能够接收携带设备编码的所述SNMP报文;安装修改后的简单网络管理协议代理源码。Further, the deployment module is further used to obtain the open source simple network management protocol agent source code; compile and modify the source code based on the version number of the simple network management protocol, so that the simple network management protocol agent can receive and carry The SNMP message encoded by the device; the simple network management protocol agent source code after installation and modification.
进一步的,解析模块进一步的还用于解析所述SNMP报文中的预设字段以获取设备编码;根据所述设备编码获取所述目标设备;其中,所述预设字段在所述SNMP报文的位置为Community或Context Name所在位置,所述设备编码用于标识所述目标设备。Further, the parsing module is further configured to parse a preset field in the SNMP message to obtain a device code; obtain the target device according to the device code; wherein, the preset field is in the SNMP message The location of is the location of Community or ContextName, and the device code is used to identify the target device.
在其中一个实施例中,解析模块进一步的还用于解析所述SNMP报文中的预设字段以获取固定字符,主设备还包括鉴权模块,用于对所述SNMP报文中的固定字符进行鉴权,解析模块进一步的还用于当鉴权通过后根据所述设备编码获取所述目标设备。In one of the embodiments, the parsing module is further used to parse preset fields in the SNMP message to obtain fixed characters, and the main device further includes an authentication module for verifying the fixed characters in the SNMP message. For authentication, the parsing module is further configured to obtain the target device according to the device code after the authentication is passed.
在其中一个实施例中,处理模块还用于对所述SNMP报文进行转换以形成移动数据包并输出给所述目标设备,所述移动数据包具有DAS协议包的格式;还用于将由从设备应答后的移动数据包转换为SNMP数据包以使所述从设备能够被访问管理。In one of the embodiments, the processing module is also used to convert the SNMP message to form a mobile data packet and output it to the target device. The mobile data packet has the format of a DAS protocol packet; The mobile data packet after the device response is converted into an SNMP data packet so that the slave device can be accessed and managed.
在其中一个实施例中,处理模块还用于当所述目标设备为所述主设备时,所述主设备对所述SNMP报文处理以使所述主设备能够被访问管理。In one of the embodiments, the processing module is further configured to, when the target device is the master device, the master device processes the SNMP message so that the master device can be accessed and managed.
上述管理DAS系统的设备中各个模块的划分仅用于举例说明,在其他实施例中,可将管理DAS系统的设备按照需要划分为不同的模块,以完成上述管理DAS系统的设备的全部或部分功能。The division of each module in the device for managing the DAS system is only for illustration. In other embodiments, the device for managing the DAS system can be divided into different modules as needed to complete all or part of the device for managing the DAS system. Features.
关于管理DAS系统的设备的具体限定可以参见上文中对于管理DAS系统的方法的限定,在此不再赘述。上述管理DAS系统的设备中的各个模块可全部或部分通过软件、硬件及其组合来实现。上述各模块可以硬件形式内嵌于或独立于计算机设备中的处理器中,也可以以软件形式存储于计算机设备中的存储器中,以便于处理器调用执行以上各个模块对应的操 作。Regarding the specific limitation of the device for managing the DAS system, please refer to the above limitation on the method of managing the DAS system, which will not be repeated here. Each module in the above-mentioned equipment for managing the DAS system can be implemented in whole or in part by software, hardware, and combinations thereof. The above-mentioned modules may be embedded in the form of hardware or independent of the processor in the computer equipment, or may be stored in the memory of the computer equipment in the form of software, so that the processor can call and execute the operations corresponding to the above-mentioned modules.
本申请实施例中提供的管理DAS系统的设备中的各个模块的实现可为计算机程序的形式。该计算机程序可在终端或服务器上运行。该计算机程序构成的程序模块可存储在终端或服务器的存储器上。该计算机程序被处理器执行时,实现本申请实施例中所描述方法的步骤。The implementation of each module in the device for managing the DAS system provided in the embodiments of the present application may be in the form of a computer program. The computer program can be run on a terminal or a server. The program module composed of the computer program can be stored in the memory of the terminal or the server. When the computer program is executed by the processor, it realizes the steps of the method described in the embodiments of the present application.
本申请实施例还提供了一种计算机可读存储介质。一个或多个包含计算机可执行指令的非易失性计算机可读存储介质,当所述计算机可执行指令被一个或多个处理器执行时,使得所述处理器执行管理DAS系统的方法的步骤。The embodiment of the present application also provides a computer-readable storage medium. One or more non-volatile computer-readable storage media containing computer-executable instructions, when the computer-executable instructions are executed by one or more processors, cause the processors to perform the steps of the method for managing a DAS system .
本申请实施例还提供了一种包含指令的计算机程序产品,当其在计算机上运行时,使得计算机执行管理DAS系统的方法。The embodiment of the present application also provides a computer program product containing instructions, which when running on a computer, causes the computer to execute the method for managing the DAS system.
本申请实施例还提供了一种电子设备,包括存储器及处理器,所述存储器中储存有计算机程序,所述计算机程序被所述处理器执行时,使得所述处理器执行管理DAS系统的方法的步骤。An embodiment of the present application also provides an electronic device, including a memory and a processor, the memory stores a computer program, and when the computer program is executed by the processor, the processor executes the method for managing a DAS system A step of.
本申请所使用的对存储器、存储、数据库或其它介质的任何引用可包括非易失性和/或易失性存储器。非易失性存储器可包括只读存储器(ROM)、可编程ROM(PROM)、电可编程ROM(EPROM)、电可擦除可编程ROM(EEPROM)或闪存。易失性存储器可包括随机存取存储器(RAM),它用作外部高速缓冲存储器。作为说明而非局限,RAM以多种形式可得,诸如静态RAM(SRAM)、动态RAM(DRAM)、同步DRAM(SDRAM)、双数据率SDRAM(DDR SDRAM)、增强型SDRAM(ESDRAM)、同步链路(Synchlink)DRAM(SLDRAM)、存储器总线(Rambus)直接RAM(RDRAM)、直接存储器总线动态RAM(DRDRAM)、以及存储器总线动态RAM(RDRAM)。Any reference to memory, storage, database, or other media used in this application may include non-volatile and/or volatile memory. Non-volatile memory may include read only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memory may include random access memory (RAM), which acts as external cache memory. As an illustration and not a limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDR SDRAM), enhanced SDRAM (ESDRAM), synchronous Link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
以上所述实施例仅表达了本申请的几种实施方式,其描述较为具体和详细,但并不能因此而理解为对本申请专利范围的限制。应当指出的是,对于本领域的普通技术人员来说,在不脱离本申请构思的前提下,还可以做出若干变形和改进,这些都属于本申请的保护范围。因此,本申请专利的保护范围应以所附权利要求为准。The above-mentioned embodiments only express several implementation manners of the present application, and their description is relatively specific and detailed, but they should not be understood as a limitation to the scope of the present application. It should be pointed out that for those of ordinary skill in the art, without departing from the concept of this application, several modifications and improvements can be made, and these all fall within the protection scope of this application. Therefore, the scope of protection of the patent of this application shall be subject to the appended claims.

Claims (11)

  1. 一种管理DAS系统的方法,其特征在于,所述DAS系统包括主设备和与所述主设备进行通信的至少一个从设备,所述方法包括:A method for managing a DAS system, wherein the DAS system includes a master device and at least one slave device communicating with the master device, and the method includes:
    所述主设备按照预设规则部署简单网络管理协议代理;The main device deploys a simple network management protocol agent according to preset rules;
    所述主设备中的所述简单网络管理协议代理接收SNMP报文,所述SNMP报文携带目标设备的设备编码;The Simple Network Management Protocol agent in the master device receives an SNMP message, and the SNMP message carries the device code of the target device;
    所述主设备解析所述SNMP报文,以获取所述DAS系统中待管理的所述目标设备;The master device parses the SNMP message to obtain the target device to be managed in the DAS system;
    当所述目标设备为所述从设备时,所述主设备对所述SNMP报文进行转换处理以使所述从设备能够被访问管理。When the target device is the slave device, the master device performs conversion processing on the SNMP message so that the slave device can be accessed and managed.
  2. 根据权利要求1所述的方法,其特征在于,所述主设备按照预设规则部署简单网络管理协议代理,包括:The method according to claim 1, wherein the main device deploys a simple network management protocol agent according to a preset rule, comprising:
    所述主设备获取开源的简单网络管理协议代理源码;The main device obtains the open source simple network management protocol proxy source code;
    所述主设备基于所述简单网络管理协议的版本号对所述源码进行编译修改,以使所述简单网络管理协议代理能够接收携带设备编码的所述SNMP报文;The main device compiles and modifies the source code based on the version number of the simple network management protocol, so that the simple network management protocol agent can receive the SNMP message encoded by the portable device;
    所述主设备安装修改后的简单网络管理协议代理源码。The host device installs the modified simple network management protocol proxy source code.
  3. 根据权利要求2所述的方法,其特征在于,所述主设备基于所述简单网络管理协议的版本号对所述源码进行编译修改,包括:The method according to claim 2, wherein the main device compiling and modifying the source code based on the version number of the simple network management protocol comprises:
    所述主设备获取所述简单网络管理协议的版本号,所述版本号包括第一版本、第二版本或第三版本;Acquiring, by the master device, a version number of the simple network management protocol, where the version number includes a first version, a second version, or a third version;
    当所述版本号为所述第一版本或所述第二版本时,修改所述源码中的接口函数,所述接口函数用于解析数据报文;When the version number is the first version or the second version, modify the interface function in the source code, and the interface function is used to parse the data message;
    当所述版本号为所述第三版本时,修改注册表检查函数。When the version number is the third version, modify the registry check function.
  4. 根据权利要求3所述的方法,其特征在于,所述修改所述源码中的接口函数,包括:The method according to claim 3, wherein said modifying the interface function in the source code comprises:
    增加netsnmp_agent_request_info*reqinfo形参。Add netsnmp_agent_request_info*reqinfo parameter.
  5. 根据权利要求1所述的方法,其特征在于,所述主设备解析所述SNMP报文,以获取所述DAS系统中待管理的目标设备,包括:The method according to claim 1, wherein the master device parsing the SNMP message to obtain the target device to be managed in the DAS system comprises:
    所述主设备解析所述SNMP报文中的预设字段以获取设备编码;The master device parses a preset field in the SNMP message to obtain a device code;
    根据所述设备编码获取所述目标设备;其中,所述预设字段在所述SNMP报文的位置为Community或Context Name所在位置,所述设备编码用于标识所述目标设备。Obtain the target device according to the device code; wherein the preset field is the location of the Community or the Context Name in the location of the SNMP message, and the device code is used to identify the target device.
  6. 根据权利要求5所述的方法,其特征在于,所述主设备解析所述SNMP报文,以获取所述DAS系统中待管理的目标设备,还包括:The method according to claim 5, wherein the master device parses the SNMP message to obtain the target device to be managed in the DAS system, further comprising:
    所述主设备解析所述SNMP报文中的预设字段以获取固定字符;The main device parses the preset fields in the SNMP message to obtain fixed characters;
    所述根据所述设备编码获取所述目标设备前,还包括:Before acquiring the target device according to the device code, the method further includes:
    对所述SNMP报文中的固定字符进行鉴权;Authenticate the fixed characters in the SNMP message;
    当鉴权通过后根据所述设备编码获取所述目标设备。After the authentication is passed, the target device is obtained according to the device code.
  7. 根据权利要求1所述的方法,其特征在于,所述当所述目标设备为所述从设备时,所述主设备对所述SNMP报文进行转换处理以使所述从设备能够被访问管理,包括:The method according to claim 1, wherein when the target device is the slave device, the master device converts the SNMP message so that the slave device can be accessed and managed ,include:
    当所述目标设备为所述从设备时,所述主设备对所述SNMP报文进行转换以形成移动数据包并输出给所述目标设备,所述移动数据包具有DAS协议包的格式;When the target device is the slave device, the master device converts the SNMP message to form a mobile data packet and outputs it to the target device, and the mobile data packet has a DAS protocol packet format;
    所述目标设备处理并应答所述移动数据包并传输至所述主设备;The target device processes and responds to the mobile data packet and transmits it to the host device;
    所述主设备将应答后的移动数据包转换为SNMP数据包以使所述从设备能够被访问管理。The master device converts the mobile data packet after the response into an SNMP data packet so that the slave device can be accessed and managed.
  8. 根据权利要求1所述的方法,其特征在于,所述方法还包括:The method according to claim 1, wherein the method further comprises:
    当所述目标设备为所述主设备时,所述主设备对所述SNMP报文处理以使所述主设备能够被访问管理。When the target device is the master device, the master device processes the SNMP message so that the master device can be accessed and managed.
  9. 一种管理DAS系统的设备,其特征在于,包括:A device for managing a DAS system, characterized in that it includes:
    SNMP客户端,用于发送SNMP报文;SNMP client, used to send SNMP packets;
    DAS系统,包括主设备和与所述主设备进行通信的至少一个从设备;其中,所述主设备与所述SNMP客户端进行通信;所述主设备按照预设规则部署有简单网络管理协议代理,并接收并解析所述SNMP报文,以获取所述DAS系统中待管理的目标设备,当所述目标设备为所述从设备时,所述主设备对所述SNMP报文进行转换处理以使所述从设备能够被访问管理。The DAS system includes a master device and at least one slave device communicating with the master device; wherein the master device communicates with the SNMP client; the master device is deployed with a simple network management protocol agent according to preset rules , And receive and parse the SNMP message to obtain the target device to be managed in the DAS system. When the target device is the slave device, the master device converts the SNMP message to Enable the slave device to be accessed and managed.
  10. 一种电子设备,包括存储器及处理器,所述存储器中储存有计算机程序,所述计算机程序被所述处理器执行时,使得所述处理器执行如权利要求1至8中任一项所述管理DAS系统的方法的步骤。An electronic device, comprising a memory and a processor, and a computer program is stored in the memory. When the computer program is executed by the processor, the processor executes any one of claims 1 to 8. Steps of the method of managing the DAS system.
  11. 一种计算机可读存储介质,其上存储有计算机程序,其特征在于,所述计算机程序被处理器执行时实现如权利要求1至8中任一项所述管理DAS系统的方法的步骤。A computer-readable storage medium with a computer program stored thereon, wherein the computer program implements the steps of the method for managing a DAS system according to any one of claims 1 to 8 when the computer program is executed by a processor.
PCT/CN2020/117184 2019-09-23 2020-09-23 Das system management method and device, electronic device, and storage medium WO2021057802A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910900747.5 2019-09-23
CN201910900747.5A CN110808847B (en) 2019-09-23 2019-09-23 Method and device for managing DAS (data-based system), electronic device and storage medium

Publications (1)

Publication Number Publication Date
WO2021057802A1 true WO2021057802A1 (en) 2021-04-01

Family

ID=69487789

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/117184 WO2021057802A1 (en) 2019-09-23 2020-09-23 Das system management method and device, electronic device, and storage medium

Country Status (2)

Country Link
CN (1) CN110808847B (en)
WO (1) WO2021057802A1 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110808847B (en) * 2019-09-23 2021-10-15 三维通信股份有限公司 Method and device for managing DAS (data-based system), electronic device and storage medium
CN111478927B (en) * 2020-06-08 2020-10-23 中国空气动力研究与发展中心低速空气动力研究所 Method for reversing communication control command of master equipment and slave equipment
CN112822035A (en) * 2020-12-24 2021-05-18 珠海新天地科技有限公司 Automatic site deployment system and method

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1158720A2 (en) * 2000-05-25 2001-11-28 Alcatel USA Sourcing, L.P. Network node management system and method using proxy by extensible agents
CN101035133A (en) * 2007-04-09 2007-09-12 华为技术有限公司 Network management method, system and device
CN101795206A (en) * 2009-11-26 2010-08-04 福建星网锐捷网络有限公司 Method and device for realizing SNMP agent on distributed equipment
CN107508713A (en) * 2017-09-21 2017-12-22 烽火通信科技股份有限公司 NMS MIB and the system and method for network element Proprietary MIB Mapping implementation NE management
CN109861853A (en) * 2019-01-14 2019-06-07 烽火通信科技股份有限公司 A kind of management method and system of transmission device
CN110808847A (en) * 2019-09-23 2020-02-18 三维通信股份有限公司 Method and device for managing DAS (data-based system), electronic device and storage medium

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6519635B1 (en) * 1998-04-30 2003-02-11 Cisco Technology, Inc. SNMP master agent that translates messages to a sub-agent proprietary format using a translation table by the sub-agent
CN101170451A (en) * 2007-12-03 2008-04-30 华为技术有限公司 A device management method and a device proxy system
JP5481819B2 (en) * 2008-09-30 2014-04-23 富士通株式会社 Server management apparatus, information processing system, server management apparatus control method, and program
US8825825B2 (en) * 2012-03-06 2014-09-02 International Business Machines Corporation SNMP request processing within distributed device architecture
WO2014110737A1 (en) * 2013-01-16 2014-07-24 华为技术有限公司 Method, device, and system for configuring device in network

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1158720A2 (en) * 2000-05-25 2001-11-28 Alcatel USA Sourcing, L.P. Network node management system and method using proxy by extensible agents
CN101035133A (en) * 2007-04-09 2007-09-12 华为技术有限公司 Network management method, system and device
CN101795206A (en) * 2009-11-26 2010-08-04 福建星网锐捷网络有限公司 Method and device for realizing SNMP agent on distributed equipment
CN107508713A (en) * 2017-09-21 2017-12-22 烽火通信科技股份有限公司 NMS MIB and the system and method for network element Proprietary MIB Mapping implementation NE management
CN109861853A (en) * 2019-01-14 2019-06-07 烽火通信科技股份有限公司 A kind of management method and system of transmission device
CN110808847A (en) * 2019-09-23 2020-02-18 三维通信股份有限公司 Method and device for managing DAS (data-based system), electronic device and storage medium

Also Published As

Publication number Publication date
CN110808847A (en) 2020-02-18
CN110808847B (en) 2021-10-15

Similar Documents

Publication Publication Date Title
WO2021057802A1 (en) Das system management method and device, electronic device, and storage medium
US20210297410A1 (en) Mec platform deployment method and apparatus
US11075821B2 (en) Method and apparatus for managing field device based on cloud server
KR101213870B1 (en) Wireless device discovery and configuration
CN108881308B (en) User terminal and authentication method, system and medium thereof
US9769801B2 (en) Method and apparatus for updating information regarding specific resource in wireless communication system
US20160234628A1 (en) Smart object identification in the digital home
WO2010017281A2 (en) Device manager repository
US20210392045A1 (en) Device Configuration Method, System, and Apparatus
CN111066014B (en) Apparatus, method, and program for remotely managing devices
US9438603B2 (en) Method for managing access right of terminal to resource by server in wireless communication system, and device for same
CN103634396A (en) Method, gateway equipment and system for accessing intranet webpage service data
CN113422768B (en) Application access method and device in zero trust and computing equipment
CN113056759A (en) Method and system for network devices to obtain a trusted status representation of the status of a distributed ledger technology network
CN109451497B (en) Wireless network connection method and device, electronic equipment and storage medium
KR20200087673A (en) Electronic message adaptation
WO2012139463A1 (en) Terminal device initialization method and device
WO2023273799A1 (en) Communication method and apparatus for external devices, electronic device, and storage medium
US9923810B1 (en) Application update using multiple disparate networks
JP6813110B1 (en) Communication devices, programs, communication methods, and communication systems
US20220353647A1 (en) Method for identifying wireless communication device user
CN105991351B (en) A kind of IPSec configuration method and device
US20240179523A1 (en) Configuration method and apparatus for terminal device, and communication device
CN105471594B (en) The method and apparatus for managing resource
WO2022147843A1 (en) Access authentication method and apparatus

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: 20867564

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: 20867564

Country of ref document: EP

Kind code of ref document: A1

122 Ep: pct application non-entry in european phase

Ref document number: 20867564

Country of ref document: EP

Kind code of ref document: A1

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 24.10.2022)

122 Ep: pct application non-entry in european phase

Ref document number: 20867564

Country of ref document: EP

Kind code of ref document: A1