WO2017211091A1 - 网络接入设备的配置方法及装置 - Google Patents

网络接入设备的配置方法及装置 Download PDF

Info

Publication number
WO2017211091A1
WO2017211091A1 PCT/CN2017/072860 CN2017072860W WO2017211091A1 WO 2017211091 A1 WO2017211091 A1 WO 2017211091A1 CN 2017072860 W CN2017072860 W CN 2017072860W WO 2017211091 A1 WO2017211091 A1 WO 2017211091A1
Authority
WO
WIPO (PCT)
Prior art keywords
configuration
configuration file
network access
access device
information
Prior art date
Application number
PCT/CN2017/072860
Other languages
English (en)
French (fr)
Inventor
万齐根
Original Assignee
中兴通讯股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2017211091A1 publication Critical patent/WO2017211091A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W16/00Network planning, e.g. coverage or traffic planning tools; Network deployment, e.g. resource partitioning or cells structures
    • H04W16/18Network planning tools

Definitions

  • This application relates to, but is not limited to, the field of communication technology.
  • the distribution point unit (DPU) device (that is, the node of the resides at the DP in the Fiber To The Distribution Point architecture) belongs to one of the network integrated access device modules and is facing the end user.
  • the network integrated access device the device is connected to the user terminal, connected to the service provider network, and the service provider provides various network services.
  • DPUs are deployed in a variety of locations, generally deployed in cells, streets, and roadsides. Some devices use reverse power supply. The operation of such devices is limited by the number of users online. Users will be offline when the user goes offline. In this case, there is a problem in the direct configuration management technology of the related technology (that is, directly configured on the device configuration interface). When the operator opens the user service, the device is not online, and the configuration cannot be delivered to the device. Failure to open a service affects equipment operation and maintenance.
  • the general method in the industry is to ensure that the equipment is powered on, or dispatch engineering personnel to the site for configuration, but these methods have many shortcomings: the deployment of the equipment is limited by the power supply, many devices are deployed in non-nearby users, it is not easy to find a suitable power supply; The engineering personnel open the business on site, which is very time-consuming and labor-intensive for deploying a large number of access devices; user service changes require on-site engineering personnel to configure support and response is slow.
  • the related art provides a data offline configuration method of a communication device, which converts device configuration information into a database file format that can be manually modified and edited, and then inversely converts the modified file into a device configuration.
  • Information file an offline configuration method for importing devices, but this solution does not solve the problem of managing devices when the device is offline.
  • the related art also provides a method for configuring offline data.
  • the system is divided into a foreground device and a background device, and a direct command configuration is performed by directly configuring a command parsing module on the background device to ensure that the device in the foreground is not Background device configuration in case of readiness, however, The technology cannot manage the device when the background device is not online.
  • the present invention provides a method and a device for configuring a network access device to solve the problem that the network access device cannot be updated in time when the network access device is offline configured.
  • a method for configuring a network access device includes:
  • the network access device After the network access device is started, the network access device sends a request for subscribing to the configuration file to the storage server;
  • configuration file information that is sent by the storage server in response to the request, where the storage server is configured in a configuration server, where the configuration file information includes information of a basic configuration file and an incremental configuration file.
  • the basic configuration file is used to record general configuration information of the network access device, where the incremental configuration file is used to record configuration information of a user changing service;
  • the network access device updates the configuration of the network access device according to the configuration file information.
  • the configuration file information further includes: a configuration file name and a file server information, where the network access device updates the configuration of the network access device according to the configuration file information, including:
  • the network access device detects, according to the configuration file name, whether the configuration of the network access device is updated
  • the network access device When detecting that the configuration is updated, the network access device downloads the updated configuration file from the file server indicated by the file server information and updates the configuration of the network access device.
  • the network access device detects, according to the configuration file name, whether the configuration of the network access device is updated, including:
  • the network access device detects that there is no update
  • the network access device detects an update.
  • the network access device downloads the updated configuration file from the file server indicated by the file server information and updates the configuration of the network access device, including:
  • the network access device downloads the updated configuration file, and updates the configuration according to the updated configuration file.
  • the update time information is used to indicate that the configuration file has been updated; or,
  • the network access device downloads the updated configuration file, and overwrites the local using the updated configuration file, when the configuration file name does not match the update time information in the file name of the configuration file in the local storage.
  • a configuration file in the memory and updating the configuration according to the updated configuration file, wherein the update time information is used to indicate that the configuration file has been updated.
  • the network access device sends a request for subscribing to a configuration file to the configuration server, including:
  • the network access device periodically sends the request to the configuration server.
  • the network access device periodically sends the request to the storage server, including:
  • the network access device periodically sends the request for subscribing to a configuration file to the storage server;
  • the network access device periodically queries the configuration file information on the file server, where the information of the file server is obtained when the storage server first releases the configuration file information; When the configuration file information is inconsistent with the last published configuration file information of the storage server, the request is resent to the storage server.
  • a method for configuring a network access device includes:
  • the storage server receives a request sent by the network access device for subscribing to the configuration file
  • the storage server responds to the request and issues configuration file information to the network access device, where the storage server is configured in a configuration server, and the configuration file information is used by the network access device to update a configuration.
  • the profile information includes the information of the basic configuration file and The information of the incremental configuration file is used to record general configuration information of the network access device, where the incremental configuration file is used to record configuration information of a user changing service.
  • the method before the storing, by the storage server, the request sent by the network access device for subscribing to the configuration file, the method further includes:
  • the storage server receives a configuration instruction record sent by the configuration server
  • the storage server generates a configuration file according to the configuration instruction record, wherein the configuration file information is generated according to the configuration file.
  • a device for configuring a network access device comprising:
  • the sending module is configured to: after the network access device is started, send a request for subscribing to the configuration file to the configuration server;
  • a receiving module configured to: receive configuration file information that is sent by the storage server in response to the request sent by the sending module, where the storage server is built in the configuration server, and the configuration file information includes a basic configuration file. And the information of the incremental configuration file, where the basic configuration file is used to record general configuration information of the network access device, where the incremental configuration file is used to record configuration information of a user changing service;
  • an update module configured to: update the configuration of the network access device according to the configuration file information received by the receiving module.
  • a device for configuring a network access device comprising:
  • the first receiving module is configured to: receive a request sent by the network access device for subscribing to the configuration file;
  • a publishing module configured to: respond to the request received by the first receiving module, and issue configuration file information to a network access device, where the storage server is configured in a configuration server, and the configuration file information is used by the a network access device update configuration, where the configuration file information includes information of a basic configuration file and information of an incremental configuration file, where the basic configuration file is used to record general configuration information of the network access device, and the incremental The configuration file is used to record the configuration information of the user's changed business.
  • the method and device for configuring a network access device after the network access device is started, subscribe to the configuration file to the configuration server, and configure the storage server in the server to send the configuration file.
  • the information of the configuration file is sent, so that the network access device updates the configuration according to the information of the configuration file.
  • the embodiment of the present invention implements timely updating of the offline configuration.
  • FIG. 1 is a schematic diagram of a network architecture of a method for configuring a network access device according to an embodiment of the present disclosure
  • FIG. 2 is a flowchart of a method for configuring a network access device according to an embodiment of the present invention
  • FIG. 3 is a flowchart of another method for configuring a network access device according to an embodiment of the present disclosure
  • FIG. 4 is a flowchart of still another method for configuring a network access device according to an embodiment of the present disclosure
  • FIG. 5 is an interaction flowchart of a method for configuring a network access device according to an embodiment of the present invention
  • FIG. 6 is a flowchart of still another method for configuring a network access device according to an embodiment of the present disclosure
  • FIG. 7 is a schematic structural diagram of a device for configuring a network access device according to an embodiment of the present disclosure
  • FIG. 8 is a schematic structural diagram of another apparatus for configuring a network access device according to an embodiment of the present disclosure.
  • FIG. 1 is a schematic diagram of a network architecture of a method for configuring a network access device according to an embodiment of the present invention.
  • the embodiment of the present invention may be implemented on the network architecture shown in FIG. 1, as shown in FIG.
  • the architecture includes: a network management server 101, a configuration server 102 (which may also be referred to as a network management server), a network access device 103, and a user device 104, wherein the storage server may be disposed on the configuration server 102.
  • the network access device 103 and the system architecture diagram of the configuration server 102 the maintenance personnel deliver configuration commands through the network management server 101, for example, an operation support system (OSS) server, and activate the user.
  • the configuration command is transmitted to the northbound interface of the configuration server 102.
  • the configuration server 102 is, for example, a network management system (NMS), and the configuration server 102 has a built-in permanent configuration storage management agent (PMA).
  • PMA permanent configuration storage management agent
  • the device After being stored and parsed by the configuration server 102, the device is delivered to the network integrated access device (DPU), so that the Customer Premises Equipment (CPE) device is normally connected to the Internet and enjoys the network service provided by the service provider.
  • DPU network integrated access device
  • CPE Customer Premises Equipment
  • the technical solution of the embodiment of the present invention mainly includes storing the network centralized access device configuration data information in a Persistent Management Agent (PMA) of a high-reliability network management device that does not interrupt the power supply.
  • PMA Persistent Management Agent
  • the device configuration file is divided into three types of configuration files, and the latest configuration is delivered to the device in time by using the configuration subscription and release mechanism.
  • the configuration file is transmitted using the secure file transfer protocol (Secure). File Transport Protocol, referred to as: SFTP).
  • the configuration information of the network access device in the embodiment of the present invention is stored in the PMA of the high-reliability server (that is, the storage server described in FIG. 1 above), and the PMA serves as an SFTP server to monitor user configuration changes. Publish configuration change information.
  • the configuration information of the network access device in the embodiment of the present invention is stored in three configuration files, which are a pre-configuration file, a basic configuration file, and an incremental configuration file, and are offline through the three types of configuration files.
  • Management forms a configuration method of an embodiment of the present invention.
  • a pre-configuration file ie, a default configuration file.
  • the configuration in the configuration file is generally used as a factory configuration, for example, a preset device Internet Protocol (IP) address, a preset PMA address, and the like.
  • IP Internet Protocol
  • PMA preset PMA address
  • Pre-configuration files do not need to be stored on the PMA, but only in the device's local flash memory (Flash EEPROM Memory, FLASH for short).
  • the basic configuration file stores the common configuration of the same type of device, the frequency of the configuration change is small, and is stored on the PMA;
  • the recommended operation manner for changing the basic configuration file includes:
  • Incremental configuration file for the frequently modified configuration information to be transferred to the incremental configuration file, the data opened by each port user can be set through the northbound interface and the network management platform; the incremental configuration file is stored on the PMA. , DPU local keeps the image.
  • the incremental configuration file is described in a general description language, for example, an eXtensible Markup Language (XML), which contains all configuration information for the user to open the service and cancel the service.
  • XML eXtensible Markup Language
  • FIG. 2 is a flowchart of a method for configuring a network access device according to an embodiment of the present invention.
  • the configuration method of the network access device provided in the embodiment may include the following steps, that is, step 210 to step 230:
  • Step 210 After the network access device is started, the network access device sends a request for subscribing to the configuration file to the storage server.
  • Step 220 The network access device receives configuration file information that is sent by the storage server in response to the request, where the storage server is configured in the configuration server, and the configuration file information includes information of the basic configuration file and information of the incremental configuration file, and the basic configuration file. It is used to record general configuration information of the network access device, and the incremental configuration file is used to record configuration information of the user changing the service;
  • Step 230 The network access device updates the configuration of the network access device according to the configuration file information.
  • the configuration method of the network access device provided by the embodiment of the present invention, after the network access device is started, subscribes to the configuration file by the configuration server, and configures the storage server in the server to release the configuration file information, so that the network access device according to the configuration file
  • the information update configuration ; this embodiment implements timely updating of the offline configuration.
  • offline configuration of the network access device can be implemented in time Steps and updates; avoid engineering personnel to each site to perform configuration update operations on network access devices (ie, DPU devices); configure the server to manage configuration and status information of all DPU devices under the subordinate, and provide network administrators or operators and operators with friendly operations. interface.
  • DPU devices network access devices
  • the configuration information is subscribed to the PMA server (ie, the configuration server), and the PMA server issues configuration information and pushes it to the DPU device side.
  • the DPU device confirms whether the configuration needs to be downloaded and updated according to the push information.
  • the basic configuration file and the incremental configuration file in the foregoing embodiment are stored in a highly reliable server device, and the configuration and the subscription mode are configured to synchronize and update the configuration of the network access device.
  • FIG. 3 is a flowchart of another method for configuring a network access device according to an embodiment of the present invention.
  • the configuration file information may further include a configuration file name and file server information, and the network access device described in step 230 updates the configuration of the network access device according to the configuration file information. , including steps 231 to 232:
  • Step 231 The network access device detects, according to the configuration file name, whether the configuration of the network access device is updated.
  • Step 232 When detecting that the configuration is updated, the network access device downloads the updated configuration file from the file server indicated by the file server information and updates the configuration of the network access device.
  • the network access device in step 231 detects whether the configuration of the network access device is updated according to the configuration file name, and may include: if the configuration file name is local to the network access device When the file name of the configuration file in the memory is consistent, the network access device detects that there is no update; if the configuration file name does not match the file name of the configuration file in the local storage of the network access device, the network access device detects an update.
  • the network access device that is configured to download the updated configuration file from the file server indicated by the file server information and update the configuration of the network access device may be:
  • the network access device downloads the updated configuration file when the configuration file name is inconsistent with the update time information in the file name of the configuration file in the local storage, and updates the configuration according to the updated configuration file, wherein the update time information is updated. Used to indicate that the configuration file has been updated; on the other hand, the network access device does not match the update time information in the configuration file name and the file name of the configuration file in the local storage, download the updated configuration file, and use the updated configuration file.
  • the update time information is used to indicate that the configuration file has been updated.
  • the timestamps in the configuration file are inconsistent, that is, the online time information is inconsistent, indicating that the device has an intermediate offline process, and the configuration needs to be updated according to the updated configuration file.
  • the online time information is used to indicate that the network access device has a offline process during the configuration of the configuration file.
  • the method provided in this embodiment may further include: before the network access device is started, and before the network access device sends the request for the subscription configuration file to the configuration server, the network access device loads the local device of the network access device.
  • the system configuration file mainly includes predefined configuration (or factory configuration) files, basic configuration files and incremental configuration files.
  • the main download update process is as follows: network access device startup, loading configuration implementation steps; device startup, loading first Pre-configuration file; the pre-configuration file will be the IP address of the device network, or the dynamic host configuration protocol (Dynamic Host Configuration Protocol, DHCP) will be used to obtain the address.
  • DHCP Dynamic Host Configuration Protocol
  • the DPU device and the PMA server will communicate normally; the DPU device will be directed to the PMA.
  • the server subscribes to the configuration file; the PMA server publishes the configuration file, and finds the corresponding DPU file information, and pushes it to the DPU device.
  • the push information includes the file server address, the account number, and the corresponding configuration file name; the DPU device determines whether the file name is based on the push configuration file name. Download the configuration file or execute the configuration file.
  • the method provided in this embodiment may include the following steps, that is, steps 301 to 313:
  • step 301 the pre-configuration file is loaded. Perform this step after the system is started.
  • Step 302 Execute a pre-configuration file to obtain an IP address of the DPU device.
  • Step 303 Detect whether a local basic configuration image exists.
  • step 304 If yes, go to step 304; if not, go to step 307.
  • step 304 the basic configuration file is loaded.
  • Step 305 Detect whether a local incremental configuration image exists.
  • step 306 If yes, go to step 306; if not, go to step 307.
  • Step 306 loading an incremental configuration file.
  • step 307 the DPU device subscribes the basic configuration file and the incremental configuration file to the PMA server.
  • the device After the network access device (that is, the DPU device) is powered on, the device sends a protocol packet to the configuration server (that is, the PMA server) to perform configuration subscription. All user configurations are processed by the PMA server.
  • the PMA server updates the configuration files stored on the server's hard disk and simultaneously performs the configuration and release process according to the list of subscribed devices.
  • step 308 the DPU device downloads the updated basic configuration file and the incremental configuration file.
  • Step 309 detecting whether the file name time stamp B is updated.
  • step S310 is performed; if not, no operation is performed, and then the process proceeds to step 301.
  • step 310 the configuration file is downloaded.
  • Step 311 Detect whether the file name timestamp A is updated.
  • step 312 is performed; if not, step 313 is performed.
  • Step S312 downloading the updated configuration file and updating the configuration.
  • Step S313 downloading the updated configuration file and updating the configuration, and overwriting the local file with the downloaded updated configuration file, and then proceeds to step 301.
  • the DPU device needs to be processed by the PMA server.
  • the PMA server will update the configuration file. If the DPU device is offline, you need to update the two time information of the configuration file A and B. If the DPU device can be configured online, The configuration file B time information needs to be updated. If the timestamp A is inconsistent with the local mirroring, the port configuration of the DPU device needs to be reconfigured. A is consistent, timestamp B is inconsistent, indicating that only files need to be synchronized.
  • the configuration file name is designed as follows, so that the DPU device can perform the download and update determination of the updated configuration file according to the configuration file name information issued by the PMA server.
  • the basic configuration file name can be: Basic_1502101200_1502121200-dpu.xml, which contains two timestamp information, namely timestamp A and timestamp B, and timestamp A is: 1502101200, meaning that the DPU device was offline during the last detection.
  • time stamp B is: 1502121200, meaning the previous one
  • the change of the content of the secondary configuration file is 12:00 on February 12, 2015.
  • the update of the timestamp A indicates that there is an offline process in the middle of the DPU of the network element.
  • the DPU of the network element needs to reload the configuration file, and the timestamp B updates the configuration file. Change, the network element DPU device needs to download the updated configuration file image from the SFTP server (SFTP Server).
  • the network access device that sends the request for subscribing to the configuration file to the configuration server may include: the network access device periodically sends the request to the configuration server.
  • the network access device periodically sending the request to the configuration server may include: the network access device periodically sends a request for subscribing to the configuration file to the configuration server; or may further include: The access device periodically queries the configuration file information on the file server, where the information of the file server is obtained when the storage server first releases the configuration file information; and the queried configuration file information and the storage server When the profile information of one release is inconsistent, the request is resent to the configuration server.
  • the method for configuring a network access device maintains a heartbeat between the network access device and the configuration server, and performs periodic configuration file subscription and distribution; the heartbeat can not only discover the configuration file update in time and configure the server from the configuration server.
  • the download synchronization is performed; the hold heartbeat includes but is not limited to the network access device and the configuration server to save the periodic heartbeat, or the network access device and the file server save the heartbeat, and when the file is found to be changed last time, the configuration is further configured.
  • the server subscribes and discovers the configuration file update and synchronizes the download from the configuration server based on the information published by the storage server.
  • SFTP client SFTP client
  • SFTP server SFTP server
  • the configuration file of the network access device is not found on the SFTP server, the description is not complete.
  • the configuration file is updated.
  • the network access device needs to re-subscribe the configuration file.
  • the network management server will release the new configuration file and SFTP information to the network access device, and the network access device will download and update.
  • the network access device detects whether the basic configuration and the incremental configuration are updated. If the basic configuration update is found, after the basic configuration file is downloaded to the local, the local basic configuration image is overwritten, the incremental configuration is downloaded, and the coverage is resolved; Configure updates, downloads, resolve incremental configurations, and then perform incremental configuration.
  • the network access device includes a pre-configuration file, a basic configuration file, and an incremental configuration file, and the configuration file subscription and release process of the network access device and the configuration server constitute an offline configuration management method.
  • FIG. 5 it is an interaction flowchart of a method for configuring a network access device according to an embodiment of the present invention.
  • the method provided in this embodiment may include the following steps, that is, steps 401 to 404:
  • Step 401 the network access device (ie, the DPU device 10) periodically sends a subscription request for subscribing to the configuration file to the persistent configuration storage management agent (PMA server 20);
  • PMA server 20 the persistent configuration storage management agent
  • Step 402 the PMA server 20 issues the corresponding configuration file information, and pushes it to the DPU device 10;
  • Step 403 The DPU device 10 acquires configuration file information and SFTP information pushed by the PMA server 20;
  • step 404 the DPU device 10 sends a configuration request to the SFTP server 30 for requesting to perform configuration download and update.
  • steps 405 to 407 may be included, that is, steps 405 to 407:
  • the network access device ie, the DPU device 10) periodically queries the configuration file on the SFTP server 30.
  • the SFTP server 30 information is obtained when the PPU server 20 first publishes and pushes the configuration file information.
  • the subscription request is re-initiated to the PMA server 20.
  • step 406 the PMA server 20 issues the corresponding profile information and pushes it to the DPU device 10.
  • Step 407 The DPU device 10 sends a configuration request to the SFTP server 30 according to the pushed configuration file information and the SFTP information, and performs configuration downloading and updating.
  • the network access device provided by the embodiment of the present invention is compared with the offline configuration technology in the related art.
  • the beneficial effects of the configuration method are: by adopting the publish and subscribe mode, the configuration is updated in time; because the configuration update is in the form of a file, the configuration of the network management access device is generally large, and three types of configuration files are designed according to the configuration change frequency, You need to update the entire configuration file each time, reducing the amount of configuration that needs to be changed each time. Check whether the configuration file still exists through the NMS access device. If it does not exist, make a new subscription, and less protocol sharing of the subscription/release configuration file. Reduce the centralized management load of the configuration server; save the previous configuration file image in the local storage of the device. If the configuration has not changed, you do not need to perform the configuration download process every time to improve efficiency; configure update automation, and enable user service update configuration. No equipment is required to be online, reducing operation and maintenance costs and improving operation and maintenance efficiency.
  • the technical solution of the embodiments of the present invention may be embodied in the form of a software product in essence or in the form of a software product stored in a storage medium (such as ROM/RAM, disk).
  • the optical disc includes a plurality of instructions for causing a terminal device (which may be a mobile phone, a computer, a server, or a network device, etc.) to perform the methods provided by the embodiments of the present invention and the optional embodiments.
  • FIG. 6 is a flowchart of another method for configuring a network access device according to an embodiment of the present invention.
  • the method provided in this embodiment may include the following steps, that is, steps 510 to 520:
  • Step 510 The storage server receives a request sent by the network access device for subscribing to the configuration file.
  • Step 520 The storage server responds to the request and issues configuration file information to the network access device, where the storage server is configured in the configuration server, the configuration file information is used for the network access device update configuration, and the configuration file information includes the basic configuration file.
  • the information of the information and the incremental configuration file The basic configuration file is used to record the common configuration information of the network access device.
  • the incremental configuration file is used to record the configuration information of the user change service.
  • the method for configuring a network access device starts in a network access device After that, the configuration file is subscribed to the configuration server, and the information about the configuration file of the storage server in the server is configured, and the network access device updates the configuration according to the information of the configuration file, so that the offline configuration can be updated in time.
  • the embodiment of the present invention can implement offline configuration and synchronization of the network access device in time; avoiding the configuration update operation of the DPU device by the engineering personnel to each site; configuring the server to manage the configuration and status information of all the DPU devices of the subordinate, and providing the network
  • the administrator or the operation and maintenance staff is friendly to the operation interface.
  • the configuration information is subscribed to the PMA server, and the PMA server issues configuration information and pushes it to the DPU device side.
  • the DPU device confirms whether the configuration needs to be downloaded and updated according to the pushed configuration information.
  • the basic configuration file and the incremental configuration file in the embodiment of the present invention are stored in a highly reliable server device (ie, a PMA server), and the configuration and the subscription mode are configured to synchronize and update the configuration of the network access device.
  • the method may further include: the storage server receiving the configuration instruction record sent by the configuration server; and the storage server generating the configuration file according to the configuration instruction record , wherein the profile information is generated according to the configuration file.
  • the method provided by the embodiment of the present invention may further include: when the storage server receives the configuration instruction record sent by the configuration server, updating the update time information in the file name of the corresponding configuration file, where the update time information is used. Indicates that the configuration file has been updated; when the network access device configuration times out, the online time information in the file name of the corresponding configuration file is updated, wherein the online time information is used to indicate that the network access device has a process in configuring the configuration file. Not online process.
  • the information of the network access device is recorded in the request, where the storage server sends the configuration file information to the network access device in response to the request, and may include: the storage server searching and the network access device. Corresponding configuration file; the storage server generates configuration file information including a file name of the configuration file and file server information; and the storage server issues configuration file information to the network access device.
  • the server configuration update and release scheme is as follows: the administrator delivers the configuration through the Office of Strategic Services (OSS) interface; the network management records the configuration instructions and forms a corresponding DPU XML file (ie, Configuration file); OSS delivery configuration will be more Timestamp B information in the new DPU XML file name; when the network access device (DPU device) configuration times out, update the timestamp A information in the DPU XML file name; when receiving the request of the DPU device to subscribe to the configuration file, PMA The server finds the configuration file of the corresponding DPU device for publishing, and pushes the file and file server information.
  • OSS Office of Strategic Services
  • the method according to the foregoing embodiments can be implemented by means of software plus a necessary general hardware platform, and of course, by hardware.
  • the technical solution of the embodiments of the present invention may be embodied in the form of a software product in essence or in the form of a software product stored in a storage medium (such as ROM/RAM, disk).
  • the optical disc includes a plurality of instructions for causing a terminal device (which may be a mobile phone, a computer, a server, or a network device, etc.) to perform the method described in various embodiments of the present invention.
  • the embodiment of the present invention further provides a configuration device for a network access device, which is used to perform the foregoing embodiments and optional implementation manners, and has not been described again.
  • a configuration device for a network access device which is used to perform the foregoing embodiments and optional implementation manners, and has not been described again.
  • the term “module” may implement a combination of software and/or hardware of a predetermined function.
  • FIG. 7 is a schematic structural diagram of a device for configuring a network access device according to an embodiment of the present invention. As shown in FIG. 7 , a device for configuring a network access device provided in this embodiment is configured in a network access device. Can include:
  • the sending module 61 is configured to: after the network access device is started, send a request for subscribing to the configuration file to the configuration server;
  • the receiving module 62 is configured to: receive the configuration file information issued by the storage server in response to the request sent by the sending module 61, wherein the storage server is built in the configuration server, and the configuration file information includes the information of the basic configuration file and the incremental configuration file.
  • the basic configuration file is used to record the general configuration information of the network access device, and the incremental configuration file is used to record the configuration information of the user changing the service;
  • the updating module 63 is configured to: update the configuration of the network access device according to the profile information received by the receiving module 62.
  • a device for configuring a network access device is activated by a network access device. Then, the configuration file is subscribed to the configuration server, and the information about the configuration file of the storage server in the server is configured. The configuration device of the network access device updates the configuration according to the information of the configuration file, so that the offline configuration can be updated in time.
  • the offline configuration of the network access device can be synchronized and updated in time; the engineering personnel can be configured to update the DPU device to each site; and the configuration and status of all DPU devices managed by the PMA server are configured.
  • Information providing a friendly interface for network administrators or operators.
  • the configuration information is subscribed to the PMA server, and the PMA server issues configuration information and pushes it to the DPU device side.
  • the DPU device confirms whether the configuration needs to be downloaded and updated according to the push information.
  • the basic configuration file and the incremental configuration file in the embodiment of the present invention are stored in a highly reliable server device, and the configuration and the subscription mode are configured to synchronize and update the configuration of the network access device.
  • the configuration file information may include a configuration file name and file server information
  • the update module 63 may include: a detecting unit, configured to: detect, according to the configuration file name, whether the configuration of the network access device is updated.
  • the download execution unit is configured to: when the detecting unit detects that the update is configured, download the updated configuration file from the file server indicated by the file server information and update the configuration of the network access device.
  • the detecting module may include: a detecting subunit, configured to: when the configuration file name is consistent with the file name of the configuration file in the local storage of the network access device, detecting that there is no update; When the configuration file name does not match the file name of the configuration file in the local storage of the network access device, an update is detected.
  • the downloading execution unit may include:
  • the first processing subunit is configured to: when the configuration file name is inconsistent with the update time information in the file name of the configuration file in the local storage, download the updated configuration file, and update the configuration according to the updated configuration file, where Update time information is used to indicate that the configuration file has been updated;
  • the second processing subunit is configured to: when the configuration file name is inconsistent with the update time information in the file name of the configuration file in the local storage, download the updated configuration file, and use the updated configuration file to overwrite the configuration in the local storage a file, and updating the configuration according to the updated configuration file, wherein the update time information is used to indicate that the configuration file has been updated, and the online time information is used to indicate The network access device has an offline process during the configuration of the configuration file.
  • the sending module 61 is configured to: periodically send a request to the configuration server.
  • the sending module 61 may include one or more of the following:
  • the first sending subunit is configured to: periodically send a request for subscribing to the configuration file to the storage server;
  • the second sending subunit is configured to: periodically query the configuration file information on the file server, where the information of the file server is obtained when the storage server first releases the configuration file information; and the configured configuration file is queried When the information and the storage server's last published profile information are inconsistent, the request is sent back to the configuration server.
  • the apparatus provided by the embodiment of the present invention may further include:
  • Loading a module configured to: after the network access device is started, and before the network access device sends a request for a subscription configuration file to the configuration server, loading a default configuration file in the local storage of the network access device;
  • the processing module is configured to: execute a default configuration file, and establish communication between the network access device and the configuration server.
  • the embodiment of the present invention further provides a device for configuring a network access device, which is disposed on a storage server, as shown in FIG. 8 , which is a structure of another device for configuring a network access device according to an embodiment of the present invention.
  • FIG. 8 is a structure of another device for configuring a network access device according to an embodiment of the present invention.
  • the apparatus provided in this embodiment may include:
  • the first receiving module 71 is configured to: receive a request sent by the network access device for subscribing to the configuration file;
  • the issuing module 72 is configured to: respond to the request received by the first receiving module 71 and issue configuration file information to the network access device, where the storage server is configured in the configuration server, and the configuration file information is used by the network access device to update its configuration.
  • the configuration file information includes the information of the basic configuration file and the information of the incremental configuration file.
  • the basic configuration file is used to record the general configuration information of the network access device, and the incremental configuration file is used to record the configuration information of the user changed service.
  • the apparatus provided by the embodiment of the present invention may further include:
  • the second receiving module is configured to: receive the request for subscribing to the configuration file at the first receiving module 71 Before requesting, receiving a configuration instruction record sent by the configuration server;
  • the generating module is configured to: generate a configuration file according to the configuration instruction record received by the second receiving module, where the configuration file information is generated according to the configuration file.
  • the apparatus provided by the embodiment of the present invention may further include:
  • the first update module is configured to: when receiving the configuration instruction record sent by the network management server, update the update time information in the file name of the corresponding configuration file, where the update time information is used to indicate that the configuration file is updated;
  • the second update module is configured to: update the online time information in the file name of the corresponding configuration file when the network access device configuration times out, wherein the online time information is used to indicate that the network access device is in the process of configuring the configuration file There are no online processes.
  • the information of the network access device is recorded in the request, where the publishing module 72 includes: a searching unit, configured to: search for a configuration file corresponding to the network access device; generate a unit, and set To: Generate profile information including the file name and file server information of the configuration file; the publishing unit is configured to: publish the profile information to the network access device.
  • a searching unit configured to: search for a configuration file corresponding to the network access device; generate a unit, and set To: Generate profile information including the file name and file server information of the configuration file; the publishing unit is configured to: publish the profile information to the network access device.
  • modules and units in the foregoing embodiments and optional implementations may be implemented by software or hardware.
  • the following manners may be implemented, but are not limited to the manner described herein: the foregoing modules may be located In the same processor; or, the above modules may be located in different processors in any combination.
  • the embodiment of the invention further provides a storage medium.
  • the foregoing storage medium may be configured to store program code for performing the following steps:
  • the network access device After the network access device is started, the network access device sends a request for subscribing to the configuration file to the configuration server.
  • the network access device receives configuration file information that is sent by the storage server in response to the request, where the storage server is configured in a configuration server, where the configuration file information includes information of a basic configuration file and information of an incremental configuration file.
  • the configuration file is used to record the general configuration information of the network access device, and the incremental configuration file is used to record the configuration information of the user change service.
  • the network access device updates the configuration of the network access device according to the configuration file information.
  • the configuration file information in the embodiment of the present invention further includes a configuration file name and a file service.
  • Server information, the storage medium is also arranged to store program code for performing the following steps:
  • the network access device detects, according to the configuration file name, whether the configuration of the network access device is updated
  • the network access device When detecting that the configuration is updated, the network access device downloads the updated configuration file from the file server indicated by the file server information and updates the configuration of the network access device.
  • the storage medium is further arranged to store program code for performing the following steps:
  • the network access device detects that there is no update
  • the network access device detects an update.
  • the storage medium is further arranged to store program code for performing the following steps:
  • the network access device downloads the updated configuration file when the configuration file name is inconsistent with the update time information in the file name of the configuration file in the local storage, and updates the configuration according to the updated configuration file, where the update time information is used. Indicates that the configuration file has been updated;
  • the network access device downloads the updated configuration file when the configuration file name is inconsistent with the update time information in the file name of the configuration file in the local storage, and overwrites the configuration file in the local storage with the updated configuration file, and according to the configuration file
  • the updated configuration file update configuration wherein the update time information is used to indicate that the configuration file has been updated, and the online time information is used to indicate that the network access device has an offline process in the process of configuring the configuration file.
  • the storage medium is further arranged to store program code for performing the following steps:
  • the network access device periodically sends the request to the configuration server.
  • the storage medium is further arranged to store program code for performing the following steps:
  • the network access device periodically sends the request for the subscription configuration file to the storage server; or the network access device periodically queries the configuration file information on the file server, where the information of the file server is the network access device first on the storage server. Obtained when the configuration file information is released. When the configuration file information that is queried is inconsistent with the configuration file information that is published last time on the storage server, the request is sent to the configuration server again.
  • the storage medium is further arranged to store program code for performing the following steps:
  • the network access device loads a default configuration file in the local storage of the network access device; the network access device executes a default configuration file to establish communication between the network access device and the configuration server.
  • the storage medium is further arranged to store program code for performing the following steps:
  • the storage server receives a request sent by the network access device for subscribing to the configuration file.
  • the storage server responds to the request and issues configuration file information to the network access device, where the storage server is configured in the configuration server, and the configuration file information is used by the network access device to update its configuration, where the configuration file information includes the basic configuration file.
  • the information of the information and the incremental configuration file is used to record the general configuration information of the network access device, and the incremental configuration file is used to record the configuration information of the user change service.
  • the storage medium is further arranged to store program code for performing the following steps:
  • the storage server receives the configuration instruction record sent by the configuration server; the storage server generates a configuration file according to the configuration instruction record, wherein the configuration file information is generated according to the configuration file.
  • the storage medium is further arranged to store program code for performing the following steps:
  • the storage server When the storage server receives the configuration instruction record sent by the network management server, updating the update time information in the file name of the corresponding configuration file, where the update time information is used to indicate that the configuration file is updated;
  • the online time information in the file name of the corresponding configuration file is updated, wherein the online time information is used to indicate that the network access device has an offline process in the process of configuring the configuration file.
  • the information of the network access device is recorded in the request, and the storage medium is further configured to store program code for performing the following steps:
  • the storing server responding to the request and publishing the configuration file information to the network access device may include: the storage server searching for a configuration file corresponding to the network access device; the storage server generating configuration file information including the file name of the configuration file and the file server information; and the storage server Network access device Publish the profile information.
  • the foregoing storage medium may include, but not limited to, a USB flash drive, a Read-Only Memory (ROM), a Random Access Memory (RAM), a mobile hard disk, and a magnetic memory.
  • ROM Read-Only Memory
  • RAM Random Access Memory
  • a mobile hard disk e.g., a hard disk
  • magnetic memory e.g., a hard disk
  • all or part of the steps of the above embodiments may also be implemented by using an integrated circuit. These steps may be separately fabricated into individual integrated circuit modules, or multiple modules or steps may be fabricated into a single integrated circuit module. achieve.
  • the device/function module/function module in the above embodiment may be implemented by a general-purpose computing device, which may be concentrated on a single computing device or distributed on a network composed of a plurality of computing devices.
  • the device/function module/function module in the above embodiment When the device/function module/function module in the above embodiment is implemented in the form of a software function module and sold or used as a stand-alone product, it can be stored in a computer readable storage medium.
  • the above mentioned computer readable storage medium may be a read only memory, a magnetic disk or an optical disk or the like.
  • the configuration file is subscribed to the configuration server, and the storage server in the server is configured to send the configuration file information, so that the network access device updates the configuration according to the information of the configuration file. Achieve timely update of offline configuration.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

