CN112350952A - Controller distribution method and network service system - Google Patents

Controller distribution method and network service system Download PDF

Info

Publication number
CN112350952A
CN112350952A CN202011173964.8A CN202011173964A CN112350952A CN 112350952 A CN112350952 A CN 112350952A CN 202011173964 A CN202011173964 A CN 202011173964A CN 112350952 A CN112350952 A CN 112350952A
Authority
CN
China
Prior art keywords
service
controller
controllers
service request
priority
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202011173964.8A
Other languages
Chinese (zh)
Other versions
CN112350952B (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.)
Wuhan Greenet Information Service Co Ltd
Original Assignee
Wuhan Greenet Information Service Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Wuhan Greenet Information Service Co Ltd filed Critical Wuhan Greenet Information Service Co Ltd
Priority to CN202011173964.8A priority Critical patent/CN112350952B/en
Publication of CN112350952A publication Critical patent/CN112350952A/en
Application granted granted Critical
Publication of CN112350952B publication Critical patent/CN112350952B/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
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/12Avoiding congestion; Recovering from congestion
    • H04L47/125Avoiding congestion; Recovering from congestion by balancing the load, e.g. traffic engineering
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/24Traffic characterised by specific attributes, e.g. priority or QoS
    • H04L47/2425Traffic characterised by specific attributes, e.g. priority or QoS for supporting services specification, e.g. SLA
    • H04L47/2433Allocation of priorities to traffic types

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The application discloses a controller distribution method and a network service system, wherein the controller distribution method comprises the following steps: a target network functional entity receives a service request sent by terminal equipment; the monitor monitors a service request sent by the terminal equipment and reports the service request to the routing center; the routing center evaluates the service request according to a preset service priority evaluation strategy to obtain a service priority, and distributes a target controller for the service request in the plurality of controllers according to the service priority; by processing according to the priority of the service, the service request with high priority is ensured to be preferentially allocated to the controllers, the load balance of each controller is favorably realized, and the controller is prevented from generating faults due to the fact that the processing workload exceeds the load.

Description

