Network element instruction issuing method, device, system, apparatus and medium
By pre-setting a network element connection pool and a command rule base, the appropriate network element connection is identified and selected for command issuance, which solves the problem of incompatibility between common commands and environment-dependent commands, realizes the sharing of network element connections, saves network resources and reduces manual maintenance.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- CHINA TELECOM CORP LTD TECHNOLOGY INNOVATION CENTER
- Filing Date
- 2023-07-27
- Publication Date
- 2026-07-31
AI Technical Summary
Because the common commands and environment-dependent commands are incompatible, a large number of network element connections are frequently established, resulting in low command issuance efficiency, wasted network resources, and high costs due to the need for manual identification and communication when adding new environment-dependent commands.
By pre-setting a network element connection pool and command rule base, the system identifies command types and selects appropriate network element connections to issue commands, automatically updating the command rule base to adapt to environment-dependent commands and reducing frequent connection establishment.
It enables the sharing of network element connections, saves network resources, improves command issuance efficiency, and reduces manual maintenance and manufacturer communication costs.
Smart Images

Figure CN116828028B_ABST
Abstract
Description
Technical Field
[0001] This disclosure relates to the field of communication technology, and in particular to a method, apparatus, system, device and medium for issuing network element instructions. Background Technology
[0002] In the daily high-volume instruction call scenarios of 5GC services, some environment-dependent instructions have special dependencies on the execution environment. However, the usual practice is to create new connections for instruction delivery because the instructions are incompatible with these environment-dependent instructions. As a result, the incompatibility between the usual instructions and the environment-dependent instructions leads to the frequent establishment of a large number of network element connections, resulting in low instruction delivery efficiency and wasted network resources.
[0003] It should be noted that the information disclosed in the background section above is only used to enhance the understanding of the background of this disclosure, and therefore may include information that does not constitute prior art known to those skilled in the art. Summary of the Invention
[0004] This disclosure provides a method, apparatus, system, device, and medium for issuing network element commands, which at least to some extent overcomes the problems of frequent establishment of numerous network element connections, low command issuance efficiency, and waste of network resources caused by the incompatibility between general commands and environment-dependent commands in related technologies.
[0005] Other features and advantages of this disclosure will become apparent from the following detailed description, or may be learned in part from practice of this disclosure.
[0006] According to one aspect of this disclosure, a method for issuing network element commands is provided, including:
[0007] Get the queue of instructions to be sent;
[0008] Identify the instruction type of each instruction to be sent in the instruction queue;
[0009] For commands to be sent that are of the type of general commands, obtain general network element connections from the preset network element connection pool and then issue the commands.
[0010] For commands to be sent that are environment-dependent commands, a network element connection with a pre-configured execution environment is obtained from the preset network element connection pool, and the command is sent.
[0011] In one embodiment of this disclosure, the method further includes:
[0012] Receive the result of the instruction execution;
[0013] Assemble the results of the instruction execution and return the order.
[0014] In one embodiment of this disclosure, identifying the instruction type of each instruction to be sent in the instruction queue includes:
[0015] Using the instruction rules in the preset instruction rule library, the instruction type of each instruction to be sent in the instruction queue is identified.
[0016] In one embodiment of this disclosure, for a command to be sent that is a normal command, after obtaining a normal network element connection from a preset network element connection pool and issuing the command, the method further includes:
[0017] If the execution of the instruction results in an error indicating that a special environment is required, the instruction rule base will be updated. Updating the instruction rule base includes modifying the instruction rule corresponding to the instruction so that the instruction type corresponding to the instruction is an environment-dependent instruction.
[0018] After updating the instruction rule base, the instruction type is re-identified, and for instructions to be sent that are environment-dependent instructions, a network element connection with a preset execution environment is obtained from the preset network element connection pool, and the instruction is issued.
[0019] In one embodiment of this disclosure, obtaining a queue of instructions to be sent includes:
[0020] In response to a business request, retrieve multiple instructions to be sent;
[0021] The multiple instructions to be sent are sorted according to the instruction logic to obtain the instruction queue.
[0022] According to another aspect of this disclosure, a network element command issuing device is provided, comprising:
[0023] The instruction acquisition unit is used to acquire the queue of instructions to be sent.
[0024] The instruction recognition unit is used to identify the instruction type of each instruction to be sent in the instruction queue;
[0025] The first instruction issuing unit is used to obtain a normal network element connection from a preset network element connection pool for an instruction to be sent that is a normal instruction, and then issue the instruction.
[0026] The second instruction issuing unit is used to obtain a network element connection with a preset execution environment from a preset network element connection pool for instructions to be sent that are environment-dependent instructions, and then issue the instructions.
[0027] In one embodiment of this disclosure, the network element command issuing device may further include:
[0028] The result receiving unit is used to receive the instruction execution result;
[0029] The assembly return unit is used to assemble the instruction execution results and return them as a receipt.
[0030] In one embodiment of this disclosure, the instruction recognition unit is used to identify the instruction type of each instruction to be sent in the instruction queue by using instruction rules in a preset instruction rule library.
[0031] In one embodiment of this disclosure, the network element command issuing device may further include:
[0032] The instruction rule base update unit is used to obtain a normal network element connection from the preset network element connection pool for the instruction to be sent, and after the instruction is issued, if the instruction execution error indicates that a special environment is required, the instruction rule base is updated. Updating the instruction rule base includes modifying the instruction rule corresponding to the instruction so that the instruction type corresponding to the instruction is an environment-dependent instruction.
[0033] The second instruction issuing unit is also used to re-identify the instruction type of the instruction after updating the instruction rule base, and for the instruction to be sent that is an environment-dependent instruction, obtain a network element connection with a preset execution environment from the preset network element connection pool and issue the instruction.
[0034] In one embodiment of this disclosure, the instruction acquisition unit is configured to acquire multiple instructions to be sent in response to a service request; and to sort the multiple instructions to be sent according to instruction logic to obtain a queue of instructions to be sent.
[0035] According to another aspect of this disclosure, a network element command issuing system is provided, comprising:
[0036] The instruction acquisition module is used to acquire the queue of instructions to be sent.
[0037] An instruction rule base is used to store multiple instruction rules.
[0038] The instruction filtering module is used to identify the instruction type of each instruction to be sent in the instruction queue based on the instruction rules in the instruction rule base;
[0039] The network element connection pool is used to store common network element connections and network element connections with pre-configured execution environments;
[0040] The network element normal command issuing module is used to obtain normal network element connections from the preset network element connection pool for commands to be sent that are of the normal command type, and then issue the commands.
[0041] The network element environment-dependent instruction delivery module, for instructions of the type environment-dependent instruction to be sent, obtains a network element connection with a preset execution environment from the preset network element connection pool and delivers the instruction.
[0042] In one embodiment of this disclosure, the network element command issuing system further includes:
[0043] The instruction result assembly module is used to assemble and return the instruction execution results from the network element's normal instruction issuance module and the network element's environment-dependent instruction issuance module.
[0044] According to another aspect of this disclosure, an electronic device is provided, comprising: a memory for storing instructions; and a processor for calling the instructions stored in the memory to implement the above-described network element instruction issuing method.
[0045] According to another aspect of this disclosure, a computer-readable storage medium is provided that stores computer instructions thereon, which, when executed by a processor, implement the above-described network element instruction distribution method.
[0046] According to another aspect of this disclosure, a computer program product is provided, which stores instructions that, when executed by a computer, cause the computer to perform the above-described network element instruction issuing method.
[0047] According to another aspect of this disclosure, a chip is provided, including at least one processor and an interface;
[0048] An interface is used to provide program instructions or data to at least one processor;
[0049] At least one processor is used to execute program instructions to implement the above-described network element instruction delivery method.
[0050] The network element command issuance method, apparatus, system, device, and medium provided in this disclosure have a preset network element connection pool. After identifying the command type of each command to be sent in the command queue, the corresponding network element connection can be selected from the network element connection pool according to the command type to issue the command. This can reduce frequent network element connections, achieve the effect of sharing network element connections, save network resources, and improve command issuance efficiency.
[0051] It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and are not intended to limit this disclosure. Attached Figure Description
[0052] The accompanying drawings, which are incorporated in and form a part of this specification, illustrate embodiments consistent with this disclosure and, together with the description, serve to explain the principles of this disclosure.
[0053] Obviously, the accompanying drawings described below are merely some embodiments of this disclosure. Those skilled in the art can obtain other drawings based on these drawings without any creative effort.
[0054] Figure 1 This diagram illustrates a network element instruction issuing system according to an embodiment of the present disclosure.
[0055] Figure 2 This diagram illustrates a flowchart of a network element instruction issuance method according to an embodiment of the present disclosure;
[0056] Figure 3 This diagram illustrates another method for issuing network element commands in an embodiment of this disclosure.
[0057] Figure 4 This illustration shows a flowchart of another network element instruction issuance method in an embodiment of the present disclosure;
[0058] Figure 5 This diagram illustrates a network element command issuing device according to an embodiment of the present disclosure.
[0059] Figure 6 A structural block diagram of an electronic device according to an embodiment of the present disclosure is shown. Detailed Implementation
[0060] The exemplary implementation will now be described more fully with reference to the accompanying drawings.
[0061] It should be noted that the example implementation can be implemented in many forms and should not be construed as being limited to the examples set forth herein.
[0062] For ease of understanding, the relevant technologies and terms involved in this disclosure are explained below:
[0063] 5GC network elements: The 3GPP 5G service specifications define 5GC network element equipment, which mainly includes AMF, SMF, NSSF, UPF, UDM, etc.
[0064] Command: The command executed by the 5GC network element.
[0065] Environment-dependent instructions: Instructions that require a specific execution environment to execute.
[0066] As an example, some instructions of a certain brand of device need to enter the rsong environment to be executed, while some instructions of another brand of device need to switch the network element view environment to be executed.
[0067] In the daily high-volume command calls of 5GC services, some environment-dependent commands have specific dependencies on the execution environment. However, regular commands and these environment-dependent commands are incompatible and cannot share connections for command delivery. Currently, the common practice is to create new connections for command delivery. Therefore, the incompatibility between regular commands and environment-dependent commands leads to the frequent establishment of numerous network element connections, resulting in low command delivery efficiency and wasted network resources. Furthermore, when manufacturers add such environment-dependent commands as new service support, they need to manually identify them in the command manual, wasting significant human resources and increasing communication costs with manufacturers.
[0068] To address the problems of incompatibility between standard commands and environment-dependent commands, and the waste of network resources, low command issuance efficiency, and wasted human resources caused by manual maintenance of environment-dependent commands, this disclosure provides a network element command issuance method based on a command rule base. Utilizing a command filtering module and a command rule base, standard commands and environment-dependent commands can be issued under corresponding shared connections. Simultaneously, a command rule update module automatically updates the command rule base.
[0069] The following detailed description of this exemplary implementation method is provided in conjunction with the accompanying drawings and embodiments.
[0070] Figure 1 This invention discloses a network element command issuing system in an embodiment of the present disclosure, such as... Figure 1 As shown, the network element instruction issuance system provided in this embodiment includes an instruction acquisition module, an instruction rule base, an instruction filtering module, a network element connection pool, a network element general instruction issuance module, and a network element environment-dependent instruction issuance module.
[0071] The system comprises the following modules: an instruction acquisition module for acquiring a queue of instructions to be sent; an instruction rule base for storing multiple instruction rules; an instruction filtering module for identifying the instruction type of each instruction to be sent in the queue based on the instruction rules in the instruction rule base; a network element connection pool for storing common network element connections and network element connections with preset execution environments; a network element common instruction delivery module for acquiring common network element connections from the preset network element connection pool and delivering instructions for instructions of the common instruction type; and a network element environment-dependent instruction delivery module for acquiring network element connections with preset execution environments from the preset network element connection pool and delivering instructions for instructions of the environment-dependent instruction type.
[0072] In some embodiments, the network element instruction issuing system may further include an instruction result assembly module.
[0073] The instruction result assembly module is used to assemble and return the instruction execution results from the network element's normal instruction issuance module and the network element's environment-dependent instruction issuance module.
[0074] Figure 2 This diagram illustrates a flowchart of a network element instruction issuance method according to an embodiment of the present disclosure. The execution entity for issuing the network element instruction is... Figure 1 The network element command issuance system shown.
[0075] like Figure 2 As shown, in this embodiment, an instruction filtering module and an instruction rule base are used to filter general instructions and environment-dependent instructions, and instructions are issued through long connections in the connection pool. This embodiment uses the instruction filtering module to filter and distinguish general instructions and environment-dependent instructions according to rules in the instruction rule base, and then the network element general instruction issuance module and the network element environment-dependent instruction issuance module issue instructions using general network element connections managed in a unified manner and network element connections with pre-configured special execution environments in the connection pool.
[0076] The instruction rule base is updated and maintained through the instruction rule update module. In this embodiment, when a new environment-dependent instruction is issued, if the network element reports an error indicating that instruction execution requires a special environment, the instruction rule update module automatically updates and maintains the instruction rule base, and then reissues the instruction after the instruction rules are updated.
[0077] This disclosure embodiment maintains an instruction rule base through an instruction rule update module. When an instruction is issued, it uses rules from the instruction rule base to filter instructions, selecting either a uniformly managed general connection or a connection specific to a specific environment for issuance. The method provided by this disclosure embodiment reduces frequent network element connections, achieving the effect of shared network element connections, significantly saving network resources and improving instruction issuance efficiency. Simultaneously, the automatic update function of the instruction rule update module automatically maintains rules for newly added environment-dependent instructions, reducing manual operations, wasting human resources, and communication costs with manufacturers.
[0078] Figure 3 This diagram illustrates a flowchart of a network element instruction issuance method according to an embodiment of the present disclosure, such as... Figure 3 As shown, the network element instruction issuance method provided in this embodiment includes steps S302-S308.
[0079] In S302, the queue of instructions to be sent is obtained.
[0080] In S304, the instruction type of each instruction to be sent in the instruction queue is identified.
[0081] In S306, for a command to be sent that is a normal command, a normal network element connection is obtained from the preset network element connection pool, and the command is sent.
[0082] In S308, for instructions to be sent that are environment-dependent instructions, a network element connection with a preset execution environment is obtained from the preset network element connection pool, and the instruction is sent.
[0083] In the above steps, the executing entity of the network element instruction issuing method can be the network element instruction issuing system in the above embodiments, or any electronic device.
[0084] The queue of instructions to be sent can include multiple instructions to be sent, which may include general instructions and environment-dependent instructions.
[0085] In some embodiments, obtaining a queue of instructions to be sent includes, in response to a business request, obtaining multiple instructions to be sent; and sorting the multiple instructions to be sent according to instruction logic to obtain a queue of instructions to be sent.
[0086] The network element command issuance method provided in this embodiment presets a network element connection pool. After identifying the command type of each command to be sent in the command queue, it can select the corresponding network element connection in the network element connection pool according to the command type and issue the command. This can reduce the frequency of network element connections, achieve the effect of sharing network element connections, save network resources, and improve command issuance efficiency.
[0087] In some embodiments, after an instruction is issued, the result of the instruction execution can also be received, and then the result of the instruction execution can be assembled and returned as a receipt.
[0088] In some embodiments, identifying the instruction type of each instruction to be sent in the instruction queue includes: using instruction rules in a preset instruction rule base to identify the instruction type of each instruction to be sent in the instruction queue.
[0089] The instruction rule base contains multiple pre-defined instruction rules, which can be used to identify the instruction type of an instruction. In one embodiment, instruction rules can be used to identify environment-dependent instructions from multiple instructions. In another embodiment, the instruction rule base records multiple environment-dependent instructions through instruction rules, and thus the instruction rule base can be used to identify environment-dependent instructions.
[0090] In some embodiments, for a command to be sent that is a normal command, after obtaining a normal network element connection from a preset network element connection pool and issuing the command, the method further includes: if the command execution reports an error indicating that a special environment is required, updating the command rule base, which includes modifying the command rule corresponding to the command so that the command type is an environment-dependent command; after updating the command rule base, re-identifying the command type, and for a command to be sent that is an environment-dependent command, obtaining a network element connection with a preset execution environment from the preset network element connection pool and issuing the command.
[0091] This disclosure embodiment maintains an instruction rule base through an instruction rule update module. When an instruction is issued, it uses rules from the instruction rule base to filter instructions, selecting either a uniformly managed general connection or a connection specific to a specific environment for issuance. The method provided by this disclosure embodiment reduces frequent network element connections, achieving the effect of shared network element connections, significantly saving network resources and improving instruction issuance efficiency. Simultaneously, the automatic update function of the instruction rule update module automatically maintains rules for newly added environment-dependent instructions, reducing manual operations, wasting human resources, and communication costs with manufacturers.
[0092] Figure 4 This diagram illustrates a flowchart of a network element instruction issuance method according to an embodiment of the present disclosure, such as... Figure 4 As shown, the network element instruction issuance method provided in this embodiment includes steps S402-S408.
[0093] In S402, the instruction to be sent is obtained from the service request instruction acquisition module, and the instructions are sorted according to the instruction logic.
[0094] In S404, the instruction filtering module uses rules in the instruction rule base to distinguish between normal instructions and environment-dependent instructions, and then sends the filtered instructions to the network element normal instruction issuing module and the network element environment-dependent instruction issuing module for instruction issuance, respectively.
[0095] In S406, the network element normal command issuing module obtains normal network element connections from the network element connection pool to issue commands. After the command is executed, the command result is handed over to the command result assembly module for processing. If the command execution reports an error requiring a special environment, it is handed over to the command rule update module to update the command rule base. After the update is completed, the command is handed over to the command filtering module for filtering and resending. The network element environment dependent command issuing module obtains network element connections for a preset environment from the network element connection pool to issue commands. After the command is executed, the command result is handed over to the command result assembly module for processing.
[0096] In S408, the instruction result assembly module assembles the instruction execution results from the network element normal instruction issuance module and the network element environment-dependent instruction issuance module and returns a receipt.
[0097] The network element instruction distribution method in related technologies generally involves first uniformly acquiring the instructions to be sent, then inserting instructions of the same batch or number into the corresponding memory instruction queue according to the business logic relationship between the instructions to be sent, allocating the instructions that the network element needs to execute in the memory instruction queue to the corresponding network element connection, and finally uniformly writing back the execution results of the instructions to the network element connection.
[0098] This disclosure uses instruction rules to distinguish between general instructions and environment-dependent instructions, and issues instructions through a unified regulated connection, thereby achieving adaptation to environment-dependent instructions, reducing network element connections, and saving network resources.
[0099] This embodiment of the disclosure uses an instruction rule update module to update and maintain the instruction rule base, eliminating the need for manual maintenance of environment-dependent instructions, reducing the loss of human resources, and also reducing communication costs with manufacturers.
[0100] In embodiments of this disclosure, the terms "first," "second," and "third" are used for descriptive purposes only and should not be construed as indicating or implying relative importance.
[0101] In this disclosure, the term "and / or" is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A existing alone, A and B existing simultaneously, or B existing alone. Additionally, the character " / " in this document generally indicates that the preceding and following related objects have an "or" relationship.
[0102] Furthermore, although the steps of the method in this disclosure are described in a specific order in the accompanying drawings, this does not require or imply that the steps must be performed in that specific order, or that all the steps shown must be performed to achieve the desired result.
[0103] In some embodiments, certain steps may be omitted, multiple steps may be combined into one step for execution, and / or one step may be broken down into multiple steps for execution.
[0104] Based on the same inventive concept, this disclosure also provides a network element instruction issuing device, as described in the following embodiments. Since the principle by which this device solves the problem is similar to that of the above method embodiments, the implementation of this device embodiment can refer to the implementation of the above method embodiments, and repeated details will not be elaborated further.
[0105] Figure 5 This diagram illustrates a network element command issuing device according to an embodiment of the present disclosure, such as... Figure 5 As shown, the network element command issuing device 500 includes:
[0106] Instruction acquisition unit 502 is used to acquire the queue of instructions to be sent;
[0107] The instruction recognition unit 504 is used to identify the instruction type of each instruction to be sent in the instruction queue;
[0108] The first instruction issuing unit 506 is used to obtain a normal network element connection from a preset network element connection pool for an instruction to be sent that is a normal instruction, and then issue the instruction.
[0109] The second instruction issuing unit 508 is used to obtain a network element connection with a preset execution environment from a preset network element connection pool for instructions to be sent that are environment-dependent instructions, and then issue the instructions.
[0110] In some embodiments, the network element instruction issuing device 500 may further include:
[0111] The result receiving unit is used to receive the instruction execution result;
[0112] The assembly return unit is used to assemble the instruction execution results and return them as a receipt.
[0113] In some embodiments, the instruction recognition unit 504 is used to identify the instruction type of each instruction to be sent in the instruction queue by using instruction rules in a preset instruction rule base.
[0114] In some embodiments, the network element instruction issuing device 500 may further include:
[0115] The instruction rule base update unit is used to obtain a normal network element connection from the preset network element connection pool for the instruction to be sent, and after the instruction is issued, if the instruction execution error indicates that a special environment is required, the instruction rule base is updated. Updating the instruction rule base includes modifying the instruction rule corresponding to the instruction so that the instruction type corresponding to the instruction is an environment-dependent instruction.
[0116] The second instruction issuing unit 508 is also used to re-identify the instruction type of the instruction after updating the instruction rule base, and for the instruction to be sent that is an environment-dependent instruction, obtain a network element connection with a preset execution environment from the preset network element connection pool and issue the instruction.
[0117] In some embodiments, the instruction acquisition unit 502 is configured to acquire multiple instructions to be sent in response to a service request; and sort the multiple instructions to be sent according to instruction logic to obtain a queue of instructions to be sent.
[0118] The concepts of "first" and "second" mentioned in this disclosure are used only to distinguish different devices, modules or units, and are not used to define the order of functions performed by these devices, modules or units or their interdependencies.
[0119] Regarding the network element command issuing device in the above embodiments, the specific methods by which each module performs operations have been described in detail in the embodiments related to the network element command issuing method, and will not be elaborated here.
[0120] In summary, the network element command issuing device provided in this application embodiment has a preset network element connection pool. After identifying the command type of each command to be sent in the command queue, it can select the corresponding network element connection from the network element connection pool according to the command type and issue the command. This can reduce the frequency of network element connections, achieve the effect of sharing network element connections, save network resources, and improve command issuing efficiency.
[0121] It should be noted that although several modules or units of the device used for action execution are mentioned in the detailed description above, this division is not mandatory.
[0122] In fact, according to embodiments of this disclosure, the features and functions of two or more modules or units described above can be embodied in one module or unit. Conversely, the features and functions of one module or unit described above can be further divided and embodied by multiple modules or units.
[0123] Some of the block diagrams shown in the accompanying drawings are functional entities and do not necessarily correspond to physically or logically independent entities. These functional entities can be implemented in software, in one or more hardware modules or integrated circuits, or in different network and / or processor devices and / or microcontroller devices.
[0124] Face reference Figure 6 This describes the electronic device provided in the embodiments of this disclosure. Figure 6 The electronic device 600 shown is merely an example and should not impose any limitation on the functionality and scope of use of the embodiments disclosed herein.
[0125] Figure 6 This diagram illustrates the architecture of an electronic device 600 according to an embodiment of the present invention. Figure 6 As shown, the electronic device 600 includes, but is not limited to, at least one processor 610 and at least one memory 620.
[0126] Memory 620 is used to store instructions.
[0127] In some embodiments, memory 620 may include a readable medium in the form of volatile memory cells, such as random access memory (RAM) 6201 and / or cache memory 6202, and may further include read-only memory (ROM) 6203.
[0128] In some embodiments, the memory 620 may also include a program / utility 6204 having a set (at least one) of program modules 6205, such program modules 6205 including but not limited to: an operating system, one or more application programs, other program modules, and program data, each or some combination of these examples may include an implementation of a network environment.
[0129] In some embodiments, memory 620 may store an operating system. This operating system may be a real-time operating system (RTX), such as Linux, UNIX, Windows, or OS X.
[0130] In some embodiments, the memory 620 may also store data.
[0131] As an example, processor 610 can read data stored in memory 620, which may be stored at the same memory address as the instructions, or the data may be stored at a different memory address than the instructions.
[0132] Processor 610 is configured to invoke instructions stored in memory 620 to implement the steps described in the "Exemplary Methods" section above, according to various exemplary embodiments of this disclosure. For example, processor 610 may execute the following steps of the above method embodiments:
[0133] Get the queue of instructions to be sent;
[0134] Identify the instruction type of each instruction to be sent in the instruction queue;
[0135] For commands to be sent that are of the type of general commands, obtain general network element connections from the preset network element connection pool and then issue the commands.
[0136] For commands to be sent that are environment-dependent commands, a network element connection with a pre-configured execution environment is obtained from the preset network element connection pool, and the command is sent.
[0137] It should be noted that the processor 610 described above can be a general-purpose processor or a special-purpose processor. The processor 610 may include one or more processing cores, and the processor 610 executes various functional applications and data processing by running instructions.
[0138] In some embodiments, processor 610 may include a central processing unit (CPU) and / or a baseband processor.
[0139] In some embodiments, the processor 610 may determine an instruction based on the priority identifier and / or function category information carried in each control instruction.
[0140] In this disclosure, the processor 610 and the memory 620 can be configured separately or integrated together.
[0141] As an example, the processor 610 and memory 620 can be integrated on a single board or a system-on-a-chip (SOC).
[0142] like Figure 6 As shown, electronic device 600 is embodied in the form of a general-purpose computing device. Electronic device 600 may also include bus 630.
[0143] Bus 630 can represent one or more of several types of bus structures, including a memory bus or memory controller, peripheral bus, graphics acceleration port, processor, or a local bus using any of the various bus structures.
[0144] Electronic device 600 can also communicate with one or more external devices 640 (e.g., keyboard, pointing device, Bluetooth device, etc.), and with one or more devices that enable a user to interact with electronic device 600, and / or with any device that enables electronic device 600 to communicate with one or more other computing devices (e.g., router, modem, etc.). Such communication can be performed through input / output (I / O) interface 650.
[0145] Furthermore, the electronic device 600 can also communicate with one or more networks (such as local area networks (LANs), wide area networks (WANs), and / or public networks, such as the Internet) via the network adapter 660.
[0146] like Figure 6 As shown, network adapter 660 communicates with other modules of electronic device 600 via bus 630.
[0147] It should be understood that, although not shown in the figure, other hardware and / or software modules may be used in conjunction with electronic device 600, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.
[0148] It is understood that the structures illustrated in the embodiments of this disclosure do not constitute a specific limitation on the electronic device 600. In other embodiments of this disclosure, the electronic device 600 may include more than Figure 6 This may involve more or fewer components, or combining certain components, or splitting certain components, or different component arrangements. Figure 6The components shown can be implemented in hardware, software, or a combination of both.
[0149] This disclosure also provides a computer-readable storage medium storing computer instructions thereon, which, when executed by a processor, implement the network element instruction issuing method described in the above method embodiments.
[0150] In this embodiment of the disclosure, the computer-readable storage medium is a computer instruction that can be sent, propagated, or transmitted for use by or in conjunction with an instruction execution system, apparatus, or device.
[0151] As an example, a computer-readable storage medium is a non-volatile storage medium.
[0152] In some embodiments, more specific examples of computer-readable storage media in this disclosure may include, but are not limited to: electrical connections having one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, USB flash drives, portable hard drives, or any suitable combination of the foregoing.
[0153] In this embodiment of the disclosure, the computer-readable storage medium may include data signals propagated in baseband or as part of a carrier wave, wherein computer instructions (readable program code) are carried.
[0154] The transmitted data signal can take many forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof.
[0155] In some examples, computational instructions contained on a computer-readable storage medium may be transmitted using any suitable medium, including but not limited to wireless, wired, optical fiber, RF, etc., or any suitable combination thereof.
[0156] This disclosure also provides a computer program product that stores instructions, which, when executed by a computer, cause the computer to implement the network element instruction issuing method described in the above method embodiments.
[0157] The aforementioned instructions can be program code. In practice, the program code can be written using any combination of one or more programming languages.
[0158] Programming languages include object-oriented programming languages—such as Java and C++—as well as conventional procedural programming languages—such as the "C" language or similar programming languages.
[0159] The program code can be executed entirely on the user's computing device, partially on the user's computing device, as a standalone software package, partially on the user's computing device and partially on a remote computing device, or entirely on a remote computing device or server.
[0160] In cases involving remote computing devices, the remote computing devices can be connected to user computing devices via any type of network, including local area networks (LANs) or wide area networks (WANs), or they can be connected to external computing devices (e.g., via the Internet using an Internet service provider).
[0161] This disclosure also provides a chip, including at least one processor and an interface;
[0162] An interface is used to provide program instructions or data to at least one processor;
[0163] At least one processor is used to execute program instructions to implement the network element instruction issuing method described in the above method embodiments.
[0164] In some embodiments, the chip may further include a memory for storing program instructions and data, the memory being located within or outside the processor.
[0165] Those skilled in the art will understand that all or part of the steps of the above embodiments can be specifically implemented in the following forms: a completely hardware implementation, a completely software implementation (including firmware, microcode, etc.), or a combination of hardware and software implementations, which can be collectively referred to as "circuit", "module" or "system".
[0166] Other embodiments of this disclosure will readily occur to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein.
[0167] This disclosure is intended to cover any variations, uses, or adaptations of this disclosure that follow the general principles of this disclosure and include common knowledge or customary techniques in the art not disclosed herein. The description and examples are to be considered exemplary only, and the true scope and spirit of this disclosure are indicated by the appended claims.
Claims
1. A method for issuing network element commands, characterized in that, include: Get the queue of instructions to be sent; Identify the instruction type of each instruction to be sent in the instruction queue; For commands to be sent that are of the type of general commands, obtain general network element connections from the preset network element connection pool and then issue the commands. For instructions to be sent that are environment-dependent instructions, a network element connection with a preset execution environment is obtained from a preset network element connection pool, and the instruction is sent. The environment-dependent instruction is an instruction that requires a special execution environment to be executed.
2. The method according to claim 1, characterized in that, The method further includes: Receive the result of the instruction execution; Assemble the results of the instruction execution and return the order.
3. The method according to claim 1, characterized in that, Identify the instruction type of each instruction to be sent in the instruction queue, including: Using the instruction rules in the preset instruction rule library, the instruction type of each instruction to be sent in the instruction queue is identified.
4. The method according to claim 3, characterized in that, For a command to be sent that is a normal command, after obtaining a normal network element connection from a preset network element connection pool and issuing the command, the method further includes: If the instruction execution reports an error indicating that a special environment is required, the instruction rule base is updated. Updating the instruction rule base includes modifying the instruction rule corresponding to the instruction so that the instruction type corresponding to the instruction is an environment-dependent instruction. After updating the instruction rule base, the instruction type of the instruction is re-identified, and for the instruction to be sent that is an environment-dependent instruction, a network element connection with a preset execution environment is obtained from the preset network element connection pool, and the instruction is issued.
5. The method according to claim 1, characterized in that, The process of obtaining the queue of instructions to be sent includes: In response to a business request, retrieve multiple instructions to be sent; The multiple instructions to be sent are sorted according to the instruction logic to obtain a queue of instructions to be sent.
6. A network element command issuing device, characterized in that, include: The instruction acquisition unit is used to acquire the queue of instructions to be sent. The instruction recognition unit is used to identify the instruction type of each instruction to be sent in the instruction queue. The first instruction issuing unit is used to obtain a normal network element connection from a preset network element connection pool for an instruction to be sent that is a normal instruction, and then issue the instruction. The second instruction issuing unit is used to obtain a network element connection with a preset execution environment from a preset network element connection pool for an instruction to be sent that is an environment-dependent instruction, and to issue the instruction. The environment-dependent instruction is an instruction that requires a special execution environment to be executed.
7. A network element command issuing system, characterized in that, include: The instruction acquisition module is used to acquire the queue of instructions to be sent. An instruction rule base is used to store multiple instruction rules. The instruction filtering module is used to identify the instruction type of each instruction to be sent in the instruction queue based on the instruction rules in the instruction rule base; The network element connection pool is used to store common network element connections and network element connections with pre-configured execution environments; The network element normal command issuing module is used to obtain normal network element connections from the preset network element connection pool for commands to be sent that are of the normal command type, and then issue the commands. The network element environment-dependent instruction delivery module, for instructions of type environment-dependent instruction to be sent, obtains a network element connection with a preset execution environment from a preset network element connection pool and delivers the instruction. The environment-dependent instruction is an instruction that requires a special execution environment to be executed.
8. The system according to claim 7, characterized in that, The network element command issuing system also includes: The instruction result assembly module is used to assemble and return the instruction execution results from the network element's normal instruction issuance module and the network element's environment-dependent instruction issuance module.
9. An electronic device, characterized in that, include: Memory, used to store instructions; A processor is configured to invoke instructions stored in the memory to implement the network element instruction issuance method as described in any one of claims 1-5.
10. A computer-readable storage medium storing computer instructions thereon, characterized in that, When the computer instructions are executed by the processor, they implement the network element instruction distribution method according to any one of claims 1-5.