一种网络接入设备的配置方法及装置,其中,该方法包括:在网络接入设备启动之后,向存储服务器发送用于订阅配置文件的请求;接收存储服务器发布的配置文件信息,并根据配置文件信息,更新网络接入设备的配置;其中,存储服务器配置在配置服务器中,该配置文件信息中包括基础配置文件的信息和增量配置文件的信息,该基础配置文件用于记录网络接入设备的通用配置信息,该增量配置文件用于记录用户变更业务的配置信息。

Description

网络接入设备的配置方法及装置 技术领域
本申请涉及但不限于通信技术领域。
背景技术
分发点模块(Distribution Point Unit,简称为:DPU)设备(即The node that resides at the DP in the Fiber To The Distribution Point architecture)属于网络综合接入设备模块中的一种,是面对最终用户的网络综合接入设备;该设备下接用户终端,上连服务商网络,由服务提供商提供多种网络服务。
DPU设备部署地点多样化,一般部署在小区,街道,路边等,部分设备采用用户反向供电方式,这类设备运行受限于用户上线数,用户下线会出现设备掉电离线,在这种情况下,使用相关技术中直接配置管理技术(即直接在设备配置界面上配置)存在一定的问题,当运营商开通用户业务时,设备并不在线,配置无法下发到设备执行,从而导致开通业务失败,影响设备运营维护。
业内一般方法是保证设备上电,或者派遣工程人员到现场进行配置,但是这些方法的有很多缺点:设备的部署受到电源限制,很多设备部署在非临近用户地方,不容易找到合适的电源;派遣工程人员现场开通业务,对于部署点繁多的接入设备,非常耗费时间和人力;用户业务变更,需要现场工程人员配置支持,响应慢。
为了解决上述问题,相关技术中提供了一种通信设备的数据离线配置方法,该方法是将设备配置信息转换为可人工修改编辑的数据库文件格式,然后将修改后的文件再逆转换为设备配置信息文件,导入设备的一种离线配置方法,但是该方案并不能解决设备不在线时,对设备进行管理的问题。
相关技术中还提供了一种离线数据的配置方法,在该方案中,系统分为前台设备和后台设备,通过直接在后台设备上内置命令解析模块等,进行直接命令配置,保证在前台设备未准备就绪情况下的后台设备配置,然而,该 技术在后台设备不在线的情况下,无法对设备进行管理。
发明内容
以下是对本文详细描述的主题的概述。本概述并非是为了限制权利要求的保护范围。
本文提供了一种网络接入设备的配置方法及装置,以解决相关技术中在网络接入设备的离线配置时,无法及时更新的问题。
一种网络接入设备的配置方法,包括:
在网络接入设备启动之后,所述网络接入设备向存储服务器发送用于订阅配置文件的请求;
所述网络接入设备接收所述存储服务器响应所述请求发布的配置文件信息,其中,所述存储服务器配置在配置服务器中,所述配置文件信息中包括基础配置文件的信息和增量配置文件的信息,所述基础配置文件用于记录所述网络接入设备的通用配置信息,所述增量配置文件用于记录用户变更业务的配置信息;
所述网络接入设备根据所述配置文件信息,更新所述网络接入设备的配置。
可选地,所述配置文件信息中还包括配置文件名和文件服务器信息,所述网络接入设备根据所述配置文件信息,更新所述网络接入设备的配置,包括:
所述网络接入设备根据所述配置文件名检测所述网络接入设备的配置是否有更新;
所述网络接入设备在检测出所述配置有更新时,从所述文件服务器信息指示的文件服务器下载已更新的配置文件并更新所述网络接入设备的配置。
可选地,所述网络接入设备根据所述配置文件名检测所述网络接入设备的配置是否有更新,包括:
若所述配置文件名与所述网络接入设备的本地存储器中配置文件的文件名一致时,所述网络接入设备检测出没有更新;
若所述配置文件名与所述网络接入设备的本地存储器中配置文件的文件名不一致时,所述网络接入设备检测出有更新。
可选地,所述网络接入设备从所述文件服务器信息指示的文件服务器下载已更新的配置文件并更新所述网络接入设备的配置,包括:
所述网络接入设备在所述配置文件名与本地存储器中配置文件的文件名中的更新时间信息不一致时,下载所述已更新的配置文件,并根据所述已更新的配置文件更新配置,其中,所述更新时间信息用于表示所述配置文件已更新;或者,
所述网络接入设备在所述配置文件名与本地存储器中配置文件的文件名中的更新时间信息不一致时,下载所述已更新的配置文件,使用所述已更新的配置文件覆盖所述本地存储器中的配置文件,并根据所述已更新的配置文件更新配置,其中,所述更新时间信息用于表示所述配置文件已更新。
可选地,所述网络接入设备向配置服务器发送用于订阅配置文件的请求,包括:
所述网络接入设备周期性向所述配置服务器发送所述请求。
可选地,所述网络接入设备周期性向所述存储服务器发送所述请求,包括:
所述网络接入设备周期性向所述存储服务器发送所述用于订阅配置文件的请求;或者,
所述网络接入设备周期性查询文件服务器上的配置文件信息,其中,所述文件服务器的信息为所述网络接入设备在所述存储服务器第一次发布配置文件信息时获得;在查询到的配置文件信息和所述存储服务器上一次发布的配置文件信息不一致时,重新向所述存储服务器发送所述请求。
一种网络接入设备的配置方法,包括:
存储服务器接收网络接入设备发送的用于订阅配置文件的请求;
所述存储服务器响应所述请求并向所述网络接入设备发布配置文件信息,其中,所述存储服务器配置在配置服务器中,所述配置文件信息用于所述网络接入设备更新配置,所述配置文件信息中包括基础配置文件的信息和 增量配置文件的信息,所述基础配置文件用于记录所述网络接入设备的通用配置信息,所述增量配置文件用于记录用户变更业务的配置信息。
可选地,所述存储服务器接收网络接入设备发送的用于订阅配置文件的请求之前,所述方法还包括:
所述存储服务器接收配置服务器发送的配置指令记录;
所述存储服务器根据所述配置指令记录生成配置文件,其中,所述配置文件信息为根据所述配置文件而生成的。
一种网络接入设备的配置装置,包括:
发送模块,设置为:在网络接入设备启动之后,向配置服务器发送用于订阅配置文件的请求;
接收模块,设置为:接收存储服务器响应所述发送模块发送的所述请求所发布的配置文件信息,其中,所述存储服务器内置在所述配置服务器中,所述配置文件信息中包括基础配置文件的信息和增量配置文件的信息,所述基础配置文件用于记录所述网络接入设备的通用配置信息,所述增量配置文件用于记录用户变更业务的配置信息;
更新模块,设置为:根据所述接收模块接收的所述配置文件信息,更新所述网络接入设备的配置。
一种网络接入设备的配置装置,包括:
第一接收模块,设置为:接收网络接入设备发送的用于订阅配置文件的请求;
发布模块,设置为:响应所述第一接收模块接收的所述请求并向网络接入设备发布配置文件信息,其中,所述存储服务器配置在配置服务器中,所述配置文件信息用于所述网络接入设备更新配置,所述配置文件信息中包括基础配置文件的信息和增量配置文件的信息,所述基础配置文件用于记录所述网络接入设备的通用配置信息,所述增量配置文件用于记录用户变更业务的配置信息。
本发明实施例提供的网络接入设备的配置方法及装置,通过在网络接入设备启动之后,向配置服务器订阅配置文件,配置服务器中的存储服务器发 送配置文件的信息,从而网络接入设备根据该配置文件的信息更新配置;本发明实施例实现了及时更新离线配置。
在阅读并理解了附图和详细描述后,可以明白其他方面。
附图概述
图1为本发明实施例提供的一种网络接入设备的配置方法的网络架构示意图;
图2为本发明实施例提供的一种网络接入设备的配置方法的流程图;
图3为本发明实施例提供的另一种网络接入设备的配置方法的流程图;
图4为本发明实施例提供的又一种网络接入设备的配置方法的流程图;
图5为本发明实施例提供一种网络接入设备的配置方法的交互流程图;
图6为本发明实施例提供的再一种网络接入设备的配置方法的流程图;
图7为本发明实施例提供的一种网络接入设备的配置装置的结构示意图;
图8为本发明实施例提供的另一种网络接入设备的配置装置的结构示意图。
本发明的实施方式
下文中将结合附图对本发明的实施方式进行详细说明。需要说明的是,在不冲突的情况下,本文中的实施例及实施例中的特征可以相互任意组合。
在附图的流程图示出的步骤可以在诸根据一组计算机可执行指令的计算机系统中执行。并且,虽然在流程图中示出了逻辑顺序,但是在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤。
本发明实施例的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。
图1为本发明实施例提供的一种网络接入设备的配置方法的网络架构示意图,本发明实施例可以运行于图1所示的网络架构上,如图1所示,该网络 架构包括:网管服务器101、配置服务器102(也可以称为:网管服务器)、网络接入设备103以及用户设备104,其中,存储服务器可以设置在配置服务器102上。
如图1所示,网络接入设备103和配置服务器102的系统架构图,维护人员通过网管服务器101,例如为运营支撑系统(Operation Support System,简称为:OSS)服务器下发配置指令,开通用户业务;配置指令将传输到配置服务器102的北向接口,该配置服务器102例如为网络管理系统(Network Management System,简称为:NMS),该配置服务器102内置永久配置存储管理代理(PMA),配置指令由配置服务器102存储及解析后下发到网络综合接入设备DPU中,从而用户驻地设备(Customer Premises Equipment,简称为:CPE)设备正常上网,并享受服务商提供的网络服务。
本发明实施例的技术方案,其主要包括将网络集中接入设备配置数据信息保存在不中断电源的高可靠性网管设备的永久配置存储管理代理(Persistent Management Agent,简称为:PMA)中。
根据配置变更的频度特点,将设备配置文件分为三类配置文件形式,并利用配置订阅和发布机制,及时将最新配置下发到设备执行,该配置文件的传输使用安全文件传输协议(Secure File Transport Protocol,简称为:SFTP)。
本发明实施例中的网络接入设备的配置信息存储于高可靠性的服务器的PMA(即上述图1所述的存储服务器)中,PMA同时作为一个SFTP服务器端,监控用户配置的变更,同时发布配置变更信息。
本发明实施例中的网络接入设备的配置信息存储在三种配置文件中,该三种配置文件分别是预配置文件,基础配置文件和增量配置文件,通过对这三类配置文件的离线管理,形成本发明实施例的配置方法。
首先对三类配置文件进行描述:
(1)、预配置文件(即默认配置文件),该配置文件中的配置一般作为出厂配置,例如,预置设备互联网协议(Internet Protocol,简称为:IP)地址,预置PMA地址等。预配置文件不需要在PMA上进行存储,仅保存在设备本地闪存(Flash EEPROM Memory,简称为:FLASH)中。
(2)、基础配置文件,该基础配置文件中存储着同类设备的通用配置,这部分配置改动的频率很小,存储于PMA上;更改基础配置文件的建议操作方式包括:
a)、直接手工修改基础配置模板,存放到PMA服务器上。
b)、通过网管界面,上传一台运行中网络接入设备DPU的配置,得到DPU运行配置文件后,手工修改作为基础配置文件,存放到对应PMA服务器上。
(3)、增量配置文件,对于频繁修改的配置信息规划到增量配置文件中,每个端口用户开通的数据,可通过北向接口设置,及网管平台设置;增量配置文件存储于PMA上,DPU本地保留镜像。增量配置文件使用通用描述语言进行描述,例如使用扩展标记语言(eXtensible Markup Language,简称为:XML),该增量配置文件中,包含用户开通业务及取消业务的所有配置信息。
在本发明实施例中提供运行于上述网络架构的网络接入设备的配置方法,图2为本发明实施例提供的一种网络接入设备的配置方法的流程图,如图2所示,本实施例提供的网络接入设备的配置方法可以包括如下步骤,即步骤210~步骤230:
步骤210,在网络接入设备启动之后,网络接入设备向存储服务器发送用于订阅配置文件的请求;
步骤220,网络接入设备接收存储服务器响应该请求发布的配置文件信息,其中,存储服务器配置在配置服务器中,配置文件信息中包括基础配置文件的信息和增量配置文件的信息,基础配置文件用于记录网络接入设备的通用配置信息,增量配置文件用于记录用户变更业务的配置信息;
步骤230,网络接入设备根据配置文件信息,更新网络接入设备的配置。
本发明实施例提供的网络接入设备的配置方法,通过在网络接入设备启动之后,向配置服务器订阅配置文件,配置服务器中的存储服务器发布配置文件信息,从而网络接入设备根据该配置文件的信息更新配置;本实施例实现了及时更新离线配置。
通过上述实施例的技术方案,可以实现网络接入设备的离线配置及时同 步和更新;避免工程人员到每个站点对网络接入设备(即DPU设备)进行配置更新操作;配置服务器管理下属所有DPU设备的配置和状态信息,提供网络管理员或者运营维护人员友好的操作界面。
在上述实施例中,DPU设备启动之后,向PMA服务器(即配置服务器)订阅配置信息,PMA服务器发布配置信息,并推送到DPU设备侧;DPU设备根据推送信息,确认是否需要下载并更新配置。上述实施例中的基础配置文件和增量配置文件均存储于高可靠性的服务器设备中,通过配置发布和订阅方式,实现网络接入设备的配置及时同步和更新。
可选地,图3为本发明实施例提供的另一种网络接入设备的配置方法的流程图。在图2所示实施例的基础上,配置文件信息中还可以包括配置文件名和文件服务器信息,步骤230所述的网络接入设备根据配置文件信息,更新网络接入设备的配置的实现方式为,包括步骤231~步骤232:
步骤231,网络接入设备根据配置文件名检测该网络接入设备的配置是否有更新;
步骤232,网络接入设备在检测出配置有更新时,从文件服务器信息指示的文件服务器下载已更新的配置文件并更新该网络接入设备的配置。
可选地,在本发明实施例中,步骤231所述的网络接入设备根据配置文件名检测该网络接入设备的配置是否有更新,可以包括:若配置文件名与网络接入设备的本地存储器中配置文件的文件名一致时,网络接入设备检测出没有更新;若配置文件名与网络接入设备的本地存储器中配置文件的文件名不一致时,网络接入设备检测出有更新。
可选地,在本发明实施例中,步骤232所述的网络接入设备从文件服务器信息指示的文件服务器下载已更新的配置文件并更新该网络接入设备的配置的实现方式可以为:一方面,网络接入设备在配置文件名与本地存储器中配置文件的文件名中的更新时间信息不一致时,下载已更新的配置文件,并根据该已更新的配置文件更新配置,其中,更新时间信息用于表示配置文件已更新;另一方面,网络接入设备在配置文件名与本地存储器中配置文件的文件名中的更新时间信息不一致,下载已更新的配置文件,使用该已更新的配置文件覆盖本地存储器中的配置文件,并根据该已更新的配置文件更新 配置,同样,更新时间信息用于表示配置文件已更新,其中,配置文件中的时间戳不一致,也就是在线时间信息不一致,说明设备存在中间不在线过程,需要根据已更新的配置文件来更新配置,即在线时间信息用于表示在配置配置文件的过程中网络接入设备有不在线过程。
可选地,在网络接入设备启动之后、且在网络接入设备向配置服务器发送订阅配置文件的请求之前,本实施例提供的方法还可以包括:网络接入设备加载网络接入设备的本地存储器中的默认配置文件;网络接入设备执行默认配置文件,建立网络接入设备与存储服务器的通信。
下面结合图4详述本发明实施例提供的网络接入设备的配置方法,如图3所示,为本发明实施例提供的又一种网络接入设备的配置方法的流程图,本实施例中的系统配置文件主要包括预定义配置(或者叫出厂配置)文件,基础配置文件和增量配置文件,其中主要下载更新流程如下:网络接入设备启动,加载配置实施步骤;设备启动,先加载预配置文件;预配置文件将设备网络的IP地址,或者启动动态主机配置协议(Dynamic Host Configuration Protocol,简称为:DHCP)获取地址,执行完毕,DPU设备和PMA服务器将正常通信;DPU设备向PMA服务器订阅配置文件;PMA服务器发布配置文件,并找到对应DPU文件信息,推送到DPU设备,推送信息包括文件服务器地址,账号,及对应的配置文件名;DPU设备根据推送的配置文件名,决定是否下载配置文件或者执行配置文件。
可选地,如图4所示,本实施例提供的方法可以包括如下步骤,即步骤301~步骤313:
步骤301,加载预配置文件。在系统启动之后,执行该步骤。
步骤302,执行预配置文件获得DPU设备的IP地址。
步骤303,检测本地基础配置镜像是否存在。
若存在,则执行步骤304;若不存在,则执行步骤307。
步骤304,加载基础配置文件。
步骤305,检测本地增量配置镜像是否存在。
若存在,则执行步骤306;若不存在,则执行步骤307。
步骤306,加载增量配置文件。
步骤307,DPU设备向PMA服务器订阅基础配置文件和增量配置文件。
当网络接入设备(即DPU设备)上电后,设备向配置服务器(即PMA服务器)发送协议报文,进行配置订阅。所有用户配置,都经过PMA服务器处理,PMA服务器对存储在服务器硬盘上的配置文件更新,并同时根据订阅设备列表进行配置发布流程。
步骤308,DPU设备下载已更新的基础配置文件和增量配置文件。
步骤309,检测文件名时间戳B是否更新。
若有更新,则执行步骤S310;若未更新,则不执行任何操作,随后转到步骤301。
步骤310,下载配置文件。
步骤311,检测文件名时间戳A是否更新。
若有更新,则执行步骤312;若未更新,则执行步骤313。
步骤S312,下载已更新的配置文件并更新配置。
步骤S313,下载已更新的配置文件并更新配置,并使用下载的已更新的配置文件覆盖本地文件,随后转到步骤301。
在实际应用中,用户配置DPU设备需要经过PMA服务器处理,PMA服务器将更新配置文件,如果DPU设备不在线,则需要更新配置文件A和B两个时间信息;如果DPU设备在线能正常配置,则只需要更新配置文件B时间信息;DPU设备对于PMA服务器发布的配置文件处理方法为,如果时间戳A与本地镜像不一致,表示需要同步配置文件,还需要重新配置DPU设备的端口配置;如果时间戳A一致,时间戳B不一致,表示只需要同步文件。
可选地,为了更容易检测配置信息的变化,配置文件文件名设计如下,这样DPU设备只要根据PMA服务器发布的配置文件名信息就可以进行已更新的配置文件的下载和更新判定了。例如,基础配置文件命名可以为:Basic_1502101200_1502121200-dpu.xml,其中包含两个时间戳信息,即时间戳A和时间戳B,时间戳A为:1502101200,意思为上一次探测到DPU设备不在线时间为2015年2月10日12点0分,时间戳B为:1502121200,意思为上一 次配置文件内容变化时间为2015年2月12日12点0分;时间戳A更新说明网元DPU设备中间存在不在线过程,网元DPU设备需要重新加载配置文件,时间戳B更新说明配置文件变化,网元DPU设备需要从SFTP服务器(SFTP Server)下载已更新的配置文件镜像。
可选地,在本发明实施例中,步骤210所述的网络接入设备向配置服务器发送用于订阅配置文件的请求的实现方式可以包括:网络接入设备周期性向该配置服务器发送该请求。
可选地,在本发明实施例中,网络接入设备周期性向该配置服务器发送该请求可以包括:网络接入设备周期性向该配置服务器发送用于订阅配置文件的请求;或者还可以包括:网络接入设备周期性查询文件服务器上的配置文件信息,其中,该文件服务器的信息为网络接入设备在存储服务器第一次发布配置文件信息时获得;在查询到的配置文件信息和存储服务器上一次发布的配置文件信息不一致时,重新向该配置服务器发送该请求。
本发明实施例提供的网络接入设备的配置方法,网络接入设备和配置服务器之间保持心跳,进行周期性的配置文件订阅和发布;该保持心跳不仅可以及时发现配置文件更新并从配置服务器上进行下载同步;该保持心跳包括但不限于网络接入设备和配置服务器保存周期性心跳,也可以是网络接入设备和文件服务器保存心跳,当发现上一次发布的文件变化时,再向配置服务器进行订阅,并根据存储服务器发布的信息及时发现配置文件更新并从配置服务器上进行下载同步。
在网络接入设备中内置一个SFTP客户端(SFTP Client)和SFTP服务器(SFTP Server)进行周期性交互,当发现上一次下载在网络接入设备的配置文件在SFTP服务器上已不存在时,说明配置文件有更新,网络接入设备需要重新订阅配置文件,网管配置服务器将发布新的配置文件和SFTP信息反馈给网络接入设备,网络接入设备进行下载更新。
网络接入设备检测基础配置和增量配置是否有更新,发现有基础配置更新,则在基础配置文件下载到本地后,覆盖本地基础配置镜像,下载增量配置并解析覆盖;当仅发现增量配置有更新,下载,解析增量配置,然后执行增量配置。
通过上述实施例,网络接入设备中包括预配置文件,基础配置文件和增量配置文件,网络接入设备和配置服务器的配置文件订阅和发布流程构成一种离线配置管理方法。
下面结合图5对本发明实施例提供的网络接入设备的配置方法进行详细描述。
如图5所示,为本发明实施例提供的网络接入设备的配置方法的交互流程图。本实施例提供的方法可以包括如下步骤,即步骤401~步骤404:
步骤401,网络接入设备(即DPU设备10)周期性向永久配置存储管理代理(PMA服务器20)发送用于订阅配置文件的订阅请求;
步骤402,PMA服务器20发布对应的配置文件信息,并推送给DPU设备10;
步骤403,DPU设备10获取PMA服务器20推送的配置文件信息和SFTP信息;
步骤404,DPU设备10向SFTP服务器30发送配置请求,该配置请求用于请求执行配置下载并更新。
在本实施例的一个可选地实现方式中,可以包括如下步骤,即步骤405~步骤407:
步骤405,网络接入设备(即DPU设备10)周期性查询SFTP服务器30上的配置文件,SFTP服务器30信息为DPU设备10在PMA服务器20第一次发布并推送配置文件信息时获得。
如果配置文件和PMA服务器20上一次发布的配置文件不一致,则重新向PMA服务器20发起订阅请求。
步骤406,PMA服务器20发布对应的配置文件信息,并推送给DPU设备10。
步骤407,DPU设备10根据推送的配置文件信息和SFTP信息,向SFTP服务器30发送配置请求,进行配置下载并更新。
与相关技术中的离线配置技术相比,本发明实施例提供的网络接入设备 的配置方法的有益效果为:通过采用发布订阅方式,提高配置的及时更新;因为配置更新都是文件形式,网管接入设备配置量普遍较大,根据配置变更频度设计三类配置文件,不需要每次都更新整个配置文件,减少每次需要变更的配置量;通过网管接入设备检测配置文件是否仍然存在,如果不存在才进行新的订阅,较少订阅/发布配置文件的协议交互,减轻配置服务器集中式管理负荷;将前一次的配置文件镜像保存在设备本地存储器中,如果配置未发生变更,不需要每次都进行配置下载过程,提升效率;配置更新自动化,开通用户业务更新配置不需要设备在线,降低运营维护成本和提高运维效率。
通过本发明实施方式提供的方法,本领域的技术人员可以清楚地了解到根据上述实施例的方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件。基于这样的理解,本发明实施例的技术方案本质上或者说对相关技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,或者网络设备等)执行本发明实施例和可选实施方式提供的方法。
在本发明实施例中还提供了一种运行于上述网络架构的网络接入设备的配置方法,图6为本发明实施例提供的再一种网络接入设备的配置方法的流程图,如图6所示,本实施例提供的方法可以包括如下步骤,即步骤510~步骤520:
步骤510:存储服务器接收网络接入设备发送的用于订阅配置文件的请求;
步骤520:存储服务器响应该请求并向网络接入设备发布配置文件信息,其中,存储服务器配置在配置服务器中,配置文件信息用于网络接入设备更新配置,配置文件信息中包括基础配置文件的信息和增量配置文件的信息,基础配置文件用于记录网络接入设备的通用配置信息,增量配置文件用于记录用户变更业务的配置信息。
本发明实施例提供的网络接入设备的配置方法,在网络接入设备启动之 后,向配置服务器订阅配置文件,配置服务器中的存储服务器发布配置文件的信息,网络接入设备根据该配置文件的信息更新配置,从而可以及时更新离线配置。
通过本发明实施例,可以实现网络接入设备的离线配置及时同步和更新;避免工程人员到每个站点对DPU设备进行配置更新操作;配置服务器管理下属所有DPU设备的配置和状态信息,提供网络管理员或者运运营维护人员友好的操作界面。
在本发明实施例中,DPU设备启动之后,向PMA服务器订阅配置信息,PMA服务器发布配置信息,并推送到DPU设备侧;DPU设备根据推送的配置信息,确认是否需要下载并更新配置。本发明实施例中的基础配置文件和增量配置文件均存储于高可靠性的服务器设备(即PMA服务器)中,通过配置发布和订阅方式,实现网络接入设备的配置及时同步和更新。
可选地,在本发明实施例中,存储服务器接收用于订阅配置文件的请求之前,该方法还可以包括:存储服务器接收配置服务器发送的配置指令记录;存储服务器根据该配置指令记录生成配置文件,其中,该配置文件信息为根据配置文件而生成的。
可选地,本发明实施例提供的方法,还可以包括:当存储服务器接收到配置服务器发送的配置指令记录时,更新对应的配置文件的文件名中的更新时间信息,其中,更新时间信息用于表示配置文件已更新;当网络接入设备配置超时时,更新对应的配置文件的文件名中的在线时间信息,其中,在线时间信息用于表示在配置配置文件的过程中网络接入设备有不在线过程。
可选地,在本发明实施例中,请求中记录有网络接入设备的信息,其中,存储服务器响应请求并向网络接入设备发布配置文件信息,可以包括:存储服务器查找与网络接入设备对应的配置文件;存储服务器生成包含配置文件的文件名和文件服务器信息的配置文件信息;存储服务器向网络接入设备发布配置文件信息。
可选地,服务器配置更新及发布的方案如下:管理员通过运营支撑系统(The Office of Strategic Services,简称为:OSS)界面下发配置;网管将配置指令记录,并形成对应DPU XML文件(即配置文件);OSS下发配置将更 新DPU XML文件名中的时间戳B信息;当网络接入设备(DPU设备)配置超时时,更新DPU XML文件名中的时间戳A信息;当收到DPU设备订阅配置文件的请求时,PMA服务器找到对应DPU设备的配置文件进行发布,并推送文件及文件服务器信息。
通过本发明实施例和可选实施方式的描述,本领域的技术人员可以清楚地了解到根据上述实施例的方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件。基于这样的理解,本发明实施例的技术方案本质上或者说对相关技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,或者网络设备等)执行本发明各个实施例所述的方法。
本发明实施例中还提供了一种网络接入设备的配置装置,该装置用于执行上述实施例和可选实施方式,已经进行过说明的不再赘述。如以下所使用的,术语“模块”可以实现预定功能的软件和/或硬件的组合。
图7为本发明实施例提供的一种网络接入设备的配置装置的结构示意图,如图7所示,本实施例提供的网络接入设备的配置装置设置于网络接入设备中,该装置可以包括:
发送模块61,设置为:在网络接入设备启动之后,向配置服务器发送用于订阅配置文件的请求;
接收模块62,设置为:接收存储服务器响应发送模块61发送的请求所发布的配置文件信息,其中,存储服务器内置在配置服务器中,配置文件信息中包括基础配置文件的信息和增量配置文件的信息,基础配置文件用于记录网络接入设备的通用配置信息,增量配置文件用于记录用户变更业务的配置信息;
更新模块63,设置为:根据接收模块62接收的配置文件信息,更新网络接入设备的配置。
本发明实施例提供的网络接入设备的配置装置,在网络接入设备启动之 后,向配置服务器订阅配置文件,配置服务器中的存储服务器发布配置文件的信息,网络接入设备的配置装置根据配置文件的信息更新配置,从而可以及时更新离线配置。
通过本发明实施例的技术方案,可以实现网络接入设备的离线配置及时同步和更新;避免工程人员到每个站点对DPU设备进行配置更新操作;配置PMA服务器管理下属所有DPU设备的配置和状态信息,提供网络管理员或者运运营维护人员友好的操作界面。
在本发明实施例中,DPU设备启动之后,向PMA服务器订阅配置信息,PMA服务器发布配置信息,并推送到DPU设备侧;DPU设备根据推送信息,确认是否需要下载并更新配置。本发明实施例中的基础配置文件和增量配置文件均存储于高可靠性的服务器设备中,通过配置发布和订阅方式,实现网络接入设备的配置及时同步和更新。
可选地,在本发明实施例中,配置文件信息中可以包括配置文件名和文件服务器信息,更新模块63可以包括:检测单元,设置为:根据配置文件名检测网络接入设备的配置是否有更新;下载执行单元,设置为:在检测单元检测出配置有更新时,从文件服务器信息指示的文件服务器下载已更新的配置文件并更新网络接入设备的配置。
可选地,在本发明实施例中,检测模块可以包括:检测子单元,设置为:在配置文件名与网络接入设备的本地存储器中配置文件的文件名一致时,检测出没有更新;在配置文件名与网络接入设备的本地存储器中配置文件的文件名不一致时,检测出有更新。
可选地,在本发明实施例中,下载执行单元可以包括:
第一处理子单元,设置为:在配置文件名与本地存储器中配置文件的文件名中的更新时间信息不一致时,下载已更新的配置文件,并根据该已更新的配置文件更新配,其中,更新时间信息用于表示配置文件已更新;
第二处理子单元,设置为:在配置文件名与本地存储器中配置文件的文件名中的更新时间信息不一致时,下载已更新的配置文件,使用该已更新的配置文件覆盖本地存储器中的配置文件,并根据该已更新的配置文件更新配置,其中,更新时间信息用于表示配置文件已更新,在线时间信息用于表示 在配置配置文件的过程中网络接入设备有不在线过程。
可选地,在本发明实施例中,发送模块61,是设置为:周期性向配置服务器发送请求。
可选地,在本发明实施例中,发送模块61可以包括以下一项或多项:
第一发送子单元,设置为:周期性向存储服务器发送用于订阅配置文件的请求;
第二发送子单元,设置为:周期性查询文件服务器上的配置文件信息,其中,文件服务器的信息为网络接入设备在存储服务器第一次发布配置文件信息时获得;在查询到的配置文件信息和存储服务器上一次发布的配置文件信息不一致时,重新向配置服务器发送请求。
可选地,本发明实施例提供的装置还可以包括:
加载模块,设置为:在网络接入设备启动之后、且在网络接入设备向配置服务器发送订阅配置文件的请求之前,加载网络接入设备的本地存储器中的默认配置文件;
处理模块,设置为:执行默认配置文件,建立网络接入设备与配置服务器的通信。
本发明实施例还提供了一种网络接入设备的配置装置,该装置设置于存储服务器上,如图8所示,为本发明实施例提供的另一种网络接入设备的配置装置的结构示意图。本实施例提供的装置可以包括:
第一接收模块71,设置为:接收网络接入设备发送的用于订阅配置文件的请求;
发布模块72,设置为:响应第一接收模块71接收的请求并向网络接入设备发布配置文件信息,其中,存储服务器配置在配置服务器中,配置文件信息用于网络接入设备更新其配置,配置文件信息中包括基础配置文件的信息和增量配置文件的信息,基础配置文件用于记录网络接入设备的通用配置信息,增量配置文件用于记录用户变更业务的配置信息。
可选地,本发明实施例提供的装置,还可以包括:
第二接收模块,设置为:在第一接收模块71接收用于订阅配置文件的请 求之前,接收配置服务器发送的配置指令记录;
生成模块,设置为:根据第二接收模块接收的配置指令记录生成配置文件,其中,配置文件信息为根据配置文件而生成的。
可选地,本发明实施例提供的装置,还可以包括:
第一更新模块,设置为:当接收到网管服务器发送的配置指令记录时,更新对应的配置文件的文件名中的更新时间信息,其中,更新时间信息用于表示配置文件有更新;
第二更新模块,设置为:当网络接入设备配置超时时,更新对应的配置文件的文件名中的在线时间信息,其中,在线时间信息用于表示在配置配置文件的过程中网络接入设备有不在线过程。
可选地,在本发明实施例中,请求中记录有网络接入设备的信息,其中,发布模块72包括:查找单元,设置为:查找与网络接入设备对应的配置文件;生成单元,设置为:生成包含配置文件的文件名和文件服务器信息的配置文件信息;发布单元,设置为:向网络接入设备发布配置文件信息。
在实际应用中,上述实施例和可选实施方式中的模块和单元可以通过软件或硬件来实现的,对于后者,可以通过以下方式实现,但不限于本文中描述的方式:上述模块可以位于同一处理器中;或者,上述模块可以以任意组合的形式分别位于不同的处理器中。
本发明实施例还提供了一种存储介质。可选地,在本发明实施例中,上述存储介质可以被设置为存储用于执行以下步骤的程序代码:
S1,在网络接入设备启动之后,网络接入设备向配置服务器发送用于订阅配置文件的请求;
S2,网络接入设备接收存储服务器响应该请求发布的配置文件信息,其中,所述存储服务器配置在配置服务器中,该配置文件信息中包括基础配置文件的信息和增量配置文件的信息,基础配置文件用于记录网络接入设备的通用配置信息,增量配置文件用于记录用户变更业务的配置信息;
S3,网络接入设备根据配置文件信息,更新网络接入设备的配置。
可选地,本发明实施例中的配置文件信息中还包括配置文件名和文件服 务器信息,存储介质还被设置为存储用于执行以下步骤的程序代码:
网络接入设备根据配置文件名检测网络接入设备的配置是否有更新;
网络接入设备在检测出配置有更新时,从文件服务器信息指示的文件服务器下载已更新的配置文件并更新网络接入设备的配置。
可选地,存储介质还被设置为存储用于执行以下步骤的程序代码:
若配置文件名与网络接入设备的本地存储器中配置文件的文件名一致时,网络接入设备检测出没有更新;
若配置文件名与网络接入设备的本地存储器中配置文件的文件名不一致时,网络接入设备检测出有更新。
可选地,存储介质还被设置为存储用于执行以下步骤的程序代码:
网络接入设备在配置文件名与本地存储器中配置文件的文件名中的更新时间信息不一致时,下载已更新的配置文件,并根据该已更新的配置文件更新配置,其中,该更新时间信息用于表示配置文件有更新;
网络接入设备在配置文件名与本地存储器中配置文件的文件名中的更新时间信息不一致时,下载已更新的配置文件,使用该已更新的配置文件覆盖本地存储器中的配置文件,并根据该已更新的配置文件更新配置,其中,更新时间信息用于表示配置文件已更新,在线时间信息用于表示在配置所述配置文件的过程中所述网络接入设备有不在线过程。
可选地,存储介质还被设置为存储用于执行以下步骤的程序代码:
网络接入设备周期性向配置服务器发送所述请求。
可选地,存储介质还被设置为存储用于执行以下步骤的程序代码:
网络接入设备周期性向存储服务器发送所述订阅配置文件的请求;或者,网络接入设备周期性查询文件服务器上的配置文件信息,其中,文件服务器的信息为网络接入设备在存储服务器第一次发布配置文件信息时获得;在查询到的配置文件信息和存储服务器上一次发布的配置文件信息不一致时,重新向配置服务器发送请求。
可选地,存储介质还被设置为存储用于执行以下步骤的程序代码:
在网络接入设备启动之后、且在该网络接入设备向配置服务器发送订阅配置文件的请求之前,执行以下步骤的程序代码:
网络接入设备加载网络接入设备的本地存储器中的默认配置文件;网络接入设备执行默认配置文件,建立该网络接入设备与配置服务器的通信。
在本发明实施例中,可选地,存储介质还被设置为存储用于执行以下步骤的程序代码:
S1,存储服务器接收网络接入设备发送的用于订阅配置文件的请求;
S2,存储服务器响应该请求并向网络接入设备发布配置文件信息,其中,存储服务器配置在配置服务器中,配置文件信息用于网络接入设备更新其配置,配置文件信息中包括基础配置文件的信息和增量配置文件的信息,基础配置文件用于记录所述网络接入设备的通用配置信息,增量配置文件用于记录用户变更业务的配置信息。
可选地,存储介质还被设置为存储用于执行以下步骤的程序代码:
存储服务器接收配置服务器发送的配置指令记录;存储服务器根据配置指令记录生成配置文件,其中,该配置文件信息为根据配置文件而生成的。
可选地,存储介质还被设置为存储用于执行以下步骤的程序代码:
当存储服务器接收到网管服务器下发的配置指令记录时,更新对应的配置文件的文件名中的更新时间信息,其中,更新时间信息用于表示所述配置文件有更新;
当网络接入设备配置超时时,更新对应的配置文件的文件名中的在线时间信息,其中,在线时间信息用于表示在配置所述配置文件的过程中网络接入设备有不在线过程。
可选地,请求中记录有所述网络接入设备的信息,存储介质还被设置为存储用于执行以下步骤的程序代码:
存储服务器响应请求并向网络接入设备发布配置文件信息可以包括:存储服务器查找与网络接入设备对应的配置文件;存储服务器生成包含配置文件的文件名和文件服务器信息的配置文件信息;存储服务器向网络接入设备 发布所述配置文件信息。
可选地,在本实施例中,上述存储介质可以包括但不限于:U盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、移动硬盘、磁碟或者光盘等各种可以存储程序代码的介质。
可选地,本实施例中的应用示例可以参考本发明上述实施例和可选实施方式中所描述的示例,在此不再赘述。
本领域普通技术人员可以理解上述实施例的全部或部分步骤可以使用计算机程序流程来实现,所述计算机程序可以存储于一计算机可读存储介质中,所述计算机程序在相应的硬件平台上(根据系统、设备、装置、器件等)执行,在执行时,包括方法实施例的步骤之一或其组合。
可选地,上述实施例的全部或部分步骤也可以使用集成电路来实现,这些步骤可以被分别制作成一个个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。
上述实施例中的装置/功能模块/功能模块可以采用通用的计算装置来实现,它们可以集中在单个的计算装置上,也可以分布在多个计算装置所组成的网络上。
上述实施例中的装置/功能模块/功能模块以软件功能模块的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。上述提到的计算机可读取存储介质可以是只读存储器,磁盘或光盘等。
工业实用性
本发明实施例通过在网络接入设备启动之后,向配置服务器订阅配置文件,配置服务器中的存储服务器发送配置文件的信息,从而网络接入设备根据该配置文件的信息更新配置;本发明实施例实现了及时更新离线配置。

