A method and apparatus for determining network nodes

By assigning node identifiers to network nodes and binding location information, the problem of scarce IP address resources is solved, enabling dynamic expansion and flexible management of network node addresses, and meeting the expansion needs of network devices.

CN119109905BActive Publication Date: 2026-03-13CHINA UNITED NETWORK COMM GRP CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-09-18
Publication Date
2026-03-13

AI Technical Summary

Technical Problem

Traditional IP address resources are scarce and cannot meet the needs of dynamic expansion and flexible management of network devices, especially in the context of ubiquitous deployment of edge computing nodes and smart terminal devices.

Method used

By assigning node identifiers to network nodes and binding them to location information, business requests can be forwarded based on the node identifiers, avoiding a high dependence on IP addresses.

Benefits of technology

It enables dynamic expansion and flexible management of network node addresses, meeting the network's need for address space expansion and avoiding the problem of IP address semantic overload.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119109905B_ABST
    Figure CN119109905B_ABST
Patent Text Reader

Abstract

This application provides a method and apparatus for determining network nodes, relating to the field of communication technology. It can determine corresponding network resources based on the node identifier of a network node, thus effectively avoiding the problem of IP address semantic overload and meeting the network's need for address space expansion. The method includes: receiving a service request carrying a node identifier sent by a terminal device; then determining the location information of a second network node matching the node identifier; and sending the service request to the second network node based on the location information of the second network node.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of communication technology, and in particular to a method and apparatus for determining network nodes. Background Technology

[0002] Current network architectures primarily employ a host-centric, end-to-end communication model. In this model, data exchange between network users and servers is achieved through pre-established communication channels using Internet Protocol (IP) addresses. IP addresses are used to identify and locate every device on the network. For example, network devices such as routers can determine the source and destination of data packets based on their IP addresses, ensuring accurate and rapid forwarding of packets to their destination. Therefore, current network communication heavily relies on IP addresses.

[0003] However, with the rapid development of the network, edge computing nodes and smart terminal devices are being deployed ubiquitously and dynamically, making IP address resources increasingly scarce. The traditional IP address space is unable to meet the growing network device access needs. Summary of the Invention

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

[0005] To achieve the above objectives, this application adopts the following technical solution:

[0006] In a first aspect, this application provides a method for determining a network node, which can be executed by a first network node, the method comprising:

[0007] Receive service requests sent by terminal devices. The service request carries a node identifier, which is generated based on the attribute information of the second network node.

[0008] Determine the location information of the second network node that matches the node identifier.

