Communication resource allocation method and device and electronic equipment

Through the automated communication resource allocation method, the target service and allocation rules are decoupled, and the resource allocation flexibility and efficiency of complex business services in the telecommunications industry are achieved, and the high development costs and inefficiency problems caused by existing hard-coded methods are solved.

CN119071251APending Publication Date: 2024-12-03CHINA TELECOM GLOBAL LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411129299.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-16
Publication Date
2024-12-03

AI Technical Summary

Technical Problem

The resource allocation of various business services in the telecommunications industry is complex, and the existing hard-coded methods lead to high development costs and low efficiency, and the inability to flexibly respond to the needs of new services.

Method used

By determining the type of communication resources to be allocated for the target service, calling the allocation rule package, obtaining the target parameter value, determining the communication resource allocation plan based on the connection relationship, realizing automated resource allocation, and decoupling the target service and allocation rules.

Benefits of technology

It realizes flexibility and automation of resource allocation for various communication services, reduces the development cost and time of new services, and improves resource allocation efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119071251A_ABST
    Figure CN119071251A_ABST
Patent Text Reader

Abstract

The invention provides a communication resource allocation method and device and electronic equipment, and relates to the technical field of communication. The communication resource allocation method comprises: determining the type of a to-be-allocated communication resource corresponding to a target service, the type of the to-be-allocated communication resource at least comprising an IP address and a network port, the target service being a main service, or the target service being a sub-service of the main service; calling an allocation rule packet corresponding to the communication resource to be allocated, the allocation rule packet including a plurality of allocation nodes having a connection relationship, and each allocation node having a corresponding parameter; obtaining a plurality of target parameter values corresponding to the parameters corresponding to the target service and the distribution nodes, and determining a communication resource distribution scheme corresponding to the plurality of target parameter values in the distribution rule packet according to the plurality of target parameter values and a connection relationship between the distribution nodes; and allocating communication resources to the target service according to the communication resource allocation scheme. According to the embodiment of the invention, the communication resource allocation efficiency can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Background Art

[0002] The telecommunications industry has a wide variety of complex business services. With the advent of the 5G era, more new service businesses have emerged. Each service has its own business logic and resource allocation rules. Currently, most systems use hard coding to implement resource allocation for various services. This method requires separate code development for each service, which has high development costs. Each version needs to be updated to support new services, which is time-consuming and labor-intensive.

[0003] It should be noted that the information disclosed in the above background technology section is only used to enhance the understanding of the background of the present disclosure, and therefore may include information that does not constitute the prior art known to ordinary technicians in the field. Summary of the invention

[0004] The purpose of the present disclosure is to provide a communication resource allocation method, device and electronic device, which are used to improve the resource allocation efficiency of communication services and reduce the development cost of communication services.

[0005] According to a first aspect of an embodiment of the present disclosure, a communication resource allocation method is provided, comprising: determining the type of communication resources to be allocated corresponding to a target service, the type of communication resources to be allocated including at least an IP address and a network port, the target service being a main service, or the target service being a sub-service of the main service; calling an allocation rule package corresponding to the communication resources to be allocated, the allocation rule package including a plurality of allocation nodes having a connection relationship, each allocation node having corresponding parameters; obtaining a plurality of target parameter values ​​corresponding to the parameters corresponding to the target service and the allocation node, and determining a communication resource allocation scheme corresponding to the plurality of target parameter values ​​in the allocation rule package according to the connection relationship between the plurality of target parameter values ​​and the allocation nodes; and allocating communication resources to the target service according to the communication resource allocation scheme.

[0006] In an exemplary embodiment of the present disclosure, when the type of communication resources to be allocated is an IP address, the allocation node includes at least an address provider allocation node, an interconnection mode allocation node, a BGP mode allocation node, a BGP session enablement allocation node, an IP mode allocation node, and an address source allocation node.

[0007] In an exemplary embodiment of the present disclosure, the communication resource allocation scheme includes: not allocating IP addresses, or a combination of one or more of the following strategies: allocating subnet addresses, operator-side addresses; allocating one customer-side address; allocating two customer-side addresses; the service network segment is provided by the upstream.

[0008] In an exemplary embodiment of the present disclosure, when the type of communication resources to be allocated is a network port, the allocation node includes at least a service type allocation node, an access type allocation node, a switch filtering allocation node, and a port type allocation node.

[0009] In an exemplary embodiment of the present disclosure, a communication resource allocation scheme includes determining the network port allocated this time in the network port of the target port type of the target device type; wherein the target device type is determined according to the target parameter value, and the target device type includes: devices supporting the activation of GIA, devices associated with non-ENNI resources, devices of non-switch PTMP access type, and devices of PTMP access type; the target port type is determined according to the target parameter value, and the classification method of the target port type at least includes classification according to the data transmission rate.

[0010] In an exemplary embodiment of the present disclosure, it also includes: responding to an allocation rule package generation instruction, initializing the generation of an allocation rule package, and determining the type of communication resources to be allocated corresponding to the allocation rule package; responding to an allocation node setting instruction, setting the levels of multiple allocation nodes and the parameters corresponding to each allocation node; and establishing an association relationship between multiple allocation nodes based on the parameters and levels.

