CN110650215A - Function execution method and device of edge network - Google Patents

Function execution method and device of edge network Download PDF

Info

Publication number
CN110650215A
CN110650215A CN201911018039.5A CN201911018039A CN110650215A CN 110650215 A CN110650215 A CN 110650215A CN 201911018039 A CN201911018039 A CN 201911018039A CN 110650215 A CN110650215 A CN 110650215A
Authority
CN
China
Prior art keywords
edge network
client
target event
function
server
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201911018039.5A
Other languages
Chinese (zh)
Inventor
白宇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Baidu Online Network Technology Beijing Co Ltd
Beijing Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and 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 Beijing Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN201911018039.5A priority Critical patent/CN110650215A/en
Publication of CN110650215A publication Critical patent/CN110650215A/en
Pending legal-status Critical Current

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/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • 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/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
    • H04L67/63Routing a service request depending on the request content or context

Abstract

The application discloses a function execution method and device of an edge network, and relates to the technical field of cloud computing, wherein the method comprises the following steps: detecting at least one target event between a client and a server; determining a calculation function of an edge network corresponding to each target event in at least one target event; and executing the calculation function of the edge network corresponding to each target event. According to the method and the device, the edge network server can determine and further trigger execution of the corresponding calculation function by combining the mapping relation through the event of active detection, so that when more calculation functions exist in the edge network server, the complexity of the edge network server is greatly reduced, and the calculation efficiency of the edge network server is improved.

Description