[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 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, thus avoiding the problem of high dependence on IP addresses.

[0011] Optionally, determining the location information of the second network node that matches the node identifier may include: sending 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 receiving the location information of the second network node sent by the server.

[0012] Optionally, the first network node stores node information for multiple network nodes, with each network node's node information including its node identifier and location information.

[0013] Based on this, 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 the node information of multiple network nodes.

[0014] Optionally, before sending a service request to the second network node based on the location information of the second network node, the process may further 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 latency and / or network packet loss rate corresponding to the path.

[0015] The network latency for each path reflects the time it takes for a service request to travel from the first network node to the second network node. The network packet loss rate for each path reflects the number of packets lost during the process of the service request traveling from the first network node to the second network node.

[0016] Based on this, sending a service request to the second network node based on the location information of the second network node can include sending a service request to the second network node through the optimal path.

[0017] Optionally, the second network node mentioned above can be a computing power node.

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

[0019] Secondly, this application provides a method for determining network nodes, which can be executed by a server, and the method includes:

[0020] Receive the parsing request sent by the first network node.

[0021] Based on the node identifier carried in the parsing request, the location information of the second network node that matches the node identifier is determined.

[0022] Send the location information of the second network node to the first network node.

[0023] Based on the above technical solution, after receiving the parsing request sent by the first network node, the server can determine the location information of the second network node that matches the node identifier carried in the parsing 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 a second network node, then assigning a node identifier to the second network node based on the 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 scheme, after receiving registration requests from each second network node, the server can assign a node identifier to the second network node based on its attribute information. The node identifier and the location information of the second network node are bound together, and then the server sends the node identifier to the second network node. In this way, by assigning node identifiers to network nodes, the problem of IP address semantic overload can be effectively avoided, enabling dynamic expansion and flexible management of network node addresses, and meeting the network's need for address space expansion.

[0027] Optionally, assigning a node identifier to the second network node based on its attribute information may further include: verifying the attribute information of the second network node, and if the verification is successful, assigning a node identifier to the second network node based on its attribute information.

[0028] Thirdly, this application provides a network node determination device, which is located at a first network node and includes:

[0029] The transceiver unit is used to receive service requests sent by terminal devices.

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

[0031] The transceiver unit is also used to send service requests to the second network node based on the location information of the second network node.

[0032] Optionally, the transceiver unit is also configured to send a parsing 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 parsing 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. The node information of each network node includes the node identifier and location information of the network node. Based on this, the determining unit is also used to determine the location information of the second network node that matches the node identifier from the node information of the multiple network nodes.

[0034] Optionally, the determining unit is further configured 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, for each path, determine the optimal path based on the network latency and / or network packet loss rate corresponding to the path.

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

[0036] Fourthly, this application provides a network node determination device, which is located on a server and includes:

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

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

[0039] The transceiver unit is also used to send node identifiers to the second network node.

[0040] Optionally, the transceiver unit is also used to receive registration requests sent by the second network node.

[0041] Optionally, the processing unit is also used to assign a node identifier to the second network node based on the attribute information of the second network node.

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

[0043] Fifthly, this application provides a network node determination apparatus, comprising: a processor and a communication interface. The communication interface is coupled to the processor, which is configured to execute computer programs or instructions to implement the network node determination method as described in any one of the first aspects and any possible implementations thereof, or the network node determination method as described in any one of the second aspects and any possible implementations thereof.

[0044] Sixthly, this application provides a computer-readable storage medium storing instructions that, when executed on a terminal, cause the terminal to perform a network node determination method as described in any one of the first aspects and any possible implementations of the first aspect, or a network node determination method as described in any one of the second aspects and any possible implementations of the second aspect.

[0045] In a seventh aspect, this application provides a computer program product comprising computer instructions that, when executed on a computer, cause the computer to perform the network node determination method as described in any one of the first aspects and any possible implementations thereof, or the network node determination method as described in any one of the second aspects and any possible implementations thereof.

[0046] Understandably, the beneficial effects that can be achieved by the third to seventh aspects provided above can be referred to the beneficial effects of any possible design of the network node determination method as described in any one of the first aspects and any possible implementations of the first aspect, or the beneficial effects of any one of the second aspects and any possible implementations of the second aspect, as described in any one of the second aspect, and will not be repeated here. Attached Figure Description

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

[0048] Figure 2 An architecture diagram of another network node determination system provided in the embodiments of this application;

[0049] Figure 3 A flowchart illustrating a method for determining network nodes provided in an embodiment of this application;

[0050] Figure 4 An interactive flowchart illustrating a network node determination method provided in an embodiment of this application;

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

[0052] Figure 6 This is a schematic diagram of another network node determination device provided in an embodiment of this application;

[0053] Figure 7 This is a schematic diagram of another network node determination device provided in an embodiment of this application. Detailed Implementation

[0054] The following description, in conjunction with the accompanying drawings, details a method and apparatus for determining network nodes provided in an embodiment of this application.

[0055] In this article, the term "and / or" is merely a description of the relationship between related objects, indicating that there can be three relationships. For example, A and / or B can represent three situations: A exists alone, A and B exist simultaneously, and B exists alone.

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

[0057] Furthermore, the terms "comprising" and "having," and any variations thereof, used in the description of this application are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or apparatus that includes a series of steps or units is not limited to the steps or units listed, but may optionally include other steps or units not listed, or may optionally include other steps or units inherent to such process, method, product, or apparatus.

[0058] It should be noted that in the embodiments of this application, the words "exemplary" or "for example" are used to indicate examples, illustrations, or explanations. Any embodiment or design scheme described as "exemplary" or "for example" in the embodiments of this application should not be construed as being more preferred or advantageous than other embodiments or design schemes. Specifically, the use of the words "exemplary" or "for example" is intended to present the relevant concepts in a specific manner.

[0059] In today's digital age, network communication has become a core driving force for socio-economic development. Traditional network architectures mainly rely on a host-centric end-to-end communication model. In this model, network users and servers each have their own corresponding IP addresses, and data interaction between network users and servers is achieved through communication channels pre-established using these IP addresses.

[0060] IP addresses are fundamental for network devices to communicate within a network, used to identify and locate each device on the network. Network devices such as routers use IP addresses to determine the source and destination of data packets, ensuring that packets reach their destination accurately and quickly. Furthermore, whether sending emails, browsing the web, or making video calls, all data transmission relies on the correct configuration and use of IP addresses. Therefore, current network communication is highly dependent on the effective management and allocation of IP addresses.

[0061] However, with the rapid development of networks, edge computing nodes and smart terminal devices are ubiquitous and dynamically changing, leading to a depletion of IP address resources. 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 some extent, the transition and deployment process is complex, and the widespread adoption and application of IPv6 still faces many challenges.

[0062] To address the aforementioned technical problems, this application provides a network node determination method. A server can assign a node identifier to a second network node and bind the node identifier and location information of the second network node together. By assigning a node identifier to the second network node, the problem of IP address semantic overload can be effectively avoided, enabling dynamic expansion and flexible management of network node addresses, and meeting the network's need for address space expansion. The first network node can determine the location information of the second network node matching 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. Thus, the first network node can forward the service request based on the node identifier carried in the service request, rather than through IP addresses, avoiding the problem of high dependence on IP addresses.

[0063] Figure 1 An architecture diagram of a network node determination system provided in this application embodiment is shown below. 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 can be a gateway device that connects different networks and provides network communication and data transmission services to these networks. The first network node 101 may include, but is not limited to, routers, switches, and virtual private network (VPN) devices.

[0065] This application embodiment does not specifically limit the number of first network nodes 101 in the network node determination system, and may include more than [a certain number]. Figure 1 More or fewer first network nodes 101.

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

[0067] In this context, a computing node can be an edge computing device capable of providing computing resources and services. A gateway device can be a device that connects different networks and provides network communication and data transmission services to those networks. Gateway devices can include, but are not limited to, routers, switches, and virtual private network (VPN) devices.

[0068] This application embodiment does not specifically limit the number of second network nodes 102 in the network node determination system, and may include more than [a certain number]. Figure 1 More or fewer second network nodes 102.

[0069] Server 103 can be a high-performance server providing various services on the internet. It can be a standalone physical server, a server cluster consisting of multiple physical servers, or at least one of the following cloud servers providing basic cloud computing services: cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, content delivery networks, and big data or artificial intelligence platforms. This application embodiment does not limit this. Of course, the server can also include other functions to provide more comprehensive and diversified services.

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

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

[0072] Furthermore, after receiving a service request carrying a node identifier from the terminal device 104, the first network node 101 can also send a parsing request carrying the node identifier to the server 103. Correspondingly, after receiving the parsing request from the first network node 101, the server 103 can determine the location information of the second network node 102 matching the node identifier based on the node identifier carried in the parsing 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 can 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 can 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, the optimal path is determined based on the network latency and / or network packet loss rate corresponding to that path. Finally, the service request is sent to the second network node 102 according to the optimal path.

[0074] Optionally, the second network node 102 can send node information to the first network node 101. The node information includes the node identifier 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 can 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 assign a node identifier to 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 is successful, 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 server 103 to assign node identifiers to the second network node 102 and to determine the location information of the second network node 102 based on the node identifiers. The server can assign node identifiers to the second network node 102 through the DNRS system, and can also determine the location information of the second network node 102 based on the node identifiers through the DNRS system.

[0078] In this embodiment, the second network node 102 can be a computing power node. The following describes in detail the architecture of the network node determination system, using the second network node 102 as an example.

[0079] Terminal device 104 can send business requests with computing power requirements, such as those related to healthcare, digital entertainment, cultural media, e-commerce, and fintech, to the first network node 101.

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

[0081] The communication unit can support multiple network communication protocols to enable 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 service request, and then send the service request to the computing power node based on the location information of the computing power node.

[0083] The caching and transmission control unit is used to cache the data of received service requests and the node information of computing nodes. It can also dynamically adjust the transmission control strategy for service requests based on network congestion.

[0084] The DNRS system can be deployed in server 103. The DNRS system can assign node identifiers to computing nodes and store the corresponding node identifiers. The DNRS system can also determine the location information of computing nodes based on the node identifiers.

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

[0086] IP is a network layer protocol, primarily responsible for routing and transmitting network layer data packets. TCP is a transport layer protocol, providing connection-oriented, reliable, and byte-stream-based transmission services. UDP is a connectionless transport layer protocol, providing 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, which are then routed and transmitted via the IP protocol.

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

[0088] Ethernet is a local area network (LAN) technology that defines the standards and protocols for communication between network devices within a LAN. It provides the underlying support for data transmission of IP, TCP, and UDP, enabling the transmission of IP, TCP, and UDP packets within a LAN. PPP is used to transmit multiprotocol packets over 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 achieve authentication and authorization of users or network devices.

[0089] Optionally, the system architecture may also include transmission media such as copper wires, optical fibers, 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 various network communication protocols and transmission media mentioned above can work together in network communication to achieve reliable and efficient data transmission, data exchange and information sharing, and enhance network security.

[0091] For example, such as Figure 2 As shown, a computing node can send a registration request carrying attribute information to server 103. Server 103 can assign a node identifier to the computing node through the DNRS system and then send the node identifier to the computing node. 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 can send the service request to the server 102. Then, the server 102 can use the DNRS system to determine the location information of the computing power node matching the node identifier carried in the service request, and send the location information of the computing power node to the first network node 101. Correspondingly, after receiving the location information of the computing power node, the first network node 101 can send the service request to the computing power node based on the location information.

[0093] It is understood that the application scenarios of the embodiments of this disclosure are not limited. The system architecture and business scenarios described in the embodiments of this disclosure are for the purpose of more clearly illustrating the technical solutions of the embodiments of this disclosure, and do not constitute a limitation on the technical solutions provided by the embodiments of this disclosure. As those skilled in the art will know, with the evolution of network architecture and the emergence of new business scenarios, the technical solutions provided by the embodiments of this disclosure are also applicable to similar technical problems.

[0094] Figure 3 This is a flowchart illustrating a method for determining network nodes provided in an embodiment of this application. The method comprises... Figure 1 The first network node 101 shown executes, as follows: Figure 3 As shown, the method includes:

[0095] S301 receives service requests sent by terminal devices.

[0096] S302, Determine the location information of the 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 this embodiment of the 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 receiving a service request carrying a node identifier from a terminal device, the first network node 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] For example, the first network node stores the node 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 receiving a service request carrying a node ID (such as ID_A) from a terminal device, the first network node can determine, based on the node IDs of the second network node A and the second network node B, that the node ID of the second network node A matches the node ID carried in the service request. Therefore, it can be determined that the location information of the second network node A matches the node ID carried in the service request.