[0011] According to a second aspect of an embodiment of the present disclosure, a communication resource allocation device is provided, comprising: a resource type determination module, configured to determine the type of communication resources to be allocated corresponding to a target service, the type of communication resources to be allocated including at least an IP address and a network port, the target service is a main service, or the target service is a sub-service of the main service; a rule package determination module, configured to call an allocation rule package corresponding to the communication resources to be allocated, the allocation rule package including a plurality of allocation nodes having a connection relationship, each allocation node having corresponding parameters; a parameter matching module, configured to obtain a plurality of target parameter values ​​corresponding to the parameters corresponding to the target service and the allocation node, and determine a communication resource allocation scheme corresponding to the plurality of target parameter values ​​in the allocation rule package according to the connection relationship between the plurality of target parameter values ​​and the allocation nodes; and a resource allocation module, configured to allocate communication resources to the target service according to the communication resource allocation scheme.

[0012] According to a third aspect of the present disclosure, there is provided an electronic device, comprising: a memory; and a processor coupled to the memory, wherein the processor is configured to execute any one of the methods described above based on instructions stored in the memory.

[0013] According to a fourth aspect of the present disclosure, a computer-readable storage medium is provided, on which a program is stored, and when the program is executed by a processor, the communication resource allocation method as described in any one of the above items is implemented.

[0014] The disclosed embodiment can achieve decoupling of the target service from the allocation rule by calling the corresponding allocation rule package according to the type of communication resources to be allocated corresponding to the target service, and determining the communication resource allocation plan according to the target parameter value of the communication resources to be allocated and the allocation rule package. The communication resource allocation plan is automatically determined by an independent allocation rule package and automatically capturing the target parameter value of the target service. There is no need to independently develop communication resource configuration logic for a newly developed communication service or each sub-service of a communication service, and resources can be simply, conveniently and flexibly allocated to various communication services.

[0015] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] The accompanying drawings herein are incorporated into the specification and constitute a part of the specification, illustrate embodiments consistent with the present disclosure, and together with the specification are used to explain the principles of the present disclosure. Obviously, the accompanying drawings described below are only some embodiments of the present disclosure, and for ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without creative work.

[0017] Figure 1 is a flow chart of a communication resource allocation method in an exemplary embodiment of the present disclosure.

[0018] Figure 2 It is a schematic diagram of generating an allocation rule package in one embodiment of the present disclosure.

[0019] Figure 3 It is a schematic diagram of an allocation rule package for allocating IP addresses in one embodiment of the present disclosure.

[0020] Figure 4 It is a schematic diagram of an allocation rule package for allocating network ports in another embodiment of the present disclosure.

[0021] Figure 5 It is a block diagram of a communication resource allocation device in an exemplary embodiment of the present disclosure.

[0022] Figure 6 is a block diagram of an electronic device in an exemplary embodiment of the present disclosure. DETAILED DESCRIPTION

[0023] Example embodiments will now be described more fully with reference to the accompanying drawings. However, example embodiments can be implemented in a variety of forms and should not be construed as being limited to the examples set forth herein; on the contrary, these embodiments are provided so that the present disclosure will be more comprehensive and complete, and the concepts of the example embodiments are fully conveyed to those skilled in the art. The described features, structures, or characteristics may be combined in one or more embodiments in any suitable manner. In the following description, many specific details are provided to provide a full understanding of the embodiments of the present disclosure. However, those skilled in the art will appreciate that the technical solutions of the present disclosure may be practiced while omitting one or more of the specific details, or other methods, components, devices, steps, etc. may be adopted. In other cases, known technical solutions are not shown or described in detail to avoid obscuring various aspects of the present disclosure.

[0024] In addition, the accompanying drawings are only schematic diagrams of the present disclosure, and the same reference numerals in the drawings represent the same or similar parts, so their repeated description will be omitted. Some of the block diagrams shown in the accompanying drawings are functional entities, which do not necessarily correspond to physically or logically independent entities. These functional entities can be implemented in software form, or implemented in one or more hardware modules or integrated circuits, or implemented in different networks and / or processor devices and / or microcontroller devices.

[0025] The exemplary embodiments of the present disclosure are described in detail below with reference to the accompanying drawings.

[0026] Figure 1 is a flow chart of a communication resource allocation method in an exemplary embodiment of the present disclosure.

[0027] refer to Figure 1 , the communication resource allocation method 100 may include:

[0028] Step S1, determining the type of communication resources to be allocated corresponding to the target service, the type of communication resources to be allocated at least including an IP address and a network port, the target service is a main service, or the target service is a sub-service of the main service;

[0029] Step S2, calling an allocation rule package corresponding to the communication resource to be allocated, wherein the allocation rule package includes a plurality of allocation nodes having a connection relationship, and each of the allocation nodes has corresponding parameters;

[0030] Step S3, obtaining multiple target parameter values ​​corresponding to the target service and the parameters corresponding to the allocation nodes, and determining the communication resource allocation scheme corresponding to the multiple target parameter values ​​in the allocation rule package according to the multiple target parameter values ​​and the connection relationship between the allocation nodes;

[0031] Step S4: allocate communication resources to the target service according to the communication resource allocation scheme.

[0032] The disclosed embodiment can achieve decoupling of the target service from the allocation rule by calling the corresponding allocation rule package according to the type of communication resources to be allocated corresponding to the target service, and determining the communication resource allocation plan according to the target parameter value of the communication resources to be allocated and the allocation rule package. The communication resource allocation plan is automatically determined by an independent allocation rule package and automatically capturing the target parameter value of the target service. There is no need to independently develop communication resource configuration logic for a newly developed communication service or each sub-service of a communication service, and resources can be simply, conveniently and flexibly allocated to various communication services.