Controller distribution method and network service system
Technical Field
The present application relates to the field of communications technologies, and in particular, to a controller allocation method and a network service system.
Background
The development of network technology brings great convenience to the life and work of people, more and more users utilize the network to engage in various activities, and the users distribute the service requests to the controller through the terminal equipment to realize the configuration processing of the service requests.
The controller is limited in resources, and the number of service requests that can be normally processed and returned per unit time has a maximum value, and when the number of requests sent by the terminal device exceeds the maximum value, the maximum load capacity of the controller is not enough to process all the service requests, in which case, part of the service requests cannot be processed or cannot be processed in normal processing time, and the controller may malfunction due to workload exceeding the load.
Disclosure of Invention
The embodiment of the application provides a controller allocation method and a network service system, which avoid the situation that the number of service requests exceeds the maximum load capacity of a controller, ensure the priority processing of the service requests with high priority, facilitate the realization of load balancing of each controller, and avoid the occurrence of faults of the controllers due to the fact that the processing workload exceeds the load.
In one aspect, the present application provides a controller allocation method applied to a network service system, where the network service system includes a plurality of terminal devices, a plurality of network function entities, a routing center, a plurality of controllers, and a monitor, each of the terminal devices corresponds to one of the network function entities, each of the terminal devices is in communication connection with the corresponding network function entity, the plurality of network function entities are in communication connection with the monitor, the monitor is in communication connection with the routing center, the routing center is in communication connection with the controller, the plurality of network function entities include a target network function entity, and the controller allocation method includes:
the target network functional entity receives a service request sent by the terminal equipment;
the monitor monitors the service request sent by the terminal equipment and reports the service request to the routing center;
and the routing center evaluates the service request according to the preset service priority evaluation strategy to obtain service priority, and distributes a target controller for the service request in the plurality of controllers according to the service priority.
In some embodiments of the present application, the preset service priority evaluation policy includes a correspondence between a service type and a service priority, and the evaluating, by the routing center, the service request according to the preset service priority evaluation policy to obtain a service priority includes:
the routing center acquires the service type of the service request;
and the routing center determines the service priority of the service request according to the service type and the corresponding relation between the service type and the service priority.
In some embodiments of the present application, said assigning a target controller for the service request among the plurality of controllers according to the service priority comprises:
determining a controller of the plurality of controllers that is currently load capable;
if the controller with the load capacity has an idle state, selecting the controller with the idle state as the target controller;
and if no controller in an idle state exists in the controllers with the load capacity, selecting the controller with the highest loadable capacity from the controllers with the load capacity as the target controller.
In some embodiments of the present application, the allocating a target controller for the service request among the plurality of controllers according to the service priority further comprises:
if the controller with the load capacity does not exist in the plurality of controllers currently, determining the release priority of the currently distributed services of the plurality of controllers;
determining a releasable controller among the plurality of controllers according to the release priority;
and the releasable controller is used as the target controller.
In some embodiments of the present application, the method further comprises:
the target network functional entity receives a plurality of service requests sent by the plurality of terminal devices;
the monitor monitors the service requests sent by the terminal devices and reports the service requests to the routing center;
and the routing center evaluates the service requests according to the preset service priority evaluation strategy to obtain a plurality of service priorities, and allocates corresponding controllers for the service requests in the controllers according to the service priorities.
In some embodiments of the present application, the preset service priority evaluation policy includes a correspondence between a service type and a service priority, and the routing center evaluates the service requests according to the service priority evaluation policy to obtain a plurality of service priorities, including:
the routing center acquires the service types of the service requests;
and determining a plurality of service priorities of the plurality of service requests according to the service types of the plurality of service requests and the corresponding relation between the service types and the service priorities.
In some embodiments of the present application, said assigning a target controller for the service request among the plurality of controllers according to the service priority comprises:
sequencing the service priorities and determining a sequencing order;
determining the distribution sequence of the controller according to the sequencing sequence;
and sequentially distributing the target controllers for processing the plurality of service requests among the plurality of controllers according to the distribution sequence of the controllers.
In some embodiments of the present application, the method further comprises:
the monitor monitors whether the target network functional entity receives a service request sent by the terminal equipment within a preset time period;
and when the target network functional entity does not receive the service request sent by the terminal equipment within the preset time period, the routing center turns off and recovers the target controller distributed for the service request.
In some embodiments of the present application, the method further comprises:
the routing center pre-estimates the service request of a future target time period in the network service system to obtain a request quantity pre-estimated value;
estimating the quantity of the demands of the controller in the future target time period according to the request quantity estimated value;
and presetting a plurality of standby controllers according to the required quantity.
In some embodiments of the present application, the method further comprises:
the monitor monitors whether the network service system has a newly added network function entity;
when the monitor monitors that the network service system has the newly added network function entity, distributing the corresponding target controller for the service request received by the newly added network function entity in the plurality of standby controllers.
On the other hand, the present application provides a network service system, the network service system includes a plurality of terminal devices, a plurality of network function entities, a routing center, a plurality of controllers and monitors, each the terminal device corresponds to one the network function entity, each the terminal device corresponds to the network function entity communication connection, a plurality of network function entities respectively with monitor communication connection, monitor with the routing center communication connection, the routing center with the controller communication connection, include the target network function entity in a plurality of network function entities, the network service system includes:
the terminal device is used for sending a service request;
the network function entities are used for receiving the service request sent by the terminal equipment;
the monitor is used for monitoring the service request sent by the terminal equipment and reporting the service request to the routing center;
and the routing center is used for evaluating the service request according to the preset service priority evaluation strategy to obtain service priority, and distributing a target controller for the service request in the plurality of controllers according to the service priority.
According to the method and the device, the service request is evaluated through the routing center according to the preset service priority evaluation strategy to obtain the service priority, the target controllers are distributed to the service request in the plurality of controllers according to the service priority, the controllers are distributed according to the service priority of the service request, the service request with high priority is guaranteed to be distributed preferentially, the service quality of the server is improved, the load balance of each controller is favorably realized, and the controller is prevented from being out of order due to the fact that the processing workload exceeds the load.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic view of a network service system provided in an embodiment of the present application;
FIG. 2 is a schematic flow chart diagram illustrating one embodiment of a controller allocation method provided in an embodiment of the present application;
FIG. 3 is a schematic flow chart diagram illustrating an embodiment of step 103 in the present application;
FIG. 4 is a schematic flow chart diagram illustrating an embodiment of step 103 in the present application;
FIG. 5 is a schematic flow chart diagram illustrating an embodiment of step 103 in the present application;
FIG. 6 is a flowchart illustrating an embodiment of step 103 in the embodiment of the present application;
FIG. 7 is a schematic flow chart diagram illustrating one embodiment of a controller allocation method provided in an embodiment of the present application;
FIG. 8 is a flowchart illustrating an embodiment of step 603 in the embodiment of the present application;
FIG. 9 is a flowchart illustrating an embodiment of step 603 in the embodiment of the present application;
FIG. 10 is a flowchart of an embodiment of step 102 in the present application;
FIG. 11 is a flowchart of an embodiment of step 102 in the present application;
fig. 12 is a schematic structural diagram of an embodiment of a network service system provided in the embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
In the description of the present application, it is to be understood that the terms "center", "longitudinal", "lateral", "length", "width", "thickness", "upper", "lower", "front", "rear", "left", "right", "vertical", "horizontal", "top", "bottom", "inner", "outer", and the like indicate orientations or positional relationships based on those shown in the drawings, and are used merely for convenience of description and for simplicity of description, and do not indicate or imply that the referenced device or element must have a particular orientation, be constructed in a particular orientation, and be operated, and thus should not be considered as limiting the present application. Furthermore, the terms "first", "second" and "first" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, features defined as "first", "second", may explicitly or implicitly include one or more of the described features. In the description of the present application, "a plurality" means two or more unless specifically limited otherwise.
In this application, the word "exemplary" is used to mean "serving as an example, instance, or illustration. Any embodiment described herein as "exemplary" is not necessarily to be construed as preferred or advantageous over other embodiments. The following description is presented to enable any person skilled in the art to make and use the application. In the following description, details are set forth for the purpose of explanation. It will be apparent to one of ordinary skill in the art that the present application may be practiced without these specific details. In other instances, well-known structures and processes are not set forth in detail in order to avoid obscuring the description of the present application with unnecessary detail. Thus, the present application is not intended to be limited to the embodiments shown, but is to be accorded the widest scope consistent with the principles and features disclosed herein.
Embodiments of the present application provide a controller allocation method and a network service system, which are described in detail below.
Referring to fig. 1, fig. 1 is a schematic view of a network service system according to an embodiment of the present disclosure, where the network service system may include a computer device 100, and a data service system, such as the computer device in fig. 1, is integrated in the computer device 100.
In this embodiment, the computer device 100 may be an independent server, or may be a server network or a server cluster composed of servers, for example, the computer device 100 described in this embodiment includes, but is not limited to, a computer, a network host, a single network server, a plurality of network server sets, or a cloud server composed of a plurality of servers. Among them, the Cloud server is constituted by a large number of computers or web servers based on Cloud Computing (Cloud Computing).
It is to be understood that the terminal 100 used in the embodiments of the present application may be a device that includes both receiving and transmitting hardware, i.e., a device having receiving and transmitting hardware capable of performing two-way communication over a two-way communication link. Such a device may include: a cellular or other communication device having a single line display or a multi-line display or a cellular or other communication device without a multi-line display. The terminal 100 may specifically be a desktop terminal or a mobile terminal, and the terminal 100 may also specifically be one of a mobile phone, a tablet computer, a notebook computer, and the like.
Those skilled in the art will appreciate that the application environment shown in fig. 1 is only one application scenario related to the present application, and does not constitute a limitation on the application scenario of the present application, and that other application environments may further include more or less computer devices than those shown in fig. 1, for example, only 1 computer device is shown in fig. 1, and it is understood that the task planning system may further include one or more other services, which are not limited herein.
In addition, as shown in fig. 1, the network service system may further include a memory 200 for storing data, such as a storage service request.
It should be noted that the scenario diagram of the network service system shown in fig. 1 is merely an example, and the data service system and the scenario described in the embodiment of the present application are for more clearly illustrating the technical solution of the embodiment of the present application, and do not form a limitation to the technical solution provided in the embodiment of the present application.
First, an embodiment of the present application provides a controller allocation method, where an execution main body of the task planning method is applied to a network service system, and the controller allocation method includes: the target network functional entity receives a service request sent by the terminal equipment; the monitor monitors the service request sent by the terminal equipment and reports the service request to the routing center; and the routing center evaluates the service request according to the preset service priority evaluation strategy to obtain service priority, and distributes a target controller for the service request in the plurality of controllers according to the service priority.
The network service system is a system for realizing controller distribution based on a network technology, and particularly is a system with network services from two layers to seven layers (such as firewall, load balancer, application acceleration, network encryption and decryption, SSL gateway, VPN gateway and other network services), such as an SINE system, a Deep Packet Inspection (DPI) system and the like. The DPI system is a packet-based deep inspection technology, which performs deep inspection on different network application layer loads (e.g., HTTP, DNS, etc.), and determines the validity of a packet by inspecting the payload of the packet.
The network service system comprises a plurality of terminal devices, a plurality of network function entities, a routing center, a plurality of controllers and a monitor, wherein each terminal device corresponds to one network function entity, each terminal device is in communication connection with the corresponding network function entity, the plurality of network function entities are in communication connection with the monitor respectively, the monitor is in communication connection with the routing center, and the routing center is in communication connection with the controllers.
The terminal device may be a device that includes both receiving and transmitting hardware, i.e., a device having receiving and transmitting hardware capable of performing two-way communication over a two-way communication link. Such a device may include: a cellular or other communication device having a single line display or a multi-line display or a cellular or other communication device without a multi-line display. The specific terminal device may be a desktop terminal or a mobile terminal, and the terminal may be one of a mobile phone, a tablet computer, a notebook computer, and the like.
The Network function (NF, Network function) entity is configured to receive a service request sent by the terminal device, and may be applied to Network Address Translation (NAT), Carrier/telecommunication Network Address Translation (CGN, Carrier Grade NAT), a Firewall (FW, Firewall), an Application switching controller (ADC, Application Delivery controller), Application Performance Monitoring (APM, Application Performance Monitoring), a Content Distribution Network (CDN, Content Distribution Network), a Uniform Resource Locator (URL) filter, but is not limited thereto; the network function entity is used for receiving the data stream of the terminal equipment and analyzing the received data stream.
The monitor is used for monitoring the service request sent by the terminal device and reporting the service request, and may be an edge device.
The routing center may be a router for scheduling, allocating and managing hardware resources.
Referring to fig. 2, a schematic flowchart of an embodiment of a controller allocation method according to an embodiment of the present application is shown, where the controller allocation method includes:
101: and the target network functional entity receives the service request sent by the terminal equipment.
In this embodiment, the target network function entity includes one or more network function entities, and the terminal device may be a terminal device as shown in fig. 1, where the service request may include a user ID, an operation type and data required for operating the service request, for example, the operation type may be sending a message, downloading data, deleting data, modifying data, and the like.
102: and the monitor monitors the service request sent by the terminal equipment and reports the service request to the routing center.
In this embodiment, the monitor monitors and determines whether a service request comes from the terminal device in real time, and if it is monitored that the service request comes from the terminal device, the monitor sends a reporting instruction to the terminal device, and the terminal device reports the service request to the routing center after receiving the reporting instruction.
103: and the routing center evaluates the service request according to the preset service priority evaluation strategy to obtain service priority, and distributes a target controller for the service request in the plurality of controllers according to the service priority.
In this embodiment, the preset service priority evaluation policy refers to calculating different service priorities by evaluation according to different service requests.
The mapping relationship between the preset service request and the service priority can be stored in the routing center, and after the routing center receives the service request reported by the terminal device, the corresponding service priority is obtained from the mapping relationship between the preset service request and the service priority according to the service request. The mapping relation between the service request and the service priority can configure the service priority according to the importance degree of the service request, and the higher the importance degree level is, the higher the service priority level is, the target controller is preferentially distributed; conversely, the lower the importance level and the lower the traffic priority, the later the target controller is assigned.
Specifically, the mapping relationship between the service request and the service priority may be implemented by a hash table, for example, by obtaining a service request identifier to obtain a service request hash value, and obtaining a corresponding service priority from a hash table pre-stored in the routing center according to the service request hash value, where the smaller the service request hash value is, the higher the service priority is; conversely, the larger the hash value of the service request is, the lower the service priority is. Other evaluation calculation methods may also be adopted, and the application is not limited thereto.
In addition, the evaluation and judgment of the importance degree of the service request can comprise a plurality of dimensions, each dimension of the service request corresponds to a service priority, one dimension with the highest service priority can be selected as an evaluation standard, a plurality of dimensions can also be selected as evaluation standards, and the service priority is obtained through comprehensive calculation.
The service request is evaluated by the routing center according to a preset service priority evaluation strategy to obtain service priority, and the target controllers are distributed to the service request in the plurality of controllers according to the service priority, so that the controllers are distributed according to the service priority of the service request, the service request with high priority is guaranteed to be distributed preferentially, the service quality of the server is improved, the load balance of each controller is favorably realized, and the controller is prevented from being out of order due to the fact that the processing workload exceeds the load.
In some embodiments, referring to fig. 3, the preset service priority evaluation policy includes a correspondence between a service type and a service priority, and the evaluating, by the routing center, the service request according to the preset service priority evaluation policy to obtain the service priority includes:
201: and the routing center acquires the service type of the service request.
Specifically, the service types may be classified according to specific services.
202: and the routing center determines the service priority of the service request according to the service type and the corresponding relation between the service type and the service priority.
In order to simplify and quickly obtain the service priority, the service priority can be obtained by evaluating the service type to which the service request belongs, similarly, the corresponding service priority can be obtained from the mapping relation between the preset service request and the service priority according to the service type, the mapping relation between the service type and the service priority can configure the service priority according to the importance degree of the service type, the higher the importance degree level is, the higher the service priority is, and conversely, the lower the importance degree level is, the lower the service priority is.
In some embodiments, referring to fig. 4, said allocating a target controller for said service request among said plurality of controllers according to said service priority comprises:
301: determining a controller of the plurality of controllers that currently has load capability.
A controller with load capability refers to a controller that can continue to apply a load, for example, a controller with load capability of 1000, currently loaded with 10, and remaining loadable 990, then the controller is a controller with load capability.
302: and if the controller with the load capacity has an idle state, selecting the controller in the idle state as the target controller.
A controller in an idle state refers to a controller without load, for example, if the controller has a loadable capability of 1000, is currently loaded with 0, and remains loadable with 1000, then the controller is a controller with an idle state.
303: and if no controller in an idle state exists in the controllers with the load capacity, selecting the controller with the highest loadable capacity from the controllers with the load capacity as the target controller.
The controller with the highest loadable capability refers to the controller that can continue to apply the maximum load, for example, the first controller has a loadable capability of 1000, is currently loaded with 10, and remains loadable 990; the second controller loadable capacity is 1000, currently loaded 20, remaining loadable 980; the third controller has a loadability of 1000, is currently loaded with 30, and has a remaining loadability of 970, and the former controller is the controller with the highest loadability.
Selecting the controller in the idle state as the target controller, or selecting the controller with the strongest loadable capability as the target controller, so that the configuration processing capability of the target controller is kept maximized, and the service processing efficiency can be improved; in addition, each controller can be guaranteed to be allocated with service requests, and the number of the service requests allocated to each controller is equivalent, which is beneficial to realizing load balancing.
In some embodiments, referring to fig. 5, said allocating a target controller for the service request among the plurality of controllers according to the service priority further comprises:
401: and if the controller with the load capacity does not exist in the plurality of controllers currently, determining the release priority of the service request currently allocated to the plurality of controllers.
The release priority of the currently processed service request of the plurality of controllers may be determined according to the service priority of the currently processed service request, for example, the lower the service priority of the currently processed service request is, the higher the release priority is; otherwise, the higher the service priority of the currently processed service request is, the lower the release priority is.
In addition, the release priorities of the currently allocated service requests of the plurality of controllers can be obtained by calculation according to the ratio of the residual load capacity to the loadable capacity of the controllers, and the greater the ratio of the residual load capacity to the loadable capacity is, the higher the release priority is; conversely, the smaller the ratio of remaining load capacity to loadable capacity, the lower the release priority. For example, if the ratio of the remaining load capacity to the loadable capacity of the first controller is 0.9 and the remaining load capacity of the second controller is 0.8, the release priority of the first controller is greater than the release priority of the second controller, which can avoid the influence of the release of the controllers on the processing progress of the ongoing service request.
402: determining, among the plurality of controllers, a releasable controller according to the release priority.
Specifically, the controller with the higher release priority is released with priority, and the controller with the lower release priority is released with hysteresis.
403: and the releasable controller is used as the target controller.
The releasable controller is used as the target controller, the allocation of newly-added service requests can be realized without additionally adding a controller, the problem that the controller is overloaded and fails due to the excessive number of the service requests allocated by a single controller is avoided, the influence caused by the sudden increase of the number of the service requests can be minimized by releasing the controller corresponding to the service request with low service priority, and the situation that the service request with higher importance degree cannot be allocated with the controller in time is avoided.
The foregoing embodiment is directed to a single service request distribution controller, and for multiple service request distribution controllers, please refer to fig. 6, which is a flowchart illustrating an embodiment of a controller distribution method in an embodiment of the present application, where the controller distribution method includes:
501: and the target network functional entity receives a plurality of service requests sent by the plurality of terminal devices.
502: the monitor monitors the service requests sent by the terminal devices and reports the service requests to the routing center.
503: and the routing center evaluates the service requests according to the preset service priority evaluation strategy to obtain a plurality of service priorities, and allocates corresponding controllers for the service requests in the controllers according to the service priorities.
The method for evaluating the service priority of multiple service requests is similar to the method for evaluating the service priority of a single service request, and reference may be specifically made to the above embodiments, which are not described herein again.
In an embodiment, referring to fig. 7, the preset service priority evaluation policy includes a correspondence between a service type and a service priority, and the evaluating, by the routing center, the plurality of service requests according to the service priority evaluation policy to obtain a plurality of service priorities includes:
601: and the routing center acquires the service types of the service requests.
602: and determining a plurality of service priorities of the plurality of service requests according to the service types of the plurality of service requests and the corresponding relation between the service types and the service priorities.
Similarly, the method for evaluating the multiple service requests to obtain multiple service priorities is similar to the method for evaluating a single service request to obtain service priorities, and reference may be specifically made to the foregoing embodiment, which is not described herein again.
In one embodiment, referring to fig. 8, the allocating a target controller for the service request among the plurality of controllers according to the service priority includes:
701: and sequencing the service priorities and determining a sequencing order.
Specifically, the sorting order may be obtained by sorting the service priorities from high to low or from low to high.
702: and determining the distribution sequence of the controller according to the sequencing sequence.
Specifically, when the sorting order is obtained by sorting the service priorities from high to low, the distribution order is consistent with the sorting order; when the sorting order is obtained by sorting the plurality of service priorities from low to high, the distribution order is opposite to the sorting order.
703: and sequentially distributing the target controllers for processing the plurality of service requests among the plurality of controllers according to the distribution sequence of the controllers.
Controllers in the forward position of the dispensing sequence are assigned preferentially as target controllers and controllers in the rearward position of the dispensing sequence are assigned late as target controllers.
It can be understood that load balancing can be achieved by obtaining an allocation order of the controllers by sorting a plurality of service priorities of a plurality of service requests, and allocating the controllers as target controllers according to the order.
In one embodiment, referring to fig. 9, the method further includes:
801: and the monitor monitors whether the target network functional entity receives the service request sent by the terminal equipment within a preset time period.
802: and when the target network functional entity does not receive the service request sent by the terminal equipment within the preset time period, the routing center turns off and recovers the target controller distributed for the service request.
It can be understood that when no service request comes from the terminal device, the corresponding target controller is shut down and recovered, so that the resource space can be effectively saved.
In one embodiment, referring to fig. 10, the controller allocation method further includes:
901: and the routing center pre-estimates the service requests of the future target time period in the network service system to obtain a request quantity pre-estimated value.
The request quantity pre-estimated value can be obtained by acquiring historical request quantity data of all the network service systems in the same period and the same time period and calculating the average value of the historical request quantity; a request quantity change trend can also be determined according to the historical request quantity data, and a request quantity estimated value of a future target time period can be determined according to the request quantity change trend.
902: and predicting the demand quantity of the controller in the future target time period according to the demand quantity predicted value.
And according to the corresponding relation between the request quantity and the demand quantity of the controller, predicting and determining the demand quantity of the controller in a future target time period by the request quantity estimated value.
903: and presetting a plurality of standby controllers according to the required quantity.
If the monitor monitors that the current controller is not sufficient to handle all traffic requests, the routing center automatically activates the standby controller.
In one embodiment, referring to fig. 11, the controller allocation method further includes:
1001: the monitor monitors whether the network service system has a newly added network function entity.
1002: when the monitor monitors that the network service system has the newly added network function entity, distributing the corresponding target controller for the service request received by the newly added network function entity in the plurality of standby controllers.
Referring to fig. 12, fig. 12 is a schematic structural diagram of an embodiment of a network service system 1100 provided in an embodiment of the present application, where the network service system 1100 includes a plurality of terminal devices 1101, a plurality of network function entities 1102, a routing center 1104, a plurality of controllers 1105, and a monitor 1103.
Specifically, each of the plurality of controllers 1105 and the monitor 1103, each of the plurality of terminal devices 1101 corresponds to one of the plurality of network function entities 1102, each of the plurality of terminal devices 1101 is connected to the corresponding network function entity 1102 in a communication manner, each of the plurality of network function entities 1102 is connected to the monitor 1103 in a communication manner, the monitor 1103 is connected to the routing center 1104 in a communication manner, the routing center 1104 is connected to the controller 1105 in a communication manner, and the plurality of network function entities 1102 include a target network function entity.
The terminal device 1101 is configured to send a service request; the multiple network function entities 1102 are configured to receive a service request sent by the terminal device 1101; a monitor 1103, configured to monitor the service request sent by the terminal device 1101, and report the service request to the routing center 1104; the routing center 1104 is configured to evaluate the service request according to the preset service priority evaluation policy to obtain a service priority, and allocate a target controller to the service request in the multiple controllers 1105 according to the service priority. Here, the specific implementation of the terminal device 1101, the network function entity 1102, the routing center 1104, the controller 1105 and the monitor 1103 shown in fig. 5 is the same as or similar to the previous embodiment corresponding to step S101, step S102 and step S103 shown in fig. 2, and therefore, the detailed description is omitted here and is included herein by way of reference.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and parts that are not described in detail in a certain embodiment may refer to the above detailed descriptions of other embodiments, and are not described herein again.
In a specific implementation, each unit or structure may be implemented as an independent entity, or may be combined arbitrarily to be implemented as one or several entities, and the specific implementation of each unit or structure may refer to the foregoing method embodiment, which is not described herein again.
It will be understood by those skilled in the art that all or part of the steps of the methods of the above embodiments may be performed by instructions or by associated hardware controlled by the instructions, which may be stored in a computer readable storage medium and loaded and executed by a processor.
To this end, an embodiment of the present invention provides a computer-readable storage medium, which may include: read Only Memory (ROM), Random Access Memory (RAM), magnetic or optical disks, and the like. Stored thereon, is a computer program, which is loaded by a processor to perform the steps of any of the controller allocation methods provided by the embodiments of the present invention. For example, the computer program may be loaded by a processor to perform the steps of:
the target network functional entity receives a service request sent by the terminal equipment;
the monitor monitors the service request sent by the terminal equipment and reports the service request to the routing center;
and the routing center evaluates the service request according to the preset service priority evaluation strategy to obtain service priority, and distributes a target controller for the service request in the plurality of controllers according to the service priority.
In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and parts that are not described in detail in a certain embodiment may refer to the above detailed descriptions of other embodiments, and are not described herein again.
In a specific implementation, each unit or structure may be implemented as an independent entity, or may be combined arbitrarily to be implemented as one or several entities, and the specific implementation of each unit or structure may refer to the foregoing method embodiment, which is not described herein again.
The above operations can be implemented in the foregoing embodiments, and are not described in detail herein. The foregoing detailed description is directed to a controller allocation method and a network service system provided in the embodiments of the present application, and specific examples are applied in the present application to explain the principles and implementations of the present application, and the descriptions of the foregoing embodiments are only used to help understand the method and core ideas of the present application; meanwhile, for those skilled in the art, according to the idea of the present application, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (11)