[0101] In other embodiments, after receiving a service request carrying a node identifier from a terminal device, the first network node can send a parsing request carrying the node identifier to the server. Correspondingly, after receiving the parsing request from the first network node, the server can determine the location information of a second network node matching the node identifier based on the node identifier carried in the parsing request, and send the location information of the second network node to the first network node. Correspondingly, after receiving the location information of the second network node from the server, the first network node can store the node identifier and location information of the second network node, and broadcast the node identifier and location information of the second network node to the entire network.

[0102] For example, suppose the first network node does not store the node ID and location information of the second network node. In this case, after receiving a service request carrying a node ID (such as ID_A) from a terminal device, the first network node can send a parsing request carrying node ID_A to the server. Correspondingly, after receiving the parsing request from the first network node, the server can obtain the location information of the second network node A that matches the node ID_A carried in the parsing request, and send the location information of the second network node A to the first network node. After receiving the location information of the second network node A sent by the server, the first network node can store the node identifier (i.e., ID_A) and location information of the second network node A.

[0103] In some embodiments, multiple second network nodes can send their own node information and attribute information to the first network node. Correspondingly, the first network node can integrate the received node information and attribute information from the multiple second network nodes to generate a forwarding information base (FIB). The FIB contains at least the node identifier and location information of each second network node. Subsequently, after receiving a service request carrying a node identifier from a terminal device, the first network node can determine the location information of the second network node matching the node identifier by querying the FIB.

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