[0033] Next, each step of the communication resource allocation method 100 is described in detail.

[0034] In step S1, the type of communication resources to be allocated corresponding to the target service is determined, the type of communication resources to be allocated at least includes an IP address and a network port, the target service is a main service, or the target service is a sub-service of the main service.

[0035] The disclosed embodiments are used by operators to allocate communication resources for communication services (also called communication services or applications) that need to communicate or interact through a network. A communication service can be an independent communication service, also called a main service, or a sub-service under a main service.

[0036] The main service may be, for example, a voice call service, a video call service, an instant messaging service, a remote desktop service, an online game service, a cloud service, etc. The sub-service may be, for example, a video conference sub-service, an instant messaging sub-service, a file transfer sub-service, an online game sub-service, etc. Among them, a video conference sub-service means that in a video conference service, there may be sub-services for different conference scenarios or conference types, and each sub-service may need to allocate independent communication resources to ensure isolation and security between different conferences; an instant messaging sub-service means that in an instant messaging application, the sending and receiving of instant messages may be regarded as a sub-service, and each user or each session may need independent communication resources; a file transfer sub-service means that if an application provides a file transfer function, it may allocate independent communication resources for each file transfer session, so as to directly transfer large files or multiple files between users; an online game sub-service means that in an online game platform, different game sessions or different game modes may be regarded as different sub-services, and each sub-service may need to allocate independent communication resources to ensure isolation and performance optimization of game sessions.

[0037] In some embodiments, the communication resources allocated by the operator for the main service or sub-service may include IP addresses and network ports (port numbers), bandwidth and network connections, security resources (security authentication, encryption services or firewall protection), monitoring and troubleshooting services, etc. Those skilled in the art can set the types of communication resources allocated to the main service or sub-service according to actual conditions, and this application does not impose special restrictions on this. The allocation process of communication resources will be explained later by taking the allocation of IP addresses and the allocation of network ports as examples, and the allocation of other types of communication resources can refer to the subsequent embodiments.

[0038] In the embodiments of the present disclosure, the type of communication resources to be allocated that are initialized when the main service or sub-service is established can be pre-set, that is, the communication resources to be allocated of the main service or sub-service can be set, so that when the main service or sub-service (hereinafter collectively referred to as the target service) that needs to allocate communication resources is running, the type of communication resources to be allocated associated with the target service can be directly read.

[0039] In step S2, an allocation rule package corresponding to the communication resource to be allocated is called, wherein the allocation rule package includes a plurality of allocation nodes having a connection relationship, and each of the allocation nodes has corresponding parameters.

[0040] In the disclosed embodiments, it is necessary to pre-establish allocation rule packages corresponding to different communication resources. The allocation rule package is independent of the target service. One allocation rule package may correspond to multiple target services, and one target service may correspond to multiple allocation rule packages. In an exemplary embodiment, one communication resource may also correspond to multiple allocation rule packages to implement multiple allocation strategies for one communication resource. In this embodiment, a label or other classification auxiliary tool may be set for each allocation rule package, so that when it is necessary to call the allocation rule package for the target service, the allocation rule package corresponding to the label may be matched according to the label pre-set for the target service, or, according to the preset parameters or other information of the target service (such as a classification number, identifier, etc.), the allocation rule package corresponding to the target service may be accurately matched among the multiple allocation rule packages corresponding to one communication resource.

[0041] Figure 2 It is a schematic diagram of generating an allocation rule package in one embodiment of the present disclosure.

[0042] refer to Figure 2 In an exemplary embodiment, the process of generating an allocation rule package includes:

[0043] Step S01, responding to an allocation rule package generation instruction, initializing generation of an allocation rule package, and determining the type of communication resources to be allocated corresponding to the allocation rule package;

[0044] Step S02, responding to the allocation node setting instruction, setting the levels of multiple allocation nodes and the parameters corresponding to each of the allocation nodes;

[0045] Step S03: establishing association relationships among the multiple allocation nodes according to the parameters and the levels.

[0046] exist Figure 2 In the illustrated embodiment, the initialization of the generation of the allocation rule package can be implemented by a fixed logic set by the software. The user can customize the generation of different allocation rule packages, and the allocation rule packages generated by different users can be managed uniformly to prevent duplication.

[0047] When calling the allocation rule package in step S2, the allocation rule package to be called can be directly determined from the allocation rule package set formed by the allocation rule packages generated by different users, or the user who generated the allocation rule package can be determined according to the source of the target service, and then the allocation rule package to be called this time can be determined from the allocation rule package generated by the user, so as to improve the efficiency of calling the allocation rule package.

[0048] During the process of initializing the generation of the allocation rule package, the user needs to set the type of communication resources to be allocated corresponding to the allocation rule package, and can also set other information corresponding to the allocation rule package (such as the corresponding service type, etc.). For example, allocation rule package A can be set to be an allocation rule package for allocating IP addresses for class B services.

[0049] The corresponding allocation rule package can be configured according to the specific business scenario. For example, when configuring the allocation rule package for the GIS (Global Internet Service, international Internet access product) service, different allocation rule packages need to be set according to different sub-services. Sub-service A needs to allocate resources such as IP addresses and network ports, and sub-service B only needs to allocate network ports. When it is determined that the GIS service includes services A and B, the IP address allocation rule package and port allocation rule package are called based on service A, and the port allocation rule package is called based on product B. Allocation rules can be configured for each target service. The allocation rules include, for example, the allocation rule package code used or the type code of the allocation rule package. The allocation rules can be implemented through executable script commands, including judgment conditions, methods for executing allocation rule packages for different sub-products, etc.

