Network node determination method and device

By assigning node identifiers to network nodes and binding location information, the problem of tight IP address resources is solved, dynamic expansion and flexible management of network node addresses is realized, the network's expansion needs for address space is met, and the IP address is reduced rely.

CN119109905AActive Publication Date: 2024-12-10CHINA UNITED NETWORK COMM GRP CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202411304134.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-18
Publication Date
2024-12-10
Estimated Expiration
2044-09-18

AI Technical Summary

Technical Problem

The traditional IP address space is difficult to meet the growing demand for network equipment access, resulting in shortage of IP address resources. The existing technology is highly dependent on IP addresses, making it difficult to achieve dynamic expansion and flexible management of network node addresses.

Method used

By assigning node identifiers to network nodes and determining node location information based on node identifiers, forwarding of service requests is realized, avoiding dependence on IP addresses, using servers to assign node identifiers to network nodes, and binding them with location information, dynamically expanding network nodes address.

Benefits of technology

It effectively avoids semantic overload of IP addresses, realizes dynamic expansion and flexible management of network node addresses, meets the network's expansion needs for address space, and reduces dependence on IP addresses.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119109905A_ABST
    Figure CN119109905A_ABST
Patent Text Reader

Abstract

The invention provides a network node determination method and device, relates to the technical field of communication, and can determine a corresponding network resource based on a node identifier of a network node, so that the problem of IP address semantic overload can be effectively avoided, and the expansion requirement of a network for an address space is met. The method comprises the following steps: receiving a service request carrying a node identifier sent by a terminal device, then determining position information of a second network node matched with the node identifier, and sending the service request to the second network node based on the position information of the second network node.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of communication technology, and in particular to a method and device for determining a network node. Background Art

[0002] In the current network architecture, the main mode is end-to-end communication centered on the host. In this mode, data interaction between network users and servers is achieved through communication channels pre-established by Internet Protocol (IP) addresses. Among them, IP addresses are used to identify and locate each device on the network. For example, network devices such as routers can determine the source and destination of data packets based on IP addresses to ensure that data packets are forwarded to the destination accurately and quickly. Therefore, current network communications strongly rely on IP addresses.

[0003] However, with the rapid development of the Internet, edge computing nodes and smart terminal devices are ubiquitously deployed and dynamically changing, IP address resources are becoming increasingly tight, and traditional IP address space can hardly meet the growing demand for network device access. Summary of the invention

[0004] The present application provides a network node determination method and device, which can assign node identifiers to network nodes accessing the network, and determine corresponding network resources based on the node identifiers of the network nodes. This can effectively avoid IP address semantic overload and the problem of high dependence on IP addresses, realize dynamic expansion and flexible management of network node addresses, and meet the network's expansion requirements for address space.

[0005] In order to achieve the above objectives, this application adopts the following technical solutions:

[0006] In a first aspect, the present application provides a network node determination method, which may be performed by a first network node, and the method includes:

[0007] A service request sent by a terminal device is received. The service request carries a node identifier, and the node identifier is generated based on attribute information of the second network node.

[0008] The location information of the second network node matching the node identifier is determined.

[0009] Based on the location information of the second network node, a service request is sent to the second network node.

[0010] Based on the above technical solution, the first network node can determine the location information of the second network node that matches the node identifier based on the node identifier carried in the service request, and then send the service request to the second network node based on the location information of the second network node. In this way, the first network node can forward the service request based on the node identifier carried in the service request, rather than forwarding the service request through the IP address, which can avoid the problem of high dependence on the IP address.

[0011] Optionally, determining the location information of the second network node that matches the node identifier may include: sending a resolution request to a server so that the server determines the location information of the second network node based on the node identifier carried in the resolution request, and then receiving the location information of the second network node sent by the server.

[0012] Optionally, the first network node stores node information of multiple network nodes, and the node information of each network node includes a node identifier and location information of the network node.

[0013] On this basis, determining the location information of the second network node that matches the node identifier may include: determining the location information of the second network node that matches the node identifier from node information of multiple network nodes.

[0014] Optionally, based on the location information of the second network node, before sending a service request to the second network node, it may also include: determining at least one path based on the location information of the first network node and the location information of the second network node, and then determining the optimal path for each path based on the network delay and / or network packet loss rate corresponding to the path.

[0015] The network delay corresponding to each path is used to reflect the time it takes for a service request to reach the second network node from the first network node. The network packet loss rate corresponding to each path is used to reflect the number of packets lost during the process of a service request from the first network node to the second network node.

[0016] On this basis, based on the location information of the second network node, sending the service request to the second network node may include: sending the service request to the second network node through an optimal path.

[0017] Optionally, the second network node may be a computing power node.

[0018] Optionally, the above method may further include: acquiring node information of multiple network nodes, and then broadcasting the node information of each network node.