Claims (10)

  1. 一种网络接入设备的配置方法,包括:
    在网络接入设备启动之后,所述网络接入设备向存储服务器发送用于订阅配置文件的请求;
    所述网络接入设备接收所述存储服务器响应所述请求发布的配置文件信息,其中,所述存储服务器配置在配置服务器中,所述配置文件信息中包括基础配置文件的信息和增量配置文件的信息,所述基础配置文件用于记录所述网络接入设备的通用配置信息,所述增量配置文件用于记录用户变更业务的配置信息;
    所述网络接入设备根据所述配置文件信息,更新所述网络接入设备的配置。
  2. 根据权利要求1所述的方法,其中,所述配置文件信息中还包括配置文件名和文件服务器信息,所述网络接入设备根据所述配置文件信息,更新所述网络接入设备的配置,包括:
    所述网络接入设备根据所述配置文件名检测所述网络接入设备的配置是否有更新;
    所述网络接入设备在检测出所述配置有更新时,从所述文件服务器信息指示的文件服务器下载已更新的配置文件并更新所述网络接入设备的配置。
  3. 根据权利要求2所述的方法,其中,所述网络接入设备根据所述配置文件名检测所述网络接入设备的配置是否有更新,包括:
    若所述配置文件名与所述网络接入设备的本地存储器中配置文件的文件名一致时,所述网络接入设备检测出没有更新;
    若所述配置文件名与所述网络接入设备的本地存储器中配置文件的文件名不一致时,所述网络接入设备检测出有更新。
  4. 根据权利要求2所述的方法,其中,所述网络接入设备从所述文件服务器信息指示的文件服务器下载已更新的配置文件并更新所述网络接入设备的配置,包括:
    所述网络接入设备在所述配置文件名与本地存储器中配置文件的文件名中的更新时间信息不一致时,下载所述已更新的配置文件,并根据所述已更新的配置文件更新配置,其中,所述更新时间信息用于表示所述配置文件已更新;或者,
    所述网络接入设备在所述配置文件名与本地存储器中配置文件的文件名中的更新时间信息不一致时,下载所述已更新的配置文件,使用所述已更新的配置文件覆盖所述本地存储器中的配置文件,并根据所述已更新的配置文件更新配置,其中,所述更新时间信息用于表示所述配置文件已更新。
  5. 根据权利要求1所述的方法,其中,所述网络接入设备向配置服务器发送用于订阅配置文件的请求,包括:
    所述网络接入设备周期性向所述配置服务器发送所述请求。
  6. 根据权利要求5所述的方法,其中,所述网络接入设备周期性向所述存储服务器发送所述请求,包括:
    所述网络接入设备周期性向所述存储服务器发送所述用于订阅配置文件的请求;或者,
    所述网络接入设备周期性查询文件服务器上的配置文件信息,其中,所述文件服务器的信息为所述网络接入设备在所述存储服务器第一次发布配置文件信息时获得;在查询到的配置文件信息和所述存储服务器上一次发布的配置文件信息不一致时,重新向所述存储服务器发送所述请求。
  7. 一种网络接入设备的配置方法,包括:
    存储服务器接收网络接入设备发送的用于订阅配置文件的请求;
    所述存储服务器响应所述请求并向所述网络接入设备发布配置文件信息,其中,所述存储服务器配置在配置服务器中,所述配置文件信息用于所述网络接入设备更新配置,所述配置文件信息中包括基础配置文件的信息和增量配置文件的信息,所述基础配置文件用于记录所述网络接入设备的通用配置信息,所述增量配置文件用于记录用户变更业务的配置信息。
  8. 根据权利要求7所述的方法,其中,所述存储服务器接收网络接入设备发送的用于订阅配置文件的请求之前,所述方法还包括:
    所述存储服务器接收配置服务器发送的配置指令记录;
    所述存储服务器根据所述配置指令记录生成配置文件,其中,所述配置文件信息为根据所述配置文件而生成的。
  9. 一种网络接入设备的配置装置,包括:
    发送模块,设置为:在网络接入设备启动之后,向配置服务器发送用于订阅配置文件的请求;
    接收模块,设置为:接收存储服务器响应所述发送模块发送的所述请求所发布的配置文件信息,其中,所述存储服务器内置在所述配置服务器中,所述配置文件信息中包括基础配置文件的信息和增量配置文件的信息,所述基础配置文件用于记录所述网络接入设备的通用配置信息,所述增量配置文件用于记录用户变更业务的配置信息;
    更新模块,设置为:根据所述接收模块接收的所述配置文件信息,更新所述网络接入设备的配置。
  10. 一种网络接入设备的配置装置,包括:
    第一接收模块,设置为:接收网络接入设备发送的用于订阅配置文件的请求;
    发布模块,设置为:响应所述第一接收模块接收的所述请求并向网络接入设备发布配置文件信息,其中,所述存储服务器配置在配置服务器中,所述配置文件信息用于所述网络接入设备更新配置,所述配置文件信息中包括基础配置文件的信息和增量配置文件的信息,所述基础配置文件用于记录所述网络接入设备的通用配置信息,所述增量配置文件用于记录用户变更业务的配置信息。
