WO2018001089A1 - 业务处理方法及装置、存储介质 - Google Patents
业务处理方法及装置、存储介质 Download PDFInfo
- Publication number
- WO2018001089A1 WO2018001089A1 PCT/CN2017/088128 CN2017088128W WO2018001089A1 WO 2018001089 A1 WO2018001089 A1 WO 2018001089A1 CN 2017088128 W CN2017088128 W CN 2017088128W WO 2018001089 A1 WO2018001089 A1 WO 2018001089A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- forwarding
- instance
- forwarding instance
- service
- current load
- Prior art date
Links
- 238000003672 processing method Methods 0.000 title claims abstract description 19
- 238000012545 processing Methods 0.000 claims abstract description 227
- 238000000034 method Methods 0.000 claims abstract description 41
- 230000006870 function Effects 0.000 claims description 22
- 230000004044 response Effects 0.000 claims description 19
- 238000010606 normalization Methods 0.000 claims description 10
- 238000004590 computer program Methods 0.000 claims description 8
- 238000010586 diagram Methods 0.000 description 24
- 230000008569 process Effects 0.000 description 22
- 238000013475 authorization Methods 0.000 description 5
- 230000005540 biological transmission Effects 0.000 description 5
- 230000003993 interaction Effects 0.000 description 4
- 230000008901 benefit Effects 0.000 description 3
- 238000004891 communication Methods 0.000 description 3
- 238000005516 engineering process Methods 0.000 description 3
- 230000003287 optical effect Effects 0.000 description 3
- 238000004422 calculation algorithm Methods 0.000 description 2
- 238000011161 development Methods 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000004364 calculation method Methods 0.000 description 1
- 230000001419 dependent effect Effects 0.000 description 1
- 238000005111 flow chemistry technique Methods 0.000 description 1
- 230000007774 longterm Effects 0.000 description 1
- 238000010295 mobile communication Methods 0.000 description 1
- 230000006855 networking Effects 0.000 description 1
- 230000000737 periodic effect Effects 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L65/00—Network arrangements, protocols or services for supporting real-time applications in data packet communication
- H04L65/40—Support for services or applications
Definitions
- the present invention is based on the Chinese Patent Application No. 201610482668.3, the entire disclosure of which is hereby incorporated by reference.
- the present invention relates to communication technologies, and in particular, to a service processing method and apparatus, and a storage medium.
- the Broadband Remote Access Server is an access gateway for broadband network applications. It is a bridge between the broadband access network and the backbone network, providing basic access means and management functions of the broadband access network. It is located at the edge of the network, provides broadband access services, and achieves convergence and forwarding of multiple services. It can meet the requirements of different users for transmission capacity and bandwidth utilization. Therefore, it is the core device for broadband users to access.
- the BRAS first authenticates the accessed user. The authentication allows the user to access the broadband network, and the authentication fails to deny the user access to the broadband network.
- Network Function Virtualization replaces private private network elements with server, storage, and networking equipment based on industry standards. Bring two benefits: 1, low cost of standard equipment, saving investment costs; 2, open application programming interface (Application Programming Interface, API for short), providing flexible network function extension.
- BRAS NFV Virtualization of BRAS functionality
- Broadband strategy is the country The important long-term strategic plan of the family has huge input costs, and the use of NFV can save investment costs.
- BRAS needs to deploy rich services and has flexible scalability.
- the addition of new services to traditional BRAS equipment requires equipment manufacturers to develop and debug, and the cycle is long, which affects the development of new services.
- With the open interface provided by NFV the development of new services is no longer dependent on device vendors, and deployment time is shorter. Virtualization of the BRAS function can bring benefits of saving capital investment and increasing revenue.
- An implementation method for the virtualization of the BRAS function the control plane and the forwarding plane are separated, the control layer is placed on the general-purpose server, and an API is provided, and the forwarding plane receives the forwarding policy sent by the control plane and uses the forwarding policy to perform traffic forwarding.
- the forwarding pool is macroscopically viewed as a forwarding pool. User traffic is forwarded in the forwarding pool.
- the forwarding pool is composed of multiple forwarding instances. After the traffic is forwarded to the forwarding pool, the traffic is forwarded through the forwarding instance.
- the forwarding instance may be a physical forwarding device or a software-implemented software forwarding device.
- Protocol traffic and data traffic first pass through the forwarding pool.
- the processing of traffic in the forwarding pool directly affects the performance of the entire BRAS.
- the forwarding pool processes traffic in two ways.
- a processing method firstly, processing is performed in a forwarding instance in the forwarding pool. When the capacity and performance of the forwarding instance reach a certain threshold, the method is switched to another forwarding instance. The processing mode of the polling is performed on the new user. Compared with the performance of a forwarding instance and the performance of a forwarding instance, the performance advantages of the forwarding pool cannot be fully utilized.
- Another way of handling a certain degree of load sharing in a first-come, first-served manner. However, this method does not fully consider the specific ability of forwarding instances. The ability to forward instances is strong or weak. The first-come-first processing method may only select one forwarding instance with the lowest capability and the lowest sharing. The performance cannot be the most. excellent.
- the embodiment of the present invention provides a service processing method and device, and a storage medium, to solve at least the problem that the processing mode of the forwarding pool to the traffic in the related art cannot guarantee the optimal processing performance of the forwarding pool.
- a service processing method including: acquiring a processing capability of each forwarding instance in a forwarding pool for forwarding a service and/or a current load situation of the forwarding instance; The processing capability and/or the current load situation, selecting a selected forwarding instance for forwarding a service from the forwarding pool; and performing forwarding processing on the service according to the determined selected forwarding instance.
- the processing capability of each forwarding instance in the forwarding pool for forwarding the service and/or the current load situation of the forwarding instance are obtained by at least one of: sending, by using the forwarding instance, Requesting a request message for obtaining the processing capability of the forwarding instance and/or the current load situation, and receiving a response message of the forwarding instance that carries the processing capability of the forwarding instance and/or the current load situation.
- the method, the processing capability of each forwarding instance in the forwarding pool for forwarding the service, and the current load situation of the forwarding instance are obtained.
- selecting, according to the obtained processing capability and/or the current load situation, the selected forwarding instance for forwarding the service from the forwarding pool includes: according to the acquired processing capability and the current load In the case, the remaining capacity of each forwarding instance is determined; and the selected forwarding instance for forwarding the service is selected from the forwarding pool according to the determined remaining capacity of each forwarding pool.
- determining the remaining capability of each forwarding instance according to the obtained processing capability and the current load situation including: processing capability according to each forwarding instance, and each Determining the initial load status of the forwarding instance, determining an initial remaining capacity of each forwarding instance; determining, according to the initial remaining capacity, a preset weight of each forwarding instance, and a normalization function, determining each forwarding The remaining capabilities of the example.
- the forwarding instance includes: a protocol traffic forwarding instance and a data traffic forwarding instance.
- a service processing apparatus including:
- An obtaining module configured to acquire a processing capability of each forwarding instance in a forwarding pool for forwarding a service and/or a current load situation of the forwarding instance; and a selecting module, configured to obtain the processing capability and/or according to the obtained The current load situation is selected, and the selected forwarding instance for forwarding the service is selected from the forwarding pool; and the processing module is configured to forward the service according to the determined selected forwarding instance.
- the acquiring module includes: a first acquiring unit, configured to send, by using the forwarding instance, a request message for requesting acquiring processing capability of the forwarding instance and/or the current load situation, and receiving the The method for forwarding the forwarding capability of the forwarding instance and the response message of the current load situation, and the processing capability of each forwarding instance in the forwarding pool for forwarding the service and the forwarding instance And a second acquiring unit, configured to obtain, by periodically receiving, a notification message sent by the forwarding instance to notify a processing capability of the forwarding instance and/or a current load situation, to obtain a service for forwarding The processing capability of each forwarding instance in the forwarding pool and the current load situation of the forwarding instance.
- a first acquiring unit configured to send, by using the forwarding instance, a request message for requesting acquiring processing capability of the forwarding instance and/or the current load situation, and receiving the The method for forwarding the forwarding capability of the forwarding instance and the response message of the current load situation, and the processing capability of each forward
- the selecting module includes: a determining unit, configured to determine, according to the acquired processing capability and the current load condition, a remaining capability of each forwarding instance; and a selecting unit, configured to determine, according to the determined The remaining capacity of each forwarding pool, from which the selected forwarding instance for forwarding traffic is selected.
- the determining unit includes: a first determining subunit, configured to determine an initial remaining of each forwarding instance according to a processing capability of each forwarding instance and a current load condition of each forwarding instance Capability; a second determining subunit for using the initial remaining capacity, The preset weight of each forwarding instance, and a normalization function, determining the remaining capability of each forwarding instance.
- the forwarding instance includes: a protocol traffic forwarding instance and a data traffic forwarding instance.
- a storage medium is also provided.
- the storage medium is configured to store program code for performing the steps of: obtaining processing capabilities of each forwarding instance in a forwarding pool for forwarding traffic and/or current load conditions of the forwarding instance; The capability and/or the current load situation, selecting a selected forwarding instance for forwarding the service from the forwarding pool; and forwarding the service according to the determined selected forwarding instance.
- the storage medium is further configured to store program code for performing the following steps: obtaining, by at least one of the following, processing capability and/or the forwarding instance of each forwarding instance in the forwarding pool for forwarding the service
- the current load situation includes: sending, by the forwarding instance, a request message for requesting to acquire the processing capability of the forwarding instance and/or the current load situation, and receiving the forwarding instance feedback carrying the forwarding instance Obtaining the processing capability of each forwarding instance in the forwarding pool for forwarding traffic and the current load situation of the forwarding instance in a manner of processing capability and/or a response message of the current load situation; Obtaining, by the forwarding instance, a manner for notifying the processing capability of the forwarding instance and/or the notification message of the current load situation, acquiring the processing capability of each forwarding instance in the forwarding pool for forwarding the service, and the forwarding instance Current load situation.
- the storage medium is further configured to store program code for performing the following steps: selecting a selected forwarding for forwarding the service from the forwarding pool according to the obtained processing capability and/or the current load situation
- the example includes: determining, according to the obtained processing capability and the current load situation, a remaining capability of each forwarding instance; selecting, according to the determined remaining capacity of each forwarding pool, from the forwarding pool The selected forwarding instance of the forwarding service.
- the storage medium is further configured to store program code for performing the following steps: determining a remaining of each forwarding instance according to the obtained processing capability and the current load situation
- the capability includes: determining, according to the processing capability of each forwarding instance and the current load condition of each forwarding instance, an initial remaining capability of each forwarding instance; and each forwarding instance according to the initial remaining capability
- the preset weights, and a normalization function determine the remaining capabilities of each of the forwarding instances.
- the storage medium is further configured to store program code for performing the following steps: the forwarding instance comprises: a protocol traffic forwarding instance and a data traffic forwarding instance.
- a service processing apparatus including:
- a memory for storing a computer program
- the processor is configured to implement the service processing method provided by the embodiment of the present invention when the computer program stored in the memory is executed.
- a storage medium which is stored with a computer program, and when the computer program is executed by a processor, the service processing method provided by the embodiment of the present invention is implemented.
- the processing capability of each forwarding instance in the forwarding pool for forwarding the service and the current load situation of the forwarding instance are obtained; and the forwarding pool is selected for use according to the acquired processing capability and/or the current load situation. Forwarding the selected forwarding instance of the service; forwarding the service according to the determined selected forwarding instance.
- the forwarding instance for forwarding the service is the forwarding instance with the best processing capability and the lowest load, because the selected forwarding instance for forwarding the service is selected from the forwarding pool according to the obtained processing capability and/or the current load.
- the problem that the forwarding pool handles the traffic in the related technology cannot guarantee the optimal processing performance of the forwarding pool, and achieves the effect of improving work efficiency.
- FIG. 1 is a block diagram showing the hardware structure of a terminal of a service processing method according to an embodiment of the present invention
- FIG. 2 is a flowchart of a service processing method according to an embodiment of the present invention.
- FIG. 3 is a schematic diagram of a forwarding pool according to an embodiment of the present invention.
- FIG. 4 is a schematic diagram of classification of processing capabilities and loads of a forwarding instance according to an embodiment of the present invention
- FIG. 5 is a schematic diagram of processing capability of an initial state acquisition forwarding instance according to an embodiment of the present invention.
- FIG. 6 is a schematic diagram of a load update operation of control plane management according to an embodiment of the present invention.
- FIG. 7 is a schematic diagram of a real-time load of a pull-up update forwarding instance according to an embodiment of the present invention.
- FIG. 8 is a schematic diagram of a real-time load of a push-up update forwarding instance according to an embodiment of the present invention.
- FIG. 9 is a schematic diagram of a control plane selection protocol traffic processing selected forwarding instance and a data traffic processing selected forwarding instance according to an embodiment of the present invention.
- FIG. 10 is a flowchart of a control plane selection protocol traffic processing selected forwarding instance and a data traffic forwarding selected forwarding instance according to an embodiment of the present invention
- FIG. 11 is a schematic diagram of a system composition of a forwarding instance and a control plane according to an embodiment of the present invention
- FIG. 12 is a schematic diagram of interaction between components of protocol traffic processing load sharing and data traffic forwarding load sharing according to an embodiment of the present invention.
- FIG. 13 is a schematic diagram of a system composition of a forwarding instance and a control plane according to an embodiment of the present invention
- FIG. 14 is a schematic diagram of a DHCP access service processing interaction according to an embodiment of the present invention.
- FIG. 15 is a structural block diagram of a service processing apparatus according to an embodiment of the present invention.
- FIG. 16 is a structural block diagram of an obtaining module 152 in a service processing apparatus according to an embodiment of the present invention.
- FIG. 17 is a structural block diagram of a selection module 154 in a service processing apparatus according to an embodiment of the present invention.
- FIG. 18 is a block diagram showing the structure of the determining unit 172 in the service processing apparatus according to an embodiment of the present invention.
- FIG. 1 is a hardware structural block diagram of a terminal of a service processing method according to an embodiment of the present invention.
- terminal 10 may include one or more (only one shown) processor 102 (processor 102 may include, but is not limited to, a processing device such as a microprocessor MCU or a programmable logic device FPGA), A memory 104 for storing data, and a transmission device 106 for communication functions.
- processor 102 may include, but is not limited to, a processing device such as a microprocessor MCU or a programmable logic device FPGA
- a memory 104 for storing data
- a transmission device 106 for communication functions.
- terminal 10 may also include more or fewer components than those shown in FIG. 1, or have a different configuration than that shown in FIG.
- the memory 104 can be used to store software programs and modules of application software, such as program instructions/modules corresponding to the business processing method in the embodiment of the present invention, and the processor 102 executes various programs by running software programs and modules stored in the memory 104. Functional application and data processing, that is, the above method is implemented.
- Memory 104 may include high speed random access memory, and may also include non-volatile memory such as one or more magnetic storage devices, flash memory, or other non-volatile solid state memory.
- memory 104 may further include memory remotely located relative to processor 102, which may be connected to terminal 10 via a network. Examples of such networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.
- Transmission device 106 is for receiving or transmitting data via a network.
- the above network specific An example may include a wireless network provided by a communication provider of terminal 10.
- the transmission device 106 includes a Network Interface Controller (NIC) that can be connected to other network devices through a base station to communicate with the Internet.
- the transmission device 106 can be a Radio Frequency (RF) module for communicating with the Internet wirelessly.
- NIC Network Interface Controller
- RF Radio Frequency
- FIG. 2 is a flowchart of a service processing method according to an embodiment of the present invention. As shown in FIG. 2, the process includes the following steps:
- step S202 the processing capability of each forwarding instance in the forwarding pool for forwarding the service and/or the current load situation of the forwarding instance are obtained, where the forwarding pool is composed of multiple forwarding instances.
- Step S204 Select a selected forwarding instance for forwarding the service from the forwarding pool according to the acquired processing capability and/or the current load situation.
- Step S206 Forward the service according to the determined selected forwarding instance.
- the selected forwarding instance for forwarding the service is selected from the forwarding pool according to the acquired processing capability and/or the current load situation, so that the forwarding instance for forwarding the service is the processing power optimal and the lowest load. Forwarding the instance, therefore, the problem that the forwarding pool handles the traffic in the related technology cannot ensure that the processing performance of the forwarding pool is optimal, and the work efficiency is improved.
- all forwarding instances in the forwarding pool may be controlled by the control plane, and the forwarding planes form the forwarding instances into logical forwarding pools, as shown in FIG. 3 .
- the foregoing forwarding instance capability can be divided into a protocol traffic processing capability and a data traffic processing capability; the load of the forwarding instance can be divided into a protocol traffic processing load and a data traffic processing load, as shown in FIG. 4 .
- the capability of forwarding the instance may include multiple types, for example, at least one of the following: CPU capability, storage capability, bandwidth capability, forwarding capability, number of users, and the like; the load may include multiple types, for example, may include at least the following One: CPU utilization, storage usage, bandwidth consumption, current forwarding rate, current number of users, and so on.
- the processing capability of each forwarding instance in the forwarding pool for forwarding the service and/or the current load situation of the forwarding instance may be obtained by at least one of: sending a forwarding instance to the forwarding instance for requesting to obtain the forwarding instance Acquiring each of the forwarding pools for forwarding traffic, in a manner that the processing capability of the processing capability and/or the current load condition is received, and the response message of the forwarding instance is received, which carries the processing capability of the forwarding instance and/or the current load situation. Forwarding the processing capability of the forwarding instance and the current load situation of the forwarding instance. Obtaining the forwarding pool for forwarding the service by periodically receiving the notification message sent by the forwarding instance to notify the forwarding instance of the processing capability and/or the current load situation. The processing power of each forwarding instance and the current load situation of the forwarding instance.
- the current load situation of the forwarding instance is a load (such as bandwidth) allocated by the unified control, it may also be obtained locally.
- the processing capability of the forwarding instance may be obtained in an initial state (that is, the forwarding service is not started).
- the processing capability request is sent in the initial state, and the forwarding instance generates the processing capability request and acquires the processing capability.
- the processing capability response is reported, and the received processing capability is saved according to the processing capability response.
- the channel that reports the processing capability may use an existing protocol such as an OpenFlow protocol or a custom private protocol.
- the unified control of the allocated load can be locally obtained, as shown in FIG. 6, the unified control distributed load update operation can be performed by the control plane.
- the timing acquisition manner may include two types: a pull mode and a push mode.
- Pull mode Sends a load request to the forwarding instance periodically, and the forwarding instance obtains the real-time traffic load of the current load component response to obtain the forwarding instance.
- the control device obtains the real-time traffic load of the forwarding instance as an example.
- the process includes: Step 702: The load request timeout timer expires, Step 704: After the timeout, the load request is sent to The forwarding instance requests to obtain the current load status of the forwarding instance.
- Step 706 After receiving the load request, the forwarding instance obtains the current load situation and forms a load response, and sends the response to the control plane.
- Step 708 After receiving the load response, the control plane updates the local forwarding. Instance real-time load.
- Push mode The real-time traffic load of the forwarding instance is obtained according to the notification information of the load carried by the forwarding instance.
- the method for obtaining the real-time traffic load of the forwarding instance is taken as an example. As shown in FIG. 8 , the process includes: Step 802: Forwarding the instance load reporting timer expires, Step 804: Obtaining the current load situation of the forwarding instance to form a load The notification message is reported, and the control plane is notified. Step 806: The control plane receives the notification, obtains the current load status of the forwarding instance, and updates the locally saved load situation.
- selecting the selected forwarding instance for forwarding the service from the forwarding pool according to the acquired processing capability and/or the current load situation includes: determining the remaining capability of each forwarding instance according to the acquired processing capability and the current load situation. Selecting a selected forwarding instance for forwarding traffic from the forwarding pool based on the determined remaining capabilities of each forwarding pool. Through the above steps, the selected forwarding instance with the best remaining capacity can be quickly selected from the forwarding pool.
- the foregoing embodiment is described by taking the capability of the control plane to acquire multiple forwarding instances, the load, and determining the remaining capacity.
- the process includes:
- Step 902 Acquire and discover the processing capability of forwarding instance 1 as shown in FIG.
- Step 904 Acquire and discover the processing capability of forwarding instance 2 as shown in FIG.
- Step 906 Acquire and discover the processing capability of forwarding instance 3 as shown in FIG.
- Step 908 Save the processing capability of each forwarding instance on the control plane, respectively.
- Step 910 After allocating resources, update the load status of the forwarding instance saved on the control plane, and calculate the remaining capacity.
- Step 912 The pull mode obtains the load status of the forwarding instances 1, 2, and 3,
- Step 914 After obtaining the load condition of the forwarding instance, update the load status of the forwarding instance saved on the control plane, and calculate the remaining capacity.
- Step 916 The "push" mode obtains the load status of the forwarding instances 1, 2, and 3,
- Step 918 After obtaining the load of the forwarding instance, update the load status of the forwarding instance saved on the control plane, and calculate the remaining capacity.
- determining the remaining capability of each forwarding instance according to the acquired processing capability and the current load situation includes: determining an initial remaining of each forwarding instance according to a processing capability of each forwarding instance and a current load condition of each forwarding instance. Capability; determine the remaining capabilities of each forwarding instance based on the initial remaining capacity, the default weight of each forwarding instance, and the normalization function.
- the remaining capabilities can be determined by the following algorithm: C i represents the processing capability value of the i th forwarding instance, L i represents the current load value of the i th forwarding instance, C i -L i represents the remaining capability value of the i th forwarding instance, and the function f i () represents the i th
- the normalization function of the remaining capacity values of the forwarding instances indicates that the remaining capacity values of the i-th forwarding instance are converted from absolute values to relative values of remaining capacity values of other forwarding instances, providing a basis for uniform comparison.
- B i represents the weight of the remaining capability of the i-th forwarding instance.
- the weight of the remaining capacity of the i-th forwarding instance can be dynamically adjusted by adjusting the weight, so that the remaining capacity of the i-th forwarding instance can be adjusted.
- the degree of importance This weight is an important parameter of the strategy and can be adjusted by the user. It indicates that 1 to n remaining capacity values are added. When added, the large value indicates that the remaining capacity is strong. When each policy selects the forwarding instance, the forwarding instance with the large remaining capacity value is selected.
- the preset weight of each forwarding instance can be adjusted, and the proportion of the remaining capacity of each forwarding instance in the remaining capacity of the forwarding pool can be dynamically adjusted, so that the importance of the remaining capacity of each forwarding instance can be adjusted.
- the forwarding instance includes: a protocol traffic forwarding instance and a data traffic forwarding instance.
- the execution body of the foregoing embodiment may be a control plane, and may be applied to a system composed of a forwarding instance and a control plane.
- the following describes the embodiments of the present invention by using the control plane selection protocol traffic processing selected forwarding instance and the data traffic forwarding selected forwarding instance, respectively, and the system applied to the forwarding instance and the control plane. For example Be explained.
- FIG. 10 is a flowchart of a control plane selection protocol traffic processing selected forwarding instance and a data traffic forwarding selected forwarding instance according to an embodiment of the present invention. As shown in FIG. 10, the process includes:
- the forwarding instance receives the access protocol packet and reports it to the control plane.
- the user accesses the BRAS through an access protocol, and the access protocol may be a Dynamic Host Configuration Protocol (DHCP), a DHCPv6, a PPP over Ethernet (PPPoE), and an address. Address Resolution Protocol (ARP), Neighbor Discovery (ND), and so on.
- DHCP Dynamic Host Configuration Protocol
- PPPoE DHCPv6
- ARP Address Resolution Protocol
- ND Neighbor Discovery
- the forwarding pool is reachable to the user.
- the user access protocol packet can be forwarded to any forwarding instance in the forwarding pool. Since most of the access protocols are broadcast packets, each forwarding instance receives the protocol packet and then forwards the instance to the protocol. The message is sent to the control plane, so that the control plane knows that each forwarding instance is successfully connected to the user.
- the uplink protocol may be an open flow (OPENFLOW) protocol or a customized private protocol.
- step S1004 the control plane processes the selected forwarding instance according to the protocol processing load sharing policy selection protocol.
- Step S1006 After the control plane completes the authentication and authorization, the user table is generated, and then the selected forwarding instance is selected according to the load condition of each forwarding instance. After the traffic forwarding policy is selected according to the load balancing policy, the control plane delivers the user access user table to the traffic forwarding selected forwarding instance.
- the delivered user table can pass the Openflow protocol or a customized private protocol. If the selected access instance does not deliver the user table, the user forwards the traffic only through the traffic forwarding selected forwarding instance.
- FIG. 11 is a schematic diagram of a system composition of a forwarding instance and a control plane according to an embodiment of the present invention.
- the system includes: a forwarding instance and a control plane.
- the forwarding instance is divided into: an access component and a forwarding component;
- the control plane is divided into an access component and a forwarding instance selected component.
- the function of the access component of the forwarding instance completes the access of the protocol packet to the control plane.
- the component and the protocol packet of the access component of the receiving control plane are sent to the user; the capability of the protocol processing is calculated, the capability of the protocol traffic processing is reported to the control plane; the load of the protocol traffic processing is calculated, and the load of the protocol traffic processing is reported to the control plane. .
- the function of the forwarding component of the forwarding instance receiving the user table delivered from the access component of the control plane and saving it; querying the result of the user table for data traffic processing and forwarding, and if the user table does not exist, the traffic is discarded; calculating data traffic processing Ability to report data traffic processing capability to the control plane; calculate data traffic processing load, report data traffic processing load to the control plane.
- the function of the access component of the control plane receiving the request protocol packet sent by the access component of the forwarding instance, and the forwarding instance in the forwarding pool sends a request protocol packet to the control plane, and queries the selected component of the forwarding instance of the control plane.
- the protocol traffic processing selects the forwarding instance. After the forwarding instance is selected, only the protocol processes the request protocol packet sent by the selected forwarding instance; the authentication and authorization are completed; the response protocol packet is constructed and sent to the protocol to process the selected forwarding instance;
- the user table is generated, and the selected instance of the forwarding instance of the control plane is queried to forward the selected forwarding instance, and the user table is delivered to the selected forwarding instance of the traffic forwarding.
- the forwarding instance of the control plane plays the role of the selected component: generates a logical forwarding pool, manages the forwarding instance in the forwarding pool, receives the protocol traffic processing capability reported by the forwarding instance, saves it to the local, and receives the protocol traffic processing load reported by the forwarding instance.
- the data traffic processing capability of the forwarding instance is received and saved to the local; the data traffic processing load reported by the forwarding instance is received and saved to the local; the access component queries the resource occupation, and generates a locally managed protocol traffic processing load and
- the data traffic processing load is calculated according to the policy algorithm, and the remaining capacity of the protocol traffic processing and the remaining capacity of the data traffic processing are calculated for each instance; the forwarding instance with the large remaining capacity value of the selected protocol traffic processing is a protocol traffic processing forwarding instance;
- the forwarding instance with large residual capacity value of the fixed data traffic processing is the data traffic processing forwarding instance; the access component of the control plane is provided with the query protocol traffic processing to forward the interface of the selected forwarding instance; and the access component of the control plane is provided with the query data traffic processing. Selected forwarding instance query mouth.
- FIG. 12 is a schematic diagram of interaction between components of protocol traffic processing load sharing and data traffic forwarding load sharing according to an embodiment of the present invention. As shown in FIG. 12, the process includes:
- Step 1202 Forwarding the access component of the instance 1 and the forwarding instance 2 to forward the protocol traffic processing capability of the selected component to the control plane;
- Step 1204 Forwarding the forwarding component of the instance 1 and the forwarding instance 2 to forward the data traffic processing capability of the selected component to the control plane;
- Step 1206 Forwarding the access component of the instance 1 and forwarding instance 2 to the control plane to forward the protocol selected component to report the protocol traffic processing load;
- Step 1208 Forwarding the forwarding component of the instance 1 and the forwarding instance 2 to the control plane to forward the data traffic processing load to the selected component of the instance;
- Step 12010 Control plane forwarding instance selected component calculates local management protocol traffic processing load and data traffic processing load
- Step 12012 Forwarding instance of the control plane
- the selected component processes the remaining capacity and data traffic processing remaining capacity according to the capability and load calculation protocol traffic;
- Step 12014 The access component of the forwarding instance 1 receives the request protocol packet and sends it to the access component of the control plane.
- Step 12016 The access component of the forwarding instance 2 receives the request protocol packet and sends it to the access component of the control plane.
- Step 12018 The access component of the control plane sends a selected forwarding instance to the forwarding instance of the control plane to select a component query protocol traffic processing;
- Step 12020 Select the forwarding capability according to the protocol traffic processing forwarding instance 1 to select the forwarding instance for the protocol traffic processing.
- Step 12022 The forwarding instance of the control plane selects the component to return the protocol traffic to process the selected forwarding instance as the forwarding instance 1;
- Step 12024 The access component of the control plane completes the authentication, authorization, and constructs a response protocol packet. And sending to the protocol traffic processing selected forwarding instance - forwarding the access component of instance 1;
- Step 12026 The access component of the control plane queries the selected instance of the forwarding instance of the control plane to process the data traffic to process the selected forwarding instance.
- Step 12028 According to the data traffic processing remaining capacity selection forwarding instance 1 for data traffic processing selected forwarding instance 2;
- Step 12030 The forwarding instance of the control plane selects the component to return the data traffic to process the selected forwarding instance as the forwarding instance 2;
- Step 12032 Generate a user table, and select a forwarding instance for the data traffic processing.
- the forwarding component of the forwarding instance 2 delivers the user table, and the forwarding component of the forwarding instance 2 receives the user table and saves the user table.
- a DHCP message is taken as an example to describe the message in the embodiment of the present invention.
- the user is connected to each forwarding instance in the forwarding pool through the switch.
- the control plane controls the forwarding pool.
- the forwarding plane of each forwarding instance from the control plane to the forwarding pool is reachable.
- bandwidth For simplicity and load, only one type is considered: bandwidth.
- the capability represents the total bandwidth
- the load represents the bandwidth consumed
- the remaining capacity is the remaining bandwidth.
- FIG. 14 is a schematic diagram of a DHCP access service processing interaction according to an embodiment of the present invention. As shown in FIG. 14, after the DHCP access is completed, the control plane performs protocol traffic processing and data traffic processing on the forwarding instance with strong remaining capacity according to the policy. .
- the process includes:
- Step 1402 Forwarding the reporting capability of the instance 1, the total bandwidth of the protocol traffic processing is 100 megabytes (M), and the total bandwidth of the data traffic processing is 10 GHz (G);
- Step 1404 Forwarding the reporting capability of the instance 2, the total bandwidth of the protocol traffic processing is 120M, and the total bandwidth of the data traffic processing is 8G.
- Step 1406 Forwarding the reporting capability of the instance 3, the total bandwidth of the protocol traffic processing is 90M, and the total bandwidth of the data traffic processing is 9G.
- Step 1408 Since the load of each forwarding instance is 0 at this time, each forwarding instance is The remaining capacity is the total bandwidth of protocol traffic processing and data traffic processing for each forwarding instance;
- Step 14010 The user sends a DHCP Discovery (Discover) protocol packet to apply for an Internet Protocol (IP) address; the DHCP Discover protocol packet sent by the user arrives at the switch because the packet is a broadcast packet, so the packet is copied;
- IP Internet Protocol
- Step 14012 The copied one DHCP Discover protocol packet is forwarded to the forwarding instance 1;
- Step 14014 The copied one DHCP Discover protocol packet is forwarded to the forwarding instance 2;
- Step 14016 A copied DHCP Discover protocol packet is forwarded to the forwarding instance 3.
- Step 14018 Forwarding instance 1 sends the DHCP Discover message to the control plane.
- Step 14020 Forwarding instance 2 sends the DHCP Discover message to the control plane.
- Step 14022 Forwarding instance 3 sends the DHCP Discover message to the control plane.
- Step 14024 The control plane processes the selected forwarding instance according to the protocol traffic of each forwarding instance to process the remaining capability selection protocol traffic. Since the protocol traffic processing forwarding forwarding instance 2 has the strongest remaining capability, the forwarding instance 2 is selected as the protocol traffic processing to select the forwarding instance. ;
- Step 14026 Perform authentication.
- the authentication mode used in this example is DHCP option (option) authentication; the authentication fails, the process ends; the authentication passes, and then the authorization is performed.
- the authorization information includes the IP address assigned to the user and the protocol traffic processing bandwidth 10M. And the data traffic processing bandwidth is 200M, after the bandwidth is allocated, the protocol traffic processing load of the forwarding forwarding instance 2 is 10M, and the remaining capacity of the forwarding forwarding instance 2 is 120M-10M;
- Step 14028 After the authentication is passed and authorized, a DHCP provider (Offer) protocol packet is configured, the protocol packet includes an IP address assigned to the user, and is sent to the protocol traffic processing to select a forwarding instance-forwarding instance 2;
- a DHCP provider (Offer) protocol packet is configured, the protocol packet includes an IP address assigned to the user, and is sent to the protocol traffic processing to select a forwarding instance-forwarding instance 2;
- Step 14030 Forwarding the traffic processing bandwidth of the protocol 2 and forwarding the DHCP Offer protocol packet to the switch;
- Step 14032 The switch forwards the DHCP Offer protocol packet to the user.
- Step 14034 The user constructs a DHCP Request (Request) protocol message and sends it to the exchange. machine;
- Step 14036 The switch forwards the DHCP Request protocol packet to the forwarding instance 2 in the forwarding pool.
- Step 14038 Forwarding instance 2 sends the DHCP Request protocol packet to the control plane.
- Step 14040 The control plane receives the DHCP Request message, and generates a user table.
- the control plane processes the remaining forwarding instance according to the data flow of each forwarding instance to process the selected forwarding instance.
- the data flow processing of forwarding instance 1 has the strongest remaining capacity. Therefore, the forwarding forwarding instance 1 is selected as the data forwarding processing forwarding forwarding instance; the data forwarding processing load of the forwarding forwarding instance 1 is 200M, and the remaining data traffic processing forwarding capability of the forwarding forwarding instance 1 is 10G-200M;
- Step 14042 The control plane sends the user table to forward instance 1, and forwards the data traffic processing bandwidth of instance 1;
- Step 14044 The control plane constructs a DHCP response (ACK) protocol packet and sends it to the forwarding instance 1;
- ACK DHCP response
- Step 1446 Forwarding instance 2 forwards the DHCP ACK protocol packet to the switch.
- Step 14048 The switch forwards the DHCP ACK protocol packet to the user, and the user applies for the IP address, and the process ends.
- the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course, by hardware, but in many cases, the former is A better implementation.
- the technical solution of the present invention which is essential or contributes to the prior art, may be embodied in the form of a software product stored in a storage medium (such as ROM/RAM, disk,
- the optical disc includes a number of instructions for causing a terminal device (which may be a cell phone, a computer, a server, or a network device, etc.) to perform the methods described in various embodiments of the present invention.
- a service processing device is also provided, which is used to implement the above implementation.
- the examples and preferred embodiments have not been described again.
- the term "module” may implement a combination of software and/or hardware of a predetermined function.
- the apparatus described in the following embodiments is preferably implemented in software, hardware, or a combination of software and hardware, is also possible and contemplated.
- FIG. 15 is a structural block diagram of a service processing apparatus according to an embodiment of the present invention. As shown in FIG. 15, the apparatus includes:
- the obtaining module 152 is configured to obtain processing capability of each forwarding instance in the forwarding pool for forwarding the service and/or a current load situation of the forwarding instance;
- the selecting module 154 is connected to the obtaining module 152, and configured to select a selected forwarding instance for forwarding the service from the forwarding pool according to the acquired processing capability and/or the current load situation;
- the processing module 156 is coupled to the selection module 154 and configured to forward the service according to the determined selected forwarding instance.
- FIG. 16 is a structural block diagram of an acquisition module 152 in a service processing apparatus according to an embodiment of the present invention.
- the acquisition module 152 includes: a first acquisition unit 162 and a second acquisition unit 164, which are respectively described below.
- the first obtaining unit 162 is configured to send, by using the forwarding instance, a request message for requesting to acquire the processing capability of the forwarding instance and/or the current load situation, and receiving the processing capability and/or the current load of the forwarding instance fed back by the forwarding instance.
- the method of responding to the situation obtaining the processing capability of each forwarding instance in the forwarding pool for forwarding the service and the current load status of the forwarding instance;
- the second obtaining unit 164 is configured to obtain each forwarding in the forwarding pool for forwarding the service by periodically receiving the notification message sent by the forwarding instance to notify the forwarding instance of the processing capability and/or the current load situation. The processing power of the instance and the current load situation of the forwarding instance.
- FIG. 17 is a structural block diagram of a selection module 154 in a service processing apparatus according to an embodiment of the present invention. As shown in FIG. 17, the selection module 154 includes: a determining unit 172 and a selecting unit 174, The faces are explained separately.
- the determining unit 172 is configured to determine a remaining capability of each forwarding instance according to the acquired processing capability and the current load situation;
- the selecting unit 174 is connected to the determining unit 172, and configured to select a selected forwarding instance for forwarding the service from the forwarding pool according to the determined remaining capacity of each forwarding pool.
- FIG. 18 is a structural block diagram of the determining unit 172 in the service processing apparatus according to the embodiment of the present invention. As shown in FIG. 18, the determining unit 172 includes: a first determining subunit 182 and a second determining subunit 184, which are respectively described below. .
- the first determining sub-unit 182 is configured to determine an initial remaining capability of each forwarding instance according to a processing capability of each forwarding instance and a current load condition of each forwarding instance;
- the second determining subunit 184 is coupled to the first determining subunit 182, configured to determine a remaining capacity of each forwarding instance according to an initial remaining capability, a preset weight of each forwarding instance, and a normalization function.
- the foregoing forwarding instance includes: a protocol traffic forwarding instance and a data traffic forwarding instance.
- each of the above modules may be implemented by software or hardware.
- the foregoing may be implemented by, but not limited to, the foregoing modules are all located in the same processor; or, the above modules are in any combination.
- the forms are located in different processors.
- Embodiments of the present invention also provide a storage medium.
- the foregoing storage medium may be configured to store program code for performing the following steps:
- the storage medium is further configured to store program code for performing the following steps:
- the processing capability of each forwarding instance in the forwarding pool for forwarding the service and/or the current load status of the forwarding instance are:
- S2 Acquire processing capability and forwarding of each forwarding instance in the forwarding pool for forwarding the service by periodically receiving the notification message sent by the forwarding instance to notify the forwarding instance of the processing capability and/or the current load situation. The current load situation of the instance.
- the storage medium is further configured to store program code for performing the following steps: selecting the selected forwarding instance for forwarding the service from the forwarding pool according to the acquired processing capability and/or the current load condition comprises:
- the storage medium is further configured to store program code for performing the following steps: determining the remaining capabilities of each forwarding instance according to the acquired processing capability and the current load situation, including:
- the storage medium is further configured to store program code for performing the following steps: the forwarding instance comprises: a protocol traffic forwarding instance and a data traffic forwarding instance.
- the foregoing storage medium may include, but is not limited to: a USB flash drive, only Read-Only Memory (ROM), Programmable Read-Only Memory (PROM), Erasable Programmable Read-Only Memory (EPROM), electrically erasable EEPROM (Electrically Erasable Programmable Read-Only Memory), Random Access Memory (RAM), Magnetic Random Access Memory (FRAM), Flash Memory, Magnetic surface memory, optical disk, or compact disc read-only memory (CD-ROM); magnetic surface memory can be any kind of medium that can store program code, such as disk storage or tape storage, mobile hard disk, disk or optical disk. .
- the processor performs, according to the stored program code in the storage medium, acquiring a processing capability of each forwarding instance in the forwarding pool for forwarding the service and/or a current load condition of the forwarding instance; According to the obtained processing capability and/or the current load situation, the selected forwarding instance for forwarding the service is selected from the forwarding pool; and the service is forwarded according to the determined selected forwarding instance.
- the processor performs, according to the stored program code in the storage medium, obtaining processing capability and/or processing capability of each forwarding instance in the forwarding pool for forwarding the service by using at least one of the following manners:
- the current load situation of the forwarding instance includes: sending a request message for requesting to acquire the processing capability of the forwarding instance and/or the current load condition to the forwarding instance, and receiving the processing capability and/or current load of the forwarding instance fed back by the forwarding instance.
- the processor performs, according to the stored program code in the storage medium, selecting, according to the acquired processing capability and/or the current load condition, the forwarding service from the forwarding pool.
- the selected forwarding instance includes: determining the remaining capacity of each forwarding instance according to the obtained processing capability and the current load situation; and selecting the selected forwarding for forwarding the service from the forwarding pool according to the determined remaining capacity of each forwarding pool.
- the processor performs, according to the stored program code in the storage medium, determining, according to the acquired processing capability and the current load condition, the remaining capability of each forwarding instance, including: processing according to each forwarding instance.
- the capability and the current load situation of each forwarding instance determine the initial remaining capacity of each forwarding instance; determine the remaining capabilities of each forwarding instance based on the initial remaining capacity, the preset weight of each forwarding instance, and the normalization function.
- the processor executes according to the stored program code in the storage medium: the forwarding instance includes: a protocol traffic forwarding instance and a data traffic forwarding instance.
- modules or steps of the present invention described above can be implemented by a general-purpose computing device that can be centralized on a single computing device or distributed across a network of multiple computing devices. Alternatively, they may be implemented by program code executable by the computing device such that they may be stored in the storage device by the computing device and, in some cases, may be different from the order herein.
- the steps shown or described are performed, or they are separately fabricated into individual integrated circuit modules, or a plurality of modules or steps thereof are fabricated as a single integrated circuit module.
- the invention is not limited to any specific combination of hardware and software.
- the present invention provides a service processing method and apparatus, and a storage medium.
- the method includes: acquiring a processing capability of each forwarding instance in a forwarding pool for forwarding a service and a current load situation of the forwarding instance; / or the current load situation, selecting a selected forwarding instance for forwarding the service from the forwarding pool; forwarding the service according to the determined selected forwarding instance.
- the invention solves the problem that the processing mode of the forwarding pool in the related art cannot guarantee the optimal processing performance of the forwarding pool, and achieves the effect of improving work efficiency.
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Processing Of Solid Wastes (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
本发明提供了一种业务处理方法及装置、存储介质,该方法包括:获取用于转发业务的转发池中的每个转发实例的处理能力和转发实例的当前负载情况;根据获取的处理能力和/或当前负载情况,从转发池中选择用于转发业务的选定转发实例;根据确定的选定转发实例对业务进行转发处理。
Description
相关申请的交叉引用
本发明基于申请号为201610482668.3、申请日为2016年6月27日的中国专利申请提出,并要求该中国专利申请的优先权,该中国专利申请的内容在此引入本发明作为参考。
本发明涉及通信技术,具体而言,涉及一种业务处理方法及装置、存储介质。
宽带接入服务器(Broadband Remote Access Server,简称为BRAS)是一种面向宽带网络应用的接入网关。它是宽带接入网和骨干网之间的桥梁,提供基本的接入手段和宽带接入网的管理功能。它位于网络的边缘,提供宽带接入服务、实现多种业务的汇聚与转发,能满足不同用户对传输容量和带宽利用率的要求,因此是宽带用户接入的核心设备。BRAS对于接入的用户首先进行认证,认证通过允许用户访问宽带网络,认证失败拒绝用户访问宽带网络。
网络功能虚拟化(Network Function Virtualization,简称为NFV)是通过基于行业标准的服务器、存储和网络设备取代私有专用网元设备。带来两个好处:1、标准设备成本低廉,节省投资成本;2、开放应用程序编程接口(Application Programming Interface,简称为API),提供灵活网络功能扩展。
BRAS功能的虚拟化(BRAS NFV)是该领域的热点。宽带化战略是国
家重要的长期战略计划,投入成本巨大,使用NFV可以节省投资成本。BRAS作为宽带业务的控制层,需要部署丰富的业务,而且具备灵活的扩展性。传统的BRAS设备添加新业务,需要设备厂商开发调试,周期较长,影响新业务的开展。通过NFV提供的开放接口,新业务的开发不再依赖于设备厂商,部署时间更短。通过BRAS功能的虚拟化,可以带来节省资本投入和提高收益的好处。
BRAS功能的虚拟化的一种实现方法:控制面和转发面分离,控制层放在通用服务器上,并提供API,转发面接收控制面下发的转发策略和利用转发策略进行流量转发。在转发面,宏观上看成是个转发池,用户流量在转发池进行转发,微观上,转发池是由多个转发实例组成。流量进行转发池后,具体是通过转发实例进行转发。其中,转发实例可以是物理转发设备,也可以是软件实现的软件转发设备。
BRAS网络功能虚拟化(NFV)后,架构和处理流程和传统设备有显著的不同。协议流量和数据流量首先经过转发池,转发池对流量的处理直接影响整个BRAS的性能。
相关技术中,转发池对流量的处理方式有两种。一种处理方式:首先在转发池中某一个转发实例中进行处理,当这个转发实例容量和性能达到一定的阈值后切换到另一个转发实例,这种轮询的处理方式,对于新生用户的上线和流量转发性能和一个转发实例的性能相当,不能充分发挥转发池的性能优势。另一种处理方式:按照先到先处理的方式进行一定程度上的负载分担。但是这种方式没有充分考虑转发实例的具体能力,转发实例的能力有强有弱,先到先处理的方式,可能只选择了一个非能力最优和分担最低的转发实例,性能不能做到最优。
因此,相关技术中转发池对流量的处理方式无法保证转发池对流量的处理性能最优。
发明内容
本发明实施例提供了一种业务处理方法及装置、存储介质,以至少解决相关技术中相关技术中转发池对流量的处理方式无法保证转发池对流量的处理性能最优的问题。
根据本发明的一个实施例,提供了一种业务处理方法,包括:获取用于转发业务的转发池中的每个转发实例的处理能力和/或所述转发实例的当前负载情况;根据获取的所述处理能力和/或所述当前负载情况,从所述转发池中选择用于转发业务的选定转发实例;根据确定的所述选定转发实例对业务进行转发处理。
可选地,通过以下方式至少之一,获取用于转发业务的转发池中的每个转发实例的处理能力和/或所述转发实例的当前负载情况包括:通过向所述转发实例发送用于请求获取所述转发实例的处理能力和/或所述当前负载情况的请求消息,以及接收所述转发实例反馈的携带有所述转发实例的处理能力和/或所述当前负载情况的响应消息的方式,获取用于转发业务的转发池中的每个转发实例的处理能力和所述转发实例的当前负载情况;通过周期性的接收所述转发实例发送的用于通知所述转发实例的处理能力和/或当前负载情况的通知消息的方式,获取用于转发业务的转发池中的每个转发实例的处理能力和所述转发实例的当前负载情况。
可选地,根据获取的所述处理能力和/或所述当前负载情况,从所述转发池中选择用于转发业务的选定转发实例包括:根据获取的所述处理能力和所述当前负载情况,确定所述每个转发实例的剩余能力;根据确定的所述每个转发池的剩余能力,从所述转发池中选择用于转发业务的选定转发实例。
可选地,根据获取的所述处理能力和所述当前负载情况,确定所述每个转发实例的剩余能力包括:根据所述每个转发实例的处理能力和所述每
个转发实例的当前负载情况,确定所述每个转发实例的初始剩余能力;根据所述初始剩余能力,所述每个转发实例的预设权重,以及归一化函数,确定所述每个转发实例的所述剩余能力。
可选地,所述转发实例包括:协议流量转发实例和数据流量转发实例。
根据本发明的另一个实施例,提供了一种业务处理装置,包括:
获取模块,用于获取用于转发业务的转发池中的每个转发实例的处理能力和/或所述转发实例的当前负载情况;选择模块,用于根据获取的所述处理能力和/或所述当前负载情况,从所述转发池中选择用于转发业务的选定转发实例;处理模块,用于根据确定的所述选定转发实例对业务进行转发处理。
可选地,所述获取模块包括:第一获取单元,用于通过向所述转发实例发送用于请求获取所述转发实例的处理能力和/或所述当前负载情况的请求消息,以及接收所述转发实例反馈的携带有所述转发实例的处理能力和/或所述当前负载情况的响应消息的方式,获取用于转发业务的转发池中的每个转发实例的处理能力和所述转发实例的当前负载情况;第二获取单元,用于通过周期性的接收所述转发实例发送的用于通知所述转发实例的处理能力和/或当前负载情况的通知消息的方式,获取用于转发业务的转发池中的每个转发实例的处理能力和所述转发实例的当前负载情况。
可选地,所述选择模块包括:确定单元,用于根据获取的所述处理能力和所述当前负载情况,确定所述每个转发实例的剩余能力;选择单元,用于根据确定的所述每个转发池的剩余能力,从所述转发池中选择用于转发业务的选定转发实例。
可选地,所述确定单元包括:第一确定子单元,用于根据所述每个转发实例的处理能力和所述每个转发实例的当前负载情况,确定所述每个转发实例的初始剩余能力;第二确定子单元,用于根据所述初始剩余能力,
所述每个转发实例的预设权重,以及归一化函数,确定所述每个转发实例的所述剩余能力。
可选地,所述转发实例包括:协议流量转发实例和数据流量转发实例。
根据本发明的又一个实施例,还提供了一种存储介质。该存储介质设置为存储用于执行以下步骤的程序代码:获取用于转发业务的转发池中的每个转发实例的处理能力和/或所述转发实例的当前负载情况;根据获取的所述处理能力和/或所述当前负载情况,从所述转发池中选择用于转发业务的选定转发实例;根据确定的所述选定转发实例对业务进行转发处理。
可选地,存储介质还设置为存储用于执行以下步骤的程序代码:通过以下方式至少之一,获取用于转发业务的转发池中的每个转发实例的处理能力和/或所述转发实例的当前负载情况包括:通过向所述转发实例发送用于请求获取所述转发实例的处理能力和/或所述当前负载情况的请求消息,以及接收所述转发实例反馈的携带有所述转发实例的处理能力和/或所述当前负载情况的响应消息的方式,获取用于转发业务的转发池中的每个转发实例的处理能力和所述转发实例的当前负载情况;通过周期性的接收所述转发实例发送的用于通知所述转发实例的处理能力和/或当前负载情况的通知消息的方式,获取用于转发业务的转发池中的每个转发实例的处理能力和所述转发实例的当前负载情况。
可选地,存储介质还设置为存储用于执行以下步骤的程序代码:根据获取的所述处理能力和/或所述当前负载情况,从所述转发池中选择用于转发业务的选定转发实例包括:根据获取的所述处理能力和所述当前负载情况,确定所述每个转发实例的剩余能力;根据确定的所述每个转发池的剩余能力,从所述转发池中选择用于转发业务的选定转发实例。
可选地,存储介质还设置为存储用于执行以下步骤的程序代码:根据获取的所述处理能力和所述当前负载情况,确定所述每个转发实例的剩余
能力包括:根据所述每个转发实例的处理能力和所述每个转发实例的当前负载情况,确定所述每个转发实例的初始剩余能力;根据所述初始剩余能力,所述每个转发实例的预设权重,以及归一化函数,确定所述每个转发实例的所述剩余能力。
可选地,存储介质还设置为存储用于执行以下步骤的程序代码:所述转发实例包括:协议流量转发实例和数据流量转发实例。
根据本发明的一个实施例,提供了一种业务处理装置,包括:
存储器,用于存储计算机程序;
处理器,配置为通过执行所述存储器中存储的所述计算机程序时实现本发明实施例提供的业务处理方法。
根据本发明的一个实施例,提供了一种存储介质,存储有计算机程序,所述计算机程序被处理器执行时实现本发明实施例提供的业务处理方法。
通过本发明实施例,获取用于转发业务的转发池中的每个转发实例的处理能力和转发实例的当前负载情况;根据获取的处理能力和/或当前负载情况,从转发池中选择用于转发业务的选定转发实例;根据确定的选定转发实例对业务进行转发处理。由于根据获取的处理能力和/或当前负载情况,从转发池中选择用于转发业务的选定转发实例,使得对业务进行转发处理的转发实例是处理能力最优、负载最低的转发实例,因此,可以解决相关技术中转发池对流量的处理方式无法保证转发池对流量的处理性能最优的问题,达到提高工作效率的效果。
此处所说明的附图用来提供对本发明的进一步理解,构成本发明的一部分,本发明的示意性实施例及其说明用于解释本发明,并不构成对本发明的不当限定。在附图中:
图1是本发明实施例的一种业务处理方法的终端的硬件结构框图;
图2是根据本发明实施例的业务处理方法的流程图;
图3是根据本发明实施例的转发池示意图;
图4是根据本发明实施例的转发实例的处理能力和负载的分类示意图;
图5是根据本发明实施例的初始状态获取转发实例的处理能力示意图;
图6是根据本发明实施例的控制面管理的负载更新操作示意图;
图7是根据本发明实施例的“拉”方式更新转发实例的实时负载示意图;
图8是根据本发明实施例的“推”方式更新转发实例的实时负载示意图;
图9是根据本发明实施例的控制面选择协议流量处理选定转发实例和数据流量处理选定转发实例的示意图;
图10是根据本发明实施例的控制面选择协议流量处理选定转发实例和数据流量转发选定转发实例的流程图;
图11是根据本发明实施例的转发实例和控制面的系统组成示意图;
图12是根据本发明实施例的系统进行协议流量处理负载分担和数据流量转发负载分担各个组件之间的交互示意图;
图13是根据本发明实施例的转发实例和控制面的系统组成示意图;
图14是根据本发明实施例的DHCP接入业务处理交互示意图;
图15是根据本发明实施例的业务处理装置的结构框图;
图16是根据本发明实施例的业务处理装置中获取模块152的结构框图;
图17是根据本发明实施例的业务处理装置中选择模块154的结构框图;
图18是根据本发明实施例的业务处理装置中确定单元172的结构框图。
下文中将参考附图并结合实施例来详细说明本发明。需要说明的是,在不冲突的情况下,本发明中的实施例及实施例中的特征可以相互组合。
需要说明的是,本发明的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。
本发明实施例所提供的方法实施例可以在终端、计算机终端或者类似的运算装置中执行。以运行在终端上为例,图1是本发明实施例的一种业务处理方法的终端的硬件结构框图。如图1所示,终端10可以包括一个或多个(图中仅示出一个)处理器102(处理器102可以包括但不限于微处理器MCU或可编程逻辑器件FPGA等的处理装置)、用于存储数据的存储器104、以及用于通信功能的传输装置106。本领域普通技术人员可以理解,图1所示的结构仅为示意,其并不对上述电子装置的结构造成限定。例如,终端10还可包括比图1中所示更多或者更少的组件,或者具有与图1所示不同的配置。
存储器104可用于存储应用软件的软件程序以及模块,如本发明实施例中的业务处理方法对应的程序指令/模块,处理器102通过运行存储在存储器104内的软件程序以及模块,从而执行各种功能应用以及数据处理,即实现上述的方法。存储器104可包括高速随机存储器,还可包括非易失性存储器,如一个或者多个磁性存储装置、闪存、或者其他非易失性固态存储器。在一些实例中,存储器104可进一步包括相对于处理器102远程设置的存储器,这些远程存储器可以通过网络连接至终端10。上述网络的实例包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。
传输装置106用于经由一个网络接收或者发送数据。上述的网络具体
实例可包括终端10的通信供应商提供的无线网络。在一个实例中,传输装置106包括一个网络适配器(Network Interface Controller,NIC),其可通过基站与其他网络设备相连从而可与互联网进行通讯。在一个实例中,传输装置106可以为射频(Radio Frequency,RF)模块,其用于通过无线方式与互联网进行通讯。
在本实施例中提供了一种运行于终端的业务处理方法,图2是根据本发明实施例的业务处理方法的流程图,如图2所示,该流程包括如下步骤:
步骤S202,获取用于转发业务的转发池中的每个转发实例的处理能力和/或转发实例的当前负载情况,其中,转发池由多个转发实例组成;
步骤S204,根据获取的处理能力和/或当前负载情况,从转发池中选择用于转发业务的选定转发实例;
步骤S206,根据确定的选定转发实例对业务进行转发处理。
通过上述步骤,由于根据获取的处理能力和/或当前负载情况,从转发池中选择用于转发业务的选定转发实例,使得对业务进行转发处理的转发实例是处理能力最优、负载最低的转发实例,因此,可以解决相关技术中转发池对流量的处理方式无法保证转发池对流量的处理性能最优的问题,达到提高工作效率的效果。
可选地,转发池中的所有转发实例可以由控制面控制,并由控制面把这些转发实例组成逻辑上的转发池,如图3所示。可选地,上述转发实例的能力可以分为协议流量处理的能力和数据流量处理的能力;转发实例的负载可以分为协议流量处理的负载和数据流量处理的负载,如图4所示。其中,转发实例的能力可以包括多种,例如,可以包括以下至少之一:CPU能力,存储能力,带宽能力,转发能力,用户数限制等;负载可以包括多种,例如,可以包括以下至少之一:CPU利用率,存储使用量,带宽消耗,当前转发速率,当前用户数等。
可选地,可以通过以下方式至少之一,获取用于转发业务的转发池中的每个转发实例的处理能力和/或转发实例的当前负载情况:通过向转发实例发送用于请求获取转发实例的处理能力和/或当前负载情况的请求消息,以及接收转发实例反馈的携带有转发实例的处理能力和/或当前负载情况的响应消息的方式,获取用于转发业务的转发池中的每个转发实例的处理能力和转发实例的当前负载情况;通过周期性的接收转发实例发送的用于通知转发实例的处理能力和/或当前负载情况的通知消息的方式,获取用于转发业务的转发池中的每个转发实例的处理能力和转发实例的当前负载情况。可选地,对于转发实例的当前负载情况为统一控制分配的负载(如带宽)的情况下,也可以通过本地获取。
例如,对于转发实例的处理能力,可以在初始状态(即未开始进行转发业务)获取,如图5所示,在初始状态发送处理能力请求,转发实例收到处理能力请求并获取处理能力后生成处理能力响应上报,根据该处理能力响应,保存收到的处理能力。其中,上报该处理能力的通道,可以使用已有的协议如开放流(Openflow)协议或者自定义私有协议。
又例如,对于转发实例的当前负载情况为统一控制分配的负载(如带宽)的情况下,统一控制分配的负载可以通过本地获取,如图6所示,统一控制分配负载更新操作可以由控制面管理:步骤602:用户通过协议交互上线,步骤604:用户上线后,分配资源后,更新控制面本地管理的负载。
又例如,对于转发实例的当前负载情况为转发实例的实时流量负载的情况下,转发实例的实时流量负载需要定时获取,定时获取方式可以包括两种:拉方式和推方式。拉方式:定时向转发实例发送负载请求,转发实例获取当前负载组成响应获取转发实例的实时流量负载。以控制面获取转发实例的实时流量负载为例对拉方式进行说明,如图7所示,该过程包括:步骤702:负载请求超时定时器超时,步骤704:超时后发送负载请求,到
转发实例请求获取转发实例的当前负载情况,步骤706:转发实例收到负载请求后,获取当前负载情况组成负载响应,发送到控制面,步骤708:控制面收到负载响应后,更新本地的转发实例实时负载。推方式:根据转发实例定时发送的携带负载的通知信息获取转发实例的实时流量负载。
以控制面获取转发实例的实时流量负载为例对推方式进行说明,如图8所示,该过程包括:步骤802:转发实例负载上报定时器超时,步骤804:获取转发实例当前负载情况组成负载上报通知消息,通知控制面,步骤806:控制面收到通知,获取转发实例当前负载情况,更新本地保存的负载情况。
可选地,根据获取的处理能力和/或当前负载情况,从转发池中选择用于转发业务的选定转发实例包括:根据获取的处理能力和当前负载情况,确定每个转发实例的剩余能力;根据确定的每个转发池的剩余能力,从转发池中选择用于转发业务的选定转发实例。通过上述步骤,可以快速的从转发池中选择出剩余能力最优的选定转发实例。
例如,以控制面获取多个转发实例的能力、负载,以及确定剩余能力为例对上述实施例进行说明,如图9所示,该过程包括:
步骤902:如图6所示的方法获取、发现转发实例1的处理能力,
步骤904:如图6所示的方法获取、发现转发实例2的处理能力,
步骤906:如图6所示的方法获取、发现转发实例3的处理能力,
步骤908:分别把各个转发实例的处理能力保存在控制面,
步骤910:分配资源后,更新在控制面保存的转发实例的负载情况,计算剩余能力,
步骤912:“拉”方式获取转发实例1、2、3的负载情况,
步骤914:获取转发实例的负载情况后,更新在控制面保存的转发实例的负载情况,计算剩余能力,
步骤916:“推”方式获取转发实例1、2、3的负载情况,
步骤918:获取转发实例的负载后,更新在控制面保存的转发实例的负载情况,计算剩余能力。
可选地,根据获取的处理能力和当前负载情况,确定每个转发实例的剩余能力包括:根据每个转发实例的处理能力和每个转发实例的当前负载情况,确定每个转发实例的初始剩余能力;根据初始剩余能力,每个转发实例的预设权重,以及归一化函数,确定每个转发实例的剩余能力。例如,可以通过以下算法确定剩余能力:Ci表示第i个转发实例的处理能力值,Li表示第i个转发实例的当前负载值,Ci-Li表示第i个转发实例的剩余能力值,函数fi()表示第i个转发实例的剩余能力值的归一化函数,表示第i个转发实例的剩余能力值从绝对值转换成和其他转发实例的剩余能力值的相对值,提供统一比较的基础。Bi表示第i个转发实例的剩余能力的权重,通过调节权重可以动态调整第i个转发实例的剩余能力的在整个转发池剩余能力中的比重,从而可以调节第i个转发实例的剩余能力的重要程度。该权重作为策略的重要参数,可以由用户调节。表示1到n个剩余能力值相加,相加后数值大的表示剩余能力强,每次策略选择转发实例时,选择剩余能力数值大的转发实例。
通过上述步骤,可以通过调整每个转发实例的预设权重,动态调整第每个转发实例的剩余能力的在整个转发池剩余能力中的比重,从而可以调节每个转发实例的剩余能力的重要程度。
可选地,转发实例包括:协议流量转发实例和数据流量转发实例。
需要说明的是,上述实施例的执行主体可以为控制面,可以应用于转发实例和控制面组成的系统。为了方便理解本发明实施例,下面分别以控制面选择协议流量处理选定转发实例和数据流量转发选定转发实例为例对本发明实施例进行说明,以及以应用于转发实例和控制面组成的系统为例
进行说明。
图10是根据本发明实施例的控制面选择协议流量处理选定转发实例和数据流量转发选定转发实例的流程图,如图10所示,该过程包括:
步骤S1002,转发实例收到接入协议报文,上报到控制面。用户通过接入协议接入BRAS,所述的接入协议可以为动态主机配置协议(Dynamic Host Configuration Protocol,简称为DHCP)、DHCPv6、以太网上的点对点协议(PPP over Ethernet,简称为PPPoE)、地址解析协议(Address Resolution Protocol,简称为ARP)、邻居发现协议(Neighbor Discover,简称为ND)等。转发池对于用户可达,用户接入协议报文可以达到转发池中任一转发实例,由于大多接入协议为广播报文,所以每个转发实例都会收到协议报文,然后转发实例把协议报文上送到控制面,以便控制面知晓每个转发实例均与用户成功接通,其中,所述上送的协议可以为开放流(OPENFLOW)协议也可以为自定义的私有协议。
步骤S1004,控制面根据协议处理负载分担策略选择协议处理选定转发实例。
步骤S1006,控制面完成认证、授权后,生成用户表,然后根据每个转发实例的负载情况选择流量转发选定转发实例。根据负载分担策略选择流量转发选定转发实例后,控制面下发用户接入用户表到流量转发选定转发实例,所述的下发用户表可以通过Openflow协议或者自定义的私有协议,其他非选定接入实例不下发用户表,则用户转发流量只通过流量转发选定转发实例转发。
图11是根据本发明实施例的转发实例和控制面的系统组成示意图,如图11所示,该系统包括:转发实例和控制面。可选地,转发实例分为:接入组件和转发组件;控制面分为接入组件和转发实例选定组件。
转发实例的接入组件的作用:完成协议报文接收上送到控制面的接入
组件和接收控制面的接入组件的协议报文并发送到用户;计算协议处理的能力,上报协议流量处理的能力到控制面;计算协议流量处理的负载,上报协议流量处理的负载到控制面。
转发实例的转发组件的作用:接收从控制面的接入组件下发的用户表并保存;查询用户表的结果进行数据流量处理转发,用户表不存在的情况下,流量丢弃;计算数据流量处理能力,上报数据流量处理能力到控制面;计算数据流量处理负载,上报数据流量处理负载到控制面。
控制面的接入组件的作用:接收转发实例的接入组件上送的请求协议报文,转发池中的转发实例向控制面上送请求协议报文,向控制面的转发实例选定组件查询协议流量处理选定转发实例,选定转发实例后,只处理协议处理选定转发实例上送的请求协议报文;完成认证和授权;构造响应协议报文并发送给协议处理选定转发实例;生成用户表,向控制面的转发实例选定组件查询流量转发选定转发实例,向流量转发选定转发实例下发用户表。
控制面的转发实例选定组件的作用:生成逻辑上的转发池,管理转发池中的转发实例;接收转发实例上报的协议流量处理能力,保存到本地;接收转发实例上报的协议流量处理负载,保存到本地;接收转发实例上报的数据流量处理能力,保存到本地;接收转发实例上报的数据流量处理负载,保存到本地;到接入组件查询资源占用情况,生成本地管理的协议流量处理负载和数据流量处理负载;根据所述的策略算法,计算出每个实例的协议流量处理剩余能力和数据流量处理剩余能力;选定协议流量处理剩余能力值大的转发实例为协议流量处理转发实例;选定数据流量处理剩余能力值大的转发实例为数据流量处理转发实例;为控制面的接入组件提供查询协议流量处理转发选定转发实例的接口;为控制面的接入组件提供查询数据流量处理选定转发实例查询接口。
图12是根据本发明实施例的系统进行协议流量处理负载分担和数据流量转发负载分担各个组件之间的交互示意图,如图12所示,该过程包括:
步骤1202,转发实例1和转发实例2的接入组件向控制面转发实例选定组件上报协议流量处理能力;
步骤1204:转发实例1和转发实例2的转发组件向控制面转发实例选定组件上报数据流量处理能力;
步骤1206:转发实例1和转发实例2的接入组件向控制面转发实例选定组件上报协议流量处理负载;
步骤1208:转发实例1和转发实例2的转发组件向控制面转发实例选定组件上报数据流量处理负载;
步骤12010:控制面转发实例选定组件计算本地管理的协议流量处理负载和数据流量处理负载;
步骤12012:控制面的转发实例选定组件根据能力和负载计算协议流量处理剩余能力和数据流量处理剩余能力;
步骤12014:转发实例1的接入组件收到请求协议报文,上送到控制面的接入组件;
步骤12016:转发实例2的接入组件收到请求协议报文,上送到控制面的接入组件;
步骤12018:控制面的接入组件向控制面的转发实例选定组件查询协议流量处理选定转发实例;
步骤12020:根据协议流量处理剩余能力选择转发实例1为协议流量处理选定转发实例
步骤12022:控制面的转发实例选定组件返回协议流量处理选定转发实例为转发实例1;
步骤12024:控制面的接入组件完成认证、授权,构造响应协议报文,
并发送到协议流量处理选定转发实例——转发实例1的接入组件;
步骤12026:控制面的接入组件向控制面的转发实例选定组件查询数据流量处理选定转发实例;
步骤12028:根据数据流量处理剩余能力选择转发实例1为数据流量处理选定转发实例2;
步骤12030:控制面的转发实例选定组件返回数据流量处理选定转发实例为转发实例2;
步骤12032:生成用户表,向数据流量处理选定转发实例——转发实例2的转发组件下发用户表,转发实例2的转发组件接收用户表并保存。
为充分理解本发明实施例,以DHCP接入为例对本发明实施例进行消息说明。如图13组网,用户通过交换机互连到转发池的每个转发实例,用户到每个转发实例二层转发可达。控制面控制转发池,转发池中有三个转发实例,控制面到转发池的每个转发实例三层转发可达。能力和负载简单起见只考虑一种类型:带宽。能力表示总带宽,负载表示消耗的带宽,剩余能力为剩余的带宽。
图14是根据本发明实施例的DHCP接入业务处理交互示意图,如图14所示,DHCP接入完成后,控制面按照策略,在剩余能力强的转发实例上进行协议流量处理和数据流量处理。该过程包括:
步骤1402:转发实例1上报能力,协议流量处理总带宽为100兆(M),数据流量处理总带宽为10吉(G);
步骤1404:转发实例2上报能力,协议流量处理总带宽为120M,数据流量处理总带宽为8G;
步骤1406:转发实例3上报能力,协议流量处理总带宽为90M,数据流量处理总带宽为9G;
步骤1408:由于此时各个转发实例的负载为0,所以各个转发实例的
剩余能力为各个转发实例的协议流量处理和数据流量处理总带宽;
步骤14010:用户发送DHCP发现(Discover)协议报文,申请网际协议(IP,Internet Protocol)地址;用户发送的DHCP Discover协议报文到达交换机,因为该报文为广播报文,所以进行复制;
步骤14012:复制的一个DHCP Discover协议报文转发到转发实例1;
步骤14014:复制的一个DHCP Discover协议报文转发到转发实例2;
步骤14016:复制的一个DHCP Discover协议报文转发到转发实例3;
步骤14018:转发实例1把DHCP Discover报文上送到控制面;
步骤14020:转发实例2把DHCP Discover报文上送到控制面;
步骤14022:转发实例3把DHCP Discover报文上送到控制面;
步骤14024:控制面根据各个转发实例的协议流量处理剩余能力选择协议流量处理选定转发实例,由于转发实例2的协议流量处理剩余能力最强,所以选择转发实例2为协议流量处理选定转发实例;
步骤14026:进行认证,本实例采用的认证方式为DHCP选项(option)认证;认证不通过,流程结束;认证通过,然后进行授权,授权信息中包含分配给用户的IP地址和协议流量处理带宽10M和数据流量处理带宽为200M,分配带宽后,更新转发实例2的协议流量处理负载为10M,更新转发实例2的剩余能力为120M-10M;
步骤14028:认证通过并授权后,构造DHCP提供(Offer)协议报文,该协议报文中包含分配给用户的IP地址,发送到协议流量处理选定转发实例——转发实例2;
步骤14030:转发实例2生效协议流量处理带宽,并把DHCP Offer协议报文转发到交换机;
步骤14032:交换机把DHCP Offer协议报文转发到用户;
步骤14034:用户构造DHCP请求(Request)协议报文并发送到交换
机;
步骤14036:交换机把DHCP Request协议报文转发到转发池中的转发实例2;
步骤14038:转发实例2把DHCP Request协议报文上送到控制面;
步骤14040:控制面收到DHCP Request协议报文,生成用户表,控制面根据各个转发实例的数据流量处理剩余能力选择协议流量处理选定转发实例,由于转发实例1的数据流量处理剩余能力最强,所以选择转发实例1为数据流量处理选定转发实例;更新转发实例1的数据流量处理负载为200M,更新转发实例1的剩余数据流量处理剩余能力为10G-200M;
步骤14042:控制面下发用户表到转发实例1,转发实例1生效数据流量处理带宽;
步骤14044:控制面构造DHCP响应(ACK)协议报文并发送到转发实例1;
步骤14046:转发实例2把DHCP ACK协议报文转发到交换机;
步骤14048:交换机把DHCP ACK协议报文转发到用户,用户申请到IP地址,流程结束。
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到根据上述实施例的方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,或者网络设备等)执行本发明各个实施例所述的方法。
在本实施例中还提供了一种业务处理装置,该装置用于实现上述实施
例及优选实施方式,已经进行过说明的不再赘述。如以下所使用的,术语“模块”可以实现预定功能的软件和/或硬件的组合。尽管以下实施例所描述的装置较佳地以软件来实现,但是硬件,或者软件和硬件的组合的实现也是可能并被构想的。
图15是根据本发明实施例的业务处理装置的结构框图,如图15所示,该装置包括:
获取模块152,配置为获取用于转发业务的转发池中的每个转发实例的处理能力和/或转发实例的当前负载情况;
选择模块154,连接至上述获取模块152,配置为根据获取的处理能力和/或当前负载情况,从转发池中选择用于转发业务的选定转发实例;
处理模块156,连接至上述选择模块154,配置为根据确定的选定转发实例对业务进行转发处理。
图16是根据本发明实施例的业务处理装置中获取模块152的结构框图,如图16所示,该获取模块152包括:第一获取单元162和第二获取单元164,下面分别进行说明。
第一获取单元162,配置为通过向转发实例发送用于请求获取转发实例的处理能力和/或当前负载情况的请求消息,以及接收转发实例反馈的携带有转发实例的处理能力和/或当前负载情况的响应消息的方式,获取用于转发业务的转发池中的每个转发实例的处理能力和转发实例的当前负载情况;
第二获取单元164,配置为通过周期性的接收转发实例发送的用于通知转发实例的处理能力和/或当前负载情况的通知消息的方式,获取用于转发业务的转发池中的每个转发实例的处理能力和转发实例的当前负载情况。
图17是根据本发明实施例的业务处理装置中选择模块154的结构框图,如图17所示,该选择模块154包括:确定单元172和选择单元174,下
面分别进行说明。
确定单元172,配置为根据获取的处理能力和当前负载情况,确定每个转发实例的剩余能力;
选择单元174,连接至上述确定单元172,配置为根据确定的每个转发池的剩余能力,从转发池中选择用于转发业务的选定转发实例。
图18是根据本发明实施例的业务处理装置中确定单元172的结构框图,如图18所示,该确定单元172包括:第一确定子单元182和第二确定子单元184,下面分别进行说明。
第一确定子单元182,配置为根据每个转发实例的处理能力和每个转发实例的当前负载情况,确定每个转发实例的初始剩余能力;
第二确定子单元184,连接至上述第一确定子单元182,配置为根据初始剩余能力,每个转发实例的预设权重,以及归一化函数,确定每个转发实例的剩余能力。
可选地,上述转发实例包括:协议流量转发实例和数据流量转发实例。
需要说明的是,上述各个模块是可以通过软件或硬件来实现的,对于后者,可以通过以下方式实现,但不限于此:上述模块均位于同一处理器中;或者,上述各个模块以任意组合的形式分别位于不同的处理器中。
本发明的实施例还提供了一种存储介质。可选地,在本实施例中,上述存储介质可以被设置为存储用于执行以下步骤的程序代码:
S1,获取用于转发业务的转发池中的每个转发实例的处理能力和/或转发实例的当前负载情况;
S2,根据获取的处理能力和/或当前负载情况,从转发池中选择用于转发业务的选定转发实例;
S3,根据确定的选定转发实例对业务进行转发处理。
可选地,存储介质还被设置为存储用于执行以下步骤的程序代码:通
过以下方式至少之一,获取用于转发业务的转发池中的每个转发实例的处理能力和/或转发实例的当前负载情况包括:
S1,通过向转发实例发送用于请求获取转发实例的处理能力和/或当前负载情况的请求消息,以及接收转发实例反馈的携带有转发实例的处理能力和/或当前负载情况的响应消息的方式,获取用于转发业务的转发池中的每个转发实例的处理能力和转发实例的当前负载情况;
S2,通过周期性的接收转发实例发送的用于通知转发实例的处理能力和/或当前负载情况的通知消息的方式,获取用于转发业务的转发池中的每个转发实例的处理能力和转发实例的当前负载情况。
可选地,存储介质还被设置为存储用于执行以下步骤的程序代码:根据获取的处理能力和/或当前负载情况,从转发池中选择用于转发业务的选定转发实例包括:
S1,根据获取的处理能力和当前负载情况,确定每个转发实例的剩余能力;
S2,根据确定的每个转发池的剩余能力,从转发池中选择用于转发业务的选定转发实例。
可选地,存储介质还被设置为存储用于执行以下步骤的程序代码:根据获取的处理能力和当前负载情况,确定每个转发实例的剩余能力包括:
S1,根据每个转发实例的处理能力和每个转发实例的当前负载情况,确定每个转发实例的初始剩余能力;
S2,根据初始剩余能力,每个转发实例的预设权重,以及归一化函数,确定每个转发实例的剩余能力。
可选地,存储介质还被设置为存储用于执行以下步骤的程序代码:转发实例包括:协议流量转发实例和数据流量转发实例。
可选地,在本实施例中,上述存储介质可以包括但不限于:U盘、只
读存储器(ROM,Read-Only Memory)、可编程只读存储器(PROM,Programmable Read-Only Memory)、可擦除可编程只读存储器(EPROM,Erasable Programmable Read-Only Memory)、电可擦除可编程只读存储器(EEPROM,Electrically Erasable Programmable Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁性随机存取存储器(FRAM,ferromagnetic random access memory)、快闪存储器(Flash Memory)、磁表面存储器、光盘、或只读光盘(CD-ROM,Compact Disc Read-Only Memory);磁表面存储器可以是磁盘存储器或磁带存储器、移动硬盘、磁碟或者光盘等各种可以存储程序代码的介质。
可选地,在本实施例中,处理器根据存储介质中已存储的程序代码执行:获取用于转发业务的转发池中的每个转发实例的处理能力和/或转发实例的当前负载情况;根据获取的处理能力和/或当前负载情况,从转发池中选择用于转发业务的选定转发实例;根据确定的选定转发实例对业务进行转发处理。
可选地,在本实施例中,处理器根据存储介质中已存储的程序代码执行:通过以下方式至少之一,获取用于转发业务的转发池中的每个转发实例的处理能力和/或转发实例的当前负载情况包括:通过向转发实例发送用于请求获取转发实例的处理能力和/或当前负载情况的请求消息,以及接收转发实例反馈的携带有转发实例的处理能力和/或当前负载情况的响应消息的方式,获取用于转发业务的转发池中的每个转发实例的处理能力和转发实例的当前负载情况;通过周期性的接收转发实例发送的用于通知转发实例的处理能力和/或当前负载情况的通知消息的方式,获取用于转发业务的转发池中的每个转发实例的处理能力和转发实例的当前负载情况。
可选地,在本实施例中,处理器根据存储介质中已存储的程序代码执行:根据获取的处理能力和/或当前负载情况,从转发池中选择用于转发业务
的选定转发实例包括:根据获取的处理能力和当前负载情况,确定每个转发实例的剩余能力;根据确定的每个转发池的剩余能力,从转发池中选择用于转发业务的选定转发实例。
可选地,在本实施例中,处理器根据存储介质中已存储的程序代码执行:根据获取的处理能力和当前负载情况,确定每个转发实例的剩余能力包括:根据每个转发实例的处理能力和每个转发实例的当前负载情况,确定每个转发实例的初始剩余能力;根据初始剩余能力,每个转发实例的预设权重,以及归一化函数,确定每个转发实例的剩余能力。
可选地,在本实施例中,处理器根据存储介质中已存储的程序代码执行:转发实例包括:协议流量转发实例和数据流量转发实例。
可选地,本实施例中的具体示例可以参考上述实施例及可选实施方式中所描述的示例,本实施例在此不再赘述。
显然,本领域的技术人员应该明白,上述的本发明的各模块或各步骤可以用通用的计算装置来实现,它们可以集中在单个的计算装置上,或者分布在多个计算装置所组成的网络上,可选地,它们可以用计算装置可执行的程序代码来实现,从而,可以将它们存储在存储装置中由计算装置来执行,并且在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤,或者将它们分别制作成各个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。这样,本发明不限制于任何特定的硬件和软件结合。
以上所述仅为本发明的优选实施例而已,并不用于限制本发明,对于本领域的技术人员来说,本发明可以有各种更改和变化。凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。
本发明提供了一种业务处理方法及装置、存储介质,该方法包括:获取用于转发业务的转发池中的每个转发实例的处理能力和转发实例的当前负载情况;根据获取的处理能力和/或当前负载情况,从转发池中选择用于转发业务的选定转发实例;根据确定的选定转发实例对业务进行转发处理。通过本发明,解决相关技术中转发池对流量的处理方式无法保证转发池对流量的处理性能最优的问题,达到提高工作效率的效果。
Claims (12)
- 一种业务处理方法,包括:获取用于转发业务的转发池中的每个转发实例的处理能力和/或所述转发实例的当前负载情况;根据获取的所述处理能力和/或所述当前负载情况,从所述转发池中选择用于转发业务的选定转发实例;根据确定的所述选定转发实例对业务进行转发处理。
- 根据权利要求1所述的方法,其中,通过以下方式至少之一,获取用于转发业务的转发池中的每个转发实例的处理能力和/或所述转发实例的当前负载情况包括:通过向所述转发实例发送请求消息,所述请求消息用于请求获取所述转发实例的处理能力和/或所述当前负载情况的,以及接收所述转发实例反馈的响应消息的方式,所述响应消息携带有所述转发实例的处理能力和/或所述当前负载情况的响应消息,获取用于转发业务的转发池中的每个转发实例的处理能力和所述转发实例的当前负载情况;通过周期性的接收所述转发实例发送的通知消息的方式,所述通知消息用于通知所述转发实例的处理能力和/或当前负载情况,获取用于转发业务的转发池中的每个转发实例的处理能力和所述转发实例的当前负载情况。
- 根据权利要求1所述的方法,其中,根据获取的所述处理能力和/或所述当前负载情况,从所述转发池中选择用于转发业务的选定转发实例包括:根据获取的所述处理能力和所述当前负载情况,确定每个转发实例的剩余能力;根据确定的所述每个转发池的剩余能力,从所述转发池中选择用于转 发业务的选定转发实例。
- 根据权利要求3所述的方法,其中,根据获取的所述处理能力和所述当前负载情况,确定所述每个转发实例的剩余能力包括:根据所述每个转发实例的处理能力和所述每个转发实例的当前负载情况,确定所述每个转发实例的初始剩余能力;根据所述初始剩余能力,所述每个转发实例的预设权重,以及归一化函数,确定所述每个转发实例的所述剩余能力。
- 根据权利要求1至4中任一项所述的方法,其中,所述转发实例包括:协议流量转发实例和数据流量转发实例。
- 一种业务处理装置,包括:获取模块,配置为获取用于转发业务的转发池中的每个转发实例的处理能力和/或所述转发实例的当前负载情况;选择模块,配置为根据获取的所述处理能力和/或所述当前负载情况,从所述转发池中选择用于转发业务的选定转发实例;处理模块,配置为根据确定的所述选定转发实例对业务进行转发处理。
- 根据权利要求6所述的装置,其中,所述获取模块包括:第一获取单元,配置为通过向所述转发实例发送请求消息,所述请求消息用于请求获取所述转发实例的处理能力和/或所述当前负载情况,以及接收所述转发实例反馈的响应消息的方式,所述响应消息携带有所述转发实例的处理能力和/或所述当前负载情况,获取用于转发业务的转发池中的每个转发实例的处理能力和所述转发实例的当前负载情况;第二获取单元,配置为通过周期性的接收所述转发实例发送的通知消息的方式,所述通知消息用于通知所述转发实例的处理能力和/或当前负载情况的,获取用于转发业务的转发池中的每个转发实例的处理能力和所述转发实例的当前负载情况。
- 根据权利要求6所述的装置,其中,所述选择模块包括:确定单元,配置为根据获取的所述处理能力和所述当前负载情况,确定每个转发实例的剩余能力;选择单元,配置为根据确定的所述每个转发池的剩余能力,从所述转发池中选择用于转发业务的选定转发实例。
- 根据权利要求8所述的装置,其中,所述确定单元包括:第一确定子单元,配置为根据所述每个转发实例的处理能力和所述每个转发实例的当前负载情况,确定所述每个转发实例的初始剩余能力;第二确定子单元,配置为根据所述初始剩余能力,所述每个转发实例的预设权重,以及归一化函数,确定所述每个转发实例的所述剩余能力。
- 根据权利要求6至9中任一项所述的装置,其中,所述转发实例包括:协议流量转发实例和数据流量转发实例。
- 一种业务处理装置,包括:存储器,用于存储计算机程序;处理器,配置为通过执行所述存储器中存储的所述计算机程序时实现权利要求1至5任一项所述的业务处理方法。
- 一种存储介质,存储有计算机程序,所述计算机程序被处理器执行时实现权利要求1至5任一项所述的业务处理方法。
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610482668.3A CN107547597A (zh) | 2016-06-27 | 2016-06-27 | 业务处理方法及装置 |
CN201610482668.3 | 2016-06-27 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2018001089A1 true WO2018001089A1 (zh) | 2018-01-04 |
Family
ID=60785803
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2017/088128 WO2018001089A1 (zh) | 2016-06-27 | 2017-06-13 | 业务处理方法及装置、存储介质 |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN107547597A (zh) |
WO (1) | WO2018001089A1 (zh) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2020135574A1 (zh) * | 2018-12-28 | 2020-07-02 | 中兴通讯股份有限公司 | 报文处理方法、装置、控制面设备和计算机存储介质 |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110636146B (zh) * | 2018-06-25 | 2022-05-06 | 中国移动通信有限公司研究院 | 一种用户地址分配方法及设备 |
CN111800348A (zh) * | 2019-04-09 | 2020-10-20 | 中兴通讯股份有限公司 | 一种负载均衡方法和装置 |
CN111597041B (zh) * | 2020-04-27 | 2023-01-10 | 深圳市金证科技股份有限公司 | 一种分布式系统的调用方法、装置、终端设备及服务器 |
CN113419863B (zh) * | 2021-07-02 | 2023-07-14 | 广东省电信规划设计院有限公司 | 一种基于节点能力的数据分配处理方法及装置 |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101622828A (zh) * | 2007-02-27 | 2010-01-06 | 阿尔卡特朗讯公司 | 第三层ip vpn中的非对称转发 |
US20130182605A1 (en) * | 2012-01-13 | 2013-07-18 | Verizon Patent And Licensing Inc. | Method and system for providing a mobile virtual router |
CN104426789A (zh) * | 2013-08-23 | 2015-03-18 | 杭州华三通信技术有限公司 | 软件定义网络中的转发设备控制方法及设备 |
CN104702478A (zh) * | 2013-12-10 | 2015-06-10 | 中兴通讯股份有限公司 | 虚拟路由转发实例处理方法及装置 |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8144587B2 (en) * | 2006-08-22 | 2012-03-27 | Embarq Holdings Company, Llc | System and method for load balancing network resources using a connection admission control engine |
WO2013127362A1 (zh) * | 2012-03-01 | 2013-09-06 | 华为技术有限公司 | 宽带网络网关使用方法和网络装置 |
CN104811396A (zh) * | 2014-01-23 | 2015-07-29 | 中兴通讯股份有限公司 | 一种负荷均衡的方法及系统 |
CN104980361B (zh) * | 2014-04-01 | 2018-09-21 | 华为技术有限公司 | 一种负载均衡方法、装置及系统 |
CN105262698B (zh) * | 2015-10-28 | 2019-03-01 | 华为技术有限公司 | 一种负载分担的方法、装置和系统 |
-
2016
- 2016-06-27 CN CN201610482668.3A patent/CN107547597A/zh active Pending
-
2017
- 2017-06-13 WO PCT/CN2017/088128 patent/WO2018001089A1/zh active Application Filing
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101622828A (zh) * | 2007-02-27 | 2010-01-06 | 阿尔卡特朗讯公司 | 第三层ip vpn中的非对称转发 |
US20130182605A1 (en) * | 2012-01-13 | 2013-07-18 | Verizon Patent And Licensing Inc. | Method and system for providing a mobile virtual router |
CN104426789A (zh) * | 2013-08-23 | 2015-03-18 | 杭州华三通信技术有限公司 | 软件定义网络中的转发设备控制方法及设备 |
CN104702478A (zh) * | 2013-12-10 | 2015-06-10 | 中兴通讯股份有限公司 | 虚拟路由转发实例处理方法及装置 |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2020135574A1 (zh) * | 2018-12-28 | 2020-07-02 | 中兴通讯股份有限公司 | 报文处理方法、装置、控制面设备和计算机存储介质 |
US11575592B2 (en) | 2018-12-28 | 2023-02-07 | Zte Corporation | Message processing method and apparatus, control-plane device, and computer storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN107547597A (zh) | 2018-01-05 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2018001089A1 (zh) | 业务处理方法及装置、存储介质 | |
CN111684774B (zh) | 移动边缘计算(mec)中的服务质量(qos)控制方法、系统 | |
JP7555405B2 (ja) | ネットワークスライス選択支援情報(nssai)可用性情報を用いるポリシーベースのアクセスおよびモビリティ管理機能(amf)選択 | |
US10149165B2 (en) | Virtual wireless networking | |
Vestin et al. | CloudMAC: torwards software defined WLANs | |
US11240198B2 (en) | Session management method and apparatus | |
CN111052787A (zh) | 基于5g环境中的利用水平的功能选择 | |
WO2021135663A1 (zh) | 应用实例确定的方法、装置及系统 | |
WO2015157949A1 (zh) | 无线局域网络wlan的接入方法、终端及服务器 | |
WO2019075848A1 (zh) | 协同终端切片功能和网络切片功能 | |
US20090083861A1 (en) | Systems and Methods for Server Load Balancing Using Authentication, Authorization, and Accounting Protocols | |
WO2017166136A1 (zh) | 一种vnf的资源分配方法及装置 | |
US11128486B2 (en) | Smart refrigerator-based networking and control method and system, and smart refrigerator | |
US8811295B2 (en) | Methods and apparatus for priority-based adoption of an access device | |
EP3637705B1 (en) | Data flow processing method and device | |
US20120230189A1 (en) | System and method of transferring Wi-Fi clients between SSIDs | |
CN114342332B (zh) | 一种通信方法、装置及系统 | |
WO2018082035A1 (zh) | 一种功能调度方法、设备和系统 | |
US20160308824A1 (en) | Method for determining gre tunnel, gateway device, and access site | |
CN109561340A (zh) | 多媒体服务处理方法、设备、多媒体服务群组及存储介质 | |
WO2022052875A1 (zh) | 终端跨区域通信方法、网元设备及存储介质 | |
WO2016180188A1 (zh) | 分发建链方法、装置和系统 | |
JP2015530821A (ja) | ワイヤレスローカルエリアネットワークにおけるサービスの差別化に基づく動的なアソシエーションの順序付けのためのシステムおよび方法 | |
CN106993286A (zh) | 一种无线网中无线接入设备接入云端ac的方法及系统 | |
WO2013020526A1 (zh) | 短时延资源管理方法及设备、无线接入网络设备 |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 17819086 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 17819086 Country of ref document: EP Kind code of ref document: A1 |