[0019] In a second aspect, the present application provides a network node determination method, which can be performed by a server, and the method includes:

[0020] A resolution request sent by the first network node is received.

[0021] Based on the node identifier carried in the resolution request, location information of a second network node matching the node identifier is determined.

[0022] The location information of the second network node is sent to the first network node.

[0023] Based on the above technical solution, after the server receives the resolution request sent by the first network node, it can determine the location information of the second network node that matches the node identifier based on the node identifier carried in the resolution request, and send the location information of the second network node to the first network node, so that the first network node can forward the service request to the second network node based on the location information of the second network node.

[0024] Optionally, the above method may further include: receiving a registration request sent by the second network node, then allocating a node identifier to the second network node based on attribute information of the second network node, and sending the node identifier to the second network node.

[0025] The registration request carries the attribute information of the second network node. The node identifier of the second network node is bound to the location information of the second network node.

[0026] Through the above solution, after receiving the registration request of each second network node, the server can allocate a node identifier for the second network node based on the attribute information of the second network node, bind the node identifier of the second network node and the location information of the second network node to each other, and then send the node identifier to the second network node. In this way, by allocating node identifiers to network nodes, the problem of semantic overload of IP addresses can be effectively avoided, and dynamic expansion and flexible management of network node addresses can be achieved, meeting the network's expansion requirements for address space.

[0027] Optionally, allocating a node identifier to the second network node based on the attribute information of the second network node may also include: verifying the attribute information of the second network node, and if the verification passes, allocating a node identifier to the second network node based on the attribute information of the second network node.

[0028] In a third aspect, the present application provides a network node determination device, the device being located at a first network node, including:

[0029] The transceiver unit is used to receive the service request sent by the terminal device.

[0030] The determining unit is configured to determine the location information of the second network node that matches the node identifier.

[0031] The transceiver unit is further configured to send a service request to the second network node based on the location information of the second network node.

[0032] Optionally, the transceiver unit is further configured to send a resolution request to the server, so that the server determines the location information of the second network node based on the node identifier carried in the resolution request, and then receive the location information of the second network node sent by the server.

[0033] Optionally, the first network node stores node information of multiple network nodes, and the node information of each network node includes the node identifier and location information of the network node. On this basis, the determination unit is also used to determine the location information of a second network node that matches the node identifier from the node information of the multiple network nodes.

[0034] Optionally, the determination unit is further used to determine at least one path based on the location information of the first network node and the location information of the second network node, and then determine the optimal path for each path based on the network delay and / or network packet loss rate corresponding to the path.

[0035] Optionally, the transceiver unit is further used to obtain node information of multiple network nodes, and then broadcast the node information of each network node.

[0036] In a fourth aspect, the present application provides a network node determination device, the device being located in a server and comprising:

[0037] The transceiver unit is used to receive a resolution request sent by the first network node.

[0038] The processing unit is configured to allocate a node identifier to the second network node based on the attribute information of the network node.

[0039] The transceiver unit is further configured to send a node identifier to the second network node.

[0040] Optionally, the transceiver unit is further configured to receive a registration request sent by the second network node.

[0041] Optionally, the processing unit is further configured to allocate a node identifier to the second network node based on the attribute information of the second network node.

[0042] Optionally, the transceiver unit is further configured to send a node identifier to the second network node.

[0043] In a fifth aspect, the present application provides a network node determination device, the device comprising: a processor and a communication interface. The communication interface is coupled to the processor, and the processor is used to run a computer program or instruction to implement the network node determination method described in any one of the first aspect and any possible implementation of the first aspect, or the network node determination method described in any one of the second aspect and any possible implementation of the second aspect.

[0044] In a sixth aspect, the present application provides a computer-readable storage medium, which stores instructions. When the instructions are executed on a terminal, the terminal executes a network node determination method as described in the first aspect and any possible implementation of the first aspect, or a network node determination method as described in the second aspect and any possible implementation of the second aspect.

[0045] In a seventh aspect, the present application provides a computer program product, which includes computer instructions. When the computer instructions are run on a computer, the computer executes the network node determination method described in any one of the first aspect and any possible implementation of the first aspect, or the network node determination method described in any one of the second aspect and any possible implementation of the second aspect.

[0046] It can be understood that the beneficial effects that can be achieved by the third to seventh aspects provided above can refer to the beneficial effects of any possible design method of the network node determination method described in the first aspect and any possible implementation method of the first aspect, or the beneficial effects of any possible design method of the network node determination method described in the second aspect and any possible implementation method of the second aspect, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0047] Figure 1 An architecture diagram of a network node determination system provided in an embodiment of the present application;

[0048] Figure 2 An architecture diagram of another network node determination system provided in an embodiment of the present application;

[0049] Figure 3 A flowchart of a method for determining a network node provided in an embodiment of the present application;