PCT/CN2017/072860 2016-06-06 2017-02-03 网络接入设备的配置方法及装置 WO2017211091A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610394997 2016-06-06
CN201610394997.2 2016-06-06

Publications (1)

Publication Number Publication Date
WO2017211091A1 true WO2017211091A1 (zh) 2017-12-14

Family

ID=60578350

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/072860 WO2017211091A1 (zh) 2016-06-06 2017-02-03 网络接入设备的配置方法及装置

Country Status (1)

Country Link
WO (1) WO2017211091A1 (zh)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111708582A (zh) * 2020-05-21 2020-09-25 北京百度网讯科技有限公司 上线配置方法、装置、电子设备
CN114268979A (zh) * 2021-11-23 2022-04-01 贵州电网有限责任公司 一种网管终端北向接口的安全通信方法

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060080399A1 (en) * 2004-10-08 2006-04-13 Agilent Technologies, Inc. Remote configuration management for data processing units
CN101272617A (zh) * 2008-05-05 2008-09-24 上海华为技术有限公司 接入设备参数的配置方法、装置及系统
CN101465758A (zh) * 2009-01-14 2009-06-24 华为技术有限公司 设备管理的方法、系统及网管服务器
CN101860545A (zh) * 2010-06-13 2010-10-13 中兴通讯股份有限公司 一种实现设备自动配置的系统及方法
CN102064966A (zh) * 2010-12-29 2011-05-18 北京世纪互联工程技术服务有限公司 一种配置方法、服务器、设备和系统
CN102217337A (zh) * 2011-05-13 2011-10-12 华为终端有限公司 非结构化补充业务服务内容的更新方法、装置及移动终端
CN102984716A (zh) * 2012-12-14 2013-03-20 大唐移动通信设备有限公司 Td-lte系统的enb配置文件制作方法

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060080399A1 (en) * 2004-10-08 2006-04-13 Agilent Technologies, Inc. Remote configuration management for data processing units
CN101272617A (zh) * 2008-05-05 2008-09-24 上海华为技术有限公司 接入设备参数的配置方法、装置及系统
CN101465758A (zh) * 2009-01-14 2009-06-24 华为技术有限公司 设备管理的方法、系统及网管服务器
CN101860545A (zh) * 2010-06-13 2010-10-13 中兴通讯股份有限公司 一种实现设备自动配置的系统及方法
CN102064966A (zh) * 2010-12-29 2011-05-18 北京世纪互联工程技术服务有限公司 一种配置方法、服务器、设备和系统
CN102217337A (zh) * 2011-05-13 2011-10-12 华为终端有限公司 非结构化补充业务服务内容的更新方法、装置及移动终端
CN102984716A (zh) * 2012-12-14 2013-03-20 大唐移动通信设备有限公司 Td-lte系统的enb配置文件制作方法

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111708582A (zh) * 2020-05-21 2020-09-25 北京百度网讯科技有限公司 上线配置方法、装置、电子设备
CN111708582B (zh) * 2020-05-21 2023-06-23 北京百度网讯科技有限公司 上线配置方法、装置、电子设备
CN114268979A (zh) * 2021-11-23 2022-04-01 贵州电网有限责任公司 一种网管终端北向接口的安全通信方法

