CN115051918A - Network device control method, server, device and storage medium - Google Patents

Network device control method, server, device and storage medium Download PDF

Info

Publication number
CN115051918A
CN115051918A CN202110256989.2A CN202110256989A CN115051918A CN 115051918 A CN115051918 A CN 115051918A CN 202110256989 A CN202110256989 A CN 202110256989A CN 115051918 A CN115051918 A CN 115051918A
Authority
CN
China
Prior art keywords
command
network device
command word
network devices
network
Prior art date
Legal status (The legal status 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 status listed.)
Granted
Application number
CN202110256989.2A
Other languages
Chinese (zh)
Other versions
CN115051918B (en
Inventor
崔银晓
杨云杰
陈轩
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Datang Mobile Communications Equipment Co Ltd
Original Assignee
Datang Mobile Communications Equipment Co Ltd
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 Datang Mobile Communications Equipment Co Ltd filed Critical Datang Mobile Communications Equipment Co Ltd
Priority to CN202110256989.2A priority Critical patent/CN115051918B/en
Publication of CN115051918A publication Critical patent/CN115051918A/en
Application granted granted Critical
Publication of CN115051918B publication Critical patent/CN115051918B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • 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/08Configuration management of networks or network elements
    • H04L41/085Retrieval of network configuration; Tracking network configuration history
    • H04L41/0859Retrieval of network configuration; Tracking network configuration history by keeping history of different configuration generations or by rolling back to previous configuration versions

Abstract

The application discloses a control method, a server, a device and a storage medium of network equipment, and relates to the technical field of communication. The specific implementation scheme is as follows: the method comprises the steps that an operation command is sent to a plurality of network devices, and a command word list corresponding to the operation command is obtained; the plurality of first command words stored in the command word list have a one-to-one correspondence with the version numbers of the plurality of network devices, and then the corresponding network devices are controlled according to the command parameters corresponding to the first command words of the network devices. Therefore, by presetting the corresponding relation between different command words and the version numbers of the network devices, when the network devices of multiple versions are controlled, the network devices of the versions do not need to be configured respectively, and the compatibility of the network devices of the multiple versions is improved.

Description

Network device control method, server, device and storage medium
Technical Field
The present application relates to the field of communications technologies, and in particular, to a method, a server, an apparatus, and a storage medium for controlling a network device.
Background
In a communication Network, a SON (Self organizing Network) system is used as a part of an OMC (Operation maintenance Center) system to implement functions of Self-starting, Self-configuration, Self-optimization, Self-healing, and the like of Network devices. Besides the business logic in the processes of self-starting, self-configuration, self-optimization, self-healing and the like, the key operation of interaction with the network equipment is to realize the control of the network equipment by issuing commands to the network equipment.
When network devices of different versions are controlled, due to the difference of commands, parameters and objects, multi-version compatibility cannot be achieved, and when testing is performed, command word change, parameter change and the like are often faced, and each targeted modification is needed, and only the verification of a single-version network device is met, so that how to better test the multi-version network device becomes a problem to be solved urgently.
Disclosure of Invention
The application provides a control method, a server, a device and a storage medium of network equipment.
According to an aspect of the present application, there is provided a method for controlling a network device, including: transmitting an operation command to a plurality of network devices; acquiring a command word list corresponding to the operation command; the first command words stored in the command word list have a one-to-one correspondence relationship with the version numbers of the network devices; and controlling the corresponding network equipment according to the command parameters corresponding to the first command words of the network equipment.
Optionally, after the obtaining of the command word list corresponding to the operation command, the method further includes:
determining a plurality of command models corresponding to the plurality of network devices according to the identifiers of the plurality of network devices, wherein each naming model comprises a plurality of second command words supported by the corresponding network device and command parameters corresponding to each second command word;
determining a target command word matched with the first command word of the corresponding network device from a plurality of second command words supported by each network device;
and determining the command parameter corresponding to the target command word of each network device as a command parameter corresponding to the first command word of the corresponding network device.
Optionally, the determining, according to the identifiers of the multiple network devices, multiple command models corresponding to the multiple network devices includes:
acquiring the identifications of the plurality of network devices; the identifier of each network device comprises the type and the version number of the network device;
determining a plurality of command models respectively matching the version numbers of the plurality of network devices.
Optionally, the method further comprises:
determining that no target command word matching the first command word corresponding to the network device exists in a plurality of second command words supported by the network device;
and adding the first command word of the network equipment to a command model corresponding to the network equipment.
Optionally, after the adding the first command word of the network device to the command model corresponding to the network device, the method further includes:
and adding the command parameter corresponding to the first command word to the command model corresponding to the network equipment.
According to another aspect of the present application, there is provided a server, wherein the server includes a memory, a transceiver, a processor:
a memory for storing a computer program; a transceiver for transceiving data under control of the processor; a processor for reading the computer program in the memory and performing the following operations:
transmitting an operation command to a plurality of network devices; acquiring a command word list corresponding to the operation command; the first command words stored in the command word list have a one-to-one correspondence relationship with the version numbers of the network devices; and controlling the corresponding network equipment according to the command parameter corresponding to the first command word of each network equipment.
Optionally, after the obtaining of the command word list corresponding to the operation command, the method further includes:
determining a plurality of command models corresponding to the plurality of network devices according to the identifiers of the plurality of network devices, wherein each naming model comprises a plurality of second command words supported by the corresponding network device and command parameters corresponding to each second command word;
determining a target command word matched with the first command word of the corresponding network device from a plurality of second command words supported by each network device;
and determining the command parameter corresponding to the target command word of each network device as the command parameter corresponding to the first command word of the corresponding network device.
Optionally, the determining, according to the identifiers of the multiple network devices, multiple command models corresponding to the multiple network devices includes:
acquiring the identifications of the plurality of network devices; the identifier of each network device comprises the type and the version number of the network device;
determining a plurality of command models respectively matching the version numbers of the plurality of network devices.
Optionally, after the obtaining of the command word list corresponding to the operation command, the method further includes:
determining that a first command word corresponding to the version number of the network device does not exist in the command word list;
adding a first command word of the network device to the command word list.
Optionally, after the adding the first command word of the network device to the command word list, the method further includes:
monitoring that a command parameter corresponding to a second command word supported in a plurality of command models corresponding to the plurality of network devices has changed;
and adding the updated command parameters corresponding to the second command words into the command models corresponding to the corresponding network devices.
According to another aspect of the present application, there is provided a control apparatus of a network device, the apparatus including:
a transmission unit configured to transmit an operation command to a plurality of network devices;
an acquisition unit configured to acquire a command word list corresponding to the operation command; a plurality of first command words stored in the command word list have one-to-one correspondence with the version numbers of the plurality of network devices;
and the control unit is used for controlling the corresponding network equipment according to the command parameter corresponding to the first command word of each network equipment.
According to another aspect of the present application, there is provided a processor-readable storage medium storing a computer program for causing a processor to execute a control method of a network device.
The control method for the network equipment disclosed by the application has at least the following technical effects:
by presetting the corresponding relation between different command words and the version numbers of the network devices, when the network devices of multiple versions are controlled, the network devices of the versions do not need to be configured respectively, and the compatibility of the network devices of the multiple versions is improved.
It should be understood that the statements in this section do not necessarily identify key or critical features of the embodiments of the present application, nor do they limit the scope of the present application. Other features of the present application will become apparent from the following description.
Drawings
The drawings are included to provide a better understanding of the present solution and are not intended to limit the present application. Wherein:
FIG. 1 is a diagram illustrating an example of a conventional PCI self-optimization process according to an embodiment of the present application;
fig. 2 is a diagram illustrating an example of a conventional command issuing process for controlling a network device according to an embodiment of the present application;
fig. 3 is a schematic flowchart of a control method of a network device according to an embodiment of the present application;
fig. 4 is a schematic flowchart of another control method for a network device according to an embodiment of the present application;
fig. 5 is a schematic flowchart of a control method for a network device according to an embodiment of the present application;
fig. 6 is a schematic flowchart of a control method for a network device according to an embodiment of the present application;
fig. 7 is a schematic structural diagram of a server according to an embodiment of the present application;
fig. 8 is a schematic structural diagram of a control device of a network device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
That is, the term "and/or" in the embodiments of the present invention describes an association relationship of associated objects, and indicates that three relationships may exist, for example, a and/or B, and may indicate: a exists alone, A and B exist simultaneously, and B exists alone. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship.
In the related art, the SON includes PCI (Physical Cell ID), self-starting, self-healing, ANR (Automatic neighbor Relation optimization), and other modules, each of which needs to interact with a network device and issues a command, such as opening an algorithm switch in the PCI, configuring a PCI and a PCI list, resetting a Cell in self-healing, resetting a board, and the like.
The current implementation manner is mainly completed by setting an operation command and a parameter of a version of a specified NE (Network Equipment) in a service flow, and issuing the operation command and the parameter to the Network Equipment for operation implementation. Taking a self-optimization flow of the PCI as an example, fig. 1 shows a self-optimization command issuing process of the PCI, as shown in fig. 1, after the SON opens a PCI algorithm switch, the SON sends a command 1 to the network device, where the command 1 is a development command for modifying the PCI algorithm, and after receiving the command 1 sent by the SON, the network device opens the PCI algorithm according to the command 1; after collision confusion detection is carried out on the SON, a command 2 is sent to the network equipment, wherein the command 2 is used for modifying the PCI, and after the network equipment receives the command 2 which is sent by the SON and used for modifying the PCI, the PCI algorithm is modified; the SON sends a command 3 to the network equipment, wherein the command 3 is used for modifying the PCIList, and the network equipment modifies the PCIList after receiving the command 3 which is sent by the SON and used for modifying the PCIList.
It can be seen that, in the self-optimization process of the PCI, three commands are issued, and a flow of issuing each command is shown in fig. 2.
As can be seen from fig. 2, the current implementation scheme is to match according to the known versions of the network devices, that is, manually preset command words and command parameters corresponding to operations according to the version numbers of the given versions of the network devices, further obtain the command model of the network device according to the types and version numbers of the network devices, encapsulate the commands, the command parameters, the types and the version numbers of the network devices in the command model, and send the encapsulated objects to the command line for execution. However, when the device is used for network devices of different versions, due to differences of commands, parameters and objects, multi-version compatibility cannot be achieved, and command word changes, parameter changes and the like are frequently faced during testing, and targeted modification is required each time, so that only verification of network devices of a single version is satisfied.
In order to solve the above problems, the present application provides a method for controlling a network device, in which an operation command is sent to a plurality of network devices, and a command word list corresponding to the operation command is obtained; the plurality of first command words stored in the command word list have a one-to-one correspondence with the version numbers of the plurality of network devices, and then the corresponding network devices are controlled according to the command parameters corresponding to the first command words of the network devices. Therefore, by presetting the corresponding relation between different command words and the version numbers of the network devices, when the network devices of multiple versions are controlled, the network devices of the versions do not need to be configured respectively, and the compatibility of the network devices of the multiple versions is improved.
A control method, a server, an apparatus, and a storage medium of a network device of the present embodiment are described below with reference to the drawings.
It should be noted that the technical solution provided in the embodiment of the present application may be applicable to various systems, especially 5G systems. For example, the applicable System may be a Global System for Mobile communications (GSM) System, a Code Division Multiple Access (CDMA) System, a Wideband Code Division Multiple Access (WCDMA) General Packet Radio Service (General Packet Radio Service, GPRS) System, a Long Term Evolution (Long Term Evolution, LTE) System, a LTE Frequency Division Duplex (Frequency Division Duplex, FDD) System, a LTE Time Division Duplex (TDD) System, a Long Term Evolution (Long Term Evolution Access, LTE-a) System, a Universal Mobile Telecommunications System (UMTS), a Universal Mobile telecommunications Access (WiMAX) System, a New Radio network Access (NR 5, WiMAX) System, etc. These various systems include terminal devices and network devices. The System may further include a core network portion, such as an Evolved Packet System (EPS), a 5G System (5GS), and the like.
Fig. 3 is a flowchart illustrating a control method for a network device according to an embodiment of the present application.
As shown in fig. 3, the method for controlling a network device, applied to a server, may include the following steps:
step 101, an operation command is sent to a plurality of network devices.
The network device provided in the foregoing embodiment may be a base station, and the base station may include multiple cells that provide services for the terminal. A base station may also be called an access point, or may be a device in an access network that communicates over the air-interface, through one or more sectors, with wireless terminal devices, or by other names, depending on the particular application. The network device may be configured to exchange received air frames with Internet Protocol (IP) packets as a router between the wireless terminal device and the rest of the access network, which may include an Internet Protocol (IP) communication network. The network device may also coordinate attribute management for the air interface. For example, the network device according to the embodiment of the present application may be a Base Transceiver Station (BTS) in a Global System for Mobile communications (GSM) or a Code Division Multiple Access (CDMA), may be a network device (NodeB) in a Wideband Code Division Multiple Access (WCDMA), may be an evolved Node B (eNB or e-NodeB) in a Long Term Evolution (LTE) System, may be a 5G Base Station (gbb) in a 5G network architecture (next evolution System), may be a Home evolved Node B (HeNB), a relay Node (relay Node), a Home Base Station (femto), a pico Base Station (pico Base Station), and the like, which are not limited in the embodiments of the present application. In some network architectures, network devices may include Centralized Unit (CU) nodes and Distributed Unit (DU) nodes, which may also be geographically separated.
The operation command is a command for controlling the network device. For example, the operation commands are used to control the switching on, switching off, configuration, etc. of the network device.
It should be noted that, in the present application, the operation command for controlling the network device is not limited, and any operation command capable of controlling the network device may be applied to the solution of the present application.
In an embodiment of the present application, when the server controls the plurality of network devices, the server may send an operation command to the plurality of network devices.
The plurality of network devices may be network devices with different version numbers, or any number of network devices of the plurality of network devices may have the same version number.
For example, the server sends an operation command to 5 network devices with completely different version numbers.
Also for example, the server sends an operation command to 5 network devices, where 2 network devices have the same version number and the other 3 network devices have different version numbers.
102, acquiring a command word list corresponding to an operation command; the first command words stored in the command word list have a one-to-one correspondence relationship with the version numbers of the network devices.
In an embodiment of the present application, when the server sends an operation command to multiple network devices, a command word list corresponding to the operation command may be obtained, so as to determine, according to a correspondence between multiple first command words stored in the command word list and version numbers of the multiple network devices, a first command word corresponding to the version number of each network device.
It can be understood that a command word list corresponding to different operation commands is stored in advance in the server, where the command word list stores first command words corresponding to the operation commands in network devices with different version numbers.
For example, assuming that an operation command is used to control network device a, network device B, and network device C with 3 different version numbers to turn on, a first command word open1 corresponding to network device a, a first command word open2 corresponding to network device B, and a first command word open3 corresponding to network device C may be stored in a command word list corresponding to the operation command.
For example, assuming that an operation command is used to control the shutdown of network device a, network device B, and network device C with 3 different version numbers, the command word list corresponding to the operation command may store the first command word close1 corresponding to network device a, the first command word close2 corresponding to network device B, and the first command word close3 corresponding to network device C.
In an embodiment of the application, when a newly added network device establishes a connection relationship with a server and the server sends an operation command to the newly added network device for control, a first command word corresponding to the version number of the newly added network device does not exist in a command word list corresponding to the operation command, in this case, the command word list may be updated to add the first command word corresponding to the version number of the newly added network device in the command word list. Therefore, when the server operates the newly added network equipment again, the corresponding command word can be determined only by inquiring the command word list without setting again, and the maintenance cost of the network equipment is reduced.
And 103, controlling the corresponding network equipment according to the command parameters corresponding to the first command words of the network equipment.
In the embodiment of the present application, after determining the first command word for controlling each network device according to the command word list corresponding to the operation command, the corresponding network device may be controlled according to the command parameter corresponding to the first command word of each network device.
In an embodiment of the present application, all the command words supported by the network device with each version number and the command parameters corresponding to each command word may be stored in the server in advance. After determining the first command word for controlling each network device, the command parameter corresponding to the first command word of each network device may be determined according to all the command words supported by each network device and the command parameters corresponding to each command word.
According to the control method of the network equipment, the operation command is sent to the plurality of network equipment, and the command word list corresponding to the operation command is obtained; the plurality of first command words stored in the command word list have a one-to-one correspondence with the version numbers of the plurality of network devices, and then the corresponding network devices are controlled according to the command parameters corresponding to the first command words of the network devices. Therefore, by presetting the corresponding relation between different command words and the version numbers of the network devices, when the network devices of multiple versions are controlled, the network devices of the versions do not need to be configured respectively, and the compatibility of the network devices of the multiple versions is improved.
To determine command parameters corresponding to the first command word of each network device, fig. 4 is a flowchart illustrating another control method for a network device according to an embodiment of the present application.
As shown in fig. 4, the method for controlling a network device is applied to a server, and may further include:
step 201, an operation command is sent to a plurality of network devices.
Step 202, acquiring a command word list corresponding to the operation command; the first command words stored in the command word list have a one-to-one correspondence with version numbers of the network devices.
In the embodiment of the present application, the implementation processes of step 201 and step 202 may refer to the implementation processes of step 101 and step 102 in the foregoing embodiment, and are not described herein again.
Step 203, determining a plurality of command models corresponding to the plurality of network devices according to the identifiers of the plurality of network devices.
It can be understood that, the server may store a command model corresponding to each network device in advance, where each naming model includes a plurality of second command words supported by the corresponding network device and command parameters corresponding to each second command word. There is a one-to-one correspondence between the command model of each network device and the version number of the corresponding network device.
For convenience of distinction, in the present application, a command word stored in the command word list is named as a first command word, a command word stored in a command model corresponding to each network device is named as a second command word, and other naming manners may also be used, which is not limited herein.
In an embodiment of the present application, when the server sends the operation command to the plurality of network devices, the identifiers of the plurality of network devices may be acquired. The identifier of each network device includes the type and version number of the network device. Furthermore, the server may query the command models, in which the command models of the network devices are stored in advance, according to the version numbers of the network devices to determine a plurality of command models respectively matching the version numbers of the network devices.
Step 204, determining a target command word matched with the first command word of the corresponding network device from a plurality of second command words supported by each network device.
The target command word refers to a command word corresponding to the first command word of the corresponding network device in the command model of each network device.
In an embodiment of the present application, after determining the command model corresponding to each network device, a target command word matching the first command word of the corresponding network device may be determined according to all the second command words supported by the corresponding network device and stored in the command model.
For example, assuming that the first command word of network device a in the command word list is open1, and the corresponding second command word in the command model of network device a that is turned on is open.a, the second command word open.a may be determined as the target command word that matches the first command word open 1.
Step 205, determining the command parameter corresponding to the target command word of each network device as the command parameter corresponding to the first command word of the corresponding network device.
In an embodiment of the present application, the command model corresponding to each network device stores all the second command words and command parameters corresponding to the second command words supported by the corresponding network device in advance, and therefore, after determining the target command word matched with the first command word of the corresponding network device from the second command words of the command model of each network device, the command parameter corresponding to the second command word of each network device may be determined as the command parameter corresponding to the first command word of the corresponding network device.
Continuing with the example in step 205, upon determining that the second command word open.a is a target command word that matches the first command word open1, the command arguments stored in the naming model of network device a that correspond to the second command word open.a may be determined to be the command arguments that correspond to the first command word open 1.
And step 206, controlling the corresponding network equipment according to the command parameters corresponding to the first command words of the network equipment.
In the embodiment of the present application, the implementation process of step 206 may refer to the implementation processes of step 101 and step 103 in the foregoing embodiment, and details are not described here.
According to the method for controlling the network device, after the plurality of command models corresponding to the plurality of network devices are determined according to the identifiers of the plurality of network devices, the target command word matched with the first command word of the corresponding network device is determined from the plurality of second command words supported by the corresponding network device and stored in the command models of the network devices, and the command parameter corresponding to the target command word of each network device is determined as the command parameter corresponding to the first command word of the corresponding network device, so that the corresponding network device is controlled. Therefore, the command parameters corresponding to the first command words of the corresponding network equipment are determined in the command model of each network equipment, so that the setting of the network equipment with different versions is avoided, the command compatibility of the network equipment with different versions is realized, and the efficiency of the server in controlling the network equipment is improved.
In an embodiment of the present application, when an operation command is sent to a network device after a server is newly matched to the network device, a first command word corresponding to the version number of the newly matched network device may not be present in a command word list corresponding to the operation command. Referring to fig. 5 for details, fig. 5 is a schematic flowchart of a control method of a network device according to another embodiment of the present disclosure.
As shown in fig. 5, the method for controlling a network device, applied to a server, may include the following steps:
step 301, an operation command is sent to a plurality of network devices.
Step 302, a command word list corresponding to the operation command is obtained.
It should be explained that, when the server is newly matched to the network device, that is, an operation command is sent to the network device, at this time, the first command word corresponding to the version number of the newly matched network device does not exist in the command word list corresponding to the operation command.
Step 303, determining that the first command word corresponding to the version number of the network device does not exist in the command word list.
In the embodiment of the application, after the command word list corresponding to the operation command is acquired, the command word list is polled, and it is determined that the first command word corresponding to the version number of the network device does not exist in the command word list.
Step 304, add the first command word of the network device to the command word list.
As a possible implementation, the server may add the first command word and the corresponding version number of the network device to the command word list, while keeping the plurality of command words and the version numbers of the plurality of network devices, which are already stored in the command word list, unchanged.
For example, assume that the command word list stores three first command words, open1, open2, and open3, for controlling the turning on of network device a, network device B, and network device C of different version numbers. At this time, the first command word open4 corresponding to the network device D may be added to the command word list.
As another possible implementation manner, when the server adds the first command word and the corresponding version number of the network device to the command word list, the server updates the first command word corresponding to the version numbers of the plurality of network devices already stored in the command word list.
For example, assume that the command word list stores three first command words, open1, open2, and open3, for controlling the turning on of network device a, network device B, and network device C of different version numbers. At this time, when the first command word corresponding to the network device D is added to the command word list, the three first command words stored in the command word list may be updated, and the updated command word list stores the first command word open1 corresponding to the network device D, the first command word open2 corresponding to the network device a, the first command word open3 corresponding to the network device B, and the first command word open4 corresponding to the network device C.
And 305, controlling the corresponding network equipment according to the command parameter corresponding to the first command word of each network equipment.
In the embodiment of the present application, the implementation process of step 305 may refer to the implementation process of step 103, which is not described herein again.
According to the control method of the network equipment, when the server determines that the first command word of the network equipment does not exist in the command word list corresponding to the operation command, the first command word of the network equipment is added to the command word list, and therefore the purpose of dynamically maintaining the command word list corresponding to the operation command when the server is matched with the network equipment with a new version number is achieved.
In an embodiment of the present application, after the server is matched to the network device with the new version number, the command parameters corresponding to the multiple command words supported in the command model corresponding to the network device may be changed, and the updated command parameters corresponding to the second command word may be added to the command model corresponding to the network device, thereby implementing dynamic maintenance of the command word parameters. Referring to fig. 6 for details, fig. 6 is a schematic flowchart of a control method for a network device according to another embodiment of the present disclosure.
As shown in fig. 6, the method for controlling a network device, applied to a server, may include the following steps:
step 401, it is monitored that there is a change in command parameters corresponding to second command words supported in multiple command models corresponding to multiple network devices.
Step 402, adding the updated command parameter corresponding to the second command word to the command model corresponding to the corresponding network device.
In the embodiment of the application, when the server monitors that the command parameter corresponding to the second command word supported in the multiple command models corresponding to the multiple network devices is changed, the server may add the updated command parameter corresponding to the second command word to the command model corresponding to the network device.
For example, assuming that a command parameter corresponding to a second command word for controlling the network device a to close in a command word model corresponding to the network device a is changed, the updated command parameter may be added to the command model of the network device a.
It should be explained that the command parameters corresponding to the second command word may have the situations of newly adding the command parameters, changing the command parameters, deleting the command parameters, and the like, which is not limited in this application.
Therefore, when the command parameter corresponding to the second command word is changed, the updated command parameter corresponding to the second command word is added to the command model corresponding to the network device, dynamic maintenance of the command parameter corresponding to the second command word supported by each network device is realized, and maintenance cost is reduced.
In order to implement the above embodiments, the present application proposes a server.
Fig. 7 is a schematic structural diagram of a server according to an embodiment of the present application.
As shown in fig. 7, the server 700 may include a memory 710, a transceiver 720, a processor 730:
a memory 710 for storing a computer program; a transceiver 720 for transceiving data under the control of the processor 730; a processor 730 for reading the computer program in the memory 710 and performing the following operations:
transmitting an operation command to a plurality of network devices; acquiring a command word list corresponding to the operation command; the first command words stored in the command word list have a one-to-one correspondence relationship with the version numbers of the network devices; and controlling the corresponding network equipment according to the command parameters corresponding to the first command words of the network equipment.
Wherein in fig. 7, the bus architecture may include any number of interconnected buses and bridges, with one or more processors, represented by processor 730, and various circuits of memory, represented by memory 710, being linked together. The bus architecture may also link together various other circuits such as peripherals, voltage regulators, power management circuits, and the like, which are well known in the art, and therefore, will not be described any further herein. The bus interface provides an interface. The transceiver 720 may be a number of elements including a transmitter and a receiver that provide a means for communicating with various other apparatus over a transmission medium including wireless channels, wired channels, fiber optic cables, and the like. The processor 730 is responsible for managing the bus architecture and general processing, and the memory 710 may store data used by the processor 730 in performing operations.
The processor 730 may be a Central Processing Unit (CPU), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA), or a Complex Programmable Logic Device (CPLD), and may also have a multi-core architecture.
As a possible implementation manner, after acquiring the command word list corresponding to the operation command, the method further includes: determining a plurality of command models corresponding to a plurality of network devices according to the identifiers of the plurality of network devices, wherein each naming model comprises a plurality of second command words supported by the corresponding network device and command parameters corresponding to the second command words; determining a target command word matched with the first command word of the corresponding network device from a plurality of second command words supported by each network device; and determining the command parameter corresponding to the target command word of each network device as the command parameter corresponding to the first command word of the corresponding network device.
As another possible implementation manner, determining, according to the identifiers of the plurality of network devices, a plurality of command models corresponding to the plurality of network devices includes: acquiring identifiers of a plurality of network devices; the identification of each network device comprises the type and the version number of the network device; a plurality of command models respectively matching version numbers of the plurality of network devices are determined.
As another possible implementation manner, after acquiring the command word list corresponding to the operation command, the method further includes: determining that a first command word corresponding to the version number of the network equipment does not exist in the command word list; the first command word of the network device is added to the list of command words.
As another possible implementation manner, after adding the first command word of the network device to the command word list, the method further includes: monitoring that a command parameter corresponding to a second command word supported in a plurality of command models corresponding to a plurality of network devices has a change; and adding the updated command parameters corresponding to the second command words into the command model of the corresponding network equipment.
It should be noted that, the server provided in the embodiment of the present application can implement all the method steps implemented by the method embodiments in fig. 3 to fig. 6, and can achieve the same technical effect, and details of the same parts and beneficial effects as those of the method embodiments in this embodiment are not described herein again.
In order to implement the above embodiments, the present application provides a control apparatus for a network device.
Fig. 8 is a schematic structural diagram of a control device of a network device according to an embodiment of the present application.
As shown in fig. 8, the control device 800 of the network device may include: a transmitting unit 810, an acquiring unit 820, and a control unit 830.
The sending unit 810 is configured to send an operation command to a plurality of network devices.
An obtaining unit 820 configured to obtain a command word list corresponding to the operation command; the first command words stored in the command word list have a one-to-one correspondence relationship with the version numbers of the network devices.
The control unit 830 is configured to control the corresponding network device according to the command parameter corresponding to the first command word of each network device.
In a possible implementation manner, the control apparatus 800 of the network device may further include:
the first determining unit is configured to determine, according to the identifiers of the multiple network devices, multiple command models corresponding to the multiple network devices, where each naming model includes multiple second command words supported by the corresponding network device and a command parameter corresponding to each second command word.
And the second determining unit is used for determining a target command word matched with the first command word of the corresponding network device from a plurality of second command words supported by each network device.
And the third determining unit is used for determining the command parameter corresponding to the target command word of each network device as the command parameter corresponding to the first command word of the corresponding network device.
In another possible implementation manner, the first determining unit may be further configured to:
acquiring identifiers of a plurality of network devices; the identifier of each network device comprises the type and the version number of the network device; a plurality of command models respectively matching version numbers of the plurality of network devices are determined.
In another possible implementation manner, the control apparatus 800 of the network device may further include:
and the fourth determining unit is used for determining that the first command word corresponding to the version number of the network equipment does not exist in the command word list.
And the first adding unit is used for adding the first command word of the network equipment into the command word list.
In another possible implementation manner, the control apparatus 800 of the network device may further include:
the monitoring unit is used for monitoring that the command parameters corresponding to the second command words supported in the command models corresponding to the network devices are changed.
And the second adding unit is used for adding the command parameter corresponding to the updated second command word into the command model of the corresponding network device.
It should be noted that, the control apparatus of the network device provided in the embodiment of the present application can implement all the method steps implemented by the method embodiments in fig. 3 to fig. 6, and can achieve the same technical effect, and details of the same parts and beneficial effects as those of the method embodiments in this embodiment are not repeated herein.
It should be noted that, in the embodiment of the present application, the division of the unit is schematic, and is only one logic function division, and when the actual implementation is realized, another division manner may be provided. In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit may be implemented in the form of hardware, or may also be implemented in the form of a software functional unit.
The integrated unit, if implemented as a software functional unit and sold or used as a stand-alone product, may be stored in a processor readable storage medium. Based on such understanding, the technical solution of the present application may be substantially implemented or contributed by the prior art, or all or part of the technical solution may be embodied in a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, a network device, or the like) or a processor (processor) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
In order to implement the foregoing embodiments, the present application also proposes a processor-readable storage medium.
The processor-readable storage medium stores a computer program, which is used to enable the processor to execute the control method of the network device according to the embodiments of fig. 3 to 6.
The processor-readable storage medium may be any available medium or data storage device that can be accessed by a processor, including but not limited to magnetic memory (e.g., floppy disks, hard disks, magnetic tape, magneto-optical disks (MOs), etc.), optical memory (e.g., CDs, DVDs, BDs, HVDs, etc.), and semiconductor memory (e.g., ROMs, EPROMs, EEPROMs, non-volatile memory (NAND FLASH), Solid State Disks (SSDs)), among others.
In order to implement the above embodiments, the present application also provides a computer program product.
Wherein the computer program product comprises a computer program which, when being executed by a processor, implements the method for controlling a network device according to the embodiments of fig. 3 to 6.
The processor-readable storage medium may be any available medium or data storage device that can be accessed by a processor, including but not limited to magnetic memory (e.g., floppy disks, hard disks, magnetic tape, magneto-optical disks (MOs), etc.), optical memory (e.g., CDs, DVDs, BDs, HVDs, etc.), and semiconductor memory (e.g., ROMs, EPROMs, EEPROMs, non-volatile memory (NAND FLASH), Solid State Disks (SSDs)), among others.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer-executable instructions. These computer-executable instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These processor-executable instructions may also be stored in a processor-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the processor-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These processor-executable instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present application without departing from the spirit and scope of the application. Thus, if such modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is intended to include such modifications and variations as well.