[0050] Figure 4 An interactive flow chart of a network node determination method provided in an embodiment of the present application;

[0051] Figure 5 A schematic diagram of the structure of a network node determination device provided in an embodiment of the present application;

[0052] Figure 6 A schematic diagram of the structure of another network node determination device provided in an embodiment of the present application;

[0053] Figure 7 A schematic diagram of the structure of another network node determination device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0054] A network node determination method and device provided in an embodiment of the present application are described in detail below with reference to the accompanying drawings.

[0055] The term "and / or" in this article is merely a description of the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone.

[0056] The terms "first" and "second" and the like in the specification and drawings of this application are used to distinguish different objects, or to distinguish different processing of the same object, rather than to describe a specific order of objects.

[0057] In addition, the terms "including" and "having" and any variations thereof mentioned in the description of the present application are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device comprising a series of steps or units is not limited to the listed steps or units, but may optionally include other steps or units that are not listed, or may optionally include other steps or units that are inherent to these processes, methods, products or devices.

[0058] It should be noted that, in the embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way.

[0059] In the current digital age, network communication has become the core driving force for social and economic development. The traditional network architecture mainly relies on a host-centric end-to-end communication model, in which network users and servers have their own corresponding IP addresses, and the communication channel pre-established by the IP address enables data interaction between network users and servers.

[0060] IP addresses are the basis for network devices to communicate in the network and are used to identify and locate each device on the network. Network devices such as routers determine the source and destination of data packets based on IP addresses, ensuring that data packets can reach their destinations accurately and quickly. At the same time, whether sending emails, browsing the web or making video calls, all data transmission depends on the correct configuration and use of IP addresses. Therefore, current network communications are highly dependent on the effective management and allocation of IP addresses.

[0061] However, with the rapid development of the Internet, edge computing nodes and smart terminal devices are ubiquitously deployed and dynamically changing, and the IP architecture is facing the problem of address resource exhaustion. The traditional Internet Protocol version 4 (IPv4) address space can no longer meet the growing demand. Although the introduction of Internet Protocol version 6 (IPv6) has alleviated this problem to a certain extent, the transition and deployment process is complicated, and the popularization and application of IPv6 still faces many challenges.

[0062] In order to solve the above technical problems, an embodiment of the present application provides a network node determination method, and the server can assign a node identifier to the second network node, and bind the node identifier and location information of the second network node to each other. In this way, by assigning a node identifier to the second network node, the problem of semantic overload of the IP address can be effectively avoided, and the dynamic expansion and flexible management of the network node address can be realized to meet the network's expansion requirements for the address space. The first network node can determine the location information of the second network node that matches the node identifier based on the node identifier carried in the service request, and then send the service request to the second network node based on the location information of the second network node. In this way, the first network node can forward the service request based on the node identifier carried in the service request, rather than forwarding the service request through the IP address, which can avoid the problem of high dependence on the IP address.

[0063] Figure 1 An architecture diagram of a network node determination system provided in an embodiment of the present application, such as Figure 1 As shown, the system architecture includes: a first network node 101 , a second network node 102 , a server 103 , and a terminal device 104 .

[0064] The first network node 101 may be a gateway device that connects different networks and provides network communication and data transmission services for different networks. The first network node 101 may include but is not limited to: a router, a switch, and a virtual private network (VPN) device.

[0065] The embodiment of the present application does not specifically limit the number of the first network nodes 101 in the network node determination system, and may include: Figure 1 More or fewer first network nodes 101 .

[0066] The second network node 102 may be a computing node or a gateway device.

[0067] Among them, a computing node can be an edge computing device that can provide computing resources and computing services. A gateway device can be a gateway device that connects different networks and provides network communication and data transmission services for different networks. Gateway devices can include but are not limited to: routers, switches, and virtual private network (VPN) devices.

[0068] The embodiment of the present application does not specifically limit the number of the second network nodes 102 in the network node determination system, and may include: Figure 1 More or fewer second network nodes 102 .

[0069] The server 103 may be a high-performance server that provides various services online, an independent physical server, a server cluster composed of multiple physical servers, or at least one of cloud servers that provide 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 distribution networks, and big data or artificial intelligence platforms, etc. The embodiments of the present application do not limit this. Of course, the server can also include other functions to provide more comprehensive and diverse services.

[0070] The terminal device 104 may be a device that provides voice and / or data connectivity to a user, a device with wireless connection function, or other device connected to a wireless modem. The terminal device may be at least one of a desktop computer, a laptop computer, a wireless terminal, and a laptop portable computer. In one embodiment, the terminal device 104 has a communication function and can access a wired network or a wireless network.

[0071] In the embodiment of the present application, the terminal device 104 may send a service request carrying a node identifier to the first network node 101. After receiving the service request sent by the terminal device 104, the first network node 101 may determine the location information of the second network node 102 that matches the node identifier, and send the service request to the second network node 102 based on the location information of the second network node 102.

