Trackside wireless device network protocol address determination method, apparatus, device and medium
By sending and parsing data packets between WGB devices and devices on the same network segment, the network protocol address of the trackside wireless device can be determined, solving the problem of wireless channel performance testing between devices from different manufacturers and improving the safety of train operation.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- TRAFFIC CONTROL TECH CO LTD
- Filing Date
- 2023-11-28
- Publication Date
- 2026-07-03
Smart Images

Figure CN117835462B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of rail transit technology, specifically to a method for determining the network protocol address of a trackside wireless device, a device for determining the network protocol address of a trackside wireless device, a computer device, and a storage medium. Background Technology
[0002] With the rapid development of the rail transit industry, the requirements for the safety, reliability, and timeliness of train operation are becoming increasingly stringent, necessitating a highly reliable vehicle-to-ground communication system. In this system, onboard wireless products or onboard wireless equipment (Work Group Bridge, WGB) and trackside wireless equipment (also known as wireless access points, APs) can be linked to form a stable transmission link, thereby enabling the mutual conversion between electrical and radio frequency signals to forward service information between the onboard and trackside systems.
[0003] Currently, when a WGB device is associated with a trackside AP device from the same manufacturer, the WGB device can obtain the Internet Protocol Address (IP address) of the associated trackside AP device based on a custom interface.
[0004] However, when interacting with equipment from different manufacturers, the WGB device can only obtain the Media Access Control Address (MAC address) of the trackside AP device. The MAC address can only determine the association status of the WGB device, making it difficult for the WGB device to detect the wireless channel transmission performance, which in turn affects the safety of train operation. Summary of the Invention
[0005] This application provides a method for determining the network protocol address of a trackside wireless device, a device for determining the network protocol address of a trackside wireless device, a computer device, and a storage medium, thereby overcoming, to some extent, the technical problem that WGB devices cannot detect the wireless channel transmission performance due to limitations and defects in related technologies, thus affecting the safety of train operation.
[0006] A first aspect of this application provides a method for determining the network protocol address of a trackside wireless device, used to determine the network protocol address of a target trackside wireless device associated with an onboard wireless device. The method further includes: sending a request data packet to a device in the same network segment as the onboard wireless device; wherein, a device in the same network segment refers to a device in the same broadcast domain as the onboard wireless device; receiving response data packets sent by each trackside wireless device; parsing the response data packets to obtain the source network protocol address and local area network (LAN) address of each trackside wireless device; and determining the source network protocol address of the trackside wireless device whose LAN address is the same as the target LAN address of the target trackside wireless device as the target network protocol address of the target trackside wireless device.
[0007] In an optional embodiment of this application, before sending a request data packet to devices on the same network segment as the vehicle-mounted wireless device, the method further includes: pre-configuring the vehicle-mounted wireless device and each trackside wireless device to be on the same network segment, so that the vehicle-mounted wireless device domain and each trackside wireless device are in the same broadcast domain.
[0008] In an optional embodiment of this application, the method further includes: obtaining a pre-configured association address table of the vehicle-mounted wireless device; if the association address table does not contain the target local area network address of the target trackside wireless device, then adding the target local area network address of the target trackside wireless device to the association address table to obtain a first newly added association address entry; wherein, after determining the source network protocol address of the trackside wireless device whose local area network address is the same as the target local area network address of the target trackside wireless device as the target network protocol address of the target trackside wireless device, the method further includes: adding the target network protocol address to the first newly added association address entry to obtain a second newly added association address entry for the target trackside wireless device; updating the association address table based on the second newly added association address entry.
[0009] In an optional embodiment of this application, the method further includes: if the associated address table contains the target local area network address of the target trackside wireless device, then searching the associated address table for the target associated address entry corresponding to the target local area network address of the target trackside wireless device; and determining the source network protocol address contained in the target associated address entry as the target network protocol address of the target trackside wireless device.
[0010] In an optional embodiment of this application, adding the target local area network address of the target trackside wireless device to the associated address table to obtain a first newly added associated address entry includes: determining the parameter value of the signal quality parameter between the vehicle-mounted wireless device and the target trackside wireless device; if the parameter value of the signal quality parameter of the target trackside wireless device is greater than or equal to a preset parameter value, then adding the target local area network address of the target trackside wireless device to the associated address table to obtain a first newly added associated address entry.
[0011] In an optional embodiment of this application, before obtaining the pre-configured association address table of the vehicle-mounted wireless device, the method further includes: obtaining a first set of trackside devices for the vehicle-mounted wireless device, and establishing an association relationship between the vehicle-mounted wireless device and each trackside device in the first set of trackside devices; determining the source network protocol address and local area network address of each trackside device in the first set of trackside devices based on the association relationship; and constructing an association address table of the vehicle-mounted wireless device based on the source network protocol address and local area network address of each trackside device in the first set of trackside devices.
[0012] In an optional embodiment of this application, the method further includes: if there is no trackside wireless device with the same target local area network address as the target trackside wireless device, then the response data packets sent by each trackside wireless device are discarded.
[0013] A second aspect of this application provides a trackside wireless device network protocol address determination apparatus for determining the network protocol address of a target trackside wireless device associated with an onboard wireless device. The apparatus includes: a request sending module for sending request data packets to devices in the same network segment as the onboard wireless device; wherein, devices in the same network segment refer to devices in the same broadcast domain as the onboard wireless device; a data receiving module for receiving response data packets sent by each trackside wireless device; a data parsing module for parsing the response data packets to obtain the source network protocol address and local area network address of each trackside wireless device; and an address determination module for determining the source network protocol address of the trackside wireless device whose local area network address is the same as the target local area network address of the target trackside wireless device as the target network protocol address of the target trackside wireless device.
[0014] In an optional embodiment of this disclosure, the trackside wireless device network protocol address determination device may further include an address configuration module, which is used to pre-configure the vehicle-mounted wireless device and each trackside wireless device to be in the same network segment, so that the vehicle-mounted wireless device domain and each trackside wireless device are in the same broadcast domain.
[0015] In an optional embodiment of this disclosure, the trackside wireless device network protocol address determination device may further include a list update module. The list update module is used to obtain a pre-configured associated address table of the vehicle-mounted wireless device; if the associated address table does not contain the target local area network address of the target trackside wireless device, the target local area network address of the target trackside wireless device is added to the associated address table to obtain a first newly added associated address entry; the target network protocol address is added to the first newly added associated address entry to obtain a second newly added associated address entry for the target trackside wireless device; and the associated address table is updated based on the second newly added associated address entry.
[0016] In an optional embodiment of this disclosure, the list update module is used to search for the target associated address entry corresponding to the target local area network address of the target trackside wireless device in the associated address table if the associated address table contains the target local area network address of the target trackside wireless device; and to determine the source network protocol address contained in the target associated address entry as the target network protocol address of the target trackside wireless device.
[0017] In an optional embodiment of this disclosure, the list update module is used to determine the parameter value of the signal quality parameter between the vehicle-mounted wireless device and the target trackside wireless device; if the parameter value of the signal quality parameter of the target trackside wireless device is greater than or equal to a preset parameter value, the target local area network address of the target trackside wireless device is added to the associated address table to obtain the first newly added associated address entry.
[0018] In an optional embodiment of this disclosure, the list update module is used to obtain a first set of trackside devices for the vehicle-mounted wireless device and establish an association between the vehicle-mounted wireless device and each trackside device in the first set of trackside devices; determine the source network protocol address and local area network address of each trackside device in the first set of trackside devices based on the association; and construct an association address table for the vehicle-mounted wireless device based on the source network protocol address and local area network address of each trackside device in the first set of trackside devices.
[0019] In an optional embodiment of this disclosure, the list update module is used to determine the parameter values of the signal quality parameters of each trackside device in the first trackside device set; add trackside devices in the first trackside device set whose signal quality parameter values are greater than or equal to preset parameter values to the second trackside device set; and establish an association between the vehicle-mounted wireless device and each trackside device in the second trackside device set.
[0020] In an optional embodiment of this disclosure, the list update module is used to discard the response data packets sent by each trackside wireless device if there is no trackside wireless device with the same target local area network address as the target trackside wireless device.
[0021] A third aspect of this application provides a computer device, including a memory and a processor. The memory stores a computer program, and the processor executes the computer program to implement the steps of any of the above-mentioned trackside wireless device network protocol address determination methods.
[0022] A fourth aspect of the present application provides a computer-readable storage medium having a computer program stored thereon, characterized in that, when executed by a processor, the computer program implements the steps of the trackside wireless device network protocol address determination method as described in any of the preceding claims.
[0023] This method for determining the network protocol address of trackside wireless devices involves sending request data packets to devices on the same network segment as the vehicle-mounted wireless device; receiving response data packets from each trackside wireless device; parsing the response data packets to obtain the source network protocol address and local area network (LAN) address of each trackside wireless device; and determining the source network protocol address of the trackside wireless device as the target network protocol address of the target trackside wireless device by identifying the LAN address of the trackside wireless device that matches the target LAN address of the target trackside wireless device. In this method, the vehicle-mounted wireless device and its associated trackside wireless devices are on the same network segment. This allows the vehicle-mounted wireless device to send requests to devices on the same network segment, and each trackside wireless device will reply with a response data packet using its corresponding source network protocol address and LAN address. The vehicle-mounted wireless device can then compare the LAN addresses of its associated trackside wireless devices to determine the network protocol address of the trackside wireless device.
[0024] The above method, without adding new private interfaces, provides a general method for onboard wireless devices to obtain the network protocol addresses of associated trackside wireless devices. These trackside wireless devices can be from the same manufacturer as the onboard wireless device or from a different manufacturer. This solves the problem in related technologies where, when trackside and onboard wireless devices are from different manufacturers, the onboard wireless device struggles to monitor the wireless transmission channel, thus compromising train operation safety. This application enables onboard wireless devices to obtain the network protocol addresses of their associated trackside wireless devices, thereby detecting the wireless channel transmission performance between these devices and improving train operation safety. Attached Figure Description
[0025] The accompanying drawings, which are included to provide a further understanding of this application and form part of this application, illustrate exemplary embodiments and are used to explain this application, but do not constitute an undue limitation of this application. In the drawings:
[0026] Figure 1 A schematic diagram illustrating an application scenario of a method for determining the network protocol address of a trackside wireless device according to an embodiment of this application;
[0027] Figure 2 A flowchart illustrating a method for determining the network protocol address of a trackside wireless device, as provided in one embodiment of this application;
[0028] Figure 3 A flowchart illustrating a method for determining the target network protocol address of a target trackside wireless device, as provided in one embodiment of this application;
[0029] Figure 4 A flowchart for determining a target IP address based on an associated address table is provided as an embodiment of this application;
[0030] Figure 5 A schematic diagram of a trackside wireless device network protocol address determination device provided in one embodiment of this application;
[0031] Figure 6 This is a schematic diagram of a computer device structure provided in one embodiment of this application. Detailed Implementation
[0032] Exemplary embodiments will now be described more fully with reference to the accompanying drawings. However, these exemplary embodiments can be implemented in many forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided to make this disclosure more comprehensive and complete, and to fully convey the concept of the exemplary embodiments to those skilled in the art. The described features, structures, or characteristics can be combined in any suitable manner in one or more embodiments. In the following description, numerous specific details are provided to give a full understanding of embodiments of this disclosure. However, those skilled in the art will recognize that the technical solutions of this disclosure can be practiced with one or more specific details omitted, or other methods, components, apparatus, steps, etc., can be employed. In other instances, well-known technical solutions are not shown or described in detail to avoid obscuring various aspects of this disclosure.
[0033] Furthermore, the accompanying drawings are merely illustrative of this disclosure and are not necessarily drawn to scale. The same reference numerals in the drawings denote the same or similar parts, and therefore repeated descriptions of them will be omitted. Some block diagrams shown in the drawings are functional entities and do not necessarily correspond to physically or logically independent entities. These functional entities may be implemented in software, in one or more hardware modules or integrated circuits, or in different network and / or processor devices and / or microcontroller devices.
[0034] The flowchart shown in the attached diagram is merely an illustrative example and does not necessarily include all steps. For example, some steps may be broken down, while others may be combined or partially combined; therefore, the actual execution order may change depending on the specific circumstances.
[0035] Against this technological backdrop, with the rapid development of the rail transit industry, the requirements for the safety, reliability, and timeliness of train operation are becoming increasingly stringent, necessitating a highly reliable vehicle-to-ground communication system. In this system, the WGB (Wireless Gate Gateway) device and the AP (Access Point) device can be linked to form a stable transmission link, enabling the conversion between electrical and radio frequency signals to forward service information between the vehicle and the trackside. The WGB device needs to communicate directly with the AP device by calling its network protocol address (e.g., an Internet Protocol address, or IP address) to confirm its ability to carry control data and to test the transmission performance of the wireless channel.
[0036] The method for determining the network protocol address of a trackside wireless device provided in the exemplary embodiments of this application can be applied to application scenarios where wireless communication is performed when associated with WLAN products / devices from any manufacturer, especially in application scenarios where wireless communication is performed when associated with WLAN products / devices from different manufacturers.
[0037] For example, in the process of developing this application, the inventors discovered that when a WGB device is associated with a trackside AP device from the same manufacturer, the WGB device can obtain the Internet Protocol address of the associated trackside AP device based on a custom interface. However, when the WGB device interacts with AP devices from different manufacturers, the WGB device can only obtain the local area network address of the trackside AP device. The local area network address can be, for example, a Media Access Control Address (MAC address). The MAC address can only determine the association status of the WGB device, making it difficult for the WGB device to detect the wireless channel transmission performance, thus affecting the safety of train operation.
[0038] To address the aforementioned issues, this application provides a method for determining the network protocol address of a trackside wireless device. This method proposes a way to obtain the IP address of the access point (AP) associated with the WGB device when using WLAN products / devices from different manufacturers in a mixed manner, without requiring the addition of a new private interface. This method provides an interface for the WGB device to detect the wireless channel transmission status, thus solving the technical problem in the aforementioned related technical solutions where it is impossible to detect wireless communication status, such as the transmission performance of the wireless channel, when WLAN wireless devices from different manufacturers are associated.
[0039] It should be noted that the solutions in the embodiments of this application can be implemented using various computer languages, such as the object-oriented programming language Java and the interpreted scripting language JavaScript.
[0040] To make the technical solutions and advantages of the embodiments of this application clearer, the exemplary embodiments of this application will be described in further detail below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of this application, and not an exhaustive list of all embodiments. It should be noted that, unless otherwise specified, the embodiments and features in the embodiments of this application can be combined with each other.
[0041] It should be emphasized that, for the sake of describing the technical solution of this application, each of the following embodiments will be described using IP address as the network protocol address and MAC address as the local area network address.
[0042] To address the aforementioned problems, this disclosure proposes a method and apparatus for determining network protocol addresses for trackside wireless devices. This method and apparatus can be applied to… Figure 1 The system architecture of the exemplary application environment shown is illustrated below. The following is a brief description of the system architecture of the application environment for the trackside wireless device network protocol address determination method provided in this application embodiment:
[0043] Figure 1 This is a schematic diagram illustrating an application scenario of the trackside wireless device network protocol address determination method provided in one embodiment of this application. Please refer to... Figure 1 The system architecture 100 corresponding to the trackside wireless device network protocol address determination method provided in this application embodiment may include one or more of AP devices 101, 102, 103, and 104, a network 105, and a WGB device 106. Network 105 serves as the medium for providing a communication link between AP devices 101, 102, 103, 104, and WGB device 106. Network 105 may include various connection types, such as wired, wireless communication links, or fiber optic cables, but is not limited to these.
[0044] It should be understood that Figure 1 The number of AP devices 101, 102, 103, and 104, network 105, and WGB device 106 shown are merely illustrative. Depending on implementation needs, any number of AP devices, network 105, and WGB device 106 can be included. Furthermore, AP devices 101, 102, 103, and 104, and WGB device 106 can be WLAN wireless devices from the same manufacturer or from different manufacturers.
[0045] For example, in one exemplary embodiment, when one or more of AP devices 101, 102, 103, and 104 are associated with WGB device 105 for communication, WGB device 105 can send request data packets to devices in the same network segment as the vehicle-mounted wireless device (hereinafter referred to as WGB device); wherein, devices in the same network segment refer to devices in the same broadcast domain as the vehicle-mounted wireless device; receive response data packets sent by each trackside wireless device; parse the response data packets to obtain the source network protocol address and local area network address of each trackside wireless device; and determine the source network protocol address of the trackside wireless device whose local area network address is the same as the target local area network address of the target trackside wireless device as the target network protocol address of the target trackside wireless device.
[0046] However, those skilled in the art will readily understand that the above application scenarios are merely illustrative and are not intended to limit the scope of this exemplary embodiment.
[0047] Having understood the system architecture of this application, the following will combine... Figure 2 The method for determining the network protocol address of trackside wireless devices provided in the embodiments of this application will be described by way of example.
[0048] Figure 2 A flowchart illustrating a method for determining the network protocol address of a trackside wireless device according to an embodiment of this application is provided. Please refer to... Figure 2 The following embodiments use the WGB device 105 as the execution subject and apply the method provided in this application to the WGB device 105 for specific explanation. The trackside wireless device network protocol address determination method provided in this application is used to determine the network protocol address of the target trackside wireless device (AP device) associated with the WGB device 105. The method may include the following steps 201-204:
[0049] Step 201: Send a request data packet to devices on the same network segment as the vehicle-mounted wireless device.
[0050] Among them, devices in the same network segment refer to devices that are in the same broadcast domain as the vehicle-mounted wireless equipment.
[0051] Step 202: Receive response data packets sent by each trackside wireless device.
[0052] Step 203: Parse the response data packet to obtain the source network protocol address and local area network address of each trackside wireless device.
[0053] Step 204: Determine the source network protocol address of the trackside wireless device whose local area network address is the same as the target local area network address of the target trackside wireless device as the target network protocol address of the target trackside wireless device.
[0054] In some embodiments of this disclosure, the technical solutions involve sending request data packets to devices on the same network segment as the vehicle-mounted wireless device; receiving response data packets from each trackside wireless device; parsing the response data packets to obtain the source network protocol address and local area network (LAN) address of each trackside wireless device; and determining the source network protocol address of the trackside wireless device as the target network protocol address of the target trackside wireless device by identifying the LAN address of the trackside wireless device that is identical to the target LAN address of the target trackside wireless device. In this method, the vehicle-mounted wireless device and its associated trackside wireless devices are on the same network segment, so that when the vehicle-mounted wireless device sends a request to devices on the same network segment, each trackside wireless device will reply with a response data packet using its corresponding source network protocol address and LAN address. This allows the vehicle-mounted wireless device to compare the LAN addresses of its associated trackside wireless devices and thus determine the network protocol address of the trackside wireless device.
[0055] The above method, without adding new private interfaces, provides a general method for onboard wireless devices to obtain the network protocol addresses of associated trackside wireless devices. These trackside wireless devices can be from the same manufacturer as the onboard wireless device or from a different manufacturer. This solves the problem in related technologies where, when trackside and onboard wireless devices are from different manufacturers, the onboard wireless device struggles to monitor the wireless transmission channel, thus compromising train operation safety. This application enables onboard wireless devices to obtain the network protocol addresses of their associated trackside wireless devices, thereby detecting the wireless channel transmission performance between these devices and improving train operation safety.
[0056] The following will describe in conjunction with specific embodiments Figure 2 The specific implementation methods of each step in the illustrated embodiment are described in detail below:
[0057] In step 201, a request data packet is sent to a device on the same network segment as the vehicle-mounted wireless device.
[0058] In this context, the in-vehicle wireless device is referred to as the WGB device, and devices on the same network segment refer to devices located in the same broadcast domain as the in-vehicle wireless device. The aforementioned request data packet can be an Internet Control Message Protocol (ICMP) request data packet on the same network segment.
[0059] It's important to explain that ICMP is a sub-protocol of the TCP / IP protocol suite, used to transmit control messages between IP hosts and routers. Control messages refer to network-related information such as network connectivity, host reachability, and route availability. While these control messages do not transmit user data, they play a crucial role in the transmission of user data.
[0060] For example, once a WGB device obtains its local area network IP address, it can calculate the devices corresponding to IP addresses in the same network segment as its own IP address, and continuously send request data packets to each of these devices via the wireless interface at preset intervals.
[0061] In an optional embodiment of this disclosure, the request packet may be an ICMP request packet (also referred to as an ICMP request packet).
[0062] In an optional embodiment of this application, before the WGB device performs the above step 201 to send a request data packet to the same network segment device of the vehicle-mounted wireless device, the vehicle-mounted wireless device and each trackside wireless device are pre-configured to be on the same network segment so that the vehicle-mounted wireless device domain and each trackside wireless device are in the same broadcast domain.
[0063] In relevant technical solutions, when the WGB device and its associated trackside wireless devices (i.e., AP devices) are from the same manufacturer, the WGB device can obtain the network protocol addresses of each AP device through a custom interface. However, when the WGB device and its associated trackside wireless devices are from different manufacturers, it can only obtain the LAN addresses of each AP device. The WGB device can only determine its association status with each AP device through its LAN address, and cannot determine the wireless channel transmission status between them.
[0064] To this end, this application can pre-configure the WGB device and each AP device to be on the same network segment. At this time, the subnet mask of the WGB device and each AP device is the same, ensuring that the WGB device and each AP device are in the same broadcast domain. This allows the WGB device to broadcast request data packets to each device in the same broadcast domain through the ICMP protocol. After each AP device receives the request data packet through the wireless air interface, it replies with a response data packet to the WGB device.
[0065] In step 202, response data packets sent by each trackside wireless device are received.
[0066] Among them, the trackside wireless device is the AP device, and each trackside wireless device is a device in the same network segment as the WGB device in the same broadcast domain; the response data packet can be the ICMP protocol response data packet (i.e., ICMP reply packet) corresponding to the request data packet in step 201.
[0067] It should be noted that each AP device may be from the same manufacturer as the WGB device, or it may be from a different manufacturer. This disclosure does not impose any special restrictions on this. Furthermore, the aforementioned AP devices may include AP devices associated with the WGB device and AP devices not associated with the WGB device.
[0068] In one exemplary implementation, when a device on the same network segment receives a request data packet sent by the WGB device, only each AP device associated with the WGB device sends a response data packet to the WGB device, so that the WGB device can receive the response data packets sent by each trackside wireless device.
[0069] In another exemplary embodiment, when devices on the same network segment receive a request data packet sent by the WGB device, they all send a response data packet to the WGB device. The WGB device then selects the response data packets sent by each trackside wireless device associated with the web device from among the devices on the same network segment.
[0070] It should be noted that the ICMP protocol is divided into request packets and response packets, and the message structures of request packets and response packets are basically the same and related.
[0071] For example, during big data interaction, the AP device can also receive request data packets from other devices. To improve data transmission security, after receiving the ICMP request data packet sent by the WGB device via the wireless air interface, each AP device can parse the WGB device's MAC address and IP address. Simultaneously, each AP device obtains its own IP address and determines whether its IP address and the WGB device's IP address are on the same network segment. If the AP device determines that its own IP address is on the same network segment as the WGB device, it sends a response data packet to the WGB device.
[0072] Conversely, in some example embodiments of this disclosure, if the AP device determines that its own IP address and the WGB device's IP address are not in the same network segment, the AP device will not respond.
[0073] In step 203, the response data packets are parsed to obtain the source network protocol address and local area network address of each trackside wireless device.
[0074] The WGB device can determine the association status of the associated AP device by using the MAC address of the AP device it is associated with. The association status can be: in the process of association, no association established, or association established.
[0075] For example, taking IP addresses as network protocol addresses and MAC addresses as local area network addresses, the WGB device receives response data packets sent by each AP device, parses these response data packets, and obtains the source IP address and MAC address of each AP device. It should be noted that each AP device sends its response data packets to the WGB device using its own IP address; therefore, the WGB device can parse the response data packets to determine the IP address and MAC address of the AP device that sent them.
[0076] In step 204, the source network protocol address of the trackside wireless device whose local area network address is the same as the target local area network address of the target trackside wireless device is determined as the target network protocol address of the target trackside wireless device.
[0077] Among them, the target trackside wireless device (i.e., the target AP device) is the AP device associated with the WGB device at the current moment.
[0078] For example, when a WGB device is associated with a target AP device, the WGB device can obtain the MAC address of the target AP device through standard radio management frames. In order to obtain the IP address of the target AP device, after obtaining the IP addresses and MAC addresses of each AP device in the same network segment as the WGB device, the WGB device can find the MAC address that matches the target AP device's MAC address, and then determine the IP address corresponding to the same MAC address as the IP address of the target AP device.
[0079] The above method can find AP devices with the same target LAN address as the target AP device. However, if there is no AP device with the same target LAN address as the target trackside wireless device in the LAN address of the AP devices in the same network segment, the following embodiment can be used to achieve this.
[0080] In another optional embodiment of this disclosure, if the target local area network address is not found in the associated address table configured in the vehicle-mounted wireless device, the response data packets sent by each trackside wireless device are discarded.
[0081] For example, if none of the local area network addresses of the AP devices in the same network segment are the same as the target local area network address of the target trackside wireless device, then the response data packets sent by each trackside wireless device can be ignored, and the device can wait to receive the next response data packet.
[0082] The following will combine Figure 3 The method process of the above embodiments is illustrated by way of example.
[0083] Figure 3 A flowchart illustrating a method for determining the target network protocol address of a target trackside wireless device, provided as an embodiment of this application. (Refer to...) Figure 3 The method for determining the target network protocol address of the target trackside wireless device includes at least steps 301 to 303:
[0084] Step 301: Determine whether an AP device with the same LAN address as the target LAN device exists based on the LAN address;
[0085] If the target associated address entry corresponding to the target LAN address can be found in the associated address table configured based on the vehicle wireless device, then step 302 is executed: the source network protocol address of the AP device whose LAN address is the same as the target LAN address of the target AP device is determined as the target network protocol address of the target AP device.
[0086] Conversely, if the target associated address entry corresponding to the target local area network address cannot be found in the associated address table configured based on the vehicle-mounted wireless equipment, then step 303 is executed: discard the response data packets sent by each trackside wireless device, and wait to receive the next response data packet.
[0087] In an optional embodiment of this application, when performing the above... Figure 2 In the technical solution shown, the process of determining the target network protocol address of the target trackside wireless device can also be carried out based on the associated address table pre-configured in the vehicle-mounted wireless device.
[0088] The associated address table contains entries for the LAN addresses and network protocol addresses of each AP device associated with the WGB device. In other words, the associated address table contains multiple entries for the MAC addresses and IP addresses of each AP device associated with the WGB device. The MAC addresses and IP addresses in the associated address table are in a one-to-one correspondence.
[0089] Understandably, the associated address table may also contain associated address entries for the MAC address-IP address of the target trackside wireless device that was identified as associated with the vehicle-mounted wireless device at a historical time.
[0090] For example, the WGB device is associated with AP device 1 (AP device 1 corresponds to IP address 1 and MAC address 1), AP device 2 (AP device 2 corresponds to IP address 2 and MAC address 2), ..., AP device n (AP device n corresponds to IP address n and MAC address n). The associated address table configured in the WGB device contains the associated address entries for the aforementioned AP device 1, AP device 2, ..., AP device n, respectively:
[0091] IP address 1 — MAC address 1;
[0092] IP address 2 — MAC address 2;
[0093] …;
[0094] IP address n — MAC address n.
[0095] When determining the target network protocol address of a target trackside wireless device based on a pre-configured associated address table, different processing procedures are performed depending on the circumstances. The following will provide illustrative examples with reference to specific embodiments.
[0096] For the first case: The associated address table does not contain the target LAN address of the target trackside wireless device.
[0097] In one optional embodiment of this application, a pre-configured association address table of the vehicle-mounted wireless device is obtained; if the association address table does not contain the target local area network address of the target trackside wireless device, the target local area network address of the target trackside wireless device is added to the association address table to obtain a first newly added association address entry; and after executing step 203, the target network protocol address is added to the first newly added association address entry to obtain a second newly added association address entry for the target trackside wireless device; the association address table is updated based on the second newly added association address entry.
[0098] The first newly added associated address entry only contains the target LAN address of the target trackside wireless device, and does not contain the target network protocol address of the target trackside wireless device. For example, if the target LAN address of the target trackside wireless device is MAC1, then a MAC1 address will be added to the associated address table.
[0099] The second newly added associated address entry contains both the target LAN address and the target network protocol address of the target trackside wireless device. For example, if the target LAN address of the trackside wireless device is MAC1 and the target network protocol address is IP1, then the corresponding first newly added associated address entry is MAC1—IP1.
[0100] For example, the MAC address of the target AP device can be obtained through a standard wireless management frame. If the MAC address of the target AP device is not included in the associated address table, it is added to the associated address table, resulting in a first newly added associated address entry. And based on... Figure 2 After obtaining the target network protocol address through the steps shown, add it to the first newly added associated address entry to obtain the second newly added associated address entry.
[0101] Figure 4 This is a flowchart illustrating how to determine a target IP address based on an associated address table, as provided in one embodiment of this application. Please refer to... Figure 4 The method may include the following steps 401-404:
[0102] Step 401: Obtain the pre-configured associated address table of the vehicle wireless device.
[0103] Step 402: Determine whether the associated address table contains the target LAN address of the target trackside wireless device.
[0104] If the target local area network address of the target trackside wireless device is not included in the associated address table, then step 403 is executed to add the target local area network address of the target trackside wireless device to the associated address table, thus obtaining the first newly added associated address entry.
[0105] In an optional embodiment of this disclosure, when performing step 403 above, the parameter value of the signal quality parameter between the vehicle-mounted wireless device and the target trackside wireless device is determined; if the parameter value of the signal quality parameter of the target trackside wireless device is greater than or equal to a preset parameter value, the target local area network address of the target trackside wireless device is added to the associated address table to obtain the first newly added associated address entry.
[0106] Among them, the signal quality parameters of each trackside device can be the signal-to-noise ratio and signal strength.
[0107] For example, after the WGB device is powered on, it can initialize the associated address table and monitor the association status and signal quality parameters between the WGB device and each AP device in real time.
[0108] For example, assuming the WGB device detects an association with a target trackside wireless device, it obtains the MAC address of the target trackside wireless device through a standard radio management frame. If the WGB device detects that the signal-to-noise ratio and signal strength of the target trackside wireless device are higher than the preset threshold (for example, if the signal-to-noise ratio of the target trackside wireless device is greater than 12dB and the signal strength is greater than -85dBm), it stores the MAC address of the target trackside wireless device in the association address table of the WGB device itself.
[0109] Conversely, do nothing.
[0110] In this embodiment, the high quality of communication between the WGB device and the target AP device can be ensured by the association status between the WGB device and each AP device and the signal quality parameters.
[0111] Step 404: Send a request data packet to devices on the same network segment as the vehicle-mounted wireless device.
[0112] Step 405: Receive response data packets sent by each trackside wireless device.
[0113] Step 406: Parse the response data packet to obtain the source network protocol address and local area network address of each trackside wireless device.
[0114] Step 407: Determine the source network protocol address of the trackside wireless device whose local area network address is the same as the target local area network address of the target trackside wireless device as the target network protocol address of the target trackside wireless device.
[0115] Step 408: Add the target network protocol address to the first newly added associated address entry to obtain the second newly added associated address entry for the target trackside wireless device;
[0116] Step 409: Update the associated address table based on the second newly added associated address entry.
[0117] For example, updating the associated address table based on the second newly added associated address entry makes it easier to receive the target LAN address of the target trackside wireless device again. The target network protocol address of the target trackside wireless device can be quickly obtained based on the updated associated address table, thereby improving the communication efficiency between the WGB device and the AP device.
[0118] Conversely, for the second case: the associated address table contains the target LAN address of the target trackside wireless device.
[0119] If the associated address table contains the target LAN address of the target trackside wireless device, then proceed to step 410: find the target associated address entry corresponding to the target LAN address of the target trackside wireless device from the associated address table.
[0120] Step 411: Determine the source network protocol address contained in the target associated address entry as the target network protocol address of the target trackside wireless device.
[0121] For example, the WGB device is pre-configured with an associated address table corresponding to the associated AP devices. When the WGB device receives response data packets sent by each AP device, it obtains the source IP address and MAC address of each AP device by parsing the response data packets.
[0122] When a WGB device needs to determine the IP address of a target AP device associated with it, it can compare the target MAC address of the target AP device with the associated address entries of each AP device. It can then find the target associated address entry corresponding to the same MAC address as the target AP device from the associated address entries of each AP device, and thus determine the IP address corresponding to the target associated address entry as the target IP address of the target AP device.
[0123] For example, the associated address entries configured in the WGB device are: IP address 1 – MAC address 1, IP address 2 – MAC address 2, and IP address 3 – MAC address 3. When the MAC address of the target AP device is MAC address 3, then the target IP address of the target AP device is IP address 3. Subsequently, the WGB device can communicate directly with the target AP device based on IP address 3, so that the WGB device can detect the wireless communication transmission performance between the WGB device and the target AP device.
[0124] In this embodiment, regardless of whether the AP device and the WGB device are from the same manufacturer or different manufacturers, the target IP address of the target associated device can be quickly determined through the address association table pre-built by the WGB device. This improves the efficiency of determining the target network protocol address of the target trackside wireless device, thereby solving the problem in related technical solutions where the IP address of the associated AP device cannot be obtained when associating WLAN wireless devices from different manufacturers, thus making it impossible to detect wireless communication between WLAN wireless devices.
[0125] Before obtaining the pre-configured associated address table of the vehicle-mounted wireless device in the above embodiments, in order to improve the success rate of determining the target network protocol address of the target trackside wireless device based on the associated address table, the associated address table can be enriched by combining the following embodiments.
[0126] In one optional embodiment of this disclosure, a first set of trackside devices for the vehicle-mounted wireless device is obtained, and an association relationship is established between the vehicle-mounted wireless device and each trackside device in the first set of trackside devices; the source network protocol address and local area network address of each trackside device in the first set of trackside devices are determined based on the association relationship; and an association address table for the vehicle-mounted wireless device is constructed based on the source network protocol address and local area network address of each trackside device in the first set of trackside devices.
[0127] To improve the success rate of WGB devices in finding the target network protocol address of target trackside wireless devices, all AP devices on the line connected to the WGB device can be associated with the WGB device.
[0128] The first trackside equipment set consists of all AP devices on the WGB equipment line.
[0129] For example, after the WGB device is powered on, it can establish associations with all AP devices on the WGB device line. The WGB device periodically sends request data packets to each trackside device in the first trackside device set at a preset interval (e.g., 1 second) to receive response data packets from each trackside device in the first trackside device set. The WGB device can then parse the response data packets to obtain the source IP address and MAC address of each trackside device in the first trackside device set, and add the MAC address and source IP address of each trackside device in the first trackside device set to the association address table of the vehicle-mounted wireless device. Through the above process, the MAC address and IP address mapping relationship of all APs on the entire line can be obtained.
[0130] It should be noted that the WGB device can usually be associated with all AP devices on the line (i.e., each trackside device in the first trackside device set) when it first goes online after being powered on.
[0131] In this embodiment, all AP devices on the line are associated, and the MAC addresses and source IP addresses of all AP devices on the line are added to the WGB device's associated address table, thereby improving the success rate and reliability of the WGB device in obtaining the IP addresses of each AP device.
[0132] It should be understood that although the steps in the flowchart are shown sequentially according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order constraint on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the diagram may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these sub-steps or stages is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the sub-steps or stages of other steps.
[0133] To implement the above method for determining the network protocol address of trackside wireless devices, please refer to [link / reference needed]. Figure 5 One embodiment of this application provides a trackside wireless device network protocol address determination device 500, which is used to determine the network protocol address of a target trackside wireless device associated with an on-board wireless device, and the device 500 includes: a request sending module 501, a data receiving module 502, a data parsing module 503, and an address determination module 504.
[0134] The request sending module 501 is used to send request data packets to devices on the same network segment as the vehicle wireless device; wherein, devices on the same network segment refer to devices that are in the same broadcast domain as the vehicle wireless device.
[0135] The data receiving module 502 is used to receive response data packets sent by each trackside wireless device;
[0136] The data parsing module 503 is used to parse the response data packets to obtain the source network protocol address and local area network address of each trackside wireless device;
[0137] Address determination module 504 is used to determine the source network protocol address of the trackside wireless device whose local area network address is the same as the target local area network address of the target trackside wireless device as the target network protocol address of the target trackside wireless device.
[0138] In an optional embodiment of this disclosure, the trackside wireless device network protocol address determination device 500 may further include an address configuration module 505, which is used to pre-configure the vehicle-mounted wireless device and each trackside wireless device to be in the same network segment, so that the vehicle-mounted wireless device domain and each trackside wireless device are in the same broadcast domain.
[0139] In an optional embodiment of this disclosure, the trackside wireless device network protocol address determination device 500 may further include a list update module 506.
[0140] The list update module 506 is used to obtain the pre-configured associated address table of the vehicle-mounted wireless device; if the associated address table does not contain the target local area network address of the target trackside wireless device, the target local area network address of the target trackside wireless device is added to the associated address table to obtain a first newly added associated address entry; the target network protocol address is added to the first newly added associated address entry to obtain a second newly added associated address entry for the target trackside wireless device; and the associated address table is updated based on the second newly added associated address entry.
[0141] In an optional embodiment of this disclosure, the list update module 506 is used to search for the target associated address entry corresponding to the target local area network address of the target trackside wireless device in the associated address table if the associated address table contains the target local area network address of the target trackside wireless device; and to determine the source network protocol address contained in the target associated address entry as the target network protocol address of the target trackside wireless device.
[0142] In an optional embodiment of this disclosure, the list update module 506 is used to determine the parameter value of the signal quality parameter between the vehicle-mounted wireless device and the target trackside wireless device; if the parameter value of the signal quality parameter of the target trackside wireless device is greater than or equal to the preset parameter value, the target local area network address of the target trackside wireless device is added to the associated address table to obtain the first newly added associated address entry.
[0143] In an optional embodiment of this disclosure, the list update module 506 is used to obtain a first set of trackside devices for the vehicle-mounted wireless device and establish an association relationship between the vehicle-mounted wireless device and each trackside device in the first set of trackside devices; determine the source network protocol address and local area network address of each trackside device in the first set of trackside devices based on the association relationship; and construct an association address table for the vehicle-mounted wireless device based on the source network protocol address and local area network address of each trackside device in the first set of trackside devices.
[0144] In an optional embodiment of this disclosure, the list update module 506 is used to determine the parameter values of the signal quality parameters of each trackside device in the first trackside device set; add trackside devices in the first trackside device set whose signal quality parameter values are greater than or equal to preset parameter values to the second trackside device set; and establish an association between the vehicle-mounted wireless device and each trackside device in the second trackside device set.
[0145] In an optional embodiment of this disclosure, the list update module 506 is used to discard the response data packets sent by each trackside wireless device if there is no trackside wireless device with the same target local area network address as the target trackside wireless device.
[0146] For specific limitations regarding the aforementioned trackside wireless device network protocol address determination device, please refer to the limitations of the trackside wireless device network protocol address determination method described above, which will not be repeated here. Each module in the aforementioned device can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in hardware or independently of the processor in a computer device, or stored in software in the memory of a computer device, so that the processor can call and execute the operations corresponding to each module.
[0147] In one embodiment, a computer device is provided, the internal structure of which can be as follows: Figure 6 As shown. The computer device includes a processor, memory, network interface, and database connected via a system bus. The processor provides computing and control capabilities. The memory includes a non-volatile storage medium and internal memory. The non-volatile storage medium stores an operating system, computer programs, and a database. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage medium. The database stores data. The network interface communicates with external terminals via a network connection. When the computer program is executed by the processor, it implements the above-described method for determining the network protocol address of a trackside wireless device. It includes: a memory and a processor; the memory stores a computer program; and the processor, when executing the computer program, implements any step in the above-described method for determining the network protocol address of a trackside wireless device.
[0148] In one embodiment, a computer-readable storage medium is provided having a computer program stored thereon that, when executed by a processor, can perform any of the steps in the above-mentioned method for determining the network protocol address of a trackside wireless device.
[0149] 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 embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0150] 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 program instructions. These computer program 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.
[0151] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium 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.
[0152] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment 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.
[0153] Although preferred embodiments of this application have been described, those skilled in the art, upon learning the basic inventive concept, can make other changes and modifications to these embodiments. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments as well as all changes and modifications falling within the scope of this application.
[0154] Obviously, those skilled in the art can make various modifications and variations to this application without departing from the spirit and scope of this application. Therefore, if such modifications and variations fall within the scope of the claims of this application and their equivalents, this application also intends to include such modifications and variations.
Claims
1. A method for determining the network protocol address of a trackside wireless device, characterized in that, The method for determining the network protocol address of a target trackside wireless device associated with an onboard wireless device includes: Send a request data packet to a device on the same network segment as the vehicle-mounted wireless device; wherein, the device on the same network segment refers to a device that is in the same broadcast domain as the vehicle-mounted wireless device; Receive response data packets sent by various trackside wireless devices; these trackside wireless devices are from different manufacturers. The response data packets are parsed to obtain the source network protocol address and local area network address of each trackside wireless device; Obtain the pre-configured associated address table of the vehicle-mounted wireless device; If the associated address table does not contain the target local area network address of the target trackside wireless device, then the target local area network address of the target trackside wireless device is added to the associated address table to obtain the first newly added associated address entry. The source network protocol address of the trackside wireless device whose local area network address is the same as the target local area network address of the target trackside wireless device is determined as the target network protocol address of the target trackside wireless device. Add the target network protocol address to the first newly added associated address entry to obtain a second newly added associated address entry for the target trackside wireless device; The associated address table is updated based on the second newly added associated address entry.
2. The method for determining the network protocol address of trackside wireless devices according to claim 1, characterized in that, Before sending the request data packet to devices on the same network segment as the vehicle-mounted wireless device, the method further includes: The vehicle-mounted wireless device and each trackside wireless device are pre-configured to be on the same network segment so that the vehicle-mounted wireless device domain and each trackside wireless device are in the same broadcast domain.
3. The method for determining the network protocol address of trackside wireless devices according to claim 1, characterized in that, The method further includes: If the associated address table contains the target local area network address of the target trackside wireless device, then the target associated address entry corresponding to the target local area network address of the target trackside wireless device is searched from the associated address table. The source network protocol address contained in the target associated address entry is determined as the target network protocol address of the target trackside wireless device.
4. The method for determining the network protocol address of trackside wireless equipment according to claim 1, characterized in that, The step of adding the target local area network address of the target trackside wireless device to the associated address table to obtain the first newly added associated address entry includes: Determine the parameter values of the signal quality parameters between the vehicle-mounted wireless device and the target trackside wireless device; If the signal quality parameter value of the target trackside wireless device is greater than or equal to the preset parameter value, then the target local area network address of the target trackside wireless device is added to the associated address table to obtain the first newly added associated address entry.
5. The method for determining the network protocol address of trackside wireless equipment according to claim 1, characterized in that, Before obtaining the pre-configured associated address table of the vehicle-mounted wireless device, the method further includes: Obtain the first set of trackside devices for the vehicle-mounted wireless device, and establish an association between the vehicle-mounted wireless device and each trackside device in the first set of trackside devices; Based on the aforementioned relationship, the source network protocol address and local area network address of each trackside device in the first trackside device set are determined. The associated address table of the vehicle-mounted wireless device is constructed based on the source network protocol address and local area network address of each trackside device in the first trackside device set.
6. The method for determining the network protocol address of trackside wireless devices according to claim 1, characterized in that, The method further includes: If there is no trackside wireless device with the same target local area network address as the target trackside wireless device, then the response data packets sent by each trackside wireless device are discarded.
7. A device for determining the network protocol address of a trackside wireless device, characterized in that, The apparatus for determining the network protocol address of a target trackside wireless device associated with an onboard wireless device includes: The request sending module is used to send request data packets to devices on the same network segment as the vehicle-mounted wireless device; wherein, the devices on the same network segment refer to devices that are in the same broadcast domain as the vehicle-mounted wireless device. The data receiving module is used to receive response data packets sent by various trackside wireless devices; these trackside wireless devices are from different manufacturers. The data parsing module is used to parse the response data packets to obtain the source network protocol address and local area network address of each of the trackside wireless devices; The address determination module is used to obtain a pre-configured associated address table of the vehicle-mounted wireless device; if the associated address table does not contain the target local area network address of the target trackside wireless device, the target local area network address of the target trackside wireless device is added to the associated address table to obtain a first newly added associated address entry; the source network protocol address of the trackside wireless device whose local area network address is the same as the target local area network address of the target trackside wireless device is determined as the target network protocol address of the target trackside wireless device; the target network protocol address is added to the first newly added associated address entry to obtain a second newly added associated address entry for the target trackside wireless device; and the associated address table is updated based on the second newly added associated address entry.
8. A computer device, comprising: The device includes a memory and a processor, the memory storing a computer program, characterized in that the processor, when executing the computer program, implements the steps of the trackside wireless device network protocol address determination method according to any one of claims 1 to 6.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the steps of the method for determining the network protocol address of a trackside wireless device as described in any one of claims 1 to 6.