[0105] Specifically, after a network node determines the location information of a second network node that matches the node identifier carried in the service request, it can 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 S203 above, the first network node can 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, the optimal path is determined based on the network latency and / or network packet loss rate corresponding to the path. Based on this, S203 above can be implemented as follows: the first network node sends a service request to the second network node through the optimal path.

[0107] The network latency corresponding to each path is used to reflect the time it takes for a service request to travel from the first network node to the second network node. This time includes at least the network latency of the path link and the network latency of the intermediate network nodes included in the path. Intermediate network nodes refer to the other network nodes in the path besides the first and second network nodes.

[0108] The network packet loss rate for each path reflects the number of packets lost during the process of a business request traveling from the first network node to the second network node.

[0109] The embodiments of this application do not limit the type of the optimal path. For example, the optimal path can be the shortest path from the first network node to the second network node, the lowest cost path, or the fastest path.

[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. Each path does not include intermediate nodes. In this case, the first network node can determine the path with the minimum network latency as the optimal path based on the network latency corresponding to the path links.

[0111] For example, the first network node determines two paths, path R1 and path R2, based on its own location information and the location information of the second network node. The network latency for path R1 is 50 milliseconds, and the latency for 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 via path R1.

[0112] In 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. Each path includes intermediate nodes. 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] For example, based on its own location information and the location information of the second network node, the first network node determines two paths, namely path R3 and path R4. Path R3 passes through intermediate nodes A and B, with intermediate node A having a packet loss rate of 5% and intermediate node B having a packet loss rate of 6%. Path R4 passes through intermediate nodes C and B, with intermediate node C having a packet loss rate of 7% and intermediate node B having a packet loss rate of 8%. Therefore, the first network node can determine path R3 as the optimal path and then send the service request to the second network node through path R3.

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