[0072] In addition, after receiving the service request carrying the node identifier sent by the terminal device 104, the first network node 101 may also send a resolution request carrying the node identifier to the server 103. Accordingly, after receiving the resolution request sent by the first network node 101, the server 103 may determine the location information of the second network node 102 matching the node identifier based on the node identifier carried in the resolution request, and send the location information of the second network node 102 to the first network node 101. After receiving the location information of the second network node 102 sent by the server 103, the first network node 101 may send a service request to the second network node 102 based on the location information of the second network node 102.

[0073] Optionally, the first network node 101 may also determine at least one path based on its own location information and the location information of the second network node 102. Then, for each path, based on the network delay and / or network packet loss rate corresponding to the path, an optimal path is determined. Finally, a service request is sent to the second network node 102 according to the optimal path.

[0074] Optionally, the second network node 102 may send node information to the first network node 101, where the node information includes the node identification and location information of the second network node 102. After receiving the node information sent by the second network node 102, the first network node 101 may broadcast the node information of the second network node 102 to the entire network.

[0075] Optionally, the second network node 102 may also send a registration request carrying attribute information to the server 103. Accordingly, after receiving the registration request sent by the second network node 102, the server 103 may allocate a node identifier for the second network node based on the attribute information of the second network node 102, and send the node identifier to the second network node 102.

[0076] Optionally, after receiving the registration request carrying attribute information sent by the second network node 102, the server 103 can also verify the attribute information of the second network node 102, and if the verification passes, assign a node identifier to the second network node 102, and then send the node identifier to the second network node 102.

[0077] Optionally, a distributed name resolution system (DNRS) may be deployed in the server 103, which is used to assign a node identifier to the second network node 102, and may also be used to determine the location information of the second network node 102 based on the node identifier. The server may assign a node identifier to the second network node 102 through the DNRS system, and may also determine the location information of the second network node 102 based on the node identifier through the DNRS system.

[0078] In the embodiment of the present application, the second network node 102 may be a computing node. The following takes the second network node 102 as a computing node as an example to introduce the architecture diagram of the network node determination system in detail.

[0079] The terminal device 104 can send business requests with computing power requirements such as medical health, digital entertainment, cultural media, e-commerce, and financial technology to the first network node 101.

[0080] The first network node 101 may include a communication unit, an identification routing unit, and a cache and transmission control unit.

[0081] The communication unit may support a variety of network communication protocols, and is used to achieve compatible communication between the first network node 101 and other network devices.

[0082] The identification routing unit is used to determine the location information of the computing power node that matches the node identifier carried in the business request, and then send the business request to the computing power node based on the location information of the computing power node.

[0083] The cache and transmission control unit is used to cache the data of the received business requests and the node information of the computing power nodes. At the same time, the transmission control strategy for the business requests can be dynamically adjusted according to the network congestion situation.

[0084] A DNRS system may be deployed in the server 103. The DNRS system may allocate node identifiers to computing nodes, and store the node identifiers of the computing nodes accordingly. The DNRS system may also determine the location information of the computing nodes based on the node identifiers.

[0085] Optionally, the system architecture may support IP protocol, transmission control protocol (TCP), and user datagram protocol (UDP).

[0086] Among them, IP is a network layer protocol, which is mainly responsible for the routing and data transmission of network layer data packets. TCP is a transport layer protocol, which provides connection-oriented, reliable and byte stream-based transmission services. UDP protocol is a connectionless transport layer protocol, which provides simple and efficient data transmission services. IP can provide data packet transmission services for TCP and UDP. TCP and UDP encapsulate the data to be transmitted into data packets, and then route and transmit them through the IP protocol.

[0087] Optionally, the system architecture may also support Ethernet, Point-to-Point Protocol (PPP) and 802.1X protocols.

[0088] Among them, Ethernet is a LAN technology that defines the standards and protocols for communication between network devices in a LAN, and provides underlying support for data transmission for IP, TCP, and UDP, enabling IP, TCP, and UDP data packets to be transmitted in a LAN. PPP is used to transmit multi-protocol data packets on point-to-point links. 802.1X is an access control and authentication protocol that can be used in conjunction with protocols such as Ethernet or PPP to implement authentication and authorization of users or network devices.

[0089] Optionally, the system architecture may also include transmission media such as copper wire, optical fiber, wireless and radio waves for data transmission between network devices. Ethernet, PPP and 802.1X all require transmission media to achieve data transmission.

[0090] The above-mentioned various network communication protocols and transmission media can work together in network communication to achieve reliable and efficient data transmission, data exchange and information sharing, as well as enhance network security.

[0091] For example, Figure 2 As shown, the computing power node can send a registration request carrying attribute information to the server 103, and the server 103 can allocate a node identifier to the computing power node through the DNRS system, and then send the node identifier to the computing power node. The terminal device 104 can send a service request with computing power requirements to the first network node 101, and the service request carries the node identifier.

