WO2018227365A1 - Procédé et système de sélection d'un dispositif principal dans une liaison de réseau - Google Patents

Procédé et système de sélection d'un dispositif principal dans une liaison de réseau Download PDF

Info

Publication number
WO2018227365A1
WO2018227365A1 PCT/CN2017/088017 CN2017088017W WO2018227365A1 WO 2018227365 A1 WO2018227365 A1 WO 2018227365A1 CN 2017088017 W CN2017088017 W CN 2017088017W WO 2018227365 A1 WO2018227365 A1 WO 2018227365A1
Authority
WO
WIPO (PCT)
Prior art keywords
devices
primary device
network link
election
votes
Prior art date
Application number
PCT/CN2017/088017
Other languages
English (en)
Chinese (zh)
Inventor
李炜
Original Assignee
深圳市伊特利网络科技有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 深圳市伊特利网络科技有限公司 filed Critical 深圳市伊特利网络科技有限公司
Priority to PCT/CN2017/088017 priority Critical patent/WO2018227365A1/fr
Publication of WO2018227365A1 publication Critical patent/WO2018227365A1/fr

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/22Arrangements for detecting or preventing errors in the information received using redundant apparatus to increase reliability

Definitions

  • the present invention relates to the field of communications, and in particular, to a method and system for selecting a master device in a network link.
  • a smart phone belongs to a common device used by people for daily use.
  • a master device cannot be elected by voting, resulting in a network link device having no primary and secondary points, and unified scheduling cannot be achieved, and the user experience is low.
  • a method for selecting a master device in a network link is provided, which solves the disadvantage of low user experience in the prior art.
  • a method for selecting a master device in a network link includes the following steps:
  • the method further includes:
  • the second device that votes the second most among all devices is extracted, and the second device is determined as the standby primary device.
  • the method further includes:
  • the standby primary device switches to the primary device and sends an election for the alternate primary device.
  • a master device selection system in a network link includes:
  • a determining unit configured to determine all connected devices in the network connection, and all devices are formed into a first multicast group
  • An election unit configured to initiate an election message in the first multicast group, where the election message is used to vote for the primary device
  • the control unit is configured to receive voting information sent by other devices. If the number of votes is the largest, the device is determined to be the master device.
  • system further includes:
  • control unit configured to extract a second device that votes the second most among all devices, and determine the second device as the standby primary device.
  • system further includes:
  • the control unit is configured to switch the standby master device to the master device and send the candidate for the standby master device if the master device fails.
  • a computer readable storage medium having stored thereon a computer program that, when executed by a processor, implements a master device selection method in the network link.
  • a terminal comprising one or more processors, a memory, a transceiver, and one or more programs, the one or more programs being stored in the memory and configured by the Executed by one or more processors, the program including instructions for performing the steps in the master device selection method in the network link described above.
  • the technical solution provided by the specific embodiment of the present invention determines all the connected devices in the network connection, and all the devices form a first multicast group, and an election message is initiated in the first multicast group, and the election message is used to vote for the primary device to receive
  • the voting information sent by other devices if the number of votes is the largest, determines that the device is the master device, so it has the device that initiates the voting and determines the number of votes to be the master device, thereby achieving unified scheduling and facilitating the advantages of the user.
  • FIG. 1 is a flowchart of a method for selecting a master device in a network link according to the present invention.
  • FIG. 2 is a structural diagram of a master device selection system in a network link according to the present invention.
  • FIG. 3 is a schematic structural diagram of hardware of a terminal provided by the present invention.
  • FIG. 1 is a flowchart of a method for selecting a master device in a network link according to a first preferred embodiment of the present invention.
  • the method is implemented by a terminal.
  • the method is as shown in FIG. 1 , and includes the following steps:
  • Step S101 Determine all connected devices in the network connection, and combine all the devices into the first multicast group.
  • Step S102 Initiating an election message in the first multicast group, where the election message is used to vote for the primary device;
  • Step S103 Receive voting information sent by other devices. If the number of votes is the largest, determine that the device is the master device.
  • the technical solution provided by the specific embodiment of the present invention determines all the connected devices in the network connection, and all the devices form a first multicast group, and an election message is initiated in the first multicast group, and the election message is used to vote for the primary device to receive
  • the voting information sent by other devices if the number of votes is the largest, determines that the device is the master device, so it has the device that initiates the voting and determines the number of votes to be the master device, thereby achieving unified scheduling and facilitating the advantages of the user.
  • the method may further include:
  • the second device that votes the second most among all devices is extracted, and the second device is determined as the standby primary device.
  • the method may further include:
  • the standby primary device switches to the primary device and sends an election for the alternate primary device.
  • FIG. 2 is a schematic diagram of a master device selection system in a network link according to a second preferred embodiment of the present invention.
  • the system includes the following:
  • the determining unit 201 is configured to determine all connected devices in the network connection, and form all the devices into the first multicast group;
  • the election unit 202 is configured to initiate an election message in the first multicast group, where the election message is used to vote for the primary device;
  • the control unit 203 is configured to receive voting information sent by other devices. If the number of votes is the largest, the device is determined to be the master device.
  • the technical solution provided by the specific embodiment of the present invention determines all the connected devices in the network connection, and all the devices form a first multicast group, and an election message is initiated in the first multicast group, and the election message is used to vote for the primary device to receive
  • the voting information sent by other devices if the number of votes is the largest, determines that the device is the master device, so it has the device that initiates the voting and determines the number of votes to be the master device, thereby achieving unified scheduling and facilitating the advantages of the user.
  • the above system may further include:
  • the control unit 203 is configured to extract a second device that votes the second most among all devices, and determine the second device as the standby primary device.
  • the above system may further include:
  • the control unit 203 is configured to switch to the primary device and send the election of the standby primary device, such as the failure of the primary device.
  • a specific embodiment of the present invention further provides a computer readable storage medium having stored thereon a computer program, the program being implemented by the processor to implement a method for selecting a master device in the network link.
  • a specific embodiment of the present invention further provides a terminal, as shown in FIG. 3, including one or more processors 302, a memory 301, a transceiver 303, and one or more programs, the one or more programs being stored in The memory is, and is configured to be executed by, the one or more processors, the program comprising instructions for performing the steps in the master device selection method of the network link described above.
  • Computer readable media includes both computer storage media and communication media including any medium that facilitates transfer of a computer program from one location to another.
  • a storage medium may be any available media that can be accessed by a computer.
  • the computer readable medium may include random access memory (Random) Access Memory, RAM), Read-Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (Electrically Erasable Programmable Read-Only Memory, EEPROM), Compact Disc Read-Only Memory, CD-ROM, or other optical disc storage, magnetic storage medium or other magnetic storage device, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer. Also. Any connection may suitably be a computer readable medium.
  • a disk and a disc include a compact disc (CD), a laser disc, a compact disc, a digital versatile disc (DVD), a floppy disk, and a Blu-ray disc, wherein the disc is usually magnetically copied, and the disc is The laser is used to optically replicate the data. Combinations of the above should also be included within the scope of the computer readable media.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