[0115] For example, based on its own location information and the location information of the second network node, the first network node determines two paths, namely path R5 and path R6. Path R5 has a network latency of 50 milliseconds, passes through intermediate nodes A and B, with intermediate node A having a packet loss rate of 5% and intermediate node B having a packet loss rate of 6%. Path R6 has a latency of 100 milliseconds, passes through intermediate nodes C and B, with intermediate node C having a packet loss rate of 7% and intermediate node B having a packet loss rate of 8%. Therefore, the first network node can determine path R5 as the optimal path and then send the 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 a 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 parsing request to the server, enabling the server to determine the location information of a second network node matching the node identifier based on the node identifier carried in the parsing request, receive the location information of the second network node sent by the server, and then send a 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 business requests based on the node identifier carried in the request, rather than through IP addresses, thus avoiding the problem of high dependence on IP addresses. Furthermore, the above scheme can determine the optimal path based on the network latency and / or packet loss rate corresponding to the path, ensuring that the business request reaches the second network node along the optimal path, thereby more effectively meeting the needs of the business request.

[0118] In one optional implementation, the first network node can be a router, and the second network node can be a computing node or a network node of the same type as the first network node. The following description uses a router as the first network node and a computing node as the second network node as an example to provide a detailed explanation of the network node determination method provided in this application.