Function execution method and device of edge network
Technical Field
The present application relates to the field of cloud computing technologies, and in particular, to a method and an apparatus for executing a function of an edge network.
Background
The continuous development of internet technology and the rapid increase of the number of users provide greater challenges for operators in both the construction and operation of communication networks, and the operators need to introduce more effective operation modes in the planning and construction of communication networks to support different services and satisfy more users. The edge network is a network optimization method provided for the environment, and can undertake the functions of core network equipment when a part of clients interact with the core network equipment through equipment such as a server, a host and the like positioned at the edge of a public telecommunication network, so that the computing pressure of the core network is relieved, and the overall operation efficiency of the communication network is improved.
In the prior art, an edge network may implement a corresponding function by calling and executing a Serverless function, where different Serverless functions may be pre-stored in the edge network, and a corresponding hypertext Transfer Protocol (HTTP) trigger is set for each Serverless function. When the Serverless function of the edge network is called, the client needs to send an HTTP request to the edge network, an HTTP trigger in the edge network performs Uniform Resource Locator (URL) matching on the HTTP request sent by the client, and if the matching is successful, the corresponding Serverless function is triggered to be executed, so that the client calls the Serverless function.
However, with the prior art, each HTTP trigger in the edge network can only call one Serverless function, and if the edge network needs to realize the call of different Serverless functions, a plurality of different HTTP triggers need to be respectively set, which results in higher complexity of the edge network, and thus reduces the computational efficiency of the edge network.
Disclosure of Invention
The application provides a function execution method and device of an edge network, which are used for solving the technical problems of higher complexity and lower efficiency when the edge network executes a function in the prior art.
A first aspect of the present application provides a method for executing a function of an edge network, including: detecting at least one target event between a client and a server; determining a calculation function of an edge network corresponding to each target event in at least one target event; and executing the calculation function of the edge network corresponding to each target event.
Specifically, the function execution method for the edge network provided in this embodiment enables the edge network server to determine and further trigger execution of the corresponding computation function through an event actively detected without setting an HTTP trigger for each computation function as in the prior art, so that when there are many computation functions in the edge network server, complexity of the edge network server is greatly reduced, and computation cost and operation cost of an operator to the server can also be reduced.
In an embodiment of the first aspect of the present application, the detecting at least one target event between the client and the server includes: detecting at least one target event according to a client request sent by a client to a server; or detecting at least one target event according to a client response sent by the server to the client.
Specifically, the method for executing functions of an edge network provided in this embodiment is that an edge network server disposed between a client and a core network server can detect an event occurring between the client and the core network server by detecting a request or a response sent between the client and the core network server, so that the edge network server actively detects the event of the client and the core network server and executes a corresponding function without specially sending an HTTP request to the edge network server, thereby improving the intelligence degree of the method for executing functions of an edge network, reducing signaling overhead of the client and the core network server, and further improving efficiency of the edge network when executing functions.
Specifically, the function execution method for the edge network provided in this embodiment enables the edge network server to set only one module or unit capable of processing the mapping relationship without setting an HTTP trigger for each computation function as in the prior art, where the module or unit may also be referred to as an edge computing platform, and the edge computing platform may be set in an existing edge network server, so that when there are many computation functions in the edge network server, the complexity of the edge network server is greatly reduced, and an operator may modify the mapping relationship through an interface provided by the edge network server, thereby reducing computation cost and operation cost of the operator to the server.
In an embodiment of the first aspect of the present application, the determining a computation function of an edge network corresponding to each target event in at least one target event includes: determining a calculation function of an edge network corresponding to each target event in at least one target event according to the at least one target event and the mapping relation; the mapping relation comprises the corresponding relation between the event between the client and the server and the computing function of the edge network.
Specifically, according to the function execution method for the edge network provided by this embodiment, the way in which the edge network server can determine the calculation function through the mapping relationship is direct, and the time for the edge network to execute the function can be reduced, so that the calculation efficiency of the edge network server is further improved.
In an embodiment of the first aspect of the present application, the mapping relationship specifically includes: the correspondence relationship between one event and one calculation function, the correspondence relationship between one event and a plurality of calculation functions, the correspondence relationship between a plurality of events and one calculation function, or the correspondence relationship between a plurality of events and a plurality of calculation functions.
Specifically, in the function execution method for the edge network provided in this embodiment, because the mapping relationship includes different numbers of events and corresponding relationships of functions, the edge network server can determine the calculation function corresponding to an event more flexibly through the mapping relationship. Especially, different numbers of events and corresponding relations between different numbers of events, so that the edge network server does not need to specially set HTTP triggers with the same number as the functions, and the determination of the calculation functions can be more directly and more effectively realized through the mapping relation.
In an embodiment of the first aspect of the present application, the method further includes: and receiving the mapping relation sent by the client or the server.
Specifically, in the function execution method of the edge network provided in this embodiment, the mapping relationship may be stored in the edge network server in advance, or may be specified by an operator or a protocol and stored in the edge network server; or, the mapping relationship may be sent to the edge network server by the client or the core network server, and stored by the edge network server, so that the subsequent edge network server can determine the calculation function corresponding to the target event according to the received mapping relationship, thereby improving the timeliness of the determined calculation function.
In an embodiment of the first aspect of the present application, the client request or the client response includes identification information, where the identification information is used to indicate at least one computation function of the edge network; determining a computation function of the edge network corresponding to each target event in the at least one target event, including: and determining a calculation function of the edge network corresponding to each target event in at least one target event according to the identification information in the client request or the client response.
Specifically, in the function execution method for the edge network provided in this embodiment, the client may carry identification information in the client request, and the core network server may also carry identification information in the client response, so that the edge network server may not detect an event in the identification information, but may directly determine a corresponding calculation function according to the identification information, and may more directly implement determination of the calculation function through the identification information, thereby further reducing the time for determining the function according to the event.
A second aspect of the present application provides a function execution apparatus of an edge network, which is configured to execute the function execution method of the edge network as described in the first aspect of the present application, and the apparatus includes: the device comprises a detection module, a determination module and an execution module. The detection module is used for detecting at least one target event between the client and the server; the determining module is used for determining a computing function of an edge network corresponding to each target event in at least one target event; the execution module is used for executing the calculation function of the edge network corresponding to each target event.
In an embodiment of the second aspect of the present application, the detecting module is specifically configured to detect at least one target event according to a client request sent by a client to a server; or detecting at least one target event according to a client response sent by the server to the client.
In an embodiment of the second aspect of the present application, the determining module is specifically configured to determine, according to at least one target event and the mapping relationship, a calculation function of an edge network corresponding to each target event in the at least one target event; the mapping relation comprises the corresponding relation between the event between the client and the server and the computing function of the edge network.
In an embodiment of the second aspect of the present application, the mapping relationship specifically includes: the correspondence relationship between one event and one calculation function, the correspondence relationship between one event and a plurality of calculation functions, the correspondence relationship between a plurality of events and one calculation function, or the correspondence relationship between a plurality of events and a plurality of calculation functions.
In an embodiment of the second aspect of the present application, the function execution apparatus of the edge network further includes: and the receiving module is used for receiving the mapping relation sent by the client or the server.
In an embodiment of the second aspect of the present application, the client request or the client response includes identification information, where the identification information is used to indicate at least one computation function of the edge network; the determining module is specifically configured to determine, according to the identification information in the client request or the client response, a calculation function of the edge network corresponding to each target event in the at least one target event.
The third party of the present application provides an electronic device, comprising: at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of any one of the first aspects of the present application.
A fourth aspect of the present application provides a non-transitory computer readable storage medium having stored thereon computer instructions for causing a computer to perform the method of any of the first aspects of the present application
In summary, the function execution method for the edge network provided by the present application includes: detecting at least one target event between a client and a server; determining a calculation function of an edge network corresponding to each target event in at least one target event; and executing the calculation function of the edge network corresponding to each target event. Therefore, the function execution method and device of the edge network provided by the application have the following advantages or beneficial effects: the edge network server can determine and further trigger execution of the corresponding calculation function by combining the mapping relation through an actively detected event, so that when more calculation functions exist in the edge network server, the complexity of the edge network server is greatly reduced, an operator can modify the mapping relation through an interface provided by the edge network server, and the calculation cost and the operation cost of the operator on the server can be reduced. The method solves the technical problem that an HTTP trigger needs to be set for each computation function in the prior art in the edge network server in the prior art, but only one module or unit capable of processing the mapping relation needs to be set in the method, the module or unit can be called as an edge computing platform, and the edge computing platform can be set in the prior edge network server. Therefore, the mode of determining the calculation function through the mapping relation is direct, the time for the edge network to execute the function can be reduced, and the calculation efficiency of the edge network server is improved.
Other effects of the above-described alternative will be described below with reference to specific embodiments.
Drawings
The drawings are included to provide a better understanding of the present solution and are not intended to limit the present application. Wherein:
FIG. 1 is a schematic diagram of an application scenario of the present application;
FIG. 2 is a diagram illustrating an application of a function execution method of an edge network in the prior art;
fig. 3 is a flowchart illustrating a method for performing a function of an edge network according to an embodiment of the present application;
fig. 4 is a schematic application diagram of a function execution method of an edge network according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of a function execution device of an edge network according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of a function execution device of an edge network according to another embodiment of the present application;
fig. 7 is a block diagram of an electronic device for implementing a function execution method of an edge network according to an embodiment of the present application.
Detailed Description
The following description of the exemplary embodiments of the present application, taken in conjunction with the accompanying drawings, includes various details of the embodiments of the application for the understanding of the same, which are to be considered exemplary only. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the present application. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
Fig. 1 is a schematic view of an application scenario of the present application, wherein the present application is applied in a scenario in which a client 1 accesses the internet 2 and enjoys a service provided by the internet 2. In particular, the client 1 may be any electronic device with associated functions, such as: a mobile phone, a tablet computer, a notebook computer or a desktop computer, etc. There are different operators in the internet 2, and servers provided in the internet 2 by the operators can provide services to the client 1.
With the continuous development of internet technology and the rapid increase of the number of users, operators have a greater challenge in the construction and operation of communication networks, and the operators need to introduce a more effective operation mode in the planning and construction of communication networks to support different services and satisfy more users. The edge network is a network optimization method provided for the environment, and can undertake the functions of core network equipment when a part of clients interact with the core network equipment through equipment such as a server, a host and the like positioned at the edge of a public telecommunication network, so that the computing pressure of the core network is relieved, and the overall operation efficiency of the communication network is improved. For example, in the example shown in fig. 1, the internet 2 may be divided into the core network 22 and the edge network 21, and an operator may set the core network server 221 and the edge network server 221 in the internet 2, so that the client 1 may access the core network server 221 through the edge network server 211, at this time, the core network server 221 may provide a service for the client 1, and the edge network server 211 may also provide a part of the service for the client 1 instead of the core network server 221.
More specifically, the edge network server 211 provided in the edge network 21 may provide a service to the client 1 by calling a calculation function including: serverless (Serverless) computation functions. For example, fig. 2 is an application schematic diagram of a function execution method of an edge network in the prior art, and as shown in fig. 2, a client, an edge network server, and a core network server may be applied to the scenario shown in fig. 1, different Serverless functions may be stored in the edge network server in advance, and are recorded as a function 1 and a function 2 … …, and meanwhile, a one-to-one HTTP trigger is also set in the edge network server for each function, and is recorded as an HTTP trigger 1 and an HTTP trigger 2 … …. In the prior art as shown in fig. 2, when a client needs to call a function 2 in an edge network server, a special HTTP request needs to be sent to the edge network server, and an HTTP trigger in the edge network server performs URL matching on the HTTP request in sequence, and when the HTTP trigger 2 successfully performs URL matching on HTTP, the HTTP trigger 2 calls and executes the corresponding function 2.
However, in the prior art as shown in fig. 2, each HTTP trigger in the edge network server can only call one function corresponding to the HTTP trigger, and if a plurality of different functions are stored in the edge network server, a plurality of different HTTP triggers need to be respectively set, which results in higher complexity of the edge network server and reduces the computational efficiency of the edge network server. In addition, in the prior art, the HTTP trigger of the edge network server performs matching judgment on the HTTP request in a regular matching request manner, which is time-consuming, so that the time overhead of the HTTP trigger when matching the HTTP request is large, and especially when the amount of HTTP requests received by the edge network server is large, the function execution time of the edge network is also increased.
Therefore, the present application provides a method and an apparatus for executing a function of an edge network, so as to solve the technical problems of higher complexity and lower efficiency when the edge network executes the function in the prior art.
The following describes embodiments of the present application with reference to the drawings.
Fig. 3 is a flowchart illustrating a method for executing a function of an edge network according to an embodiment of the present application, where the method shown in fig. 3 may be executed by an edge network server in an application scenario shown in fig. 1, and specifically, the method includes:
s101: at least one target event between the client and the server is detected.
Specifically, the edge network server detects, in S101, an event occurring between the client and the server in real time, and detects at least one target event occurring between the client and the server. In a specific implementation manner, the edge network server may detect at least one target event occurring between the client and the server through a client request sent by the client to the core network server, or a client response sent by the core network server to the client according to the client request.
Illustratively, the target event provided by the embodiment of the present application may be any one of the following: a rate limiting function event, a website application level intrusion prevention system (also called Web application protection system, WAF for short), a firewall function event, and a hypertext transfer protocol (HTTP) trigger event. It should be noted that, the present application does not limit the target event, and all possible security events, attack events, and HTTP request events may be detected as the target event.
More specifically, the target event may be a target condition achieved by the target function, for example, when the target function is a rate limiting function, the target event is a rate limiting function event, and specifically, when a Query Per Second (QPS) of an Internet Protocol (IP) address requested by the client exceeds 100, the edge network server may detect each client request sent by the client to the core network server, and when the QPS of the IP address requested by the client request exceeds 100, it is determined that the target event, more specifically, the rate limiting function event occurs. In this example, the way for the edge network server to determine the QPS corresponding to the IP address requested by the client is not limited, and the QPS may be pre-stored or protocol-specified. Or, when the target event is a firewall function event, specifically, an IP address requested by the client may be determined according to a client request or a client response, and if it is further determined that the IP address is a dangerous address (for example, an address in a blacklist stored in the edge network server), and there is a risk of being attacked if the access continues, the edge network server also detects the IP address of each client request sent by the client to the core network server, and determines that the target event, more specifically, a rate limiting function event, has occurred when the IP address requested by the client is a dangerous address.
Alternatively, the target events described in this embodiment may be one or more, that is, multiple target events may occur and be detected at the same time. For example, the target event may be that, in the rate limiting function event, the total QPS of the clients exceeds 1000, and the QPS corresponding to a single IP address of the client exceeds 100, then when the edge network server detects that the client sends a client request to the core network server, the QPS of the IP address corresponding to the single request exceeds 100 and the sum of QPS of all IP addresses requested by the client at this time exceeds 1000, at this time, the edge network server may detect that the above two target events occur simultaneously.
S102: and determining a calculation function of the edge network corresponding to each target event in the at least one target event.
Subsequently, in S102, the edge network server determines a calculation function of the edge network corresponding to each target event according to the at least one target event determined in S101. Wherein the computation function may be a Serverless function.
In a specific implementation manner of S102, the edge network server specifically determines, according to the obtained at least one target event and the mapping relationship, a calculation function of the edge network corresponding to each target event in the at least one target event. The mapping relationship includes a corresponding relationship between an event between the client and the server and a computation function of the edge network.
Exemplarily, fig. 4 is an application schematic diagram of a function execution method of an edge network according to an embodiment of the present application, and fig. 4 shows a mapping relationship in the embodiment of the present application, where the mapping relationship includes a correspondence relationship between events and functions, for example, the correspondence relationship between N events and M functions is illustrated in fig. 4, N and M are positive integers, and N and M may be the same or different.
The mapping relationship may specifically be a one-to-one correspondence relationship between an event and a function, for example, when N ═ M, the symbol "-" is used to indicate the correspondence relationship, and the mapping relationship includes a one-to-one correspondence relationship between event 1-function 1 and event 2-function 2 … … and event N-function M; alternatively, the mapping relationship may also be specifically a corresponding relationship between one event and a plurality of functions, for example, the mapping relationship includes event 1-function 1 and function 2, event 2-function 3 and function 4 … …; or, the mapping relationship may also be specifically a corresponding relationship between a plurality of events and one function, for example, the mapping relationship includes a corresponding relationship between event 1 and event 2 — function 1, and a corresponding relationship between event 3 and event 4 — function 2; still alternatively, the mapping relationship may be a correspondence relationship between a plurality of events and a plurality of functions, for example, the mapping relationship includes a correspondence relationship between event 1 and event 2 — function 1 and function 2. The above corresponding relations are only exemplary illustrations, and in actual implementation, the mapping relations may also include various combinations of the above corresponding relations, which is not limited in the present application.
Optionally, the mapping relationship may be stored in the edge network server in advance, or defined by an operator or a protocol and stored in the edge network server; or, the mapping relationship may be sent to the edge network server by the client or the core network server, and stored by the edge network server, so that the subsequent edge network server can determine the calculation function corresponding to the target event according to the received mapping relationship, thereby improving the timeliness of the determined calculation function.
In another specific implementation manner of S102, when the edge network server may detect the target event through a client request sent by the client to the core network server, the client may also directly carry identification information in the client request, so as to indicate at least one computation function to the edge network server. For the edge network server, when detecting a target event for each client request, if it is detected that the client request includes identification information, the event detection may not be performed any more, and a corresponding calculation function may be determined directly according to the identification information in the client request. For example, the identification information may be a number "1" of a specific location for indicating the function 1 to the edge network server; the identification information may be a location-specific number "1, 2" for indicating function 1 and function 2 to the edge network server. Or, when the edge network server may respond to the detection target event of the client sent to the client through the core network server, and the core network server may also carry the identification information in the client response, the edge network server may not detect the event any longer when detecting that the client response includes the identification information, but may determine the corresponding calculation function directly according to the identification information, and may more directly implement the determination of the calculation function through the identification information, thereby further reducing the time for determining the function according to the event.
S103: and executing the calculation function of the edge network corresponding to each target event.
Subsequently, in S103, the edge network server executes the calculation function of the edge network corresponding to each target event determined in S102. For example, if the edge network server determines, from S102, the function 1 corresponding to the event 1, and the functions 2 and 3 corresponding to the event 2, then in S103, the edge network server executes the calculation function of the edge network: function 1, function 2, and function 3.
Illustratively, when the target event is a rate limiting function event, specifically, a QPS of an IP address requested by the client exceeds 100, the edge network server determines that the target event occurs, and determines, according to the mapping relationship, that a computation function corresponding to the target event is a QPS function that limits the client from accessing the IP address. In S103, after the edge network server executes the determined calculation function, the QPS for the client to access the IP address is smaller than a preset value, for example, smaller than 100, so as to implement the limitation on the QPS of the client.
In summary, according to the function execution method for the edge network provided in the embodiment of the present application, the edge network server can actively detect at least one target event between the client and the server, and further execute the calculation function corresponding to the target event after determining the calculation function of the edge network corresponding to each detected target event. The edge network server does not need to set an HTTP trigger for each computation function as in the prior art, but only needs to set a module or unit capable of processing the mapping relation, and the module or unit can be called an edge computing platform which can be set in the existing edge network server. Therefore, the edge network server can determine and further trigger execution of the corresponding calculation function by combining the mapping relation through the event of active detection, so that when more calculation functions exist in the edge network server, the complexity of the edge network server is greatly reduced, an operator can modify the mapping relation through an interface provided by the edge network server, and the calculation cost and the operation cost of the operator to the server can be reduced. And the mode of determining the calculation function through the mapping relation is direct, the time for the edge network to execute the function can be reduced, and the calculation efficiency of the edge network server is improved.
In the embodiments provided in the present application, the method provided in the embodiments of the present application is introduced from the perspective of respectively executing servers whose main bodies are edge networks. In order to implement the functions in the method provided by the embodiments of the present application, the server may further include a hardware structure and/or a software module, and the functions are implemented in the form of a hardware structure, a software module, or a hardware structure plus a software module. Whether any of the above-described functions is implemented as a hardware structure, a software module, or a hardware structure plus a software module depends upon the particular application and design constraints imposed on the technical solution.
For example, fig. 5 is a schematic structural diagram of a function execution device of an edge network according to an embodiment of the present application, and the function execution device 500 of the edge network shown in fig. 5 includes: a detection module 501, a determination module 502 and an execution module 503. The detection module 501 is configured to detect at least one target event between a client and a server; the determining module 502 is configured to determine a computation function of an edge network corresponding to each target event in the at least one target event; the execution module 503 is configured to execute a calculation function of the edge network corresponding to each target event.
Optionally, the detecting module 501 is specifically configured to detect at least one target event according to a client request sent by a client to a server; or detecting at least one target event according to a client response sent by the server to the client.
Optionally, the determining module 502 is specifically configured to determine, according to the at least one target event and the mapping relationship, a calculation function of the edge network corresponding to each target event in the at least one target event; the mapping relation comprises the corresponding relation between the event between the client and the server and the computing function of the edge network.
Optionally, the mapping relationship specifically includes: the correspondence relationship between one event and one calculation function, the correspondence relationship between one event and a plurality of calculation functions, the correspondence relationship between a plurality of events and one calculation function, or the correspondence relationship between a plurality of events and a plurality of calculation functions.
Further, fig. 6 is a schematic structural diagram of a function execution device of an edge network according to another embodiment of the present application, and based on the embodiment shown in fig. 5, the function execution device 500 of the edge network further includes: a receiving module 504, configured to receive the mapping relationship sent by the client or the server.
Optionally, in the above embodiment, the client request or the client response includes identification information, where the identification information is used to indicate at least one computation function of the edge network; the determining module 502 is specifically configured to determine, according to the identification information in the client request or the client response, a calculation function of the edge network corresponding to each target event in the at least one target event.
The function executing apparatus of the edge network shown in fig. 5 and fig. 6 can be used to execute the function executing method of the edge network in the foregoing embodiments of the present application, and the implementation principle and the beneficial effect are the same, and are not described again.
The division of the modules in the embodiments of the present application is schematic, and only one logical function division is provided, and in actual implementation, there may be another division manner, and in addition, each functional module in each embodiment of the present application may be integrated in one processor, may also exist alone physically, or may also be integrated in one module by two or more modules. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. According to an embodiment of the present application, an electronic device and a readable storage medium are also provided.
Fig. 7 is a block diagram of an electronic device intended to implement the function execution method of the edge network of the embodiments of the present application, the electronic device being intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other suitable computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be examples only, and are not meant to limit implementations of the present application that are described and/or claimed herein.
As shown in fig. 7, the electronic apparatus includes: one or more processors 701, a memory 702, and interfaces for connecting the various components, including a high-speed interface and a low-speed interface. The various components are interconnected using different buses and may be mounted on a common motherboard or in other manners as desired. The processor may process instructions for execution within the electronic device, including instructions stored in or on the memory to display graphical information of a GUI on an external input/output apparatus (such as a display device coupled to the interface). In other embodiments, multiple processors and/or multiple buses may be used, along with multiple memories and multiple memories, as desired. Also, multiple electronic devices may be connected, with each device providing portions of the necessary operations (e.g., as a server array, a group of blade servers, or a multi-processor system). In fig. 7, one processor 701 is taken as an example.
The memory 702 is a non-transitory computer readable storage medium as provided herein. Wherein the memory stores instructions executable by at least one processor to cause the at least one processor to perform the method for function execution of an edge network provided herein. The non-transitory computer-readable storage medium of the present application stores computer instructions for causing a computer to execute the function execution method of the edge network provided by the present application.
The memory 702 is a non-transitory computer readable storage medium, and can be used for storing non-transitory software programs, non-transitory computer executable programs, and modules, such as program instructions/modules corresponding to the function execution method of the edge network in the embodiment of the present application (for example, the detection module 501, the determination module 502, and the execution module 503 shown in fig. 5). The processor 701 executes various functional applications of the server and data processing, i.e., a function execution method of the edge network in the above-described method embodiment, by executing the non-transitory software program, instructions, and modules stored in the memory 702.
The memory 702 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created from use of the electronic device based on image-based part failure detection, and the like. Further, the memory 702 may include high speed random access memory, and may also include non-transitory memory, such as at least one magnetic disk storage device, flash memory device, or other non-transitory solid state storage device. In some embodiments, memory 702 optionally includes memory located remotely from processor 701, and these remote memories may be connected over a network to the electronics of the image-based part failure detection. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The electronic device may further include: an input device 703 and an output device 704. The processor 701, the memory 702, the input device 703 and the output device 704 may be connected by a bus or other means, and fig. 7 illustrates an example of a connection by a bus.
The input device 703 may receive input numeric or character information and generate key signal inputs related to user settings and function control of the electronic apparatus based on the image-based part failure detection, such as a touch screen, a keypad, a mouse, a track pad, a touch pad, a pointing stick, one or more mouse buttons, a track ball, a joystick, or other input devices. The output devices 704 may include a display device, auxiliary lighting devices (e.g., LEDs), and tactile feedback devices (e.g., vibrating motors), among others. The display device may include, but is not limited to, a Liquid Crystal Display (LCD), a Light Emitting Diode (LED) display, and a plasma display. In some implementations, the display device can be a touch screen.
Various implementations of the systems and techniques described here can be realized in digital electronic circuitry, integrated circuitry, application specific ASICs (application specific integrated circuits), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs that are executable and/or interpretable on a programmable system including at least one programmable processor, which may be special or general purpose, receiving data and instructions from, and transmitting data and instructions to, a storage system, at least one input device, and at least one output device.
These computer programs (also known as programs, software applications, or code) include machine instructions for a programmable processor, and may be implemented using high-level procedural and/or object-oriented programming languages, and/or assembly/machine languages. As used herein, the terms "machine-readable medium" and "computer-readable medium" refer to any computer program product, apparatus, and/or device (e.g., magnetic discs, optical disks, memory, Programmable Logic Devices (PLDs)) used to provide machine instructions and/or data to a programmable processor, including a machine-readable medium that receives machine instructions as a machine-readable signal. The term "machine-readable signal" refers to any signal used to provide machine instructions and/or data to a programmable processor.
To provide for interaction with a user, the systems and techniques described here can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and a pointing device (e.g., a mouse or a trackball) by which a user can provide input to the computer. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form, including acoustic, speech, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a back-end component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such back-end, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), Wide Area Networks (WANs), and the Internet.
The computer system may include clients and servers. A client and server are generally remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other.
It should be understood that various forms of the flows shown above may be used, with steps reordered, added, or deleted. For example, the steps described in the present application may be executed in parallel, sequentially, or in different orders, and the present invention is not limited thereto as long as the desired results of the technical solutions disclosed in the present application can be achieved.
The above-described embodiments should not be construed as limiting the scope of the present application. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may be made in accordance with design requirements and other factors. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present application shall be included in the protection scope of the present application.