La présente invention concerne un procédé et un système de sélection d'un dispositif principal dans une liaison de réseau, le procédé comprenant les étapes suivantes consistant à : déterminer tous les dispositifs connectés dans une liaison de réseau, et grouper tous les dispositifs dans un premier groupe de multidiffusion ; envoyer un message d'élection dans le premier groupe de multidiffusion, le message d'élection étant utilisé en vue de voter pour choisir un dispositif principal ; recevoir des informations de vote envoyées par les autres dispositifs et, si le nombre de votes est le plus élevé, déterminer que le présent dispositif est le dispositif principal. La solution technique fournie par la présente invention présente l'avantage de fournir une bonne expérience utilisateur.
PCT/CN2017/088017 2017-06-13 2017-06-13 Procédé et système de sélection d'un dispositif principal dans une liaison de réseau WO2018227365A1 (fr)

Priority Applications (1)

Application Number Priority Date Filing Date Title
PCT/CN2017/088017 WO2018227365A1 (fr) 2017-06-13 2017-06-13 Procédé et système de sélection d'un dispositif principal dans une liaison de réseau

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2017/088017 WO2018227365A1 (fr) 2017-06-13 2017-06-13 Procédé et système de sélection d'un dispositif principal dans une liaison de réseau

Publications (1)

Publication Number Publication Date
WO2018227365A1 true WO2018227365A1 (fr) 2018-12-20

Family