[0050] Next, multiple allocation nodes and the parameters corresponding to each allocation node can be set in the allocation rule package generated initially according to user settings. The allocation nodes of allocation rule packages corresponding to different communication resources to be allocated are different, and the parameters corresponding to the allocation nodes are different; even for different allocation rule packages corresponding to the same communication resource to be allocated (such as an IP address), the internal allocation nodes are not completely the same or completely different, and the types of parameters corresponding to the allocation nodes are not completely the same or completely different. Users can set the allocation nodes and their corresponding parameters of different allocation rule packages by themselves, and can modify them at any time during subsequent use.

[0051] Finally, the association relationship between different allocation nodes can be established according to user settings, for example, forming a directed acyclic graph (DAG). A directed acyclic graph is a special graph, in which directed means that the edges in the graph have directions, that is, each edge has a starting point and an end point, usually represented by an arrow; acyclic means that there is no path in the graph that starts from a node and passes through several edges and then returns to the node, that is, there is no loop in the graph. Before establishing the association relationship between different allocation nodes, different allocation nodes can be ranked according to user settings, that is, topological sorting, so that for each directed edge (u, v), node u appears before node v in the sorting.

[0052] Each allocation node corresponds to a parameter, and the allocation node is used to determine the next allocation node corresponding to the target service according to the parameter value of the corresponding parameter. Among the multiple allocation nodes, there is a unique root node, which connects two or more allocation nodes. All allocation nodes except the root node can be connected to one or more upper-level nodes. Some allocation nodes are connected to two or more lower-level nodes; some allocation nodes are not connected to lower-level nodes, but directly connected to the communication resource allocation scheme. A communication resource allocation scheme can connect one or more allocation nodes, and the number of communication resource allocation schemes is at least two.

[0053] In an exemplary embodiment, the user can set the upper node or lower node / communication resource allocation scheme connected to each allocation node by setting the parameters corresponding to each allocation node and the level of each allocation node. After forming the association relationship between multiple allocation nodes, the user can also adjust the parameters and level corresponding to each allocation node at any time, add, delete, and modify the allocation node, thereby adjusting multiple allocation nodes and the association relationship between them.

[0054] The user can preset multiple allocation rules, generate multiple allocation rule packages in batches, and manage them centrally. In some embodiments, when a new allocation rule package needs to be formed, the existing allocation rule package can also be copied and adaptively modified to quickly form a new allocation rule package.

[0055] Since the allocation rule package is decoupled from the specific service, there is no need to set up hardware allocation logic for each subsequently developed service. It is only necessary to directly associate the existing allocation rule package, or to generate, copy and modify the allocation rule package in a simple way. In this way, the communication resource allocation rules for a large number of new services can be set up, which can greatly improve the development efficiency of new services and reduce the development cost of new services.

[0056] In an exemplary embodiment, after setting up the allocation rule package, a unified allocation rule API interface can be provided. After obtaining a request to allocate communication resources to a target service, the allocation rule corresponding to the target service is automatically found based on the parameter information of the target service passed in, and then the corresponding rule package is found based on the script content and rule package code in the allocation rule to execute the operating logic (script content) in the rule package to complete the communication resource allocation.

[0057] In step S3, multiple target parameter values ​​corresponding to the target service and the parameters corresponding to the allocation node are obtained, and according to the connection relationship between the multiple target parameter values ​​and the allocation nodes, the communication resource allocation scheme corresponding to the multiple target parameter values ​​in the allocation rule package is determined.

[0058] After calling the allocation rule package corresponding to the target service, multiple parameters required by the allocation rule package are determined, and the target parameter values ​​of the target service for these parameters are read. For example, if the parameter corresponding to a distribution node in the allocation rule package is the BGP mode, it can be determined whether the target service includes the setting information of the BGP mode. If so, the setting information is used as the target parameter value corresponding to the BGP mode. If not, it is not necessary to determine the target parameter value for the BGP mode parameter.

[0059] Since one target service may only correspond to one communication resource allocation scheme, the number of target parameter values ​​is less than the number of allocation nodes, and not every allocation node has a corresponding target parameter value.

[0060] For an allocation node with a corresponding target parameter value, the target parameter value can be used to determine which allocation node its subordinate node is, or which communication resource allocation scheme the subordinate corresponds to. Ultimately, the communication resource allocation scheme corresponding to the target service is determined based on one or more target parameter values ​​and the association between the allocation nodes.

[0061] Finally, in step S4, communication resources are allocated to the target service according to the communication resource allocation scheme. The communication resource allocation scheme may include the type, quantity, value, etc. of the allocated communication resources when allocating the communication resources to be allocated to the target service.

[0062] For example, when the type of communication resources to be allocated is an IP address, the allocation node includes at least the address provider, interconnection mode, BGP mode, BGP session enablement, IP mode, and address source; the communication resource allocation plan includes: not allocating IP addresses, or a combination of one or more of the following strategies: allocating subnet addresses, operator-side addresses; allocating one customer-side address; allocating two customer-side addresses; the service network segment is provided by the upstream.

[0063] Next, taking the communication resource to be allocated as an IP address as an example, the allocation node, target parameter value, and communication resource allocation plan are explained.