[0119] Figure 4 An interactive flowchart of a network node determination method provided in an embodiment of this application is shown below. Figure 4 As shown, the method includes:

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

[0121] The registration request includes 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, proceed to S403; if the verification passes, proceed to S404-S416.

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

[0124] The response message can indicate that the attribute information verification of the computing power node 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 identifier of the computing power node is bound to the location information of the computing power node.

[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 its attribute information.

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

[0129] For example, computing node A belongs to data center DC_1, rack number R03, node name N05, node type is central processing unit (CPU) computing node, and serial number S_12345. After receiving the registration request carrying attribute information from computing node A, the server can use a hierarchical naming method to assign an identifier to computing node A based on its attribute information. In this case, the node identifier of computing node A can be represented as CID: DC_1 / R03 / N05 / CPU / S_12345.

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

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

[0132] The node information of the computing power node includes the node identifier and location information of the computing power node.

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

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

[0135] S409, the router queries whether it stores the location information of computing nodes that match the node identifier.

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

[0137] S410, the router determines the location information of the computing node that matches the node identifier.

[0138] S411, the router sends a resolution request carrying the 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 parsing request.

[0140] S413, the server sends the location information of the computing nodes 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 nodes.

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

[0143] S416, the router sends a service request to the computing node via the optimal path.

[0144] Figure 5 This is a schematic diagram of a network node determination device provided in an embodiment of this application. The device is located at a first network node, such as... Figure 5 As shown, the device includes:

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

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

[0147] The transceiver unit 501 is also used to send service requests 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 parsing 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 parsing 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. The node information of each network node includes the node identifier and location information of the network node. Based on this, the determining unit 502 is further used to determine the location information of the second network node that matches the node identifier from the node information of the multiple network nodes.

[0150] Optionally, the determining unit 502 is further configured 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, for each path, determine the optimal path based on the network latency and / or network packet loss rate corresponding to the path.

[0151] Optionally, the transceiver unit 501 is also used to acquire node information of multiple network nodes and then broadcast the node information of each network node.

[0152] Figure 6 This is a schematic diagram of a network node determination device provided in an embodiment of this application. The device is located on a server, such as... Figure 6 As shown, the device includes:

[0153] The transceiver unit 601 is used to receive the parsing request sent by the first network node.

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

[0155] The transceiver unit 601 is also used to send the node identifier to the second network node.

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

[0157] Optionally, the processing unit 602 is also used to assign 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 also used to send a node identifier to the second network node.

[0159] Figure 7A schematic diagram of another possible structure of the network node determination device involved in the above embodiments is shown. This network node determination device includes a processor 701 and a communication interface 702. The processor 701 is used to control and manage the operation of the network node determination device, and the communication interface 702 is used to support communication between the network node determination device and other network entities. The network node determination device may further include a memory 703 and a bus 704, the memory 703 being used to store the program code and data of the network node determination device.

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

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

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

[0163] Through the above description of the embodiments, those skilled in the art will clearly understand that, for the sake of convenience and brevity, only the division of the above functional modules is used as an example. In practical applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be 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 be referred to the corresponding process in the foregoing method embodiments, and will not be repeated here.

[0164] This application provides a computer program product containing instructions that, when run on a computer, cause the computer to execute the network node determination method described in the above method embodiments.

[0165] This application also provides a computer-readable storage medium storing instructions that, when executed on a computer, cause the computer to perform the network node determination method in the method flow shown in the above method embodiments.

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

[0167] Embodiments of the present invention provide a computer program product containing instructions that, when executed on a computer, cause the computer to perform the network node determination method described in the embodiments of this 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 obtained can also be referred to the above method embodiments. The embodiments of the present invention will not be repeated here.

[0169] In the several embodiments provided in this 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 merely illustrative; for instance, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between devices or units may be electrical, mechanical, or other forms.

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

[0171] In addition, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit.

[0172] The above are merely specific embodiments of this application, but the scope of protection of this application is not limited thereto. Any variations or substitutions within the technical scope disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.

Claims

1. A method for determining network nodes, characterized in that, The method is applied to a first network node, which stores node information of multiple second network nodes. The node information of each second network node includes its node identifier and location information. The system receives a service request sent by a terminal device; the service request carries a node identifier; the node identifier is generated based on the attribute information of the second network node, and the node identifier is bound to the location information of the second network node; wherein, the attribute information of the second network node includes the data center to which the second network node belongs, rack number, node name, node type, and serial number; If the first network node stores node information that matches the node identifier, then the location information of the second network node that matches the node identifier is determined; if the first network node does not store node information that matches the node identifier, then a parsing request is sent to the server, so that the server determines the location information of the second network node based on the node identifier carried in the parsing request, and receives the location information of the second network node sent by the server. Based on the location information of the second network node, the service request is sent to the second network node.

2. 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: Based on the location information of the first network node and the location information of the second network node, at least one path is determined; For each path, an optimal path is determined based on the network latency and / or network packet loss rate corresponding to the path; the network latency corresponding to each path is used to reflect the time it takes for the service request to travel 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 traveling from the first network node to the second network node. 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 via the optimal path.

3. The method according to claim 1 or 2, characterized in that, The second network node is a computing power node.

4. The method according to claim 1, characterized in that, The method further includes: Obtain node information for multiple second network nodes; Broadcast the node information of each of the second network nodes.

5. A method for determining network nodes, characterized in that, Applied to a server, the method includes: The system receives a parsing request sent by a first network node. The parsing request carries a node identifier, which is generated based on the attribute information of a second network node and is bound to the location information of the second network node. The attribute information of the second network node includes the data center to which the second network node belongs, rack number, node name, node type, and serial number. Based on the node identifier carried in the parsing request, determine the location information of the second network node that matches the node identifier; Send the location information of the second network node to the first network node.

6. The method according to claim 5, characterized in that, The method further includes: Receive a registration request sent by the second network node; the registration request carries the attribute information of the second network node; Based on the attribute information of the second network node, a node identifier is assigned to the second network node; the node identifier of the second network node is bound to the location information of the second network node; Send the node identifier to the second network node.

7. The method according to claim 6, characterized in that, Based on the attribute information of the second network node, a node identifier is assigned to the second network node, including: The attribute information of the second network node is verified. If the verification is successful, a node identifier is assigned to the second network node based on the attribute information.

8. A network node determination device, characterized in that, The device is located at a first network node, which stores node information of multiple second network nodes. The node information of each second network node includes its node identifier and location information. The device comprises: The transceiver unit is used to receive service requests sent by terminal devices; the service request carries a node identifier; the node identifier is generated based on the attribute information of the second network node, and the node identifier is bound to the location information of the second network node; wherein, the attribute information of the second network node includes the data center to which the second network node belongs, rack number, node name, node type, and serial number; The determining unit is configured to: if the first network node stores node information that matches the node identifier, determine the location information of the second network node that matches the node identifier; if the first network node does not store node information that matches the node identifier, send a parsing 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 parsing request, and receive the location information of the second network node sent by the server. The transceiver unit is also configured to send the service request to the second network node based on the location information of the second network node.

9. A network node determination device, characterized in that, The device is located on a server, and the device includes: The transceiver unit is used to receive a parsing request sent by a first network node; the parsing request carries a node identifier, which is generated based on the attribute information of a second network node and is bound to the location information of the second network node; wherein, the attribute information of the second network node includes the data center to which the second network node belongs, rack number, node name, node type, and serial number; The processing unit is configured to determine the location information of a second network node that matches the node identifier carried in the parsing request; and to assign a node identifier to the second network node based on the attribute information of the second network node. The transceiver unit is also used to send the node identifier to the second network node.

10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores instructions that, when executed by a computer, enable the computer to perform the network node determination method as described in any one of claims 1-4, or the network node determination method as described in any one of claims 5-7.

Citation Information

Patent Citations

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

    CN115914402A