Communication method, apparatus, network device, storage medium, and program product
By sending and updating configuration information in the network device network, the problem of accurate access to terminal devices by network devices is solved, timely configuration updates and access are achieved, and costs are reduced.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- CHENGDU TD TECH LTD
- Filing Date
- 2024-11-27
- Publication Date
- 2026-05-29
AI Technical Summary
In scenarios involving multiple network devices, how network devices can accurately access terminal devices is a problem that urgently needs to be solved. In particular, when a terminal device connects to or switches network devices, other network devices cannot update their configuration information in a timely manner, resulting in the inability to access the terminal device.
After a terminal device connects to a first network device, the first network device sends first information to a second network device in the network. The second network device then updates its configuration information based on this information to access the terminal device. This information includes IP address, time information, etc., and is sent periodically to keep it updated.
This enables network devices in the network to update their configuration information in a timely manner, ensuring accurate access to terminal devices, avoiding the need for roaming interface activation and communication protocol negotiation, and reducing costs.
Smart Images

Figure CN122120784A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of communications, and more particularly to a communication method, apparatus, network device, storage medium, and program product. Background Technology
[0002] With the rapid development of communication technology, business demands are constantly increasing. In related technologies, multiple network devices can be networked together to achieve interconnection and interoperability, enabling business collaboration and better meeting business needs.
[0003] Access terminals can access data terminals through network devices to fulfill their service requirements. However, in scenarios where multiple network devices are networked, how to ensure that these network devices accurately access terminal devices is a pressing issue that needs to be addressed. Summary of the Invention
[0004] This application provides a communication method, apparatus, network device, storage medium, and program product to enable the network device in the network to update its configuration information in a timely manner after the terminal device accesses the network device in the network, thereby accessing the terminal device according to the configuration information.
[0005] In a first aspect, embodiments of this application provide a communication method applied to a first network device in a network, the network including multiple network devices; the method includes:
[0006] When a terminal device is connected to a first network device, it sends first information to a second network device in the network. The second network device is a network device other than the first network device in the network. The first information is used to instruct the second network device to update configuration information. The second network device is used to access the terminal device based on the configuration information.
[0007] In one possible implementation, the first information includes at least one of the following: the Internet Protocol (IP) address of the first network device, the IP address of the terminal device, and time information;
[0008] The time information is used to indicate the time when the first message was sent.
[0009] In one possible implementation, the configuration information includes N9 configuration, which includes source IP address, destination IP address and tunnel endpoint identifier (TEID). The source IP address is the IP address of the second network device, the destination IP address is the IP address of the first network device, and the TEID is a preset value.
[0010] In one possible implementation, when a terminal device is connected to a first network device, sending first information to a second network device in the network includes:
[0011] When the terminal device is connected to the first network device, the first information is sent periodically according to a preset period.
[0012] In one possible implementation, it also includes:
[0013] Receive request messages sent by network devices in the network that have not obtained the first information. The request messages are used to request the acquisition of the first information.
[0014] Based on the request message, send the first information to the network devices in the network that have not obtained the first information.
[0015] Secondly, embodiments of this application provide a communication method applied to a second network device in a network, the method comprising:
[0016] Obtain first information sent by the first network device, wherein the first information is sent by the first network device when the terminal device is connected to the first network device;
[0017] Based on the first information, the configuration information of the second network device is updated. The second network device is used to access the terminal device based on the configuration information.
[0018] In one possible implementation, the first information includes at least one of the following: the Internet Protocol (IP) address of the first network device, the IP address of the terminal device, and time information;
[0019] The time information is used to indicate the time when the first message was sent.
[0020] In one possible implementation, the configuration information includes N9 configuration, which includes source IP address, destination IP address and tunnel endpoint identifier (TEID). The source IP address is the IP address of the second network device, the destination IP address is the IP address of the first network device, and the TEID is a preset value.
[0021] In one possible implementation, updating the configuration information of the second network device based on the first information includes:
[0022] If the IP addresses of the terminal devices are the same in multiple pieces of first information, the configuration information of the second network device is updated according to the time information in multiple pieces of first information;
[0023] Among them, multiple pieces of first information are sent by different first network devices.
[0024] In one possible implementation, the configuration information of the second network device is updated based on the time information among multiple pieces of first information, including:
[0025] Based on the time information in multiple pieces of first information, the target information in multiple pieces of first information is determined, and the target information is the latest information received in the first information;
[0026] Update the destination IP address in the configuration information to the IP address of the first network device indicated in the target information.
[0027] In one possible implementation, it also includes:
[0028] Receive request messages sent by network devices in the network that have not obtained the first information. The request messages are used to request the acquisition of the first information.
[0029] Based on the request message, send the first information to the network devices in the network that have not obtained the first information.
[0030] In one possible implementation, acquiring the first information sent by the first network device includes:
[0031] Send a request message to all network devices in the network except the second network device. The request message is used to request the acquisition of the first information.
[0032] Receive the first message.
[0033] Thirdly, embodiments of this application provide a communication device applied to a first network device in a network, the network including multiple network devices; the device includes:
[0034] The transceiver module is used to send first information to a second network device in the network when the terminal device is connected to the first network device. The second network device is a network device other than the first network device in the network. The first information is used to instruct the second network device to update configuration information. The second network device is used to access the terminal device based on the configuration information.
[0035] In one possible implementation, the first information includes at least one of the following: the Internet Protocol (IP) address of the first network device, the IP address of the terminal device, and time information;
[0036] The time information is used to indicate the time when the first message was sent.
[0037] In one possible implementation, the configuration information includes N9 configuration, which includes source IP address, destination IP address and TEID. The source IP address is the IP address of the second network device, the destination IP address is the IP address of the first network device, and the TEID is a preset value.
[0038] In one possible implementation, when the terminal device is connected to the first network device, it sends first information to the second network device in the network. The transceiver module is specifically used for:
[0039] When the terminal device is connected to the first network device, the first information is sent periodically according to a preset period.
[0040] In one possible implementation, the transceiver module is specifically used for:
[0041] Receive request messages sent by network devices in the network that have not obtained the first information. The request messages are used to request the acquisition of the first information.
[0042] Based on the request message, send the first information to the network devices in the network that have not obtained the first information.
[0043] Fourthly, embodiments of this application provide a communication device applied to a second network device in a network, the device comprising:
[0044] The acquisition module is used to acquire first information sent by the first network device, which is sent by the first network device when the terminal device is connected to the first network device;
[0045] The processing module is used to update the configuration information of the second network device based on the first information, and the second network device is used to access the terminal device based on the configuration information.
[0046] In one possible implementation, the first information includes at least one of the following: the Internet Protocol (IP) address of the first network device, the IP address of the terminal device, and time information;
[0047] The time information is used to indicate the time when the first message was sent.
[0048] In one possible implementation, the configuration information includes N9 configuration, which includes source IP address, destination IP address and TEID. The source IP address is the IP address of the second network device, the destination IP address is the IP address of the first network device, and the TEID is a preset value.
[0049] In one possible implementation, the configuration information of the second network device is updated based on the first information, and the processing module is specifically used for:
[0050] If the IP addresses of the terminal devices are the same in multiple pieces of first information, the configuration information of the second network device is updated according to the time information in multiple pieces of first information;
[0051] Among them, multiple pieces of first information are sent by different first network devices.
[0052] In one possible implementation, the configuration information of the second network device is updated based on the time information among multiple pieces of first information, and the processing module is specifically used for:
[0053] Based on the time information in multiple pieces of first information, the target information in multiple pieces of first information is determined, and the target information is the latest information received in the first information;
[0054] Update the destination IP address in the configuration information to the IP address of the first network device indicated in the target information.
[0055] In one possible implementation, the processing module is specifically used for:
[0056] Receive request messages sent by network devices in the network that have not obtained the first information. The request messages are used to request the acquisition of the first information.
[0057] Based on the request message, send the first information to the network devices in the network that have not obtained the first information.
[0058] In one possible implementation, the module for acquiring first information sent by the first network device is specifically used for:
[0059] Send a request message to all network devices in the network except the second network device. The request message is used to request the acquisition of the first information.
[0060] Receive the first message.
[0061] Fifthly, embodiments of this application provide a network device, including: a transceiver, a memory, and a processor;
[0062] The memory stores the instructions that the computer executes;
[0063] The processor executes computer execution instructions stored in memory, causing the processor to perform the first aspect and / or the first aspect, or the second aspect and / or various possible implementations of the second aspect as described above.
[0064] In a sixth aspect, embodiments of this application provide a computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, are used to implement the first aspect and / or the second aspect and / or various possible implementations thereof.
[0065] In a seventh aspect, embodiments of this application provide a computer program product, including a computer program that, when executed by a processor, implements the first aspect and / or the second aspect and / or various possible implementations thereof.
[0066] This application provides a communication method, apparatus, network device, storage medium, and program product. When a terminal device connects to a first network device, the first network device sends first information to a second network device in the network. The second network device receives the first information sent by the first network device and updates its configuration information based on the first information. In this application embodiment, after the terminal device connects to a network device in the network, the network device in the network updates its configuration information in a timely manner, thereby enabling it to access the terminal device based on the configuration information. Attached Figure Description
[0067] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application.
[0068] Figure 1 This is a schematic diagram illustrating an application scenario of the communication method provided in the embodiments of this application;
[0069] Figure 2 Interaction diagram of the communication method provided in the embodiments of this application Figure 1 ;
[0070] Figure 3 Interaction diagram of the communication method provided in the embodiments of this application Figure 2 ;
[0071] Figure 4 A schematic diagram of the structure of a communication device provided in this application embodiment. Figure 1 ;
[0072] Figure 5 A schematic diagram of the structure of a communication device provided in this application embodiment. Figure 2 ;
[0073] Figure 6 This is a schematic diagram of the structure of a network device provided in this application.
[0074] The accompanying drawings illustrate specific embodiments of this application, which will be described in more detail below. These drawings and descriptions are not intended to limit the scope of the concept in any way, but rather to illustrate the concept of this application to those skilled in the art through reference to particular embodiments. Detailed Implementation
[0075] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numbers in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this application. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this application as detailed in the appended claims.
[0076] Figure 1 This is a schematic diagram illustrating an application scenario of the communication method provided in the embodiments of this application, such as... Figure 1 As shown, this scenario includes terminal devices and multiple network devices. These network devices are connected in a network configuration.
[0077] It should be noted that there is no limit to the number of terminal devices and network devices. For example, Figure 1 The terminal devices in the diagram are illustrated using terminal device 1 and terminal device 2 as examples, and the multiple network devices in the network are illustrated using network device 1, network device 2, and network device 3 as examples.
[0078] In some embodiments, the terminal device includes a data terminal (e.g., Figure 1 Terminal device 1) and access terminal (e.g., Figure 1 (2) Terminal devices in the network. Among them, the data terminal is used to provide services; the access terminal is used to access the data terminal through the network devices it is connected to, so as to use the services provided by the data terminal.
[0079] However, in networking scenarios, how the network devices connected to the access terminal can access the data terminal is a technical problem that urgently needs to be solved.
[0080] For example, in one possible application scenario, in the above network configuration, terminal device 1 is within the communication coverage area of network device 1 and is connected to network device 1. Due to the mobility of the terminal device, when terminal device 1 leaves the communication coverage area of network device 1 and moves to the communication range of network device 2 and accesses network device 2, terminal device 2 may not be able to continue to access terminal device 1.
[0081] In one possible application scenario, when terminal device 1 first connects to network device 1, the other network devices in the network (e.g., network device 2 and network device 3) are also unable to know the Internet Protocol (IP) address of terminal device 1, and therefore cannot access the terminal device.
[0082] In one possible application scenario, when a new network device joins the network, the newly connected network device will not know the IP address of terminal device 1, and therefore will be unable to access the terminal device.
[0083] In one possible application scenario, when a network device is reset after a crash and reconnected to the network, the reconnected network device will not know the IP address of terminal device 1 due to the system reset and restart, and therefore will not be able to access the terminal device.
[0084] To address the above problems, this application proposes the following solutions:
[0085] Option 1: The home network device can provide the network-side interface for the terminal device to ensure that network devices within the network can access the terminal device through this network-side interface.
[0086] Scheme 1 described above ensures that network devices in the network can access the data terminal. However, Scheme 1 requires roaming interfaces to be enabled between network devices. When a network device needs to access the data terminal, it must first be forwarded through the home network device (the device the data terminal first accesses) to the visited network device (the device the data terminal is currently accessing) before it can access the data terminal. Furthermore, if the home network device fails, the data terminal may become inaccessible.
[0087] Option 2: Network devices within the network can also use dynamic routing protocols to dynamically publish static IP addresses of data terminals, enabling network devices within the network to access data terminals. This application does not elaborate on the specific implementation of dynamic routing protocols.
[0088] Scheme 2 described above ensures that network devices in the network can access data terminals. However, implementing Scheme 2 requires the network devices in this embodiment to adopt a dynamic routing protocol, which may need to negotiate with existing communication protocols, such as 5G, thus complicating the solution and increasing costs.
[0089] Option 3: When a data terminal accesses a network device in the network, that network device can send first information to other network devices in the network, and then update its configuration information based on the first information, so as to access the data terminal accessing the network through the configuration information. In this embodiment, after the data terminal accesses a network device in the network, the network devices in the network update their configuration information in a timely manner, thereby enabling them to access the data terminal based on the configuration information.
[0090] Furthermore, Solution 3 does not require roaming interfaces between network devices. Even if the home network device fails, the network devices within the network can still update their configuration information in a timely manner and access the terminal devices based on the configuration information. In addition, Solution 3 does not require communication protocol negotiation, thus reducing costs.
[0091] It should be noted that the network devices involved in the embodiments of this application can refer to hardware devices used to connect, manage and control the flow of data in a computer network. Network devices include, but are not limited to, routers, switches, base stations, and rapid deployment small station systems. Among them, the rapid deployment small station system integrates the functions of base stations, core networks and scheduling systems, and has the characteristics of integration and miniaturization. It is suitable for emergency communication scenarios that require rapid deployment and have a small coverage area, such as emergency communication in the public safety industry and emergency communication for disaster relief. It can provide broadband trunking communication services such as voice, scheduling, data transmission and video surveillance at the mission site.
[0092] It should be noted that the terminal device involved in the embodiments of this application can be a device that provides voice and / or data connectivity to a user, a handheld device with wireless connectivity, or other processing devices connected to a wireless modem. The name of the terminal device may differ in different systems; for example, in a 5G or 6G system, the terminal device may be called User Equipment (UE). The wireless terminal device can be a USB storage device, other personal computer memory devices, and a dongle. It can also communicate with one or more core networks (CNs) via a Radio Access Network (RAN). The wireless terminal device can be a mobile terminal device, such as a mobile phone (or "cellular" phone) and a computer with a mobile terminal device. For example, it can be a portable, pocket-sized, handheld, computer-embedded, or vehicle-mounted mobile device that exchanges voice and / or data with the radio access network. Examples of such devices include Personal Communication Service (PCS) phones, cordless phones, Session Initiated Protocol (SIP) phones, Wireless Local Loop (WLL) stations, Personal Digital Assistants (PDAs), personal computers, tablets, and Machine-type Communication (MTC) terminal devices. Wireless terminal devices can also be referred to as systems, subscriber units, subscriber stations, mobile stations, mobile terminals, remote stations, access points, remote terminals, access terminals, user terminals, user agents, user devices, and wireless access devices and routers / modems that meet the limitations of this definition; however, this application does not limit the scope of the embodiments described.
[0093] The technical solution of Scheme 3 and how to solve the above-mentioned technical problems will be described in detail below with specific embodiments. These specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described again in some embodiments. The embodiments of this application will be described below with reference to the accompanying drawings.
[0094] Figure 2 Interaction diagram of the communication method provided in the embodiments of this application Figure 1 ,like Figure 2 As shown, the communication method in this application embodiment includes the following steps:
[0095] S201. When a terminal device is connected to a first network device, the first network device sends first information to the second network device in the network.
[0096] Among them, the terminal equipment is a data terminal.
[0097] The first network device can be any network device in the network. The second network device is any network device in the network other than the first network device. The first information is used to instruct the second network device to update the configuration information, and the second network device is used to access the terminal device based on the configuration information.
[0098] It should be noted that this application does not limit how the first network device and the second network device form a network. For example, networking technologies include, but are not limited to, wireless network communication technologies such as Wi-Fi protocol, software-defined wide area network (SD-WAN), and MESH self-organizing network technology.
[0099] The first network device accessing the first network device includes the following situations:
[0100] Scenario 1: The terminal device is connecting to the network devices in this network for the first time.
[0101] Scenario 2: The terminal device switches its connection from other network devices in the network to the first network device. For an example, please refer to... Figure 1 If terminal device 1 is connected to network device 1, due to the mobility of terminal device 1, when terminal device 1 leaves the communication coverage of network device 1 and moves to the communication range of network device 2 to access network device 2, network device 2 is the first network device in this application embodiment.
[0102] In one possible implementation, when a terminal device accesses a first network device, the first network device multicasts first information to a second network device in the network. For an example, please refer to... Figure 1 When a terminal device connects to network device 2, network device 2 sends the first information to network devices 1 and 3 within the network.
[0103] In some embodiments, the first information includes, but is not limited to, at least one of the following: the IP address of the first network device, the IP address of the terminal device, and time information.
[0104] Optionally, the time information is used to indicate the time when the first message was sent.
[0105] In one possible implementation, after a terminal device connects to the first network device, if the terminal device remains connected to the first network device, the first network device can periodically send first information according to a preset cycle. For example, taking a cycle length of 30 minutes, when the terminal device connects to the first network device, it sends the first information to other network devices within the network. If the terminal device remains connected to the first network device, after sending the first information, it sends the first information every 30 minutes, updating the time information in the first information each time it is sent.
[0106] It is possible that, for different devices, the time information may include more information. For example, for a second network device that receives the first information, the time information may include the time when the first network device sends the first information, or it may include the time when the second network device receives the first information.
[0107] In one possible implementation, when sending first information, the first network device can encapsulate the first information into a message and send the message to the second network device in the network. It should be noted that this application embodiment does not limit the specific method of sending the message. For example, if the first network device needs to send a message to one second network device, the message is sent via unicast using a unicast protocol; if the first network device needs to send messages to multiple second network devices, the message can be sent via multicast using a static multicast protocol. The message can be a Transmission Control Protocol (TCP) message or a User Datagram Protocol (UDP) message.
[0108] S202. The second network device updates its configuration information based on the first information.
[0109] The first information is sent by the first network device when the terminal device is connected to the first network device.
[0110] Specifically, the second network device obtains the first information sent by the first network device, and based on the first information, obtains the IP address of the first network device, the IP address of the terminal device, and the time information.
[0111] Furthermore, the second network device updates its configuration information based on the IP address of the first network device, the IP address of the terminal device, and the time information.
[0112] The configuration information includes N9 configuration, which includes source IP address, destination IP address and tunnel endpoint identifier (TEID). The source IP address is the IP address of the second network device, the destination IP address is the IP address of the first network device, and the TEID is a preset value.
[0113] For example, TEID is a 32-bit field used to uniquely identify and transmit data packets between the two endpoints of a General Packet Radio Service Tunneling Protocol (GTP) tunnel. By configuring TEID, packets from upper-layer protocols can be associated with the GTP tunnel, ensuring the correct transmission and routing of packets within the tunnel.
[0114] In one possible implementation, if the second network device does not currently store or configure the terminal device configuration information, then a new configuration information is added based on the IP address of the first network device, the IP address of the terminal device, and the time information.
[0115] In one possible implementation, if the IP addresses of the terminal devices are the same in multiple pieces of first information, the second network device updates the configuration information based on the time information in the multiple pieces of first information.
[0116] Specifically, in some embodiments, target information can be determined from multiple first information based on time information, and then configuration information can be updated based on the target information.
[0117] The target information is the latest information received in the first information; specifically, due to the mobility of terminal devices, the same terminal device may connect to multiple network devices one after another. Whenever the same terminal device connects to different network devices, each network device will send the first information to other network devices in the network, and the IP addresses of the terminal devices in multiple first information are the same.
[0118] Therefore, the same network device in a network may receive first information sent by different network devices, and the IP addresses of the terminal devices in multiple first messages are the same. In this case, the network device receiving multiple first messages can determine the first message whose time information is closest to the current actual time as the target information based on the time information in the multiple first messages. It then updates the destination IP address in the configuration information to the IP address of the first network device indicated in the target information, ensuring that the second network device can access the terminal device based on the latest configuration information. For example, terminal device 1 connects to network device 1 and network device 2 successively. Network device 1 (i.e., the first network device) sends first information 1 to network device 3, and network device 2 (i.e., the first network device) sends first information 2 to network device 3. Network device 3 (i.e., the second network device) determines the target information in first information 1 and second information 2 as first information 2 based on the time information in first information 1 and second information 2. At this time, the IP address of network device 2 is determined as the destination IP address in the configuration information.
[0119] In one possible implementation, each configuration information corresponds to a countdown timer. The initial countdown timer is a preset value, and the countdown timer gradually decreases until it reaches zero. When the configuration information is updated, the network device resets the countdown timer corresponding to that configuration information. When the countdown timer reaches zero, the network device deletes the configuration information.
[0120] For example, a countdown timer for a configuration information is 30 minutes, with an initial countdown of 60 minutes. When the configuration information is updated, the network device resets the countdown timer to 60 minutes. When the countdown reaches zero, the network device deletes the configuration information.
[0121] When the second network device updates its configuration information, and a terminal accessing the second network device needs to access a data terminal accessing the first network device, the second network device establishes a tunnel with the first network device based on the source IP address, destination IP address, and TEID in the configuration information, and accesses the data terminal through the tunnel. For example, in... Figure 1 In this system, terminal device 2 (i.e., access terminal) is connected to network device 3, and terminal device 1 (i.e., data terminal) is connected to network device 1. When terminal device 2 needs to provide services from terminal device 1, it accesses terminal device 1 through network device 2; correspondingly, terminal device 1 provides services to terminal device 2 through network device 1.
[0122] In one possible implementation, if external devices or users in the network need to access a terminal device (data terminal), based on the embodiments of this application, the first network device to which the terminal device is connected can enable external devices or users to access the terminal device through the Address Resolution Protocol (ARP) proxy of the terminal device.
[0123] The communication method, apparatus, network device, storage medium, and program product provided in this application embodiment, when a terminal device connects to a first network device, the first network device sends first information to a second network device in the network. The second network device obtains the first information sent by the first network device and updates its configuration information based on the first information. In this application embodiment, after the terminal device connects to a network device in the network, the network device in the network updates its configuration information in a timely manner, thereby enabling it to access the terminal device based on the configuration information.
[0124] Figure 3 is an interactive schematic diagram of the communication method provided in the embodiments of this application. Figure 2 ,like Figure 3 As shown, the communication method in this application embodiment includes the following steps:
[0125] S301. When a terminal device is connected to a first network device, the first network device sends first information to the second network device in the network.
[0126] S302. The second network device updates its configuration information based on the first information.
[0127] It should be noted that the specific implementation process of S301 to S302 can be referred to the specific implementation process of S201 to S202, and will not be repeated in the embodiments of this application.
[0128] S303. A network device that has not obtained the first information in the network sends a request message to other network devices in the network besides itself.
[0129] It should be noted that this application does not impose any limitations on network devices that fail to obtain the first information in the network. Network devices may fail to obtain the first information due to various different circumstances. For example, a network device may be a network device that has been reset after a crash and has missed or lost the first information. Alternatively, it may be a network device that accessed the network only after the first network device sent the first message. In this case, the network device missed the first message sent by the first network device.
[0130] Specifically, when a network device that has not obtained the first information needs to access a terminal device, the network device needs to obtain the first message to update its configuration information and then access the terminal device based on the configuration information.
[0131] However, since the network device does not know the IP address of the first network device, it sends request messages to all network devices in the network except for itself in order to obtain the first message.
[0132] S304. The first network device sends the first information to the network devices in the network that have not obtained the first information, based on the request message.
[0133] In one possible implementation, the first network device receives a request message from a network device in the network that has not obtained the first information, and unicasts the first information to that network device according to the request message.
[0134] Specifically, the first network device receives a request message from a network device in the network that has not obtained the first information, and sends the first information to that network device according to the request message;
[0135] In one possible implementation, the first network device receives a request message from a network device in the network that has not obtained the first information, and multicasts the first information to that network device according to the request message.
[0136] Specifically, the first network device can also send the first information to all network devices in the network except the first network device, based on the request message.
[0137] In one possible implementation, the second network device that receives the first information sends the first information to the network devices in the network that have not obtained the first information, according to the request message.
[0138] Specifically, since the network device that has not obtained the first information sends a request message to all network devices in the network except for itself, the second network device can also receive the request message sent by the network device.
[0139] It is possible that the second network device that receives the first information can send the received first information to the network device according to the request message.
[0140] S305. Network devices that have not obtained the first information in the network shall update their configuration information based on the first information.
[0141] It should be noted that the specific implementation process of S305 can be referred to the specific implementation process of S202, and will not be repeated in the embodiments of this application.
[0142] The communication method provided in this application embodiment, when a terminal device is connected to a first network device, involves the first network device sending first information to a second network device in the network. The second network device obtains the first information sent by the first network device and updates its configuration information based on the first information. A network device in the network that does not obtain the first information sends a request message to other network devices in the network. The first network device, based on the request message, sends the first information to the network devices in the network that did not obtain the first information. The network devices that did not obtain the first information update their configuration information based on the first information. In this application, network devices that do not obtain the first information actively send request messages to other devices in the network to obtain the first information and update their configuration information, thus enabling network devices that do not obtain the first information to proactively discover and access terminal devices.
[0143] Figure 4 A schematic diagram of the structure of a communication device provided in this application embodiment. Figure 1 ,like Figure 4 As shown, the communication device 400 provided in this embodiment includes:
[0144] The transceiver module 401 is used to send first information to a second network device in the network when the terminal device is connected to the first network device. The second network device is a network device other than the first network device in the network. The first information is used to instruct the second network device to update configuration information. The second network device is used to access the terminal device based on the configuration information.
[0145] In one possible implementation, the first information includes at least one of the following: the Internet Protocol (IP) address of the first network device, the IP address of the terminal device, and time information;
[0146] The time information is used to indicate the time when the first message was sent.
[0147] In one possible implementation, the configuration information includes N9 configuration, which includes source IP address, destination IP address and tunnel endpoint identifier (TEID). The source IP address is the IP address of the second network device, the destination IP address is the IP address of the first network device, and the TEID is a preset value.
[0148] In one possible implementation, when the terminal device is connected to the first network device, the transceiver module 401 sends first information to the second network device in the network. Specifically, the transceiver module 401 is used for:
[0149] When the terminal device is connected to the first network device, the first information is sent periodically according to a preset period.
[0150] In one possible implementation, the transceiver module 401 is specifically used for:
[0151] Receive request messages sent by network devices in the network that have not obtained the first information. The request messages are used to request the acquisition of the first information.
[0152] Based on the request message, send the first information to the network devices in the network that have not obtained the first information.
[0153] The communication device provided in this embodiment can execute the method provided in the above method embodiment. Its implementation principle and technical effect are similar, and will not be described in detail here.
[0154] Figure 5 A schematic diagram of the structure of a communication device provided in this application embodiment. Figure 2 ,like Figure 5 As shown, the communication device 500 provided in this embodiment includes:
[0155] The acquisition module 501 is used to acquire first information sent by the first network device, wherein the first information is sent by the first network device when the terminal device is connected to the first network device;
[0156] The processing module 502 is used to update the configuration information of the second network device according to the first information, and the second network device is used to access the terminal device based on the configuration information.
[0157] In one possible implementation, the first information includes at least one of the following: the Internet Protocol (IP) address of the first network device, the IP address of the terminal device, and time information;
[0158] The time information is used to indicate the time when the first message was sent.
[0159] In one possible implementation, the configuration information includes N9 configuration, which includes source IP address, destination IP address and tunnel endpoint identifier (TEID). The source IP address is the IP address of the second network device, the destination IP address is the IP address of the first network device, and the TEID is a preset value.
[0160] In one possible implementation, based on the first information, the configuration information of the second network device is updated, and the processing module 502 is specifically used for:
[0161] If the IP addresses of the terminal devices are the same in multiple pieces of first information, the configuration information of the second network device is updated according to the time information in multiple pieces of first information;
[0162] Among them, multiple pieces of first information are sent by different first network devices.
[0163] In one possible implementation, the processing module 502 updates the configuration information of the second network device based on the time information among multiple pieces of first information, specifically for:
[0164] Based on the time information in multiple pieces of first information, the target information in multiple pieces of first information is determined, and the target information is the latest information received in the first information;
[0165] Update the destination IP address in the configuration information to the IP address of the first network device indicated in the target information.
[0166] In one possible implementation, the processing module 502 is specifically used for:
[0167] Receive request messages sent by network devices in the network that have not obtained the first information. The request messages are used to request the acquisition of the first information.
[0168] Based on the request message, send the first information to the network devices in the network that have not obtained the first information.
[0169] In one possible implementation, the acquisition module 501 is specifically used to acquire the first information sent by the first network device, and to:
[0170] Send a request message to all network devices in the network except the second network device. The request message is used to request the acquisition of the first information.
[0171] Receive the first message.
[0172] The communication device provided in this embodiment can execute the method provided in the above method embodiment. Its implementation principle and technical effect are similar, and will not be described in detail here.
[0173] Figure 6 is a schematic diagram of the structure of a network device provided in this application. Figure 6 As shown, the network device 600 provided in this embodiment includes: a transceiver 601, a memory 602, and a processor 603.
[0174] Transceiver 601 may include a transmitter and / or a receiver. The transmitter may also be referred to as a transmitter, transmitter, transmitting port, or transmitting interface, and the receiver may also be referred to as a receiver, receiver, receiving port, or receiving interface, etc. Exemplarily, transceiver 601, memory 602, and processor 603 are interconnected via bus 604.
[0175] In the above embodiments, it should be understood that the processor can be a Central Processing Unit (CPU), or other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), etc. The general-purpose processor can be a microprocessor or any conventional processor. The steps of the method disclosed in this invention can be directly implemented by a hardware processor, or implemented by a combination of hardware and software modules within the processor.
[0176] The memory may include random access memory (RAM) and may also include non-volatile memory (NVM), such as at least one disk storage device.
[0177] The bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus, etc. Buses can be categorized as address buses, data buses, control buses, etc. For ease of illustration, the buses shown in the accompanying drawings are not limited to a single bus or a single type of bus.
[0178] This application also provides a computer program product, including a computer program that, when executed by a processor, implements the above-described method.
[0179] This application also provides a computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, implement the above-described method.
[0180] The aforementioned readable storage medium can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic storage, flash memory, magnetic disk, or optical disk. The readable storage medium can be any available medium accessible to a general-purpose or special-purpose computer.
[0181] An exemplary readable storage medium is coupled to a processor, enabling the processor to read information from and write information to the readable storage medium. Of course, the readable storage medium can also be a component of the processor. The processor and the readable storage medium can reside in an Application Specific Integrated Circuit (ASIC). Alternatively, the processor and the readable storage medium can exist as discrete components in the device.
[0182] The division of units is merely a logical functional division; 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 coupling or direct coupling or communication connection shown or discussed may be indirect coupling or communication connection through some interfaces, devices, or units, and may be electrical, mechanical, or other forms.
[0183] 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.
[0184] In addition, the functional units in the various embodiments of the present invention 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.
[0185] If a function is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this invention, or the part that contributes to the prior art, or a part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods of the various embodiments of this invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0186] Those skilled in the art will understand that all or part of the steps of the above-described method embodiments can be implemented by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When executed, the program performs the steps of the above-described method embodiments; and the aforementioned storage medium includes various media capable of storing program code, such as ROM, RAM, magnetic disks, or optical disks.
[0187] Finally, it should be noted that other embodiments of the invention will readily occur to those skilled in the art upon consideration of the specification and practice of the invention disclosed herein. This invention is intended to cover any variations, uses, or adaptations of the invention that follow the general principles of the invention and include common knowledge or customary techniques in the art not disclosed herein, and is not limited to the precise structures described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of the invention is limited only by the appended claims.
Claims
1. A communication method, characterized in that, A first network device applied in a network, wherein the network includes multiple network devices; the method includes: When a terminal device accesses the first network device, it sends first information to a second network device in the network. The second network device is a network device in the network other than the first network device. The first information is used to instruct the second network device to update configuration information. The second network device is used to access the terminal device based on the configuration information.
2. The method according to claim 1, characterized in that, The first information includes at least one of the following: the Internet Protocol (IP) address of the first network device, the IP address of the terminal device, and time information; The time information is used to indicate the time when the first information was sent.
3. The method according to claim 1, characterized in that, The configuration information includes N9 configuration, which includes source IP address, destination IP address and tunnel endpoint identifier (TEID). The source IP address is the IP address of the second network device, the destination IP address is the IP address of the first network device, and the TEID is a preset value.
4. The method according to claim 1, characterized in that, When a terminal device is connected to the first network device, sending first information to the second network device in the network includes: When a terminal device is connected to the first network device, the first information is sent periodically according to a preset period.
5. The method according to any one of claims 1-4, characterized in that, Also includes: Receive a request message sent by a network device in the network that has not obtained the first information, the request message being used to request to obtain the first information; According to the request message, the first information is sent to network devices in the network that have not obtained the first information.
6. A communication method, characterized in that, The method, applied to a second network device in a network configuration, includes: Obtain first information sent by the first network device, wherein the first information is sent by the first network device when the terminal device is connected to the first network device; Based on the first information, the configuration information of the second network device is updated, and the second network device is used to access the terminal device based on the configuration information.
7. The method according to claim 6, characterized in that, The first information includes at least one of the following: the Internet Protocol (IP) address of the first network device, the IP address of the terminal device, and time information; The time information is used to indicate the time when the first information was sent.
8. The method according to claim 7, characterized in that, The configuration information includes N9 configuration, which includes source IP address, destination IP address and TEID. The source IP address is the IP address of the second network device, the destination IP address is the IP address of the first network device, and the TEID is a preset value.
9. The method according to claim 8, characterized in that, The step of updating the configuration information of the second network device based on the first information includes: If the IP addresses of the terminal devices are the same in multiple pieces of first information, the configuration information of the second network device is updated according to the time information in the multiple pieces of first information; The plurality of first information items are sent by different first network devices.
10. The method according to claim 9, characterized in that, The step of updating the configuration information of the second network device based on the time information among the plurality of first information includes: Based on the time information in the plurality of first information, the target information in the plurality of first information is determined, wherein the target information is the latest information received in the first information; Update the destination IP address in the configuration information to the IP address of the first network device indicated in the target information.
11. The method according to any one of claims 6-10, characterized in that, Also includes: Receive a request message sent by a network device in the network that has not obtained the first information, the request message being used to request to obtain the first information; According to the request message, the first information is sent to network devices in the network that have not obtained the first information.
12. The method according to any one of claims 6-10, characterized in that, The step of obtaining the first information sent by the first network device includes: Send a request message to network devices in the network other than the second network device, the request message being used to request the first information; Receive the first information.
13. A communication device, characterized in that, A first network device used in a network, wherein the network includes multiple network devices; the device includes: The transceiver module is used to send first information to a second network device in the network when the terminal device is connected to the first network device. The second network device is a network device in the network other than the first network device. The first information is used to instruct the second network device to update configuration information. The second network device is used to access the terminal device based on the configuration information.
14. A communication device, characterized in that, A second network device used in a network, the device comprising: The acquisition module is used to acquire first information sent by the first network device, wherein the first information is sent by the first network device when the terminal device is connected to the first network device; The processing module is used to update the configuration information of the second network device according to the first information, and the second network device is used to access the terminal device based on the configuration information.
15. A network device, characterized in that, include: Transceiver, memory, processor; The memory stores computer-executed instructions; The processor executes computer execution instructions stored in the memory, causing the processor to perform the method as described in any one of claims 1-12.
16. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer-executable instructions, which, when executed by a processor, are used to implement the method as described in any one of claims 1-12.
17. A computer program product, characterized in that, Includes a computer program that, when executed by a processor, implements the method described in any one of claims 1-12.