[0092] Accordingly, after receiving the service request sent by the terminal device 104, the first network node 101 may send the service request to the server 102. Afterwards, the server 102 may determine the location information of the computing power node matching the node identifier through the DNRS system based on the node identifier carried in the service request, and send the location information of the computing power node to the first network node 101. Accordingly, after receiving the location information of the computing power node, the first network node 101 may send the service request to the computing power node based on the location information of the computing power node.

[0093] It is understandable that the application scenarios of the embodiments of the present disclosure are not limited. The system architecture and business scenarios described in the embodiments of the present disclosure are intended to more clearly illustrate the technical solutions of the embodiments of the present disclosure, and do not constitute a limitation on the technical solutions provided by the embodiments of the present disclosure. It is known to those skilled in the art that with the evolution of network architecture and the emergence of new business scenarios, the technical solutions provided by the embodiments of the present disclosure are also applicable to similar technical problems.

[0094] Figure 3 A flowchart of a network node determination method provided in an embodiment of the present application, the method comprises Figure 1 The first network node 101 shown executes, as shown in Figure 3 As shown, the method includes:

[0095] S301, receiving a service request sent by a terminal device.

[0096] S302: Determine location information of a second network node that matches the node identifier.

[0097] The service request carries a node identifier, which is generated based on the attribute information of the second network node.

[0098] In the embodiment of the present application, the attribute information of the second network node is not limited. For example, the attribute information of the second network node may include but is not limited to the data center to which the second network node belongs, the rack number, the node name, the node type, and the serial number.

[0099] In some embodiments, the first network node stores node information of multiple second network nodes, and the node information of each second network node includes a node identifier and location information of the second network node. After the first network node receives a service request carrying a node identifier sent by a terminal device, it can determine the location information of the second network node that matches the node identifier carried in the service request based on the node information of the multiple second network nodes.

[0100] Exemplarily, the first network node stores the node identification (identity document, ID) and location information of the second network node A and the second network node B. The node ID of the second network node A is ID_A, and the node ID of the second network node B is ID_B. After the first network node receives a service request carrying a node ID (such as ID_A) sent by a terminal device, it can determine that the node ID of the second network node A is consistent with the node ID carried in the service request based on the node IDs of the second network node A and the second network node B, thereby determining that the location information of the second network node A matches the node ID carried in the service request.

[0101] In other embodiments, after the first network node receives a service request carrying a node identifier sent by a terminal device, it can send a resolution request carrying the node identifier to the server. Accordingly, after the server receives the resolution request sent by the first network node, it can determine the location information of the second network node that matches the node identifier based on the node identifier carried in the resolution request, and send the location information of the second network node to the first network node. Accordingly, after the first network node receives the location information of the second network node sent by the server, it can store the node identifier and location information of the second network node accordingly, and broadcast the node identifier and location information of the second network node to the entire network.

[0102] Exemplarily, assume that the first network node does not store the node ID and location information of the second network node. In this case, after the first network node receives a service request carrying a node ID (such as ID_A) sent by a terminal device, it can send a resolution request carrying node ID_A to the server. Accordingly, after the server receives the resolution request sent by the first network node, it can obtain the location information of the second network node A that matches the node ID_A carried in the resolution request, and send the location information of the second network node A to the first network node. After the first network node receives the location information of the second network node A sent by the server, it can store the node identification (i.e., ID_A) and location information of the second network node A.

[0103] In some embodiments, multiple second network nodes may send their own node information and attribute information to the first network node. Accordingly, the first network node may integrate the received node information and attribute information of multiple second network nodes to generate a forwarding information base (FIB), which contains at least the node identifier and location information of each second network node. Afterwards, after the first network node receives a service request carrying a node identifier sent by a terminal device, it may determine the location information of a second network node that matches the node identifier from multiple second network nodes by querying the FIB.

[0104] S303: Send a service request to the second network node based on the location information of the second network node.

[0105] Specifically, after the network node determines the location information of the second network node that matches the node identifier carried in the service request, the network node may send the service request to the second network node based on the location information of the second network node.

[0106] In an optional implementation, before executing the above S203, the first network node may determine at least one path based on the location information of the first network node and the location information of the second network node. Then, for each path, based on the network delay and / or network packet loss rate corresponding to the path, the optimal path is determined. On this basis, the above S203 may be implemented as follows: the first network node sends a service request to the second network node via the optimal path.

[0107] Among them, the network delay corresponding to each path is used to reflect the duration of the service request from the first network node to the second network node. This duration at least includes the network delay of the path link and the network delay of the intermediate network nodes included in the path. The intermediate network nodes refer to the remaining network nodes in the path except the first network node and the second network node.