Claims (14)

1. A method for performing a function in an edge network, comprising:
detecting at least one target event between a client and a server;
determining a calculation function of an edge network corresponding to each target event in the at least one target event;
and executing the calculation function of the edge network corresponding to each target event.
2. The method of claim 1, wherein detecting at least one target event between the client and the server comprises:
detecting the at least one target event according to a client request sent by the client to the server; alternatively, the first and second electrodes may be,
and detecting the at least one target event according to a client response sent to the client by the server.
3. The method of claim 1 or 2, wherein determining the computation function of the edge network corresponding to each target event of the at least one target event comprises:
determining a calculation function of an edge network corresponding to each target event in the at least one target event according to the at least one target event and the mapping relation; wherein the mapping relationship comprises a corresponding relationship between an event between the client and the server and a computing function of an edge network.
4. The method of claim 3,
the mapping relationship specifically includes: the correspondence relationship between one event and one calculation function, the correspondence relationship between one event and a plurality of calculation functions, the correspondence relationship between a plurality of events and one calculation function, or the correspondence relationship between a plurality of events and a plurality of calculation functions.
5. The method of claim 3, further comprising:
and receiving the mapping relation sent by the client or the server.
6. The method of claim 2,
the client request or the client response comprises identification information, and the identification information is used for indicating at least one calculation function of the edge network;
determining a computation function of the edge network corresponding to each target event of the at least one target event, including:
and determining a calculation function of the edge network corresponding to each target event in the at least one target event according to the identification information in the client request or the client response.
7. A function execution apparatus of an edge network, comprising:
the detection module is used for detecting at least one target event between the client and the server;
a determining module, configured to determine a computation function of an edge network corresponding to each target in the at least one target event;
and the execution module is used for executing the calculation function of the edge network corresponding to each target event.
8. The apparatus of claim 7, wherein the detection module is specifically configured to,
detecting the at least one target event according to a client request sent by the client to the server; alternatively, the first and second electrodes may be,
and detecting the at least one target event according to a client response sent to the client by the server.
9. The apparatus according to claim 7 or 8, characterized in that the determination module is specifically configured to,
determining a calculation function of an edge network corresponding to each target event in the at least one target event according to the at least one target event and the mapping relation; wherein the mapping relationship comprises a corresponding relationship between an event between the client and the server and a computing function of an edge network.
10. The apparatus of claim 9,
the mapping relationship specifically includes: the correspondence relationship between one event and one calculation function, the correspondence relationship between one event and a plurality of calculation functions, the correspondence relationship between a plurality of events and one calculation function, or the correspondence relationship between a plurality of events and a plurality of calculation functions.
11. The apparatus of claim 9, further comprising:
and the receiving module is used for receiving the mapping relation sent by the client or the server.
12. The apparatus of claim 8,
the client request or the client response comprises identification information, and the identification information is used for indicating at least one calculation function of the edge network;
the determining module is specifically configured to determine, according to the identification information in the client request or the client response, a computation function of the edge network corresponding to each target event in the at least one target event.
13. An electronic device, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of any one of claims 1-6.
14. A non-transitory computer readable storage medium having stored thereon computer instructions for causing the computer to perform the method of any one of claims 1-6.
CN201911018039.5A 2019-10-24 2019-10-24 Function execution method and device of edge network Pending CN110650215A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911018039.5A CN110650215A (en) 2019-10-24 2019-10-24 Function execution method and device of edge network

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911018039.5A CN110650215A (en) 2019-10-24 2019-10-24 Function execution method and device of edge network