Claims (12)

1. A method for controlling a network device, the method comprising:
transmitting an operation command to a plurality of network devices;
acquiring a command word list corresponding to the operation command; a plurality of first command words stored in the command word list have one-to-one correspondence with the version numbers of the plurality of network devices;
and controlling the corresponding network equipment according to the command parameter corresponding to the first command word of each network equipment.
2. The method according to claim 1, wherein after obtaining the command word list corresponding to the operation command, further comprising:
determining a plurality of command models corresponding to the plurality of network devices according to the identifiers of the plurality of network devices, wherein each naming model comprises a plurality of second command words supported by the corresponding network device and command parameters corresponding to each second command word;
determining a target command word matched with the first command word of the corresponding network device from a plurality of second command words supported by each network device;
and determining the command parameter corresponding to the target command word of each network device as the command parameter corresponding to the first command word of the corresponding network device.
3. The method of claim 2, wherein determining a plurality of command models corresponding to the plurality of network devices according to the identities of the plurality of network devices comprises:
acquiring the identifications of the plurality of network devices; the identifier of each network device comprises the type and the version number of the network device;
determining a plurality of command models respectively matching the version numbers of the plurality of network devices.
4. The method according to claim 2, wherein after obtaining the command word list corresponding to the operation command, further comprising:
determining that a first command word corresponding to the version number of the network device does not exist in the command word list;
adding a first command word of the network device to the command word list.
5. The method of claim 4, wherein after adding the first command word of the network device to the command word list, further comprising:
monitoring that a command parameter corresponding to a second command word supported in a plurality of command models corresponding to the plurality of network devices has changed;
and adding the updated command parameters corresponding to the second command words into the command models of the corresponding network devices.
6. A server, comprising a memory, a transceiver, a processor:
a memory for storing a computer program; a transceiver for transceiving data under the control of the processor; a processor for reading the computer program in the memory and performing the following operations:
transmitting an operation command to a plurality of network devices;
acquiring a command word list corresponding to the operation command; a plurality of first command words stored in the command word list have one-to-one correspondence with the version numbers of the plurality of network devices;
and controlling the corresponding network equipment according to the command parameters corresponding to the first command words of the network equipment.
7. The server according to claim 6, wherein after obtaining the command word list corresponding to the operation command, the method further comprises:
determining a plurality of command models corresponding to the plurality of network devices according to the identifiers of the plurality of network devices, wherein each naming model comprises a plurality of second command words supported by the corresponding network device and command parameters corresponding to each second command word;
determining a target command word matched with the first command word of the corresponding network device from a plurality of second command words supported by each network device;
and determining the command parameter corresponding to the target command word of each network device as the command parameter corresponding to the first command word of the corresponding network device.
8. The server according to claim 7, wherein the determining a plurality of command models corresponding to the plurality of network devices according to the identities of the plurality of network devices comprises:
acquiring the identifications of the plurality of network devices; the identifier of each network device comprises the type and the version number of the network device;
determining a plurality of command models respectively matching the version numbers of the plurality of network devices.
9. The server according to claim 7, wherein after obtaining the command word list corresponding to the operation command, the method further comprises:
determining that a first command word corresponding to the version number of the network device does not exist in the command word list;
adding a first command word of the network device to the command word list.
10. The server according to claim 9, wherein after the adding the first command word of the network device to the command word list, further comprising:
monitoring that a command parameter corresponding to a second command word supported in a plurality of command models corresponding to the plurality of network devices has a change;
and adding the updated command parameters corresponding to the second command words into the command models of the corresponding network devices.
11. An apparatus for controlling a network device, the apparatus comprising:
a transmission unit configured to transmit an operation command to a plurality of network devices;
an acquisition unit configured to acquire a command word list corresponding to the operation command; the first command words stored in the command word list have a one-to-one correspondence relationship with the version numbers of the network devices;
and the control unit is used for controlling the corresponding network equipment according to the command parameter corresponding to the first command word of each network equipment.
12. A processor-readable storage medium, characterized in that the processor-readable storage medium stores a computer program for causing a processor to perform the method of any one of claims 1 to 5.
CN202110256989.2A 2021-03-09 2021-03-09 Control method, server, device and storage medium of network equipment Active CN115051918B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110256989.2A CN115051918B (en) 2021-03-09 2021-03-09 Control method, server, device and storage medium of network equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110256989.2A CN115051918B (en) 2021-03-09 2021-03-09 Control method, server, device and storage medium of network equipment