[0108] The network packet loss rate corresponding to each path is used to reflect the number of packets lost during the process of the service request from the first network node to the second network node.

[0109] The embodiment of the present application does not limit the type of the optimal path. For example, the optimal path may be the shortest path, the lowest cost path, or the fastest path from the first network node to the second network node.

[0110] In some embodiments, the first network node determines at least one path based on its own location information and the location information of the second network node, wherein each path does not include an intermediate node. In this case, the first network node can determine the path with the smallest network delay as the optimal path based on the network delay corresponding to the path link.

[0111] Exemplarily, the first network node determines two paths, namely path R1 and path R2, based on its own location information and the location information of the second network node. The network delay of path R1 is 50 milliseconds, and the delay of path R2 is 100 milliseconds. Therefore, the first network node can determine path R1 as the optimal path, and then send a service request to the second network node through path R1.

[0112] In some other embodiments, the first network node determines at least one path based on its own location information and the location information of the second network node, wherein each path includes an intermediate node. In this case, the first network node can determine the path with the lowest packet loss rate as the optimal path based on the network packet loss rate corresponding to the path.

[0113] Exemplarily, the first network node determines two paths, namely path R3 and path R4, based on its own location information and the location information of the second network node. Path R3 passes through intermediate node A and intermediate node B, the packet loss rate of intermediate node A is 5%, and the packet loss rate of intermediate node B is 6%. Path R4 passes through intermediate node C and intermediate node B, the packet loss rate of intermediate node C is 7%, and the packet loss rate of intermediate node B is 8%. Therefore, the first network node can determine path R3 as the optimal path, and then send a service request to the second network node through path R3.

[0114] Based on the above embodiment, the first network node may also determine the path with the minimum network delay and the lowest packet loss rate as the optimal path based on the network delay corresponding to the path and the packet loss rate of the intermediate nodes.

[0115] Exemplarily, the first network node determines two paths, namely path R5 and path R6, based on its own location information and the location information of the second network node. The network delay of path R5 is 50 milliseconds, and path R5 passes through intermediate nodes A and B. The packet loss rate of intermediate node A is 5%, and the packet loss rate of intermediate node B is 6%. The delay of path R6 is 100 milliseconds, and path R2 passes through intermediate nodes C and B. The packet loss rate of intermediate node C is 7%, and the packet loss rate of intermediate node B is 8%. Therefore, the first network node can determine path R5 as the optimal path, and then send a service request to the second network node through path R5.

[0116] Based on the above technical solution, the first network node can receive a service request carrying a node identifier sent by a terminal device, then determine the location information of a second network node matching the node identifier, and send the service request to the second network node based on the location information of the second network node. Alternatively, the first network node can send a resolution request to a server, so that the server can determine the location information of a second network node matching the node identifier based on the node identifier carried in the resolution request, receive the location information of the second network node sent by the server, and then send the service request to the second network node based on the location information of the second network node.

[0117] In this way, the first network node can forward the service request based on the node identifier carried in the service request, rather than forwarding the service request through the IP address, which can avoid the problem of high dependence on the IP address. In addition, the above solution can also determine the optimal path based on the network delay and / or network packet loss rate corresponding to the path, so that the service request reaches the second network node along the optimal path, thereby more reasonably meeting the needs of the service request.

[0118] In an optional implementation, the first network node may be a router, and the second network node may be a computing node, or may be a network node of the same type as the first network node. The following takes the first network node as a router and the second network node as a computing node as an example to introduce in detail a network node determination method provided by the present application.

[0119] Figure 4 An interactive flow chart of a network node determination method provided in an embodiment of the present application, such as Figure 4 As shown, the method includes:

[0120] S401, the computing power node sends a registration request to the server.

[0121] Among them, the registration request carries the attribute information of the computing power node.

[0122] S402, the server verifies the attribute information of the computing power node. If the verification fails, execute S403. If the verification passes, execute S404-S416.

[0123] S403, the server sends a response message to the computing power node.

[0124] Among them, the response message can indicate that the attribute information verification of the computing power node has failed.

[0125] S404: The server assigns a node identifier to the computing power node based on the attribute information of the computing power node.

[0126] Among them, the node identification of the computing power node and the location information of the computing power node are bound.

[0127] In some embodiments, after receiving a registration request from a computing power node, the server can use a hierarchical naming method to assign a node identifier to the computing power node based on the attribute information of the computing power node.

[0128] The embodiment of the present application does not limit the method for representing the node identification of the computing power node. For example, the node identification of the computing power node can be represented as: data center / rack number / node name / node type / serial number.

[0129] For example, the data center to which computing node A belongs is DC_1, the rack number is R03, the node name is N05, the node type is a central processing unit (CPU) computing node, and the serial number is S_12345. After the server receives the registration request with attribute information sent by computing node A, it can use a hierarchical naming method to assign an identifier to computing node A based on the attribute information of computing node A. At this time, the node identifier of computing node A can be expressed as CID:DC_1 / R03 / N05 / CPU / S_12345.