[0064] Figure 3 It is a schematic diagram of an allocation rule package for allocating IP addresses in one embodiment of the present disclosure.

[0065] refer to Figure 3 When the type of communication resources to be allocated is an IP address, the allocation nodes in the allocation rule package 300 may include: an address provider allocation node 31, an interconnection mode allocation node 32, a BGP mode allocation node 33, a BGP session enablement allocation node 34, an IP mode allocation node 35, and an address source allocation node 36.

[0066] At this time, according to the connection relationship between the nodes, when the allocation process passes through a certain node, the target parameter value of the parameter corresponding to the target service at the node can be obtained.

[0067] The parameter of the address provider allocation node 31 is the address provider, and the target parameter value is the identifier of the address provider. The address provider allocation node 31 is a root node, which is used to determine whether the service needs the operator to allocate an IP address. If necessary, it continues to allocate IP addresses. If not, it enters the communication resource allocation scheme 1, directly ends the IP address allocation, and uses the IP address provided by the upstream.

[0068] The parameter of the interconnection mode allocation node 32 is the interconnection mode, and the target parameter value is BGP interconnection or static protocol. The interconnection mode allocation node 32 is used to determine whether the interconnection mode of the service is BGP interconnection or static protocol. If it is BGP interconnection, it enters the downstream node - BGP mode allocation node 33, and if it is static protocol, it enters the downstream node - IP mode allocation node 35.

[0069] The parameter of the BGP mode allocation node 33 is the BGP mode, and the target parameter value is loop mode or interface mode. The BGP mode allocation node 33 is used to determine whether the BGP mode of the service is loop mode or interface mode. If it is loop mode, it enters the downstream node - BGP session enable allocation node 34. If it is interface mode, it enters the communication resource allocation scheme 3 to allocate a subnet address (for example, 1.1.1.0 / 30), an operator side (communication peer) address (for example, 1.1.1.1 / 30), and a client side address (for example, 1.1.1.2 / 30) for the target service.

[0070] The parameter of the BGP session enabling allocation node 34 is the state of the BGP session, and the target parameter value is yes or no (BGPsession=Yes, or, BGP session=NO). The BGP session enabling allocation node 34 is used to determine whether the BGP session function of the target service is enabled. If yes, the communication resource allocation scheme 2 is used to allocate a subnet address (e.g., 1.1.1.0 / 29), an operator side address (e.g., 1.1.1.1 / 29), and two client side addresses (e.g., 1.1.1.2 / 29 and 1.1.1.3 / 29) to the target service. If no, the communication resource allocation scheme 3 is used to allocate a subnet address (e.g., 1.1.1.0 / 30), an operator side (communication peer) address (e.g., 1.1.1.1 / 30), and a client side address (e.g., 1.1.1.2 / 30) to the target service.

[0071] The parameter of IP mode allocation node 35 is IP mode, and the target parameter value is switching mode or routing mode. IP mode allocation node 35 is used to determine whether the IP mode of the target service is switching mode or routing mode. If it is switching mode, it enters the communication resource allocation plan 5 to allocate a subnet address (e.g. 1.1.3.0 / 30), an operator side address (e.g. 1.1.3.1 / 30) and a service network segment provided by the upstream for the target service; if it is routing mode, it enters the downstream node - address source allocation node 36.

[0072] The parameter of the address source allocation node 36 is the address source, and the target parameter value is GIA (Generic Interface Adapter) interconnection or static service. If it is GIA interconnection, it enters the communication resource allocation plan 3 to allocate a subnet address (for example, 1.1.1.0 / 30), an operator side (communication peer) address (for example, 1.1.1.1 / 30), and a customer side address (for example, 1.1.1.2 / 30) to the target service; if it is a static service, it enters the communication resource allocation plan 4, and the service network segment is provided by the upstream.

[0073] The parameters corresponding to the above allocation nodes, the connection relationship between the allocation nodes, and the communication resource allocation schemes can be adjusted by those skilled in the art according to actual conditions, and the present disclosure is only an example.

[0074] By establishing associations between multiple allocation nodes and multiple communication resource allocation schemes, communication resource allocation can be achieved quickly and accurately when facing different target services. There is no need to determine the communication resource allocation logic for each service separately, which can greatly improve the development and launch efficiency of communication services.

[0075] In addition to allocating IP addresses, if the target service also needs to allocate network ports, the allocation rule package corresponding to the network port allocation can also be called.

[0076] Figure 4 It is a schematic diagram of an allocation rule package for allocating network ports in another embodiment of the present disclosure.

[0077] refer to Figure 4 When the type of communication resources to be allocated is a network port, the allocation nodes in the allocation rule package 400 may include: a service type allocation node 41, an access type allocation node 42, a filtering switch allocation node 43, and downstream port type allocation nodes 44, 45, 46, and 47 corresponding to the service type allocation node 41, the access type allocation node 42, and the filtering switch allocation node 43, respectively.

[0078] The overall process of allocating network ports is divided into device type determination and port type determination. The device type determination process involves three allocation nodes, namely, service type allocation node 41, access type allocation node 42, and filtering switch allocation node 43, to determine the device type that provides the network port; the network port determination process involves one of the downstream port type allocation nodes 44, 45, 46, and 47 corresponding to the service type allocation node 41, access type allocation node 42, and filtering switch allocation node 43, to determine what network port to allocate under the corresponding device type.