1. A controller allocation method is applied to a network service system, the network service system includes a plurality of terminal devices, a plurality of network function entities, a routing center, a plurality of controllers and a monitor, each terminal device corresponds to one network function entity, each terminal device is in communication connection with the corresponding network function entity, the plurality of network function entities are respectively in communication connection with the monitor, the monitor is in communication connection with the routing center, the routing center is in communication connection with the controller, the plurality of network function entities include a target network function entity, the controller allocation method includes:
the target network functional entity receives a service request sent by the terminal equipment;
the monitor monitors the service request sent by the terminal equipment and reports the service request to the routing center;
and the routing center evaluates the service request according to the preset service priority evaluation strategy to obtain service priority, and distributes a target controller for the service request in the plurality of controllers according to the service priority.
2. The controller distribution method according to claim 1, wherein the preset service priority evaluation policy includes a correspondence between a service type and a service priority, and the routing center evaluates the service request according to the preset service priority evaluation policy to obtain a service priority, including:
the routing center acquires the service type of the service request;
and the routing center determines the service priority of the service request according to the service type and the corresponding relation between the service type and the service priority.
3. The controller distribution method according to claim 1, wherein the distributing a target controller for the service request among the plurality of controllers according to the service priority comprises:
determining a controller of the plurality of controllers that is currently load capable;
if the controller with the load capacity has an idle state, selecting the controller with the idle state as the target controller;
and if no controller in an idle state exists in the controllers with the load capacity, selecting the controller with the highest loadable capacity from the controllers with the load capacity as the target controller.
4. The controller distribution method according to claim 3, wherein the distributing a target controller for the service request among the plurality of controllers according to the service priority further comprises:
if the controller with the load capacity does not exist in the plurality of controllers currently, determining the release priority of the currently distributed services of the plurality of controllers;
determining a releasable controller among the plurality of controllers according to the release priority;
and the releasable controller is used as the target controller.
5. The controller distribution method according to claim 1, further comprising:
the target network functional entity receives a plurality of service requests sent by the plurality of terminal devices;
the monitor monitors the service requests sent by the terminal devices and reports the service requests to the routing center;
and the routing center evaluates the service requests according to the preset service priority evaluation strategy to obtain a plurality of service priorities, and allocates corresponding controllers for the service requests in the controllers according to the service priorities.
6. The controller distribution method according to claim 5, wherein the preset service priority evaluation policy includes a correspondence between a service type and a service priority, and the routing center evaluates the plurality of service requests according to the service priority evaluation policy to obtain a plurality of service priorities, including:
the routing center acquires the service types of the service requests;
and determining a plurality of service priorities of the plurality of service requests according to the service types of the plurality of service requests and the corresponding relation between the service types and the service priorities.
7. The controller distribution method according to claim 5, wherein the distributing a target controller for the service request among the plurality of controllers according to the service priority comprises:
sequencing the service priorities and determining a sequencing order;
determining the distribution sequence of the controller according to the sequencing sequence;
and sequentially distributing the target controllers for processing the plurality of service requests among the plurality of controllers according to the distribution sequence of the controllers.
8. The controller distribution method according to claim 1, further comprising:
the monitor monitors whether the target network functional entity receives a service request sent by the terminal equipment within a preset time period;
and when the target network functional entity does not receive the service request sent by the terminal equipment within the preset time period, the routing center turns off and recovers the controller distributed for the service request.
9. The controller distribution method according to claim 1, further comprising:
the routing center pre-estimates the service request of a future target time period in the network service system to obtain a request quantity pre-estimated value;
estimating the quantity of the demands of the controller in the future target time period according to the request quantity estimated value;
and presetting a plurality of standby controllers according to the required quantity.
10. The controller distribution method according to claim 9, further comprising:
the monitor monitors whether the network service system has a newly added network function entity;
when the monitor monitors that the network service system has the newly added network function entity, distributing the corresponding target controller for the service request received by the newly added network function entity in the plurality of standby controllers.
11. A network service system, wherein the network service system includes a plurality of terminal devices, a plurality of network function entities, a routing center, a plurality of controllers, and a monitor, each of the terminal devices corresponds to one of the network function entities, each of the terminal devices is in communication connection with the corresponding network function entity, the plurality of network function entities are in communication connection with the monitor, respectively, the monitor is in communication connection with the routing center, the routing center is in communication connection with the controller, the plurality of network function entities include a target network function entity, and the network service system includes:
the terminal device is used for sending a service request;
the network function entities are used for receiving the service request sent by the terminal equipment;
the monitor is used for monitoring the service request sent by the terminal equipment and reporting the service request to the routing center;
and the routing center is used for evaluating the service request according to the preset service priority evaluation strategy to obtain service priority, and distributing a target controller for the service request in the plurality of controllers according to the service priority.
CN202011173964.8A 2020-10-28 2020-10-28 Controller distribution method and network service system Active CN112350952B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011173964.8A CN112350952B (en) 2020-10-28 2020-10-28 Controller distribution method and network service system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011173964.8A CN112350952B (en) 2020-10-28 2020-10-28 Controller distribution method and network service system

