CN115766587A - Load balancing implementation method, device, equipment and medium based on tracing gateway - Google Patents

Load balancing implementation method, device, equipment and medium based on tracing gateway Download PDF

Info

Publication number
CN115766587A
CN115766587A CN202211455813.0A CN202211455813A CN115766587A CN 115766587 A CN115766587 A CN 115766587A CN 202211455813 A CN202211455813 A CN 202211455813A CN 115766587 A CN115766587 A CN 115766587A
Authority
CN
China
Prior art keywords
application protocol
tracing
query
server
forwarding
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.)
Pending
Application number
CN202211455813.0A
Other languages
Chinese (zh)
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.)
China Telecom Corp Ltd
Original Assignee
China Telecom Corp 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 China Telecom Corp Ltd filed Critical China Telecom Corp Ltd
Priority to CN202211455813.0A priority Critical patent/CN115766587A/en
Publication of CN115766587A publication Critical patent/CN115766587A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)
  • Computer And Data Communications (AREA)

Abstract

The embodiment of the invention provides a load balancing implementation method, a device, equipment and a medium based on a tracing gateway, wherein the method comprises the following steps: receiving a source tracing query request message of network element equipment through an application protocol proxy server, and acquiring query traffic corresponding to the source tracing query request message; polling is carried out on at least one application protocol server positioned at the rear end according to the query flow, and the source tracing query request message is forwarded to the at least one application protocol server, so that the at least one application protocol server carries out hierarchical and hierarchical forwarding on the query flow corresponding to the source tracing query request message to each source tracing query instance. Based on the polling forwarding of the application protocol proxy server and the layered and graded forwarding of the subsequent application protocol servers, the problem that massive business query flow is converted into each VoWifi tracing query instance in a layered and graded mode is solved, and the service peak impact resistance of the whole system is improved.

Description