[0079] The parameter of the service type allocation node 41 is the service type of the target service, and the corresponding target parameter value is the corresponding GIA (Generic Interface Adapter) service or non-specified GIA service, which is used to determine whether the device providing the network port is specified as a GIA device. If so, the device type is GIA, and enters the port type allocation node 47 to determine the port type; otherwise, continue to enter the downstream node - access type allocation node 42.

[0080] The parameter of the access type allocation node 42 is the access type of the target service, and the target parameter value is PTP (Point-to-Point) or PTMP (Point-to-Multipoint). The access type allocation node 42 is used to determine whether the device type providing the network port is a PTP type device or a PTMP type device. If it is a PTMP type device, it continues to enter the downstream node - the filtering switch allocation node 43. If it is a PTP type device, it enters the port type allocation node 46 corresponding to the PTP type device to determine the port type.

[0081] The parameter of the filtering switch allocation node 43 is whether to filter the switch device. If yes, the device type is finally determined to be PTMP access type + non-switch, and the port type allocation node 45 corresponding to the device type is entered to determine the port type; if not, the device type is determined to be all devices of the PTMP access type, and the port type allocation node 44 corresponding to the device type is entered to determine the port type.

[0082] Assuming that there are two types of ports, A and B, different communication resource allocation schemes can be determined for all devices of PTMP access type according to the port type. If the port type is A, communication resource allocation scheme 1A can be matched to determine the device with the lowest port utilization among all PTMP devices, and a port is randomly determined among the A-type ports of these devices; if the port type is B, communication resource allocation scheme 1B can be matched to determine the device with the lowest port utilization among all PTMP devices, and a port is randomly determined among the B-type ports of these devices.

[0083] For all non-switch PTMP access type devices, if the port type is A, communication resource allocation scheme 2A can be matched to determine the device with the lowest port utilization among all non-switch PTMP devices, and randomly determine the port among the A-type ports of these devices; if the port type is B, communication resource allocation scheme 2B can be matched to determine the device with the lowest port utilization among all non-switch PTMP devices, and randomly determine the port among the B-type ports of these devices.

[0084] When the device access type is PTP, if the port type is A, the communication resource allocation scheme 3A can be matched, and the device with the lowest port utilization is determined among the devices associated with non-ENNI (External Network-Network Interface, a standard interface used to connect two different operators or network service providers) resources, and the port is randomly determined among the A-type ports of these devices; if the port type is B, the communication resource allocation scheme 3B can be matched, and the device with the lowest port utilization is determined among the devices associated with non-ENNI resources, and the port is randomly determined among the B-type ports of these devices.

[0085] For devices with service type GIA, if the port type is A, communication resource allocation scheme 4A can be matched to determine the device with the lowest port utilization among the devices that support the activation of GIA, and randomly determine the port among the type A ports of these devices; if the port type is B, communication resource allocation scheme 4B can be matched to determine the device with the lowest port utilization among the devices that support the activation of GIA, and randomly determine the port among the type B ports of these devices.

[0086] There may be multiple types of port types, and they may correspond to multiple allocation nodes of different levels, and each allocation node may correspond to multiple downstream nodes or communication resource allocation schemes. For example, the port type may be determined according to the data transmission rate (such as 1Gbps, 10Gbps, 40Gbps, 100Gbps, etc.), such as GE port (Gigabit Ethernet) or 10GE port (10Gigabit Ethernet), or according to the physical interface type (such as RJ-45, SFP, QSFP, etc.), or the port type may be selected according to the network protocol that the target service needs to support, such as Ethernet port, Fibre Channel port, InfiniBand port, etc., or the port type may be determined according to the function and purpose in the service design, such as management port, data port, uplink port, stacking port, PoE port, audio stream port, control port, signaling port, network security and firewall rule port, etc.

[0087] Figure 4 The port type allocation shown is only an example. Those skilled in the art can set the allocation nodes of port types and device types according to actual conditions, and the present disclosure does not limit this.

[0088] In summary, by determining an independent allocation rule package for the target service, it is possible to achieve flexible communication resource allocation, rather than allocating communication resources to the target service according to the allocation node of the allocation rule package and the communication resource allocation scheme. Since all allocation rule packages can be modified at any time, when the allocation rule (i.e., the type and number of the allocation rule package corresponding to the target service) changes, only the allocation rule or the allocation rule package needs to be changed. There is no need for hard-coding development or re-issuing the version. Only the service needs to be restarted. It has strong applicability and can quickly support changes in communication services.

[0089] Corresponding to the above method embodiments, the present disclosure also provides a communication resource allocation device, which can be used to execute the above method embodiments.

[0090] Figure 5 It is a block diagram of a communication resource allocation device in an exemplary embodiment of the present disclosure.

[0091] refer to Figure 5 , the communication resource allocation device 500 may include:

[0092] The resource type determination module 51 is configured to determine the type of communication resources to be allocated corresponding to the target service, the type of communication resources to be allocated at least includes an IP address and a network port, and the target service is a main service, or the target service is a sub-service of the main service;

[0093] A rule package determination module 52 is configured to call an allocation rule package corresponding to the communication resource to be allocated, wherein the allocation rule package includes a plurality of allocation nodes having a connection relationship, and each allocation node has corresponding parameters;

[0094] A parameter matching module 53 is configured to obtain a plurality of target parameter values ​​corresponding to the target service and the parameters corresponding to the allocation nodes, and determine a communication resource allocation scheme corresponding to the plurality of target parameter values ​​in the allocation rule package according to the plurality of target parameter values ​​and the connection relationship between the allocation nodes;