Publications (2)

Publication Number Publication Date
CN112350952A true CN112350952A (en) 2021-02-09
CN112350952B CN112350952B (en) 2023-04-07

Family

ID=74359250

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011173964.8A Active CN112350952B (en) 2020-10-28 2020-10-28 Controller distribution method and network service system

Country Status (1)

Country Link
CN (1) CN112350952B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113472662A (en) * 2021-07-09 2021-10-01 武汉绿色网络信息服务有限责任公司 Path redistribution method and network service system
CN113992596A (en) * 2021-10-18 2022-01-28 北京沃东天骏信息技术有限公司 Interface current limiting method, device, equipment, system and storage medium
CN114979009A (en) * 2022-05-18 2022-08-30 中国电信股份有限公司 Network request processing method and device, computer readable medium and electronic equipment
CN116155910A (en) * 2023-03-29 2023-05-23 新华三技术有限公司 Equipment management method and device
CN117452901A (en) * 2023-12-22 2024-01-26 浙江中智达科技有限公司 Zero manual operation method, device, equipment and medium for controlling production device to run

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102891869A (en) * 2011-07-20 2013-01-23 郑州威科姆科技股份有限公司 CDN (Content Delivery Network) and content distribution and scheduling method
CN103490956A (en) * 2013-09-22 2014-01-01 杭州华为数字技术有限公司 Self-adaptive energy-saving control method, device and system based on traffic predication
CN104065663A (en) * 2014-07-01 2014-09-24 复旦大学 Auto-expanding/shrinking cost-optimized content distribution service method based on hybrid cloud scheduling model
WO2015096025A1 (en) * 2013-12-24 2015-07-02 Telefonaktiebolaget L M Ericsson (Publ) Methods and apparatus for load balancing in a network
CN105007312A (en) * 2015-07-03 2015-10-28 叶秀兰 Method and system for controlling adaptive load-balancing of cloud computing server
US20170102757A1 (en) * 2015-10-07 2017-04-13 Electronics And Telecommunications Research Institute Device for distributing load and managing power of virtual server cluster and method thereof
CN106933650A (en) * 2017-03-03 2017-07-07 北方工业大学 load management method and system of cloud application system
CN107968836A (en) * 2017-12-06 2018-04-27 北京星河星云信息技术有限公司 A kind of task distribution method and device
CN108063784A (en) * 2016-11-08 2018-05-22 阿里巴巴集团控股有限公司 The methods, devices and systems of application cluster resource allocation under a kind of cloud environment
CN108462656A (en) * 2016-12-09 2018-08-28 中国移动通信有限公司研究院 The resource regulating method and device of integrated services deployment based on container
CN108632365A (en) * 2018-04-13 2018-10-09 腾讯科技(深圳)有限公司 Service Source method of adjustment, relevant apparatus and equipment
CN111399989A (en) * 2020-04-10 2020-07-10 中国人民解放军国防科技大学 Task preemption scheduling method and system for container cloud

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102891869A (en) * 2011-07-20 2013-01-23 郑州威科姆科技股份有限公司 CDN (Content Delivery Network) and content distribution and scheduling method
CN103490956A (en) * 2013-09-22 2014-01-01 杭州华为数字技术有限公司 Self-adaptive energy-saving control method, device and system based on traffic predication
WO2015096025A1 (en) * 2013-12-24 2015-07-02 Telefonaktiebolaget L M Ericsson (Publ) Methods and apparatus for load balancing in a network
CN104065663A (en) * 2014-07-01 2014-09-24 复旦大学 Auto-expanding/shrinking cost-optimized content distribution service method based on hybrid cloud scheduling model
CN105007312A (en) * 2015-07-03 2015-10-28 叶秀兰 Method and system for controlling adaptive load-balancing of cloud computing server
US20170102757A1 (en) * 2015-10-07 2017-04-13 Electronics And Telecommunications Research Institute Device for distributing load and managing power of virtual server cluster and method thereof
CN108063784A (en) * 2016-11-08 2018-05-22 阿里巴巴集团控股有限公司 The methods, devices and systems of application cluster resource allocation under a kind of cloud environment
CN108462656A (en) * 2016-12-09 2018-08-28 中国移动通信有限公司研究院 The resource regulating method and device of integrated services deployment based on container
CN106933650A (en) * 2017-03-03 2017-07-07 北方工业大学 load management method and system of cloud application system
CN107968836A (en) * 2017-12-06 2018-04-27 北京星河星云信息技术有限公司 A kind of task distribution method and device
CN108632365A (en) * 2018-04-13 2018-10-09 腾讯科技(深圳)有限公司 Service Source method of adjustment, relevant apparatus and equipment
CN111399989A (en) * 2020-04-10 2020-07-10 中国人民解放军国防科技大学 Task preemption scheduling method and system for container cloud

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113472662A (en) * 2021-07-09 2021-10-01 武汉绿色网络信息服务有限责任公司 Path redistribution method and network service system
WO2023279645A1 (en) * 2021-07-09 2023-01-12 武汉绿色网络信息服务有限责任公司 Path reallocation method and network service system
CN113992596A (en) * 2021-10-18 2022-01-28 北京沃东天骏信息技术有限公司 Interface current limiting method, device, equipment, system and storage medium
CN114979009A (en) * 2022-05-18 2022-08-30 中国电信股份有限公司 Network request processing method and device, computer readable medium and electronic equipment
CN114979009B (en) * 2022-05-18 2023-11-07 中国电信股份有限公司 Processing method and device of network request, computer readable medium and electronic equipment
CN116155910A (en) * 2023-03-29 2023-05-23 新华三技术有限公司 Equipment management method and device
CN117452901A (en) * 2023-12-22 2024-01-26 浙江中智达科技有限公司 Zero manual operation method, device, equipment and medium for controlling production device to run
CN117452901B (en) * 2023-12-22 2024-03-15 浙江中智达科技有限公司 Zero manual operation method, device, equipment and medium for controlling production device to run