[0130] S405, the server sends a node identifier to the computing power node.

[0131] S406, the computing power node sends node information to the router.

[0132] Among them, the node information of the computing power node includes the node identification and location information of the computing power node.

[0133] S407, the router stores the node information of the computing power node and broadcasts the node information of the computing power node to the entire network.

[0134] S408: The terminal device sends a service request carrying a node identifier to the router.

[0135] S409: The router queries whether the location information of the computing power node matching the node identifier is stored.

[0136] If yes, execute S410, S414-S416; if no, execute S411-S413, S414-S416.

[0137] S410, the router determines the location information of the computing power node matching the node identifier.

[0138] S411, the router sends a resolution request carrying a node identifier to the server.

[0139] S412: The server determines the location information of the computing power node that matches the node identifier based on the node identifier carried in the resolution request.

[0140] S413, the server sends the location information of the computing power node to the router.

[0141] S414, the router determines at least one path based on its own location information and the location information of the computing power node.

[0142] S415, the router determines the optimal path for each path based on the network delay and network packet loss rate corresponding to the path.

[0143] S416: The router sends the service request to the computing power node through the optimal path.

[0144] Figure 5 A schematic diagram of the structure of a network node determination device provided in an embodiment of the present application, the device is located at a first network node, such as Figure 5 As shown, the device comprises:

[0145] The transceiver unit 501 is used to receive a service request sent by a terminal device.

[0146] The determining unit 502 is configured to determine location information of a second network node that matches the node identifier.

[0147] The transceiver unit 501 is further configured to send a service request to the second network node based on the location information of the second network node.

[0148] Optionally, the transceiver unit 501 is further configured to send a resolution request to the server, so that the server determines the location information of the second network node based on the node identifier carried in the resolution request, and then receive the location information of the second network node sent by the server.

[0149] Optionally, the first network node stores node information of multiple network nodes, and the node information of each network node includes the node identifier and location information of the network node. On this basis, the determination unit 502 is also used to determine the location information of a second network node that matches the node identifier from the node information of multiple network nodes.

[0150] Optionally, the determination unit 502 is further used to determine at least one path based on the location information of the first network node and the location information of the second network node, and then determine the optimal path for each path based on the network delay and / or network packet loss rate corresponding to the path.

[0151] Optionally, the transceiver unit 501 is further configured to obtain node information of multiple network nodes, and then broadcast the node information of each network node.

[0152] Figure 6 A schematic diagram of the structure of a network node determination device provided in an embodiment of the present application, the device is located on a server, such as Figure 6 As shown, the device comprises:

[0153] The transceiver unit 601 is configured to receive a resolution request sent by a first network node.

[0154] The processing unit 602 is configured to allocate a node identifier to the second network node based on the attribute information of the network node.

[0155] The transceiver unit 601 is further configured to send a node identifier to the second network node.

[0156] Optionally, the transceiver unit 601 is further configured to receive a registration request sent by the second network node.

[0157] Optionally, the processing unit 602 is further configured to allocate a node identifier to the second network node based on the attribute information of the second network node.

[0158] Optionally, the transceiver unit 601 is further configured to send a node identifier to the second network node.

[0159] Figure 7Another possible structural diagram of the network node determination device involved in the above embodiment is shown. The network node determination device includes: a processor 701 and a communication interface 702. The processor 701 is used to control and manage the actions of the network node determination device, and the communication interface 702 is used to support the communication between the network node determination device and other network entities. The network node determination device may also include a memory 703 and a bus 704, and the memory 703 is used to store program codes and data of the network node determination device.

[0160] Among them, the memory 703 can be a memory in a network node determination device, etc., and the memory may include a volatile memory, such as a random access memory; the memory may also include a non-volatile memory, such as a read-only memory, a flash memory, a hard disk or a solid-state drive; the memory may also include a combination of the above types of memory.

[0161] The processor 701 may be a processor that implements or executes various exemplary logic blocks, modules, and circuits described in conjunction with the disclosure of the present application. The processor may be a central processing unit, a general-purpose processor, a digital signal processor, an application-specific integrated circuit, a field programmable gate array, or other programmable logic devices, transistor logic devices, hardware components, or any combination thereof. It may implement or execute various exemplary logic blocks, modules, and circuits described in conjunction with the disclosure of the present application. The processor may also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of a DSP and a microprocessor, and the like.

[0162] The bus 704 may be an extended industry standard architecture (EISA) bus, etc. The bus 704 may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 7 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.

[0163] Through the description of the above implementation methods, technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above functional modules is used as an example. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. The specific working process of the system, device and unit described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.

[0164] An embodiment of the present application provides a computer program product including instructions. When the computer program product is run on a computer, the computer is enabled to execute the network node determination method in the above method embodiment.