[0095] The resource allocation module 54 is configured to allocate communication resources to the target service according to the communication resource allocation scheme.

[0096] In an exemplary embodiment of the present disclosure, when the type of communication resources to be allocated is an IP address, the allocation node includes at least an address provider allocation node, an interconnection mode allocation node, a BGP mode allocation node, a BGP session enablement allocation node, an IP mode allocation node, and an address source allocation node.

[0097] In an exemplary embodiment of the present disclosure, the communication resource allocation scheme includes: not allocating IP addresses, or a combination of one or more of the following strategies: allocating subnet addresses, operator-side addresses; allocating one customer-side address; allocating two customer-side addresses; the service network segment is provided by the upstream.

[0098] In an exemplary embodiment of the present disclosure, when the type of the communication resource to be allocated is a network port, the allocation node at least includes a service type allocation node, an access type allocation node, a switch filtering allocation node, and a port type allocation node.

[0099] In an exemplary embodiment of the present disclosure, the communication resource allocation scheme includes determining the network port allocated this time among the network ports of the target port type of the target device type; wherein the target device type is determined according to the target parameter value, and the target device type includes: devices supporting the activation of GIA, devices associated with non-ENNI resources, devices of non-switch PTMP access type, and devices of PTMP access type; the target port type is determined according to the target parameter value, and the classification method of the target port type at least includes classification according to data transmission rate.

[0100] In an exemplary embodiment of the present disclosure, it also includes an allocation rule package setting module, which is configured to: respond to an allocation rule package generation instruction, initialize the generation of an allocation rule package, and determine the type of communication resources to be allocated corresponding to the allocation rule package; respond to an allocation node setting instruction, set the levels of multiple allocation nodes and the parameters corresponding to each of the allocation nodes; and establish an association relationship between the multiple allocation nodes based on the parameters and the levels.

[0101] Since the functions of the device 500 have been described in detail in the corresponding method embodiments, the present disclosure will not elaborate on them here.

[0102] It should be noted that, although several modules or units of the device for action execution are mentioned in the above detailed description, this division is not mandatory. In fact, according to the embodiments of the present disclosure, the features and functions of two or more modules or units described above can be embodied in one module or unit. On the contrary, the features and functions of one module or unit described above can be further divided into multiple modules or units to be embodied.

[0103] In an exemplary embodiment of the present disclosure, an electronic device capable of implementing the above method is also provided.

[0104] It will be appreciated by those skilled in the art that various aspects of the present invention may be implemented as systems, methods or program services. Therefore, various aspects of the present invention may be specifically implemented in the following forms, namely: complete hardware implementation, complete software implementation (including firmware, microcode, etc.), or a combination of hardware and software implementations, which may be collectively referred to herein as "circuits", "modules" or "systems".

[0105] Refer to the following Figure 6 The electronic device 600 according to this embodiment of the present invention is described. Figure 6 The electronic device 600 shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.

[0106] like Figure 6 As shown, the electronic device 600 is in the form of a general computing device. The components of the electronic device 600 may include but are not limited to: at least one processing unit 610, at least one storage unit 620, and a bus 630 connecting different system components (including the storage unit 620 and the processing unit 610).

[0107] The storage unit stores program codes, which can be executed by the processing unit 610, so that the processing unit 610 performs the steps according to various exemplary embodiments of the present invention described in the above “Exemplary Method” section of this specification. For example, the processing unit 610 can perform the method shown in the embodiment of the present disclosure.

[0108] The storage unit 620 may include a readable medium in the form of a volatile storage unit, such as a random access memory unit (RAM) 6201 and / or a cache memory unit 6202 , and may further include a read-only memory unit (ROM) 6203 .

[0109] The storage unit 620 may also include a program / utility 6204 having a set (at least one) of program modules 6205, such program modules 6205 including but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment.

[0110] Bus 630 may represent one or more of several types of bus structures, including a memory unit bus or memory unit controller, a peripheral bus, an accelerated graphics port, a processing unit, or a local bus using any of a variety of bus architectures.

[0111] The electronic device 600 may also communicate with one or more external devices 700 (e.g., keyboards, pointing devices, Bluetooth devices, etc.), may also communicate with one or more devices that enable a user to interact with the electronic device 600, and / or communicate with any device that enables the electronic device 600 to communicate with one or more other computing devices (e.g., routers, modems, etc.). Such communication may be performed via an input / output (I / O) interface 650. Furthermore, the electronic device 600 may also communicate with one or more networks (e.g., local area networks (LANs), wide area networks (WANs), and / or public networks, such as the Internet) via a network adapter 660. As shown, the network adapter 660 communicates with other modules of the electronic device 600 via a bus 630. It should be understood that, although not shown in the figure, other hardware and / or software modules may be used in conjunction with the electronic device 600, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, etc.

[0112] Through the description of the above implementation methods, it is easy for those skilled in the art to understand that the example implementation methods described here can be implemented by software or by combining software with necessary hardware. Therefore, the technical solution according to the implementation methods of the present disclosure can be embodied in the form of a software service, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, including several instructions to enable a computing device (which can be a personal computer, a server, a terminal device, or a network device, etc.) to execute the method according to the implementation methods of the present disclosure.

[0113] In an exemplary embodiment of the present disclosure, a computer-readable storage medium is also provided, on which a program service capable of implementing the above method of the present specification is stored. In some possible implementations, various aspects of the present invention can also be implemented in the form of a program service, which includes a program code, and when the program service is run on a terminal device, the program code is used to enable the terminal device to execute the steps according to various exemplary embodiments of the present invention described in the above "Exemplary Method" section of the present specification.

