Service request response method, service data acquisition method and electronic device
By determining whether multicast forwarding can be performed when the server receives a service request from a user device, and sending the multicast source and multicast group information to the edge node, the problem of high server load pressure in the distributed computing network is solved and improved Improves network forwarding efficiency.
Patent Information
- Application Number
- PCT/CN2023/142015
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-04-24
- Filing Date
- 2023-12-26
- Publication Date
- 2024-10-31
AI Technical Summary
In existing distributed computing networks, servers are under heavy load due to processing a large number of repeated requests, leading to overloading of server resources.
When the server receives a service request from a user device, it determines whether multicast forwarding is possible. If so, it sends a return protocol message encapsulated with multicast source and multicast group information to the edge node, instructing it to join the multicast. group, thereby reducing duplication of return packets and server load.
It effectively reduces the load pressure on the server, improves network forwarding efficiency, and reduces the impact on the backhaul link.
Smart Images

Figure CN2023142015_31102024_PF_FP_ABST
Abstract
Description
Service request response method, service data acquisition method and electronic device
[0001] CROSS-REFERENCE TO RELATED APPLICATIONS
[0002] This application claims priority to a Chinese patent application filed with the Patent Office of China on April 24, 2023, with application number 202310452713.0 and invention name “Method for responding to service requests, method for obtaining service data and electronic device”. The entire contents of the Chinese patent application are incorporated herein by reference. Technical Field
[0003] The present application relates to the field of message forwarding, and in particular to a method for responding to a service request, a method for acquiring service data, and an electronic device. Background Art
[0004] At present, for distributed computing power networks, the main forwarding scheme is as follows: the service node publishes the computing network status (including computing power status and network status) to the network device closest to the service provider; the network device on the service provider side floods the current computing network status of the service node to the user-side network device, so that all user-side network devices can perceive the current computing network status of the reachable service node; the network device on the service provider side and the user-side network device generate a multi-level computing power routing table based on the operator's Service-Level Agreement (SLA) requirements and computing network scheduling strategy; when the user service request reaches the user-side network device, it is forwarded according to the computing power routing table; when the network environment changes, the above computing network information flooding process is repeated to update the multi-level computing power routing table.
[0005] However, there may be a large number of duplicate requests in the existing network, and these duplicate requests may all be sent to the same public network node. The server needs to copy a large number of duplicate return messages, which puts huge load pressure on the server.
[0006] Summary of the Invention
[0007] The present application discloses a method for responding to a service request, a method for acquiring service data, and an electronic device to solve the problem of high server load pressure.
[0008] In order to solve the above problems, this application adopts the following technical solutions:
[0009] In the first aspect, an embodiment of the present application provides a method for responding to a service request, which is applied to a server, including: receiving a service request sent by a user device through an edge node; when it is determined that the return message corresponding to the service request can be multicast forwarded, sending a return protocol message encapsulated with a multicast source and multicast group information corresponding to the service requested by the service request to the edge node, wherein the return protocol message is used to instruct the edge node to join the multicast group corresponding to the multicast group information.
[0010] In a second aspect, an embodiment of the present application provides a method for obtaining service data, which is applied to an edge node, including: sending a service request from a user device to a server; receiving a return protocol message sent by the server that encapsulates a multicast source and multicast group information corresponding to the service requested by the service request; decapsulating the return protocol message, and sending a request to the multicast source to join the multicast group corresponding to the multicast group information; and receiving service data sent by the multicast source through the multicast group.
[0011] In a third aspect, an embodiment of the present application provides a method for determining a multicast source, which is applied to a distributed controller, including: receiving target service information sent by a server; determining the multicast source and multicast group information based on the second computing power information required for the service corresponding to the target service information, the second network information required for the service, the pre-configured third computing power information and the pre-configured third network information; and returning target response information to the server, wherein the target response information includes the multicast source and the multicast group information.
[0012] In a fourth aspect, an embodiment of the present application provides a device for responding to a service request, which is applied to a server and includes: a first receiving module for receiving a service request sent by a user device through an edge node; a first sending module for sending a return protocol message encapsulating a multicast source and multicast group information corresponding to the service requested by the service request to the edge node when it is determined that the return message corresponding to the service request can be multicast forwarded, wherein the return protocol message is used to instruct the edge node to join the multicast group corresponding to the multicast group information.
[0013] In the fifth aspect, an embodiment of the present application provides a device for obtaining service data, which is applied to an edge node, including: a second sending module, used to send a service request from a user device to a server; a second receiving module, used to receive a return protocol message sent by the server that is encapsulated with a multicast source and multicast group information corresponding to the service requested by the service request; the second sending module is also used to decapsulate the return protocol message and send a request to the multicast source to join the multicast group corresponding to the multicast group information; the second receiving module is also used to receive service data sent by the multicast source through the multicast group.
[0014] In the sixth aspect, an embodiment of the present application provides a device for determining a multicast source, which is applied to a distributed controller, including: a third receiving module for receiving target service information sent by a server; a determination module for determining the multicast source and multicast group information based on the second computing power information required for the service corresponding to the target service information, the second network information required for the service, the pre-configured third computing power information and the pre-configured third network information; a return module for returning target response information to the server, wherein the target response information includes the multicast source and the multicast group information.
[0015] In the seventh aspect, an embodiment of the present application provides an electronic device, which includes a processor and a memory, wherein the memory stores programs or instructions that can be run on the processor, and when the program or instructions are executed by the processor, the steps of the method described in the first aspect, the second aspect or the third aspect are implemented.
[0016] In an eighth aspect, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the steps of the method described in the first aspect, the second aspect or the third aspect are implemented.
[0017] In the ninth aspect, an embodiment of the present application provides a chip, which includes a processor and a communication interface, the communication interface and the processor are coupled, and the processor is used to run programs or instructions to implement the method described in the first aspect, the second aspect or the third aspect.
[0018] In a tenth aspect, an embodiment of the present application provides a computer program product, which is stored in a storage medium and is executed by at least one processor to implement the method described in the first aspect, the second aspect, or the third aspect.
[0019] An embodiment of the present application provides a method for responding to a service request, wherein a server receives a service request sent by a user device through an edge node, and when it is determined that a return message corresponding to the service request can be multicast forwarded, a return protocol message encapsulated with a multicast source and multicast group information corresponding to the service requested by the service request is sent to the edge node, instructing the edge node to join the multicast group corresponding to the multicast group information encapsulated in the return protocol message, which can effectively reduce the load pressure on the server and solve the problem of high load pressure on the server. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] FIG1 is a flow chart of a method for responding to a service request disclosed in an embodiment of the present application;
[0021] FIG2 is a flow chart of a method for acquiring service data disclosed in an embodiment of the present application;
[0022] FIG3 is a flow chart of a method for determining a multicast source disclosed in an embodiment of the present application;
[0023] FIG4 is a schematic diagram of the structure of a device for responding to a service request disclosed in an embodiment of the present application;
[0024] FIG5 is a schematic diagram of the structure of a device for acquiring service data disclosed in an embodiment of the present application;
[0025] FIG6 is a schematic structural diagram of a device for determining a multicast source disclosed in an embodiment of the present application;
[0026] FIG7 is a schematic structural diagram of an electronic device disclosed in an embodiment of the present application. DETAILED DESCRIPTION
[0027] The following will be combined with the accompanying drawings in the embodiments of the present application to clearly describe the technical solutions in the embodiments of the present application. Obviously, the embodiments described are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field are within the scope of protection of this application.
[0028] The terms "first," "second," and the like in the specification and claims of this application are used to distinguish similar objects, and are not used to describe a specific order or precedence. It should be understood that the terms used in this manner are interchangeable where appropriate, so that the embodiments of this application can be implemented in an order other than that illustrated or described herein, and that the objects distinguished by "first," "second," and the like are generally of the same type, and do not limit the number of objects; for example, the first object can be one or more. In addition, the term "and / or" in the specification and claims refers to at least one of the connected objects, and the character " / " generally indicates that the objects connected are in an "or" relationship.
[0029] The following, in conjunction with the accompanying drawings, describes in detail the service request response method, service data acquisition method, and electronic device provided in the embodiments of the present application through specific embodiments and their application scenarios.
[0030] The embodiment of the present application provides a method for responding to a service request, which is applied to a server. Figure 1 is a flow chart of a method for responding to a service request disclosed in the embodiment of the present application. As shown in Figure 1, the method includes the following steps.
[0031] S120: Receive a service request sent by a user equipment through an edge node.
[0032] In one implementation, the edge node may be a user-side edge node.
[0033] S140. When it is determined that the return message corresponding to the service request can be multicast forwarded, a return protocol message encapsulating the multicast source and the multicast group information corresponding to the service requested by the service request is sent to the edge node, wherein the return protocol message is used to instruct the edge node to join the multicast group corresponding to the multicast group information.
[0034] That is, after receiving a service request sent by a user device through an edge node, the server determines whether the return message corresponding to the service request can be multicast forwarded. If it determines that the return message corresponding to the service request can be multicast forwarded, the server sends a return protocol message encapsulated with the multicast source and the multicast group information corresponding to the service requested by the service request to the edge node, instructing the edge node to join the multicast group corresponding to the multicast group information. The server then multicast forwards the return message corresponding to the service request, effectively reducing the server's load pressure. In addition, multicast forwarding the return message corresponding to the service request can reduce the impact of a large number of duplicate messages on the return link, thereby improving network forwarding efficiency.
[0035] An embodiment of the present application provides a method for responding to a service request, wherein a server receives a service request sent by a user device through an edge node, and when it is determined that a return message corresponding to the service request can be multicast forwarded, a return protocol message encapsulated with a multicast source and multicast group information corresponding to the service requested by the service request is sent to the edge node, instructing the edge node to join the multicast group corresponding to the multicast group information encapsulated in the return protocol message, which can effectively reduce the load pressure on the server and solve the problem of high load pressure on the server.
[0036] In an embodiment of the present application, determining that the return message corresponding to the service request is capable of multicast forwarding may include: obtaining target service characteristics of the service requested by the service request; and determining, based on the target service characteristics, that the return message is capable of multicast forwarding. Exemplarily, the target service characteristics of the service may be that different user devices have the same service requirements, for example, user device A, user device B, user device C, and user device D all need to watch video X.
[0037] In one implementation, determining that the return message can be multicast forwarded based on the target service characteristics may include: sending the target service characteristics to a distributed controller; receiving target indication information returned by the distributed controller; and determining that the return message can be multicast forwarded if the target indication information indicates that multicast forwarding can be performed. The target indication information is used to indicate whether multicast forwarding can be performed. That is, after obtaining the target service characteristics of the service requested by the service request, the server may send the target service characteristics to the distributed controller, and the distributed controller may determine the target indication information corresponding to the target service characteristics and return it to the server. If the target indication information indicates that multicast forwarding can be performed, it may determine that the return message can be multicast forwarded.
[0038] In an embodiment of the present application, before the return protocol message encapsulating the multicast source and the multicast group information corresponding to the service requested by the service request is sent to the edge node, it may also include: sending the target service information of the service requested by the service request to the distributed controller; obtaining the target response information returned by the distributed controller, wherein the target response information includes the multicast source and the multicast group information. Exemplarily, the target service information of the service may include the service name, the computing power information required for the service, and the network information required for the service, etc. This application does not impose specific restrictions on this. After receiving the target service information sent by the server, the distributed controller determines the multicast source and the multicast group information and returns them to the server.
[0039] In one implementation, before receiving a service request sent by a user device via an edge node, the method may further include: reporting service feature information of the available services to a distributed controller during service deployment. Exemplarily, the service feature information may include computing power information required for the service, network information required for the service, and service type. The computing power information required for the service may include central processing unit (CPU) cycles (also known as machine cycles) required for the service, and the network information required for the service may include bandwidth and latency required for the service.
[0040] In one possible implementation, after reporting the service feature information of the services that can be provided to the distributed controller, it may also include: periodically publishing the first computing power information and first network information of the server to the distributed controller according to a preset period, wherein the first computing power information and the first network information are used to determine the multicast source. That is, the server updates the first computing power information and the first network information that the server can provide to the distributed controller according to a preset period, so that the distributed controller can accurately determine the multicast source. Regarding the server updating the first computing power information that the server can provide to the distributed controller according to a preset period, exemplarily, the server can publish to the distributed controller the CPU resources owned by the resource pool corresponding to the server and the CPU resources currently in use. For example, the resource pool corresponding to the server has a total of 30Ghz CPU resources, and 10Ghz CPU resources are currently in use. Regarding the server publishing the first network information of the server to the distributed controller according to a preset period, exemplarily, the controller can collect the first network information of the server through telemetry technology, and the first network information may include the bandwidth and latency that the server can provide.
[0041] In one implementation, after receiving a service request sent by a user device through an edge node, the method may further include: if no service request is received within a preset time, deleting the multicast group information and multicast source corresponding to the service request on the server to reduce the occupation of server resources.
[0042] In the present application, when it is determined that the return message corresponding to the service request cannot be multicast forwarded, the return message corresponding to the service request is guided to be forwarded according to the user network protocol (Internet Protocol, IP) and the target route of the user device, wherein the target route is the route to the server determined by the edge node when receiving the service request sent by the user device. Exemplarily, the target route is SRv6 (Segment Routing IPv6, segment routing based on the IPv6 forwarding plane). Then, when it is determined that the return message corresponding to the service request cannot be multicast forwarded, the return message corresponding to the service request is guided to be forwarded according to the user IP and SRv6 of the user device.
[0043] The embodiment of the present application provides a method for obtaining service data, which is applied to edge nodes. Figure 2 is a flow chart of a method for obtaining service data disclosed in the embodiment of the present application. As shown in Figure 2, the method includes the following steps.
[0044] S220: Send the service request from the user equipment to the server.
[0045] S240: Receive a return protocol message sent by the server, which encapsulates the multicast source and the multicast group information corresponding to the service requested by the service request.
[0046] S260: Decapsulate the return protocol message, and send a request to the multicast source to join the multicast group corresponding to the multicast group information.
[0047] That is, after receiving the return protocol message sent by the server, the edge node decapsulates the return protocol message, obtains the multicast source and the multicast group information corresponding to the service requested by the service request, and sends a request to the multicast source to join the multicast group corresponding to the multicast group information.
[0048] S280: Receive service data sent by the multicast source through the multicast group.
[0049] When the edge node joins the multicast group, it receives service data sent by the multicast source through the multicast group.
[0050] An embodiment of the present application provides a method for obtaining service data. The edge node sends a service request from a user device to a server, then receives a return protocol message sent by the server that encapsulates a multicast source and multicast group information corresponding to the service requested by the service request, decapsulates the return protocol message, sends a request to the multicast source to join the multicast group corresponding to the multicast group information, and then receives the service data sent by the multicast source through the multicast group. This can effectively reduce the load pressure on the server and solve the problem of high server load pressure.
[0051] In addition, in the present application, since G-BIER (Generalized Bit Index Explicit Replication) has been configured in the user-side edge node and the service-side edge node, when multicast forwarding is required, the bfr-id (bit forwarding router identifier) of the destination node BFER (Bit-Forwarding Egress Router) in the G-BIER domain is obtained. There is no need to rely on the intermediate nodes to establish multicast table entries hop by hop. It is only necessary to encapsulate the bitstring information in the source node and guide the forwarding at the SPINE node between the user-side edge node and the service-side edge node to forward the message to the user-side edge node.
[0052] The embodiment of the present application provides a method for determining a multicast source, which is applied to a distributed controller. FIG3 is a flow chart of a method for determining a multicast source disclosed in the embodiment of the present application. As shown in FIG3 , the method includes the following steps.
[0053] S320: Receive target service information sent by the server.
[0054] For example, the target service information may include the service name, computing power information required for the service, and network information required for the service, etc. This application does not impose any specific restrictions on this.
[0055] S340. Determine the multicast source and multicast group information based on the second computing power information required for the service corresponding to the target service information, the second network information required for the service, the pre-configured third computing power information and the pre-configured third network information.
[0056] The pre-configured third computing power information and the pre-configured third network information may be computing power information and network information pre-set by a user. The distributed controller pre-stores the first computing power information and the first network information that can be provided by the server.
[0057] After receiving the target service information sent by the server, the distributed controller determines the multicast source and multicast group information based on the second computing power information required for the service corresponding to the target service information, the second network information required for the service, the pre-configured third computing power information, and the pre-configured third network information. It should be noted that the multicast source determined by the distributed controller can be the server that sent the target service information or another server. The first computing power information that can be provided by the multicast source determined by the distributed controller can meet the requirements of the second computing power information and the third computing power information, and the first network information that can be provided by the multicast source determined by the distributed controller can meet the requirements of the second network information and the third network information.
[0058] In another implementation, the multicast group information corresponding to the service may be acquired based on a stored multicast table, wherein the multicast table is used to record the correspondence between the service and the multicast group information.
[0059] S360: Return target response information to the server, wherein the target response information includes the multicast source and the multicast group information.
[0060] After determining the multicast source and multicast group information, the distributed controller returns the multicast source and multicast group information to the server.
[0061] An embodiment of the present application provides a method for determining a multicast source. A distributed controller receives target service information sent by a server, determines the multicast source and multicast group information based on the second computing power information required for the service corresponding to the target service information, the second network information required for the service, the pre-configured third computing power information and the pre-configured third network information, and returns the multicast source and multicast group information to the server so that the server can send a return protocol message encapsulated with the multicast source and multicast group information to the edge node, instructing the edge node to join the multicast group corresponding to the multicast group information, thereby effectively reducing the load pressure on the server and solving the problem of high load pressure on the server.
[0062] In an embodiment of the present application, before receiving the target service information sent by the server, the method may further include: receiving target service characteristics sent by the server; obtaining target indication information corresponding to the target service characteristics based on a stored service characteristic table, wherein the service characteristic table is used to record the correspondence between the service characteristics of a service and the indication information indicating whether multicast forwarding can be performed; and sending the target indication information to the server. For example, the target service characteristics of a service may be that different user devices have the same service requirements, for example, user device A, user device B, user device C, and user device D all need to watch video X.
[0063] In one implementation, after returning the target response information to the server, the method may further include: determining a forwarding path from the multicast source to each node in the multicast group corresponding to the multicast group information based on the service identifier of the service, the multicast source, and the multicast group information, and sending the forwarding path to each device passing from the multicast source to each node in the multicast group to facilitate forwarding of the return message.
[0064] In the present application, before receiving the target service information sent by the server, the following steps may be performed: receiving service feature information of the service that the server reports can be provided; and generating a service feature table based on the service feature information of the service. For example, the service feature table may include computing power information required for the service, network information required for the service, service features of the service, and indication information indicating whether multicast forwarding can be performed.
[0065] In one implementation, after receiving the service feature information of the services that the server can provide as reported by the server, the method may further include: periodically receiving first computing power information and first network information of the server according to a preset period, wherein the first computing power information and the first network information are used to determine the multicast source. In other words, the distributed controller updates the first computing power information and the first network information that the server can provide according to the preset period, so that the distributed controller can accurately determine the multicast source.
[0066] In addition, each controller in the distributed controller exchanges data according to a predetermined time to keep the information of each controller synchronized.
[0067] The embodiment of the present application provides a method for responding to a service request, and the execution subject may be a device for responding to a service request. The embodiment of the present application takes the method for responding to a service request performed by the device for responding to a service request as an example to illustrate the device for responding to a service request provided by the embodiment of the present application.
[0068] FIG4 is a schematic diagram of the structure of a device for responding to a service request disclosed in an embodiment of the present application. As shown in FIG4 , the device for responding to a service request 400 includes: a first receiving module 410 and a first sending module 420 .
[0069] In the present application, the first receiving module 410 is used to receive a service request sent by a user device through an edge node; the first sending module 420 is used to send a return protocol message encapsulating a multicast source and multicast group information corresponding to the service requested by the service request to the edge node when it is determined that the return message corresponding to the service request can be multicast forwarded, wherein the return protocol message is used to instruct the edge node to join the multicast group corresponding to the multicast group information.
[0070] In one implementation, the first sending module 420 determines whether the return message corresponding to the service request can be multicast forwarded, including: obtaining the target service characteristics of the service requested by the service request; and determining, based on the target service characteristics, whether the return message can be multicast forwarded.
[0071] In one implementation, the first sending module 420 determines that the return message can be multicast forwarded based on the target service characteristics, including: sending the target service characteristics to the distributed controller; receiving target indication information returned by the distributed controller; and determining that the return message can be multicast forwarded when the target indication information indicates that multicast forwarding can be performed.
[0072] In one implementation, the device also includes: the first sending module 420, which is also used to send the target service information of the service requested by the service request to the distributed controller before sending the return protocol message encapsulated with the multicast source and the multicast group information corresponding to the service requested by the service request to the edge node; a first acquisition module, which is used to obtain the target response information returned by the distributed controller, wherein the target response information includes the multicast source and the multicast group information.
[0073] In one implementation, the first sending module 420 is further configured to report service feature information of services that can be provided to the distributed controller when performing service deployment before receiving the service request sent by the user equipment via the edge node.
[0074] In one implementation, the first sending module 420 is further used to periodically publish the first computing power information and first network information of the server to the distributed controller according to a preset period after reporting the service feature information of the services that can be provided to the distributed controller, wherein the first computing power information and the first network information are used to determine the multicast source.
[0075] The service request response device provided in the embodiment of the present application can implement each process implemented in the service request response method embodiment. To avoid repetition, they will not be described here.
[0076] The embodiment of the present application provides a method for responding to a service request, and the execution subject may be a device for responding to a service request. The embodiment of the present application takes the method for responding to a service request performed by the device for responding to a service request as an example to illustrate the device for responding to a service request provided by the embodiment of the present application.
[0077] FIG5 is a schematic diagram of the structure of a device for acquiring service data disclosed in an embodiment of the present application. As shown in FIG5 , the device for acquiring service data 500 includes: a second sending module 510 and a second receiving module 520 .
[0078] In the present application, the second sending module 510 is used to send a service request from a user device to a server; the second receiving module 520 is used to receive a return protocol message sent by the server that is encapsulated with a multicast source and multicast group information corresponding to the service requested by the service request; the second sending module 510 is also used to decapsulate the return protocol message and send a request to the multicast source to join the multicast group corresponding to the multicast group information; the second receiving module 520 is also used to receive service data sent by the multicast source through the multicast group.
[0079] The service data acquisition device provided in the embodiment of the present application can implement each process implemented in the embodiment of the service data acquisition method. To avoid repetition, they are not described here.
[0080] The method for determining a multicast source provided in the embodiment of the present application can be executed by a multicast source determination device. In the embodiment of the present application, the method for determining a multicast source performed by the multicast source determination device is used as an example to illustrate the multicast source determination device provided in the embodiment of the present application.
[0081] FIG6 is a schematic diagram of the structure of a device for determining a multicast source disclosed in an embodiment of the present application. As shown in FIG6 , the device for determining a multicast source 600 includes: a third receiving module 610 , a determining module 620 , and a returning module 630 .
[0082] In the present application, the third receiving module 610 is used to receive the target service information sent by the server; the determination module 620 is used to determine the multicast source and multicast group information based on the second computing power information required for the service corresponding to the target service information, the second network information required for the service, the pre-configured third computing power information and the pre-configured third network information; the return module 630 is used to return the target response information to the server, wherein the target response information includes the multicast source and the multicast group information.
[0083] In one implementation, the device also includes: the third receiving module 610, which is also used to receive the target service characteristics sent by the server before receiving the target service information sent by the server; a second acquisition module, which is used to obtain the target indication information corresponding to the target service characteristics based on the stored service characteristic table, wherein the service characteristic table is used to record the correspondence between the service characteristics of the service and the indication information indicating whether multicast forwarding can be performed; and a third sending module, which is used to send the target indication information to the server.
[0084] In one implementation, the determination module 620 is further configured to, after returning the target response information to the server, determine a forwarding path from the multicast source to each node in the multicast group corresponding to the multicast group information based on the service identifier of the service, the multicast source, and the multicast group information, and send the forwarding path to each device passing from the multicast source to each node in the multicast group.
[0085] In one implementation, the device also includes: the third receiving module 610, which is also used to receive service feature information of the service that can be provided by the server report before receiving the target service information sent by the server; and a generation module, which is used to generate a service feature table based on the service feature information of the service.
[0086] In one implementation, the third receiving module 610 is also used to periodically receive the first computing power information and first network information of the server according to a preset period after the receiving server reports the service feature information of the services that can be provided, wherein the first computing power information and the first network information are used to determine the multicast source.
[0087] The apparatus for determining a multicast source provided in the embodiment of the present application can implement each process implemented in the embodiment of the method for determining a multicast source, and will not be described again here to avoid repetition.
[0088] Optionally, as shown in Figure 7, an embodiment of the present application also provides an electronic device 700, including a processor 701 and a memory 702, and the memory 702 stores a program or instruction that can be run on the processor 701. When the program or instruction is executed by the processor 701, it implements the various steps of the embodiment of the above-mentioned service request response method, or implements the various steps of the embodiment of the above-mentioned service data acquisition method, or implements the various steps of the embodiment of the above-mentioned multicast source determination method, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0089] An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the program or instruction implements the various processes of the embodiment of the above-mentioned service request response method, or implements the various processes of the embodiment of the above-mentioned service data acquisition method, or implements the various processes of the embodiment of the above-mentioned multicast source determination method, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0090] The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.
[0091] An embodiment of the present application further provides a chip, which includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the various processes of the above-mentioned service request response method embodiment, or to implement the various processes of the above-mentioned service data acquisition method embodiment, or to implement the various processes of the above-mentioned multicast source determination method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0092] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.
[0093] An embodiment of the present application provides a computer program product, which is stored in a storage medium. The program product is executed by at least one processor to implement the various processes of the above-mentioned service request response method embodiment, or the various processes of the above-mentioned service data acquisition method embodiment, or the various processes of the above-mentioned multicast source determination method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0094] It should be noted that, in this article, the terms "comprise", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device comprising a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the statement "comprises a ..." does not exclude the presence of other identical elements in the process, method, article or device comprising the element. In addition, it should be noted that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in the opposite order according to the functions involved. For example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.
[0095] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus the necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art can be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), including a number of instructions for enabling a terminal (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods described in each embodiment of the present application.
[0096] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of this application, ordinary technicians in this field can also make many forms without departing from the purpose of this application and the scope of protection of the claims, all of which are within the protection of this application.
Claims
1. A method for responding to a service request, applied to a server, comprising: Receiving a service request sent by a user device through an edge node; When it is determined that the return message corresponding to the service request can be multicast forwarded, a return protocol message encapsulated with the multicast source and the multicast group information corresponding to the service requested by the service request is sent to the edge node, wherein the return protocol message is used to instruct the edge node to join the multicast group corresponding to the multicast group information.
2. The method according to claim 1, wherein: The determining that the return message corresponding to the service request can be multicast forwarded includes: Obtaining target service characteristics of the service requested by the service request; According to the target service characteristics, it is determined that the return message can be multicast forwarded.
3. The method according to claim 2, wherein: The determining, according to the target service characteristic, that the return message can be multicast forwarded includes: sending the target service characteristics to a distributed controller; Receiving target indication information returned by the distributed controller; In a case where the target indication information indicates that multicast forwarding can be performed, it is determined that the return message can be multicast forwarded.
4. The method according to claim 1, wherein: Before sending the return protocol message encapsulating the multicast source and the multicast group information corresponding to the service requested by the service request to the edge node, the method further includes: Sending target service information of the service requested by the service request to the distributed controller; Obtain the target response information returned by the distributed controller, wherein the target response information Includes the multicast source and the multicast group information.
5. The method according to any one of claims 1 to 4, wherein: Before receiving the service request sent by the user equipment through the edge node, the method further includes: When deploying services, the service feature information of the services that can be provided is reported to the distributed controller.
6. The method according to claim 5, wherein: After reporting the service feature information of the services that can be provided to the distributed controller, the method further includes: According to a preset period, the first computing power information and the first network information of the server are periodically published to the distributed controller, wherein the first computing power information and the first network information are used to determine the multicast source.
7. A method for obtaining service data, applied to an edge node, comprising: Sending a service request from a user device to a server; receiving a return protocol message sent by the server and encapsulating a multicast source and multicast group information corresponding to the service requested by the service request; Decapsulating the return protocol message, and sending a request to the multicast source to join the multicast group corresponding to the multicast group information; Receive service data sent by the multicast source through the multicast group.
8. A method for determining a multicast source, applied to a distributed controller, comprising: Receive target service information sent by the server; Determine the multicast source and multicast group information based on the second computing power information required for the service corresponding to the target service information, the second network information required for the service, the pre-configured third computing power information and the pre-configured third network information; Return target response information to the server, wherein the target response information includes the multicast source and the multicast group information.
9. The method according to claim 8, wherein: Before receiving the target service information sent by the server, the method further includes: Receiving target service characteristics sent by the server; Based on the stored service feature table, obtaining target indication information corresponding to the target service feature, wherein the service feature table is used to record the corresponding relationship between the service feature of the service and the indication information indicating whether multicast forwarding can be performed; The target indication information is sent to the server.
10. The method according to claim 8, wherein: After returning the target response information to the server, the method further includes: Based on the service identifier of the service, the multicast source and the multicast group information, a forwarding path from the multicast source to each node in the multicast group corresponding to the multicast group information is determined, and the forwarding path is sent to each device passing from the multicast source to each node in the multicast group.
11. The method according to any one of claims 8 to 10, wherein: Before receiving the target service information sent by the server, the method further includes: Receiving service characteristic information of services that can be provided by the server report; A service feature table is generated based on the service feature information of the service.
12. The method according to claim 11, wherein: After receiving the service feature information of the service that can be provided by the server report, the method further includes: According to a preset period, first computing power information and first network information of the server are periodically received, wherein the first computing power information and the first network information are used to determine the multicast source.
13. An electronic device, comprising a processor and a memory, wherein the memory stores a program or instruction that can be run on the processor, and when the program or instruction is executed by the processor, it implements the steps of the method for responding to a service request as described in any one of claims 1 to 6, or implements the steps of the method for obtaining service data as described in claim 7, or implements the steps of the method for determining a multicast source as described in any one of claims 8 to 12.
14. A readable storage medium storing a program or instruction, wherein the program or instruction, when executed by a processor, implements the steps of the method for responding to a service request as described in any one of claims 1 to 6, or implements the steps of the method for obtaining service data as described in claim 7, or implements the steps of the method for determining a multicast source as described in any one of claims 8 to 12.
Citation Information
Patent Citations
Reverse path forwarding (RPF) checking method and device
CN111917622A
Configuration file acquisition method and device
CN113194119A
Computing power service processing method, device and system
CN115622938A
Monitoring server performance using server processing time
US11606273B1
Cited By
Data acquisition method, device and system, browser and storage medium
CN119071283A
Ore analysis data return method
CN121151583A