Load balancing realization method, device, equipment and medium based on tracing gateway
Technical Field
The present invention relates to the field of emerging information technologies, and in particular, to a load balancing implementation method based on a tracing gateway, a load balancing implementation apparatus based on a tracing gateway, a corresponding electronic device, and a corresponding computer storage medium.
Background
The VoWifi tracing gateway is a local network element device for providing a tracing function in a VoWifi service, and is mainly used for completing a function of user location tracing query. Specifically, the operator device ePDG (evoldpackputdatagateway, which is a necessary network element in an untrusted Wi-Fi network access manner) may use a gateway address and a port number of a user as access parameters based on a tracing gateway interaction interface, return user location information to the ePDG after invoking a tracing capability, and complete the positioning of the VoWiFi user.
At present, different ePDG equipment manufacturers slightly have different external interfaces, so that in order to adapt to the practical requirements of mixed networking of different manufacturers and support the stable development of VoWifi services, a VoWiFi tracing gateway must have flexible load balancing capability under different scale service pressures, and the conventional public and open source software rarely refers to the implementation method of the traditional communication protocol Diameter and the flexible load balancing inside subsequent equipment.
Disclosure of Invention
In view of the foregoing problems, embodiments of the present invention are provided to provide a method for implementing load balancing based on a tracing gateway, an apparatus for implementing load balancing based on a tracing gateway, a corresponding electronic device, and a corresponding computer storage medium, which overcome or at least partially solve the foregoing problems.
The embodiment of the invention discloses a load balancing implementation method based on a tracing gateway, which is applied to an application protocol proxy server, wherein the application protocol proxy server is in communication connection with network element equipment and the tracing gateway based on a preset application protocol, the tracing gateway comprises an application protocol server and a tracing query example which are positioned at the rear end of the application protocol proxy server, and the method comprises the following steps:
receiving a source tracing query request message of the network element equipment through the application protocol proxy server, and acquiring a query flow corresponding to the source tracing query request message;
polling at least one application protocol server at the rear end according to the query flow, and forwarding the source tracing query request message to the at least one application protocol server, so that the at least one application protocol server can carry out hierarchical forwarding on the query flow corresponding to the source tracing query request message to each source tracing query instance.
Optionally, the polling at least one application protocol server located at a back end according to the service query traffic, and forwarding the source tracing query request message to the at least one application protocol server includes:
obtaining a token bucket threshold value which is configured aiming at least one application protocol server at the rear end in advance; the token bucket threshold is used for representing the query flow limit value accepted by each application protocol server;
determining a number of polled application protocol servers based on the query traffic and the configured token bucket threshold;
and forwarding the source tracing query request message to at least one application protocol server positioned at the back end according to the number of the application protocol servers to be polled.
Optionally, the forwarding the source-tracing query request message to at least one application protocol server located at a backend according to the number of the application protocol servers to be polled includes:
acquiring pre-configured configuration information aiming at a back-end application protocol server and message source equipment information aiming at the gateway equipment;
converting the configuration information of the application protocol server into a routing table, and adding the message source equipment information to the routing table; wherein the message source device information is used for determining a routing policy;
and determining at least one application protocol server from the routing table based on the routing strategy according to the number of the application protocol servers to be polled, and forwarding the source tracing query request message to each determined application protocol server.
Optionally, the forwarding the source-tracing query request message to at least one application protocol server located at the backend includes:
performing heartbeat message detection on the application protocol proxy server and the application protocol server according to a preset time interval, and forwarding the source tracing query request message to at least one application protocol server at the rear end under the condition of connection availability;
before forwarding the tracing query request message to at least one application protocol server located at a backend, the method further comprises:
adding message source equipment address information aiming at the network element equipment and destination address information of an application protocol server connected with a back end in the tracing query request message; the message source device address information is used for informing the application protocol proxy server of the source device address of the position query reply information to be forwarded by the application protocol proxy server after the application protocol proxy server receives the position query reply information returned by the application protocol server at the back end.
Optionally, before the receiving, by the application protocol proxy server, the source tracing query request message of the network element device, the method further includes:
receiving an equipment connection request of the network element equipment through the application protocol proxy server, and establishing communication connection with a back-end application protocol server through the application protocol proxy server;
responding to a capability exchange request sent by the network element equipment, forwarding the capability exchange request to an application protocol server of the established communication connection, and receiving a capability exchange response message returned by the application protocol server; the capability exchange response message is used to confirm whether the network element device has the source tracing capability for the source message device.
Optionally, the method further comprises:
when polling and forwarding are carried out through the application protocol proxy server, a finite state machine aiming at each communication connection is established, so that each communication connection is monitored based on the established finite state machine; wherein each monitored communication connection comprises a communication connection between the application protocol proxy server and the network element equipment, and/or a communication connection between the application protocol proxy server and at least one application protocol server.
Optionally, the source tracing query request message forwarded to the application protocol server carries information source device address information for the network element device, and the method further includes:
receiving position query reply information returned by at least one application protocol server through the application protocol proxy server; the position query reply information is obtained by responding to the source tracing query request message by all source tracing query instances which are hierarchically and hierarchically forwarded based on the application protocol server;
and sending the position inquiry reply information to the network element equipment corresponding to the address information of the message source equipment through the application protocol proxy server according to the address information of the message source equipment.
The embodiment of the invention also discloses a load balancing implementation device based on the tracing gateway, which is applied to an application protocol proxy server, wherein the application protocol proxy server is in communication connection with the network element equipment and the tracing gateway based on a preset application protocol, the tracing gateway comprises an application protocol server and a tracing query example which are positioned at the rear end of the application protocol proxy server, and the device comprises:
a source tracing query request message receiving module, configured to receive a source tracing query request message of the network element device, and obtain a query traffic corresponding to the source tracing query request message;
and the polling forwarding module is used for polling at least one application protocol server at the rear end according to the query flow and forwarding the source tracing query request message to the at least one application protocol server, so that the at least one application protocol server can perform hierarchical forwarding on the query flow corresponding to the source tracing query request message to each source tracing query instance.
Optionally, the polling forwarding module includes:
the token bucket threshold value acquisition submodule is used for acquiring a token bucket threshold value which is configured aiming at least one application protocol server at the rear end in advance; the token bucket threshold is used for representing the query flow limit value accepted by each application protocol server;
a polling quantity determination submodule, configured to determine a quantity of polled application protocol servers based on the query traffic and the configured token bucket threshold;
and the polling forwarding submodule is used for forwarding the source-tracing query request message to at least one application protocol server at the rear end according to the number of the application protocol servers to be polled.
Optionally, the polling forwarding sub-module includes:
a configuration information obtaining unit, configured to obtain pre-configured configuration information for a backend application protocol server and message source device information for the gateway device;
a routing table generating unit, configured to convert configuration information of the application protocol server into a routing table, and add the message source device information to the routing table; wherein the message source device information is used for determining a routing policy;
and the request message forwarding unit is used for determining at least one application protocol server from the routing table based on the routing strategy according to the number of the application protocol servers to be polled, and forwarding the source-tracing query request message to each determined application protocol server.
Optionally, the polling forwarding sub-module further includes:
a heartbeat message detection unit, configured to perform heartbeat message detection on the application protocol proxy server and the application protocol server according to a preset time interval, and forward the source tracing query request message to at least one application protocol server located at a back end under the condition of connection availability;
optionally, before forwarding the tracing query request message to at least one application protocol server located at the backend, the method further includes:
an address information adding unit, configured to add, in the source tracing query request message, message source device address information for the network element device and destination address information of an application protocol server connected to the back end; the message source device address information is used for informing the application protocol proxy server of the source device address of the position query reply information to be forwarded by the application protocol proxy server after the application protocol proxy server receives the position query reply information returned by the application protocol server at the back end.
Optionally, before the receiving, by the application protocol proxy server, the source tracing query request message of the network element device, the method further includes:
a communication connection establishing module, configured to receive, through the application protocol proxy server, an equipment connection request of the network element equipment, and establish, through the application protocol proxy server, a communication connection with an application protocol server at a back end;
a source-tracing capability determining module, configured to respond to a capability exchange request sent by the network element device, forward the capability exchange request to an application protocol server of the established communication connection, and receive a capability exchange response message returned by the application protocol server; the capability exchange response message is used to confirm whether the network element device has the source tracing capability for the source message device.
Optionally, the method further comprises:
the state machine monitoring module is used for establishing a finite state machine aiming at each communication connection when the polling forwarding is carried out through the application protocol proxy server so as to monitor each communication connection based on the established finite state machine; wherein each monitored communication connection comprises a communication connection between the application protocol proxy server and the network element equipment, and/or a communication connection between the application protocol proxy server and at least one application protocol server.
Optionally, the source tracing query request message forwarded to the application protocol server carries information source device address information for the network element device, and further includes:
the position inquiry reply message receiving module is used for receiving position inquiry reply messages returned by at least one application protocol server through the application protocol proxy server; the position query reply information is obtained by responding to the source tracing query request message by all source tracing query instances which are hierarchically and hierarchically forwarded based on the application protocol server;
and the position query reply information forwarding module is used for sending the position query reply information to the network element equipment corresponding to the address information of the message source equipment through the application protocol proxy server according to the address information of the message source equipment.
The embodiment of the invention also discloses an electronic device, which comprises: the load balancing method comprises a processor, a memory and a computer program which is stored on the memory and can run on the processor, wherein when the computer program is executed by the processor, any load balancing implementation method based on the tracing gateway is realized.
The embodiment of the invention also discloses a computer readable storage medium, wherein a computer program is stored on the computer readable storage medium, and when the computer program is executed by a processor, the load balancing implementation method based on the tracing gateway can be realized
The embodiment of the invention has the following advantages:
in the embodiment of the invention, the application protocol proxy server is in communication connection with the network element device and the tracing gateway based on a preset application protocol, wherein the tracing gateway in communication connection with the application protocol proxy server can comprise an application protocol server and a tracing query instance which are positioned at the rear end of the application protocol proxy server, and in the load balancing process when the tracing query request message is processed based on the tracing gateway, after the tracing query request message of the network element device is received mainly through the application protocol proxy server, polling and forwarding are performed on at least one application protocol server positioned at the rear end based on query traffic corresponding to the tracing query request message, so that the load balancing of the first layer is realized, a subsequent application protocol server can continuously perform hierarchical load balancing and forward the query message to each tracing query instance for tracing, namely, the polling forwarding based on the application protocol proxy server and the hierarchical forwarding of the subsequent application protocol server are performed, the design realizes the Vofi flexible load balancing capability of the tracing gateway which meets the requirements of the existing network device, the problem of converting the multi-layer flexible load balancing capability into Wifi hierarchical forwarding based on the Wifi hierarchical query instances is solved, and the problem of the whole flexible load balancing forwarding of the Wifi hierarchical query forwarding is solved, so that the Wifi hierarchical forwarding system is capable of realizing the whole flexible load forwarding based on the whole scalable forwarding of the Wifi hierarchical query instances.
Drawings
Fig. 1 is a schematic diagram of a system framework for implementing load balancing based on a tracing gateway according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating steps of an embodiment of a method for implementing load balancing based on a tracing gateway according to the present invention;
fig. 3 is a schematic message flow diagram for a tracing gateway according to an embodiment of the present invention;
fig. 4 is a schematic diagram of connection establishment for a tracing gateway according to an embodiment of the present invention;
FIG. 5 is a flowchart illustrating steps of another embodiment of a method for implementing load balancing based on a tracing gateway according to the present invention;
fig. 6 is a schematic view of an application scenario for implementing load balancing based on a tracing gateway according to an embodiment of the present invention;
fig. 7 is a block diagram of a load balancing implementation apparatus according to an embodiment of the present invention;
fig. 8 is a block diagram of another load balancing implementation apparatus based on a tracing gateway according to another embodiment of the present invention.
Detailed Description
In order to make the aforementioned objects, features and advantages of the present invention comprehensible, embodiments accompanied with figures are described in further detail below.
To facilitate understanding of the invention by those skilled in the art, the following explanation is made for terms or nouns involved in the following embodiments of the invention:
VoWifi: also called as voiceWiFi or wifi call, refers to that a mobile terminal realizes a service function of a phone and a short message through wifi access, and usually the mobile terminal needs to complete registration on an operator system, and can be used after becoming a volte user, and is a voice access means controlled by the operator based on wifi access.
User LocalIP: refers to the IP address of the user's own machine.
IP address: internet protocol address refers to an internet protocol address.
Diameter protocol: it is not a single protocol, but a protocol cluster, which includes a basic protocol (diameter base protocol) and various application protocols extended from the basic protocol, and generally provides a basic framework for various application protocols, and can define the transmission mechanism, message format, message processing, error processing, charging and security services, etc. of the protocol.
RESTful protocol: reresentationStateTransfer is a software architecture style that provides a series of restrictive guidance for better creating webservice.
An SWF interface: the Swift interface is an interface written in a powerful and intuitive programming language.
Nginx: and (4) load balancing.
SSL: secure sockets layer, a network security protocol.
CER: capability-Exchange-Request refers to a capability Exchange Request, and generally, the CER message is used for the Diameter entity to Request to acquire information such as capability, protocol version, supported application protocol, and the like of the opposite entity.
CEA: capability-Exchange-Answer refers to a capability Exchange response, and in general, the CEA message is used for a Diameter entity to reply information such as related capability, protocol version, supported application protocol, and the like.
FiniteStateMachine: finite state machines represent a "finite number" of states and mathematical models of the behavior of transitions and actions between these states.
Session state: session state is a mechanism used by the server to record the state of the client.
AVP field: attribute-Value-Pair, refers to the message body of a Diameter message. Specifically, the message body part of a Diameter message is usually in units of AVPs, and Diameter encapsulates various information related to one message with individual AVPs, and then performs head-to-tail concatenation one by one.
QLR: query-Location-Request refers to a Location Query Request, and generally QLR messages are sent to the tracing gateway by the ePDG and used to Query whether the home gateway accessed by the VoWiFi user opens the VoWiFi service and the user Location information.
And (3) QLA: query-Location-Answer refers to a Location Query reply, usually a QLA message is used to reply to an ePDG, whether a home gateway accessed by a user activates a VoWiFi service, and user Location information.
RoundRobin mode: a round-robin scheduling algorithm, whose principle is represented by allocating requests from users to servers in turn each time.
The VoWifi tracing gateway is a local network element device used for providing a tracing function in a VoWifi service, and can be used for completing a user position tracing query function.
However, at present, different ePDG device manufacturers slightly differ in external interfaces, in order to adapt to the practical requirements of mixed networking of different manufacturers and support the stable development of the VoWifi service, the VoWifi tracing gateway must have the flexible load balancing capability under different scale service pressures, and the existing public and open source software rarely refers to the traditional communication protocol Diameter and the implementation method of the flexible load balancing inside the subsequent device
One of the core ideas of the embodiment of the invention is based on polling forwarding of an application protocol proxy server and hierarchical forwarding of a subsequent application protocol server, namely aiming at partial Diameter signaling proxy forwarding of a VoWifi service and VoWifi tracing query of an L7 layer RESTful protocol, the VoWifi tracing gateway meeting the requirements of existing network equipment, particularly the multi-layer flexible load balancing capability of mixed networking of equipment of different manufacturers of the existing network and scenes of different peak flow rates is realized, and the requirement of VoWifi service tracing is met. Furthermore, the application protocol proxy server for realizing polling forwarding also has the finite state machine management and AVP forwarding capabilities aiming at the VoWifi gateway Diameter signaling, and realizes the Session management and load balancing suitable for the VoWifi gateway. In addition, after the application protocol proxy server performs polling and forwarding to at least one application protocol server at the rear end based on the query traffic corresponding to the traceability query request message to realize the first-layer load balancing, the application protocol server can further perform hierarchical load balancing on the query traffic corresponding to the received traceability query request message and forward the query traffic to each traceability query instance for traceability query processing, further perform hierarchical decoupling and distribution on peak business traffic, and enable the VoWifi traceability query to have flexible horizontal automatic capacity expansion capability based on polling forwarding and hierarchical forwarding.
Referring to fig. 1, a schematic diagram of a system framework for implementing load balancing based on a tracing gateway according to an embodiment of the present invention is shown, where the system relates to a network element device 110, an application protocol proxy server 111, and a tracing gateway 112.
The network element device 110 is used as a necessary network element in an untrusted Wi-Fi network access mode, and can use a gateway address and a port number of a user as access parameters based on a tracing gateway interaction interface, and return user position information to the ePDG after calling tracing capability to complete the VoWiFi user positioning; the application protocol proxy server 111 may be a Diameter protocol proxy server, which is used as an intermediate proxy server between the network element device 110 and the tracing gateway 112 to implement a load balancing process for request processing of the tracing gateway 112; the tracing gateway 112 may be an important local network element device in the VoWiFi service, and is configured to complete a function of user location tracing query, where the local network element device may include a diameter server application protocol server 11 at a back end, and a tracing query instance 12 that processes an L7 layer RESTful message, so as to perform polling and forwarding to at least one application protocol server at the back end, and after implementing load balancing at a first layer, perform hierarchical load balancing on query traffic corresponding to the received tracing query request message, and forward the query traffic to each tracing query instance for tracing query processing, and further perform hierarchical decoupling and distribution on peak traffic flow.
Specifically, the application protocol proxy server 111 may be in communication connection with the network element device 110 and the tracing gateway 112 based on a preset application protocol, for example, the preset application protocol may be a Diameter protocol, and the VoWifi tracing gateway 112 may interact with the ePDG gateway device 110 through an SWf interface based on the Diameter protocol.
It should be noted that, in the VoWifi tracing gateway 112, the application protocol server 11 may interact with the ePDG network element device 110 based on the SWf interface of the Diameter protocol, where the Diameter protocol should meet the requirement of "Diameter baseprotocol" in the RFC6733 standard, and in consideration of the huge traffic impact of the ePDG device in the traffic peak period, specifically, after the backend Diameter server protocol conversion, the load balancing capability of the L7 layer RESTful protocol may also be adapted, that is, protocol conversion is involved between the application protocol server 11 and the tracing query instance 12, so that a 7-layer proxy protocol repeater may also be involved in the application protocol server 11 and the tracing query instance 12.
In practical application, the proxy protocol forwarder is mainly responsible for the second half of the load balancing of the whole system, so as to implement hierarchical forwarding of the traceable query instance, which may be generally represented as a certain software process at an application layer, and the like, and the proxy protocol forwarder is not labeled in the system framework schematic diagram in fig. 1, with respect to the application protocol proxy server 111 responsible for the first half of the load balancing of the whole system and implementing polling and message forwarding of the application protocol proxy server located at the rear end.
In the embodiment of the invention, based on the polling forwarding of the application protocol proxy server and the layered and hierarchical forwarding of the subsequent application protocol server, namely aiming at the partial Diameter signaling proxy forwarding of the VoWifi service and the VoWifi tracing query of the L7 layer RESTful protocol, the VoWifi tracing gateway required by the current network equipment is realized, particularly the multilayer flexible load balancing capability of the mixed networking of the equipment of different manufacturers of the current network and the scene of different peak flow is realized, and the requirement of the VoWifi service tracing is met. Furthermore, the application protocol proxy server for realizing polling forwarding also has the finite state machine management and AVP forwarding capabilities aiming at the VoWifi gateway Diameter signaling, and realizes the Session management and load balancing suitable for the VoWifi gateway. In addition, after the application protocol proxy server performs polling and forwarding to at least one application protocol server at the rear end based on the query traffic corresponding to the traceability query request message to realize the first-layer load balancing, the application protocol server can further perform hierarchical load balancing on the query traffic corresponding to the received traceability query request message and forward the query traffic to each traceability query instance for traceability query processing, further perform hierarchical decoupling and distribution on peak business traffic, and enable the VoWifi traceability query to have flexible horizontal automatic capacity expansion capability based on polling forwarding and hierarchical forwarding.
Referring to fig. 2, a flowchart illustrating steps of an embodiment of a load balancing implementation method based on a tracing gateway according to the present invention is shown, and is applied to an application protocol proxy server shown in fig. 1, where the method specifically includes the following steps:
step 201, receiving a source tracing query request message of a network element device through an application protocol proxy server, and acquiring a query flow corresponding to the source tracing query request message;
in the embodiment of the invention, polling and forwarding can be performed on at least one application protocol server positioned at the rear end based on the query traffic corresponding to the traceability query request message, so that the load balance of the first layer is realized, and the traceability query processing is performed based on the subsequently performed hierarchical load balance and forwarding to each traceability query instance, so that the problem of hierarchical conversion of the huge service query traffic to each VoWifi traceability query instance is solved.
Specifically, the voicewifi tracing gateway generally realizes interaction with the ePDG gateway device through the SWf interface based on the Diameter protocol, and in the first half of the load balancing of the whole system, that is, in order to realize the load balancing of the first half, the tracing gateway is not directly connected with the gateway device at this time, but the application protocol proxy server is used as an intermediate proxy server between the ePDG gateway device and the voicewifi tracing gateway device to perform load balancing.
The load balancing performed by the application protocol proxy server is mainly represented by load balancing forwarding of query traffic, and in the embodiment of the invention, the traceability query request message of the network element equipment is mainly received through the application protocol proxy server, and the query traffic corresponding to the traceability query request message is acquired, so that the load balancing forwarding of the query traffic is realized subsequently.
In practical application, as shown in fig. 3, the network element device may be represented as an ePDG device, the application protocol proxy server may be represented as a diameter proxy server, the application protocol proxy server may be represented as a Backend proxy server, at this time, the application protocol proxy server may receive service request information (i.e., voWiFiMsg) for the VoWiFi sent by the ePDG device, the ePDG device is mainly a network element device that completes the positioning of the VoWiFi user, the service request information sent to the application protocol proxy server is usually a traceability query request message, and the traceability query request message may be specifically represented as the ePDG network element device screening a received service query request sent based on a user end, and then query traffic corresponding to the traceability query request message may also be obtained by screening the received service query request through the ePDG network element device, and statistics of query traffic belonging to the traceability query request in the service query request is implemented.
In a preferred embodiment, before the source tracing query request message of the network element device is received by the application protocol proxy server, the application protocol proxy server serves as an intermediate proxy server between the network element device and the source tracing gateway, and establishes a communication connection with the network element device and the source tracing gateway, which is specifically represented as a communication connection with the network element device and the source tracing gateway based on a preset application protocol, for example, a Diameter protocol.
Specifically, referring to fig. 4, a schematic diagram of connection establishment for a tracing gateway provided in the embodiment of the present invention is shown, before a tracing query request message of a network element device is received by an application protocol proxy server, a device connection request of the network element device may be received by the application protocol proxy server, and a communication connection with an application protocol server at a back end is established by the application protocol proxy server, that is, after the Diameter proxy server receives the device connection request, a Session connection message may be initiated to a plurality of Diameter servers at a back stage, that is, the application protocol server, and a message relay forwarding function is assumed.
And the capability exchange response message mainly can be used for confirming whether the network element equipment has the source tracing capability to the source message equipment.
Illustratively, as shown in fig. 4, in terms of message processing timing, after the ePDG network element device initiates a connection request to the Diameter proxy Server, the Diameter proxy Server initiates a connection request to a backend preconfigured vowifi Diameter Server, i.e., an application protocol Server, and waits for a connection success reply message to confirm whether the communication connection between the Diameter proxy Server and the network element device and the application protocol Server is successfully established.
After establishing the communication connection between the Diameter proxy server and the network element equipment and the application protocol server, after receiving the capability exchange request message, i.e. the CER message, of the ePDG network element equipment, the Diameter proxy server initiates the CER message to the vowifidameterserver application protocol server respectively, and waits for the application protocol server to reply the capability exchange response message, i.e. the CEA message, to confirm the traceability. It should be noted that, after the connection is successfully established, connection availability may be detected between the ePDG network element Device and the Diameter proxy server, and between the Diameter proxy server and the vowifidiameter server application protocol server through a timed Device-Watchdog heartbeat message, and subsequent message forwarding required to be processed may be maintained based on the connection availability.
Step 202, polling is performed to at least one application protocol server located at the back end according to the query traffic, and the source tracing query request message is forwarded to the at least one application protocol server, so that the at least one application protocol server hierarchically forwards the query traffic corresponding to the source tracing query request message to each source tracing query instance.
After establishing the communication connection between the Diameter proxy server and the network element device and the application protocol server and confirming that the ePDG network element device has the traceability capability, when receiving the traceability query request message of the network element device through the application protocol proxy server, polling can be performed on at least one application protocol server located at the rear end according to the query traffic, and the traceability query request message is forwarded to the at least one application protocol server, so that the load balancing forwarding of the query traffic to the application protocol server is realized.
Exemplarily, as shown in fig. 4, when the ePDG network element device sends QLR a tracing request to the Diameter proxy server, the Diameter proxy server will obtain a token according to the token bucket algorithm, and as shown in fig. 3, poll and forward QLR message to the vowifidiameter server in a routrobin manner, and after receiving a QLA response, i.e., location query reply information, the Diameter proxy server may forward the corresponding ePDG network element device to implement tracing query on the user location, obtain the user location information, and complete the VoWiFi user location. It should be noted that the tracing query in the embodiment of the present invention is performed under the condition that the user knows and allows, and does not violate the personal privacy of others.
Specifically, in the process of implementing load balancing based on polling and forwarding of the application protocol servers, the token bucket algorithm executed by the application protocol proxy server is mainly represented by obtaining a token bucket threshold configured in advance for at least one application protocol server located at the back end, and at this time, the number of polled application protocol servers may be determined based on the query traffic and the configured token bucket threshold, and the traceability query request message may be forwarded to the at least one application protocol server located at the back end according to the number of application protocol servers to be polled.
The current bearing capacity of a single diameter server is limited, and measurement and calculation can be performed according to configuration conditions, that is, the threshold of the token bucket can be configured in advance based on the measurement and calculation of the configuration conditions, so that the obtained token bucket threshold is used for representing the limit of query traffic accepted by each application protocol server, and the token of the token bucket can also be used for representing that the application protocol proxy server has the right to access a certain application protocol server. It should be noted that, based on the threshold of the token bucket, if the bearer service has a new evolution or the diameter server has been configured and upgraded in the future, dynamic threshold setting may also be supported, which is not limited in the embodiment of the present invention.
In practical application, in the polling and forwarding process, multiple application protocol servers, which are in parallel relationship and share the pressure of service, are forwarded to application protocol servers preconfigured in a later stage. In addition to the above-mentioned determination of the number of servers required to process traffic based on query traffic and token bucket threshold, it also needs to implement polling and message forwarding by means of a routing table.
In specific implementation, the configuration information of the application protocol server for the backend and the message source device information for the gateway device, which are pre-configured, may be obtained, then the configuration information of the application protocol server is converted into a routing table, and the message source device information is added to the routing table, at this time, at least one application protocol server may be determined from the routing table based on a routing policy according to the number of application protocol servers to be polled, and a source tracing query request message may be forwarded to each determined application protocol server.
The configuration information vowifibackandconfig may refer to preconfigured backend diameter server related information, for example, information including an IP address, a port, an application ID, a real name, a server identifier, and expiration time, which is not limited in this embodiment of the present invention.
In the embodiment of the present invention, the message source device information may be used to determine the routing policy. Specifically, the message source device information may include a realm name RealmName and an Application Identifier for the network element device, and the message source device information is recorded in the routing table, and the determined routing policy may be represented by selecting an Application protocol server according to the realm name, forwarding a request of the network element device with the same realm name to the same or the same stack of Application protocol servers as far as possible, or avoiding the Application protocol servers in the using process, and the like.
In a preferred embodiment, as shown in fig. 3, when performing polling forwarding through the application protocol proxy server, a finite state machine for each communication connection may also be established, so as to monitor each communication connection based on the established finite state machine; wherein each monitored communication connection comprises a communication connection of an application protocol proxy server and a network element device, and/or a communication connection of an application protocol proxy server and at least one application protocol server.
In practical application, after the ePDG message arrives, finite state machine information of each Session state can be maintained, origin-HostAVP information and Destination-HostAVP information of the Diameter message are supplemented, the source equipment address and the Destination address of the subsequent connection of each DiameterSession are tracked, and the purpose of maintaining the Session state is achieved. Specific finite state machine information may include, for example, a Wait communication connection state (represented as a Wait-Conn-Ack state), a Wait traceability capability confirmation state (represented as a Wait-I-CEA state), a startup state (represented as an I-Open state), a Closing state (represented as a Closing state), a Closing state (represented as a Closed state), and the like.
It should be noted that the state machine is used to maintain the Session state, and generally, if it is an ePDG device, the message will be forwarded to different backend diameterservers through the Diameter agent, different destination servers need to establish different logical sessions, and these sessions need to be maintained by the finite state machine. According to the RFC6733 specification, the Diameter proxy server needs to attach AVP data containing source and destination device information in the forwarded message, so that the message can be forwarded to the correct source device after receiving the reply of the backend Diameter server. And the timing of the performance of the Diameter message supplementation may generally precede the receipt of the message for forwarding.
In a preferred embodiment, as shown in the message processing sequence of fig. 4, after the communication connection between the Diameter proxy server and the network element Device and the application protocol server is established, connection availability between the ePDG network element Device and the Diameter proxy server and between the Diameter proxy server and the vowifidiameter server may also be detected through a timed Device-Watchdog heartbeat message, and subsequent message forwarding required to be processed is maintained based on the connection availability. Then, the source tracing query request message is forwarded to at least one application protocol server located at the back end, and it is further required to ensure that heartbeat message detection is performed on the application protocol proxy server and the application protocol server according to a preset time interval, and performed under the condition of connection availability.
In a preferred embodiment, when forwarding a message to at least one application protocol server of a backend, message source device address information for a network element device and destination address information of the application protocol server connected to the backend may also be added to the forwarded trace source query request message, where the message source device address information is used to inform the application protocol proxy server of a source device address of the location query reply information to be forwarded by the application protocol proxy server after the application protocol proxy server receives the location query reply information returned by the application protocol server of the backend.
Then, for a Diameter proxy server, the tracing query request message forwarded to the application protocol server carries message source device address information for the network element device, after the application protocol proxy server receives the location query reply message returned by at least one application protocol server, the location query reply message is mainly obtained by querying in response to the tracing query request message based on each tracing query instance hierarchically forwarded by the application protocol server, and at this time, the location query reply message may be sent to the network element device corresponding to the message source device address information according to the message source device address information.
Exemplarily, as shown in fig. 4, after receiving QLR message, the DiameterServer performs protocol conversion and queries the trace source instance at the back end, and after obtaining the relevant response of the user location information, encapsulates the response into a QLA message and replies to the Diameter proxy server; after receiving the QLA response, i.e., the location query reply message, the application protocol proxy server may forward the QLA response, i.e., the location query reply message, to the corresponding ePDG network element device, thereby implementing the tracing query on the user location, obtaining the user location information, and completing the VoWiFi user location.
In the embodiment of the present invention, after the polling and forwarding are performed on at least one application protocol server located at the back end to implement the load balancing of the first layer, the query traffic corresponding to the received traceability query request message may be further subjected to hierarchical load balancing and forwarded to each traceability query instance for traceability query processing, so as to further decouple and distribute the peak traffic hierarchically.
Specifically, the backend DiameterServer may perform protocol conversion to form a RESTful protocol on an L7 layer, that is, it is not enough after performing load balancing on one layer, and at this time, it may also perform subsequent load balancing on a 7-layer proxy protocol repeater, and at this time, it is also necessary to forward the backend server based on the 7-layer proxy protocol repeater again, and it is allowed to adjust the configuration and number of the source tracing instances located at the back end of the L7-layer proxy protocol repeater, so as to implement load balancing after converting the source tracing query request message into the RESTful protocol.
In consideration of the parallel expandable characteristic of the system, a plurality of tracing instances should be configured according to the actual system load condition and in combination with the single instance bearing pressure limitation. Each tracing query instance can be expressed as a process for executing the tracing query, namely, the tracing query instance is mainly used for bearing the execution of a specific VoWifi tracing function, and the VoWifi tracing query is realized based on an L7 layer RESTful protocol on the basis of the forwarding of a part of Diameter signaling agents aiming at VoWifi services.
In practical application, the 7-layer proxy protocol repeater is used for forwarding on the basis of the RESTful protocol after the Diameter protocol of the former stage is converted, and can forward to a corresponding tracing instance of the back end according to a polling mechanism, which is equivalent to playing a role in secondary load balancing. It should be noted that the bearer of the RESTful protocol usually depends on the HTTP protocol of the L7 layer, and in the embodiment of the present invention, an existing L7 layer proxy protocol forwarder may be used to perform appropriate configuration to implement the function of secondary load balancing, which is not described in detail in this embodiment of the present invention.
In the embodiment of the invention, the application protocol proxy server is in communication connection with the network element device and the tracing gateway based on a preset application protocol, wherein the tracing gateway in communication connection with the application protocol proxy server can comprise an application protocol server and a tracing query instance which are positioned at the rear end of the application protocol proxy server, and in the load balancing process when the tracing query request message is processed based on the tracing gateway, after the tracing query request message of the network element device is received mainly through the application protocol proxy server, polling and forwarding are performed on at least one application protocol server positioned at the rear end based on query traffic corresponding to the tracing query request message, so that the load balancing of the first layer is realized, a subsequent application protocol server can continuously perform hierarchical load balancing and forward the query message to each tracing query instance for tracing, namely, the polling forwarding based on the application protocol proxy server and the hierarchical forwarding of the subsequent application protocol server are performed, the design realizes the Vofi flexible load balancing capability of the tracing gateway which meets the requirements of the existing network device, the problem of converting the multi-layer flexible load balancing capability into Wifi hierarchical forwarding based on the Wifi hierarchical query instances is solved, and the problem of the whole flexible load balancing forwarding of the Wifi hierarchical query forwarding is solved, so that the Wifi hierarchical forwarding system is capable of realizing the whole flexible load forwarding based on the whole scalable forwarding of the Wifi hierarchical query instances.
Referring to fig. 5, a flowchart illustrating steps of another embodiment of a load balancing implementation method based on a tracing gateway according to the present invention is shown, and is applied to the tracing gateway, where the tracing gateway is in communication connection with an application protocol proxy server based on a preset application protocol, where the tracing gateway includes an application protocol server located at the back end of the application protocol proxy server and a tracing query instance, and specifically includes the following steps:
step 501, receiving a source tracing query request message forwarded by polling of an application protocol proxy server through the application protocol server;
in the embodiment of the invention, polling and forwarding can be performed on at least one application protocol server positioned at the rear end based on the query traffic corresponding to the traceability query request message, so that the load balance of the first layer is realized, and the traceability query processing is performed based on the subsequently performed hierarchical load balance and forwarding to each traceability query instance, so that the problem of hierarchical conversion of the huge service query traffic to each VoWifi traceability query instance is solved.
Specifically, the VoWifi tracing gateway generally realizes interaction with the ePDG gateway device through an SWf interface based on a Diameter protocol, and in the first half of the load balancing of the whole system, namely the load balancing of the first half is realized, at this time, the tracing gateway is not directly connected with the gateway device, but an application protocol proxy server is used as an intermediate proxy server between the ePDG gateway device and the VoWifi tracing gateway to perform load balancing.
The load balancing performed by the application protocol proxy server is mainly characterized by performing load balancing forwarding on query traffic, in the embodiment of the invention, the tracing query request message of the network element equipment is mainly received through the application protocol proxy server, the query traffic corresponding to the tracing query request message is acquired, then the subsequent load balancing forwarding on the query traffic is performed, and the load balancing forwarding is mainly characterized by performing polling on at least one application protocol server located at the rear end according to the query traffic and forwarding the tracing query request message to the at least one application protocol server.
Step 502, the query traffic corresponding to the tracing query request message is hierarchically and hierarchically forwarded to each tracing query instance through the application protocol server;
at this time, for the application protocol server to which the tracing query request message is forwarded, after receiving the tracing query request message forwarded by polling of the application protocol proxy server, the application protocol server may forward the query traffic corresponding to the tracing query request message to each tracing query instance in a hierarchical manner.
Specifically, since the Diameter server at the back end performs the conversion from the Diameter protocol to the RESTful protocol, and the RESTful protocol must be forwarded by using 7-layer proxy, and considering the heavy traffic impact of the ePDG device during the traffic peak period, the load balancing capability of the L7-layer RESTful protocol may be adapted after the Diameter server protocol conversion at the back end, that is, protocol conversion is involved between the application protocol server and the tracing query instance, and then a 7-layer proxy protocol repeater may also be involved in the application protocol server and the tracing query instance.
Compared with the application protocol proxy server which is responsible for the first half of the load balance of the whole system, the proxy protocol repeater is mainly responsible for the second half of the load balance of the whole system, so that the polling and message forwarding of the application protocol proxy server positioned at the rear end are realized, the huge service query flow is converted into each VoWifi tracing query example in a layering and grading manner, the service peak impact resistance of the whole system is improved, and the VoWifi tracing query has flexible horizontal automatic capacity expansion capability. It should be noted that the 7-layer proxy protocol forwarding can be implemented in various ways, and at present, the SSL encryption packet is decoded and forwarded after the L7 layer configuration is performed by Nginx.
In practical application, the 7-layer proxy protocol repeater is used for forwarding on the basis of the RESTful protocol after the Diameter protocol of the former stage is converted, and can forward to a corresponding tracing instance of the back end according to a polling mechanism, which is equivalent to playing a role in secondary load balancing. It should be noted that the bearer of the RESTful protocol usually depends on the HTTP protocol of the L7 layer, and in the embodiment of the present invention, an existing L7 layer proxy protocol forwarder may be used to perform appropriate configuration to implement the function of secondary load balancing, which is not described in detail in this embodiment of the present invention.
Step 503, responding to the source tracing query request message through each source tracing query instance, and returning location query reply information to the application protocol server, so that the application protocol server returns location query reply information to the network element device through the application protocol proxy server.
In an embodiment of the present invention, after receiving a tracing query request message sent by an application server, each tracing query instance may return location query reply information to the application protocol server in response to the tracing query request message, so that the application protocol server returns the location query reply information to the network element device via the application protocol proxy server.
In practical application, the peak service flow is subjected to load balancing through a Diameter agent and forwarded to a Diameter server at the rear end, the Diameter server at the rear end performs protocol conversion to form an RESTful protocol at an L7 layer, and then the load balancing of the final tracing example is realized through a suitably configured 7-layer proxy protocol repeater, namely, the service flow received by each tracing query example is received from the 7-layer proxy protocol repeater.
Specifically, each tracing query instance responds to the tracing query request message, and returns location query reply information to the application protocol server, as shown in fig. 4, the location query reply information is specifically represented as that after the Diameter server application protocol proxy server receives the QLR message, protocol conversion is performed, and query is performed on a tracing instance at the back end, and after a relevant response of user location information is obtained, the response is encapsulated into a QLA message reply Diameter proxy server; after receiving the QLA response, i.e., the location query reply message, the application protocol proxy server may forward the QLA response, i.e., the location query reply message, to the corresponding ePDG network element device, thereby implementing the tracing query on the user location, obtaining the user location information, and completing the VoWiFi user location.
In practical application, when returning the location query reply information, the application protocol server performs hierarchical classification on the traceability request information, each traceability query instance can respond to the traceability query request information to perform query to obtain the location query reply information and return the location query reply information to the application protocol server, at the moment, the application protocol proxy server can receive the location query reply information returned by the application protocol server, and then the application protocol proxy server sends the location query reply information to the network element equipment corresponding to the address information of the message source equipment according to the address information of the message source equipment.
It should be noted that, the configuration and number of the diameter servers at the back end can be adjusted, and the configuration and number of the source tracing instances at the L7 layer can also be adjusted, so that the function of flexibly adapting to the service scale is achieved, and the purposes of hierarchically and hierarchically decoupling and distributing the peak service traffic and having flexible lateral capacity expansion capability are achieved.
In the embodiment of the invention, based on the polling forwarding of the application protocol proxy server and the layered and graded forwarding of the subsequent application protocol servers, the multi-layer flexible load balancing capability of the VoWifi tracing gateway meeting the requirements of the existing network equipment is designed and realized, the problem that huge business query flow is converted into each VoWifi tracing query instance in a layered and graded mode is solved, the integral service peak impact resistance capability of the system is improved, and the VoWifi tracing query has flexible horizontal automatic capacity expansion capability based on the polling forwarding and the layered and graded forwarding.
In order to enable those skilled in the art to know the load balancing implementation based on the tracing gateway provided in the embodiment of the present invention, fig. 6 is a schematic view of an application scenario for implementing load balancing based on the tracing gateway provided in the embodiment of the present invention, and the following description is made in combination with the application scenario:
the method is mainly applied to a scene of tracing, namely user position query, can generally realize the VoWifi tracing gateway meeting the requirements of the existing network equipment, and particularly meets the requirements of VoWifi service tracing on the multi-layer flexible load balancing capability of the existing network in the scene of mixed networking of different manufacturer equipment and different peak flow.
Specifically, the system comprises a network element device (ePDG), an application protocol proxy server (DiameterProxAgentMaster/DiameterProxAgentSlave), a state machine (Finite StatemAchine), an application protocol server (BackeDiameterSever 1/Backediameter Sever 2/BackeDiameterSever 3 and the like), a 7-layer proxy protocol repeater (L7 ProtopyAgentMaster), and a traceability query instance (Vowifi traceability query instance 1/Vowifi traceability query instance 2/Vowifi traceability query instance 3 and the like).
The application protocol server and the tracing query instance belong to a tracing gateway, are important local network element equipment in VoWiFi service, and can be used for completing the function of tracing query of the user position; the application protocol proxy server can be in communication connection with the network element equipment and the tracing gateway based on a preset application protocol, illustratively, the preset application protocol can be a Diameter protocol, and the VoWifi tracing gateway realizes interaction with the ePDG gateway equipment through an SWf interface based on the Diameter protocol; the network element equipment is used as a necessary network element in an untrusted Wi-Fi network access mode, and can take a gateway address and a port number of a user as access parameters based on a tracing gateway interactive interface, call tracing capability and then return user position information to the ePDG, and complete VoWiFi user positioning; compared with the application protocol proxy server which is responsible for the first half of the load balance of the whole system, the proxy protocol repeater is mainly responsible for the second half of the load balance of the whole system and realizes the hierarchical forwarding of the traceability query example, and the application protocol proxy server is responsible for the first half of the load balance of the whole system and realizes the polling and message forwarding of the application protocol proxy server at the rear end.
In practical application, the process of implementing load balancing is represented as that the network element device sends a connection request to the application protocol proxy server, receives the device connection request of the network element device through the application protocol proxy server, and establishes a communication connection with the application protocol server at the back end through the application protocol proxy server, that is, after receiving the device connection request, the Diameter proxy server can initiate Session connection messages to a plurality of Diameter servers at the back stage, that is, the application protocol server, and undertakes a message relay forwarding function.
The application protocol proxy server responds to the capability exchange request sent by the network element equipment, forwards the capability exchange request to the application protocol server of the established communication connection, and receives a capability exchange response message returned by the application protocol server, wherein the capability exchange response message can be mainly used for confirming whether the network element equipment has the source tracing capability to the source message equipment.
After establishing communication connection between a Diameter proxy server and network element equipment and an application protocol server, after receiving a capability exchange request message, namely a CER message, of ePDG network element equipment, the Diameter proxy server receives a traceability query request message of the network element equipment through the application protocol proxy server, acquires query flow corresponding to the traceability query request message, polls at least one application protocol server located at the rear end according to the query flow, forwards the traceability query request message to the at least one application protocol server, and realizes the first half of load balance of the whole system based on the application protocol proxy server.
When polling forwarding is carried out through the application protocol proxy server, a finite state machine aiming at each communication connection can be established, so that each communication connection is monitored based on the established finite state machine; in practical application, after an ePDG message arrives, finite state machine information of each Session state can be maintained, origin-HostAVP information and Destination-HostAVP information of the Diameter message are supplemented, and the purposes of tracking the source device address and the Destination address of each DiameterSession and maintaining the Session state are achieved.
The method comprises the steps that a traceability query request message transmitted by an application protocol proxy Server in a polling mode is received through the application protocol Server, query flow corresponding to the traceability query request message is transmitted to each traceability query instance in a layering and grading mode, the traceability query request message can be responded through each traceability query instance at the moment, position query reply information is returned to the application protocol Server, so that the application protocol Server can return the position query reply information to network element equipment through the application protocol proxy Server, namely, peak value service flow is transmitted to a rear-end diameterServer through a Diameter proxy in a load balancing mode, the rear-end Diameter Server performs protocol conversion to form an L7-layer traceability protocol, the final load balancing of a source instance is achieved through a properly configured 7-layer proxy protocol repeater, and the rear half of the load balancing of the whole system can be achieved based on the 7-layer proxy protocol repeater.
In the embodiment of the invention, based on the polling forwarding of the application protocol proxy server and the layered and hierarchical forwarding of the subsequent application protocol server, namely aiming at the partial Diameter signaling proxy forwarding of the VoWifi service and the VoWifi tracing query of the L7 layer RESTful protocol, the VoWifi tracing gateway required by the current network equipment is realized, particularly the multilayer flexible load balancing capability of the mixed networking of the equipment of different manufacturers of the current network and the scene of different peak flow is realized, and the requirement of the VoWifi service tracing is met. Furthermore, the application protocol proxy server for realizing polling forwarding also has the finite state machine management and AVP forwarding capabilities aiming at the VoWifi gateway Diameter signaling, and realizes the Session management and load balancing suitable for the VoWifi gateway. In addition, after the application protocol proxy server performs polling and forwarding to at least one application protocol server at the rear end based on the query flow corresponding to the tracing query request message to realize the first-layer load balancing, the application protocol server can further perform hierarchical load balancing on the query flow corresponding to the received tracing query request message and forward the query flow to each tracing query instance for tracing query processing, further perform hierarchical decoupling and distribution on peak service flow, and enable the VoWifi tracing query to have flexible horizontal automatic capacity expansion capability based on polling forwarding and hierarchical forwarding, thereby solving the problem that the prior art lacks management and AVP forwarding capabilities for a Session and a finite state machine of a Diameter protocol, and only has an L7 layer load balancing component based on RESTful, so that the effect is not good in the large-flow impact scene of the existing network ePDG equipment.
It should be noted that for simplicity of description, the method embodiments are shown as a series of combinations of acts, but those skilled in the art will recognize that the embodiments are not limited by the order of acts, as some steps may occur in other orders or concurrently in accordance with the embodiments. Further, those skilled in the art will appreciate that the embodiments described in the specification are presently preferred and that no particular act is required to implement the invention.
Referring to fig. 7, a block diagram of a load balancing implementation apparatus based on a tracing gateway according to an embodiment of the present invention is shown, and is applied to an application protocol proxy server, where the application protocol proxy server is in communication connection with a network element device and the tracing gateway based on a preset application protocol, where the tracing gateway includes an application protocol server located at a back end of the application protocol proxy server and a tracing query instance, and specifically includes the following modules:
a source tracing query request message receiving module 701, configured to receive a source tracing query request message of a network element device, and obtain a query traffic corresponding to the source tracing query request message;
the polling forwarding module 702 is configured to poll at least one application protocol server located at the back end according to the query traffic, and forward the source tracing query request message to the at least one application protocol server, so that the at least one application protocol server performs hierarchical forwarding on the query traffic corresponding to the source tracing query request message to each source tracing query instance.
In one embodiment of the present invention, the poll forwarding module 702 may include the following sub-modules:
the token bucket threshold value acquisition submodule is used for acquiring a token bucket threshold value which is configured aiming at least one application protocol server at the rear end in advance; the token bucket threshold is used for representing the query flow limit value accepted by each application protocol server;
the polling quantity determining submodule is used for determining the quantity of the polled application protocol servers based on the query flow and the configured token bucket threshold;
and the polling forwarding sub-module is used for forwarding the source tracing query request message to at least one application protocol server positioned at the rear end according to the number of the application protocol servers to be polled.
In one embodiment of the present invention, the poll forwarding sub-module may include the following units:
a configuration information obtaining unit, configured to obtain pre-configured configuration information for a backend application protocol server and message source device information for a gateway device;
the routing table generating unit is used for converting the configuration information of the application protocol server into a routing table and adding the information of the message source equipment to the routing table; the message source equipment information is used for determining a routing strategy;
and the request message forwarding unit is used for determining at least one application protocol server from the routing table based on the routing strategy according to the number of the application protocol servers to be polled, and forwarding the source tracing query request message to each determined application protocol server.
In an embodiment of the present invention, the polling forwarding sub-module may further include the following units:
the heartbeat message detection unit is used for carrying out heartbeat message detection on the application protocol proxy server and the application protocol server according to a preset time interval and forwarding a source tracing query request message to at least one application protocol server positioned at the rear end under the condition of connection availability;
in an embodiment of the present invention, before forwarding the tracing query request message to at least one application protocol server located at the back end, the following units may be further included:
an address information adding unit, configured to add, in the tracing query request message, message source device address information for the network element device and destination address information of an application protocol server connected to the back end; the message source device address information is used for informing the application protocol proxy server of the source device address of the position query reply information to be forwarded after the application protocol proxy server receives the position query reply information returned by the application protocol server at the rear end.
In an embodiment of the present invention, before receiving, by an application protocol proxy server, a source query request message of a network element device, the apparatus provided in the embodiment of the present invention may further include the following modules:
the communication connection establishing module is used for receiving an equipment connection request of the network element equipment through the application protocol proxy server and establishing communication connection with the application protocol server at the rear end through the application protocol proxy server;
a traceability capacity determining module, configured to respond to a capacity exchange request sent by a network element device, forward the capacity exchange request to an application protocol server of the established communication connection, and receive a capacity exchange response message returned by the application protocol server; the capability exchange response message is used for confirming whether the network element equipment has the source tracing capability for the source message equipment.
In an embodiment of the present invention, the apparatus provided in the embodiment of the present invention may further include the following modules:
the state machine monitoring module is used for establishing a finite state machine aiming at each communication connection when the polling forwarding is carried out through the application protocol proxy server so as to monitor each communication connection based on the established finite state machine; wherein each monitored communication connection comprises a communication connection of an application protocol proxy server and a network element device, and/or a communication connection of an application protocol proxy server and at least one application protocol server.
In an embodiment of the present invention, the source tracing query request message forwarded to the application protocol server carries information source device address information for the network element device, and the apparatus provided in the embodiment of the present invention may further include the following modules:
the position inquiry reply message receiving module is used for receiving position inquiry reply messages returned by at least one application protocol server through the application protocol proxy server; the position query reply information is obtained by querying each tracing query instance response tracing query request message which is hierarchically and hierarchically forwarded based on the application protocol server;
and the position query reply message forwarding module is used for sending the position query reply message to the network element equipment corresponding to the address information of the message source equipment through the application protocol proxy server according to the address information of the message source equipment.
In the load balancing implementation device based on the tracing gateway provided by the embodiment of the invention, the application protocol proxy server is in communication connection with the network element device and the tracing gateway based on a preset application protocol, wherein the tracing gateway in communication connection with the application protocol proxy server can comprise an application protocol server and a tracing query instance which are positioned at the rear end of the application protocol proxy server, and in the load balancing process when the tracing query request message is processed based on the tracing gateway, after the tracing query request message of the network element device is mainly received by the application protocol proxy server, polling and forwarding are performed to at least one application protocol server positioned at the rear end based on the query flow corresponding to the tracing query request message, so that the load balancing of the first layer is implemented, the subsequent application protocol server can continuously perform the hierarchical load balancing and forward the query flow corresponding to the received tracing query request message to each tracing query instance for the tracing query processing, namely the polling and forwarding based on the application protocol proxy server and the hierarchical forwarding of the subsequent application protocol server, the design of Wifi-based on the requirement of the existing network device can be implemented, and the Wifi-based on the hierarchical forwarding capability of the polling and forwarding are further implemented on the hierarchical basis of the horizontal load balancing and the Wifi, so that the hierarchical forwarding of the hierarchical query instances, the hierarchical query of the integrated query system, the hierarchical forwarding of the Wifi, and the hierarchical forwarding of the hierarchical network device, thereby solving the problem of the horizontal forwarding of the horizontal query of the cross-tracing query.
Referring to fig. 8, a block diagram of another embodiment of a load balancing implementation apparatus based on a tracing gateway is shown, and is applied to a tracing gateway, where the tracing gateway is in communication connection with an application protocol proxy server based on a preset application protocol, where the tracing gateway includes an application protocol server located at the back end of the application protocol proxy server and a tracing query instance, and may specifically include the following modules:
a request message receiving module 801, located at the application protocol server, and configured to receive a source tracing query request message forwarded by polling of the application protocol proxy server;
a request message forwarding module 802, located at the application protocol server, for performing hierarchical forwarding on query traffic corresponding to the source tracing query request message to each source tracing query instance;
and the location query module 803 is located in each tracing query instance, and returns location query reply information to the application protocol server by responding to the tracing query request message, so that the application protocol server returns the location query reply information to the network element device through the application protocol proxy server.
In the load balancing implementation device based on the tracing gateway provided by the embodiment of the invention, based on the polling forwarding of the application protocol proxy server and the layered and graded forwarding of the subsequent application protocol servers, the multi-layer flexible load balancing capability of the VoWifi tracing gateway meeting the requirements of the existing network equipment is designed and implemented, the problem that massive service query flow is converted into each VoWifi tracing query example in a layered and graded manner is solved, the integral service peak impact resistance of the system is improved, and the VoWifi tracing query has flexible transverse automatic capacity expansion capability based on the polling forwarding and the layered and graded forwarding.
For the device embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, refer to the partial description of the method embodiment.
An embodiment of the present invention further provides an electronic device, including:
the load balancing implementation method based on the tracing gateway comprises a processor, a memory and a computer program which is stored in the memory and can run on the processor, wherein when the computer program is executed by the processor, each process of the load balancing implementation method based on the tracing gateway is implemented, the same technical effect can be achieved, and in order to avoid repetition, the details are not repeated.
The embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when being executed by a processor, the computer program implements each process of the above load balancing implementation method based on a tracing gateway, and can achieve the same technical effect, and is not described herein again to avoid repetition.
The embodiments in the present specification are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other.
As will be appreciated by one of skill in the art, embodiments of the present invention may be provided as a method, apparatus, or computer program product. Accordingly, embodiments of the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, embodiments of the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and so forth) having computer-usable program code embodied therein.
Embodiments of the present invention are described with reference to flowchart illustrations and/or block diagrams of methods, terminal devices (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing terminal to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing terminal, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing terminal to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing terminal to cause a series of operational steps to be performed on the computer or other programmable terminal to produce a computer implemented process such that the instructions which execute on the computer or other programmable terminal provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present invention have been described, additional variations and modifications of these embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the embodiments of the invention.
Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or terminal that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or terminal. Without further limitation, an element defined by the phrase "comprising a … …" does not exclude the presence of another identical element in a process, method, article, or terminal that comprises the element.
The load balancing implementation method based on the tracing gateway, the load balancing implementation device based on the tracing gateway, the corresponding electronic device and the corresponding computer storage medium provided by the invention are described in detail, specific examples are applied in the description to explain the principle and the implementation mode of the invention, and the description of the above embodiments is only used for helping to understand the method and the core idea of the invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, the specific embodiments and the application range may be changed, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (10)

1. A load balancing implementation method based on a tracing gateway is characterized in that the method is applied to an application protocol proxy server, the application protocol proxy server is in communication connection with a network element device and the tracing gateway based on a preset application protocol, wherein the tracing gateway comprises an application protocol server and a tracing query instance which are positioned at the rear end of the application protocol proxy server, and the method comprises the following steps:
receiving a source tracing query request message of the network element equipment through the application protocol proxy server, and acquiring a query flow corresponding to the source tracing query request message;
polling at least one application protocol server at the back end according to the query traffic, and forwarding the source tracing query request message to the at least one application protocol server, so that the at least one application protocol server can perform hierarchical forwarding on the query traffic corresponding to the source tracing query request message to each source tracing query instance.
2. The method according to claim 1, wherein the polling at least one application protocol server at a backend according to the service query traffic and forwarding the source query request message to the at least one application protocol server comprises:
obtaining a token bucket threshold value which is configured aiming at least one application protocol server at the rear end in advance; the token bucket threshold is used for representing the query traffic limit value borne by each application protocol server;
determining a number of polled application protocol servers based on the query traffic and the configured token bucket threshold;
and forwarding the source tracing query request message to at least one application protocol server at the back end according to the number of the application protocol servers to be polled.
3. The method according to claim 2, wherein the forwarding the traceability query request message to at least one application protocol server located at a backend according to the number of application protocol servers to be polled comprises:
acquiring pre-configured configuration information aiming at a back-end application protocol server and message source equipment information aiming at the gateway equipment;
converting the configuration information of the application protocol server into a routing table, and adding the message source equipment information to the routing table; wherein the message source device information is used for determining a routing policy;
and determining at least one application protocol server from the routing table based on the routing strategy according to the number of the application protocol servers to be polled, and forwarding the source tracing query request message to each determined application protocol server.
4. The method according to claim 2 or 3, wherein the forwarding the traceable query request message to at least one application protocol server located at a backend comprises:
performing heartbeat message detection on the application protocol proxy server and the application protocol server according to a preset time interval, and forwarding the source tracing query request message to at least one application protocol server positioned at the rear end under the condition of connection availability;
before forwarding the tracing query request message to at least one application protocol server located at a backend, the method further comprises:
adding message source equipment address information aiming at the network element equipment and destination address information of an application protocol server connected with a back end in the tracing query request message; the message source device address information is used for informing the application protocol proxy server of the source device address of the position query reply information to be forwarded by the application protocol proxy server after the application protocol proxy server receives the position query reply information returned by the application protocol server at the back end.
5. The method according to claim 1 or 2, wherein before the receiving, by the application protocol proxy server, the source query request message of the network element device, further comprising:
receiving an equipment connection request of the network element equipment through the application protocol proxy server, and establishing communication connection with a back-end application protocol server through the application protocol proxy server;
responding to a capability exchange request sent by the network element equipment, forwarding the capability exchange request to an application protocol server of the established communication connection, and receiving a capability exchange response message returned by the application protocol server; the capability exchange response message is used to confirm whether the network element device has the source tracing capability for the source message device.
6. The method of claim 5, further comprising:
when polling forwarding is carried out through the application protocol proxy server, a finite state machine aiming at each communication connection is established, so that each communication connection is monitored based on the established finite state machine; wherein each monitored communication connection comprises a communication connection between the application protocol proxy server and the network element equipment, and/or a communication connection between the application protocol proxy server and at least one application protocol server.
7. The method of claim 1, wherein the source-tracing query request message forwarded to the application protocol server carries message source device address information for the network element device, and the method further comprises:
receiving position query reply information returned by at least one application protocol server through the application protocol proxy server; the position query reply information is obtained by responding to the source tracing query request message to query each source tracing query instance which is hierarchically and forwarded based on the application protocol server;
and sending the position inquiry reply information to the network element equipment corresponding to the address information of the message source equipment through the application protocol proxy server according to the address information of the message source equipment.
8. A load balancing implementation device based on a tracing gateway is characterized in that the device is applied to an application protocol proxy server, the application protocol proxy server is in communication connection with a network element device and the tracing gateway based on a preset application protocol, wherein the tracing gateway comprises an application protocol server and a tracing query instance which are positioned at the rear end of the application protocol proxy server, and the device comprises:
a source tracing query request message receiving module, configured to receive a source tracing query request message of the network element device, and obtain a query traffic corresponding to the source tracing query request message;
and the polling forwarding module is used for polling at least one application protocol server at the rear end according to the query flow and forwarding the source tracing query request message to the at least one application protocol server, so that the at least one application protocol server can perform hierarchical forwarding on the query flow corresponding to the source tracing query request message to each source tracing query instance.
9. An electronic device, comprising: a processor, a memory and a computer program stored on the memory and capable of running on the processor, wherein the computer program when executed by the processor implements the traceable gateway based load balancing implementation method according to any one of claims 1 to 7.
10. A computer-readable storage medium, wherein a computer program is stored on the computer-readable storage medium, and when executed by a processor, the computer program implements the method for implementing load balancing based on a tracing gateway according to any one of claims 1 to 7.
CN202211455813.0A 2022-11-21 2022-11-21 Load balancing implementation method, device, equipment and medium based on tracing gateway Pending CN115766587A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211455813.0A CN115766587A (en) 2022-11-21 2022-11-21 Load balancing implementation method, device, equipment and medium based on tracing gateway

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211455813.0A CN115766587A (en) 2022-11-21 2022-11-21 Load balancing implementation method, device, equipment and medium based on tracing gateway

Publications (1)

Publication Number Publication Date
CN115766587A true CN115766587A (en) 2023-03-07

Family

ID=85333566

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211455813.0A Pending CN115766587A (en) 2022-11-21 2022-11-21 Load balancing implementation method, device, equipment and medium based on tracing gateway

Country Status (1)

Country Link
CN (1) CN115766587A (en)

Similar Documents

Publication Publication Date Title
US7882245B2 (en) Presence service access device, presence service system and method for publishing and acquiring presence information
CN104429037B (en) For being connected to the method for communication equipment, equipment and system
CN110225131A (en) A kind of service calling method and device
CN113411215B (en) Time-sensitive network centralized user configuration method and system based on OPC UA
CN107404512B (en) Resource subscription method, resource subscription device and resource subscription system
JP2007221265A (en) Call control device and method
CN110933180A (en) Communication establishing method and device, load equipment and storage medium
CN109729397A (en) A kind of plug-flow method, system and server
CN104144098A (en) Information pushing method and system and pushing server equipment
CN109391502A (en) A kind of information configuring methods and administrative unit
CN113645254B (en) Method and device for signaling addressing
CN113573326A (en) Address acquisition method and device
EP3026870B1 (en) Terminal status subscription method, apparatus and system
CN112533177A (en) Method, device, apparatus and medium for providing and discovering moving edge calculation
CN116055311A (en) Communication method and device
CN105721408A (en) RCS client realization method, terminal, relevant platform and system
CN110087227B (en) Distributed presence service system and method based on IMS architecture
CN114221836A (en) Data processing method and device
CN108306907A (en) A kind of management method of terminal, network function and terminal
EP3937521A1 (en) Method for an improved exchange and/or interworking functionality between a first mobile communication network and a second mobile communication network, system, network exchange function, program and computer program product
CN112217845B (en) Data transmission method based on Netconf protocol and related equipment
WO2017185934A1 (en) Management device and method for managing device
CN102726030B (en) For the method and apparatus of route XCAP request
CN115766587A (en) Load balancing implementation method, device, equipment and medium based on tracing gateway
EP4037292A1 (en) P-cscf registration and discovery mechanism

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