Master-slave judging and switching method and device based on network

A technology of switching device and host, which is applied in the field of network communication, can solve the problems affecting the performance and normal operation of the network system, and the network system has no host, and achieves the effect of ensuring performance and normal operation.

Active Publication Date: 2020-10-23
南京天朗防务科技有限公司
View PDF3 Cites 6 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

The solution adopted in the prior art is to judge by the IP address of the host, but when the host fails, the slave will always wait for the response of the host, resulting in the phenomenon of no host in the network system, affecting the performance and normal operation of the network system

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Master-slave judging and switching method and device based on network

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0019] The technical solution of the present invention will be further described below in conjunction with the accompanying drawings.

[0020] refer to figure 1 , which is a schematic flowchart of the network-based master-slave discrimination and switching method provided by the present invention.

[0021] Step 1, the current slave sends communication information to the current master based on the network communication based on the queue head address of the master queue.

[0022] In the embodiment of the present invention, in the master queue, the head address of the queue is the address of the current master, and the queue addresses are sequentially the addresses of the slaves in the network.

[0023] In a specific implementation, the master queue includes the addresses of multiple computer devices in the network system, the head of the queue is the address of the computer device that is the master of the network system at this time, and the queue is the address of the slave...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses a master-slave judging and switching method and device based on network, and the method comprises the steps that a current slave transmits communication information to a current host based on network communication according to the head address of a host queue; if the current slave receives the feedback message of the host within the preset time and the feedback message passes the verification, it is judged that the current host is in a normal working state, otherwise, it is judged that the current host is in a fault working state; if the current host is in the fault working state, the current slave dequeues the queue head address in the host queue, and sends a host switching message to the alternative slaves according to the new queue head address, and the alternative slaves are switched to the new host; and the new host broadcasts host change information to the network, and the slaves receiving the host change information update the host queue, so that the address of the new host is located at the head of the host queue. By adopting the scheme, the performance and normal operation of the network system can be ensured.

Description

technical field [0001] The invention relates to the field of network communication, in particular to a network-based master-slave machine discrimination and switching method and device. Background technique [0002] In engineering applications, the performance and resources of a single computer are limited, so it is usually set up multiple computers to assist in the work through network communication, some of which are masters and some are slaves. [0003] When the network system is running normally, usually the master and the slave, and the slave and the slave will communicate with each other. Therefore, it is necessary to identify the identities of the two communicating parties so that the information can be transmitted correctly. The solution adopted in the prior art is to judge by the IP address of the host, but when the host fails, the slave will wait for the response of the host, resulting in no host in the network system, affecting the performance and normal operation...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): H04L12/24H04L1/00
CPCH04L41/0663H04L1/0061
Inventor 潘帅周楠
Owner 南京天朗防务科技有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products