Publications (1)

Publication Number Publication Date
CN110650215A true CN110650215A (en) 2020-01-03

Family

ID=68994739

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911018039.5A Pending CN110650215A (en) 2019-10-24 2019-10-24 Function execution method and device of edge network

Country Status (1)

Country Link
CN (1) CN110650215A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111797314A (en) * 2020-06-28 2020-10-20 百度在线网络技术(北京)有限公司 Data processing method, device, equipment and storage medium
CN112134918A (en) * 2020-08-04 2020-12-25 杭州未名信科科技有限公司 Method for detecting and processing matching state of function and trigger in cloud service

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180176070A1 (en) * 2016-12-16 2018-06-21 Futurewei Technologies, Inc. System and method to handle events using historical data in serverless systems
US20190205186A1 (en) * 2017-12-29 2019-07-04 Futurewei Technologies, Inc. Event-driven serverless function orchestration
CN110049001A (en) * 2019-02-27 2019-07-23 新奥特(北京)视频技术有限公司 A kind of method, apparatus, storage medium and server for realizing WebService service
WO2019153973A1 (en) * 2018-02-12 2019-08-15 华为技术有限公司 Event driving method and device
CN110275699A (en) * 2018-03-15 2019-09-24 拉扎斯网络科技(上海)有限公司 A kind of code construction method and Serverless platform, object storage platform

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180176070A1 (en) * 2016-12-16 2018-06-21 Futurewei Technologies, Inc. System and method to handle events using historical data in serverless systems
US20190205186A1 (en) * 2017-12-29 2019-07-04 Futurewei Technologies, Inc. Event-driven serverless function orchestration
WO2019153973A1 (en) * 2018-02-12 2019-08-15 华为技术有限公司 Event driving method and device
CN110162413A (en) * 2018-02-12 2019-08-23 华为技术有限公司 Event-driven method and device
CN110275699A (en) * 2018-03-15 2019-09-24 拉扎斯网络科技(上海)有限公司 A kind of code construction method and Serverless platform, object storage platform
CN110049001A (en) * 2019-02-27 2019-07-23 新奥特(北京)视频技术有限公司 A kind of method, apparatus, storage medium and server for realizing WebService service

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
LUCIANO BARESI等: "Towards a Serverless Platform for Edge Computing", 《2019 IEEE INTERNATIONAL CONFERENCE ON FOG COMPUTING (ICFC)》 *
刘畅等: "基于无服务器架构的边缘AI计算平台", 《信息通信技术》 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111797314A (en) * 2020-06-28 2020-10-20 百度在线网络技术(北京)有限公司 Data processing method, device, equipment and storage medium
CN112134918A (en) * 2020-08-04 2020-12-25 杭州未名信科科技有限公司 Method for detecting and processing matching state of function and trigger in cloud service
CN112134918B (en) * 2020-08-04 2023-04-07 杭州未名信科科技有限公司 Method for detecting and processing matching state of function and trigger in cloud service

