About Ha-mir mirroring dual-machine virtual IP and ucos canet-200t using UDP mode communication skills

Source: Internet
Author: User

System environment

    1. Windows server2008r2 Enterprise X64;

    2. Dual-Machine hot standby software Ha-mir;

    3. Can communication module adopts Ucos cannet-200t;

Experiment Description

In this experiment, we build the VMware Workstations 12 virtual machine by notebook, create two Server2008 R2 servers respectively, the name is host ServerA and standby ServerB virtual machine two, respectively, and configure the server as dual network card, Network card 1 as the heartbeat settings, network card 2 as a business IP use, using Ha-mir software to achieve 2 server double-click Hot standby production, 2 server network card 2 to achieve virtual IP settings, the virtual IP is used to capture can bus device data, protocol using UDP, The CAN1 and CAN2 of the canet-200t communication module are directly connected to the analog test data, the configuration software uses the Znetcom Configuration tool, the test software is tested using Zlgcantest test software, and finally the CAN1 sending data CAN2 can receive normally, Each of the data can achieve normal reception, testing time is 12 hours, each send a frame, send 10 bytes at a time, send interval 1000ms once, the cumulative send 12 hours, check whether the data is consistent.

Server Configuration Description:

System configuration:

Server name: ServerA

Network card 1 Heartbeat: 10.10.10.1/24

Network card 2 Business: 18.18.18.68/24


Server name: ServerB

Network card 1 Heartbeat: 10.10.10.2/24

Network card 2 Business: 18.18.18.69/24


Can communication module: canet-200t

CAN1

Working Port: 12000

Target Port: 12000

Target IP:18.18.18.60/24

CAN2

Working port: 13000

Target Port: 13000

Target IP:18.18.18.60/24


Nic 2 Virtual IP:18.18.18.60/24


The problem encountered in the test, when the virtual IP setting is greater than 69 o'clock, the Zlgcantest software can not send and receive data, after sending another way can port can not collect data, using the Network capture tool found that all the UDP broadcast data source export IP is the host NIC 2 physical IP, non-virtual IP. If the set IP is less than 68, then the Zlgcantest software can send and receive data, currently only verifiable results confirmed that the virtual IP settings in the CANET-200T application environment to ensure that the need for virtual IP settings must be less than the minimum IP set in the virtual network card, the specific reason is still in the analysis, Otherwise, the export IP defaults to the current physical NIC IP. At this stage test verification canet-200tip less than 60 of the settings tested 6 IP can achieve data transmission.

This article is from the "Explore the Road" blog, please be sure to keep this source http://18017305419.blog.51cto.com/12473687/1923467

About Ha-mir mirroring dual-machine virtual IP and ucos canet-200t using UDP mode communication skills

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.