[0165] An embodiment of the present application also provides a computer-readable storage medium, in which instructions are stored. When the instructions are executed on a computer, the computer executes the network node determination method in the method flow shown in the above method embodiment.

[0166] Among them, the computer-readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media (a non-exhaustive list) include: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read only memory (EPROM), a register, a hard disk, an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above, or any other form of computer-readable storage medium known in the art. An exemplary storage medium is coupled to a processor so that the processor can read information from the storage medium and write information to the storage medium. Of course, the storage medium can also be a component of the processor. The processor and the storage medium can be located in an application specific integrated circuit (ASIC). In the embodiments of the present application, a computer-readable storage medium may be any tangible medium that contains or stores a program, which may be used by or in conjunction with an instruction execution system, apparatus, or device.

[0167] An embodiment of the present invention provides a computer program product including instructions. When the instructions are executed on a computer, the computer executes the network node determination method described in the embodiment of the present application.

[0168] Since the network node determination device, computer-readable storage medium, and computer program product in the embodiments of the present invention can be applied to the above method, the technical effects that can be obtained can also refer to the above method embodiments, and the embodiments of the present invention will not be repeated here.

[0169] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0170] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0171] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.

[0172] The above are only specific implementations of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions within the technical scope disclosed in the present application should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims

1. A method for determining a network node, characterized in that: Applied to a first network node, the method comprises: Receiving a service request sent by a terminal device; the service request carries a node identifier; the node identifier is generated based on attribute information of the second network node; Determining location information of a second network node that matches the node identifier; The service request is sent to the second network node based on the location information of the second network node.

2. The method according to claim 1, characterized in that The determining the location information of the second network node matching the node identifier includes: Sending a resolution request to a server, so that the server determines the location information of the second network node based on the node identifier carried in the resolution request; Receive the location information of the second network node sent by the server.

3. The method according to claim 1, characterized in that The first network node stores node information of a plurality of network nodes, and the node information of each network node includes a node identifier and location information of the network node; The determining the location information of the second network node matching the node identifier includes: The location information of the second network node matching the node identifier is determined from the node information of the plurality of network nodes.

4. The method according to claim 1, characterized in that: Before sending the service request to the second network node based on the location information of the second network node, the method further includes: Determining at least one path based on the location information of the first network node and the location information of the second network node; For each path, based on the network delay and / or network packet loss rate corresponding to the path, determine the optimal path; the network delay corresponding to each path is used to reflect the duration of the service request from the first network node to the second network node; the network packet loss rate corresponding to each path is used to reflect the number of packets lost during the process of the service request from the first network node to the second network node; The sending the service request to the second network node based on the location information of the second network node includes: The service request is sent to the second network node through the optimal path.

5. The method according to any one of claims 1 to 4, characterized in that The second network node is a computing power node.

6. The method according to claim 1, characterized in that The method further comprises: Get node information of multiple network nodes; Broadcast node information of each of the network nodes.

7. A method for determining a network node, characterized in that: Applied to a server, the method comprises: Receiving a resolution request sent by the first network node; Determine, based on the node identifier carried in the resolution request, location information of a second network node that matches the node identifier; Sending the location information of the second network node to the first network node.

8. The method according to claim 7, characterized in that The method further comprises: receiving a registration request sent by the second network node; the registration request carrying attribute information of the second network node; Based on the attribute information of the second network node, assigning a node identifier to the second network node; binding the node identifier of the second network node and the location information of the second network node; The node identifier is sent to the second network node.

9. The method according to claim 8, characterized in that Allocating a node identifier to the second network node based on the attribute information of the second network node includes: The attribute information of the second network node is verified, and if the verification passes, a node identifier is allocated to the second network node based on the attribute information of the second network node.

10. A network node determination device, characterized in that: The device is located at a first network node, and includes: A transceiver unit, used for receiving a service request sent by a terminal device; a determining unit, configured to determine location information of a second network node matching the node identifier; The transceiver unit is further used to send the service request to the second network node based on the location information of the second network node.

11. A network node determination device, characterized in that: The device is located on a server and includes: A transceiver unit, configured to receive a resolution request sent by a first network node; a processing unit, configured to allocate a node identifier to the second network node based on the attribute information of the network node; The transceiver unit is further configured to send the node identifier to the second network node.

12. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores instructions. When a computer executes the instructions, the computer executes the network node determination method according to any one of claims 1 to 6, or the network node determination method according to any one of claims 7 to 9.

Citation Information

Patent Citations

  • Computing power processing network system, service processing method and equipment

    CN114095579A

  • Edge service acquisition method and device, edge computing system, medium and equipment

    CN115297098A

  • Computing power resource node determination method and device, equipment and storage medium

    CN115914402A

  • Data processing method, apparatus, device and system

    WO2024119504A1