[0114] The program service for implementing the above method according to an embodiment of the present invention can adopt a portable compact disk read-only memory (CD-ROM) and include program code, and can be run on a terminal device, such as a personal computer. However, the program service of the present invention is not limited thereto. In this document, a readable storage medium can be any tangible medium containing or storing a program, which can be used by or in combination with an instruction execution system, an apparatus or a device.

[0115] The program service may employ any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. The readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination thereof. More specific examples (a non-exhaustive list) of readable storage media include: an electrical connection with one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof.

[0116] Computer readable signal media may include data signals propagated in baseband or as part of a carrier wave, in which readable program code is carried. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Readable signal media may also be any readable medium other than a readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.

[0117] The program code embodied on the readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wired, optical cable, RF, etc., or any suitable combination of the foregoing.

[0118] Program code for performing the operations of the present invention may be written in any combination of one or more programming languages, including object-oriented programming languages ​​such as Java, C++, etc., and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user computing device, partially on the user device, as a separate software package, partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server. In cases involving a remote computing device, the remote computing device may be connected to the user computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computing device (e.g., through the Internet using an Internet service provider).

[0119] In addition, the above-mentioned figures are only schematic illustrations of the processes included in the method according to an exemplary embodiment of the present invention, and are not intended to be limiting. It is easy to understand that the processes shown in the above-mentioned figures do not indicate or limit the time sequence of these processes. In addition, it is also easy to understand that these processes can be performed synchronously or asynchronously, for example, in multiple modules.

[0120] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The specification and examples are to be considered exemplary only, and the true scope and concept of the present disclosure are indicated by the claims.

Claims

1. A communication resource allocation method, characterized in that: include: Determine the type of communication resources to be allocated corresponding to the target service, the type of communication resources to be allocated at least includes an IP address and a network port, the target service is a main service, or the target service is a sub-service of the main service; Calling an allocation rule package corresponding to the communication resource to be allocated, wherein the allocation rule package includes a plurality of allocation nodes having a connection relationship, and each of the allocation nodes has corresponding parameters; Acquire multiple target parameter values ​​corresponding to the target service and the parameters corresponding to the allocation nodes, and determine the communication resource allocation scheme corresponding to the multiple target parameter values ​​in the allocation rule package according to the multiple target parameter values ​​and the connection relationship between the allocation nodes; Communication resources are allocated to the target service according to the communication resource allocation scheme.

2. The communication resource allocation method according to claim 1, characterized in that: When the type of communication resources to be allocated is an IP address, the allocation nodes at least include an address provider allocation node, an interconnection mode allocation node, a BGP mode allocation node, a BGP session enablement allocation node, an IP mode allocation node, and an address source allocation node.

3. The communication resource allocation method according to claim 2, characterized in that: The communication resource allocation scheme includes: No IP address is allocated, or a combination of one or more of the following strategies: Allocate subnet addresses and operator-side addresses; Assign a client-side address; Allocate two client-side addresses; The service network segment is provided by the upstream.

4. The communication resource allocation method according to claim 1, characterized in that: When the type of the communication resource to be allocated is a network port, the allocation node at least includes a service type allocation node, an access type allocation node, a switch filter allocation node, and a port type allocation node.

5. The communication resource allocation method according to claim 4, characterized in that: The communication resource allocation scheme includes determining the currently allocated network port among the network ports of the target port type of the target device type; The target device type is determined according to the target parameter value, and the target device type includes: a device supporting the activation of GIA, a device associated with non-ENNI resources, a non-switch PTMP access type device, and a PTMP access type device; The target port type is determined according to the target parameter value, and the classification method of the target port type at least includes classification according to data transmission rate.

6. The communication resource allocation method according to claim 1, characterized in that: Also includes: In response to the allocation rule package generation instruction, initializing the generation of the allocation rule package, and determining the type of communication resources to be allocated corresponding to the allocation rule package; In response to the allocation node setting instruction, the levels of the plurality of allocation nodes and the parameters corresponding to each of the allocation nodes are set; An association relationship between the multiple allocation nodes is established according to the parameters and the levels.

7. A communication resource allocation device, characterized in that: include: a resource type determination module, configured to determine the type of communication resources to be allocated corresponding to the target service, the type of communication resources to be allocated including at least an IP address and a network port, the target service being a main service, or the target service being a sub-service of the main service; A rule package determination module, configured to call an allocation rule package corresponding to the communication resource to be allocated, wherein the allocation rule package includes a plurality of allocation nodes having a connection relationship, and each allocation node has corresponding parameters; a parameter matching module, configured to obtain a plurality of target parameter values ​​corresponding to the target service and the parameters corresponding to the allocation node, and determine, according to the plurality of target parameter values ​​and the connection relationship between the allocation nodes, a communication resource allocation scheme corresponding to the plurality of target parameter values ​​in the allocation rule package; The resource allocation module is configured to allocate communication resources to the target service according to the communication resource allocation scheme.

8. An electronic device, characterized in that: include: Memory; as well as A processor coupled to the memory, the processor being configured to execute the method according to any one of claims 1 to 7 based on instructions stored in the memory.

9. A computer-readable storage medium having a program stored thereon, wherein when the program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.

10. A computer program service, comprising a computer program, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.