Get the App
SLTechnology News&Howtos  ›  Servers  › 

On the Communication skills of HA-MIR Mirror dual-computer Virtual IP and Zhou Ligong CANET-200T using UDP Mode

Shulou Source: shulou.com Published: 2022-06-02 21:18:14 10月03日 Update

system environment

Windows Server2008R2 Enterprise X64;

HA-MIR;

CAN communication module adopts Zhou Ligong CANNET-200T;

experiment shows

In this experiment, VMware workstations version 12 virtual machines are built on laptops, two Server2008 R2 servers are created, two servers named host servera and standby serverb virtual machines are respectively configured, and the servers are configured as dual NIC, NIC 1 is used as heartbeat setting, NIC 2 is used as business IP, HA-MIR software is used to realize double-click hot standby production of two servers, and virtual IP settings need to be realized for NIC 2 of the two servers. The virtual IP is used to collect CAN bus device data. UDP protocol is adopted, CAN1 and CAN2 of CANET-200T communication module are directly connected to simulate data transmission and reception, Znetcom configuration tool is adopted for configuration software, ZLGcantest test software is adopted for testing, finally CAN1 can transmit data normally, CAN2 can transmit data normally, the test time is 12 hours, one frame is transmitted each time, 10 bytes are transmitted each time, the transmission interval is 1000ms, and the cumulative transmission time is 12 hours. Check whether the received and received data are consistent.

Server Configuration Description:

System configuration:

Server Name: servera

NIC 1 Heartbeat: 10.10.10.1/24

Network card 2 service: 18.18.18.68/24

Server Name: serverb

NIC 1 Heartbeat: 10.10.10.2/24

Network card 2 service: 18.18.18.69/24

CAN communication module: CANET-200T

CAN1

Working port: 12000

Destination port: 12000

Target IP: 18.18.18.60/24

CAN2

Working port: 13000

Destination port: 13000

Target IP: 18.18.18.60/24

NIC 2 Virtual IP: 18.18.18.60/24

When the virtual IP setting is greater than 69, the ZLGcantest software cannot send and receive data normally, and the other CAN port cannot collect data after sending. It is found by using the network packet capture tool that all UDP broadcast data source exit IPs are physical IPs of host NIC 2, not virtual IPs. If the IP setting is less than 68, the ZLGcantest software can send and receive data normally. At present, it can only be confirmed by verification results. In the CANET-200T application environment, it is necessary to ensure that the virtual IP setting must be less than the minimum IP in the set virtual NIC. The specific reasons are still under analysis. Otherwise, the exit IP defaults to the current physical NIC IP. At this stage, the test verifies that CANET-200TIP is less than 60 and the following settings have tested 6 IPs, all of which can realize data transmission and reception.

Tags: Network card data server software service test configuration target port communication business name module host hour tools physics environment system egress Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno OPPO Reno macOS MySQL vpn MariaDB