Similar Documents

Publication Publication Date Title
US11080144B2 (en) System and method for managing blockchain nodes
US8554887B2 (en) System and method for efficient transfer of applications and data during device swap
EP1267518B1 (en) Multiple device management method and system
CN1882911B (zh) 网络中文件传输的方法
US8904003B2 (en) Method and system for delegated job control across a network
US20120233299A1 (en) Managing configurations of system management agents in a distributed environment
US7937716B2 (en) Managing collections of appliances
US20120198434A1 (en) Virtual bundling of remote device firmware upgrade
US20130227540A1 (en) Updating peripheral device firmware via a portable device
US20040260765A1 (en) System and method for distribution of software licenses in a networked computing environment
US20090063650A1 (en) Managing Collections of Appliances
CN103019757A (zh) 一种在多台客户端间同步软件的方法、装置及系统
KR101913346B1 (ko) 클라우드 환경에서의 클라우드 서버 관리 방법 및 장치
CN101360127A (zh) 文件更新方法及传输系统
US20120324436A1 (en) Method of updating versioned software using a shared cache
US9819545B2 (en) Telecommunications node configuration management
WO2017211091A1 (zh) 网络接入设备的配置方法及装置
US9871699B2 (en) Telecommunications node configuration management
US8422357B1 (en) System, method, and computer program product for updating an inventory of network devices based on an unscheduled event
EP4031990A1 (en) System and method for managing blockchain nodes
CN110650033B (zh) 分布式应用配置管理的方法和分布式计算系统
JP5873782B2 (ja) 端末管理装置、端末管理システム
CN108701035A (zh) 应用属性的管理
WO2019087786A1 (ja) 情報分散記憶システム、方法およびプログラム
TWI748653B (zh) 透過更新執行狀態判斷裝置運作狀況之系統及方法

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

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

Country of ref document: EP

Kind code of ref document: A1