Publications (2)

Publication Number Publication Date
CN115051918A true CN115051918A (en) 2022-09-13
CN115051918B CN115051918B (en) 2024-03-12

Family

ID=83156294

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110256989.2A Active CN115051918B (en) 2021-03-09 2021-03-09 Control method, server, device and storage medium of network equipment

Country Status (1)

Country Link
CN (1) CN115051918B (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101582794A (en) * 2009-06-26 2009-11-18 西安电子科技大学 System and method for unified configuration of network equipment
CN103680498A (en) * 2012-09-26 2014-03-26 华为技术有限公司 Speech recognition method and speech recognition equipment
US20150127792A1 (en) * 2012-07-20 2015-05-07 Abb Technology Ag Configuration management device, configuration interface device and method for vendor-independent network device configuration
CN106301916A (en) * 2016-08-16 2017-01-04 北京北信源软件股份有限公司 A kind of multiple network equipment unifies collocation method
CN107911249A (en) * 2017-11-28 2018-04-13 新华三技术有限公司 Order line sending method, device and the equipment of a kind of network equipment
CN108933691A (en) * 2017-05-26 2018-12-04 华为技术有限公司 A kind of method and calculating equipment of acquisition network equipment standard configuration template
CN109426559A (en) * 2017-08-21 2019-03-05 北京国双科技有限公司 Order delivery method and device, storage medium, processor
CN110661670A (en) * 2019-10-21 2020-01-07 中国民航信息网络股份有限公司 Network equipment configuration management method and device
CN111526048A (en) * 2020-04-16 2020-08-11 深圳市风云实业有限公司 Unified management language adaptation method for multi-model switch
CN111711532A (en) * 2020-04-30 2020-09-25 国家计算机网络与信息安全管理中心 Unified management method for heterogeneous network equipment

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101582794A (en) * 2009-06-26 2009-11-18 西安电子科技大学 System and method for unified configuration of network equipment
US20150127792A1 (en) * 2012-07-20 2015-05-07 Abb Technology Ag Configuration management device, configuration interface device and method for vendor-independent network device configuration
CN103680498A (en) * 2012-09-26 2014-03-26 华为技术有限公司 Speech recognition method and speech recognition equipment
CN106301916A (en) * 2016-08-16 2017-01-04 北京北信源软件股份有限公司 A kind of multiple network equipment unifies collocation method
CN108933691A (en) * 2017-05-26 2018-12-04 华为技术有限公司 A kind of method and calculating equipment of acquisition network equipment standard configuration template
CN109426559A (en) * 2017-08-21 2019-03-05 北京国双科技有限公司 Order delivery method and device, storage medium, processor
CN107911249A (en) * 2017-11-28 2018-04-13 新华三技术有限公司 Order line sending method, device and the equipment of a kind of network equipment
CN110661670A (en) * 2019-10-21 2020-01-07 中国民航信息网络股份有限公司 Network equipment configuration management method and device
CN111526048A (en) * 2020-04-16 2020-08-11 深圳市风云实业有限公司 Unified management language adaptation method for multi-model switch
CN111711532A (en) * 2020-04-30 2020-09-25 国家计算机网络与信息安全管理中心 Unified management method for heterogeneous network equipment

Also Published As

Publication number Publication date
CN115051918B (en) 2024-03-12

Similar Documents

Publication Publication Date Title
CN109906628B (en) Automatic configuration method, device and base station
US20200099578A1 (en) Network device upgrade
CN113329515A (en) Method and device for determining remote unit to which user equipment belongs and storage medium
CN114071612A (en) Method, device and storage medium for updating master cell of secondary cell group
EP2467974B1 (en) Data completion for managed objects
CN114080016B (en) Method and device for synchronizing context information of user equipment and network equipment
US20230403223A1 (en) Data analysis apparatus management and control method and communication apparatus
US10313897B2 (en) Methods and apparatus to prevent potential conflicts among instances of SON functions
CN115051918B (en) Control method, server, device and storage medium of network equipment
US10412601B2 (en) Coordination in self-organizing networks
CN114945002B (en) AMF selection method, device, network equipment and storage medium
CN114765577B (en) Indication method, determination method, device, equipment and storage medium of measurement configuration
CN114071602B (en) Node switching configuration method and device
CN114143839B (en) Processing method, network equipment, device and storage medium for NG link chain breaking
US20210235324A1 (en) Link reconfiguration processing method and related products
CN114765507A (en) Positioning pilot frequency configuration method, device, terminal equipment, access network equipment and storage medium
CN114938496B (en) Information processing method and device and processor readable storage medium
CN110636527B (en) Method and system for realizing centralized SON
EP3187000B1 (en) Method and system for son coordination depending on son function priority
CN114844862B (en) Resource processing method and device and communication equipment
WO2024016970A1 (en) L1/l2 mobility configuration information processing method and apparatus, and storage medium
CN114079920B (en) Access network security processing method, device, apparatus and storage medium
CN113660734B (en) Connection method and device of network equipment, network equipment and medium
CN115701036A (en) Gateway Vlan acquisition method, device, base station and storage medium
CN116939637A (en) Network slice configuration method, device and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant