CN111327666B - Service management method, device and system, computer equipment and storage medium - Google Patents

Service management method, device and system, computer equipment and storage medium Download PDF

Info

Publication number
CN111327666B
CN111327666B CN201910579821.8A CN201910579821A CN111327666B CN 111327666 B CN111327666 B CN 111327666B CN 201910579821 A CN201910579821 A CN 201910579821A CN 111327666 B CN111327666 B CN 111327666B
Authority
CN
China
Prior art keywords
service
service providing
target
providing device
capability
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201910579821.8A
Other languages
Chinese (zh)
Other versions
CN111327666A (en
Inventor
余通
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hangzhou Hikvision System Technology Co Ltd
Original Assignee
Hangzhou Hikvision System Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hangzhou Hikvision System Technology Co Ltd filed Critical Hangzhou Hikvision System Technology Co Ltd
Priority to CN201910579821.8A priority Critical patent/CN111327666B/en
Publication of CN111327666A publication Critical patent/CN111327666A/en
Application granted granted Critical
Publication of CN111327666B publication Critical patent/CN111327666B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/51Discovery or management thereof, e.g. service location protocol [SLP] or web services

Abstract

The invention discloses a service management method, a service management device, a service management system, computer equipment and a storage medium, and belongs to the field of intelligent analysis services. The method comprises the following steps: sending a service discovery request to a plurality of service providing devices, wherein the service discovery request is used for requesting the service providing devices with service providing capability to provide service information, and the service information comprises types of provided services and access addresses corresponding to each type of service; receiving a service discovery response to the service discovery request, the service discovery response including service information; and recording the service providing equipment from which each received service discovery response originates and the carried service information. The invention solves the problem of low efficiency of the service discovery process. The method and the system are used for discovering the intelligent analysis service.

Description

Service management method, device and system, computer equipment and storage medium
Technical Field
The present invention relates to the field of intelligent analysis services, and in particular, to a service management method, device, system, computer device, and storage medium.
Background
With the development of science and technology, more and more application platforms need to analyze data acquired by the application platforms, and service providing equipment for providing intelligent analysis services such as image analysis services or audio analysis services is derived. For example, the service providing device may be a Network Video Recorder (NVR) or a facial makeup cloud analysis device. The application platform comprises a client and a server.
At present, when an application platform acquires an intelligent analysis service, an IP address of a corresponding service providing device needs to be obtained through querying an Internet Protocol (IP) address list or network search and the like based on the type of data to be analyzed, so as to discover the service providing device, the application device can send a service acquisition request carrying the data to be analyzed to the service providing device through the IP address, the service providing device analyzes the data to be analyzed, and feeds back a service response carrying an analysis result to the application platform through the communication connection.
However, in the above process, the query efficiency of the IP address is low, and the query flexibility is poor, thereby affecting the discovery efficiency of the service providing device.
Disclosure of Invention
The invention provides a service management method, a service management device, a service management system, computer equipment and a storage medium, which can solve the problem of low discovery efficiency of service providing equipment in the related art. The technical scheme is as follows:
in a first aspect, a service management method is provided, where the method includes:
sending a service discovery request to a plurality of service providing devices, wherein the service discovery request is used for requesting the service providing devices with service providing capability to provide service information, and the service information comprises types of the provided services and access addresses corresponding to each type of service;
receiving a service discovery response to the service discovery request, the service discovery response including service information;
and recording the service providing equipment from which each received service discovery response originates and the carried service information.
Optionally, the method further includes:
and acquiring the capability information of each type of service provided by each available service providing device, wherein the capability information is used for reflecting the service capability of the corresponding service, and the available service providing device is a recorded service providing device.
Optionally, the capability information includes at least one of an analysis channel number, an algorithm library capability index, and a single-channel unit time analysis capability index;
for any type of service provided by the available service providing device, the single-channel analysis capability per unit time index is a data amount that a target analysis channel can analyze in a unit time length, wherein the target analysis channel is an analysis channel for analyzing data corresponding to the service of any type.
Optionally, the capability information includes a single-channel time unit analysis capability index, and the acquiring capability information of each type of service provided by each available service providing device includes:
for a first type of service, generating at least one analog service acquisition request, where each analog service acquisition request carries data to be analyzed of the first type, the first type is any service type supported by a first service providing device, and the first service providing device is any available service providing device;
sending the at least one simulated service acquisition request to the first service providing device;
receiving a simulation service acquisition response for each simulation service acquisition request;
calculating a single channel time unit analysis capability index of the first type of service based on a transmission time of the at least one simulated service acquisition request and a reception time of the received simulated service acquisition response.
Optionally, the method further includes:
after receiving a service acquisition request, determining a target type of a service requested to be provided by the service acquisition request;
acquiring a load pressure value of a target service in each target service providing device, wherein the load pressure value is used for reflecting the load pressure of the corresponding service providing device for currently providing the target service, the target service providing device is used for providing the target service, and the target service is the service of the target type;
and performing service distribution of the available service providing equipment based on the capability information of the target service in each target service providing equipment and the load pressure value of the target service in each target service providing equipment.
Optionally, the performing, based on the capability information of the target service in each target service providing device and the load pressure value of the target service in each target service providing device, service distribution of the available service providing device includes:
calculating an idle analysis index of the target service in each target service providing device based on the capability information of the target service in each target service providing device and the load pressure value of the target service in each target service providing device, wherein the idle analysis index is used for reflecting the idle degree of the corresponding service providing device for providing the target service;
when a target service providing device with an idle analysis index larger than a designated index threshold exists, sending the service acquisition request to the target service providing device with the maximum idle analysis index so as to provide a target service by the target service providing device with the maximum idle analysis index;
when there is no target service providing device having an idle analysis index greater than a specified index threshold, replying a service failure response to the application device,
or, a waiting mechanism is established until a target service providing device with the idle analysis index larger than a designated index threshold exists, the service acquisition request is sent to the target service providing device with the maximum idle analysis index,
or establishing a waiting mechanism until the waiting time is out, and replying a service failure response to the application equipment.
Optionally, the sending a service discovery request to a plurality of service providing devices includes:
for each IP address set in at least two IP address sets, acquiring a gateway address corresponding to a network segment to which the IP address set belongs, and sending a service discovery request to the gateway address, wherein the at least two IP address sets are obtained by dividing IP addresses of the plurality of IP addresses belonging to the same network segment into one IP address set when at least two IP addresses of the plurality of service providing devices belong to different network segments, and each network segment corresponds to one gateway;
when a service discovery response corresponding to the gateway address is not received, stopping sending a service discovery request to the IP address in the IP address set;
and when receiving a service discovery response corresponding to the gateway address, sending a service discovery request to the IP address in the IP address set.
Optionally, the method further includes:
detecting whether each recorded service providing device reaches a logout condition or not through a heartbeat mechanism;
and when detecting that any service providing equipment reaches the logout condition, logging out any service providing equipment.
Optionally, the method is applied to a service management device, and the method further includes:
and allocating a dynamic security code for each application platform registered on the service management device, wherein the dynamic security code is used for generating an encryption token based on an agreed encryption algorithm, the dynamic security code and a timestamp when the application device under the application platform communicates with the service management device.
In a second aspect, there is provided a service management apparatus, the apparatus comprising:
a sending module, configured to send a service discovery request to a plurality of service providing devices, where the service discovery request is used to request a service providing device with a service providing capability to provide service information, where the service information includes types of services provided and access addresses corresponding to each type of service;
a receiving module, configured to receive a service discovery response for the service discovery request, where the service discovery response includes service information;
and the recording module is used for recording the service providing equipment from which each received service discovery response originates and the carried service information.
Optionally, the apparatus further comprises:
the system comprises a capability acquisition module, a capability acquisition module and a service recording module, wherein the capability acquisition module is used for acquiring capability information of each type of service provided by each available service providing device, the capability information is used for reflecting the service capability of the corresponding service, and the available service providing device is a recorded service providing device.
Optionally, the capability information includes at least one of an analysis channel number, an algorithm library capability index, and a single-channel unit time analysis capability index;
for any type of service provided by the available service providing device, the single-channel analysis capability per unit time index is a data amount that a target analysis channel can analyze in a unit time length, wherein the target analysis channel is an analysis channel for analyzing data corresponding to the service of any type.
Optionally, the capability information includes a single-channel unit time analysis capability index, and the capability obtaining module is configured to:
for a first type of service, generating at least one analog service acquisition request, where each analog service acquisition request carries data to be analyzed of the first type, the first type is any service type supported by a first service providing device, and the first service providing device is any available service providing device;
sending the at least one simulated service acquisition request to the first service providing device;
receiving a simulation service acquisition response for each simulation service acquisition request;
calculating a single channel time unit analysis capability index of the first type of service based on a transmission time of the at least one simulated service acquisition request and a reception time of the received simulated service acquisition response.
Optionally, the apparatus further comprises:
the device comprises a determining module, a judging module and a judging module, wherein the determining module is used for determining the target type of the service requested to be provided by the service obtaining request after receiving the service obtaining request;
a pressure value obtaining module, configured to obtain a load pressure value of a target service in each target service providing device, where the load pressure value is used to reflect a load pressure of a corresponding service providing device currently providing the target service, the target service providing device is used to provide the target service, and the target service is a service of the target type;
a distribution module, configured to perform service distribution of the available service providing devices based on capability information of the target service in each target service providing device and a load pressure value of the target service in each target service providing device.
Optionally, the distribution module is configured to:
calculating an idle analysis index of the target service in each target service providing device based on the capability information of the target service in each target service providing device and the load pressure value of the target service in each target service providing device, wherein the idle analysis index is used for reflecting the idle degree of the corresponding service providing device for providing the target service;
when a target service providing device with an idle analysis index larger than a designated index threshold exists, sending the service acquisition request to the target service providing device with the maximum idle analysis index so as to provide a target service by the target service providing device with the maximum idle analysis index;
when there is no target service providing device having an idle analysis index greater than a specified index threshold, replying a service failure response to the application device,
or, a waiting mechanism is established until a target service providing device with the idle analysis index larger than a designated index threshold exists, the service acquisition request is sent to the target service providing device with the maximum idle analysis index,
or establishing a waiting mechanism until the waiting time is out, and replying a service failure response to the application equipment.
Optionally, the sending module is configured to:
for each IP address set in at least two IP address sets, acquiring a gateway address corresponding to a network segment to which the IP address set belongs, and sending a service discovery request to the gateway address, wherein the at least two IP address sets are obtained by dividing IP addresses of the plurality of IP addresses belonging to the same network segment into one IP address set when at least two IP addresses of the plurality of service providing devices belong to different network segments, and each network segment corresponds to one gateway;
when a service discovery response corresponding to the gateway address is not received, stopping sending a service discovery request to the IP address in the IP address set;
and when receiving a service discovery response corresponding to the gateway address, sending a service discovery request to the IP address in the IP address set.
Optionally, the apparatus further comprises:
the detection module is used for detecting whether each recorded service providing device reaches a logout condition through a heartbeat mechanism;
and the logout module is used for logging out any service providing equipment when detecting that the service providing equipment reaches the logout condition.
Optionally, the apparatus is applied to a service management device, and the apparatus further includes:
and the distribution module is used for distributing a dynamic security code for each application platform registered on the service management equipment, wherein the dynamic security code is used for generating an encryption token based on an agreed encryption algorithm, the dynamic security code and a timestamp when the application equipment under the application platform communicates with the service management equipment.
In a third aspect, a service providing system is provided, including:
the service management device is configured to manage the at least one service providing device, and the service management device includes any one of the service management apparatuses in the first aspect.
A fourth aspect provides a service providing system comprising:
the service distribution device is used for distributing the service to the service management device;
the service management device is configured to: sending a service discovery request to a plurality of service providing devices, wherein the service discovery request is used for requesting the service providing devices with service providing capability to provide service information, and the service information comprises types of the provided services and access addresses corresponding to each type of service; receiving a service discovery response to the service discovery request, the service discovery response including service information; recording the service providing equipment from which each received service discovery response originates and the carried service information;
the service distribution device is used for distributing the service recorded by the service management device to the service providing device.
In a fifth aspect, there is provided a computer device comprising a processor and a memory,
wherein, the memory is used for storing computer programs;
the processor is configured to execute the program stored in the memory, and implement the service management method according to any one of the first aspect.
A sixth aspect provides a storage medium, wherein the storage medium stores therein a computer program, and the computer program, when executed by a processor, implements the service management method according to any one of the first aspects.
The technical scheme provided by the invention has the beneficial effects that:
in the service management method provided by the embodiment of the invention, the service management device automatically sends the service discovery request to the service providing device in the service providing system and records the service information of the service providing device sending the service discovery response, so that the service providing device recording the service information can provide services for the application device, the service management device automatically discovers the service providing device, an application platform is not required to inquire an IP address, and the discovery efficiency of the service providing device is improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the invention, as claimed.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic diagram of an implementation environment of a service providing system according to an embodiment of the present invention.
Fig. 2 is a schematic diagram of an implementation environment of another service providing system according to an embodiment of the present invention.
Fig. 3 is a schematic diagram of an implementation environment of still another service providing system according to an embodiment of the present invention.
Fig. 4 is a flowchart of a service management method according to an embodiment of the present invention.
Fig. 5 is a flowchart of another service management method according to an embodiment of the present invention.
Fig. 6 is a flowchart of a method for obtaining information of service capability parameters according to an embodiment of the present invention.
Fig. 7 is a schematic structural diagram of a service management apparatus according to an embodiment of the present invention.
Fig. 8 is a schematic structural diagram of another service management apparatus according to an embodiment of the present invention.
Fig. 9 is a schematic structural diagram of another service management apparatus according to an embodiment of the present invention.
Fig. 10 is a schematic structural diagram of a service management apparatus according to another embodiment of the present invention.
Fig. 11 is a schematic structural diagram of another service management apparatus according to another embodiment of the present invention.
Fig. 12 is a schematic structural diagram of a server according to an embodiment of the present invention.
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description, serve to explain the principles of the invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention will be described in further detail with reference to the accompanying drawings. All other embodiments, which can be obtained by a person skilled in the art without making any creative effort based on the embodiments in the present invention, belong to the protection scope of the present invention.
Referring to fig. 1, a schematic diagram of an implementation environment of a service providing system according to a service management method provided by various embodiments of the present invention is shown, and referring to fig. 1, the implementation environment includes: at least one service providing apparatus 11 and a service management apparatus 12.
In the embodiment of the present invention, the service management device 12 is configured to perform service management, for example, perform a service discovery process to record service information of the discovered service providing device 11.
In an alternative, as shown in fig. 1, the service management apparatus 12 may also execute a service distribution process of the service providing apparatus 11 recorded by the service management apparatus 12.
In another alternative, as shown in fig. 2, the implementation environment further includes: a service distribution device 13, the service distribution device 13 establishing a communication connection of a wired network or a wireless network with the service management device 12 for executing a service distribution process of the service providing device 11 recorded by the service management device 12.
Further, as shown in fig. 3, the implementation environment further includes: the application device 14 is a device under the application platform, and the device is a device where the client is located (i.e. a device where the client is installed) or a server. The application device 14 can provide a service for the application device 14 by accessing the service management device 12, by the service providing device recorded by the service management device 12. Fig. 3 illustrates an example in which the service management apparatus 12 executes the service distribution process, but the present invention is not limited thereto.
Taking fig. 3 as an example, the application device 14 may send data to be analyzed to the service management device 12 through the service acquisition request, the service management device 12 performs service distribution based on the service acquisition request (that is, sends the service acquisition request to the corresponding service providing device), each service providing device 11 may perform intelligent analysis on the data carried in the received service acquisition request, that is, provide an intelligent analysis service for the application device 14, and after completing the intelligent analysis, the service providing device 11 returns a service acquisition response carrying an analysis result to the corresponding application device 14 through the service management device 12.
Each service providing device 11 may provide at least one type of service, and the service providing device has a plurality of ports, each port may provide one type of service correspondingly, each port may also provide a plurality of types of services correspondingly, or a plurality of ports may provide one type of service, which is not limited in this embodiment of the present invention. Accordingly, the service management apparatus 12 or the service distribution apparatus 13 can manage distribution of at least one type of service. The at least one type may include: at least one of a data target tracking type, a data modeling type, and a data attribute extraction type. The data target tracking type service refers to a service for extracting target data from data; a data modeling type service refers to a service by modeling a specific object in data; the data attribute extraction type service refers to a service that extracts data having a specified attribute from data.
For example, when the service providing system is used to provide an intelligent image analysis service, the at least one type may include: at least one of an image target tracking type, an image modeling type, and an image attribute extraction type. When the service providing system is used to provide an intelligent voice analysis service, the at least one type may include: at least one of a voice target tracking type, a voice data modeling type, and a voice attribute extraction type.
The at least one service providing device 11, the service management device 12, and the application device 14 are located in the same network. The Network may be a Local Area Network (LAN) or a Wide Area Network (WAN), where the Local Area Network may be a wireless Local Area Network or a wired Local Area Network. A local area network refers to a group of computers interconnected by a plurality of computers in a certain area. In the embodiment of the present invention, the certain area refers to the same office, the same building, the same company, the same school, the same city, the same province, the same country, or the like. A wide area network is a collection of computer networks that span a large, regional area. Often across provinces or cities, or even one country. In the embodiment of the present invention, in order to reduce the network overhead of the service management device, the at least one service providing device 11, the service management device 12, and the application device 14 are usually located in the same local area network, so that the service management device 12 can implement service discovery in a shorter time. For example, the areas corresponding to the local area networks may be the same city. When the service providing system includes the service distribution apparatus 13, the service distribution apparatus 13 is also located in the same local area network.
Wherein the application device 14 is connected to the service management device 12 through a wired network or a wireless network, and the service management device 12 is connected to the service providing device 11 through a wired network or a wireless network. When the service providing system includes the service distribution apparatus 13, the service distribution apparatus 13 is connected to the service management apparatus 12 and the service providing apparatus 11 through a wired network or a wireless network, respectively. The wired network, such as a Universal Serial Bus (USB), includes: a cellular network, a WIreless FIdelity (WIFI) network, a bluetooth network, an infrared network, or a Zigbee (Zigbee) network. For example, the cellular network may be a Long Term Evolution (LTE) network or a 5G network.
By way of example, the service providing device 11 may be a computer or a server, or a server cluster composed of several servers, or a cloud computing service center, for example, it may be a super brain NVR or facial makeup cloud analysis device, etc.; the service management device 12 may be a computer or a server, or a server cluster composed of a plurality of servers, or a cloud computing service center; the service distribution device 13 may be a computer or a server, or a server cluster composed of a plurality of servers, or a cloud computing service center; the application device 14 may be a mobile phone, a tablet computer, an intelligent application device, a multimedia device, or a streaming media device (such as a video camera), and may also be a server, or a server cluster composed of several servers.
It should be noted that the service providing systems shown in fig. 1 to fig. 3 are described by taking two service providing devices 11 as an example.
It should be further noted that the application device of the application platform may also register an application account on the service management device, the application platform after registering the application account may be used as a valid application user of the service management device, and the service acquisition request sent by the application platform may be distributed by the service management device or the service distribution device.
Referring to fig. 4, a flowchart of a service management method according to an embodiment of the present invention is shown, and this embodiment illustrates that the service management method is applied to the implementation environment shown in fig. 1, and the service management method can be executed by the service management device. Referring to fig. 4, the service management method includes:
step 201, the service management device sends a service discovery request to a plurality of service providing devices, where the service discovery request is used to request a service providing device with service providing capability to provide service information, and the service information includes types of services provided and access addresses corresponding to each type of service.
Step 202, the service management device receives a service discovery response for the service discovery request, the service discovery response including the service information.
Step 203, the service management device records the service providing device from which each received service discovery response originates and the carried service information.
The service providing device recorded by the service management device is used for providing services for the application device.
In summary, in the service management method provided in the embodiment of the present invention, the service management device automatically sends the service discovery request to the service providing device in the service providing system, and records the service information of the service providing device that sends the service discovery response, so that the service providing device that has recorded the service information can provide services for the application device, and therefore, the service management device automatically discovers the service providing device without querying an IP address by an application platform, and the discovery efficiency of the service providing device is improved.
Referring to fig. 5, a flowchart of another service management method provided by an embodiment of the invention is shown, where the service management method can be applied to any of the implementation environments shown in fig. 1 to 3. Referring to fig. 5, the service management method may be performed by the service management apparatus described above, and the method includes:
step 301, the service management device sends a service discovery request to the plurality of service providing devices, where the service discovery request is used to request the service providing device with the service providing capability to provide service information.
The service information includes types of services to be provided, and access addresses corresponding to each type of service.
For example, the access address may be a Uniform Resource Locator (URL), where the URL includes information of a port accessing a corresponding type of service, and a corresponding relationship between the type of service and each port of the service providing device may be obtained according to the URL of each type of service.
Optionally, the service management device obtains an IP address of the service providing device in the service providing system, and sends a service discovery request to the obtained IP address.
In an optional mode, the service management device stores an address list in advance, the address list records an IP address of the service providing device in the service providing system, and when the service management device performs service discovery, the service management device acquires the address list to acquire the IP address of the service providing device; in another alternative, the service management device may use a preset algorithm (e.g., a web crawler algorithm) to retrieve the IP addresses of the service providing devices in the service providing system, so as to obtain the IP addresses of the service providing devices, and establish a corresponding address list. It should be noted that the address list may also be updated and maintained by a worker, for example, adding or deleting IP addresses therein.
In an embodiment of the present invention, there may be multiple ways for the service management device to send the service discovery request to the multiple service providing devices, and in a first optional way, when the service providing system includes one service providing device, the address list records an IP address of the one service providing device, and then the service management device directly sends the service discovery request to the IP address of the one service providing device.
In a second optional manner, when the service providing system includes multiple service providing devices and multiple IP addresses of the multiple service providing devices all belong to the same network segment, the service discovery request may be directly sent to the multiple IP addresses respectively, or a gateway address corresponding to the multiple IP addresses is obtained and the service discovery request is sent to the gateway address; when the service discovery response corresponding to the gateway address is not received, determining that the gateway fails, and stopping sending service discovery requests to the plurality of IP addresses; and when receiving a service discovery response corresponding to the gateway address, determining that the gateway does not have a fault, and respectively sending service discovery requests to the IP addresses.
In a third optional manner, when the service providing system includes a plurality of service providing devices, and at least two IP addresses in a plurality of IP addresses of the plurality of service providing devices belong to different network segments, the service management device obtains at least two IP address sets. For each IP address set, acquiring a gateway address corresponding to a network segment to which the IP address set belongs, and sending a service discovery request to the gateway address; when the service discovery response corresponding to the gateway address is not received, determining that the gateway fails, and stopping sending the service discovery request to the IP address in the IP address set; and when receiving a service discovery response corresponding to the gateway address, determining that the gateway does not have a fault, and sending a service discovery request to the IP address in the IP address set.
When at least two IP addresses in a plurality of IP addresses of a plurality of service providing devices belong to different network segments, the IP addresses of the plurality of IP addresses belonging to the same network segment are divided into one IP address set, and each network segment corresponds to one gateway. The dividing action may be performed by the service management apparatus or may be performed manually. For example, the service management device divides IP addresses of which a plurality of IP addresses belong to the same network segment into one IP address set to obtain at least two IP address sets, where each network segment corresponds to one gateway.
For example, the IP addresses recorded in the address list in the service management device are 192.167.255.200, 192.167.255.254, 192.168.250.255 and 192.168.250.235, respectively, the corresponding subnet masks are 255.255.225.0, the IP address range to which these four IP addresses belong includes two network segments, 192.167.255.1-192.167.255.254 and 192.168.250.1-192.168.250.254, respectively, the network segments 192.167.255.1-192.167.255.254 correspond to the gateway 1, the gateway address thereof is 192.167.255.1, the network segments 192.168.250.1-192.168.250.254 correspond to the gateway 2, and the gateway address thereof is 192.168.250.1, wherein 192.167.255.200 and 192.167.255.254 belong to the network segments corresponding to the gateway 1, 192.168.250.255 and 192.168.235 belong to the network segments corresponding to the gateway 2.
Then, the service management device sends a service discovery request to the gateway address of the gateway 1, if a service discovery response to the service discovery request is not received, the service management device determines that the gateway 1 fails, and does not need to send the service discovery request to the IP address of the service providing device in the network segment corresponding to the gateway 1, and then sends the service discovery request to the gateway address of the gateway 2, and if a service discovery response to the service discovery request is received, continues to send the service discovery requests to the IP addresses of the service providing devices in the network segment corresponding to the gateway in sequence.
In practical implementation, each network segment corresponds to one gateway, and the gateway is used for maintaining the IP address of the corresponding network segment and executing information transceiving of each service providing device indicated by the IP address of the corresponding network segment, that is, each service providing device in the network segment managed by the gateway. When the gateway fails, all the service providing devices indicated by all the IP addresses in the network segment maintained by the gateway cannot receive and transmit information. Of course, the service providing device cannot respond to the service discovery request. Therefore, before sending the service discovery request to the service providing device, the service management device sends the service discovery request to the gateway address corresponding to the network segment to which the service management device belongs, and then determines whether to send the service discovery request to the service providing device subsequently based on whether the gateway responds to the service discovery request. Therefore, if the gateway fails, the service discovery request does not need to be sent to the service providing equipment managed by the gateway again, the service discovery efficiency is improved, and the network overhead is saved.
In the embodiment of the present invention, there may be multiple ways for the service management device to send the service discovery request to each network segment, for example, in the first way, the service management device may send the service discovery request to the network segment in sequence, that is, perform polling on the network segment. For another example, in the second mode, the service management device sends the service discovery request to a plurality of network segments simultaneously, that is, the service management device sends the service discovery request to the plurality of network segments in batches in multiple threads. In the two manners, the manner of sending the service discovery request to each network segment may refer to the third optional manner of sending the service discovery request. Of course, there may be multiple ways for the service management device to send the service discovery request, as long as it is ensured that each IP address in the address list is traversed finally, which is not limited in the embodiment of the present invention.
Further optionally, the service management device may periodically perform the above-mentioned process of sending the service discovery request, so that information of the service providing device capable of providing the service may be periodically updated; the service discovery request can also be sent when a specified trigger condition is reached, for example, the specified trigger condition is a service discovery instruction triggered by a manager, so that service discovery can be performed in time according to actual requirements. Alternatively, the service management device may be integrated with a plurality of functions, for example, an application registration function, a service registration function, and the like, in addition to the service discovery function. Assuming that the service discovery function of the service management device corresponds to the designated port, the service management device may send a service discovery request to an address indicated by each IP segment in the at least one IP segment through the designated port. The designated port may be a predefined port on the service management device, and the port may be a port that is agreed with each device in the service providing system when the service providing system is networked. The port function of the service management equipment is predefined, which is beneficial to the port standardization of the service management equipment and is convenient for the data interaction between the service management equipment and other equipment.
Step 302, the service management device receives a service discovery response for the service discovery request, where the service discovery response includes service information.
As shown in step 301, the service discovery response sent by the service providing device carries service information of the service providing device, for example, when the service providing device can provide multiple types of services, the service information may include types of services provided by the service providing device and access addresses corresponding to each type of service. When the service providing apparatus can provide a type of service, the service information may include the type of the service and an access address corresponding to the service.
For example, the service management device receives a service discovery response for the service discovery request sent by the service providing device a, where the content of the service discovery response may be "providing a face one-to-one comparison service, and a URL of the comparison service is http:// xx.xx.xx.xx/10; providing face picture quality scoring service, wherein the URL of the scoring service is http:// XX.XX.XX/11; and providing a human body attribute detection service, wherein the URL of the detection service is http:// XX.XX.XX/12."
Step 303, the service management device records the service providing device from which each received service discovery response originates and the carried service information.
When receiving a service discovery response to the service discovery request, it indicates that the communication connection establishment between the service management apparatus and the service providing apparatus that transmitted the service discovery response is successful, and service discovery is achieved. At this time, the service management device may record the service providing device from which each received service discovery response originates (for example, record identification information of the service providing device, where the identification information is used to uniquely identify the device), and the carried service information, where the recorded service providing device is used to provide a service for the application device, and the service management device may screen a corresponding target service providing device from the recorded service providing device when subsequently receiving a service acquisition request of the application device, and provide an intelligent analysis service by the target service providing device. For convenience of explanation, the service providing device recorded by the service management device will be hereinafter referred to as an available service providing device.
It should be noted that, when different service discovery request sending manners are adopted in step 301, the execution process of step 303 is also different accordingly.
Illustratively, when the request is sent in the first optional manner in step 301, the service providing system includes a service providing device, and when receiving the service discovery response sent by the service providing device, records the service providing device and the carried service information.
When step 301 sends a request in a second optional manner, when directly sending a service discovery request to each of the plurality of IP addresses, if a service discovery response sent by any service providing device is received, recording the service providing device and the carried service information; when a service discovery request is sent to a gateway address, if a service discovery response sent by the gateway address is received, it is determined that the gateway does not fail, and then service discovery requests are sent to the multiple IP addresses respectively, and if a service discovery response sent by any service providing device is received, the service providing device and carried service information are recorded.
When step 301 sends the request in a third alternative way, for each set of IP addresses, a service discovery and registration procedure is performed, which comprises: after a service discovery request is sent to a corresponding gateway address, if a service discovery response sent by the gateway address is received, it is determined that the gateway does not fail, and then when the service discovery request is sent to an IP address in an IP address set, if a service discovery response sent by any service providing device is received, the service providing device and the carried service information are recorded, and it is determined that the service providing device can provide services. And if the service discovery response sent by a certain service providing device is not received, determining that the service providing device cannot provide the service. At this time, the next IP address set of the IP address set is acquired as a new IP address set, and the above-described service discovery and registration process is performed again. If the service discovery response sent by the gateway address is not received and the gateway is determined to have a fault, the service discovery and registration process aiming at the next IP address set can be continuously executed until the service discovery and registration process is completed after the IP address set is completely executed.
Optionally, the service management device may maintain an intelligent service list for all available service providing devices, where the intelligent service list is used to record identification information, such as an IP address, of each available service providing device, so that the service management device may detect, through a heartbeat mechanism, whether each available service providing device reaches a logout condition.
The intelligent service list may further record service information corresponding to each identification information (such as an IP address), so that the service management device may determine service information of each available service providing device based on the intelligent service list, for example, determine a service type that it may provide.
Step 304, the service management device obtains capability information of each type of service provided by each available service providing device.
The capability information is used to reflect service capabilities of the corresponding service. The capability information may include information of at least one service capability parameter. Optionally, the at least one service capability parameter includes at least one of an analysis channel number, an algorithm library capability index, and a single channel unit time analysis capability index. The available service providing apparatus is a recorded service providing apparatus.
For each type of service provided by each available service providing device, the number of analysis channels refers to the number of analysis channels providing the type of service, the analysis channels refer to channels used by the service providing device for performing the type of service, and each service providing device may set at least one analysis channel for each type of service to be provided by the service providing device. For each type of service, when one service providing device sets a plurality of analysis channels, the plurality of analysis channels can provide the service in parallel, that is, the data carried in a plurality of service acquisition requests of the same type of service are analyzed in parallel; the algorithm library is used to provide a number of functions for intelligent analysis services, such as lookup functions, ranking functions, counting functions, or manipulation functions. For a type of service, the algorithm library capability index is used for expressing the capability of the algorithm library providing the type of service to process data in a unit time length; for any type of M service provided by the available service providing device, the single-channel analysis capability per unit time index is the amount of data that can be analyzed by the target analysis channel in a unit time duration, and the amount of data can be reflected by the number of service acquisition requests received by the analysis channel. The target analysis channel is an analysis channel for analyzing data corresponding to any type of M service.
In the embodiment of the present invention, for different service capability parameters, the corresponding capability information is obtained in different manners, and the following conditions of the service capability parameters are taken as examples in the embodiment of the present invention for explanation:
in a first case, when at least one service capability parameter includes at least one of the number of analysis channels and the algorithm library capability index, for each registered service providing device, the service management device may send a service capability parameter obtaining request to the available service providing device, and after receiving the service capability parameter obtaining request, the available service providing device generates a service capability parameter response based on the service capability parameter obtaining request, where the service capability parameter response includes the at least one service capability parameter of all types of services provided in the available service providing device. Optionally, in step 303, the service information may further include at least one of an analysis channel number and an algorithm library capability index of all types of services provided in the available service providing device. Therefore, the service management equipment does not need to independently acquire the service capability parameters from the available service providing equipment, the occupation of network resources in the service providing system is reduced, and the network overhead is saved.
In a second case, when at least one service capability parameter includes a single channel time analysis capability index, as shown in fig. 6, in an embodiment of the present invention, it is assumed that a single channel time analysis capability index of a first type of service needs to be acquired, where the first type is any service type supported by a first service providing device, and the first service providing device is any device in all available service providing devices, an information acquisition process of the service capability parameter may include:
step 3041, for the first type of service, the service management device generates at least one simulated service acquisition request, where each simulated service acquisition request carries data to be analyzed of the first type.
For example, the service management device may assume that there is a first type of intelligent analysis that the application device needs to perform on data, that is, a first type of service is needed, the service management device generates at least one simulated service acquisition request, generally, each simulated service acquisition request carries one piece of data to be analyzed, the piece of data to be analyzed includes a specified number of parameters to be analyzed, the specified number of parameters to be analyzed is data that is obtained by the service management device in advance, and the data to be analyzed may be configured in the service management device manually or by another device, the specified number is related to a service type of the first type of service, and generally, for the same service type, the number of parameters to be analyzed included in the simulated service acquisition request is the same. For example, when the first type of service is face 1V1 comparison, for the first type of service, the service management device generates at least one simulation service acquisition request, where the simulation service acquisition request includes two pieces of face photograph information to be compared, that is, two parameters to be analyzed.
Step 3042, the service management apparatus sends at least one simulated service acquisition request to the first service providing apparatus.
In the embodiment of the present invention, there may be multiple ways for the service management device to send the analog service acquisition request, for example, in the first way, the service management device may send the analog service acquisition request to each available service providing device in sequence, that is, perform polling on the available service providing devices, and for example, in the second way, the service management device sends the analog service acquisition request to multiple available service providing devices of all the available service providing devices at the same time, that is, perform broadcast or multicast of the analog service acquisition request. In a third method, the service management device firstly filters all available service providing devices to obtain a service providing device capable of providing the first type of service, and then sends the analog service acquisition request to the determined service providing device in a polling or multicast or broadcast manner, where the sending process may refer to the first method or the second method.
Of course, there may be various ways for the service management device to send the simulated service acquisition request, as long as it is ensured that the simulated service acquisition request finally traverses all available service providing devices capable of providing the first type of service.
Step 3043, the service providing apparatus receives the simulated service acquisition response for each simulated service acquisition request.
With reference to the three manners in step 3042, since each analog service acquisition request carries the data to be analyzed of the first type, when any available service providing device can provide the service of the first type, the analog service acquisition request can be acquired, the data in the analog service acquisition request can be analyzed, and then an analog service acquisition response is sent after the analysis is completed.
Step 3044, the service providing device calculates a single channel unit time analysis capability index of the first type of service based on the sending time of the at least one analog service acquisition request and the receiving time of the received analog service acquisition response.
For example, the service management device determines, based on the sending time of the at least one simulated service acquisition request and the receiving time of the received simulated service acquisition response, a total analysis duration of the data in the at least one simulated service acquisition request by the corresponding service providing device (i.e., the service providing device that sent the simulated service acquisition response); then, the service management device may divide the number of the analog service acquisition requests by the total analysis time length to obtain the number of the analog service acquisition requests processed by the service providing device for the first type of service within a unit time length; and dividing the number of the analog service acquisition requests by the number of the pre-acquired first type service analysis channels to obtain a single-channel unit time analysis capability index of the first type service.
For example, assuming that the unit time is 1 second, the service management apparatus obtains a single-channel analysis capability index per unit time for the first type of service of one available service providing apparatus a, and the number of analysis channels of the first type of service is 3.
The method comprises the steps that 15 simulation service acquisition requests are generated by service management equipment and sent to available service providing equipment A, the equipment A analyzes data in the 15 simulation service acquisition requests and returns corresponding simulation service acquisition responses after analysis, within 5 seconds after the service management equipment sends the 15 simulation service acquisition requests, the equipment A sends the 15 simulation service acquisition responses to the service management equipment, and then the single-channel unit time analysis capability index of the equipment A is 15/5/3=1 second.
In practical applications, the actions in the first case and the actions in the second case may be executed separately or in combination according to the content of the capability information that needs to be acquired actually, which is not limited in this embodiment of the present invention.
In practical applications, due to aging of the service providing device during use and other reasons, the single-channel response may change over time, and therefore, the service management device may periodically recalculate the single-channel time analysis capability index of each type of service provided by each available service providing device, so as to ensure the accuracy of the single-channel time analysis capability index obtained by the service management device. The period of the recalculation may be 3 days or 30 days, and the period may be determined according to the provision situation of the specific service in the specific service providing device, which is not limited in the embodiment of the present invention.
Step 305, after receiving the service acquisition request, the service management device determines a target type of a service requested to be provided by the service acquisition request.
In the embodiment of the present invention, the target type is a service type requested to be provided by the service acquisition request, and may be, for example, an image target tracking type, an image modeling type, or an image attribute extraction type.
Optionally, the service acquisition request may carry an identifier of the target type, and the service management device may determine the target type of the service required by the data to be analyzed based on the identifier.
For example, the service management device receives a service acquisition request sent by the application device, where the service acquisition request carries an identifier 00, and the service management device generally queries a pre-configured identifier-type correspondence relationship, and determines that a target type corresponding to the identifier 00 is an image modeling type.
Optionally, the service acquisition request usually also carries data to be analyzed. Therefore, the number of transmitted requests can be reduced, and the network overhead is saved.
Step 306, the service management device obtains a load pressure value of the target service in each target service providing device.
The target service providing device is used for providing a target service, and the target service is a target type service. The service management device may perform screening in the available service providing device according to the determined target type, determine, when a device for providing the target service exists in the available service providing device, the device as the target service providing device, reply an application device service failure response when no service providing device for providing the target service exists in the available service providing device, where the service failure response may carry indication information, where the indication information is used to indicate that the service providing device providing the target service is not found.
For example, assume that based on the target type: the image modeling type is screened by the service management device in the available service providing device based on the target type, and the service providing device capable of providing the image modeling type service is obtained by the following steps: device B, device C, and device D, then the target service device is determined to be: device B, device C, and device D.
In the embodiment of the present invention, for any service providing device, the load pressure value may be reflected based on a data volume currently processed by the service providing device, where the currently processed data volume is positively correlated with a number of service acquisition requests currently processed by the service providing device, that is, the greater the number of service acquisition requests currently processed by the service providing device, the greater the currently processed data volume is, the greater the load pressure value of the service providing device is.
In the embodiment of the present invention, the service management device may update the load pressure value in real time according to the receiving and sending conditions of the service acquisition request, and after receiving the service acquisition request sent by the application device, the service management device may obtain the current load pressure value of the target service in each target service providing device.
For example, the service management device may set a load pressure value P =0 of the target service in each target service providing device at an initialization time (the initialization time may be when the service management device is powered on, or when the staff triggers an initialization instruction), and then perform an update process of the load pressure value at least once, where, assuming that the first target service device is any one of all the obtained target service providing devices, the update process includes, for the first target service device:
the method comprises the steps that after a service management device sends a specified service acquisition request to a first target service providing device each time, a load pressure value P is updated, and the updated load pressure value P = P +1; the specified service acquisition request carries target type data to be analyzed. The service management device updates the load pressure value P after receiving a service acquisition response to the specified service acquisition request returned by the first target service providing device each time, so that the updated load pressure value P = P-1.
For example, it is assumed that the first target service providing apparatus is any one of apparatus B, apparatus C, and apparatus D. Before the service management device acquires the load pressure value of the target service in each target service providing device, the service management device sets the load pressure value P respectively B 、P C And P D Are all 0, wherein, P B 、P C And P D The load pressure value of the target service in the device B, the load pressure value of the target service in the device C, and the load pressure value of the target service in the device D, respectively.
It is assumed that the first target service providing apparatus is apparatus B. The service management device updates the load pressure value P after sending a specified service acquisition request to the device B for the first time B So that the updated load pressure value P B =P B +1=0+1=1; at one kind of falseIn the setting, after the service management device sends the specified service acquisition request to the device B for the first time, the specified service acquisition request is not sent again, and after the service management device receives the service acquisition response returned by the device B for the first time, the load pressure value P is updated B So that the updated load pressure value P B =P B -1=0; in another assumption, the service management device updates the load pressure value P after sending the specified service acquisition request to the device B for the second time after sending the specified service acquisition request to the device B for the first time and before not receiving the service acquisition response yet B So that the updated load pressure value P B =P B +1=1+1=2。
Step 307, the service management device performs service distribution of the available service providing devices based on the capability information of the target service in each target service providing device and the load pressure value of the target service in each target service providing device.
The service management device dynamically distributes the services of the available service providing devices based on the capability information of the target service in each target service providing device and the load pressure value of the target service in each target service providing device, so that the dynamic adjustment of the service distribution strategy is realized, and the load balance of each target service providing device can be ensured.
Optionally, step 307 may include:
step A, calculating an idle analysis index of the target service in each target service providing device based on the capability information of the target service in each target service providing device and the load pressure value of the target service in each target service providing device.
The idle analysis index is used for reflecting the idle degree of the corresponding service providing equipment for providing the target service. The idle analysis index is positively correlated with the idle degree, that is, the larger the idle analysis index is, the higher the idle degree of the resource used by the service providing device to provide the target type service is, and more resources are available to provide the target service, and the smaller the idle analysis index is, the lower the idle degree of the resource used by the service providing device to provide the target service is.
For example, the idle analysis index is calculated by:
calculating an idle analysis index L of a target service in a first target service providing device based on an idle analysis index calculation formula, wherein the idle analysis index calculation formula of the target service for the first target service providing device is assumed to be any one of all target service providing devices, and the first target service providing device is assumed to be any one of all target service providing devices:
L=M-P×X;
wherein M is a service index of the target service in the first target service providing device, P is a load pressure value of the target service in the first target service providing device, and X is a load pressure weight of the target service in the first target service providing device.
For example, assuming that the service index of the target service in the first target service providing device is 10, i.e., M =10, the load pressure value of the target service in the first target service providing device is 3, i.e., P =3, and the load pressure weight of the target service in the first target service providing device is 0.5, i.e., X =0.5, the idle analysis index L =10-3 × 0.5=8.5.
The service index of the target service in each target service providing device is used for reflecting the service capability of the target service, and is obtained according to the capability information of the target service of each target service providing device.
In an alternative implementation, after the target service is determined, the service index of the target service in each target service providing device may be calculated based on a service index calculation formula.
In another alternative implementation, after the capability information of each type of service provided by each available service providing device is obtained through the foregoing step 304, the service index of each service provided by each available service providing device may be calculated based on a service index calculation formula, and in step 307, the service index of the target service in each target service providing device, which is calculated in advance, is directly obtained. Therefore, the idle analysis index can be calculated quickly, the calculation time delay is reduced, and the effectiveness of subsequent service distribution is ensured.
For example, for any type of service provided by any available service providing device, the service index of the service providing device is a weighted value of the information of the at least one service capability parameter of the any service. Then, for the ith type of service of any service providing device, the service index calculation formula is:
Figure BDA0002112843930000221
wherein M is i Service index, K, for the ith type of service ij Providing information of a jth service capability parameter of an ith type of service of the device for the any service. A. The ij J is more than or equal to 1 and less than or equal to J, I is more than or equal to 1 and less than or equal to I, and I is the number of types of services which can be provided in any service providing equipment.
For example, when a service index is performed for each type of service provided by the ith available service providing apparatus, it is assumed that the capability information of each type of service provided by the ith available service providing apparatus includes: analyzing information of channel number, algorithm library capability index and single channel unit time analysis capability index, and calculating service index M of the ith type of service according to the information of the three service capability parameters i Then the service index M i Satisfies the following conditions:
M i =K i1 ×A i1 +K i2 ×A i2 +K i3 ×A i3
wherein, K i1 For analyzing the number of channels, K i2 Is an algorithm library capability index, K i3 Is a single-channel unit time analysis capability index. A. The i1 、A i2 And A i3 And the weights are respectively corresponding to the analysis channel number, the algorithm library capability index and the single-channel unit time analysis capability index.
Since the service index of each type of service of each available service providing device is calculated according to the weight of at least one service capability parameter of the service providing device, the service index can effectively characterize the service capability of the type of service.
Further, the idle analysis index is determined according to the service index, the load pressure value and the load pressure weight of the target service in the target service providing device, and since the idle degree of each target service providing device is not only related to the currently processed data amount but also related to the self service capability of each target service, in the embodiment of the present invention, the idle analysis index is associated with the self service capability factor of each target service and also associated with the load pressure factor of each target service, the idle analysis index effectively embodies the idle degree of each target service.
And step B, when the target service providing equipment with the idle analysis index larger than the designated index threshold exists, sending a service acquisition request to the target service providing equipment with the maximum idle analysis index so as to provide the target service by the target service providing equipment with the maximum idle analysis index.
Optionally, the service management device is provided with a specified index threshold, and the specified index threshold may be dynamically determined based on the data volume of the data to be analyzed, or may be a preset threshold.
When the target service providing equipment with the idle analysis index of the target service larger than the designated index threshold value exists, the service management equipment compares the idle analysis indexes of the target services in all the target service providing equipment, and sends a service acquisition request to the target service providing equipment with the maximum idle analysis index so as to provide the target service by the target service providing equipment with the maximum idle analysis index.
For example, assume that the target service providing device is: device B and device C, idle analysis index L for target service in device B and device C B And L C And L is B >L C While assuming that the specified indication threshold is 2.
Idle analysis index L of target service in device B and device C B And L C When at least one is present, greater than 2, e.g.L B And L C Are both greater than 2 and according to L B >L C The service management device sends a service acquisition request to the device B to provide the target service by the device B with the largest idle analysis index.
And step C, when the target service providing equipment with the idle analysis index larger than the designated index threshold does not exist, the service management equipment processes the service acquisition request sent by the application equipment.
And when the idle analysis index of the target service in each target service providing device is smaller than the designated index threshold value, processing the service acquisition request sent by the application device, thereby ensuring the stability of the target service provided by each target service providing device. The processing mode can be various, and the embodiment of the present invention is described by taking the following three modes as examples.
In the first way, when there is no target service providing device having an idle analysis index greater than a specified index threshold, the service management device replies a service failure response to the application device.
And when the idle analysis index of the target service in each target service providing device is less than the designated index threshold value, the service management device replies a service failure response to the application device. For example, the service failure response may be service failure information carrying a reason of the service failure, for example, the service failure response includes information that the service providing device is busy, the application device may present the service failure information in the form of text or voice on the input/output interface when receiving the service failure response, for example, the input/output interface is a display screen, the application device pops up a window in the display interface of the display screen, and the service failure information is presented in the form of text in the window, for example, the text is "the service providing device is busy, please try again later |! ".
In a second mode, when there is no target service providing device with an idle analysis index greater than a specified index threshold, the service management device establishes a waiting mechanism until there is a target service providing device with an idle analysis index greater than a specified index threshold, and sends the service acquisition request to the target service providing device with the maximum idle analysis index.
When the idle analysis index of the target service in each target service providing device is smaller than the designated index threshold, the service management device establishes a waiting mechanism to avoid affecting the target service being executed, and the service management device needs to wait for the increase of the idle analysis index of the target service in the first target service providing device, that is, for the reduction of the load pressure value of the target service in the first target service providing device, until the idle analysis index of the target service in the first target service providing device is larger than the designated index threshold, send a service acquisition request to the first target service providing device, so that the target service providing device with the largest idle analysis index provides the target service.
In a third mode, when the target service providing device with the idle analysis index larger than the designated index threshold value does not exist, the service management device establishes a waiting mechanism until the waiting time is out, and replies a service failure response to the application device.
When the idle analysis index of the target service in each target service providing device is smaller than the specified index threshold, the service management device establishes a waiting mechanism until the waiting time is out, and replies a service failure response to the application device, where the service failure response may be the same as the service failure response in the first manner, and details thereof are not repeated in the embodiment of the present invention.
When the target service providing equipment with the idle analysis index larger than the designated index threshold value does not exist, the current communication concurrent pressure exceeds the service capacity range.
It should be noted that the service management device may further send the capability information and the access address of the target service in each target service providing device to the application device, the application device presents the capability information and the access address to the user of the device, the user selects the target service that the user wants to access, the application device directly sends the service acquisition request carrying the data to be analyzed to the access address of the selected target service, and the corresponding target service device provides the target service.
Step 308, the service management device detects whether each available service providing device reaches the logout condition through the heartbeat mechanism, and when any service providing device reaches the logout condition, the service management device logs out any service providing device.
For each service providing apparatus, the logout condition may be that the number of times of heartbeat communication disconnection with the service managing apparatus is greater than a specified disconnection number threshold.
Illustratively, for each service providing device, the service management device configures an anomaly indicator W =0 after the service providing device is registered, and in a subsequent process, a heartbeat detection process is executed at a specified time interval, where the heartbeat detection process includes:
sending a heartbeat signal to the service providing equipment once, if a heartbeat response returned by the service providing equipment for the heartbeat signal is received, determining that the current heartbeat communication connection is normal, if a heartbeat response returned by the service providing equipment for the heartbeat signal is not received, determining that the current heartbeat communication connection is abnormal (namely the current heartbeat communication connection is disconnected), and updating an abnormal indicator, so that the updated abnormal indicator W = W +1.
After the heartbeat detection process is executed every time, the current abnormal indicator W can be obtained, whether the current abnormal indicator W is larger than a threshold value of the specified disconnection times or not is judged, and when the current abnormal indicator W is larger than the threshold value of the specified disconnection times, the service providing equipment is determined to meet the logout condition; and when the current abnormal indicator W is not greater than the threshold value of the specified disconnection times, determining that the service providing equipment does not meet the logout condition, and executing the heartbeat detection process again until the current abnormal indicator W is greater than the threshold value of the specified disconnection times.
It should be noted that, for all available service providing devices, the service management device may sequentially execute the heartbeat detection process once for all the available service providing devices at intervals of a specified duration; alternatively, the service management device may specify a duration at intervals, and execute the heartbeat detection process once for each available service providing device, which is not described in detail in this embodiment of the present invention.
Step 309, the service management device allocates a dynamic security code for each application platform registered on the service management device, where the dynamic security code is used for generating an encryption token based on an agreed encryption algorithm, the dynamic security code, and a timestamp when the application device under the application platform communicates with the service management device.
The method comprises the steps that a service management device distributes dynamic security codes to application accounts of each registered application platform (the registered application accounts are legal accounts), the application devices under each application platform initiate service obtaining requests to the service management device, the service obtaining requests comprise encrypted tokens, the encrypted tokens are used for authority verification of the application accounts of the application platforms by the service management device, after receiving the service obtaining requests, the service management device can conduct authority verification on the application accounts, whether the authority verification passes or not is judged, if the authority verification passes, the service management device conducts service obtaining request distribution to a service providing device, and if the authority verification does not pass, the service management device returns failed responses to the application devices under the application platforms. For example, the fail response may carry fail information (also referred to as error information) that may indicate a reason for the failed permission check.
Optionally, after receiving the failure response, the application device may present the failure information in the input/output interface in a text or voice form, for example, the input/output interface is a display screen, the application device pops up a window in the display interface of the display screen, and the failure information is presented in text in the window, for example, the text content is "you are not a registered application user", or "please register an application account", or "the service acquisition request is overtime".
Assuming that the first application device is an application device under a first application platform, the first application account is an application account registered by the first application platform, the service management device decrypts an encrypted token included in a service acquisition request sent by the first application device to obtain a decrypted token, wherein the decrypted token includes a dynamic security code and a timestamp, and verifies the content of the decrypted token, thereby performing permission verification on the first application account. In the embodiment of the present invention, the encrypted token is generated based on an agreed encryption algorithm, a dynamic security code, and a timestamp, where the timestamp is time information of a service acquisition request initiated by an application device. Accordingly, the process of verifying the content of the decrypted token, i.e. the process of verifying the rights, may include the following two steps:
the first step, whether the first application account is a registered application account is checked based on the dynamic security code.
The service management device compares the dynamic security code in the decryption token with the dynamic security code sent by the service management device to the first application platform, if the two are the same, the first application account is a registered application account, namely a legal application account, and if the two are different, the service management device judges that the permission verification is not passed, and the first application account is an illegal application account.
And a second step of checking whether the service acquisition request sent by the first application equipment is valid in time or not based on the timestamp.
The service management device is provided with an effective time threshold value used for judging whether the service acquisition request sent by each application device is effective in time. The service management device may determine a time difference between a time corresponding to the timestamp carried in the decryption token and a time of the service acquisition request received by the service management device, determine whether the time difference is greater than an effective time threshold, and if the time difference is greater than the effective time threshold, the service management device determines that the service acquisition request is invalid in time and determines that the permission check fails; if the time difference is smaller than the valid time threshold, the service management device determines that the service acquisition request is valid in time.
It should be noted that, in the embodiment of the present invention, the execution order of the two steps is not limited, that is, the service management device may first check the valid application account, and then check the validity of the service acquisition request in time; or, the service management device may check the validity of the service acquisition request in time, and then check the valid application account; of course, the above two steps may also be performed in parallel.
Because the encrypted token is generated based on the dynamic security code and the timestamp, the encrypted token can not only ensure the validity of the application platform initiating the service acquisition request, but also verify the validity of the service acquisition request in time through the timestamp in the encrypted token.
In practical application, the service management device performs the permission verification on the first application account, may simultaneously verify the two steps, may only verify any one of the steps, and may change the contents of the encrypted token according to the situation, thereby changing the contents of the permission verification. The content of the right check may be changed according to specific situations, which is not limited in the embodiment of the present invention.
It should be noted that, the foregoing step 307 is exemplified by the implementation environment of fig. 1 or fig. 3, and it is assumed that the service management device performs service distribution, as described above, when the service providing system is the service providing system shown in fig. 2, the foregoing service distribution action may also be performed by the service distribution device, and then the foregoing step 307 may be replaced by performing, by the service distribution device, service distribution of the available service providing devices based on the capability information of the target service in each target service providing device and the load pressure value of the target service in each target service providing device. Still alternatively, step 307 may be executed by the service management device and the service distribution device cooperatively, for example, the idle analysis index in the foregoing step a is executed by the service management device, and the remaining steps B to C are executed by the service distribution device.
In the related art, the service providing device corresponding to the IP address obtained by the application platform through self-query may not provide services at present due to a failure or the like, and the IP address is an invalid or wrong IP address at this time, or although the service providing device can provide services, the IP address is changed, the application platform cannot query the service providing device based on the fixed IP address, and the discovery efficiency of the service providing device is low.
In the service management method provided by the embodiment of the invention, the service management device automatically sends the service discovery request to the service providing device in the service providing system and records the service information of the service providing device sending the service discovery response, so that the service providing device recording the service information can provide services for the application device, the service management device automatically discovers the service providing device without inquiring an IP address by an application platform, and can discover the service providing device in time whether the service providing device updates the IP address or not, thereby improving the discovery efficiency of the service providing device.
Furthermore, the service management device distributes a dynamic security code for each application platform, and the dynamic security code is used for generating an encrypted token so as to verify the registration state of the application platforms, thereby ensuring that a calling party of the service management device is a legal application user, and ensuring the communication security of the service management device.
And because the service index can effectively represent the service capability of the service providing equipment, the service management equipment can distribute the service acquisition request based on the service index of the target service providing equipment, preferentially distribute the service acquisition request to the target service providing equipment with higher service index, realize dynamic distribution of the service acquisition request, ensure load balance of each service and improve the processing efficiency of a service providing system.
Further optionally, in the service providing system, the service providing device may also actively discover the service management device, record the service providing device and corresponding service information on the service management device, and use the service providing device after recording the information as an available service providing device for providing services to the application device.
It should be noted that, the sequence of the steps of the service management method provided in the embodiment of the present invention may be appropriately adjusted, and the steps may also be increased or decreased according to the circumstances, and any method that can be easily conceived by a person skilled in the art within the technical scope disclosed in the present invention should be included in the protection scope of the present invention, and therefore, the details are not described again. The following are embodiments of the apparatus of the present invention that may be used to perform embodiments of the method of the present invention. For details which are not disclosed in the embodiments of the apparatus of the present invention, reference is made to the embodiments of the method of the present invention.
Referring to fig. 7, a schematic structural diagram of a service management apparatus 900 according to an embodiment of the present invention is shown, where the service management apparatus 900 may be used to execute the service management method provided in the embodiment shown in fig. 4 or fig. 5 or a part of the service management method provided in the embodiment shown in fig. 6, and the service management apparatus 900 may be a functional unit in the service management device 12 in the implementation environments shown in fig. 1 to fig. 3. Referring to fig. 7, the service management apparatus 900 may include, but is not limited to:
a sending module 901, configured to send a service discovery request to multiple service providing devices, where the service discovery request is used to request a service providing device with service providing capability to provide service information, and the service information includes types of services provided and access addresses corresponding to each type of service.
A receiving module 902 is configured to receive a service discovery response to the service discovery request, where the service discovery response includes service information.
A recording module 903, configured to record the service providing device from which each received service discovery response originates, and the carried service information.
In summary, in the service management apparatus provided in the embodiment of the present invention, the sending module automatically sends the service discovery request to the service providing device in the service providing system, and the recording module records the service providing device that sends the service discovery response and the corresponding service information, so that the service providing device that records the service information can provide services for the application device, and therefore, the service management device automatically discovers the service providing device without querying an IP address by an application platform, and the discovery efficiency of the service providing device is improved.
Optionally, as shown in fig. 8, the service management apparatus 900 may further include:
a capability obtaining module 904, configured to obtain capability information of each type of service provided by each available service providing device, where the capability information is used to reflect service capabilities of the corresponding service, and the available service providing device is a recorded service providing device.
Optionally, the capability information includes at least one of an analysis channel number, an algorithm library capability index, and a single-channel unit time analysis capability index. For any type of service provided by the available service providing device, the single-channel analysis capability per unit time index is a data amount that a target analysis channel can analyze in a unit time length, wherein the target analysis channel is an analysis channel for analyzing data corresponding to the service of any type.
Optionally, the capability information includes a single-channel unit time analysis capability index, and the capability obtaining module 904 is configured to:
for a first type of service, generating at least one analog service acquisition request, wherein each analog service acquisition request carries first type of data to be analyzed, the first type is any service type supported by a first service providing device, and the first service providing device is any available service providing device;
sending at least one simulated service acquisition request to a first service providing device;
receiving a simulation service acquisition response for each simulation service acquisition request;
calculating a single channel time unit analysis capability index of the first type of service based on a transmission time of the at least one simulated service acquisition request and a reception time of the received simulated service acquisition response.
Optionally, as shown in fig. 9, the service management apparatus 900 may further include:
the determining module 905 is configured to, after receiving the service obtaining request, determine a target type of a service requested to be provided by the service obtaining request.
A pressure value obtaining module 906, configured to obtain a load pressure value of a target service in each target service providing device, where the load pressure value is used to reflect a load pressure of the corresponding service providing device currently providing the target service, and the target service providing device is used to provide the target service, where the target service is a target type of service.
A distributing module 907, configured to distribute the services of the available service providing devices based on the capability information of the target service in each target service providing device and the load pressure value of the target service in each target service providing device.
Optionally, the distributing module 907 is configured to:
calculating an idle analysis index of the target service in each target service providing device based on the capability information of the target service in each target service providing device and the load pressure value of the target service in each target service providing device, wherein the idle analysis index is used for reflecting the idle degree of the corresponding service providing device for providing the target service;
when the target service providing equipment with the idle analysis index larger than the designated index threshold exists, sending a service acquisition request to the target service providing equipment with the maximum idle analysis index so as to provide the target service by the target service providing equipment with the maximum idle analysis index;
when there is no target service providing device having an idle analysis index greater than a specified index threshold, a service failure response is replied to the application device,
or, a waiting mechanism is established until a target service providing device with the idle analysis index larger than a designated index threshold exists, a service acquisition request is sent to the target service providing device with the maximum idle analysis index,
or, establishing a waiting mechanism until the waiting time is out, and replying a service failure response to the application equipment.
Optionally, the sending module 901 is configured to:
for each IP address set in at least two IP address sets, acquiring a gateway address corresponding to a network segment to which the IP address set belongs, and sending a service discovery request to the gateway address, wherein the at least two IP address sets are obtained by dividing IP addresses of a plurality of service providing devices, which belong to the same network segment, into one IP address set when the at least two IP addresses belong to different network segments, and each network segment corresponds to one gateway;
when the service discovery response corresponding to the gateway address is not received, stopping sending the service discovery request to the IP address in the IP address set;
and when receiving a service discovery response corresponding to the gateway address, sending a service discovery request to the IP address in the IP address set.
Optionally, as shown in fig. 10, the service management apparatus 900 further includes:
a detecting module 908 for detecting whether each recorded service providing device reaches a logout condition through a heartbeat mechanism.
A logout module 909, configured to logout any service providing apparatus when detecting that any service providing apparatus reaches a logout condition.
Optionally, as shown in fig. 11, the service management apparatus is applied to a service management device, and the service management apparatus 900 further includes:
the allocating module 910 is configured to allocate a dynamic security code to each application platform registered on the service management device, where the dynamic security code is used for generating an encryption token based on an agreed encryption algorithm, the dynamic security code, and a timestamp when the application device under the application platform communicates with the service management device.
In summary, in the service management apparatus provided in the embodiment of the present invention, the service management device automatically sends the service discovery request to the service providing device in the service providing system, and records the service providing device that sends the service discovery response, so that the service providing device that has recorded the service information can provide the service for the application device, and therefore, the service management device automatically discovers the service providing device without querying an IP address by an application platform, and the discovery efficiency of the service providing device is improved.
An embodiment of the present invention provides a service providing system, where the structure of the service providing system may refer to the service providing system in fig. 1 or fig. 3, where the service providing system includes:
the service management device is used for managing the at least one service providing device, and the service management device comprises any service management device in the device side embodiment. The specific working process refers to the embodiment of the method.
Optionally, as shown in fig. 1 or fig. 3, the service providing system further includes: and the application device is used for requesting the service. The specific working process refers to the embodiment of the method.
An embodiment of the present invention further provides a service providing system, where the structure of the service providing system may refer to the service providing system in fig. 2, where the service providing system includes:
the service distribution device is used for distributing the service to the service providing devices.
The service management device is configured to: sending a service discovery request to a plurality of service providing devices, wherein the service discovery request is used for requesting the service providing devices with service providing capability to provide service information, and the service information comprises the types of the provided services and access addresses corresponding to each type of service; receiving a service discovery response to the service discovery request, the service discovery response including service information; and recording the service providing equipment from which each received service discovery response originates and the carried service information. The specific working process refers to the embodiment of the method.
The service distribution device is used for distributing the service of the service providing device recorded by the service management device. The specific working process refers to the embodiment of the method.
Optionally, as shown in fig. 2, the service providing system further includes: and the application device is used for requesting the service. The specific working process refers to the embodiment of the method.
It can be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working processes of the system, the apparatus, the module and the sub-module described above may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
Fig. 12 is a schematic structural diagram of a computer device according to an embodiment of the present invention. The computer device 1300 includes a Central Processing Unit (CPU) 1301, a system Memory 1304 including a Random Access Memory (RAM) 1302 and a Read-Only Memory (ROM) 1303, and a system bus 1305 connecting the system Memory 1304 and the CPU 1301. The computer device 1300 also includes a basic input/output system (I/O system) 1306, which facilitates transfer of information between devices within the computer, and a mass storage device 1307 for storing an operating system 1313, application programs 1314, and other program modules 1315.
The basic input/output system 1306 includes a display 1308 for displaying information and an input device 1309, such as a mouse, keyboard, etc., for user input of information. Wherein a display 1308 and an input device 1309 are connected to the central processing unit 1301 through an input-output controller 1310 connected to the system bus 1305. The basic input/output system 1306 may also include an input/output controller 1310 for receiving and processing input from a number of other devices, such as a keyboard, mouse, or electronic stylus. Similarly, input-output controller 1310 also provides output to a display screen, a printer, or other type of output device.
The mass storage device 1307 is connected to the central processing unit 1301 through a mass storage controller (not shown) connected to the system bus 1305. The mass storage device 1307 and its associated computer-readable media provide non-volatile storage for the computer device 1300. That is, mass storage device 1307 may include a computer-readable medium (not shown) such as a hard disk or Compact disk-Read-Only-Memory (CD-ROM) drive.
Without loss of generality, computer readable media may comprise computer storage media and communication media. Computer storage media includes volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storage of information such as computer readable instructions, data structures, program modules or other data. Computer storage media include RAM, ROM, erasable Programmable Read-Only Memory (EPROM), electrically Erasable Programmable Read-Only Memory (EEPROM), flash Memory or other solid state Memory technology, CD-ROM, digital Versatile Disks (DVD), or other optical storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices. Of course, those skilled in the art will appreciate that computer storage media is not limited to the foregoing. The system memory 1304 and mass storage device 1307 described above may collectively be referred to as memory.
According to various embodiments of the invention, the computer device 1300 may also operate as a remote computer connected to a network via a network, such as the Internet. That is, the computer device 1300 may be connected to the network 1312 through the network interface unit 1311, which is connected to the system bus 1305, or may be connected to other types of networks or remote computer systems (not shown) using the network interface unit 1311.
The memory further includes one or more programs, the one or more programs are stored in the memory, and the central processing unit 1301 implements the service management method illustrated in fig. 4 or 5 by executing the one or more programs.
An embodiment of the present invention further provides a storage medium, which may be a non-volatile computer-readable storage medium, where a computer program is stored in the storage medium, and when the computer program is executed by a processor, the computer program implements the service management method provided in the foregoing method embodiment.
Embodiments of the present invention further provide a computer program product containing instructions, which when run on a computer, cause the computer to execute the service management method provided by the foregoing method embodiments.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, where the program may be stored in a computer-readable storage medium, and the storage medium may be a read-only memory, a magnetic disk or an optical disk.
The above description is intended only to illustrate the alternative embodiments of the present application, and should not be construed as limiting the present application, and any modifications, equivalents, improvements and the like made within the spirit and principle of the present application should be included in the protection scope of the present application.

Claims (20)

1. A method for service management, the method comprising:
sending a service discovery request to a plurality of service providing devices, wherein the service discovery request is used for requesting the service providing devices with service providing capability to provide service information, and the service information comprises types of provided services and access addresses corresponding to each type of service;
receiving a service discovery response to the service discovery request, the service discovery response including service information;
recording the service providing equipment from which each received service discovery response originates and the carried service information;
the method comprises the steps of obtaining capacity information of each type of service provided by each available service providing device, wherein the available service providing device is a recorded service providing device, the capacity information is used for reflecting service capacity of corresponding service, the capacity information comprises information of at least one service capacity parameter, the at least one service capacity parameter comprises at least one of analysis channel number, algorithm library capacity index and single-channel unit time analysis capacity index, and the obtaining modes of the capacity information corresponding to different service capacity parameters are different.
2. The method according to claim 1, wherein for any type of service provided by the available service providing device, the single-channel analysis capability per time index is a data amount that a target analysis channel can analyze in a unit time length, wherein the target analysis channel is an analysis channel for analyzing data corresponding to the service of any type.
3. The method of claim 2, wherein the capability information comprises the single channel time unit analysis capability index, and wherein the obtaining capability information for each type of service provided by each available service providing device comprises:
for a first type of service, generating at least one simulated service acquisition request, where each simulated service acquisition request carries data to be analyzed of the first type, the first type is any service type supported by a first service providing device, and the first service providing device is any available service providing device;
sending the at least one simulated service acquisition request to the first service providing device;
receiving a simulation service acquisition response for each simulation service acquisition request;
and calculating a single-channel unit time analysis capability index of the first type of service based on the sending time of the at least one analog service acquisition request and the receiving time of the received analog service acquisition response.
4. The method of claim 1, further comprising:
after receiving a service acquisition request, determining a target type of a service requested to be provided by the service acquisition request;
acquiring a load pressure value of a target service in each target service providing device, wherein the load pressure value is used for reflecting the load pressure of the corresponding service providing device for currently providing the target service, the target service providing device is used for providing the target service, and the target service is the service of the target type;
and performing service distribution of the available service providing equipment based on the capability information of the target service in each target service providing equipment and the load pressure value of the target service in each target service providing equipment.
5. The method according to claim 4, wherein the performing service distribution of the available service providing apparatuses based on the capability information of the target service in each target service providing apparatus and the load pressure value of the target service in each target service providing apparatus comprises:
calculating an idle analysis index of the target service in each target service providing device based on the capability information of the target service in each target service providing device and the load pressure value of the target service in each target service providing device, wherein the idle analysis index is used for reflecting the idle degree of the corresponding service providing device for providing the target service;
when a target service providing device with an idle analysis index larger than a designated index threshold exists, sending the service acquisition request to the target service providing device with the maximum idle analysis index so as to provide a target service by the target service providing device with the maximum idle analysis index;
when no target service providing equipment with the idle analysis index larger than the designated index threshold value exists, replying a service failure response to application equipment, wherein the application equipment is equipment with a client or a server, the application equipment provides services for the application equipment through accessing service management equipment and service providing equipment recorded by the service management equipment,
or, a waiting mechanism is established until a target service providing device with an idle analysis index larger than a specified index threshold exists, the service acquisition request is sent to the target service providing device with the maximum idle analysis index,
or establishing a waiting mechanism until the waiting time is out, and replying a service failure response to the application equipment.
6. The method according to any one of claims 1 to 5, wherein said sending a service discovery request to a plurality of service providing devices comprises:
for each IP address set in at least two IP address sets, acquiring a gateway address corresponding to a network segment to which the IP address set belongs, and sending a service discovery request to the gateway address, wherein the at least two IP address sets are obtained by dividing IP addresses of the same network segment into one IP address set when at least two IP addresses of a plurality of service providing devices belong to different network segments, and each network segment corresponds to one gateway;
when a service discovery response corresponding to the gateway address is not received, stopping sending a service discovery request to the IP address in the IP address set;
and when receiving a service discovery response corresponding to the gateway address, sending a service discovery request to the IP address in the IP address set.
7. The method of any of claims 1 to 5, further comprising:
detecting whether each recorded service providing device reaches a logout condition through a heartbeat mechanism;
and when detecting that any service providing equipment reaches the logout condition, logging out any service providing equipment.
8. The method according to any one of claims 1 to 5, wherein the method is applied to a service management device, and the method further comprises:
and allocating a dynamic security code for each application platform registered on the service management equipment, wherein the dynamic security code is used for generating an encryption token based on an agreed encryption algorithm, the dynamic security code and a timestamp when the application equipment under the application platform communicates with the service management equipment.
9. A service management apparatus, characterized in that the apparatus comprises:
a sending module, configured to send a service discovery request to a plurality of service providing devices, where the service discovery request is used to request a service providing device with a service providing capability to provide service information, where the service information includes types of services provided and access addresses corresponding to each type of service;
a receiving module, configured to receive a service discovery response for the service discovery request, where the service discovery response includes service information;
a recording module, configured to record service providing devices from which each received service discovery response originates, and service information carried by the service providing devices;
the system comprises a capability acquisition module, a capability acquisition module and a service management module, wherein the capability acquisition module is used for acquiring capability information of each type of service provided by each available service providing device, the available service providing device is a recorded service providing device, the capability information is used for reflecting the service capability of the corresponding service, the capability information comprises information of at least one service capability parameter, the at least one service capability parameter comprises at least one of analysis channel number, algorithm library capability index and single-channel unit time analysis capability index, and the acquisition modes of the capability information corresponding to different service capability parameters are different.
10. The apparatus according to claim 9, wherein for any type of service provided by the available service providing device, the single-channel analysis capability per time index is an amount of data that a target analysis channel can analyze in a unit time duration, wherein the target analysis channel is an analysis channel for analyzing data corresponding to the service of any type.
11. The apparatus of claim 10, wherein the capability information comprises the single channel time unit analysis capability index, and wherein the capability obtaining module is configured to:
for a first type of service, generating at least one simulated service acquisition request, where each simulated service acquisition request carries data to be analyzed of the first type, the first type is any service type supported by a first service providing device, and the first service providing device is any available service providing device;
sending the at least one simulated service acquisition request to the first service providing device;
receiving a simulation service acquisition response for each simulation service acquisition request;
calculating a single channel time unit analysis capability index of the first type of service based on a transmission time of the at least one simulated service acquisition request and a reception time of the received simulated service acquisition response.
12. The apparatus of claim 9, further comprising:
the device comprises a determining module, a judging module and a judging module, wherein the determining module is used for determining the target type of the service requested to be provided by the service obtaining request after receiving the service obtaining request;
a pressure value obtaining module, configured to obtain a load pressure value of a target service in each target service providing device, where the load pressure value is used to reflect a load pressure of a current target service provided by the corresponding service providing device, the target service providing device is used to provide the target service, and the target service is a service of the target type;
a distribution module, configured to perform service distribution of the available service providing devices based on capability information of the target service in each target service providing device and a load pressure value of the target service in each target service providing device.
13. The apparatus of claim 12, wherein the distribution module is configured to:
calculating an idle analysis index of the target service in each target service providing device based on the capability information of the target service in each target service providing device and the load pressure value of the target service in each target service providing device, wherein the idle analysis index is used for reflecting the idle degree of the corresponding service providing device for providing the target service;
when a target service providing device with an idle analysis index larger than a designated index threshold exists, sending the service acquisition request to the target service providing device with the maximum idle analysis index so as to provide a target service by the target service providing device with the maximum idle analysis index;
when no target service providing equipment with the idle analysis index larger than the designated index threshold value exists, replying a service failure response to application equipment, wherein the application equipment is equipment with a client or a server, the application equipment provides services for the application equipment through accessing service management equipment and service providing equipment recorded by the service management equipment,
or, a waiting mechanism is established until a target service providing device with the idle analysis index larger than a designated index threshold exists, the service acquisition request is sent to the target service providing device with the maximum idle analysis index,
or establishing a waiting mechanism until the waiting time is out, and replying a service failure response to the application equipment.
14. The apparatus according to any one of claims 9 to 13, wherein the sending module is configured to:
for each IP address set in at least two IP address sets, acquiring a gateway address corresponding to a network segment to which the IP address set belongs, and sending a service discovery request to the gateway address, wherein the at least two IP address sets are obtained by dividing IP addresses of the plurality of IP addresses belonging to the same network segment into one IP address set when at least two IP addresses of the plurality of service providing devices belong to different network segments, and each network segment corresponds to one gateway;
when a service discovery response corresponding to the gateway address is not received, stopping sending a service discovery request to the IP address in the IP address set;
and when receiving a service discovery response corresponding to the gateway address, sending a service discovery request to the IP address in the IP address set.
15. The apparatus of any of claims 9 to 13, further comprising:
the detection module is used for detecting whether each recorded service providing device reaches a logout condition through a heartbeat mechanism;
and the logout module is used for logging out any service providing equipment when detecting that the service providing equipment reaches the logout condition.
16. The apparatus according to any one of claims 9 to 13, wherein the apparatus is applied to a service management device, the apparatus further comprising:
and the distribution module is used for distributing a dynamic security code for each application platform registered on the service management equipment, wherein the dynamic security code is used for generating an encryption token based on an appointed encryption algorithm, the dynamic security code and a timestamp when the application equipment under the application platform communicates with the service management equipment.
17. A service providing system, comprising:
a service management device for managing the at least one service providing device, and at least one service providing device, the service management device comprising the service management apparatus of any one of claims 9 to 16.
18. A service providing system, comprising:
the service distribution device is used for distributing the service to the service management device;
the service management device is configured to: sending a service discovery request to a plurality of service providing devices, wherein the service discovery request is used for requesting the service providing devices with service providing capability to provide service information, and the service information comprises types of provided services and access addresses corresponding to each type of service; receiving a service discovery response to the service discovery request, the service discovery response including service information; recording the service providing equipment from which each received service discovery response originates and the carried service information; acquiring capability information of each type of service provided by each available service providing device, wherein the available service providing device is a recorded service providing device, the capability information is used for reflecting the service capability of a corresponding service, the capability information comprises information of at least one service capability parameter, the at least one service capability parameter comprises at least one of analysis channel number, algorithm library capability index and single channel unit time analysis capability index, and the acquisition modes of the corresponding capability information of different service capability parameters are different;
the service distribution device is used for distributing the service recorded by the service management device to the service providing device.
19. A computer device comprising a processor and a memory,
wherein, the memory is used for storing computer programs;
the processor is configured to execute the program stored in the memory, and implement the service management method according to any one of claims 1 to 8.
20. A storage medium, in which a computer program is stored, the computer program, when executed by a processor, implementing the service management method of any one of claims 1 to 8.
CN201910579821.8A 2019-06-28 2019-06-28 Service management method, device and system, computer equipment and storage medium Active CN111327666B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910579821.8A CN111327666B (en) 2019-06-28 2019-06-28 Service management method, device and system, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910579821.8A CN111327666B (en) 2019-06-28 2019-06-28 Service management method, device and system, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN111327666A CN111327666A (en) 2020-06-23
CN111327666B true CN111327666B (en) 2022-11-15

Family

ID=71169057

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910579821.8A Active CN111327666B (en) 2019-06-28 2019-06-28 Service management method, device and system, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111327666B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112104731B (en) * 2020-09-11 2022-05-20 北京奇艺世纪科技有限公司 Request processing method and device, electronic equipment and storage medium

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109688603A (en) * 2018-03-30 2019-04-26 新华三技术有限公司 Network diagnosis method, device and machine readable storage medium

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2010137066A1 (en) * 2009-05-26 2010-12-02 株式会社日立製作所 Management system
US9007945B2 (en) * 2013-01-23 2015-04-14 Dell Products L.P. Automated network service discovery and communication
US10075348B2 (en) * 2014-07-25 2018-09-11 Cable Television Laboratories, Inc. Network service discovery

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109688603A (en) * 2018-03-30 2019-04-26 新华三技术有限公司 Network diagnosis method, device and machine readable storage medium

Also Published As

Publication number Publication date
CN111327666A (en) 2020-06-23

Similar Documents

Publication Publication Date Title
US11696110B2 (en) Distributed, crowdsourced internet of things (IoT) discovery and identification using Block Chain
US9047443B2 (en) Data federation system and method for sociality storage service in cloud computing
US11646973B2 (en) Method for managing hardware resource, method for querying location of hardware resource, and related apparatus
CN109768879B (en) Method and device for determining target service server and server
US11646939B2 (en) Network function NF management method and NF management device
CN111132120A (en) Method, system and equipment for identifying camera device in room local area network
US20170373939A1 (en) Data uploading method, apparatus, and system
RU2578739C2 (en) Determining detailed location network computers
CN111104675A (en) Method and device for detecting system security vulnerability
WO2016127664A1 (en) Access control method and system
US20140337471A1 (en) Migration assist system and migration assist method
CN113630266B (en) Method and device for instantiating edge application server
CN112261172A (en) Service addressing access method, device, system, equipment and medium
US10771372B2 (en) Transmitting test traffic on a communication link
CN107995013B (en) Customer service distribution method and device
US20220255813A1 (en) System and method to correlate end user experience with location
CN111818034A (en) Network access control method, device, electronic equipment and medium
RU2020109684A (en) METHOD AND EQUIPMENT FOR ADMINISTRATION OF SERVICES, AND DATA CARRIER
CN111327666B (en) Service management method, device and system, computer equipment and storage medium
CN111866993B (en) Wireless local area network connection management method, device, software program and storage medium
TWI619031B (en) Metadata server, network device and automatic resource management method
CN109120738B (en) DHCP server and method for managing network internal equipment
CN104754029B (en) Determine the methods, devices and systems of master management server
US20160099928A1 (en) Systems and methods for managing connections for universal plug-and-play devices
CN114650281B (en) File downloading method, device, equipment and storage medium based on complex network

Legal Events

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