Message transmission method and device, electronic equipment and program product
By receiving and processing computing power routing information on the requesting node and using the boundary gateway protocol to obtain network metric information, the problem of missing a collection protocol for message transmission in cross-domain scenarios is solved, and effective message transmission is achieved.
Patent Information
- Application Number
- CN202311349084.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-10-18
- Publication Date
- 2025-04-18
Smart Images

Figure CN119854374A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of network communication technology, and in particular to a message transmission method, device, electronic device and program product. Background Art
[0002] With the development of digital technology, the integration of the physical world and the digital world is becoming closer and closer. As a bridge between the two, the network will face more severe challenges, which has given rise to the concept of computing power network. The computing power network needs to coordinate and coordinate network resources and computing power resources, and select the computing power path with the best comprehensive resources, so as to provide customers with better services.
[0003] In the related technologies, there are some conceptual solutions for computing power networks, such as distributed solutions. In the distributed method, after the computing power nodes notify the computing power node information to the nearest network nodes, each network node notifies the computing power node information to the adjacent network nodes, and finally each network node generates a computing power topology that can reflect the distribution and status information of the computing power nodes in the network. However, for cross-domain scenarios, there is a problem of missing collection protocols from the user end to the server end in the distributed solution. When the user end wants to obtain services, it can only rely on the external border gateway protocol routing priority to achieve the optimization of computing power routing. In the related technologies, the problem of missing collection protocols is compensated by manually configuring network metrics, but it cannot dynamically reflect the real network information.
[0004] In summary, how to transmit messages in cross-domain networks is an urgent problem to be solved. Summary of the invention
[0005] Embodiments of the present application provide a message transmission method, device, electronic device, and program product for transmitting messages in a cross-domain scenario.
[0006] A message transmission method provided in an embodiment of the present application is applied to a requesting node, including:
[0007] Receive the initial computing power routing information published by the computing power service cloud;
[0008] Obtaining first network metric information of the first autonomous domain through an internal border gateway protocol associated with the first autonomous domain, and adding the first network metric information to the initial computing power routing information to obtain target computing power routing information; wherein the requesting node is located in the first autonomous domain;
[0009] A target service path is selected according to the target computing power routing information, and a request message is sent to the computing power service cloud through the target service path, wherein the target service path includes an actual service node located in a second autonomous domain; wherein the second autonomous domain is connected to the computing power service cloud.
[0010] A message transmission device provided in an embodiment of the present application is applied to a requesting node, including:
[0011] A receiving unit, used to receive the initial computing power routing information published by the computing power service cloud;
[0012] an acquiring unit, configured to acquire first network metric information of the first autonomous domain through an internal border gateway protocol associated with the first autonomous domain, and add the first network metric information to the initial computing power routing information to obtain target computing power routing information; wherein the requesting node is located in the first autonomous domain;
[0013] A sending unit, used to select a target service path according to the target computing power routing information, and send the request message to the computing power service cloud through the target service path, wherein the target service path includes an actual service node located in a second autonomous domain; wherein the second autonomous domain is connected to the computing power service cloud.
[0014] Optionally, when the first autonomous domain is the same as the second autonomous domain, the initial computing power routing information includes computing power information published by the computing power service cloud;
[0015] When the first autonomous domain and the second autonomous domain are different, the initial computing power routing information includes the computing power information published by the computing power service cloud, the second network measurement information between the first autonomous domain and the second autonomous domain, and the third network measurement information of the second autonomous domain.
[0016] Optionally, when the first autonomous domain is different from the second autonomous domain, the receiving unit is specifically configured to:
[0017] The initial computing power routing information is obtained from the second autonomous domain border router in the second autonomous domain through the first autonomous domain border router in the first autonomous domain; wherein the computing power information is received by the second autonomous domain border router from the computing power service cloud and added to the initial computing power routing information.
[0018] Optionally, the second network metric information is the network metric information of the first autonomous domain border router connected to the second autonomous domain border router obtained through the external border gateway protocol, and added to the initial computing power routing information; the third network metric information is the network metric information of the second autonomous domain border router obtained through the internal border gateway protocol associated with the second autonomous domain and added to the initial computing power routing information.
[0019] Optionally, when there is at least one computing power service cloud, the initial computing power routing information corresponds to the computing power service cloud one by one, and there is a computing power node routing connected to each computing power service cloud in the second autonomous domain; the receiving unit is further used to:
[0020] For each computing node route, perform the following operations:
[0021] The first autonomous domain border router in the first autonomous domain receives the corresponding routing source from a computing power node routing through the second autonomous domain border router in the second autonomous domain, and adds the routing source to the corresponding initial computing power routing information.
[0022] Optionally, the network metric information is obtained through a preset transmission structure, and the network metric information is at least one of the first network metric information, the second network metric information, and the third network metric information;
[0023] The preset transmission structure includes a type, a length and a value; wherein the type indicates that the data type transmitted based on the preset transmission structure is a network metric information type, the value indicates the data value transmitted based on the preset transmission structure, and the length indicates the length of the value.
[0024] Optionally, the structure of the value is an auxiliary transmission structure, which includes an auxiliary type, source autonomous domain information, target autonomous domain information, a network metric information value, and the length of the network metric information value, wherein the auxiliary type is the type of the network metric information value.
[0025] An electronic device provided in an embodiment of the present application includes a processor and a memory, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor executes the steps of any one of the above-mentioned message transmission methods.
[0026] A computer program product provided in an embodiment of the present application includes a computer program, and when the computer program is executed by a processor, it implements any one of the above-mentioned message transmission methods.
[0027] Optionally, the computer-readable storage medium can be implemented as a computer program product, that is, an embodiment of the present application also provides a computer-readable storage medium, which includes a computer program, and when the computer program is executed by a processor, it implements a method for transmitting any of the above-mentioned messages.
[0028] The beneficial effects of this application are as follows:
[0029] The embodiments of the present application provide a method, device, electronic device and program product for transmitting a message. Specifically, in an intra-domain scenario, network measurement information is obtained through an internal border gateway protocol, and added to the computing power routing information. According to the network measurement information, computing power information and routing source in the computing power routing information, after selecting the target service path, the request message is sent to the computing power service cloud based on the target service path; in a cross-domain scenario, the network measurement information in the cross-domain scenario is carried through an external border gateway protocol, and added to the computing power routing information. According to the network measurement information, computing power information and routing source in the computing power routing information, after selecting the target service path, the request message is sent to the computing power service cloud based on the target service path. Based on this method, in a cross-domain scenario, the network measurement information in the cross-domain scenario is carried through an external border gateway protocol, which expands the collection method of the computing power service and makes up for the problem of missing collection protocols, thereby realizing the transmission of messages in cross-domain scenarios.
[0030] Other features and advantages of the present application will be described in the following description, and partly become apparent from the description, or be understood by practicing the present application. The purpose and other advantages of the present application can be realized and obtained by the structures specifically pointed out in the written description, claims, and drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:
[0032] Figure 1 A schematic diagram of an application scenario of message transmission provided in an embodiment of the present application;
[0033] Figure 2 A flowchart of a message transmission method provided in an embodiment of the present application;
[0034] Figure 3 A schematic diagram of initial computing power routing information for an intra-domain scenario provided in an embodiment of the present application;
[0035] Figure 4 A schematic diagram of initial computing power routing information for a cross-domain scenario provided in an embodiment of the present application;
[0036] Figure 5 A schematic diagram of obtaining initial computing power routing information in a cross-domain scenario provided in an embodiment of the present application;
[0037] Figure 6 A schematic diagram of a routing source provided in an embodiment of the present application;
[0038] Figure 7A schematic diagram of target computing power routing information in a cross-domain scenario provided in an embodiment of the present application;
[0039] Figure 8 A schematic diagram of target computing power routing information in another cross-domain scenario provided in an embodiment of the present application;
[0040] Fig. 9 A schematic diagram of a preset transmission structure provided in an embodiment of the present application;
[0041] Fig.10 A schematic diagram of an auxiliary transmission structure provided in an embodiment of the present application;
[0042] Fig.11 A schematic diagram of a hardware structure of an electronic device to which an embodiment of the present application is applied;
[0043] Fig.12 A schematic diagram of the structure of an electronic device for message transmission in an embodiment of the present application;
[0044] Fig.13 A schematic diagram of the hardware composition structure of a computing device using an embodiment of the present application. DETAILED DESCRIPTION
[0045] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the technical solution of the present application, rather than all of the embodiments. Based on the embodiments recorded in the application documents, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the technical solution of the present application.
[0046] The following is an introduction to some concepts involved in the embodiments of the present application.
[0047] Computing service cloud: refers to remote servers and resources connected via the Internet, which can provide storage, computing, network and other functions. The computing service cloud in this application can provide computing and other functions, and can also publish computing information, etc. Among them, computing information refers to computing power information, that is, computing power information that can achieve target result output by processing information data.
[0048] Computing power routing information: routing information carried by computing power routing. Computing power routing introduces computing power factors into the Internet routing system, takes routing as the core at the protocol level, and realizes the integrated scheduling of network and computing resources. In this application, the computing power routing information in the intra-domain scenario includes computing power information, third network measurement information, and routing source, and the computing power routing information in the cross-domain scenario includes computing power information, first network measurement information, second network measurement information, third network measurement information, and routing source.
[0049] Requesting node: refers to the routing node on the user side. When a user needs to use the services provided by the computing power service cloud, after the requesting node receives the computing power routing information including computing power information, network measurement information and routing source, it calculates the target service path based on the computing power routing information and transmits the message to the actual service node based on the target service path.
[0050] Autonomous system (AS): refers to the combination of all routers under the jurisdiction of one or more entities in the Internet. These routers implement a common routing policy for the Internet.
[0051] Interior Gateway Protocol (IGP): refers to the protocol for exchanging routing information within the same autonomous domain. The IGP protocol can be used to obtain network metric information within an autonomous domain.
[0052] External Border Gateway Protocol (Border Gateway Protocol, BGP): refers to the protocol for exchanging routing information between different autonomous domains.
[0053] Network metric information: refers to the measurement of the link status between routers. When there are multiple service paths to a target node, the network metric information and computing power information are used to determine which path is the best path. Commonly used network metric information includes but is not limited to one or more of path length, reliability, delay, bandwidth, load, etc.
[0054] Autonomous System Boundary Router (ASBR): refers to a router that exchanges routing information within an autonomous domain with routing information of other autonomous domains. It is responsible for transmitting local routing information to other autonomous domains, or introducing routing information of other autonomous domains into the local area.
[0055] The preferred embodiments of the present application are described below in conjunction with the drawings in the specification. It should be understood that the preferred embodiments described herein are only used to illustrate and explain the present application, and are not used to limit the present application. In addition, the embodiments and features in the embodiments of the present application may be combined with each other if there is no conflict.
[0056] like Figure 1 As shown, it is a schematic diagram of an application scenario of message transmission provided by an embodiment of the present application. The application scenario diagram includes a terminal device 110 and a server 120.
[0057] In the embodiment of the present application, the terminal device 110 includes but is not limited to mobile phones, tablet computers, laptop computers, desktop computers, e-book readers, intelligent voice interaction devices, smart home appliances, vehicle-mounted terminals and other devices; the terminal device may be installed with a client related to message transmission, which may be software (such as a browser, media software, etc.), or a web page, a small program, etc. The server 120 is a background server corresponding to the software or web page, small program, etc., and this application does not make specific restrictions. The server may be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery networks (CDNs), and big data and artificial intelligence platforms.
[0058] It should be noted that the message transmission method in the embodiment of the present application can be executed by an electronic device, which can be a server or a terminal device, that is, the method can be executed by a server or a terminal device alone, or by a server and a terminal device together. For example, when executed by a server and a terminal device together, the terminal device responds to the service request of the object and sends the service request to the server. The server selects the target service path based on the routing source, network metric information, and computing power information in the computing power routing information, and sends the request message to the computing power service cloud based on the target service path, and then the terminal device can obtain the service required by the object and present it to the object.
[0059] In an optional implementation, the terminal device 110 and the server 120 may communicate with each other via a communication network.
[0060] In an optional implementation, the communication network is a wired network or a wireless network.
[0061] It should be noted that Figure 1 The figure is only an example. In fact, the number of terminal devices and servers is not limited and is not specifically limited in the embodiments of the present application.
[0062] The following describes the method for transmitting a message provided by an exemplary embodiment of the present application in combination with the above-described application scenarios with reference to the accompanying drawings. It should be noted that the above application scenarios are only shown for the convenience of understanding the spirit and principle of the present application, and the embodiments of the present application are not limited in this regard.
[0063] As Figure 2 shown, it is a flowchart of the implementation of a message transmission method provided by an embodiment of the present application. Taking the server as the execution entity as an example, the implementation process includes the following steps S201 to S203:
[0064] S201: Receive the initial computing power routing information published by the computing power service cloud.
[0065] In the embodiment of the present application, when the first autonomous domain is the same as the second autonomous domain, the initial computing power routing information includes the computing power information published by the computing power service cloud;
[0066] When the first autonomous domain is different from the second autonomous domain, the initial computing power routing information includes the computing power information published by the computing power service cloud, the second network metric information between the first autonomous domain and the second autonomous domain, and the third network metric information of the second autonomous domain.
[0067] Specifically, the computing power information published by the computing power service cloud is carried by the computing power route <CFN-IP, computing power metric>. CFN-IP is the Computing First Networking-Internet Protocol, and the computing power metric is the computing power metric.
[0068] Among them, CFN-IP is the specific type of the computing power service corresponding to the computing power information provided by the computing power service cloud. For example, it can be an edge service, etc. The computing power metric is an attribute for measuring the computing power service. Specifically, it can be a value representing the level of the computing power service ability. For example, when the computing power service cloud provides a strong computing power service, the computing power metric can be level ten, and when the computing power service cloud provides a weak computing power service, the computing power metric can be level one, etc. It can be flexibly set according to the actual situation and is not specifically limited in this article.
[0069] When the first autonomous domain where the requesting node is located is the same as the second autonomous domain connected to the computing power service cloud, that is, when the AS domain where the requesting node of the target device is located is the same as the AS domain connected to the computing power service cloud, the computing power service provided by the computing power service cloud belongs to the intra-domain scenario. In this case, only one autonomous domain is involved and inter-domain communication is not involved. The initial computing power routing information only includes the computing power information published by the computing power service cloud.
[0070] As Figure 3As shown in the figure, it is a schematic diagram of the initial computing power routing information for the in-domain scenario provided by the embodiment of the present application. Figure 3 As shown in the figure, it only includes one autonomous system, denoted as AS2. This autonomous system contains routers (Router, R) R1, R2, R3, and R4. Among them, R1 is connected to the object device and is called the request node, and R4 is connected to the computing power service cloud.
[0071] The object device is connected to the request node R1, and the computing power service cloud is connected to the AS2 domain through R4. At this time, the AS domain connected to the computing power service cloud is the same as the AS domain where the request node R1 is located, both are the AS2 domain. The computing power service provided by the computing power service cloud belongs to the in-domain scenario. Therefore, the initial computing power routing information includes the computing power information published by the computing power service cloud, such as this computing power information is denoted as <CFN-IP, computing power metric>.
[0072] When the first autonomous system is different from the second autonomous system, that is, when the AS domain where the request node connected by the object device is located is different from the AS domain connected to the computing power service cloud, the computing power service provided by the computing power service cloud belongs to the cross-domain scenario. In this case, two autonomous systems and inter-domain communication are involved. The initial computing power routing information includes the computing power information published by the computing power service cloud, the third network metric information of the second autonomous system, and the second network metric information between the first autonomous system and the second autonomous system.
[0073] Such as Figure 4 As shown in the figure, it is a schematic diagram of the initial computing power routing information for the cross-domain scenario provided by the embodiment of the present application. Figure 4 As shown in the figure, it includes two autonomous systems, denoted as AS1 and AS2. The AS1 domain contains routers R1 and ASBR1. Among them, R1 is connected to the object device and is called the request node, and ASBR1 is connected to the AS2 domain and is called the autonomous system boundary router. The AS2 domain contains routers R2, R3, R4, and ASBR2. Among them, ASBR2 is connected to the AS1 domain and is called the autonomous system boundary router, and R4 is connected to the computing power service cloud.
[0074] The object device is connected to the request node R1. At this time, the AS domain connected to the computing power service cloud is AS2, and the request node R1 is in AS1. Then the computing power service provided by the computing power service cloud belongs to the cross-domain scenario. Therefore, the initial computing power routing information includes the computing power information <CFN-IP, computing power metric> published by the computing power service cloud, the third network metric information <intra as2 network info> in AS2, and the second network metric information <inter as2-as1 network info> between AS1 and AS2.
[0075] Optionally, when the first autonomous domain and the second autonomous domain are different, the initial computing power routing information is obtained from the second autonomous domain border router in the second autonomous domain through the first autonomous domain border router in the first autonomous domain.
[0076] The computing power information is received by the second autonomous domain border router from the computing power service cloud and added to the initial computing power routing information.
[0077] In a cross-domain scenario, inter-domain communication between the first autonomous domain and the second autonomous domain is implemented through autonomous domain border routers corresponding to the two autonomous domains.
[0078] An optional implementation is that when the requesting node receives the initial computing power routing information, it is necessary to obtain the computing power information, the second network metric information and the third network metric information in the initial computing power routing information from the second autonomous domain border router in the second autonomous domain through the first autonomous domain border router in the first autonomous domain. The computing power information in the initial computing power routing information is received by the second autonomous domain border router from the computing power service cloud and added to the initial computing power routing information.
[0079] like Figure 5 As shown, it is a schematic diagram of obtaining initial computing power routing information in a cross-domain scenario provided by an embodiment of the present application. Figure 5 The figure shows two autonomous domains, denoted as AS1 and AS2. The AS1 domain contains routers R1 and ASBR1, where R1 is connected to the target device and is called a request node. ASBR1 is connected to the AS2 domain and is called an autonomous domain border router. The AS2 domain contains routers R2, R3, R4 and ASBR2, where ASBR2 is connected to the AS1 domain and is called an autonomous domain border router. R4 is connected to the computing service cloud.
[0080] The AS domain connected to the computing service cloud is AS2. The request node R1 connected to the target device is in AS1. The computing service provided by the computing service cloud belongs to a cross-domain scenario. The request node R1 obtains the initial computing routing information from ASBR2 through ASBR1, which includes the third network measurement information.<intra as2network info> ,like Figure 5 As shown in the first BGP update message (BGP CFN UPDATE), it carries<intra as2 network info> , the second network metric information<interas2-as1 network info> ,like Figure 5As shown in the second BGP CFN UPDATE, which carries <intra as2 network info> and <inter as2-as1 network info>, as well as computing power information <CFN-IP, computing power metric>. The computing power information <CFN-IP, computing power metric> is received by ASBR2 from R4 connected to the computing power service cloud and added to the initial computing power routing information.
[0081] When the first autonomous system is different from the second autonomous system, the third network metric information is obtained by the border router of the second autonomous system through the internal border gateway protocol associated with the second autonomous system and added to the initial computing power routing information.
[0082] In a cross-domain scenario, the third network metric information can be obtained through the IGP protocol associated with the second autonomous system or other means and added to the initial computing power routing information. Among them, other means include the Two-Way Active Measurement Protocol (TWAMP), etc., which are not specifically limited in this article.
[0083] Follow Figure 5 the assumption that the AS domain connected to the computing power service cloud is AS2, and the request node R1 to which the target device is connected is within AS1. Then, the computing power service provided by the computing power service cloud belongs to a cross-domain scenario. The third network metric information <intra as2 network info> can be obtained through the IGP protocol associated with AS2 and added to the initial computing power routing information.
[0084] Optionally, the second network metric information is the network metric information obtained by the border router of the first autonomous system through the external border gateway protocol and connected to the border router of the second autonomous system, and added to the initial computing power routing information.
[0085] In a cross-domain scenario, when the computing power routing does not carry the network metric information outside the domain at this time, it can be supplemented by carrying the path attribute through the BGP protocol, that is, the border router of the first autonomous system obtains the second network metric information connected to the border router of the second autonomous system through the BGP protocol and adds it to the initial computing power routing information.
[0086] Follow Figure 5 the assumption that the AS domain connected to the computing power service cloud is AS2, and the request node R1 to which the target device is connected is within AS1. Then, the computing power service provided by the computing power service cloud belongs to a cross-domain scenario. The second network metric information can be obtained by ASBR1 through the BGP protocol to obtain the second network metric information connected to ASBR2 and added to the initial computing power routing information.
[0087] Based on the above implementation method, this application obtains network measurement information outside the domain through the BGP protocol to make up for the lack of network measurement information from the user end to the server end.
[0088] It should be noted that there may be one or more computing power service clouds in the embodiment of the present application. That is, there is at least one computing power service cloud. In this case, the initial computing power routing information corresponds to the computing power service cloud one by one, and there is a computing power node routing connected to each computing power service cloud in the second autonomous domain.
[0089] In the above case, different computing node routes have different routing sources. Optionally, for each computing node route, perform the following operations respectively:
[0090] The first autonomous domain border router in the first autonomous domain receives the corresponding routing source from a computing power node routing through the second autonomous domain border router in the second autonomous domain, and adds the routing source to the corresponding initial computing power routing information.
[0091] In an embodiment of the present application, when there is at least one computing power service cloud, each computing power service cloud is connected to a computing power node route. Each computing power service cloud is located in a different location and can provide various application services. All computing power service clouds can provide services with the same capabilities for the same application. When the object device needs to obtain a certain service, for each computing power node route, the first autonomous domain border router receives the corresponding routing source from a computing power node route through the second autonomous domain border router, and adds the routing source to the corresponding initial computing power routing information.
[0092] like Figure 6 As shown, it is a schematic diagram of a routing source provided in an embodiment of the present application. Figure 6 The figure shows two autonomous domains, denoted as AS1 and AS2. The AS1 domain contains routers R1 and ASBR1, where R1 is connected to the target device and is called a request node. ASBR1 is connected to the AS2 domain and is called an autonomous domain border router. The AS2 domain contains routers R2, R3, R4 and ASBR2, where ASBR2 is connected to the AS1 domain and is called an autonomous domain border router. R2, R3, and R4 are connected to computing service cloud 1, computing service cloud 2, and computing service cloud 3 respectively. R2, R3, and R4 are all called computing node routers.
[0093] Figure 6There are three computing power service clouds, as well as the corresponding three computing power node routers R2, R3, and R4. When the requesting node connected by the object device is within AS1 and the three computing power node routers are within AS2, this is a cross-domain scenario. For each computing power node router, the ASBR1 within AS1 receives the corresponding routing source from each computing power node router through the ASBR2 within AS2, and adds each routing source to the corresponding initial computing power routing information, and finally obtains three initial computing power routing information.
[0094] Then, based on these three initial computing power routing information, computing power information, first network metric information, second network metric information, and third network metric information can be obtained and added to the corresponding initial computing power routing information to obtain the corresponding three target computing power routing information. The optimal path is calculated according to these three target computing power routing information. According to the optimal path, the message is sent to an actual service node, that is, one of R2, R3, and R4. The actual service node sends the message to the corresponding service on the computing power service cloud corresponding to the actual service node according to the target computing power routing information.
[0095] S202: Obtain the first network metric information of the first autonomous system through the interior border gateway protocol associated with the first autonomous system, and add the first network metric information to the initial computing power routing information to obtain the target computing power routing information.
[0096] Among them, the requesting node is located in the first autonomous system.
[0097] For the intra-domain scenario and the cross-domain scenario, the requesting node connected by the object device obtains the first network metric information through the IGP protocol associated with the first autonomous system, and adds the first network metric information to the initial computing power routing information to obtain the target computing power routing information.
[0098] For the intra-domain scenario, following Figure 3 the assumption, the object device connects to the requesting node ASBR2. At this time, the AS domain connecting to the computing power service cloud is the same as the AS domain where the requesting node ASBR2 is located. The computing power service provided by the computing power service cloud belongs to the intra-domain scenario. Therefore, the initial computing power routing information includes the computing power information <CFN-IP, computing power metric> published by the computing power service cloud. The requesting node connected by the object device obtains the third network metric information through the IGP protocol associated with AS1, and adds the first network metric information to the initial computing power routing information to obtain the target computing power routing information.
[0099] For the cross-domain scenario, as Figure 7 shown, it is a schematic diagram of the target computing power routing information in a cross-domain scenario provided by an embodiment of the present application. Figure 7The figure shows two autonomous systems, denoted as AS1 and AS2. AS1 contains router R1 and ASBR1. Among them, R1 is connected to the object device, which is called the requesting node. ASBR1 is connected to AS2, which is called the autonomous system boundary router. AS2 contains routers R2, R3, R4 and ASBR2. Among them, ASBR2 is connected to AS1, which is called the autonomous system boundary router. R4 is connected to the computing power service cloud, which is called the computing power node router.
[0100] The object device is connected to the requesting node R1. At this time, the AS domain connected to the computing power service cloud is AS2. The requesting node R1 is within AS1. Then, the computing power service provided by the computing power service cloud belongs to a cross-domain scenario. Therefore, the initial computing power routing information includes the computing power information <CFN-IP, computing power metric> published by the computing power service cloud. The requesting node R1 obtains the third network metric information <intra as2 network info> from the IGP protocol associated with AS2 through ASBR1 and ASBR2, and adds it to the initial computing power routing information, as Figure 7 shown in the first BGP CFN UPDATE in the figure, which carries <intra as2 network info>; the requesting node R1 obtains the second network metric information <inter as2-as1 network info> connected to ASBR2 from ASBR1 through the BGP protocol and adds it to the initial computing power routing information, as Figure 7 shown in the second BGP CFN UPDATE in the figure, which carries <intra as2 network info> and <inter as2-as1 network info>; the requesting node obtains the first network metric information through the IGP protocol associated with AS1 and adds the first network metric information to the initial computing power routing information to obtain the target computing power routing information <intra as1network info> and adds it to the initial computing power routing information, as Figure 7 shown in the third BGP CFN UPDATE in the figure, which carries <intra as2 network info>, <inter as2-as1network info> and <intra as1 network info>, and obtains the target computing power routing information.
[0101] In addition, in the embodiments of the present application, for cross-domain scenarios, the number of AS domains may be more than two, and the corresponding network metric information may be more than three. The inter-domain network metric information between any two AS domains is obtained through the BGP protocol. The following is a simple example with three AS domains.
[0102] As Figure 8As shown, it is a schematic diagram of target computing power routing information in another cross-domain scenario provided by an embodiment of the present application. Figure 7 As shown, it includes three autonomous systems, denoted as AS1, AS2, and AS3. Inside the AS1 domain, there are router R1 and ASBR1. Among them, R1 is connected to the object device and is called the request node. ASBR1 is connected to ASBR2 in the AS2 domain and is called the autonomous system boundary router. Inside the AS2 domain, there are routers ASBR2 and ASBR3. ASBR3 is connected to ASBR4 in the AS3 domain. Inside the AS3 domain, there are routers R2, R3, R4, and ASBR4. Among them, ASBR4 is connected to ASBR3 in the AS2 domain and is called the autonomous system boundary router. R4 is connected to the computing power service cloud and is called the computing power node route.
[0103] The object device is connected to the request node R1. At this time, the AS domain connected to the computing power service cloud is AS3. The request node R1 is inside AS1. Then, the computing power service provided by the computing power service cloud belongs to the cross-domain scenario. Therefore, the initial computing power routing information includes the computing power information <CFN-IP, computing power metric> published by the computing power service cloud. The request node R1 obtains the fifth network metric information <intra as3 network info> from ASBR4 associated with AS3 through ASBR1, ASBR2, and ASBR3 by the IGP protocol associated with AS3 and adds it to the initial computing power routing information, as Figure 8 shown in the first BGP CFN UPDATE in the figure, which carries <intra as3network info>; the request node R1 obtains the fourth network metric information <inter as3-as2 network info> of the connection between ASBR3 and ASBR4 through ASBR1 and ASBR2 by the BGP protocol and adds it to the initial computing power routing information, as Figure 8 shown in the second BGP CFN UPDATE in the figure, which carries <intra as3 network info> and <inter as3-as2networkinfo>; the request node obtains the third network metric information <intra as2 networkinfo> through the IGP protocol associated with AS2 and adds it to the initial computing power routing information, as Figure 8 shown in the third BGP CFN UPDATE in the figure, which carries <intraas3 network info>, <inter as3-as2 network info>, and <intra as2 network info>; the request node R1 obtains the second network metric information <inter as2-as1network info> of the connection with ASBR2 through ASBR1 by the BGP protocol and adds it to the initial computing power routing information, as Figure 8 As shown in the fourth BGP CFN UPDATE, it carries<intra as3 network info> ,<inter as3-as2 network info> ,<intra as2 networkinfo> and<inter as2-as1 network info> ; The requesting node obtains the first network metric information through the IGP protocol associated with AS1<intra as1 network info> , and add it to the initial computing power routing information to obtain the target computing power routing information, such as Figure 8 As shown in the fifth BGP CFN UPDATE, it carries<intra as3 network info> ,<interas3-as2 network info> ,<intra as2 network info> ,<inter as2-as1 network info> and<inter as1 network info> .
[0104] Based on the above implementation method, this application obtains network measurement information outside the domain through the BGP protocol to make up for the lack of network measurement information from the user end to the server end, and can realize the transmission of network measurement information and computing power information in both intra-domain scenarios and cross-domain scenarios.
[0105] S203: Select a target service path according to the target computing power routing information, and send the request message to the computing power service cloud through the target service path, where the target service path includes an actual service node located in the second autonomous domain.
[0106] Among them, the second autonomous domain is connected to the computing power service cloud.
[0107] Specifically, according to the routing source, computing power information and network metric information in the target computing power routing information, the network metric value and computing power metric value are generated by calculation. After selecting the optimal path according to the network metric value and computing power metric value, the requesting node receives the traffic of the target device and sends the message to the actual service node in the optimal path according to the optimal path. The actual service node sends the message to the corresponding service on the computing power service cloud corresponding to the actual service node according to the target computing power routing information.
[0108] Continue to use Figure 6 Assumptions, Figure 6There are three computing power service clouds and three corresponding computing power node routes, then the corresponding three target computing power routing information are obtained, and the three target routing information are calculated. According to the calculation results, the optimal path is selected from the requesting node R1-ASBR1-ASBR2-R2. Therefore, the actual service node is R2, and R2 corresponds to the computing power service cloud 2. After the requesting node R1 receives the traffic of the target device, it sends the message to the actual service node R2 according to the optimal path. R2 sends the message to the corresponding service on the computing power service cloud 2 corresponding to R2 according to the target computing power routing information.
[0109] In the above implementation mode, the present application obtains network measurement information outside the domain through the BGP protocol to make up for the lack of network measurement information from the user end to the server end. It can realize the transmission of network measurement information and computing power information in both intra-domain scenarios and cross-domain scenarios, and calculate the optimal path based on the computing power information, routing source, and network measurement information, and send the message to the corresponding computing power service cloud service according to the optimal path.
[0110] In addition, the network metric information is obtained through a preset transmission structure, and the network metric information is at least one of the first network metric information, the second network metric information, and the third network metric information;
[0111] In an optional embodiment, the preset transmission structure includes a type, a length and a value; wherein the type indicates that the data type transmitted based on the preset transmission structure is a network measurement information type, the value indicates the data value transmitted based on the preset transmission structure, and the length indicates the length of the value.
[0112] The preset transmission structure is a TLV structure, which is composed of a type (Type), a length (Length), and a value (Value). Type is 2 bytes, Length is 2 bytes, and Value is composed of one or more values. The value can be a primitive data type (Primitive Data) or another TLV structure (Constructed Data).
[0113] like Fig. 9 FIG. 1 is a schematic diagram of a preset transmission structure provided in an embodiment of the present application. The data type transmitted based on the transmission structure in the present application is network metric information. Fig. 9 The Type value in is uncertain and needs to be applied to the Internet Assigned Numbers Authority (IANA). IANA will assign the Type value and convert the assigned Type value into a 2-byte binary form. Value represents the data value of the network measurement information transmitted based on the preset transmission structure.
[0114] In an optional embodiment, the value structure is an auxiliary transmission structure, which includes an auxiliary type, source autonomous domain information, target autonomous domain information, a network metric information value, and the length of the network metric information value, wherein the auxiliary type is the type of the network metric information value.
[0115] Among them, the subsidiary transmission structure is SUB-TLV, including the subsidiary type (Sub_Type) of 1 byte, the source autonomous domain information (From AS) of 2 bytes, the target autonomous domain information (to AS) of 2 bytes, the network metric information value (Sub_Value), and the length of the network metric information value (Sub_Length) of 1 byte.
[0116] like Fig.10 As shown, it is a schematic diagram of an auxiliary transmission structure provided by an embodiment of the present application. For example, if the Value network measurement information in the TLV corresponding to the SUB-TLV is bandwidth, assuming that its auxiliary type is 2, then the Sub_Type value is 2, which is converted into a 1-byte binary form, and the Value network measurement information in the corresponding TLV is sent from AS2 to AS1, then the From AS value is AS2, and the to AS value is AS1, which is converted into a 2-byte binary form. Assuming that the Sub_Value value is 100ms of 2 bytes, then the 100ms is converted into a 2-byte binary form, and the Sub_Length is the corresponding length 2, that is, the length of the Sub_Value is 2 bytes, which is converted into a 1-byte binary form.
[0117] In the above implementation, in a cross-domain scenario, the requesting node obtains the network measurement information between autonomous domains through the BGP protocol, which solves the problem of missing out-of-domain information in the network measurement information; the newly added network measurement information between autonomous domains is compatible with the BGP network architecture, and therefore does not affect the message sending and receiving processing before the addition; in addition to the above application scenarios, this implementation can also be applied to other ordinary non-computing power services, and the collection of network measurement information is achieved through the above implementation.
[0118] Based on the same inventive concept as the above method embodiment, an electronic device is also provided in the embodiment of the present application. In one embodiment, the electronic device may be Figure 1 The terminal device 110 shown in FIG. 1 is a terminal device 110 shown in FIG. 1 . In this embodiment, the structure of the electronic device can be as follows: Fig.11 As shown, it includes a memory 1101 , a communication module 1103 and one or more processors 1102 .
[0119] The memory 1101 is used to store computer programs executed by the processor 1102. The memory 1101 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system and programs required for running the instant messaging function, etc.; the data storage area may store various instant messaging information and operation instruction sets, etc.
[0120] The memory 1101 may be a volatile memory, such as a random-access memory (RAM); the memory 1101 may also be a non-volatile memory, such as a read-only memory, a flash memory, a hard disk drive (HDD) or a solid-state drive (SSD); or the memory 1101 may be any other medium that can be used to carry or store a desired computer program in the form of instructions or data structures and can be accessed by a computer, but is not limited thereto. The memory 1101 may be a combination of the above memories.
[0121] The processor 1102 may include one or more central processing units (CPU) or a digital processing unit, etc. The processor 1102 is configured to implement the above-mentioned message transmission method when calling the computer program stored in the memory 1101 .
[0122] The communication module 1103 is used to communicate with terminal devices and other servers.
[0123] The specific connection medium between the memory 1101, the communication module 1103 and the processor 1102 is not limited in the embodiment of the present application. Fig.11 In the embodiment, the memory 1101 and the processor 1102 are connected via a bus 1104. The bus 1104 is connected to the processor 1102 via a bus 1104. Fig.11 The connections between the other components are described with bold lines, which are only for illustration and are not intended to be limiting. The bus 1104 can be divided into an address bus, a data bus, a control bus, etc. For ease of description, Fig.11 The diagram shows that only one thick line is used, but this does not mean that there is only one bus or one type of bus.
[0124] The memory 1101 stores a computer storage medium, and the computer storage medium stores computer executable instructions, and the computer executable instructions are used to implement the message transmission method of the embodiment of the present application. The processor 1102 is used to execute the above-mentioned message transmission method.
[0125] In some implementations, after the method executed by the processor forms a program, the hardware execution modules corresponding to the various program function modules may include: a receiving module, an acquisition module and a sending module, and the receiving module, the acquisition module and the sending module are connected.
[0126] like Fig.12 As shown, it is a schematic diagram of the composition structure of a message transmission device 120 in an embodiment of the present application. The message transmission device includes a receiving module 1201, an acquisition module 1202, and a sending module 1203, wherein:
[0127] Receiving module 1201, used to receive initial computing power routing information published by the computing power service cloud;
[0128] The acquisition module 1202 is used to acquire first network metric information of the first autonomous domain through an internal border gateway protocol associated with the first autonomous domain, and add the first network metric information to the initial computing power routing information to obtain target computing power routing information; wherein the requesting node is located in the first autonomous domain;
[0129] The sending module 1203 is used to select a target service path according to the target computing power routing information, and send the request message to the computing power service cloud through the target service path. The target service path includes an actual service node located in the second autonomous domain; wherein the second autonomous domain is connected to the computing power service cloud.
[0130] Optionally, when the first autonomous domain is the same as the second autonomous domain, the initial computing power routing information includes computing power information published by the computing power service cloud;
[0131] When the first autonomous domain and the second autonomous domain are different, the initial computing power routing information includes the computing power information released by the computing power service cloud, the second network measurement information between the first autonomous domain and the second autonomous domain, and the third network measurement information of the second autonomous domain.
[0132] Optionally, when the first autonomous domain is different from the second autonomous domain, the receiving module 1201 is specifically configured to:
[0133] The initial computing power routing information is obtained from the second autonomous domain border router in the second autonomous domain through the first autonomous domain border router in the first autonomous domain; wherein the computing power information is received by the second autonomous domain border router from the computing power service cloud and added to the initial computing power routing information.
[0134] Optionally, the second network metric information is the network metric information of the first autonomous domain border router connected to the second autonomous domain border router obtained through the external border gateway protocol, and added to the initial computing power routing information; the third network metric information is the network metric information of the second autonomous domain border router obtained through the internal border gateway protocol associated with the second autonomous domain and added to the initial computing power routing information.
[0135] Optionally, when there is at least one computing power service cloud, the initial computing power routing information corresponds one-to-one with the computing power service cloud, and there is a computing power node routing connected to each computing power service cloud in the second autonomous domain;
[0136] The receiving module 1201 is further used for:
[0137] For each computing node route, perform the following operations:
[0138] The first autonomous domain border router in the first autonomous domain receives the corresponding routing source from a computing power node routing through the second autonomous domain border router in the second autonomous domain, and adds the routing source to the corresponding initial computing power routing information.
[0139] Optionally, the network metric information is obtained through a preset transmission structure, and the network metric information is at least one of the first network metric information, the second network metric information, and the third network metric information;
[0140] The preset transmission structure includes type, length and value; wherein the type indicates that the data type transmitted based on the preset transmission structure is the network measurement information type, the value indicates the data value transmitted based on the preset transmission structure, and the length indicates the length of the value.
[0141] Optionally, the structure of the value is an auxiliary transmission structure, which includes an auxiliary type, source autonomous domain information, target autonomous domain information, network metric information value, and the length of the network metric information value, wherein the auxiliary type is the type of the network metric information value.
[0142] For the convenience of description, the above parts are divided into modules (or units) according to their functions and described separately. Of course, when implementing the present application, the functions of each module (or unit) can be implemented in the same one or more software or hardware. It can be understood by those skilled in the art that various aspects of the present application can be implemented as a system, method or program product. Therefore, various aspects of the present application can be specifically implemented in the following forms, namely: a complete hardware implementation method, a complete software implementation method (including firmware, microcode, etc.), or an implementation method combining hardware and software, which can be collectively referred to as "circuit", "module" or "system" here.
[0143] Refer to the following Fig.13 1300 according to this embodiment of the present application is described. Fig.13 The computing device 1300 is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.
[0144] like Fig.13The computing device 1300 is in the form of a general computing device. The components of the computing device 1300 may include, but are not limited to: at least one processing unit 1301, at least one storage unit 1302, and a bus 1303 connecting different system components (including the storage unit 1302 and the processing unit 1301).
[0145] Bus 1303 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, a processor, or a local bus using any of a variety of bus architectures.
[0146] The storage unit 1302 may include a readable medium in the form of a volatile memory, such as a random access memory (RAM) 1321 and / or a cache memory 1322 , and may further include a read-only memory (ROM) 1323 .
[0147] The storage unit 1302 may also include a program / utility 1325 having a set (at least one) of program modules 1324, such program modules 1324 including but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment.
[0148] The computing device 1300 may also communicate with one or more external devices 1304 (e.g., keyboards, pointing devices, etc.), one or more devices that enable a user to interact with the computing device 1300, and / or any device that enables the computing device 1300 to communicate with one or more other computing devices (e.g., routers, modems, etc.). Such communication may be performed via input / output (I / O) interface 1305. Furthermore, the computing device 1300 may also communicate with one or more networks (e.g., local area networks (LANs), wide area networks (WANs), and / or public networks, such as the Internet) via network adapter 1306. Fig.13 As shown, the network adapter 1306 communicates with other modules for the computing device 1300 via the bus 1303. It should be understood that, although not shown in the figure, other hardware and / or software modules can be used in conjunction with the computing device 1300, including but not limited to: microcode, device drivers, redundant processors, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.
[0149] The embodiment of the present application also provides a computer program product, and the method in the present application can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer programs or instructions. When the computer program or instruction is loaded and executed on a computer, the process or function described in the present application is executed in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, a network device, a user device, a core network device, an OAM or other programmable device.
[0150] A computer-readable storage medium can be implemented as a computer program product, that is, an embodiment of the present application also provides a computer-readable storage medium, which includes a computer program, and when the computer program is executed by a processor, it implements a method for transmitting any of the above-mentioned messages.
[0151] The computer program or instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer program or instructions may be transmitted from one website, computer, server or data center to another website, computer, server or data center by wired or wireless means. The computer-readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server or data center that integrates one or more available media. The available medium may be a magnetic medium, such as a floppy disk, a hard disk, or a magnetic tape; it may also be an optical medium, such as a digital video disk; it may also be a semiconductor medium, such as a solid-state drive. The computer-readable storage medium may be a volatile or non-volatile storage medium, or may include both volatile and non-volatile types of storage media.
[0152] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.
[0153] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0154] These computer program instructions may also be stored in a computer readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer readable memory produce an article of manufacture including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0155] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0156] Obviously, those skilled in the art can make various changes and modifications to the present application without departing from the spirit and scope of the present application. Thus, if these modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is also intended to include these modifications and variations.
Claims
1. A message transmission method, characterized in that: Applied to a requesting node, the method comprises: Receive the initial computing power routing information published by the computing power service cloud; Obtaining first network metric information of the first autonomous domain through an internal border gateway protocol associated with the first autonomous domain, and adding the first network metric information to the initial computing power routing information to obtain target computing power routing information; wherein the requesting node is located in the first autonomous domain; A target service path is selected according to the target computing power routing information, and a request message is sent to the computing power service cloud through the target service path, wherein the target service path includes an actual service node located in a second autonomous domain; wherein the second autonomous domain is connected to the computing power service cloud.
2. The method according to claim 1, characterized in that When the first autonomous domain is the same as the second autonomous domain, the initial computing power routing information includes computing power information published by the computing power service cloud; When the first autonomous domain and the second autonomous domain are different, the initial computing power routing information includes the computing power information published by the computing power service cloud, the second network measurement information between the first autonomous domain and the second autonomous domain, and the third network measurement information of the second autonomous domain.
3. The method according to claim 2, characterized in that When the first autonomous domain is different from the second autonomous domain, the receiving initial computing power routing information published by the computing power service cloud includes: The initial computing power routing information is obtained from the second autonomous domain border router in the second autonomous domain through the first autonomous domain border router in the first autonomous domain; wherein the computing power information is received by the second autonomous domain border router from the computing power service cloud and added to the initial computing power routing information.
4. The method according to claim 3, characterized in that The second network metric information is the network metric information connected to the second autonomous domain border router obtained by the first autonomous domain border router through the external border gateway protocol, and added to the initial computing power routing information; the third network metric information is the network metric information connected to the second autonomous domain border router obtained by the internal border gateway protocol associated with the second autonomous domain and added to the initial computing power routing information.
5. The method according to claim 1, characterized in that When there is at least one computing power service cloud, the initial computing power routing information corresponds to the computing power service cloud one by one, and there is a computing power node routing connected to each computing power service cloud in the second autonomous domain; the method further includes: For each computing node route, perform the following operations: The first autonomous domain border router in the first autonomous domain receives the corresponding routing source from a computing power node routing through the second autonomous domain border router in the second autonomous domain, and adds the routing source to the corresponding initial computing power routing information.
6. The method according to any one of claims 2 to 4, characterized in that: The network metric information is obtained through a preset transmission structure, and the network metric information is at least one of the first network metric information, the second network metric information, and the third network metric information; The preset transmission structure includes a type, a length and a value; wherein the type indicates that the data type transmitted based on the preset transmission structure is a network metric information type, the value indicates the data value transmitted based on the preset transmission structure, and the length indicates the length of the value.
7. The method according to claim 6, characterized in that The structure of the value is an auxiliary transmission structure, which includes an auxiliary type, source autonomous domain information, target autonomous domain information, a network metric information value, and the length of the network metric information value, wherein the auxiliary type is the type of the network metric information value.
8. A message transmission device, characterized in that: Applied to the requesting node, including: A receiving unit, used to receive the initial computing power routing information published by the computing power service cloud; an acquiring unit, configured to acquire first network metric information of the first autonomous domain through an internal border gateway protocol associated with the first autonomous domain, and add the first network metric information to the initial computing power routing information to obtain target computing power routing information; wherein the requesting node is located in the first autonomous domain; A sending unit, used to select a target service path according to the target computing power routing information, and send the request message to the computing power service cloud through the target service path, wherein the target service path includes an actual service node located in a second autonomous domain; wherein the second autonomous domain is connected to the computing power service cloud.
9. An electronic device, characterized in that: It comprises a processor and a memory, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor executes the steps of any one of the methods of claims 1 to 7.
10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.