Similar Documents

Publication Publication Date Title
CN111327720B (en) Network address conversion method, device, gateway equipment and storage medium
US20210092158A1 (en) Method, apparatus, device, terminal, and medium for defending against attacking behavior
CN106575222B (en) Js application monitoring
WO2016160599A1 (en) System and method for threat-driven security policy controls
CN111414208B (en) Application program starting method, device and equipment
CN112437018A (en) Flow control method, device, equipment and storage medium for distributed cluster
CN105550051A (en) Asynchronous processing method and device of business request
CN111586128A (en) Method, device and equipment for acquiring applet data and storage medium
JP7317084B2 (en) REMOTE VERIFICATION METHOD, DEVICE, DEVICE, SYSTEM AND MEDIUM OF TRUSTED ENVIRONMENT
CN110958250B (en) Port monitoring method and device and electronic equipment
CN112437006A (en) Request control method and device based on API gateway, electronic equipment and storage medium
US10291730B1 (en) Throttling push notifications using predictive workload modeling
CN110650215A (en) Function execution method and device of edge network
CN111770154A (en) Service detection method, device, equipment and storage medium
CN114356547B (en) Low-priority blocking method and device based on processor virtualization environment
CN111865720B (en) Method, apparatus, device and storage medium for processing request
CN111770176B (en) Traffic scheduling method and device
CN113825170A (en) Method and apparatus for determining network channel
US11381665B2 (en) Tracking client sessions in publish and subscribe systems using a shared repository
KR102571517B1 (en) Traffic adjustment method and apparatus
CN111767489B (en) Webpage running acceleration method, device, equipment and storage medium
US20210194820A1 (en) Methods and apparatuses for responding to requests for network resources implemented in a cloud computing infrastructure
CN108696598B (en) Method and device for transparently transmitting message received by stateless service through long connection under micro-service architecture
CN111092876B (en) Multi-host system, electronic device, storage medium, information processing method and apparatus for multi-host system
CN111008041B (en) Command processing method and device for host, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20200103

RJ01 Rejection of invention patent application after publication