Communication method, instrument and storage medium
By receiving and processing downlink data from the target server through the instrument, determining the TEID based on the IP address, and directly sending the data to the terminal, the problem of high communication latency between the terminal and the server is solved, realizing direct communication between the terminal and the server, and reducing costs and latency.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- DATANG LINKTESTER TECH
- Filing Date
- 2024-11-25
- Publication Date
- 2026-05-26
AI Technical Summary
In existing technologies, the communication latency between terminals and servers is relatively large, and the increase in ad hoc networks or core network equipment leads to increased overhead and time costs.
The instrument receives downlink data sent by the target server, determines the target TEID based on the configuration information and IP address, and directly sends the downlink data to the target terminal. The main control board and baseband board are used for data encapsulation and transmission to realize direct communication between the terminal and the server.
This reduces data interaction, lowers communication latency between the terminal and the server, and reduces hardware costs.
Smart Images

Figure CN122093360A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of communication technology, and in particular to a communication method, instrument, and storage medium. Background Technology
[0002] After the terminal is connected to the meter, it needs to communicate with the server through an ad hoc network or a core network. One networking method for the terminal, meter, and server is to add an ad hoc network function to the meter and establish a connection between the meter and the server through the ad hoc network; another networking method is to add a core network device between the meter and the server and establish a link between the meter and the core network device.
[0003] In current instrument-based terminal communication methods, the addition of self-organizing network or core network equipment leads to increased overhead and time costs, and also increases the communication latency between the terminal and the server. Summary of the Invention
[0004] This invention provides a communication method, instrument, and storage medium to solve the technical problem of high communication latency between terminals and servers in the prior art.
[0005] In a first aspect, the present invention provides a communication method comprising the following steps.
[0006] Receive downlink data sent by the target server; the downlink data includes the target server's Internet Protocol (IP) address and the target terminal's IP address; The target tunnel endpoint identifier (TEID) is determined based on the configuration information, the target server IP address, and the target terminal IP address. The configuration information includes one or more sets of associated information, and each set of associated information includes the terminal IP address, the server IP address, and the TEID. Downlink data is sent to the target terminal via the target TEID.
[0007] In some embodiments, the baseband board in the instrument includes multiple Layer 2 components, and each set of associated information further includes Layer 2 identification information; determining the Target Tunnel Endpoint Identifier (TEID) based on configuration information, the target server IP address, and the target terminal IP address includes: The main control board in the instrument obtains the identification information of the target layer 2 from the configuration information based on the target server IP address and the target terminal IP address, and determines the MAC address of the target layer 2 based on the identification information of the target layer 2. The main control board sends downlink data to the target layer 2 based on the MAC address of the target layer 2; The target layer 2 receives downlink data sent by the main control board and obtains the target TEID corresponding to the identification information of the target layer 2 from the configuration information.
[0008] In some embodiments, sending downlink data to the target layer 2 based on the MAC address of the target layer 2 includes: The main control board encapsulates the downlink data into a first MAC field; the source MAC address in the first MAC field is the MAC address of the main control board, and the destination MAC address in the first MAC field is the MAC address of the target layer 2. The main control board sends the first MAC field to the target layer 2.
[0009] In some embodiments, the baseband board in the instrument further includes a driver module; transmitting downlink data to the target terminal via the target TEID includes: The driver module encapsulates downlink data based on the target TEID; the target TEID is used to identify the data transmission tunnel between the target terminal and the target Layer 2. The target layer 2 sends the encapsulated downlink data to the target terminal.
[0010] In some embodiments, the method further includes: Before the target terminal is connected to the instrument, the configuration information sent by the main control tool MCT is received; the configuration information includes one or more sets of association information corresponding to different terminals, and the TEID in the configuration information is empty; After the target terminal is connected to the instrument, it receives the target TEID corresponding to the target terminal sent by MCT and updates the configuration information according to the target TEID.
[0011] In some embodiments, the method further includes: After the target terminal is connected to the meter, it receives configuration information sent by MCT; the configuration information includes one or more sets of association information corresponding to the target terminal.
[0012] In some embodiments, the method further includes: Receive uplink data sent by the target terminal; the uplink data includes the target server IP address; Determine the target server's MAC address based on the target server's IP address; Uplink data is sent to the target server based on the target server's MAC address.
[0013] In some embodiments, determining the target server's MAC address based on the target server's IP address includes: The baseband board in the instrument broadcasts Address Resolution Protocol (ARP) request messages; the ARP request message carries the target server's IP address; The baseband board receives feedback messages sent by the target server; the feedback messages carry the target server's MAC address.
[0014] In some embodiments, sending uplink data to the target server based on the target server's MAC address includes: The baseband board in the instrument sends the uplink data and the target server's MAC address to the main control board in the instrument. The main control board receives the uplink data and the target server MAC address sent by the baseband board, and then sends the uplink data to the target server based on the target server MAC address.
[0015] In some embodiments, sending uplink data and the target server MAC address to the main control board in the instrument includes: The baseband board removes the header of the uplink message sent by the target terminal; the uplink message carries uplink data; the header of the uplink message contains the TEID of the data transmission tunnel between the target terminal and the Layer 2 receiving uplink data. The baseband board encapsulates the uplink data into a second MAC field; the source MAC address in the second MAC field is the Layer 2 MAC address that receives the uplink data, and the destination MAC address in the second MAC field is the MAC address of the main control board; The baseband board sends the second MAC field and the target server's MAC address to the main control board.
[0016] In some embodiments, sending uplink data to the target server based on the target server's MAC address includes: The main control board encapsulates the uplink data into a third MAC field; the source MAC address in the third MAC field is the MAC address of the main control board, and the destination MAC address in the third MAC field is the MAC address of the target server. The main control board sends the third MAC field to the target server.
[0017] In a second aspect, the present invention provides an instrument, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor is configured to read the computer program and perform the following operations: Receive downlink data sent by the target server; the downlink data includes the target server's Internet Protocol (IP) address and the target terminal's IP address; The target tunnel endpoint identifier (TEID) is determined based on the configuration information, the target server IP address, and the target terminal IP address. The configuration information includes one or more sets of associated information, and each set of associated information includes the terminal IP address, the server IP address, and the TEID. Downlink data is sent to the target terminal via the target TEID.
[0018] In some embodiments, the baseband board in the instrument includes multiple Layer 2 components, and each set of associated information further includes Layer 2 identification information; determining the Target Tunnel Endpoint Identifier (TEID) based on configuration information, the target server IP address, and the target terminal IP address includes: The main control board in the processor control instrument obtains the identification information of the target layer 2 from the configuration information based on the target server IP address and the target terminal IP address, and determines the MAC address of the target layer 2 based on the identification information of the target layer 2. The processor controls the main control board to send downlink data to the target layer 2 based on the MAC address of the target layer 2; The processor controls the target layer 2 to receive downlink data sent by the main control board and obtains the target TEID corresponding to the identification information of the target layer 2 from the configuration information.
[0019] In some embodiments, sending downlink data to the target layer 2 based on the MAC address of the target layer 2 includes: The processor controls the main control board to encapsulate the downlink data into a first MAC field; the source MAC address in the first MAC field is the MAC address of the main control board, and the destination MAC address in the first MAC field is the MAC address of the target layer 2; The processor controls the main control board to send the first MAC field to the target layer 2.
[0020] In some embodiments, the baseband board in the instrument further includes a driver module; transmitting downlink data to the target terminal via the target TEID includes: The processor control driver module encapsulates downlink data based on the target TEID; the target TEID is used to identify the data transmission tunnel between the target terminal and the target Layer 2. The processor controls the target layer 2 to send the encapsulated downlink data to the target terminal.
[0021] In some embodiments, the processor is also configured to read a computer program from the memory and perform the following operations: Before the target terminal is connected to the instrument, the configuration information sent by the main control tool MCT is received; the configuration information includes one or more sets of association information corresponding to different terminals, and the TEID in the configuration information is empty; After the target terminal is connected to the instrument, it receives the target TEID corresponding to the target terminal sent by MCT and updates the configuration information according to the target TEID.
[0022] In some embodiments, the processor is also configured to read a computer program from the memory and perform the following operations: After the target terminal is connected to the meter, it receives configuration information sent by MCT; the configuration information includes one or more sets of association information corresponding to the target terminal.
[0023] In some embodiments, the processor is also configured to read a computer program from the memory and perform the following operations: Receive uplink data sent by the target terminal; the uplink data includes the target server IP address; Determine the target server's MAC address based on the target server's IP address; Uplink data is sent to the target server based on the target server's MAC address.
[0024] In some embodiments, determining the target server's MAC address based on the target server's IP address includes: The baseband board in the processor control instrument broadcasts an Address Resolution Protocol (ARP) request message; the ARP request message carries the target server's IP address. The processor controls the baseband board to receive feedback messages sent by the target server; the feedback messages carry the target server's MAC address.
[0025] In some embodiments, sending uplink data to the target server based on the target server's MAC address includes: The processor controls the baseband board in the instrument to send uplink data and the target server's MAC address to the main control board in the instrument. The processor controls the main control board to receive uplink data and the target server's MAC address sent by the baseband board, and then sends the uplink data to the target server based on the target server's MAC address.
[0026] In some embodiments, sending uplink data and the target server MAC address to the main control board in the instrument includes: The processor controls the baseband board to delete the header of the uplink message sent by the target terminal; the uplink message carries uplink data; the header of the uplink message contains the TEID of the data transmission tunnel between the target terminal and the Layer 2 receiving uplink data. The processor controls the baseband board to encapsulate the uplink data into a second MAC field; the source MAC address in the second MAC field is the Layer 2 MAC address of the receiving uplink data, and the destination MAC address in the second MAC field is the MAC address of the main control board; The processor controls the baseband board to send the second MAC field and the target server's MAC address to the main control board.
[0027] In some embodiments, sending uplink data to the target server based on the target server's MAC address includes: The processor controls the main control board to encapsulate the uplink data into a third MAC field; the source MAC address in the third MAC field is the MAC address of the main control board, and the destination MAC address in the third MAC field is the MAC address of the target server. The processor controls the main control board to send the third MAC field to the target server.
[0028] Thirdly, the present invention also provides a processor-readable storage medium storing a computer program that, when executed by a processor, implements any of the communication methods described above.
[0029] Fourthly, the present invention also provides a non-transitory readable storage medium on which a computer program is stored, which, when executed by a processor, implements any of the communication methods described above.
[0030] Fifthly, the present invention also provides a computer-readable storage medium storing a computer program for causing a computer to perform any of the communication methods described above.
[0031] The communication method, instrument, and storage medium provided by this invention involve the instrument receiving downlink data sent by a target server, the downlink data including the target server IP address and the target terminal IP address; determining a target TEID based on configuration information, the target server IP address, and the target terminal IP address; wherein the configuration information includes one or more sets of association information, each set of association information including the terminal IP address, the server IP address, and the TEID; and sending the downlink data to the target terminal through the target TEID. This enables the server to communicate directly with the terminal through the instrument, without needing to go through the core network for forwarding, reducing data interaction and lowering the communication latency between the terminal and the server. Attached Figure Description
[0032] To more clearly illustrate the technical solutions in this invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of this invention. For those skilled in the art, other drawings can be obtained from these drawings without creative effort.
[0033] Figure 1 This is one of the flowcharts illustrating the communication method provided by the present invention.
[0034] Figure 2 This is a schematic diagram of the networking mode of the communication method provided by the present invention.
[0035] Figure 3 This is the second flowchart of the communication method provided by the present invention.
[0036] Figure 4 This is a schematic diagram of the structure of the instrument provided by the present invention. Detailed Implementation
[0037] To make the objectives, technical solutions, and advantages of this invention clearer, the technical solutions of this invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of this invention. All other embodiments obtained by those skilled in the art based on the embodiments of this invention without creative effort are within the scope of protection of this invention.
[0038] Figure 1 This is one of the flowcharts illustrating the communication method provided by the present invention, such as... Figure 1 As shown, this invention provides a communication method, the execution subject of which can be an instrument, which can be a device for terminal testing, such as a device for testing the terminal's services, testing whether the protocol used by the terminal conforms to standards, etc. The method includes: Step 101: Receive downlink data sent by the target server; the downlink data includes the target server's Internet Protocol IP address and the target terminal's IP address.
[0039] Specifically, the target server sends downlink data to the instrument, which includes the target server's Internet Protocol (IP) address and the target terminal's IP address; the instrument receives the downlink data sent by the target server.
[0040] The target server can be an external server (i.e., an external network server) or an Image Management Service (IMS) server. The IMS server deploys network performance testing tools (iperf repackaging tools) and file transfer tools (ftp transfer tools) to support iperf repackaging and file transfer functions.
[0041] For example, Figure 2 This is a schematic diagram of the networking mode of the communication method provided by the present invention, as shown below. Figure 2 As shown, after the terminal is connected to the instrument, it can communicate with the external server through the instrument. The terminal is connected to the instrument via an RF cable, and the external server is connected to the instrument via a network cable.
[0042] For example, such as Figure 2 As shown, after the terminal is connected to the meter, it can communicate with the IMS server through the meter. The terminal is connected to the meter via an RF cable. A switch is needed to forward data between the meter and the IMS server. The meter and the switch, as well as the switch and the IMS server, are all connected via network cables.
[0043] In this embodiment of the application, when the terminal's service type is a low-speed service (such as voice service), the terminal communicates with the MS server through the instrument; when the terminal's service type is a high-speed service (such as video call service), the terminal communicates with an external server through the instrument.
[0044] Step 102: Determine the Target Tunnel Endpoint Identifier (TEID) based on the configuration information, the target server IP address, and the target terminal IP address. The configuration information includes one or more sets of associated information, each set of associated information including the terminal IP address, the server IP address, and the TEID.
[0045] Specifically, the instrument receives downlink data sent by the target server, obtains the target server IP address and the target terminal IP address from the downlink data, and determines the target tunnel endpoint identifier (TEID) based on the configuration information and the obtained target server IP address and target terminal IP address.
[0046] The configuration information includes one or more sets of association information, each set of association information being a set of associated terminal IP addresses, server IP addresses, and TEID, etc.
[0047] For example, the instrument receives downlink data sent by the target server, learns from the downlink data that the target server IP address is server IP-1 and the target terminal IP address is terminal IP-1, then matches the association information between server IP-1 and terminal IP-1 in the configuration information, and determines the target TEID based on the matched association information.
[0048] Step 103: Send downlink data to the target terminal via the target TEID.
[0049] Specifically, obtaining the target TEID identifies the endpoint of the data transmission tunnel between the instrument and the target terminal, enabling the instrument to send downlink data to the target terminal via the target TEID. The target terminal then receives the downlink data sent by the instrument.
[0050] The communication method provided in this application embodiment is based on an instrument receiving downlink data sent by a target server. This downlink data includes the target server IP address and the target terminal IP address. Then, the instrument determines a target TEID based on configuration information, the target server IP address, and the target terminal IP address. The configuration information includes one or more sets of association information, each set including the terminal IP address, server IP address, and TEID. Finally, the downlink data is sent to the target terminal using the target TEID. This method enables the server to communicate directly with the terminal via the instrument, eliminating the need for core network forwarding, reducing costs, minimizing data interaction, and lowering communication latency between the terminal and the server.
[0051] In some embodiments, the baseband board in the instrument includes multiple Layer 2 components, and each set of associated information further includes Layer 2 identification information; determining the Target Tunnel Endpoint Identifier (TEID) based on configuration information, the target server IP address, and the target terminal IP address includes: The main control board in the instrument obtains the identification information of the target layer 2 from the configuration information based on the target server IP address and the target terminal IP address, and determines the Media Access Control (MAC) address of the target layer 2 according to the identification information of the target layer 2. The main control board sends downlink data to the target layer 2 based on the MAC address of the target layer 2; The target layer 2 receives downlink data sent by the main control board and obtains the target TEID corresponding to the identification information of the target layer 2 from the configuration information.
[0052] Specifically, the instrument includes a baseband board and a main control board. Figure 3 This is a second flowchart illustrating the communication method provided by the present invention, as shown below. Figure 3 As shown, the terminal (UE) is directly connected to the instrument's baseband board, the baseband board inside the instrument is directly connected to the main control board, and the main control board of the instrument is directly connected to the server. The baseband board is used to receive uplink data sent by the terminal and send the uplink data to the main control board, and also to receive downlink data sent by the main control board and send the downlink data to the terminal; the main control board is used to receive uplink data sent by the baseband board and send the uplink data to the server, and also to receive downlink data sent by the server and send the downlink data to the baseband board.
[0053] The baseband board includes multiple Layer 2 data link layers. Each Layer 2 is identified by identification information, which can be the core number of the Layer 2. Each Layer 2 corresponds to a unique core number, which is used to distinguish different Layer 2s. Each Layer 2 or each core number also corresponds to a MAC address.
[0054] Each set of associated information also includes Layer 2 identification information, which includes a set of interconnected terminal IP addresses, server IP addresses, TEIDs, and Layer 2 identification information.
[0055] To determine the target TEID, firstly, the main control board in the instrument matches the Layer 2 identifier information associated with both the target server IP address and the target terminal IP address in the configuration information, thus obtaining the target Layer 2 identifier information. Based on this identifier information, the MAC address of the target Layer 2 is determined. This target Layer 2 is used to send downlink data to the target terminal. Then, the main control board in the instrument sends the downlink data to the target Layer 2 based on its MAC address. Finally, the target Layer 2 receives the downlink data sent by the main control board and retrieves the target TEID corresponding to its identifier information from the configuration information.
[0056] For example, the main control board in the instrument receives downlink data sent by the target server. From the downlink data, it learns that the target server's IP address is Server IP-1 and the target terminal's IP address is Terminal IP-1. The main control board matches the Layer 2 identifier information associated with both Server IP-1 and Terminal IP-1 in the configuration information. The matched identifier information is Layer 2-2, meaning the target Layer 2 is Layer 2-2. The main control board then sends the downlink data to Layer 2-2 in the baseband board. After receiving the downlink data, Layer 2-2 matches the TEID associated with both Terminal IP-1 and Layer 2-2 in the configuration information, thus obtaining the target TEID.
[0057] The communication method provided in this application embodiment uses the main control board in the instrument to match the identification information of the target layer 2 based on the configuration information, so that the downlink data is sent to the target layer 2 for processing. The target layer 2 matches the target TEID based on the configuration information and sends the downlink data to the target terminal through the target TEID. This enables the instrument to determine the target TEID on its own, so that the server can communicate directly with the terminal through the instrument without going through the core network, reducing data interaction and reducing the communication latency between the terminal and the server.
[0058] In some embodiments, sending downlink data to the target layer 2 based on the MAC address of the target layer 2 includes: The main control board encapsulates the downlink data into a first MAC field; the source MAC address in the first MAC field is the MAC address of the main control board, and the destination MAC address in the first MAC field is the MAC address of the target layer 2. The main control board sends the first MAC field to the target layer 2.
[0059] Specifically, after the main control board in the instrument obtains the MAC address of the target layer 2, it encapsulates the downlink data based on the MAC address of the target layer 2. This includes changing the source MAC address and destination MAC address in the data packet. The source MAC address is changed to the MAC address of the main control board, and the destination MAC address is changed to the MAC address of the target layer 2, thereby obtaining the encapsulated downlink data packet, i.e., the first MAC field, and then sending the first MAC field to the target layer 2.
[0060] The terminal communication method based on the instrument provided in this application embodiment involves the main control board in the instrument changing the source MAC address and the destination MAC address, and sending the first MAC field obtained by encapsulating the downlink data to the target layer 2, so that the target layer 2 receives the downlink data and sends it to the target terminal, thus ensuring the smooth transmission of downlink data.
[0061] In some embodiments, the baseband board in the instrument further includes a driver module; transmitting downlink data to the target terminal via the target TEID includes: The driver module encapsulates downlink data based on the target TEID; the target TEID is used to identify the data transmission tunnel between the target terminal and the target Layer 2. The target layer 2 sends the encapsulated downlink data to the target terminal.
[0062] Specifically, the baseband board in the instrument also includes a driver module, which is used to encapsulate the data received by the baseband board. In downlink transmission, the baseband board receives downlink data sent by the main control board, determines the target TEID, and then encapsulates the downlink data based on the target TEID, that is, encapsulates the target TEID into the data packet header. Then, the target layer 2 sends the encapsulated downlink data to the target terminal.
[0063] The communication method provided in this application encapsulates the acquired target TEID into a downlink data packet through a driver module, enabling downlink data to be successfully transmitted to the target terminal through the target TEID. This allows the terminal and server to communicate only through the instrument, reducing the communication latency between the terminal and the server.
[0064] In some embodiments, the method further includes: Before the target terminal is connected to the instrument, the configuration information sent by the main control tool MCT is received; the configuration information includes one or more sets of association information corresponding to different terminals, and the TEID in the configuration information is empty; After the target terminal is connected to the instrument, it receives the target TEID corresponding to the target terminal sent by MCT and updates the configuration information according to the target TEID.
[0065] Specifically, the configuration information is sent to the instrument by the Main Control Tool (MCT). Each set of associated information in the configuration information may include the terminal IP address, server IP address, TEID, layer 2 identification information, and protocol type. The protocol type refers to the protocol type used by the Flow data packet carrying the configuration information, including protocol types such as Transmission Control Protocol (TCP) and User Datagram Protocol (UDP).
[0066] MCT can send configuration information to the meter before the target terminal connects to the meter. The configuration information includes one or more sets of association information corresponding to different terminals, and the TEID in the configuration information is empty at this time. The meter receives the configuration information sent by MCT.
[0067] After the target terminal connects to the instrument, a higher layer, such as a Non-Access Stratum (NAS), provides the MCT with a TEID usable by the target terminal, i.e., the target TEID. The MCT then sends the target TEID to the instrument, notifying the instrument to update the TEID corresponding to the target terminal in the configuration information to the target TEID, thereby ensuring the completeness of the information associated with the target terminal in the configuration information. It should be noted that in this embodiment, all servers capable of communicating with the terminal are known; therefore, the target TEID determined by the higher layer for the target terminal is actually the target TEID determined for both the target terminal and a specific server.
[0068] For example, MCT provides configuration information for the instrument, including (Terminal IP-1, Server IP-1, 0, Layer 2-1, Protocol Type-1), (Terminal IP-1, Server IP-2, 0, Layer 2-2, Protocol Type-2), (Terminal IP-1, Server IP-1, 0, Layer 2-3, Protocol Type-1), (Terminal IP-2, Server IP-2, 0, Layer 2-4, Protocol Type-2), etc. In the configuration information, 0 (i.e., the position where TEID information is stored is filled with 0) indicates that the TEID information is empty. Terminal 1 (IP address: Terminal IP-1) connects to the meter. MCT sends the available TEID-1 (corresponding to Server 1) and TEID-2 (corresponding to Server 2) of Terminal 1 to the meter. The meter uses TEID-1 and TEID-2 to update the relevant associations in the configuration information, resulting in the following configuration information for Terminal 1: (Terminal IP-1, Server IP-1, TEID-1, Layer 2-1, Protocol Type-1) and (Terminal IP-1, Server IP-2, TEID-2, Layer 2-2, Protocol Type-2). After receiving the downlink data, the meter obtains the target TEID based on the updated configuration information.
[0069] The communication method provided in this application embodiment provides configuration information for the instrument in advance through MCT. After the terminal connects to the instrument, it only needs to send the TEID information corresponding to the terminal to the instrument, which reduces the amount of data sent and saves transmission resources.
[0070] In some embodiments, the method further includes: After the target terminal is connected to the meter, it receives configuration information sent by MCT; the configuration information includes one or more sets of association information corresponding to the target terminal.
[0071] Specifically, MCT can provide configuration information to the instrument after the target terminal is connected to the instrument. At this time, the configuration information only includes one or more sets of associated information corresponding to the target terminal.
[0072] For example, after terminal 1 (IP address: terminal IP-1) connects to the meter, MCT sends one or more sets of association information corresponding to terminal 1 to the meter, including (terminal IP-1, server IP-1, TEID-1, layer 2-1, protocol type-1) and (terminal IP-1, server IP-2, TEID-2, layer 2-2, protocol type-2). After receiving the downlink data, the meter obtains the target TEID based on this one or more sets of association information.
[0073] The communication method provided in this application allows for the configuration of the terminal's corresponding configuration information after the terminal is connected to the meter. This eliminates the need for the meter to update the configuration information; instead, it directly uses the configuration information sent by the MCT, making the operation simpler and reducing downlink transmission latency.
[0074] In some embodiments, the method further includes: Receive uplink data sent by the target terminal; the uplink data includes the target server IP address; Determine the target server's MAC address based on the target server's IP address; Uplink data is sent to the target server based on the target server's MAC address.
[0075] Specifically, the terminal can send uplink data to the server solely through the meter.
[0076] The target terminal sends uplink data to the instrument, which includes the target server IP address and the target terminal IP address. The instrument receives the uplink data sent by the target terminal, learns the target server IP address, determines the target server MAC address based on the target server IP address, and then sends the uplink data to the target server based on the target server MAC address.
[0077] The communication method provided in this application determines the MAC address of the target server through the instrument, enabling uplink data to be sent directly from the instrument to the target server. This achieves a direct connection between the instrument and the target server, eliminating the need for core network forwarding, reducing data interaction, and lowering the communication latency between the terminal and the server.
[0078] In some embodiments, determining the target server's MAC address based on the target server's IP address includes: The baseband board in the instrument broadcasts Address Resolution Protocol (ARP) request messages; the ARP request message carries the target server's IP address; The baseband board receives feedback messages sent by the target server; the feedback messages carry the target server's MAC address.
[0079] Specifically, the target terminal sends uplink data to the instrument, the baseband board in the instrument receives the uplink data, and the baseband board obtains the target server's MAC address based on the Address Resolution Protocol (ARP).
[0080] For example, the baseband board broadcasts an ARP request message carrying the target server's IP address. Non-target servers do not respond after receiving the ARP request message. After receiving the ARP request message, the target server sends a feedback message carrying the target server's MAC address to the baseband board. After receiving the feedback message from the target server, the baseband board learns the target server's MAC address.
[0081] The communication method provided in this application embodiment allows the instrument to obtain the target server's MAC address using ARP, enabling uplink data to be sent directly from the instrument to the target server via the target server's MAC address. This achieves direct connection between the instrument and the server, eliminating the need for core network forwarding or the addition of new links, reducing hardware costs, minimizing data interaction, and lowering communication latency between the terminal and the server.
[0082] In some embodiments, sending uplink data to the target server based on the target server's MAC address includes: The baseband board in the instrument sends the uplink data and the target server's MAC address to the main control board in the instrument. The main control board receives the uplink data and the target server MAC address sent by the baseband board, and then sends the uplink data to the target server based on the target server MAC address.
[0083] Specifically, after determining the target server's MAC address, the baseband board in the instrument sends the uplink data and the target server's MAC address to the main control board in the instrument. The main control board then performs data conversion and sends the uplink data to the target server based on the target server's MAC address.
[0084] In some embodiments, sending uplink data and the target server MAC address to the main control board in the instrument includes: The baseband board removes the header of the uplink message sent by the target terminal; the uplink message carries uplink data; the header of the uplink message contains the TEID of the data transmission tunnel between the target terminal and the Layer 2 receiving uplink data. The baseband board encapsulates the uplink data into a second MAC field; the source MAC address in the second MAC field is the Layer 2 MAC address that receives the uplink data, and the destination MAC address in the second MAC field is the MAC address of the main control board; The baseband board sends the second MAC field and the target server's MAC address to the main control board.
[0085] Specifically, the baseband board in the instrument removes the header of the uplink message carrying the uplink data. This header is the General Packet Radio Service Tunneling Protocol User Plane (GTPU) header, which contains the TEID of the data transmission tunnel between the target terminal and the Layer 2 receiving uplink data.
[0086] The baseband board encapsulates the uplink data into a second MAC field. The source MAC address in the second MAC field is the Layer 2 MAC address of the receiving uplink data, and the destination MAC address in the second MAC field is the MAC address of the main control board. The second MAC field and the target server MAC address are then sent to the main control board.
[0087] The communication method provided in this application embodiment involves the baseband board in the instrument encapsulating uplink data into a second MAC field and sending it to the main control board. Simultaneously, the baseband board sends the obtained target server MAC address to the main control board, enabling the main control board to obtain the uplink data and the target server MAC address. This allows the main control board to send the uplink data to the target server, ensuring the smooth transmission of uplink data.
[0088] In some embodiments, sending uplink data to the target server based on the target server's MAC address includes: The main control board encapsulates the uplink data into a third MAC field; the source MAC address in the third MAC field is the MAC address of the main control board, and the destination MAC address in the third MAC field is the MAC address of the target server. The main control board sends the third MAC field to the target server.
[0089] Specifically, after the main control board in the instrument receives the uplink data (or the second MAC field) and the target server MAC address sent by the baseband board, it encapsulates the uplink data into a third MAC field, that is, changes the source MAC address to the MAC address of the main control board and changes the destination MAC address to the MAC address of the target server, so that the third MAC field can be sent to the target server.
[0090] The communication method provided in this application embodiment enables the main control board in the instrument to encapsulate the uplink data into a third MAC field and send it to the target server. This allows uplink data to be sent directly from the instrument to the target server without the need for core network forwarding or the addition of new links, thereby reducing hardware costs, reducing data interaction, and reducing communication latency between the terminal and the server.
[0091] It should be noted that the division of units / modules in the above embodiments of the present invention is illustrative and only represents one logical functional division. In actual implementation, other division methods may be used. Furthermore, 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. The integrated units described above can be implemented in hardware or as software functional units.
[0092] Figure 4 This is a schematic diagram of the structure of the instrument provided by the present invention, as shown below. Figure 4 As shown, the instrument may include: a transceiver 401, a processor 402, and a memory 403, wherein the memory 403 is used to store computer programs; the transceiver 401 is used to send and receive data under the control of the processor 402; and the processor 402 is used to read the computer program in the memory 403 and perform the following operations: Receive downlink data sent by the target server; the downlink data includes the target server's Internet Protocol (IP) address and the target terminal's IP address; The target tunnel endpoint identifier (TEID) is determined based on the configuration information, the target server IP address, and the target terminal IP address. The configuration information includes one or more sets of associated information, and each set of associated information includes the terminal IP address, the server IP address, and the TEID. Downlink data is sent to the target terminal via the target TEID.
[0093] In some embodiments, the baseband board in the instrument includes multiple Layer 2 components, and each set of associated information further includes Layer 2 identification information; determining the Target Tunnel Endpoint Identifier (TEID) based on configuration information, the target server IP address, and the target terminal IP address includes: The main control board in the processor control instrument obtains the identification information of the target layer 2 from the configuration information based on the target server IP address and the target terminal IP address, and determines the MAC address of the target layer 2 based on the identification information of the target layer 2. The processor controls the main control board to send downlink data to the target layer 2 based on the MAC address of the target layer 2; The processor controls the target layer 2 to receive downlink data sent by the main control board and obtains the target TEID corresponding to the identification information of the target layer 2 from the configuration information.
[0094] In some embodiments, sending downlink data to the target layer 2 based on the MAC address of the target layer 2 includes: The processor controls the main control board to encapsulate the downlink data into a first MAC field; the source MAC address in the first MAC field is the MAC address of the main control board, and the destination MAC address in the first MAC field is the MAC address of the target layer 2; The processor controls the main control board to send the first MAC field to the target layer 2.
[0095] In some embodiments, the baseband board in the instrument further includes a driver module; transmitting downlink data to the target terminal via the target TEID includes: The processor control driver module encapsulates downlink data based on the target TEID; the target TEID is used to identify the data transmission tunnel between the target terminal and the target Layer 2. The processor controls the target layer 2 to send the encapsulated downlink data to the target terminal.
[0096] In some embodiments, the processor is also configured to read a computer program from the memory and perform the following operations: Before the target terminal is connected to the instrument, the configuration information sent by the main control tool MCT is received; the configuration information includes one or more sets of association information corresponding to different terminals, and the TEID in the configuration information is empty; After the target terminal is connected to the instrument, it receives the target TEID corresponding to the target terminal sent by MCT and updates the configuration information according to the target TEID.
[0097] In some embodiments, the processor is also configured to read a computer program from the memory and perform the following operations: After the target terminal is connected to the meter, it receives configuration information sent by MCT; the configuration information includes one or more sets of association information corresponding to the target terminal.
[0098] In some embodiments, the processor is also configured to read a computer program from the memory and perform the following operations: Receive uplink data sent by the target terminal; the uplink data includes the target server IP address; Determine the target server's MAC address based on the target server's IP address; Uplink data is sent to the target server based on the target server's MAC address.
[0099] In some embodiments, determining the target server's MAC address based on the target server's IP address includes: The baseband board in the processor control instrument broadcasts an Address Resolution Protocol (ARP) request message; the ARP request message carries the target server's IP address. The processor controls the baseband board to receive feedback messages sent by the target server; the feedback messages carry the target server's MAC address.
[0100] In some embodiments, sending uplink data to the target server based on the target server's MAC address includes: The processor controls the baseband board in the instrument to send uplink data and the target server's MAC address to the main control board in the instrument. The processor controls the main control board to receive uplink data and the target server's MAC address sent by the baseband board, and then sends the uplink data to the target server based on the target server's MAC address.
[0101] In some embodiments, sending uplink data and the target server MAC address to the main control board in the instrument includes: The processor controls the baseband board to delete the header of the uplink message sent by the target terminal; the uplink message carries uplink data; the header of the uplink message contains the TEID of the data transmission tunnel between the target terminal and the Layer 2 receiving uplink data. The processor controls the baseband board to encapsulate the uplink data into a second MAC field; the source MAC address in the second MAC field is the Layer 2 MAC address of the receiving uplink data, and the destination MAC address in the second MAC field is the MAC address of the main control board; The processor controls the baseband board to send the second MAC field and the target server's MAC address to the main control board.
[0102] In some embodiments, sending uplink data to the target server based on the target server's MAC address includes: The processor controls the main control board to encapsulate the uplink data into a third MAC field; the source MAC address in the third MAC field is the MAC address of the main control board, and the destination MAC address in the third MAC field is the MAC address of the target server. The processor controls the main control board to send the third MAC field to the target server.
[0103] The instrument may also include a communications interface and a communications bus, through which processor 402, the communications interface, and memory 403 communicate with each other. The bus architecture may include any number of interconnected buses and bridges, specifically linking various circuits of one or more processors represented by processor 402 and memory represented by memory 403. The bus architecture may also link various other circuits, such as peripheral devices, voltage regulators, and power management circuits, which are well known in the art and therefore will not be described further herein. The bus interface provides an interface. Transceiver 401 may be multiple elements, including transmitters and receivers, providing units for communicating with various other devices over transmission media, including wireless channels, wired channels, optical fibers, etc. Processor 402 is responsible for managing the bus architecture and general processing, and memory 403 may store data used by processor 402 during operation.
[0104] Specifically, the processor 402 can be a central processing unit (CPU), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or a complex programmable logic device (CPLD). The processor can also adopt a multi-core architecture.
[0105] When the logical instructions in memory 403 can be implemented as software functional units and sold or used as independent products, they can be stored in a processor-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or all or 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.) or processor to execute all or part of the steps of the methods described in the various embodiments of this application. 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.
[0106] In some embodiments, a processor-readable storage medium is also provided, storing a computer program for causing a computer to execute the communication methods provided in the above-described method embodiments, the method comprising: Receive downlink data sent by the target server; the downlink data includes the target server's Internet Protocol (IP) address and the target terminal's IP address; The target tunnel endpoint identifier (TEID) is determined based on the configuration information, the target server IP address, and the target terminal IP address. The configuration information includes one or more sets of associated information, and each set of associated information includes the terminal IP address, the server IP address, and the TEID. Downlink data is sent to the target terminal via the target TEID.
[0107] Specifically, the processor-readable storage medium provided by the present invention can implement all the method steps implemented in the above method embodiments and achieve the same technical effect. Here, the parts that are the same as those in the method embodiments and the beneficial effects will not be described in detail.
[0108] In some embodiments, a non-transitory readable storage medium is also provided, which stores a computer program for causing a computer to execute the communication methods provided in the above-described method embodiments, the method comprising: Receive downlink data sent by the target server; the downlink data includes the target server's Internet Protocol (IP) address and the target terminal's IP address; The target tunnel endpoint identifier (TEID) is determined based on the configuration information, the target server IP address, and the target terminal IP address. The configuration information includes one or more sets of associated information, and each set of associated information includes the terminal IP address, the server IP address, and the TEID. Downlink data is sent to the target terminal via the target TEID.
[0109] Specifically, the non-transitory readable storage medium provided by the present invention can implement all the method steps implemented in the above method embodiments and can achieve the same technical effect. Here, the parts that are the same as those in the method embodiments and the beneficial effects will not be described in detail.
[0110] In some embodiments, a computer-readable storage medium is also provided, the computer-readable storage medium storing a computer program, the computer program being used to cause a computer to execute the communication methods provided in the above method embodiments, the method comprising: Receive downlink data sent by the target server; the downlink data includes the target server's Internet Protocol (IP) address and the target terminal's IP address; The target tunnel endpoint identifier (TEID) is determined based on the configuration information, the target server IP address, and the target terminal IP address. The configuration information includes one or more sets of associated information, and each set of associated information includes the terminal IP address, the server IP address, and the TEID. Downlink data is sent to the target terminal via the target TEID.
[0111] Specifically, the computer-readable storage medium provided by the present invention can implement all the method steps implemented in the above method embodiments and can achieve the same technical effect. Here, the parts that are the same as those in the method embodiments and the beneficial effects will not be described in detail.
[0112] It should be noted that the computer-readable storage medium can be any available medium or data storage device that the processor can access, including but not limited to magnetic storage (e.g., floppy disk, hard disk, magnetic tape, magneto-optical disk (MO)), optical storage (e.g., CD, DVD, BD, HVD), and semiconductor storage (e.g., ROM, EPROM, EEPROM, non-volatile memory (NAND FLASH), solid-state drive (SSD)).
[0113] It should also be noted that the terms "first," "second," etc., used in this invention are used to distinguish similar objects, not to describe a specific order or sequence. It should be understood that such terms can be used interchangeably where appropriate so that embodiments of the invention can be implemented in orders other than those illustrated or described herein, and the objects distinguished by "first" and "second" are generally of the same class, without limiting the number of objects; for example, the first object can be one or more.
[0114] In this invention, the term "multiple" refers to two or more, and other quantifiers are similar.
[0115] In this invention, "determining B based on A" means that factor A must be considered when determining B. It is not limited to "B can be determined based solely on A," but should also include: "determining B based on A and C," "determining B based on A, C, and E," "determining C based on A, and further determining B based on C," etc. Additionally, it can include using A as a condition for determining B, for example, "when A satisfies the first condition, B is determined using the first method"; or "when A satisfies the second condition, B is determined," etc.; or "when A satisfies the third condition, B is determined based on the first parameter," etc. Of course, it can also be a condition where A is a factor in determining B, for example, "when A satisfies the first condition, C is determined using the first method, and B is further determined based on C," etc.
[0116] Those skilled in the art will understand that embodiments of this application can be provided as methods, systems, or computer program products. Therefore, this application can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, this application can take the form of a computer program product implemented on one or more computer-usable storage media (including, but not limited to, disk storage and optical storage) containing computer-usable program code.
[0117] This application is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of this application. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer-executable instructions. These computer-executable instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart... Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.
[0118] These processor-executable instructions may also be stored in a processor-readable memory that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the processor-readable memory produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.
[0119] These processors can execute instructions that can also be loaded onto a computer or other programmable data processing device, causing a series of operational steps to be performed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable device for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.
[0120] Obviously, those skilled in the art can make various modifications and variations to this invention without departing from its spirit and scope. Therefore, if these modifications and variations fall within the scope of the claims of this invention and their equivalents, this invention also intends to include these modifications and variations.
Claims
1. A communication method, characterized in that, Applied to instruments, the method includes: Receive downlink data sent by the target server; the downlink data includes the target server's Internet Protocol (IP) address and the target terminal's IP address; The target tunnel endpoint identifier (TEID) is determined based on the configuration information, the target server IP address, and the target terminal IP address; the configuration information includes one or more sets of associated information, each set of associated information including the terminal IP address, the server IP address, and the TEID. The downlink data is sent to the target terminal via the target TEID.
2. The communication method according to claim 1, characterized in that, The baseband board in the instrument includes multiple Layer 2 components, and each set of associated information also includes Layer 2 identification information; the determination of the target tunnel endpoint identifier (TEID) based on the configuration information, the target server IP address, and the target terminal IP address includes: The main control board in the instrument obtains the identification information of the target layer 2 from the configuration information based on the target server IP address and the target terminal IP address, and determines the MAC address of the target layer 2 according to the identification information of the target layer 2. The main control board sends the downlink data to the target layer 2 based on the MAC address of the target layer 2; The target layer 2 receives the downlink data sent by the main control board and obtains the target TEID corresponding to the identification information of the target layer 2 from the configuration information.
3. The communication method according to claim 2, characterized in that, Sending the downlink data to the target layer 2 based on the MAC address of the target layer 2 includes: The main control board encapsulates the downlink data into a first MAC field; the source MAC address in the first MAC field is the MAC address of the main control board, and the destination MAC address in the first MAC field is the MAC address of the target layer 2. The main control board sends the first MAC field to the target layer two.
4. The communication method according to claim 1, characterized in that, The baseband board in the instrument also includes a driver module; the step of sending the downlink data to the target terminal via the target TEID includes: The driving module encapsulates the downlink data based on the target TEID; the target TEID is used to identify the data transmission tunnel between the target terminal and the target Layer 2. The target layer 2 sends the encapsulated downlink data to the target terminal.
5. The communication method according to claim 1, characterized in that, The method further includes: Before the target terminal connects to the instrument, configuration information sent by the main control tool MCT is received; the configuration information includes one or more sets of association information corresponding to different terminals, and the TEID in the configuration information is empty; After the target terminal connects to the instrument, the MCT receives the target TEID corresponding to the target terminal and updates the configuration information according to the target TEID.
6. The communication method according to claim 1, characterized in that, The method further includes: After the target terminal connects to the instrument, it receives configuration information sent by MCT; the configuration information includes one or more sets of association information corresponding to the target terminal.
7. The communication method according to claim 1, characterized in that, The method further includes: Receive uplink data sent by the target terminal; the uplink data includes the target server IP address; Determine the target server's MAC address based on the target server's IP address; The uplink data is sent to the target server based on the target server's MAC address.
8. The communication method according to claim 7, characterized in that, Determining the target server's MAC address based on the target server's IP address includes: The instrument's baseband board broadcasts Address Resolution Protocol (ARP) request messages; the ARP request messages carry the target server's IP address. The baseband board receives a feedback message sent by the target server; the feedback message carries the target server's MAC address.
9. The communication method according to claim 7, characterized in that, Sending the uplink data to the target server based on the target server's MAC address includes: The baseband board in the instrument sends the uplink data and the target server MAC address to the main control board in the instrument. The main control board receives the uplink data sent by the baseband board and the target server MAC address, and sends the uplink data to the target server according to the target server MAC address.
10. The communication method according to claim 9, characterized in that, Sending the uplink data and the target server MAC address to the main control board in the instrument includes: The baseband board deletes the header of the uplink message sent by the target terminal; the uplink message carries the uplink data; the header of the uplink message contains the TEID of the data transmission tunnel between the target terminal and the Layer 2 receiving the uplink data; The baseband board encapsulates the uplink data into a second MAC field; the source MAC address of the second MAC field is the Layer 2 MAC address that receives the uplink data, and the destination MAC address in the second MAC field is the MAC address of the main control board; The baseband board sends the second MAC field and the target server MAC address to the main control board.
11. The communication method according to claim 9, characterized in that, Sending the uplink data to the target server based on the target server's MAC address includes: The main control board encapsulates the uplink data into a third MAC field; the source MAC address in the third MAC field is the MAC address of the main control board, and the destination MAC address in the third MAC field is the MAC address of the target server; The main control board sends the third MAC field to the target server.
12. An instrument comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the computer program, it implements the communication method as described in any one of claims 1 to 11.
13. A processor-readable storage medium, characterized in that, The processor-readable storage medium stores a computer program that, when executed by the processor, implements the communication method as described in any one of claims 1 to 11.