CN107919975B - Business resource allocation method and device - Google Patents

Business resource allocation method and device Download PDF

Info

Publication number
CN107919975B
CN107919975B CN201610886089.5A CN201610886089A CN107919975B CN 107919975 B CN107919975 B CN 107919975B CN 201610886089 A CN201610886089 A CN 201610886089A CN 107919975 B CN107919975 B CN 107919975B
Authority
CN
China
Prior art keywords
service
resources
resource
network
networking configuration
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201610886089.5A
Other languages
Chinese (zh)
Other versions
CN107919975A (en
Inventor
孙金伟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
ZTE Corp
Original Assignee
ZTE Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by ZTE Corp filed Critical ZTE Corp
Priority to CN201610886089.5A priority Critical patent/CN107919975B/en
Publication of CN107919975A publication Critical patent/CN107919975A/en
Application granted granted Critical
Publication of CN107919975B publication Critical patent/CN107919975B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/70Admission control; Resource allocation

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses a business resource allocation method, which comprises the steps of acquiring logic network information, and determining a business resource range according to the logic network information; acquiring a service type, and determining a networking configuration requirement corresponding to the service type from a logic network according to a preset service distribution rule; and distributing the service resources corresponding to the networking configuration requirements in the service resource range according to the networking configuration requirements. The invention also discloses a service resource allocation device.

Description

Business resource allocation method and device
Technical Field
The present invention relates to the field of Software Defined Networks (SDNs), and in particular, to a method and an apparatus for allocating service resources.
Background
In the SDN, a network function and a service processing function are decoupled and separated from network equipment hardware, so that the network does not become a bottleneck limiting service online and cloud efficiency; the SDN is loaded on a physical network, the physical difference of the bottom layer is shielded, the whole network is reconstructed in a virtual space, and the network established in the virtual space is also called a logic network; the abstracted logic network and the service resource configuration thereof become flexible and complex. SDN requires maintenance personnel to know and memorize a large amount of protocol information and network networking information to satisfy the flexible and variable service types of logical networks, whereas the traditional method of command line configuration of service resources has not satisfied the increasingly complex requirements of networking and various network protocols.
Therefore, how to allocate service resources on a logic network according to service types, save maintenance cost, and improve operation and maintenance efficiency is an urgent problem to be solved.
Disclosure of Invention
In view of this, embodiments of the present invention are expected to provide a method and an apparatus for allocating service resources, which can allocate service resources on a logical network according to service types, save maintenance cost, and improve operation and maintenance efficiency.
In order to achieve the purpose, the technical scheme of the invention is realized as follows:
the embodiment of the invention provides a service resource allocation method, which comprises the following steps:
acquiring logic network information, and determining a service resource range according to the logic network information;
acquiring a service type, and determining a networking configuration requirement corresponding to the service type from a logic network according to a preset service distribution rule;
and distributing the service resources corresponding to the networking configuration requirements in the service resource range according to the networking configuration requirements.
In the above scheme, the method further comprises: and distributing corresponding service resources to different networking configuration requirements generated simultaneously by adopting multithreading.
In the foregoing solution, before allocating the service resource corresponding to the networking configuration requirement, the method further includes: and confirming available service resources, and allocating the available service resources for the networking configuration requirement.
In the above scheme, the method further comprises: recovering the used service resources;
the service resource with completed use comprises: and deleting service resources released by the service, and/or service resources corresponding to services which do not exist in the SDN controller, and/or invalid service resources.
In the above scheme, the method further comprises: and providing the service resource use condition information to a user.
In the foregoing solution, the acquiring the logical network information includes: and acquiring the network element role, and/or the domain information and/or the ring information of the network element.
In the foregoing solution, the allocating service resources includes: a Border Gateway Protocol (BGP) community-delivered attribute, and/or a Route Distinguisher (RD), and/or a Route Target (RT), and/or a tunnel number range, and/or a Virtual link Identifier (VCID) is assigned.
The embodiment of the invention also provides a service resource allocation device, which comprises: the device comprises a first determining module, a second determining module and a resource distributing module; wherein,
the first determining module is used for acquiring the logic network information and determining the service resource range according to the logic network information;
the second determining module is used for acquiring the service type and determining the networking configuration requirement corresponding to the service type from the logic network according to a preset service distribution rule;
and the resource allocation module is used for allocating service resources corresponding to the networking configuration requirements in the service resource range according to the networking configuration requirements.
In the foregoing solution, the resource allocation module is further configured to: and distributing corresponding service resources to different networking configuration requirements generated simultaneously by adopting multithreading.
In the foregoing solution, the resource allocation module is further configured to: and confirming available service resources before distributing the service resources corresponding to the networking configuration requirements, and distributing the available service resources for the networking configuration requirements.
In the above scheme, the apparatus further includes a resource recovery module, configured to recover the used service resource;
the service resource with completed use comprises: and deleting service resources released by the service, and/or service resources corresponding to services which do not exist in the SDN controller, and/or invalid service resources.
In the above solution, the apparatus further includes a resource display module, configured to provide the service resource usage status information to a user.
In the foregoing solution, the acquiring the logical network information includes: and acquiring the network element role, and/or the domain information and/or the ring information of the network element.
In the foregoing solution, the resource allocation module is specifically configured to: BGP community-passing attributes, and/or RD, and/or RT, and/or tunnel number range, and/or VCID.
The method and the device for distributing the service resources, provided by the embodiment of the invention, are used for acquiring the logic network information and determining the service resource range according to the logic network information; acquiring a service type, and determining a networking configuration requirement corresponding to the service type from a logic network according to a preset service distribution rule; and distributing the service resources corresponding to the networking configuration requirements in the service resource range according to the networking configuration requirements. Therefore, the service resources on the logic network can be automatically distributed according to the service types, the maintenance cost is saved, and the operation and maintenance efficiency is improved.
Drawings
Fig. 1 is a schematic flow chart of a service resource allocation method according to an embodiment of the present invention;
fig. 2 is a schematic diagram of a logical network structure of an SDN controller configuration according to an embodiment of the present invention;
FIG. 3 is a flow chart illustrating a process of determining available business resources according to an embodiment of the present invention;
FIG. 4 is a schematic diagram of an embodiment of an automatic business resource allocation system;
fig. 5 is a logic block diagram illustrating a method for allocating service resources according to an embodiment of the present invention;
fig. 6 is a schematic diagram illustrating a specific step of allocating service resources according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of a service resource allocation apparatus according to an embodiment of the present invention.
Detailed Description
In the embodiment of the invention, logic network information is obtained, and a service resource range is determined according to the logic network information; acquiring a service type, and determining a networking configuration requirement corresponding to the service type from a logic network according to a preset service distribution rule; and distributing the service resources corresponding to the networking configuration requirements in the service resource range according to the networking configuration requirements.
The present invention will be described in further detail with reference to examples.
As shown in fig. 1, a method for allocating service resources according to an embodiment of the present invention includes:
step 110: acquiring logic network information, and determining a service resource range according to the logic network information;
here, a virtual network configured by an SDN controller is referred to as a logical network; the logical network information may be obtained by a service resource allocation system provided outside the SDN network, or a system in which the SDN controller is located, and the like, and the logical network information includes: network element roles, domain information of the network elements, ring information and the like; the SDN controller may configure services between an access layer, a convergence layer, and a core layer according to network element roles and different domains. The core concept of the SDN is that network functions, service functions, and network device hardware are decoupled, and hardware devices are replaced by virtual machines, and the deployment and migration of virtual machines make networking of a network complicated, and thus, it becomes important to automatically allocate service resources.
A logical network configured by an SDN controller is shown in fig. 2: the SDN controller sets 10 virtual devices on three servers, and respectively simulates devices of an access layer, a convergence layer and a core layer; the switch (acc, access)1, acc2, aggregation device (agg, aggregation)1, agg2 form the first access ring, acc3, acc4, agg1, agg2 form the second access ring, the two rings can be configured into adjacent rings or not configured into adjacent rings according to the service requirement; the aggregate layer equipment consists of agg1, agg2, autonomous system boundary router (asbr) 1 and asbr 2; asbr3, network edge router (npe) are core layer devices. After the virtual machine equipment is started, the virtual machine equipment does not have the network element roles, needs to be specified by an SDN controller, and is used as a logic network for creating two-layer and three-layer services after being specified; services can be configured on the devices, and corresponding service resources are needed when the services are configured; the equipment can be used as the starting point of the service;
after the logical network information is acquired, a service resource range can be determined according to the service type which can be borne by the logical network; the process of determining the service resource range can be predetermined before configuring the service, and can also be dynamically adjusted after configuring the service; the range of the service resource can be a range of some parameters used by the two-layer service and the three-layer service, and other parameters to be distributed can be added according to subsequent needs; the service resources comprise: BGP community-born attributes, RD, RT, tunnel number range, VCID, etc.; generally, the service resource data may also be configured into different formats, including a digital type, an Internet Protocol (IP, Internet Protocol) type, and the like, a system number + a digital type, and the like; these traffic resources determine the differentiation of traffic, the routing table composition of routers and dominate the data flow.
In practical application, a service resource pool can be established for the service resources within the determined range, the required service resources are extracted from the service resource pool, and the subsequently recovered service resources can also be put back to the service resource pool.
Step 120: acquiring a service type, and determining a networking configuration requirement corresponding to the service type from a logic network according to a preset service distribution rule;
here, a service allocation rule may be preset, and a corresponding networking configuration requirement may be set for each service type; the service type refers to a network function that requires a logic network to implement, such as a Long Term Evolution (LTE) service, a three-layer routing service, and the like; the service type required to be configured by the logic network can be obtained through external service configuration equipment; the networking configuration requirements include: the networking needs network layer number, network elements, rings formed by the network elements, routing relations among the rings, routing relations among the network elements and the like. For example, the three-tier traffic type is LTE traffic or government-enterprise type traffic; whether the service is to the core network or the asbr device; the second layer Service is Virtual Private line Service (VPWS) Service or Virtual Private LAN Service (VPLS); whether the equipment of the first access ring and the equipment of the second access ring need private network routing intercommunication or not; whether the acc equipment in the access ring and the agg equipment of the convergence layer are communicated by the route or not; whether the acc equipment in the same access ring can be communicated by a route or not; the digital type or the IP type when the service resource format is adopted; after the rules are formulated, the rules can be templated, so that the subsequent calling is convenient, and the subsequent use can be performed without repeated formulation due to more rules;
specifically, after the service type is determined, the configuration requirement of the networking is determined in the existing logic network according to the preset service distribution rule; acquiring roles of network elements, domains where the network elements are located and ring information, wherein the domains and the roles of the network elements determine the head and tail nodes of a service to be generated and the types of the service which can be communicated between the network elements, and the ring information determines the on-off of routes between the network elements and the flow direction of a data packet; the service allocation rule is flexibly specified by a user, can be dynamically adjusted, and can allocate networking configuration requirements to specific network elements.
Step 130: distributing service resources corresponding to the networking configuration requirements in the service resource range according to the networking configuration requirements;
here, after determining the networking configuration requirements, corresponding service resources may be allocated to each networking configuration requirement within the service resource range; for example, a three-layer service including acc1, acc2, agg1 and npe is created, and corresponding RD, RT, tunnel scope number, BGP community transmission attribute and the like are distributed according to network protocols and the like according to the rule contents of whether acc is communicated with a private network route, whether acc and agg are communicated with a private network route, whether the acc has a private network route at an npe side and the like in the service distribution rule; the service resources can be distributed according to a selected service resource format;
after the service resources are acquired, the service resources are encapsulated into the whole service and are issued to an SDN controller for logic network networking; before being issued to the SDN controller, the method can also judge whether the service resource range and the networking information are changed or not, whether the network element role and the domain information of the network element are changed or not, and if the network element role and the domain information of the network element are changed, the network element role and the domain information of the network element need to be distributed again.
Preferably, a multithreading protection mechanism can be adopted in the allocation process, different threads are adopted to allocate service resources for multiple service type demands, multithreading is adopted to ensure that the allocation of the service resources of multiple service types is not repeated, whether the threads of the service resource pool are occupied or not is judged, and if the threads are occupied, the allocation is carried out after the threads are idle.
Preferably, before allocating the service resource corresponding to the networking configuration requirement, the method further includes: confirming available service resources, and allocating the available service resources to the networking configuration requirement; when no usable service resource exists, newly determining the service resource range; available service resources may be determined based on the service resource scope and the service resources already in use;
specifically, the specific process of determining the available service resources, as shown in fig. 3, may include:
step 1301: setting a service resource range;
step 1302: obtaining all service resources and used service resources according to the service resource range, if the available service resources are empty, returning the minimum value of all service resources, ending the process, if the available service resources are not empty, entering step 1303;
step 1303: searching whether the available service resources have breakpoints, if so, returning the breakpoints, ending the process, and if not, entering a step 1304; here, the breakpoint refers to discontinuity of service resources caused by using, recovering, and the like of the service resources in the service use process; if the condition of discontinuity exists, the service resource can be used from the first service resource after the breakpoint;
step 1304: searching the minimum value of the used service resources, judging whether the minimum value-1 exceeds the range, ending the process, returning to the minimum value-1 if the minimum value-1 does not exceed the range, and entering a step 1305 if the minimum value-1 exceeds the range;
step 1305: searching for the maximum value of the used service resources, returning to the maximum value +1 if the maximum value +1 does not exceed the range, ending the process, if the exceeding range indicates that the service resource range set at this time is used up, needing to reset the service resource range for allocation, and returning to the step 1301; here, the reset service resource may be a service resource artificially left as redundancy when the service resource was previously set; or the service resources obtained by the subsequent service resource recovery; if all network resources such as network elements, rings, etc. in the logical network have been completely allocated, the service resource range cannot be reset.
Preferably, the used service resources can be recovered; in order to ensure the sustainability of business resource allocation, the business resources need to be recycled, and the recycling includes the following types of business resources: after deleting the service, the service resource corresponding to the released deleted service needs to be put back to the service resource pool; services existing in network management but not existing in the SDN controller correspond to service resources, and the service resources are asynchronous in data caused by various reasons and need to be uploaded and then recycled; and recovering invalid service resources caused by the damaged service existing on the SDN controller, wherein the part of service resources do not enable the service to be effective on equipment and cannot be redistributed, the part of service resources are marked as the invalid service resources in an Application (APP) database, after the invalid service resources are generated, the service cannot be deleted if the invalid service resources are generated, the service is deleted, the service recovery is executed, and otherwise, the part of service resources can only be treated as the invalid service resources.
Preferably, the service resource allocation method of this embodiment further includes displaying service resource usage status information; because the related service resources have various types and formats and the range can be dynamically adjusted, the service conditions of the service resources need to be displayed, so that the user can master the total service conditions of the service resources. The displayed content comprises: various ranges of current various business resources; the currently allocated service resource, the format of the service resource, the service type using the service resource, the service name, whether the service is valid, and the like; when the service resource is invalid, the user is required to process the service using the service resource, find out the reason why the service is invalid, whether the service is damaged or not synchronous, recycle the service resource after processing, and ensure that the service resource can be reused next time.
The positive effects produced by the present invention will be described in further detail with reference to specific examples below;
as shown in fig. 4, a service resource automatic allocation system may be newly added in an existing network, and the allocated service resource is sent to the SDN controller through a service invocation module, so as to establish a functional network corresponding to a service type requirement in the logical network, where the service resource automatic allocation system may be implemented by a system such as a server external to the SDN logical network, or may be implemented by a server device of the SDN logical network itself.
A logic block diagram of the service resource allocation method according to the embodiment of the present invention is shown in fig. 5, and includes:
step 510: acquiring logic network information; acquiring network element roles, domain division, ring information and the like, and configuring two-layer and three-layer services among an access layer, a convergence layer and a core layer according to equipment roles and different domains;
step 520: the service resource range is designated, and the designation process can be before the service is configured or dynamically adjusted after the service is configured. The service resource range refers to some parameter ranges and formats to be used by the two-layer service and the three-layer service in this example, and other parameters to be allocated may also be added according to subsequent needs;
step 530: setting up distribution rules and making the distribution rules into templates, wherein the service distribution rules can be preset, and corresponding networking configuration requirements are set for each service type; the networking configuration requirements comprise the number of network layers required by networking, network elements, rings formed by the network elements, routing relations among the rings, routing relations among the network elements and the like; establishing the distribution rule into a template, and subsequently determining networking configuration requirements according to the template aiming at different service types;
step 540: distributing service resources, namely distributing corresponding service resources to corresponding networking configuration requirements;
step 550: the recovery processing of the business resources, the business resources used are recovered;
step 560: and displaying the service resource use condition, and displaying the service resource use condition to a maintainer by using an output device such as a display.
In step 540, the specific step of allocating the service resource, as shown in fig. 6, includes:
step 5401: docking external service configuration equipment, and designating an interface by a user; determining the service type according to the configured service; the service resource allocation system can select service resources according to types, and the service resources used by different service types are not the same; the interface information must be specified by the user;
step 5402: the service resource allocation system determines the networking configuration requirement according to a preset service allocation rule, and allocates service resources according to the networking configuration requirement: acquiring roles of network elements, a domain where the network elements are located, ring information and the like; the domain and the role of the network elements determine the head and tail nodes of the service to be generated and the types of the service which can be communicated between the network elements, and the ring information determines the on-off of the route between the network elements and the flow direction of the data packet; the service allocation rule is flexibly specified by a user, can be dynamically adjusted, and determines the allocation of the networking configuration requirement to a specific network element; for example, a three-layer service including acc1, acc2, agg1 and npe is created, and RD, RT, tunnel scope number, BGP community transmission attribute and the like are distributed according to the selected service resource format according to the rules of whether the accs in the service distribution rule are communicated with each other, whether the acc and the agg are communicated with each other, whether the acc has a private network route at the npe side, and the like;
step 5403: in the process of distributing service resources, a multithreading protection mechanism is adopted to ensure that the service resource distribution of multithreading and multiple service types is not repeated, whether the threads of the service resource pool are occupied is judged, and if the threads are occupied, the distribution is carried out after the threads are idle;
step 5404: after the controller right of the service resource pool is obtained, the service resource pool is updated, and the service resources which are available are judged by combining the specified range and the used service resources;
step 5405: entering a service resource recovery thread, judging whether a damaged service exists, if so, recovering the service resource used by the service, putting the recovered service resource into an available service resource, and returning to the step 5404; otherwise, go to step 5406;
step 5406: selecting available service resources from all service resources to distribute networking configuration requirements of the service;
step 5407: after acquiring service resources, packaging the service resources into a service, and preparing to issue an SDN controller;
step 5408: judging whether the service resource range, the networking configuration requirement, the network element role, the domain information of the network element and the like are changed, if so, returning to the step 5402 and then performing service resource allocation; otherwise, go to step 5409;
step 5409: and issuing the automatically generated service to the SDN controller.
As shown in fig. 7, the service resource allocation apparatus provided in the embodiment of the present invention includes: a first determination module 71, a second determination module 72 and a resource allocation module 73; wherein,
the first determining module 71 is configured to obtain logical network information, and determine a service resource range according to the logical network information;
here, a virtual network configured by an SDN controller is referred to as a logical network; the logical network information may be obtained by a service resource allocation system provided outside the SDN network, or a system where the SDN controller is located, and the like, and the logical network information includes: network element roles, domain information of the network elements, ring information and the like; the SDN controller may configure services between an access layer, a convergence layer, and a core layer according to network element roles and different domains. The core concept of the SDN is that network functions, service functions, and network device hardware are decoupled, and hardware devices are replaced by virtual machines, and the deployment and migration of virtual machines make networking of a network complicated, and thus, it becomes important to automatically allocate service resources. A logical network configured by an SDN controller is shown in fig. 2: the SDN controller sets 10 virtual devices on three servers, and respectively simulates devices of an access layer, a convergence layer and a core layer; the acc1, acc2, agg1 and agg2 form a first access ring, the acc3, acc4, agg1 and agg2 form a second access ring, and the two rings can be configured into adjacent rings or not according to the service requirement; agg1, agg2, asbr1 and asbr2 form convergence layer equipment; asbr3, npe, core layer device. After the virtual machine equipment is started, the virtual machine equipment does not have the network element roles, needs to be specified by an SDN controller, and is used as a logic network for creating two-layer and three-layer services after being specified; services can be configured on the devices, and corresponding service resources are needed when the services are configured; the equipment can be used as the starting point of the service;
after the logic network information is acquired, a service resource range can be determined according to the service type which can be borne by the logic network; the process of determining the service resource range can be predetermined before configuring the service, and can also be dynamically adjusted after configuring the service; the range of the service resource can be a range of some parameters used by the two-layer service and the three-layer service, and other parameters to be distributed can be added according to subsequent needs; the service resources comprise: BGP community-born attributes, RD, RT, tunnel number range, VCID, etc.; generally, the service resource data can also be configured into different formats, including a number type, an IP type, and the like, a system number + a number type, and the like; these traffic resources determine the differentiation of traffic, the routing table composition of routers and dominate the data flow.
In practical application, a service resource pool can be established for the service resources within the determined range, the required service resources are extracted from the service resource pool, and the subsequently recovered service resources can also be put back to the service resource pool.
The second determining module 72 is configured to acquire a service type, and determine a networking configuration requirement corresponding to the service type from a logic network according to a preset service allocation rule;
here, a service allocation rule may be preset, and a corresponding networking configuration requirement may be set for each service type; the service type refers to a network function which is required to be realized by a logic network, such as an LTE service, a three-layer routing service and the like; the service type required to be configured by the logic network can be obtained through external service configuration equipment; the networking configuration requirements include: the networking needs network layer number, network elements, rings formed by the network elements, routing relations among the rings, routing relations among the network elements and the like. For example, the three-tier traffic type is LTE traffic or government-enterprise type traffic; whether the service is to the core network or the asbr device; the second layer service is VPWS service or VPLS service; whether the equipment of the first access ring and the equipment of the second access ring need private network routing intercommunication or not; whether the acc equipment in the access ring and the agg equipment of the convergence layer are communicated by a route or not; whether the acc equipment in the same access ring can be communicated by a route or not; the digital type or the IP type when the service resource format is adopted; after the rules are formulated, the rules can be templated, so that the subsequent calling is convenient, and the subsequent use can be performed without repeated formulation due to more rules;
specifically, after the service type is determined, the configuration requirement of the networking is determined in the existing logic network according to the preset service distribution rule; acquiring roles of network elements, domains where the network elements are located and ring information, wherein the domains and the roles of the network elements determine the head and tail nodes of a service to be generated and the types of the service which can be communicated between the network elements, and the ring information determines the on-off of routes between the network elements and the flow direction of a data packet; the service allocation rule is flexibly specified by a user, can be dynamically adjusted, and can allocate networking configuration requirements to specific network elements.
The resource allocation module 73 is configured to allocate, according to the networking configuration requirement, a service resource corresponding to the networking configuration requirement in the service resource range;
after determining the networking configuration requirements, corresponding service resources can be allocated to each networking configuration requirement within the service resource range; for example, a three-layer service including acc1, acc2, agg1 and npe is created, and according to the rule contents such as whether the accs in the service distribution rule are communicated with each other, whether the acc and the agg are communicated with each other, whether the acc has a private network route at the npe side, and the like, corresponding RD, RT, tunnel scope number, BGP community transmission attribute, and the like are distributed according to a network protocol and the like; the service resources can be distributed according to a selected service resource format;
after the service resources are acquired, the service resources are encapsulated into the whole service and are issued to an SDN controller for logic network networking; before being issued to the SDN controller, the method can also judge whether the service resource range and the networking information are changed or not, whether the network element role and the domain information of the network element are changed or not, and if the change is caused, the distribution is required to be carried out again.
Preferably, the resource allocation module 73 may adopt a multithreading protection mechanism in the allocation process, allocate service resources to multiple service types by using different threads, adopt multithreading and ensure that the allocation of the service resources of multiple service types is not repeated, determine whether a thread of the service resource pool is occupied, and if the thread is occupied, wait for the idle state and then perform the allocation.
Preferably, before allocating the service resource corresponding to the networking configuration requirement, the resource allocation module 73 is further configured to: confirming available service resources, and allocating the available service resources to the networking configuration requirement; when no usable service resource exists, newly determining the service resource range; available service resources can be determined according to the service resource range and the used service resources;
specifically, the specific process of determining the available service resources, as shown in fig. 3, may include:
step 1301: setting a service resource range;
step 1302: obtaining all service resources and used service resources according to the service resource range, if the available service resources are empty, returning the minimum value of all service resources, ending the process, if the available service resources are not empty, entering step 1303;
step 1303: searching whether the available service resources have breakpoints, if so, returning the breakpoints, ending the flow, and if not, entering a step 1304; here, the breakpoint refers to discontinuity of service resources caused by using, recovering, and the like of the service resources in the service use process; if the condition of discontinuity exists, the service resource can be used from the first service resource after the breakpoint;
step 1304: searching the minimum value of the used service resources, judging whether the minimum value exceeds the range, ending the process, returning to the minimum value of-1 if the minimum value does not exceed the range, and entering step 1305 if the minimum value exceeds the range;
step 1305: searching for the maximum value of the used service resources, returning to the maximum value +1 if the maximum value +1 does not exceed the range, ending the process, if the exceeding range indicates that the service resource range set at this time is used up, needing to reset the service resource range for allocation, and returning to the step 1301; here, the reset service resource may be a service resource artificially left as redundancy when the service resource was previously set; or the service resources obtained by the subsequent service resource recovery; if all network resources such as network elements, rings, etc. in the logical network have been completely allocated, the service resource range cannot be reset.
Preferably, the service resource allocation apparatus provided in the embodiment of the present invention further includes: a resource recovery module 74, configured to recover the used service resources; in order to ensure the sustainability of business resource allocation, the business resources need to be recycled, and the recycling includes the following types of business resources: after deleting the service, the service resource corresponding to the released deleted service needs to be put back to the service resource pool; services existing in network management but not existing in the SDN controller correspond to service resources, and the service resources are asynchronous in data caused by various reasons and need to be uploaded and then recycled; and recovering invalid service resources caused by the damaged service existing on the SDN controller, wherein the part of service resources do not enable the service to be effective on equipment and cannot be redistributed, the part of service resources are marked as the invalid service resources in the APP database, after the invalid service resources are generated, the service cannot be deleted, if the invalid service resources are generated, the service is deleted, the service recovery is executed, and otherwise, the part of service resources can only be treated as the invalid service resources.
Preferably, the service resource allocation apparatus provided in the embodiment of the present invention further includes: the resource display module 75 is configured to display service resource usage status information; because the related service resources have various types and formats and the range can be dynamically adjusted, the service conditions of the service resources need to be displayed, so that the user can master the total service conditions of the service resources. The displayed content comprises: various ranges of current various business resources; the currently allocated service resource, the format of the service resource, the service type using the service resource, the service name, whether the service is valid, and the like; when the service resource is invalid, the user is required to process the service using the service resource, find out the reason why the service is invalid, whether the service is damaged or not synchronous, recycle the service resource after processing, and ensure that the service resource can be reused next time.
In practical applications, the first determining module 71, the second determining module 72, the resource allocating module 73, the resource recycling module 74, and the resource displaying module 75 may be implemented by a Central Processing Unit (CPU), a microprocessor unit (MPU), a Digital Signal Processor (DSP), a Field Programmable Gate Array (FPGA), or the like of a computer, a server, or the like where the service resource allocating system is located.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the scope of the present invention, and any modifications, equivalents and improvements made within the spirit and principle of the present invention should be included in the scope of the present invention.

Claims (12)

1. A method for allocating service resources, the method comprising:
acquiring logic network information, and determining a service resource range according to the logic network information;
wherein the acquiring of the logical network information comprises: acquiring network element roles and/or domain information and/or ring information of network elements;
acquiring a service type, and determining a networking configuration requirement corresponding to the service type from a logic network according to a preset service distribution rule;
and distributing the service resources corresponding to the networking configuration requirements in the service resource range according to the networking configuration requirements.
2. The method of claim 1, further comprising: and distributing corresponding service resources to different networking configuration requirements generated simultaneously by adopting multithreading.
3. The method of claim 1, wherein before said allocating traffic resources corresponding to networking configuration requirements, the method further comprises: and confirming available service resources and distributing the available service resources for the networking configuration requirements.
4. The method of claim 1, further comprising: recovering the used service resources; the service resource with completed use comprises: and deleting service resources released by the service, and/or service resources corresponding to services which do not exist in a Software Defined Network (SDN) controller, and/or invalid service resources.
5. The method of claim 1, further comprising: and providing the service resource use condition information to a user.
6. The method of any of claims 1 to 5, wherein the allocating traffic resources comprises: a border gateway protocol BGP community transport attribute, and/or a route discriminator RD, and/or a route target RT, and/or a tunnel number range, and/or a virtual link identification VCID are assigned.
7. An apparatus for allocating service resources, the apparatus comprising: the device comprises a first determining module, a second determining module and a resource distributing module; wherein,
the first determining module is used for acquiring the logic network information and determining the service resource range according to the logic network information;
wherein the acquiring of the logical network information comprises: acquiring network element roles and/or domain information and/or ring information of network elements;
the second determining module is used for acquiring the service type and determining the networking configuration requirement corresponding to the service type from the logic network according to a preset service distribution rule;
and the resource allocation module is used for allocating service resources corresponding to the networking configuration requirements in the service resource range according to the networking configuration requirements.
8. The apparatus of claim 7, wherein the resource allocation module is further configured to: and distributing corresponding service resources to different networking configuration requirements generated simultaneously by adopting multithreading.
9. The apparatus of claim 7, wherein the resource allocation module is further configured to: and confirming available service resources before distributing the service resources corresponding to the networking configuration requirement, and distributing the available service resources for the networking configuration requirement.
10. The apparatus according to claim 7, wherein the apparatus further comprises a resource recycling module, configured to recycle the used service resource;
the service resource with completed use comprises: and deleting service resources released by the service, and/or service resources corresponding to services which do not exist in the SDN controller, and/or invalid service resources.
11. The apparatus of claim 7, further comprising a resource display module configured to provide the service resource usage status information to a user.
12. The apparatus according to any one of claims 7 to 11, wherein the resource allocation module is specifically configured to: BGP community-passing attributes, and/or RD, and/or RT, and/or tunnel number range, and/or VCID.
CN201610886089.5A 2016-10-09 2016-10-09 Business resource allocation method and device Active CN107919975B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610886089.5A CN107919975B (en) 2016-10-09 2016-10-09 Business resource allocation method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610886089.5A CN107919975B (en) 2016-10-09 2016-10-09 Business resource allocation method and device

Publications (2)

Publication Number Publication Date
CN107919975A CN107919975A (en) 2018-04-17
CN107919975B true CN107919975B (en) 2022-06-03

Family

ID=61891833

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610886089.5A Active CN107919975B (en) 2016-10-09 2016-10-09 Business resource allocation method and device

Country Status (1)

Country Link
CN (1) CN107919975B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112395081B (en) * 2019-08-15 2024-05-07 中国移动通信集团浙江有限公司 Online automatic resource recycling method, system, server and storage medium
CN113055232B (en) * 2021-03-11 2022-07-12 浪潮思科网络科技有限公司 Network configuration deployment method, device and equipment
CN115550955A (en) * 2021-06-30 2022-12-30 中兴通讯股份有限公司 Networking method, network management system, server and computer readable storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1396744A (en) * 2001-07-12 2003-02-12 华为技术有限公司 Radio resource planning method based on GPRS service type
CN102238631A (en) * 2011-08-17 2011-11-09 南京邮电大学 Method for managing heterogeneous network resources based on reinforcement learning
CN102387507A (en) * 2010-09-01 2012-03-21 中兴通讯股份有限公司 Method and device for managing multimode co-transmission transmission resource
CN102624552A (en) * 2012-03-02 2012-08-01 瑞斯康达科技发展股份有限公司 Configuration management method and configuration management device of network equipment
CN103501347A (en) * 2013-10-14 2014-01-08 中国联合网络通信集团有限公司 Resource distribution method and device
CN104378829A (en) * 2013-08-15 2015-02-25 上海贝尔股份有限公司 Method for implementing channel allocating and scheduling based on service types and equipment thereof
CN104427624A (en) * 2013-08-20 2015-03-18 中国移动通信集团北京有限公司 Distribution method and system of public network resources
CN105682237A (en) * 2016-03-14 2016-06-15 珠海市魅族科技有限公司 Service type reporting method and device, uplink service resource allocation method and device

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
FR2855007B1 (en) * 2003-05-13 2005-09-23 Cit Alcatel RESOURCE MANAGEMENT OF A MULPONT OR MULTIPONT MULTIPONT POINT-TYPE COMMUNICATION NETWORK BY TWO LEVELS OF ALLOCATION
CN102547610B (en) * 2010-12-31 2016-03-30 华为技术有限公司 Message treatment method, equipment and system
CN102857370B (en) * 2012-08-14 2016-05-25 华为技术有限公司 A kind of method of Resources allocation and device

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1396744A (en) * 2001-07-12 2003-02-12 华为技术有限公司 Radio resource planning method based on GPRS service type
CN102387507A (en) * 2010-09-01 2012-03-21 中兴通讯股份有限公司 Method and device for managing multimode co-transmission transmission resource
CN102238631A (en) * 2011-08-17 2011-11-09 南京邮电大学 Method for managing heterogeneous network resources based on reinforcement learning
CN102624552A (en) * 2012-03-02 2012-08-01 瑞斯康达科技发展股份有限公司 Configuration management method and configuration management device of network equipment
CN104378829A (en) * 2013-08-15 2015-02-25 上海贝尔股份有限公司 Method for implementing channel allocating and scheduling based on service types and equipment thereof
CN104427624A (en) * 2013-08-20 2015-03-18 中国移动通信集团北京有限公司 Distribution method and system of public network resources
CN103501347A (en) * 2013-10-14 2014-01-08 中国联合网络通信集团有限公司 Resource distribution method and device
CN105682237A (en) * 2016-03-14 2016-06-15 珠海市魅族科技有限公司 Service type reporting method and device, uplink service resource allocation method and device

Also Published As

Publication number Publication date
CN107919975A (en) 2018-04-17

Similar Documents

Publication Publication Date Title
EP2989749B1 (en) Network resource monitoring
US11625154B2 (en) Stage upgrade of image versions on devices in a cluster
CN107786353B (en) Service arranging method and device and service distributing method and device
US9602415B2 (en) Flow based network service insertion
JP5484427B2 (en) Network system management method, network system, and management server
US10826768B2 (en) Controlled node configuration
EP3300298B1 (en) Method and apparatus for switching vnf
CN109462534A (en) Regional internet controller, regional internet control method and computer storage medium
CN107919975B (en) Business resource allocation method and device
CN109379268B (en) Virtual private network creating method and device and server
CN109787938B (en) Method and device for realizing access to virtual private cloud and computer readable storage medium
CN117997734A (en) Management method and system for multi-resource pool network
Kuroki et al. Framework of network service orchestrator for responsive service lifecycle management
CN114006707B (en) East-west firewall configuration method, device and system
CN111404712B (en) NFV network element deployment system, method, device, medium and equipment
CN114374642B (en) Maintenance method and device for route information
JP2023527929A (en) Virtual network service deployment method and apparatus
CN113760439A (en) Virtual machine network management method, device, equipment and storage medium
CN115695170A (en) Network function virtualization method and device for server and storage medium

Legal Events

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