ID=64659405

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/088017 WO2018227365A1 (fr) 2017-06-13 2017-06-13 Procédé et système de sélection d'un dispositif principal dans une liaison de réseau

Country Status (1)

Country Link
WO (1) WO2018227365A1 (fr)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080137528A1 (en) * 2006-12-06 2008-06-12 Cisco Technology, Inc. Voting to establish a new network master device after a network failover
CN101572626A (zh) * 2009-06-01 2009-11-04 杭州华三通信技术有限公司 一种堆叠逻辑口的配置方法和成员设备
CN101621466A (zh) * 2009-08-13 2010-01-06 中兴通讯股份有限公司 交换设备建立拓扑结构的方法、交换设备以及堆叠系统
CN105530179A (zh) * 2014-09-29 2016-04-27 杭州华三通信技术有限公司 数据报文处理方法以及网络设备
CN106331098A (zh) * 2016-08-23 2017-01-11 东方网力科技股份有限公司 一种服务器集群系统

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080137528A1 (en) * 2006-12-06 2008-06-12 Cisco Technology, Inc. Voting to establish a new network master device after a network failover
CN101572626A (zh) * 2009-06-01 2009-11-04 杭州华三通信技术有限公司 一种堆叠逻辑口的配置方法和成员设备
CN101621466A (zh) * 2009-08-13 2010-01-06 中兴通讯股份有限公司 交换设备建立拓扑结构的方法、交换设备以及堆叠系统
CN105530179A (zh) * 2014-09-29 2016-04-27 杭州华三通信技术有限公司 数据报文处理方法以及网络设备
CN106331098A (zh) * 2016-08-23 2017-01-11 东方网力科技股份有限公司 一种服务器集群系统

Similar Documents

Publication Publication Date Title
WO2018218805A1 (fr) Procédé et système d'invite de sonnerie de terminal
WO2018209644A1 (fr) Procédé et système de chiffrement de données pour logement domotique
WO2018223550A1 (fr) Procédé et système de réglage d'une horloge d'alarme de terminal
WO2018218807A1 (fr) Procédé et système de lecture d'informations de wechat
WO2018218808A1 (fr) Procédé et système de lecture d'informations de message court
WO2018227365A1 (fr) Procédé et système de sélection d'un dispositif principal dans une liaison de réseau
WO2018223552A1 (fr) Procédé et système de sortie rapide d'application de terminal
WO2018227332A1 (fr) Procédé et système de paiement rapide de terminal reposant sur le positionnement
WO2018227364A1 (fr) Procédé et système d'établissement de groupe de multidiffusion de terminal
WO2018227370A1 (fr) Procédé et système de sélection de connexion de réseau de terminaux
WO2018027576A1 (fr) Procédé et système de collecte de durée de fonctionnement dans des statistiques dans l'internet des objets
WO2018223344A1 (fr) Procédé et système de partage d'emplacement lors de la visite de proches
WO2018227333A1 (fr) Procédé et un système de recommandation d'application de terminal basé sur le positionnement
WO2018205273A1 (fr) Procédé et système de gestion de d'énergie d'un terminal intelligent
WO2018209511A1 (fr) Procédé et système de mise à jour d'une application dans un terminal
WO2018209643A1 (fr) Procédé et système de commande d'un appareil électrique pour habitat intelligent
WO2018227335A1 (fr) Procédé et système de communication d'équipe destinés à être utilisés quand on joue à crossfire
WO2018214057A1 (fr) Procédé et système de calcul concernant la perte de paquets dans une liaison de réseau
WO2018214021A1 (fr) Procédé et système de partage de destination entre plateformes
WO2018214055A1 (fr) Procédé et système de mise en œuvre d'un positionnement en mode de vol
WO2018209510A1 (fr) Procédé et système d'amélioration intelligente de la quantité d'électricité d'un terminal
WO2018209585A1 (fr) Procédé et système d'utilisation de positionnement dans un parcours pédestre historique
WO2018205272A1 (fr) Procédé et système d'application d'identification d'empreintes digitales de terminal
WO2018223282A1 (fr) Procédé et système de traitement d'appel entrant de terminal pendant la conduite
WO2018227379A1 (fr) Procédé et système permettant d'appliquer un positionnement de terminal à un enregistrement de service

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 17913883

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 17913883

Country of ref document: EP

Kind code of ref document: A1