Civil aviation VHF radio station main and standby switching method and system based on virtual IP
By adopting virtual IP and virtual router redundancy protocols in civil aviation VHF radio stations, rapid switching and redundant backup of primary and secondary equipment are achieved, which solves the problems of slow switching speed and high maintenance cost in the existing technology, and improves the stability of the system. and efficiency.
Patent Information
- Application Number
- CN202411336526.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-25
- Publication Date
- 2024-10-29
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
The existing active-standby switching method of civil aviation VHF radio stations has problems such as slow switching speed, low resource utilization, and high maintenance costs. It is difficult to adapt to the real-time data processing and highly redundant backup requirements in the VoIP environment.
A virtual IP-based method is used to generate a shared virtual IP through the address resolution protocol, and the virtual router redundancy protocol is used to implement the election and keep-alive of the primary and backup machines. By configuring the network switching equipment and core switches, the rapid switching of the primary and backup equipment is achieved. Redundant backup.
It improves the reliability and stability of the system, reduces switching delays and maintenance costs, and improves the efficiency of active and standby switching and optimizes the utilization of resources.
Smart Images

Figure CN118869458A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of communication technology, and in particular to a method and system for switching between a primary and a standby civil aviation VHF radio station based on a virtual IP. Background Art
[0002] With the rapid development of communication technology, VoIP (Voice over Internet Protocol, voice transmission based on IP) technology has been widely used in various communication systems due to its high efficiency and convenience. VoIP technology transmits voice signals through data networks, converts traditional analog voice signals into digital signals for transmission, and thus realizes the fusion transmission of voice and data. The introduction of this technology not only reduces communication costs, but also improves the flexibility and scalability of communication.
[0003] In existing civil aviation VHF radio stations, active-standby switching usually relies on direct switching of hardware devices or complex software logic control. These methods have problems such as slow switching speed, low resource utilization, and high maintenance cost. The traditional active-standby switching method, whether it is based on direct switching of hardware or relies on complex software logic control, is difficult to fully adapt to the needs of real-time data processing and highly redundant backup in the VoIP environment. In the context of VoIP technology, voice data is encapsulated into IP data packets and transmitted in the network. This process places higher requirements on network stability and bandwidth utilization. Therefore, problems such as switching delay, uneven resource allocation, and high maintenance complexity in traditional methods have become particularly prominent.
[0004] In order to overcome these problems, virtual IP can be used to solve them: generate a common virtual IP for the master and backup machines through the address resolution protocol, and then use the virtual router redundancy protocol to implement master and backup machine election and keep alive, so as to achieve redundant backup and fast switching between network devices. However, the research and practice of using the address resolution protocol and virtual router redundancy protocol for master and backup switching in civil aviation VHF radio stations is still insufficient. Summary of the invention
[0005] In view of this, the present invention proposes a method and system for master-slave switching of civil aviation VHF radio stations based on virtual IP, which uses the address resolution protocol to build a virtual IP, and then implements master-slave machine election and keep-alive through the virtual router redundancy protocol, thereby realizing rapid switching of master-slave equipment of civil aviation VHF radio stations to improve the reliability and stability of the system.
[0006] The present invention discloses a method for switching between a civil aviation VHF radio station and a standby radio station based on a virtual IP, which comprises: Connect the host radio station to the core switch through the first network switching device; connect the backup radio station to the core switch through the second network switching device, ensure that the core switch has the IP routing function enabled and supports the VLAN trunk protocol, so that the host radio station and the backup radio station are in the same VLAN, so that they can communicate with each other and exchange business information with the external network; The host radio station is programmed or connected in series with the first network switching device, and the backup radio station is programmed or connected in series with the second network switching device to enable the station to send messages to detect the link status between the host radio station and the backup radio station and to perform floating management of the virtual IP.
[0007] Furthermore, the workstation connected to the core switch accesses the console port of the core switch through a console line, and then configures the core switch through a serial port debugging tool; the configuration of the first network switching device and the second network switching device both include configuring a Layer 2 forwarding function, a VRRP backup group, and a static BFD session.
[0008] Furthermore, the layer 2 forwarding function of the first network switching device and the second network switching device is configured: Select a port of the first network switching device and configure it as Access or Hybrid type. When configuring the gateway, configure it and the configuration port corresponding to the core switch in the same network segment; select another port of the first network switching device and configure it as Access or Hybrid type. When configuring the gateway, configure it and the host radio in the same network segment; Select a port of the second network switching device and configure it as Access or Hybrid type. When configuring the gateway, configure it in the same network segment as the configuration port corresponding to the core switch; select another port of the second network switching device and configure it as Access or Hybrid type. When configuring the gateway, configure it in the same network segment as the backup radio.
[0009] Furthermore, the first network switching device and the second network switching device are interconnected using static routing to meet the stability requirements of the civil aviation network.
[0010] Further, the VRRP backup group of the first network switching device and the second network switching device is configured: The priority of the first network switching device connected to the host radio station is set to a value higher than the default value; the priority of the second network switching device connected to the backup radio station is set to the default value; and virtual IPs are configured for the first network switching device and the second network switching device.
[0011] Furthermore, a static BFD session is configured for the VLAN where the link between the first network switching device and the second network switching device is located, and linkage between VRRP and BFD is configured. When the BFD session is disconnected, the second network switching device to which the backup radio station is connected increases its VRRP priority to be higher than the VRRP priority of the first network switching device to which the host radio station is connected. At this time, the priority of the backup radio station is higher than that of the host radio station, triggering switching between the host radio station and the backup radio station.
[0012] Furthermore, import Socket or other program libraries that support sending IP packets in the development environment. Take the Socket library in the Python environment as an example. When calling the Socket subfunction, select the raw socket SOCK_RAW, select VRRP for the protocol packet type, and then edit the message in VRRP format; multicast the edited message to the group address, and finally connect the host radio and the backup radio directly to the core switch, configure the ARP message, and point the virtual address in the routing table to this machine; the ARP message will be sent when the priority of this machine is higher than that of another machine, and at the same time trigger the switching of the host radio and the backup radio.
[0013] Furthermore, in the format of VRRP: bits 1 to 4 are the VRRP protocol version. When the field is 2, it indicates that the protocol version is VRRPv2, and when the field is 3, it indicates that the protocol version is VRRPv3; bits 5 to 8 are the VRRP message type, and the field can only be 1; bits 9 to 16 are the virtual router identifier, and the field range is 1 to 255; bits 17 to 24 are the priority, and the field range is 0 to 255. If the virtual router and the local address are the same, the field can only be set to 255; if the local address needs to stop participating in the VRRP group, the field is set to 0; in other cases, the field value The range is 1 to 254. The higher the priority, the larger the value. Bits 25 to 32 are the number of IP addresses in VRRP advertisements. Bits 33 to 40 are the authentication type. 0 indicates that no authentication is required between VRRP message exchanges. 1 indicates that plain text authentication is used. 2 indicates that MD5 authentication is used. Bits 41 to 48 are the VRRP advertisement interval. Bits 49 to 64 are the check bits. Bits 65 to 96 are the virtual IP addresses. Bits 97 to 128 are the authentication field. This field is filled in only when the authentication type is plain text authentication or MD5 authentication. This field is 0 when there is no authentication type.
[0014] Furthermore, by modifying the definition of the VRRP announcement interval time field, the switching delay between the master radio station and the backup radio station can be reduced, thereby reducing call interruptions caused by the master radio station crashing in actual situations.
[0015] The present invention also discloses a civil aviation VHF radio master-slave switching system based on virtual IP, which implements any of the above-mentioned civil aviation VHF radio master-slave switching methods based on virtual IP, and includes a host radio, a backup radio, a first network switching device, a second network switching device and a core switch; the host radio is connected to the core switch through the first network switching device; the backup radio is connected to the core switch through the second network switching device; the host radio and the backup radio are in the same VLAN and exchange business information with the external network.
[0016] Due to the adoption of the above technical solution, the present invention has the following advantages: 1. High efficiency: By modifying the definition of the announcement interval time field in VRRP, the switching delay between the master radio and the backup radio is reduced from seconds to milliseconds. Compared with the traditional master-slave switching through sophisticated and complex circuit boards, the master-slave switching efficiency is further improved.
[0017] 2. Low cost: Select serial switching devices to implement virtual IP master-slave switching, making the system a distributed design. When a failure occurs, just replace the corresponding part. Compared with the traditional master-slave switching through sophisticated and complex circuit boards, it saves a lot of troubleshooting costs.
[0018] 3. Strong practicability: The computers and electronic instruments used in the present invention are all mature shelf products. The virtual IP implementation method is flexible and changeable. It can be based on whether the civil aviation VHF radio equipment has programmable functions. The virtual IP master-slave switching can be realized by selecting a series switching device or programming the radio. The method is effective and feasible, and can provide a research basis for the development of the virtual IP master-slave switching part of the VoIP radio equipment. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in the embodiments of the present invention. For ordinary technicians in this field, other drawings can also be obtained based on these drawings.
[0020] Figure 1 A schematic diagram of a virtual IP-based civil aviation VHF radio master-slave switching system according to an embodiment of the present invention; Figure 2 A schematic diagram of establishing VRRP message capability by serially connecting switching devices according to an embodiment of the present invention; Figure 3 A schematic diagram of active / standby switching according to an embodiment of the present invention; Figure 4 A schematic diagram of the VRRP message format according to an embodiment of the present invention; Figure 5A schematic diagram of function calling and VRRP message editing according to an embodiment of the present invention; Figure 6 A schematic diagram of VRRP packet capture results according to an embodiment of the present invention; Figure 7 A schematic diagram of function calling and ARP message editing according to an embodiment of the present invention. DETAILED DESCRIPTION
[0021] The present invention is further described in conjunction with the accompanying drawings and embodiments, and the described embodiments are only a part of the embodiments of the present invention, rather than all the embodiments. All other embodiments obtained by ordinary technicians in this field should fall within the scope of protection of the embodiments of the present invention.
[0022] The present invention provides an embodiment of a method for switching between active and standby civil aviation VHF radio stations based on a virtual IP, which comprises: Connect the host radio station to the core switch through the first network switching device; connect the backup radio station to the core switch through the second network switching device, ensure that the core switch has the IP routing function enabled and supports the VLAN (Virtual Local Area Network) relay protocol, so that the host radio station and the backup radio station are in the same VLAN, so that they can communicate with each other and exchange business information with the external network; The host radio station is programmed or connected in series with the first network switching device, and the backup radio station is programmed or connected in series with the second network switching device to enable the station to send messages to detect the link status between the host radio station and the backup radio station and to perform floating management of the virtual IP.
[0023] There are two ways to implement active / standby switching of virtual IP: 1. Connect the first network switching device and the second network switching device in series Connect the host radio in series with the first network switching device that has the function of exchanging VRRP (Virtual Router Redundancy Protocol), BFD (Bidirectional Forwarding Detection), and ARP (Address Resolution Protocol), such as Figure 2As shown. The workstation is connected to the console port of the first network switching device through a console cable, and then the first network switching device is configured through a serial port debugging tool, such as Hyperterminal. The standby radio station is connected in series with the second network switching device that has the function of exchanging VRRP (Virtual Router Redundancy Protocol), BFD (Bidirectional Forwarding Detection), and ARP (Address Resolution Protocol) messages. The workstation is connected to the console port of the second network switching device through a console cable, and then the second network switching device is configured through a serial port debugging tool, such as Hyperterminal.
[0024] The configuration of the first network switching device and the second network switching device both includes configuring the Layer 2 forwarding function, VRRP backup group, and static BFD session: Configure the Layer 2 forwarding function of the first network switching device: select one of the ports of the first network switching device, configure it as Access or Hybrid type (the port can belong to multiple VLANs), configure the gateway (VlanIf) in the same network segment as the corresponding port of the core switch, select another port of the first network switching device, configure it as Access or Hybrid type, and configure the gateway (VlanIf) in the same network segment as the radio station connected to it. Configuring the Layer 2 forwarding function of the second network switching device is similar to configuring the Layer 2 forwarding function of the first network switching device. In order to meet the stability requirements of the civil aviation network, static routing is used to interconnect the first network switching device and the second network switching device.
[0025] Configure the VRRP backup group of the first network switch and the second network switch: For the first network switch connected to the master station, set the priority to a value higher than 100. For the second network switch connected to the backup station, set the priority to the default value (100). Set and configure virtual IP for the first network switch and the second network switch at the same time.
[0026] Finally, a BFD session is configured for the VLAN where the link between the first network switching device and the second network switching device is located, and the linkage between VRRP and BFD is configured. When the BFD session is disconnected, the second network switching device connected to the backup radio increases its VRRP priority to a higher level than the VRRP priority of the first network switching device connected to the host radio. At this time, the priority of the backup radio is higher than that of the host radio, triggering the switching of the host radio and the backup radio, such as Figure 3shown.
[0027] 2. Program the host radio and the standby radio Import Socket or other program libraries that support sending IP packets in the development environment. Take the Socket library in Python as an example. When calling the Socket subfunction, select the raw socket (SOCK_RAW), select VRRP as the protocol packet type, and then edit the message in the VRRP format. The VRRP format is as follows: Figure 4 shown.
[0028] In the format: bits 1 to 4 are the VRRP protocol version. When the field is 2, it indicates that the protocol version is VRRPv2. When the field is 3, it indicates that the protocol version is VRRPv3. Bits 5 to 8 are the VRRP message type. The field can only be 1. Bits 9 to 16 are the virtual router identifier (VRID). The field range is 1 to 255. Bits 17 to 24 are the priority. The field range is 0 to 255. If the virtual router and the local address are the same, the field can only be set to 255. If the local address needs to stop participating in the VRRP group, the field is set to 0. In other cases, the field value range is 1 to 254. The higher the priority, the greater the value. Bits 25 to 32 are the number of IP addresses in the VRRP announcement. Bits 33 to 40 are the authentication type. 0 indicates that no authentication is required between VRRP message exchanges. 1 indicates that plain text is used for authentication. 2 indicates that MD5 (message digest algorithm) is used for authentication. Bits 41 to 48 are the VRRP announcement interval in seconds. In actual situations, this part can be redefined to milliseconds to speed up the switching time. For example, hexadecimal "01" no longer represents 1 second but 1 millisecond. Correspondingly, "14" represents a packet sending interval of 20 milliseconds. The packet sending interval of 20 milliseconds is more in line with the requirements of civil aviation communication stability than 1 second. Bits 49 to 64 are check bits. Bits 65 to 96 are virtual IP addresses. Bits 97 to 128 are authentication fields. This field is filled in only when the authentication type is plain text authentication or MD5 authentication. This field is 0 when there is no authentication type.
[0029] Function call and edited message examples are as follows Figure 5 As shown. Multicast the filled message to the group address 224.0.0.18, as shown Figure 6 shown.
[0030] Finally, connect the master radio and the backup radio directly to the core switch, configure the ARP message, and point the virtual address in the routing table to the local machine. This message will be sent when the local machine has a higher priority than the other machine, and trigger the master-slave switch. The function call and the edited message example are as follows: Figure 7 shown.
[0031] By modifying the definition of the announcement interval time field in VRRP, the master-slave switching delay is reduced from seconds to milliseconds. This method reduces the master-slave switching delay, avoids prolonged call interruptions caused by host radio downtime in actual situations, and enhances call stability.
[0032] By adopting the method of serial network switching equipment, even if the host radio and the backup radio themselves do not have the programming capability, the host radio and the backup radio can have the master-slave switching function of the virtual IP. The method is highly practical, which further reduces the research and development cost of adding new functions to the existing air traffic control communication equipment.
[0033] After virtual IP master-slave switching is achieved by connecting network switching devices in series, the entire system is designed to be distributed. A single device (host radio or backup radio) can be replaced in time after a failure, making maintenance of the entire system more convenient.
[0034] See also Figure 1 The present invention also provides an embodiment of a civil aviation VHF radio master-slave switching system based on virtual IP, which implements the civil aviation VHF radio master-slave switching method based on virtual IP described in the above embodiment, which includes a host radio, a backup radio, a first network switching device, a second network switching device and a core switch; the host radio is connected to the core switch through the first network switching device; the backup radio is connected to the core switch through the second network switching device; the host radio and the backup radio are in the same VLAN and exchange business information with the external network.
[0035] Specifically, the host radio station and the backup radio station can be VoIP radio stations; VoIP radio stations and required configurations: the radio station should have the ability to conduct normal data communication, and be able to send ARP, VRRP and other messages by programming the radio's internal software radio (SDR), field programmable gate array (FPGA), etc. or connecting network switching devices in series, so as to detect the link status between the primary and backup radio stations and perform floating management of virtual IP.
[0036] Core switch: Connect the active and standby radio stations to the same core switch via network cables, ensure that the switch has the IP routing function enabled and supports the VLAN trunking protocol, so that the active and standby radio stations are in the same VLAN, allowing them to communicate with each other and exchange business information with the external network.
[0037] The VoIP radio model is R&S 4200, the network switching equipment model is Huawei S5700, and the core switch model is Huawei S5735.
[0038] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the above embodiments, ordinary technicians in the relevant field should understand that the specific implementation methods of the present invention can still be modified or replaced by equivalents. Any modification or equivalent replacement that does not depart from the spirit and scope of the present invention should be covered within the scope of protection of the claims of the present invention.
Claims
1. A method for switching between active and standby civil aviation VHF radio stations based on virtual IP, characterized in that: include: Connecting the host radio station to the core switch via the first network switching device; Connect the backup radio to the core switch through the second network switching device, ensure that the core switch has the IP routing function enabled and supports the VLAN trunk protocol, so that the host radio and the backup radio are in the same VLAN, so that they can communicate with each other and exchange business information with the external network; The host radio station is programmed or connected in series with the first network switching device, and the backup radio station is programmed or connected in series with the second network switching device to enable the station to send messages to detect the link status between the host radio station and the backup radio station and to perform floating management of the virtual IP.
2. The method for switching between active and standby civil aviation VHF radio stations based on virtual IP according to claim 1, characterized in that: The workstation connected to the core switch accesses the console port of the core switch through a console cable, and then configures the core switch through a serial port debugging tool; the configuration of the first network switching device and the second network switching device both include configuring a Layer 2 forwarding function, a VRRP backup group, and a static BFD session.
3. The method for switching between active and standby civil aviation VHF radio stations based on virtual IP according to claim 2, characterized in that: Configure the Layer 2 forwarding function of the first network switching device and the second network switching device: Select a port of the first network switching device and configure it as Access or Hybrid type. When configuring the gateway, configure it and the configuration port corresponding to the core switch in the same network segment; select another port of the first network switching device and configure it as Access or Hybrid type. When configuring the gateway, configure it and the host radio in the same network segment; Select a port of the second network switching device and configure it as Access or Hybrid type. When configuring the gateway, configure it in the same network segment as the configuration port corresponding to the core switch; select another port of the second network switching device and configure it as Access or Hybrid type. When configuring the gateway, configure it in the same network segment as the backup radio.
4. The method for switching between active and standby civil aviation VHF radio stations based on virtual IP according to claim 3, characterized in that: The first network switching device and the second network switching device are interconnected by static routing to meet the stability requirements of the civil aviation network.
5. The method for switching between active and standby civil aviation VHF radio stations based on virtual IP according to claim 2, characterized in that: Configure the VRRP backup group of the first network switching device and the second network switching device: The priority of the first network switching device connected to the host radio station is set to a value higher than the default value; the priority of the second network switching device connected to the backup radio station is set to the default value; and virtual IPs are configured for the first network switching device and the second network switching device.
6. The method for switching between active and standby civil aviation VHF radio stations based on virtual IP according to claim 2, characterized in that: A static BFD session is configured for the VLAN where the link between the first network switching device and the second network switching device is located, and the linkage between VRRP and BFD is configured. When the BFD session is disconnected, the second network switching device to which the backup radio is connected increases its VRRP priority to be higher than the VRRP priority of the first network switching device to which the host radio is connected. At this time, the priority of the backup radio is higher than that of the host radio, triggering the switching of the host radio and the backup radio.
7. The method for switching between active and standby civil aviation VHF radio stations based on virtual IP according to claim 1, characterized in that: Import Socket or other program libraries that support sending IP packets in the development environment. Take the Socket library in the Python environment as an example. When calling the Socket sub-function, select the raw socket SOCK_RAW, select VRRP for the protocol packet type, and then edit the message in VRRP format; multicast the edited message to the group address, and finally connect the host radio and the backup radio directly to the core switch, configure the ARP message, and point the virtual address in the routing table to this machine; the ARP message will be sent when the priority of this machine is higher than that of another machine, and at the same time trigger the switching of the host radio and the backup radio.
8. The method for switching between active and standby civil aviation VHF radio stations based on virtual IP according to claim 7, characterized in that: In the format of VRRP: bits 1 to 4 are the VRRP protocol version. When the field is 2, it indicates that the protocol version is VRRPv2, and when the field is 3, it indicates that the protocol version is VRRPv3; bits 5 to 8 are the VRRP message type, and the field can only be 1; bits 9 to 16 are the virtual router identifier, and the field range is 1 to 255; bits 17 to 24 are the priority, and the field range is 0 to 255. If the virtual router and the local address are the same, the field can only be set to 255; if the local address needs to stop participating in the VRRP group, the field is set to 0; in other cases, the field value range is 1 to 254, and the higher the priority, the larger the value; bits 25 to 32 are the number of IP addresses in the VRRP announcement; bits 33 to 40 are the authentication type, 0 indicates that no authentication is required between VRRP message exchanges, 1 indicates that plain text is used for authentication, and 2 indicates that MD5 is used for authentication; bits 41 to 48 are the VRRP announcement interval; bits 49 to 64 are the check bits; bits 65 to 96 are the virtual IP address; Bits 97 to 128 are the authentication field. This field is filled in only when the authentication type is plain text authentication or MD5 authentication. If there is no authentication type, this field is 0.
9. The method for switching between active and standby civil aviation VHF radio stations based on virtual IP according to claim 8, characterized in that: By modifying the definition of the VRRP announcement interval time field, the switching delay between the master radio and the backup radio can be reduced, thereby reducing call interruptions caused by the master radio downtime in actual situations.
10. A civil aviation VHF radio master-slave switching system based on virtual IP, implementing the civil aviation VHF radio master-slave switching method based on virtual IP according to any one of claims 1 to 9, characterized in that: It includes a host radio station, a backup radio station, a first network switching device, a second network switching device and a core switch; the host radio station is connected to the core switch through the first network switching device; the backup radio station is connected to the core switch through the second network switching device; the host radio station and the backup radio station are in the same VLAN and exchange business information with the external network.
Citation Information
Patent Citations
Frequency coupling method and system of air different frequency semi duplex radio station
CN101051850A
Very-high-frequency radio station internet remote control system and installation method
CN110661876A
ED137 protocol-based VoIP (Voice over Internet Protocol) radio station gateway
CN110809097A
Network element switching method and communication system
CN115802436A
Remote radio transfer station of navigation scene monitoring system
CN214959506U
Cited By
Scale out network backup path fast switching notification system and method
CN120935101A
