An instruction transmission method, apparatus, device, and storage medium
By generating and sending target instruction templates via the server, the problem of increased load on network element devices due to inconsistent service formats was solved, thereby reducing device load and saving resources.
Patent Information
- Application Number
- CN202211372373.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-11-03
- Publication Date
- 2026-08-25
- Estimated Expiration
- 2042-11-03
AI Technical Summary
When network elements interact with each other, the service formats of multiple receiving network elements are inconsistent, which requires the network elements to generate multiple different service instructions, increasing the load on the devices.
The server receives the target service data, determines the target instruction template according to the preset correspondence, generates the target instruction according to the service parameter configuration, and sends it to the corresponding network element device, reducing the steps for the network element device to generate service instructions.
This reduces the load on network element devices, saves processing resources, and improves the processing efficiency of the devices.
Smart Images

Figure CN115942387B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of communication technology, and in particular to a method, apparatus, device and storage medium for transmitting instructions. Background Technology
[0002] In recent years, with the development of communication technology, service interactions between network devices (i.e., network elements) have become increasingly frequent. For example, Session Management Function (SMF) network elements can interact with Unified Data Management (UDM) and Policy Control Function (PCF) network elements.
[0003] Currently, when service interaction occurs between network elements, the service format (such as command format, protocol format, etc.) of the receiving network element needs to be configured in the service sending network element. Then, the service sending network element can generate service commands based on the service format of the receiving network element and send them to the receiving network element. However, in the above technical solution, when the service sending network element interacts with multiple service receiving network elements, some of the receiving network elements may have different service formats. This forces the network element to generate multiple different service commands for some network elements, increasing the load on the network element. Summary of the Invention
[0004] This application provides a command transmission method, apparatus, device, and storage medium for reducing the load on network element devices.
[0005] To achieve the above objectives, this application adopts the following technical solution:
[0006] Firstly, this application provides a method for transmitting instructions. In this method, a server receives target service data from a first network element device. The target service data includes a target service identifier and target service parameters. The server determines a target instruction template based on the target service identifier and a first preset correspondence relationship. The first preset correspondence relationship is the correspondence between a preset service identifier and a preset instruction template. The preset instruction template is an instruction template for a preset network element device, and the target instruction template is an instruction template for a second network element device. The server configures the target instruction template according to the target service parameters and generates a target instruction. The server sends the target instruction to the second network element device.
[0007] Optionally, the target service data also includes: target SIM card information, which is the SIM card information of the first network element device. The instruction transmission method further includes: the server determining target connection information based on the target SIM card information and a second preset correspondence, where the second preset correspondence is the correspondence between preset SIM card information and preset connection information. The preset connection information includes: preset address information, which is the address information of a preset network element device. The target connection information includes: target address information, which is the address information of the second network element device. The above method of "the server sending a target instruction to the second network element device" includes: the server sending a target instruction to the second network element device based on the target connection information.
[0008] Optionally, the preset connection information may also include: preset port information and preset communication protocol. The preset port information is the port information of a preset network element device, and the preset communication protocol is the communication protocol of the preset network element device. The target connection information may also include: target port information and target communication protocol. The target port information is the port information of a second network element device, and the target communication protocol is the communication protocol of the second network element device.
[0009] Optionally, there may be multiple target instruction templates. The first preset correspondence is specifically the correspondence between preset service identifiers and preset instruction template sets, where the preset instruction template set includes multiple preset instruction templates. The method described above, "the server determines the target instruction template based on the target service identifier and the first preset correspondence," includes: the server determines the target instruction template set based on the target service identifier and the first preset correspondence, where the target instruction template set includes multiple target instruction templates. The method described above, "the server configures the target instruction templates according to the target service parameters and generates target instructions," includes: the server configures multiple target instruction templates according to the target service parameters and generates multiple target instructions.
[0010] Optionally, the number of second network element devices can be multiple. The instruction transmission method further includes: the server determining a target sequence based on a target service identifier and a third preset correspondence, where the third preset correspondence is the correspondence between preset service identifiers and preset sequences, and the preset sequence includes identifiers of multiple preset network element devices arranged in a preset order; the target sequence includes identifiers of multiple second network element devices arranged in a target order. The aforementioned method of "the server sending a target instruction to the second network element device" includes: the server sending the target instruction corresponding to each second network element device according to the target sequence.
[0011] Secondly, this application provides an instruction transmission device, which includes a receiving module, a processing module, and a sending unit.
[0012] The receiving module receives target service data from the first network element device. The target service data includes a target service identifier and target service parameters. The processing module determines a target instruction template based on the target service identifier and a first preset correspondence. The first preset correspondence is the correspondence between preset service identifiers and preset instruction templates. The preset instruction template is the instruction template of a preset network element device, and the target instruction template is the instruction template of the second network element device. The processing module also configures the target instruction template according to the target service parameters and generates a target instruction. The sending module sends the target instruction to the second network element device.
[0013] Optionally, the target service data also includes: target SIM card information, which is the SIM card information of the first network element device. The processing module is further configured to determine target connection information based on the target SIM card information and a second preset correspondence. The second preset correspondence is the correspondence between preset SIM card information and preset connection information. The preset connection information includes: preset address information, which is the address information of a preset network element device. The target connection information includes: target address information, which is the address information of the second network element device. The sending module is further configured to send a target command to the second network element device based on the target connection information.
[0014] Optionally, the preset connection information may also include: preset port information and preset communication protocol. The preset port information is the port information of a preset network element device, and the preset communication protocol is the communication protocol of the preset network element device. The target connection information may also include: target port information and target communication protocol. The target port information is the port information of a second network element device, and the target communication protocol is the communication protocol of the second network element device.
[0015] Optionally, there can be multiple target instruction templates. The first preset correspondence is specifically the correspondence between a preset service identifier and a preset instruction template set, which includes multiple preset instruction templates. The processing module is further configured to determine a target instruction template set based on the target service identifier and the first preset correspondence, wherein the target instruction template set includes multiple target instruction templates. The processing module is also configured to configure multiple target instruction templates according to target service parameters and generate multiple target instructions.
[0016] Optionally, the number of second network element devices can be multiple. The processing module is further configured to determine a target sequence based on the target service identifier and a third preset correspondence. The third preset correspondence is the correspondence between preset service identifiers and preset sequences. The preset sequence includes identifiers of multiple preset network element devices arranged in a preset order, and the target sequence includes identifiers of multiple second network element devices arranged in a target order. The sending module is further configured to send the target instruction corresponding to each second network element device according to the target sequence.
[0017] Thirdly, this application provides an instruction transfer device, comprising a processor and a memory. The processor and the memory are coupled. The memory is used to store one or more programs, which include computer-executable instructions. When the instruction transfer device is running, the processor executes the computer-executable instructions stored in the memory to implement the instruction transfer method as described in the first aspect and any possible implementation thereof.
[0018] Fourthly, this application provides a computer-readable storage medium storing instructions that, when executed on a computer, cause the computer to perform the instruction transmission method described in the first aspect and any possible implementation thereof.
[0019] Fifthly, this application provides a computer program product applied to a server, the computer program product including computer instructions, which, when executed on a network device, enable the network device to implement the instruction transmission method as described in the first aspect and any possible implementation thereof.
[0020] The technical problems that the instruction transmission device, equipment, computer storage medium or computer program product can solve and the technical effects it can achieve can be found in the technical problems and effects solved in the first aspect above, and will not be repeated here.
[0021] The technical solution provided in this application offers at least the following advantages: The server can receive target service data from a first network element device. This target service data includes a target service identifier and target service parameters. The server can then determine a target instruction template based on the target service identifier and a first preset correspondence. The first preset correspondence is the correspondence between a preset service identifier and a preset instruction template, where the preset instruction template is the instruction template for a preset network element device, and the target instruction template is the instruction template for a second network element device. The server then configures the target instruction template according to the target service parameters and generates the target instruction. Finally, the server sends the target instruction to the second network element device. In other words, the server generates a service instruction based on the service identifier and service parameters sent by the first network element device and sends the service instruction to the second network element device. This reduces the steps required for the first network element device to generate the service instruction, lowers its load, and saves its processing resources. Attached Figure Description
[0022] Figure 1 A schematic diagram of a communication system provided in an embodiment of this application;
[0023] Figure 2 A flowchart illustrating an instruction transmission method provided in an embodiment of this application;
[0024] Figure 3 A flowchart illustrating another instruction transmission method provided in an embodiment of this application;
[0025] Figure 4 A flowchart illustrating another instruction transmission method provided in an embodiment of this application;
[0026] Figure 5 A flowchart illustrating another instruction transmission method provided in an embodiment of this application;
[0027] Figure 6 A flowchart illustrating another instruction transmission method provided in an embodiment of this application;
[0028] Figure 7 This is a schematic diagram of the structure of an instruction transmission device provided in an embodiment of this application;
[0029] Figure 8 This is a schematic diagram of the structure of an instruction transmission device provided in an embodiment of this application;
[0030] Figure 9 A conceptual partial view of a computer program product provided for an embodiment of this application. Detailed Implementation
[0031] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0032] In this article, the character " / " generally indicates that the objects before and after it are in an "or" relationship. For example, A / B can be understood as A or B.
[0033] The terms “first” and “second” in the specification and claims of this application are used to distinguish different objects, rather than to describe a specific order of objects.
[0034] Furthermore, the terms "comprising" and "having," and any variations thereof, used in the description of this application are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or device that includes a series of steps or modules is not limited to the steps or modules listed, but may optionally include other steps or modules not listed, or may optionally include other steps or modules inherent to such process, method, product, or device.
[0035] Furthermore, in the embodiments of this application, the words "exemplary" or "for example" are used to indicate that they are examples, illustrations, or descriptions. Any embodiment or design that is described as "exemplary" or "for example" in this application should not be construed as being more preferred or advantageous than other embodiments or design options. Specifically, the use of the words "exemplary" or "for example" is intended to present concepts in a concrete manner.
[0036] Before providing a detailed description of the instruction transmission method of the embodiments of this application, the implementation environment and application scenarios of the embodiments of this application will be introduced first.
[0037] First, the application scenarios of the embodiments of this application will be introduced.
[0038] The instruction transmission method of this application embodiment is applied to scenarios involving interaction between network element devices. In related technologies, when service interaction occurs between network element devices, the service format (such as instruction format, protocol format, etc.) of the service receiving network element device needs to be configured in the service sending network element device. Then, the service sending network element device can generate service instructions according to the service format of the service receiving network element device and send the service instructions to the service receiving network element device.
[0039] For example, if network element A (i.e., the service sending network element) is configured with instruction format A for network element B (i.e., the service receiving network element), then network element A generates instruction A according to the service parameter A and configured instruction format A. Afterwards, network element A sends instruction A to network element B, thus realizing the interaction between network element A and network element B.
[0040] In summary, in the current technical solution, when a service sending network element interacts with multiple service receiving network elements, some of the service receiving network elements may have different service formats. This requires the network element to generate multiple different service instructions for some network elements, thereby increasing the steps for generating service instructions and increasing the processing load of the network element.
[0041] To address the aforementioned problems, this application provides an instruction transmission method. A server receives a target service identifier and target service parameters from a first network element device. Then, the server determines a target instruction template based on the target service identifier and a preset correspondence. The preset correspondence is the relationship between a preset service identifier and a preset instruction template. Next, the server configures the target instruction template according to the target service parameters and generates a target instruction. Finally, the server sends the target instruction to a second network element device. In other words, the server generates a service instruction based on the service identifier and service parameters sent by the first network element device and sends the service instruction to the second network element device. This reduces the steps required for the first network element device to generate the service instruction, lowers the load on the first network element device, and saves its processing resources.
[0042] The implementation environment of the embodiments of this application is described below.
[0043] like Figure 1 As shown, a communication system provided in an embodiment of this application may include at least two network element devices (such as network element device 101 and network element device 102) and a server 103. The server 103 may communicate with network element device 101 (or network element device 102) via wired / wireless communication.
[0044] For example, server 103 can communicate with network element 101 (or network element 102) via the Internet. Alternatively, server 103 can communicate with network element 101 (or network element 102) via satellite communication. Or, server 103 can communicate with network element 101 (or network element 102) via fiber optic cable.
[0045] Specifically, network element 101 (or network element 102) can generate service data, which includes service identifiers and service parameters. Furthermore, network element 101 (or network element 102) can also send service data to server 103. Server 103 can receive service data from network element 101 (or network element 102). Additionally, server 103 can generate service instructions based on the service data and send these instructions to network element 102 (or network element 101). Network element 102 (or network element 101) can receive the service instructions from server 103 and execute the service accordingly.
[0046] It should be noted that the embodiments of this application do not limit the type of network element devices (such as network element device 101 and network element device 102). For example, the network element device can be a UDM network element device. Another example is that the network element device can be a PCF network element device. Yet another example is that the network element device can be an SMF network element device.
[0047] After introducing the application scenarios and implementation environments of the embodiments of this application, the instruction transmission method provided by the embodiments of this application will be described in detail below in conjunction with the above implementation environment.
[0048] The methods described in the following embodiments can all be implemented in the above-described application scenarios and implementation environments. The following embodiments use the aforementioned server as the execution entity as an example, and the embodiments of this application are described in detail with reference to the accompanying drawings.
[0049] Figure 2 This is a flowchart illustrating an instruction transmission method provided in an embodiment of this application. Figure 2 As shown, the method may include: S201-S204.
[0050] S201. The server receives target service data from the first network element device.
[0051] The target business data includes: target business identifier and target business parameters.
[0052] In this embodiment of the application, the target service identifier is used to indicate the target service.
[0053] For example, identifier A corresponds to video services, and identifier B corresponds to voice services. Identifier A is used to indicate video services, and identifier B is used to indicate voice services.
[0054] It should be noted that the target service identifier is not limited in the embodiments of this application. For example, the target service identifier can be composed of numbers (such as 0, 1, 10, etc.). Another example is that the target service identifier can be composed of letters (such as a, B, Pe, etc.). Yet another example is that the target service identifier can be composed of both numbers and letters (such as OS, x2, 5Dm, etc.).
[0055] In this embodiment of the application, the target service parameter is used to indicate the specific parameters for performing the target service.
[0056] For example, business parameters may include: October 19, 2022, 8:12 AM, 2 seconds.
[0057] S202. The server determines the target instruction template based on the target service identifier and the first preset correspondence.
[0058] The first preset correspondence is the correspondence between preset business identifiers and preset instruction templates.
[0059] For example, the first preset correspondence A is the correspondence between 7uTR (i.e., preset service identifier) and preset instruction template A, and the first preset correspondence B is the correspondence between 8uTR (i.e., preset service identifier) and preset instruction template B.
[0060] In this embodiment, the preset instruction template is used to indicate the instruction format corresponding to the target service.
[0061] It should be noted that the instruction format corresponding to the target service refers to the format of the operation instructions required to execute the target service.
[0062] In one possible design, the default instruction template can be constructed using the Simple Object Access Protocol (SOAP).
[0063] It should be noted that the process of building instruction templates via SOAP can be found in the conventional technology of building instruction templates via access protocols, and will not be elaborated here.
[0064] In this embodiment, the preset instruction template is the instruction template of a preset network element device, and the target instruction template is the instruction template of a second network element device.
[0065] It should be noted that, in this embodiment, the preset network element device can recognize instructions generated through the instruction template of the network element device. In other words, the second network element device can recognize instructions generated through the target instruction template.
[0066] It should be noted that the first preset correspondence can be a correspondence between a preset service identifier and a preset instruction template, or the first preset correspondence can be a correspondence between a preset service identifier and multiple preset instruction templates.
[0067] The following explanation uses the first preset correspondence as the correspondence between a preset business identifier and a preset instruction template.
[0068] In one possible implementation, the server stores multiple preset service identifiers and multiple preset instruction templates. The server can determine the preset service identifier that is the same as the target service identifier from the multiple preset service identifiers, and determine the target instruction template according to the preset service identifier that is the same as the target service identifier and a first preset correspondence.
[0069] For example, as shown in Table 1, the correspondence between preset service identifiers and preset instruction templates in the first preset correspondence table can include: identifier A (i.e., preset service identifier), identifier B (i.e., preset service identifier), identifier C (i.e., preset service identifier), template A (i.e., preset instruction template), template B (i.e., preset instruction template), and template C (i.e., preset instruction template). Identifier A corresponds to template A, identifier B corresponds to template B, and identifier C corresponds to template C. If the target service identifier is identifier B, then the server determines the target instruction template to be template B.
[0070] Table 1. Correspondence between preset service identifiers and preset instruction templates
[0071] Identifier A Template A Identifier B Template B Identifier C Template C
[0072] The description of the first preset correspondence relationship, which is the correspondence between a preset service identifier and multiple preset instruction templates, can be found in the following embodiment S401, and will not be repeated here.
[0073] S203. The server configures the target instruction template according to the target business parameters and generates the target instruction.
[0074] For example, the target service parameters include: alarm count, October 18, 2022, and acquisition, and the target instruction template includes: name element A, time element B, and action element C. Name element A, time element B, and action element C are all elements specific to the second network element device. The server configures name element A as the alarm count, time element B as October 18, 2022, and action element C as acquisition based on regular expression matching, generating target instruction A. Target instruction A is used to instruct the acquisition of the alarm count for October 18, 2022.
[0075] S204. The server sends the target instruction to the second network element device.
[0076] In one possible implementation, the server stores the address information of the second network element device, and the server can send target instructions to the second network element device based on the address information of the second network element device.
[0077] The technical solution provided by the above embodiments brings at least the following beneficial effects: The server can receive target service data from the first network element device, the target service data including: target service identifier and target service parameters. Then, the server can determine the target instruction template according to the target service identifier and a first preset correspondence. The first preset correspondence is the correspondence between a preset service identifier and a preset instruction template, the preset instruction template is the instruction template of a preset network element device, and the target instruction template is the instruction template of a second network element device. Then, the server configures the target instruction template according to the target service parameters and generates the target instruction. Then, the server sends the target instruction to the second network element device. That is, the server generates a service instruction based on the service identifier and service parameters sent by the first network element device and sends the service instruction to the second network element device. This reduces the steps required for the first network element device to generate the service instruction, lowers the load on the first network element device, and saves the processing resources of the first network element device.
[0078] In some embodiments, such as Figure 3 As shown, after S202, the instruction transmission method may further include: S301.
[0079] S301. The server determines the target connection information based on the target SIM card information and the second preset correspondence.
[0080] In one possible implementation, the target service data may further include: target SIM card information, wherein the target SIM card information is the SIM card information of the first network element device.
[0081] For example, if the SIM card information of the first network element device is information A, then the target SIM card information in the target service data is information A.
[0082] It should be noted that the target SIM card information is not limited in the embodiments of this application. For example, the target SIM card information can be the International Mobile Subscriber Identifier (IMSI). Another example is that the target SIM card information can be the Integrated Services Digital Network (ISDN) identifier. Yet another example is that the target SIM card information can be the Mobile Subscriber International ISDN number (MSISDN).
[0083] For example, target SIM card information A is MSISDN SIM card information 1400175500000, and target SIM card information B is IMSI SIM card information 460065507200000.
[0084] In this embodiment of the application, the second preset correspondence is the correspondence between preset SIM card information and preset connection information.
[0085] It should be noted that the preset connection information refers to the connection information between the server and the preset network element device corresponding to that preset connection information. In other words, the preset connection information is used to indicate the connection information used by the server when establishing a connection relationship with the preset network element device corresponding to that preset connection information.
[0086] In one possible design, the preset connection information may include: preset address information. The preset address information refers to the address information of the corresponding preset network element device.
[0087] For example, if the address information of the preset network element device A is 172.20.43.80, then the preset address information A is 172.20.43.80, and the preset address information A corresponds to the preset network element device A.
[0088] In one possible implementation, the server stores multiple preset SIM card information and multiple preset connection information. The server can determine the preset SIM card information that is identical to the target SIM card information from the multiple preset SIM card information, and determine the target connection information based on the preset SIM card information that is identical to the target SIM card information and a second preset correspondence. The target connection information includes: target address information, which is the address information of the second network element device.
[0089] For example, as shown in Table 2, it illustrates the correspondence between preset SIM card information and preset connection information in the second preset correspondence table. The second preset correspondence table may include: 1400175500000 (i.e., preset SIM card information), 460065507200000, 1400175500001, connection information A (i.e., preset connection information), connection information B, and connection information C. Among them, 1400175500000 corresponds to connection information A, 460065507200000 corresponds to connection information B, and 1400175500001 corresponds to connection information C. Connection information A includes 172.20.43.80 (i.e., the preset address information), connection information B includes 172.20.43.90, and connection information C includes 172.22.44.51. 172.20.43.80 is the address information of network element device A (i.e., the preset network element device), 172.20.43.90 is the address information of network element device B, and 172.22.44.51 is the address information of network element device C. If the target SIM card information is 460065507200000, then the server determines the target connection information to be connection information B, the target address information to be 172.20.43.90, and the second network element device to be network element device B.
[0090] Table 2 Second Preset Correspondence Table
[0091]
[0092]
[0093] It should be noted that the embodiments of this application do not limit the order in which S301 and S202 are executed. For example, the server may execute S301 first and then S202. Alternatively, the server may execute S202 first and then S301. Yet another example is that the server may execute S301 and S202 simultaneously.
[0094] In this embodiment of the application, S204 may include: S302.
[0095] S302. The server sends the target instruction to the second network element device based on the target connection information.
[0096] For example, the target connection information includes 255.135.245.102 (i.e., target address information), and 255.135.245.102 is the address information of the second network element device. Then, the server sends a target instruction to the second network element device based on 255.135.245.102.
[0097] It is understandable that the server can determine the target connection information based on the target SIM card information and the second preset correspondence. The target connection information includes the address information of the second network element device. Furthermore, the server can send target instructions to the second network element device based on the address information of the second network element device, thereby realizing the business interaction between the first network element device and the second network element device.
[0098] In some embodiments, the preset connection information may further include: preset port information and preset communication protocol; the target connection information may further include: target port information and target communication protocol. Wherein, the preset port information is the port information of a preset network element device, the preset communication protocol is the communication protocol of the preset network element device, the target port information is the port information of a second network element device, and the target communication protocol is the communication protocol of the second network element device.
[0099] For example, the preset connection information A of preset network element device A includes: preset port information A and preset communication protocol A. The preset connection information B of preset network element device B includes: preset port information B and preset communication protocol B. Wherein, preset port information A is Kw5, preset port information B is Pu2, preset communication protocol A is Hypertext Transfer Protocol (HTTP), and preset communication protocol B is Secure Hypertext Transfer Protocol (HTTPS). Therefore, the port information of preset network element device A is Kw5, and the communication protocol of preset network element device A is HTTP; the port information of preset network element device B is Pu2, and the communication protocol of preset network element device B is HTTPS. If the target connection information of the second network element device is preset connection information A, then the target port information is Kw5, the target communication protocol is HTTP, the port information of the second network element device is Kw5, and the communication protocol of the second network element device is HTTP.
[0100] In one possible implementation, the server stores a mapping between preset communication protocols and preset connection methods. The server can determine the target connection method based on the target communication protocol and the mapping between the preset communication protocols and preset connection methods.
[0101] For example, the server stores the mapping between HTTP and sockets, and the mapping between HTTPS and Secure Sockets Layer (SSL) sockets. If the target communication protocol is HTTP, the server determines that the target connection method is Socket.
[0102] In one possible implementation, the server can send target instructions to the second network element device based on the target address information, target port information, and target communication protocol in the target connection information.
[0103] For example, the target connection information includes: 255.135.245.102 (i.e., target address information), Kw5 (i.e., target port information), and HTTP (i.e., target communication protocol). 255.135.245.102 is the address information of the second network element device, and the connection method corresponding to HTTP is Socket. Then, the server uses Socket to connect to the second network element device based on 255.135.245.102, and sends the target command to the second network element device through Kw5.
[0104] It is understandable that the server can determine the target connection method based on the target communication protocol in the target connection information. Furthermore, the server can send target instructions to the second network element device based on the target connection method and the target address and target port information in the target connection information, thereby realizing the business interaction between the first network element device and the second network element device.
[0105] In some embodiments, the server may determine the target number segment information set based on the target service identifier and the fourth preset correspondence. The fourth preset correspondence is the correspondence between a preset service identifier and a preset number segment information set.
[0106] It should be noted that, in this embodiment, the preset number segment information set is used to indicate network element devices that can process the target service. In other words, the network element device indicated by the preset number segment information set can process the service corresponding to the preset service identifier of that preset number segment information set.
[0107] In one possible design, the preset number segment information set may include at least one preset number segment information, and the preset number segment information may include at least one preset number card information.
[0108] For example, the number segment information set (i.e., the preset number segment information set) includes: MSISDN number segment information 1400175500000-1400177499999 (i.e., preset number segment information), and IMSI number segment information 460065507200000-460067497299999. Among them, the MSISDN number segment information includes: 1400175500000 (i.e., preset SIM card information), 1400175500001, etc., and the IMSI number segment information includes: 460065507200000 (i.e., preset SIM card information), 460065507200001, etc., etc.
[0109] It should be noted that, in this embodiment of the application, one preset number segment corresponds to one preset network element device. That is, one preset network element device can interact with the network element device corresponding to each SIM card information in the corresponding preset number segment.
[0110] For example, the preset number segment information A is 1400175500000-1400175500002. Preset number segment information A corresponds to network element device A (i.e., the preset network element device). Preset number segment information A includes: 1400175500000 (i.e., the preset SIM card information), 1400175500001, and 1400175500002. 1400175500000 corresponds to network element device B, 1400175500001 corresponds to network element device C, and 1400175500002 corresponds to network element device D. Therefore, network element device A can interact with any one of network element devices B, C, or D.
[0111] In one possible implementation, the server stores multiple preset service identifiers and multiple preset number segment information sets. The server can determine the preset service identifier that is identical to the target service identifier from the multiple preset service identifiers, and determine the target number segment information based on the preset service identifier that is identical to the target service identifier and a fourth preset correspondence. The target number segment information set includes at least one first number segment information, and the first number segment information includes at least one first SIM card information.
[0112] For example, as shown in Table 3, the correspondence between preset service identifiers and preset number segment information sets in the fourth preset correspondence table can include: identifier A (i.e., preset service identifier), identifier B, identifier C, number segment information set A (i.e., preset number segment information set) includes: 1400175500000-1400175500002 (i.e., preset number segment information), 1400175500003, number segment information set B includes: 1400175500004, and number segment information set C includes: 460065507200001-460065507200002. Wherein, identifier A corresponds to number segment information set A, identifier B corresponds to number segment information set B, and identifier C corresponds to number segment information set C. If the target service identifier is identifier C, the server determines that the target number segment information set is 60065507200001-460065507200002, the first number segment information is 60065507200001-460065507200002, and the first card information includes: 60065507200001 and 460065507200002.
[0113] Table 3 Fourth Preset Correspondence Table
[0114] Identifier A 1400175500000-1400175500002、1400175500003 Identifier B 1400175500004 Identifier C 460065507200001-460065507200002
[0115] In one possible implementation, the server can determine the first card information that is the same as the target card information from the target number segment information set, and take the first number segment information to which the first card information that is the same as the target card information belongs as the target number segment information.
[0116] For example, the target number segment information set includes: 1400175500000-1400175500002 (i.e., the first number segment information) and 460065507200000-460065507200001. Among them, 1400175500000-1400175500002 includes: 1400175500000 (i.e., the first card information), 1400175500001 and 1400175500002, and 460065507200000-460065507200001 includes: 460065507200000 and 460065507200001. If the target number information is 1400177490000, the server traverses the target number segment information set and, by using a natural language algorithm, determines that 1400177490000 belongs to 1400175500000-1400175500002, and uses 1400175500000-1400175500002 as the target number segment information.
[0117] In one possible implementation, the server can determine the target connection information based on the target number segment information and a fifth preset correspondence. The fifth preset correspondence is the correspondence between preset number segment information and preset connection information. In other words, the server can determine the connection information based on the number segment information, and then establish a connection with the network element device corresponding to that connection information, and interact with that network element device.
[0118] In one possible design, the server stores multiple preset number segment information and multiple preset connection information. The server can determine the preset number segment information that is the same as the target number segment information from the multiple preset number segment information, and determine the target connection information based on the preset number segment information that is the same as the target number segment information and a fifth preset correspondence.
[0119] For example, as shown in Table 4, the correspondence between preset number segment information and preset connection information in the fifth preset correspondence table can include: 1400175500000 (i.e., preset number segment information), 460065507200000-460065507200002, 1400175500001-1400175500003, connection information A (i.e., preset connection information), connection information B, and connection information C. Specifically, 1400175500001-1400175500003 corresponds to connection information A, 460065507200000-460065507200002 corresponds to connection information B, and 1400175500000 corresponds to connection information C. If the target number range is 1400175500001-1400175500003, then the server determines the target connection information as connection information A.
[0120] Table 4 Fifth Preset Correspondence Table
[0121] 1400175500001-1400175500003 Connection Information A 460065507200000-460065507200002 Connection Information B 1400175500000 Connection Information C
[0122] Understandably, the server can filter out multiple network element devices that can handle the target service based on the target service identifier. Then, based on the target SIM card information, it can determine the second network element device from among the multiple network element devices that can handle the target service, thereby reducing the time the server takes to determine the second network element device and improving the efficiency of the server in determining the second network element device.
[0123] In some embodiments, such as Figure 4 As shown, in this instruction transmission method, S202 may include: S401.
[0124] S401. The server determines the target instruction template set based on the target service identifier and the first preset correspondence.
[0125] In one possible implementation, there can be multiple preset instruction templates. Specifically, the first preset correspondence can be a correspondence between a preset business identifier and a preset instruction template set. The preset instruction template set includes multiple preset instruction templates. That is, one preset business identifier corresponds to multiple preset instruction templates, and the business corresponding to that preset business identifier requires multiple operation instructions to complete.
[0126] For example, the first preset correspondence A is the correspondence between preset service identifier A and preset instruction template set A, and the first preset correspondence B is the correspondence between preset service identifier B and preset instruction template set B. The preset instruction template set A includes: preset instruction template A, preset instruction template B, and preset instruction template C, and the preset instruction template set B includes: preset instruction template D.
[0127] Optionally, there can be multiple target instruction templates. The server can store multiple preset service identifiers and multiple preset instruction template sets. The server can determine the preset service identifier that is the same as the target service identifier from the multiple preset service identifiers, and determine the target instruction template set according to the preset service identifier that is the same as the target service identifier and the first preset correspondence. The target instruction template set includes multiple target instruction templates.
[0128] For example, as shown in Table 5, the correspondence between preset service identifiers and preset instruction template sets in the first preset correspondence table can include: identifier A (i.e., preset service identifier), identifier B, identifier C, template set A (i.e., preset instruction template set), template set B, and template set C. Template set A includes template A, template set B includes template B and template C, and template set C includes template D and template E. Identifier A corresponds to template set A, identifier B corresponds to template set B, and identifier C corresponds to template set C. If the target service identifier is identifier B, the server determines the target instruction template set to be template set B, and both template B and template C are target instruction templates.
[0129] Table 5. Correspondence between Preset Service Identifiers and Preset Instruction Template Sets
[0130] Identifier A Template set A (Template A) Identifier B Template set B (template B and template C) Identifier C Template set C (templates D and E)
[0131] In this embodiment of the application, S203 may include: S402.
[0132] S402. The server configures multiple target instruction templates according to the target business parameters and generates multiple target instructions.
[0133] In one possible implementation, the server can generate a target instruction set based on target business parameters and a target instruction template set. The target instruction set includes: multiple target instructions and multiple target instruction identifiers, with one target instruction identifier corresponding to one target instruction.
[0134] In one possible design, the target service parameters may include multiple sub-service parameters. Each sub-service parameter corresponds to a target instruction template. The server stores the mapping between sub-service parameters and target instruction templates. Based on this mapping and the multiple sub-service parameters, the server can configure multiple target instruction templates and generate multiple target instructions.
[0135] For example, the target service parameters include sub-service parameter A and sub-service parameter B. Sub-service parameter A includes: alarm quantity, October 18, 2022, and acquisition; sub-service parameter B includes: text file, RS_g6K / 0021, and access. If the server stores the correspondence between sub-service parameter A and target instruction template A, and the correspondence between sub-service parameter B and target instruction template B, and target instruction template A includes: name element A, time element B, and action element C, and target instruction template B includes: name element D, address element E, and action element F, then the server configures name element A according to the alarm quantity, configures time element B according to October 18, 2022, and configures action element C according to acquisition to generate target instruction A. Furthermore, the server configures name element D according to the text file, configures address element E according to RS_g6K / 0021, and configures action element F according to access to generate target instruction B. Among them, target instruction A is used to instruct the acquisition of the number of alarms on October 18, 2022, and target instruction B is used to instruct access to the text file at address RS_g6K / 0021.
[0136] Understandably, when a target service requires multiple target instructions, the server can generate multiple target instructions based on the target service identifier and target service parameters to meet the instruction requirements of the target service.
[0137] In some embodiments, such as Figure 5 As shown, after S401, the instruction transmission method also includes S501.
[0138] S501. The server determines the target sequence based on the target service identifier and the third preset correspondence.
[0139] The third preset correspondence is the correspondence between preset service identifiers and preset sequences. The preset sequence includes identifiers of multiple preset network element devices arranged in a preset order. In other words, the preset sequence is used to indicate the order in which each of the multiple preset network element devices executes operation instructions.
[0140] For example, the preset sequence includes: identifier A (i.e., the identifier of the preset network element device), identifier B, and identifier C. Identifier A is the identifier of preset network element device A, identifier B is the identifier of preset network element device B, and identifier C is the identifier of preset network element device C. The server determines that preset network element device A executes the operation instruction first, then preset network element device B executes the operation instruction, and finally, preset network element device C executes the operation instruction.
[0141] In one possible design, the identifier of the preset network element device may include: the type information of the preset network element device and the name information of the preset network element device. That is, the identifier of the preset network element device is used to indicate the device type of the preset network element device, and the identifier of the preset network element device is also used to indicate the device name of the preset network element device.
[0142] For example, identifier A is the identifier of a preset network element device A, and identifier A is UDM+JS_JS_NJ_UDM700BE01_B_HW. Here, UDM indicates that the device type of the preset network element device A is a UDM network element device, and JS_JS_NJ_UDM700BE01_B_HW indicates that the device name of the preset network element device A is JS_JS_NJ_UDM700BE01_B_HW.
[0143] In one possible implementation, the server stores multiple preset service identifiers and multiple preset sequences. The server can determine the preset service identifier that is identical to the target service identifier from the multiple preset service identifiers, and determine the target sequence based on the preset service identifier that is identical to the target service identifier and a third preset correspondence. The target sequence is the sequence corresponding to the target service identifier, and includes: identifiers of multiple second network element devices arranged in a target order.
[0144] For example, as shown in Table 6, the correspondence between preset service identifiers and preset sequences in the third preset correspondence table can include: identifier A (i.e., preset service identifier), identifier B, identifier C, sequence A (i.e., preset sequence), sequence B, and sequence C. Sequence A includes identifier D (i.e., the identifier of the preset network element device), sequence B includes identifier E and identifier F, and sequence C includes identifier G and identifier H. Identifier A corresponds to sequence A, identifier B corresponds to sequence B, identifier C corresponds to sequence C, identifier D is the identifier of network element device A, identifier E is the identifier of network element device B, identifier F is the identifier of network element device C, identifier G is the identifier of network element device D, and identifier H is the identifier of network element device E. If the target service identifier is identifier B, then the server determines the target sequence to be sequence B, identifiers E and F are both identifiers of the second network element device, and network element device B and network element device C are both second network element devices.
[0145] Table 6. Third Preset Correspondence Table
[0146]
[0147]
[0148] In this embodiment of the application, the number of second network element devices can be multiple, and S302 may include: S502.
[0149] S502. The server sends the target instruction corresponding to each second network element device according to the target sequence.
[0150] In one possible implementation, the identifiers in the target sequence are associated with the connection information of the network element devices, with one identifier of a second network element device corresponding to one target connection information. The server can determine the target connection information corresponding to each second network element device based on the identifier of each second network element device in the target sequence, and send the corresponding target instructions to each second network element device sequentially according to the target order in the target sequence and the target connection information corresponding to each second network element device.
[0151] It is understandable that when the target service requested by the first network element device needs to interact with multiple second network element devices, the server can determine the interaction order with each second network element device, and send instructions to each second network element device in sequence according to the interaction order and the connection information corresponding to each second network element device. This allows multiple second network element devices to execute the target instructions in an orderly manner, thereby completing the processing of the target service.
[0152] In some embodiments, the target instruction set and the target sequence are associated, with one target instruction identifier corresponding to the identifier of a second network element device. That is, one target instruction corresponds to one second network element device, and the number of target instructions in the target instruction set is the same as the number of second network element devices.
[0153] For example, the target instruction set includes: target instruction A, target instruction B, identifier A of target instruction A, and identifier B of target instruction B. The target sequence includes: identifier C of second network element device A and identifier D of second network element device B. Identifier A corresponds to identifier C, and identifier B corresponds to identifier D. Therefore, the instruction corresponding to second network element device A is target instruction A, and the instruction corresponding to second network element device B is target instruction B.
[0154] The following describes the process by which the server sends the target instructions corresponding to each second network element device according to the target sequence.
[0155] For example, the target instruction set includes: target instruction A, target instruction B, identifier A of target instruction A, and identifier B of target instruction B. The target sequence includes: identifier C of second network element device A and identifier D of second network element device B. Identifier A corresponds to identifier C, and identifier B corresponds to identifier D. The server first sends target instruction A to second network element device A, and then the server sends target instruction B to second network element device B.
[0156] It is understandable that when the target service requested by the first network element device needs to interact with multiple second network element devices, the server can determine the order in which each target instruction is sent to the multiple second network element devices after generating multiple target instructions, so that the multiple second network element devices can execute the target instructions in an orderly manner and thus complete the processing of the target service.
[0157] In some embodiments, the server may receive target packet data from the second network element device. Then, the server may generate a target packet based on the target packet data and send the target packet to the first network element device.
[0158] It should be noted that the data format of the target message is not limited in the embodiments of this application. For example, the target message can be in JavaScript Object Notation (JSON) data format. As another example, the target message can be in Extensible Markup Language (XML) data format.
[0159] It should be noted that the process by which the server generates the target message based on the target message data can be found in the description of message generation based on data in conventional technologies, and will not be elaborated here.
[0160] In some embodiments, the server includes an in-memory database. The server can store network element information, number segment information, service information, and instruction information in the in-memory database according to a preset data structure. The in-memory database can be a relational database, and the preset data structure can be a map data structure. Network element information may include: network element type information, network element name, network element address information, network element port information, vendor information, communication protocol, etc. Number segment information may include: network element type information, network element name, MSISDN number segment information (or IMSI number segment information), etc. Service information may include: service identifier, instruction identity document (ID), instruction execution order, etc. Instruction information may include: instruction ID, network element type information, instruction name, instruction template, and vendor information. In other words, the server stores the correspondence between service identifiers and instruction information and network element information. This allows the server to configure the instruction information and new network element information of new network elements online when network elements interact with new network elements, thereby reducing the time for service interaction between network elements and improving the efficiency of service interaction between network elements.
[0161] The flowchart of the instruction transmission method provided in this application is described below with specific examples. For example... Figure 6 As shown, the specific steps are as follows:
[0162] Step 1: The server obtains the requested service and request parameters (i.e., business parameters). The requested service includes: service code (i.e., business identifier).
[0163] Step 2: The server obtains instruction information. This instruction information includes: network element device type information, instruction name, instruction template, and manufacturer information.
[0164] In one possible design, the server's in-memory database stores a service information table, as shown in Table 7, which illustrates the relationship between service codes, instruction IDs, and instruction execution order. The service information table may include: 0101 (i.e., service code), 0111, 1000, TY1 (i.e., instruction ID), TY2, TY3, "TY1" (i.e., instruction execution order), "TY1, TY3", and "TY3, TY2". "TY1, TY3" indicates that the instruction corresponding to TY1 is executed first, followed by the instruction corresponding to TY3; "TY3, TY2" indicates that the instruction corresponding to TY3 is executed first, followed by the instruction corresponding to TY2.
[0165] Table 7 Service Information Table
[0166] 0101 TY1 TY1 0111 TY1 TY3 TY1, TY3 1000 TY2 TY3 TY3, TY2
[0167] Optionally, the server's in-memory database stores an instruction information table, as shown in Table 8. This table illustrates the relationship between instruction IDs and network element device type information, instruction names, instruction templates, and vendor information. The instruction information table may include: TY1 (i.e., instruction ID), TY2, TY3, ADD_TPLSUB (i.e., instruction name), ADD_SUB, ADD_CSPSSUB, Template A, Template B, Template C, UDM (i.e., network element device type information), PCF, Vendor A, and Vendor B. Specifically, Template A is the instruction template corresponding to TY1, Template B is the instruction template corresponding to TY2, Template C is the instruction template corresponding to TY3, UDM indicates instructions applicable to UDM, PCF indicates instructions applicable to PCF, Vendor A indicates instructions applicable to Vendor A, and Vendor B indicates instructions applicable to Vendor B.
[0168] Table 8 Instruction Information Table
[0169] TY1 ADD_TPLSUB Account Opening Template A UDM Manufacturer B TY2 ADD_SUB account opening Template B PCF Manufacturer A TY3 ADD_CSPSSUB account opening Template C UDM Manufacturer A
[0170] In one possible implementation, the server can determine multiple instruction IDs and the instruction execution order corresponding to the service code in the requested service based on the service information table. Then, the server can determine the network element device type information, instruction name, instruction template, and vendor information corresponding to each instruction ID based on the instruction information table, thereby obtaining the instruction information.
[0171] Step 3: Assemble the complete instructions on the server.
[0172] In one possible implementation, the server can generate a complete instruction based on the instruction template in the instruction information configured according to the request parameters.
[0173] Step 4: The server obtains the number segment ownership.
[0174] In one possible design, the server's in-memory database stores a number segment information table, as shown in Table 9, which illustrates the relationship between number segment information (such as MSISDN number segment information, IMSI number segment information, etc.) and network element device type information and network element device name. The number segment information table may include: JS_JS_NJ_UDM700BE01_B_HW (i.e., network element device name), JS_JS_NJ_PCF700BE01_B_HW, JS_JS_NJ_UDM700BE05_B_HW, UDM (i.e., network element device type information), PCF, 1400175500000-1400177499999 (i.e., MSISDN number segment information), 460065507200000-460067497299999 (i.e., IMSI number segment information), and 1400175500500-1400177499800.
[0175] Table 9 Information Table for Number Segments
[0176]
[0177] In one possible implementation, the request parameters also include: SIM card information. The server can determine the number segment to which the SIM card information belongs, and the name of the network element device corresponding to the number segment to which the SIM card information belongs, based on the number segment information table.
[0178] Step 5: The server obtains network element device information.
[0179] In one possible design, the server's in-memory database stores a network element device information table, as shown in Table 10. This table illustrates the relationships between network element device names and types, Internet Protocol (IP) addresses, port information, vendor information, and communication protocols. The network element device information table may include: UDM (i.e., network element device type information), PCF, 172.20.43.80 (i.e., network element device IP address information), 172.20.43.81, 172.22.45.80, JS_JS_NJ_UDM700BE01_B_HW (i.e., network element device name), JS_JS_NJ_PCF700BE01_B_HW, JS_JS_NJ_UDM700BE05_B_HW, 8002 (i.e., network element device port information), 7102, 2133, vendor A, vendor B, HTTP (i.e., communication protocol), HTTPS.
[0180] Table 10 Network Element Equipment Information Table
[0181]
[0182]
[0183] In one possible implementation, the server can determine the network element device's IP address, port information, and communication protocol based on the network element device's name.
[0184] Step Six: Network Element Interaction. The server sends instructions to the network element devices based on their IP address information, port information, and communication protocols, thereby enabling service interaction between network element devices.
[0185] Step 7: Server returns results. After sending the instruction, the server can receive the result of the network element's execution of the instruction and then feed that result back to the network element of the service caller.
[0186] The foregoing primarily describes the solutions provided in the embodiments of this application from the perspective of computer devices. It is understood that, in order to achieve the aforementioned functions, the computer device includes corresponding hardware structures and / or software modules for executing each function. Those skilled in the art should readily recognize that, based on the instruction transmission method steps described in conjunction with the embodiments disclosed in this application, this application can be implemented in hardware or a combination of hardware and computer software. Whether a function is executed by hardware or by computer software driving hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.
[0187] This application also provides an instruction transmission device. This instruction transmission device can be a computer device, a CPU within the aforementioned computer device, a processing module for instruction transmission within the aforementioned computer device, or a client device for instruction transmission within the aforementioned computer device.
[0188] This application embodiment can divide the instruction transmission device into functional modules or functional units according to the above method examples. For example, each function can be divided into its own functional modules or functional units, or two or more functions can be integrated into one processing module. The integrated module can be implemented in hardware or as a software functional module or functional unit. The module or unit division in this application embodiment is illustrative and represents only one logical functional division; other division methods may be used in actual implementation.
[0189] like Figure 7 The diagram shown is a structural schematic of an instruction transmission device provided in an embodiment of this application. The instruction transmission device is used to execute... Figure 2 , Figure 3 , Figure 4 or Figure 5 The instruction transmission method is shown. The instruction transmission device may include: a receiving module 701, a processing module 702, and a sending module 703.
[0190] The receiving module 701 is used to receive target service data from the first network element device. The target service data includes a target service identifier and target service parameters. The processing module 702 is used to determine a target instruction template based on the target service identifier and a first preset correspondence. The first preset correspondence is the correspondence between preset service identifiers and preset instruction templates. The preset instruction template is the instruction template of a preset network element device, and the target instruction template is the instruction template of the second network element device. The processing module 702 is also used to configure the target instruction template according to the target service parameters and generate a target instruction. The sending module 703 is used to send the target instruction to the second network element device.
[0191] Optionally, the target service data also includes: target SIM card information, which is the SIM card information of the first network element device. The processing module 702 is further configured to determine target connection information based on the target SIM card information and a second preset correspondence. The second preset correspondence is the correspondence between preset SIM card information and preset connection information. The preset connection information includes: preset address information, which is the address information of a preset network element device. The target connection information includes: target address information, which is the address information of the second network element device. The sending module 703 is further configured to send a target instruction to the second network element device based on the target connection information.
[0192] Optionally, the preset connection information may also include: preset port information and preset communication protocol. The preset port information is the port information of a preset network element device, and the preset communication protocol is the communication protocol of the preset network element device. The target connection information may also include: target port information and target communication protocol. The target port information is the port information of a second network element device, and the target communication protocol is the communication protocol of the second network element device.
[0193] Optionally, there can be multiple target instruction templates. The first preset correspondence is specifically the correspondence between a preset service identifier and a preset instruction template set, which includes multiple preset instruction templates. Processing module 702 is further configured to determine a target instruction template set based on the target service identifier and the first preset correspondence, wherein the target instruction template set includes multiple target instruction templates. Processing module 702 is also configured to configure multiple target instruction templates according to target service parameters and generate multiple target instructions.
[0194] Optionally, the number of second network element devices can be multiple. The processing module 702 is further configured to determine a target sequence based on the target service identifier and a third preset correspondence. The third preset correspondence is the correspondence between preset service identifiers and preset sequences. The preset sequence includes identifiers of multiple preset network element devices arranged in a preset order, and the target sequence includes identifiers of multiple second network element devices arranged in a target order. The sending module 703 is further configured to send the target instruction corresponding to each second network element device according to the target sequence.
[0195] Figure 8 This is a schematic diagram of the hardware structure of an instruction transmission device according to an exemplary embodiment. The instruction transmission device may include a processor 802, which is used to execute application code to implement the instruction transmission method of this application.
[0196] The processor 802 may be a central processing unit (CPU), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits used to control the execution of the program of the present application.
[0197] like Figure 8 As shown, the instruction transmission device may further include a memory 803. The memory 803 stores the application code that executes the scheme of this application, and its execution is controlled by the processor 802.
[0198] The memory 803 may be a read-only memory (ROM) or other type of static storage device capable of storing static information and instructions, random access memory (RAM) or other type of dynamic storage device capable of storing information and instructions, or electrically erasable programmable read-only memory (EEPROM), compact disc read-only memory (CD-ROM) or other optical disc storage, optical disc storage (including compressed optical discs, laser discs, optical discs, digital versatile optical discs, Blu-ray discs, etc.), magnetic disk storage media or other magnetic storage devices, or any other medium capable of carrying or storing desired program code in the form of instructions or data structures and accessible by a computer, but not limited thereto. The memory 803 may exist independently and be connected to the processor 802 via bus 804. The memory 803 may also be integrated with the processor 802.
[0199] like Figure 8 As shown, the instruction transmission device may further include a communication interface 801, wherein the communication interface 801, the processor 802, and the memory 803 may be coupled to each other, for example, through a bus 804. The communication interface 801 is used for information exchange with other devices, for example, supporting information exchange between the instruction transmission device and other devices.
[0200] It should be pointed out that, Figure 8 The device structure shown does not constitute a limitation on the instruction transmission device, except... Figure 8 In addition to the components shown, the instruction transmission device may include more or fewer components than illustrated, or combine certain components, or have different component arrangements.
[0201] In actual implementation, the functions implemented by processing module 702 can be derived by... Figure 8 The processor 802 shown calls the program code in memory 803 to implement this.
[0202] This application also provides a computer-readable storage medium storing instructions that, when executed by a processor of a computer device, enable the computer to perform the instruction transfer method provided in the embodiments described above. For example, the computer-readable storage medium may be a memory 803 including instructions, which may be executed by a processor 802 of a computer device to complete the method described above. Optionally, the computer-readable storage medium may be a non-transitory computer-readable storage medium, such as a ROM, RAM, CD-ROM, magnetic tape, floppy disk, or optical data storage device.
[0203] Figure 9 A conceptual partial view of a computer program product provided in an embodiment of this application is shown as an example. The computer program product includes a computer program for executing computer processes on a computing device.
[0204] In one embodiment, the computer program product is provided using a signal bearer medium 900. The signal bearer medium 900 may include one or more program instructions that, when executed by one or more processors, can provide the above-mentioned... Figure 2 , Figure 3 , Figure 4 and Figure 5 The described function or part of the function. Therefore, for example, refer to... Figure 2 In the embodiment shown, one or more features of S201 to S204 can be fulfilled by one or more instructions associated with the signal carrying medium 900. Furthermore, Figure 9 The program instructions in the document also describe example instructions.
[0205] In some examples, the signal carrying medium 900 may include a computer-readable medium 901, such as, but not limited to, a hard disk drive, a compact disc (CD), a digital video disc (DVD), a digital magnetic tape, a memory, a read-only memory (ROM), or a random access memory (RAM), etc.
[0206] In some implementations, the signal carrying medium 900 may include a computer recordable medium 902, such as, but not limited to, a memory, a read / write (R / W) CD, a R / W DVD, and so on.
[0207] In some implementations, the signal carrying medium 900 may include a communication medium 903, such as, but not limited to, digital and / or analog communication media (e.g., fiber optic cables, waveguides, wired communication links, wireless communication links, etc.).
[0208] The signal-bearing medium 900 can be transmitted by a wireless communication medium 903. One or more program instructions may be, for example, computer-executable instructions or logic implementation instructions.
[0209] In some examples, such as targeting Figure 7 The described instruction transmission apparatus can be configured to provide various operations, functions, or actions in response to one or more program instructions transmitted through a computer-readable medium 901, a computer-recordable medium 902, and / or a communication medium 903.
[0210] Through the above description of the embodiments, those skilled in the art can clearly understand that, for the sake of convenience and brevity, only the division of the above functional modules is used as an example. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.
[0211] In the several embodiments provided in this application, it should be understood that the disclosed apparatus and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of modules or units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another apparatus, or some features may be ignored or not executed. Furthermore, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between apparatuses or units may be electrical, mechanical, or other forms.
[0212] The units described as separate components may or may not be physically separate. A component shown as a unit can be one or more physical units; that is, it can be located in one place or distributed in multiple different locations. Some or all of the constituent units can be selected to achieve the purpose of this embodiment, depending on actual needs.
[0213] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.
[0214] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solution of the embodiments of this application, essentially, or the part that contributes to the prior art, or a complete or partial classification of the technical solution, can be embodied in the form of a software product. This software product is stored in a storage medium and includes several instructions to cause a device (which may be a microcontroller, chip, etc.) or processor to execute all or part of the steps of the methods of the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, ROM, RAM, magnetic disks, or optical disks.
[0215] The above are merely specific embodiments of this application, but the scope of protection of this application is not limited thereto. Any changes or substitutions within the technical scope disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.
Claims
1. A method for transmitting instructions, characterized in that, Applied to a server, the method includes: Receive target service data from the first network element device, the target service data including: target service identifier and target service parameters; Based on the target service identifier and the first preset correspondence, a target instruction template set is determined. The first preset correspondence is the correspondence between the preset service identifier and the preset instruction template set. The preset instruction template set includes multiple preset instruction templates, which are instruction templates for preset network element devices. The target instruction template set includes multiple target instruction templates, which are instruction templates for second network element devices. The number of second network element devices is multiple. A target sequence is determined based on the target service identifier and the third preset correspondence relationship. The third preset correspondence relationship is the correspondence relationship between the preset service identifier and the preset sequence. The preset sequence includes: the identifiers of a plurality of preset network element devices arranged in a preset order. The target sequence includes the identifiers of a plurality of second network element devices arranged in a target order. Configure the multiple target instruction templates according to the target service parameters, and generate multiple target instructions; Based on the target service identifier and the fourth preset correspondence, a target number segment information set is determined. The fourth preset correspondence is the correspondence between the preset service identifier and the preset number segment information set. The preset number segment information set is used to indicate network element devices that can process the target service. Based on the target number segment information set and the fifth preset correspondence, the target connection information is determined, wherein the fifth preset correspondence is the correspondence between preset number segment information and preset connection information; Based on the target connection information, the target instruction corresponding to the second network element device is sent to each second network element device according to the target sequence.
2. The method according to claim 1, characterized in that, The target service data further includes: target SIM card information, which is the SIM card information of the first network element device. After determining the target instruction template based on the target service identifier and the first preset correspondence, the method further includes: Based on the target SIM card information and the second preset correspondence, target connection information is determined. The second preset correspondence is the correspondence between preset SIM card information and preset connection information. The preset connection information includes: preset address information, which is the address information of the preset network element device. The target connection information includes: target address information, which is the address information of the second network element device. Sending the target instruction to the second network element device includes: Based on the target connection information, the target instruction is sent to the second network element device.
3. The method according to claim 2, characterized in that, The preset connection information further includes: preset port information and preset communication protocol. The preset port information is the port information of the preset network element device, and the preset communication protocol is the communication protocol of the preset network element device. The target connection information further includes: target port information and target communication protocol. The target port information is the port information of the second network element device, and the target communication protocol is the communication protocol of the second network element device.
4. A command transmission device, characterized in that, Applied to a server, the device includes: The receiving module is used to receive target service data from the first network element device, wherein the target service data includes: target service identifier and target service parameters; The processing module is configured to determine a target instruction template set based on the target service identifier and a first preset correspondence, wherein the first preset correspondence is a correspondence between a preset service identifier and a preset instruction template set, the preset instruction template set includes multiple preset instruction templates, the preset instruction templates are instruction templates for preset network element devices, the target instruction template set includes multiple target instruction templates, the target instruction templates are instruction templates for second network element devices; the number of second network element devices is multiple. The processing module is further configured to determine a target sequence based on the target service identifier and a third preset correspondence, wherein the third preset correspondence is the correspondence between the preset service identifier and the preset sequence, and the preset sequence includes: identifiers of a plurality of preset network element devices arranged in a preset order, and the target sequence includes identifiers of a plurality of second network element devices arranged in a target order; The processing module is further configured to configure the plurality of target instruction templates according to the target service parameters and generate a plurality of the target instructions; The processing module is further configured to determine a target number segment information set based on the target service identifier and a fourth preset correspondence, wherein the fourth preset correspondence is a correspondence between a preset service identifier and a preset number segment information set, and the preset number segment information set is used to indicate network element devices that can process the target service; and to determine target connection information based on the target number segment information set and a fifth preset correspondence, wherein the fifth preset correspondence is a correspondence between preset number segment information and preset connection information. The sending module is used to send the target instruction to the second network element device according to the target connection information.
5. The apparatus according to claim 4, characterized in that, The target service data also includes: target SIM card information, which is the SIM card information of the first network element device; The processing module is further configured to determine target connection information based on the target SIM card information and the second preset correspondence, wherein the second preset correspondence is the correspondence between preset SIM card information and preset connection information, the preset connection information includes: preset address information, wherein the preset address information is the address information of the preset network element device, and the target connection information includes: target address information, wherein the target address information is the address information of the second network element device; The sending module is further configured to send the target instruction to the second network element device according to the target connection information.
6. The apparatus according to claim 5, characterized in that, The preset connection information further includes: preset port information and preset communication protocol. The preset port information is the port information of the preset network element device, and the preset communication protocol is the communication protocol of the preset network element device. The target connection information further includes: target port information and target communication protocol. The target port information is the port information of the second network element device, and the target communication protocol is the communication protocol of the second network element device.
7. A command transmission device, characterized in that, include: Processor and memory; The processor and the memory are coupled; The memory is used to store one or more programs, the one or more programs including computer execution instructions. When the instruction transmission device is running, the processor executes the computer execution instructions stored in the memory to cause the instruction transmission device to perform the instruction transmission method as described in any one of claims 1-3.
8. A computer-readable storage medium storing instructions, characterized in that, When the computer executes the instruction, the computer performs the instruction transmission method as described in any one of claims 1-3.
9. A computer program product, characterized in that, The computer program product includes computer instructions, which, when executed on an electronic device, perform the instruction transmission method as described in any one of claims 1 to 3.
Citation Information
Patent Citations
Service activation-based data processing method, device, server and system
CN103873433A
Network element adaptation method, device and equipment and computer readable storage medium
CN114285908A