Also Published As

Publication number Publication date
CN112350952B (en) 2023-04-07

Similar Documents

Publication Publication Date Title
CN112350952B (en) Controller distribution method and network service system
CN112351083B (en) Service processing method and network service system
CN109274707B (en) Load scheduling method and device
EP3435627A1 (en) Method of controlling service traffic between data centers, device, and system
CN105335229B (en) Scheduling method and device of service resources
CN109167702A (en) A kind of distributed test method and device based on load balancing
EP3053041A1 (en) Method, system, computer program and computer program product for monitoring data packet flows between virtual machines, vms, within a data centre
US8208376B2 (en) Method, computer program product, and apparatus for providing a distributed router architecture
CN102025630A (en) Load balancing method and load balancing system
US7369505B2 (en) Method and system to efficiently manage network connection to connect a client and a resource
EP2789147B1 (en) Method and apparatus for load balancing in communication system
US20190089617A1 (en) Methods, systems and computer readable media for optimizing placement of virtual network visibility components
CN110166524B (en) Data center switching method, device, equipment and storage medium
CN104426694B (en) A kind of method and apparatus of adjustment resources of virtual machine
CN102164116A (en) Method, system and corresponding device for balancing load
CN113014611B (en) Load balancing method and related equipment
WO2023207189A1 (en) Load balancing method and system, computer storage medium, and electronic device
CN112134964A (en) Controller distribution method, computer equipment, storage medium and network service system
JP2024514643A (en) Packet forwarding method, apparatus, and system, and computer-readable storage medium
US9203706B2 (en) System and method for enabling demand-based pooling of endpoint resources in a multi-application environment
JP5584104B2 (en) Session management system, session management device
JP2005182702A (en) Access control system in ip network
CN114024968B (en) Message sending method and device based on intermediate equipment and electronic equipment
CN109451074B (en) Server load balancing processing method based on portal protocol
CN113472662B (en) Path redistribution method and network service system

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