CN107483224B - Wireless routing version upgrading method based on DR election - Google Patents

Wireless routing version upgrading method based on DR election Download PDF

Info

Publication number
CN107483224B
CN107483224B CN201710344370.0A CN201710344370A CN107483224B CN 107483224 B CN107483224 B CN 107483224B CN 201710344370 A CN201710344370 A CN 201710344370A CN 107483224 B CN107483224 B CN 107483224B
Authority
CN
China
Prior art keywords
version
election
upgrading
equipment
file
Prior art date
Legal status (The legal status 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 status listed.)
Active
Application number
CN201710344370.0A
Other languages
Chinese (zh)
Other versions
CN107483224A (en
Inventor
汪革
彭双庭
梁东升
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
SHANGHAI BAUD DATA COMMUNICATION CO Ltd
Original Assignee
SHANGHAI BAUD DATA COMMUNICATION CO Ltd
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 SHANGHAI BAUD DATA COMMUNICATION CO Ltd filed Critical SHANGHAI BAUD DATA COMMUNICATION CO Ltd
Priority to CN201710344370.0A priority Critical patent/CN107483224B/en
Publication of CN107483224A publication Critical patent/CN107483224A/en
Application granted granted Critical
Publication of CN107483224B publication Critical patent/CN107483224B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0813Configuration setting characterised by the conditions triggering a change of settings
    • H04L41/082Configuration setting characterised by the conditions triggering a change of settings the condition being updates or upgrades of network functionality
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/084Configuration by using pre-existing information, e.g. using templates or copying from other elements
    • H04L41/0846Configuration by using pre-existing information, e.g. using templates or copying from other elements based on copy from other elements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/085Retrieval of network configuration; Tracking network configuration history
    • H04L41/0853Retrieval of network configuration; Tracking network configuration history by actively collecting configuration information or by backing up configuration information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/30Decision processes by autonomous network management units using voting and bidding
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Small-Scale Networks (AREA)

Abstract

The invention discloses a wireless routing version upgrading method based on DR election, which downloads an update file through DR generated by election in a conflict domain and transmits the update file to other equipment to be upgraded in the conflict domain. According to the scheme, the batch upgrading of the APs in the local area network can be realized within a fixed time, the bandwidth resources of the local area network are effectively utilized, and the bandwidth pressure of the cloud server is reduced.

Description

Wireless routing version upgrading method based on DR election
Technical Field
The invention relates to a wireless communication technology, in particular to a version upgrading technology of a wireless communication device.
Background
The version upgrading of the BDCOM wireless AP router at present is to judge whether a new version needs to be downloaded or not by requesting a cloud server through http, and each AP device needs to request the cloud server to download an update file when upgrading. And the bandwidth capacity of the cloud server determines the upgrading scale of the AP at the same time.
Therefore, the existing version upgrading scheme of the wireless AP router cannot upgrade the APs in the local area network in batch within a fixed time in view of the bandwidth capacity of the cloud server within the same time.
Disclosure of Invention
The noun explains:
DR-Designated Router, assigning a Router;
a drop-DR other, non-designated router;
AP-Access Point, Access node, referred to herein as a Wireless Router;
a Hello-Hello packet for discovering neighbors in a collision domain;
a Seen DR-Seen DR Hello packet receives a Hello message sent by a DR;
DR gone-designated router aging loss;
DelayTimer-delay timer;
WaitTimer-wait timer;
DOWN-off state;
INIT-initialization state;
WAIT-WAIT timeout state.
Aiming at the problems of the existing wireless routing version upgrading technology, a version upgrading scheme capable of realizing batch upgrading is needed.
Therefore, the technical problem to be solved by the present invention is to provide a wireless routing version upgrading method based on DR election.
In order to solve the technical problem, the wireless routing version upgrading method based on DR election provided by the invention downloads the update file through DR generated by election in a conflict domain, and transmits the update file to other devices to be upgraded in the conflict domain.
In the scheme, a group of wireless routes which belong to the same conflict domain and have the same value of the update file MD5 is used as an upgrading subdomain, and wireless route version upgrading is carried out in each upgrading subdomain respectively based on DR election.
In the scheme, the updating file is transmitted by adopting a TCP protocol.
In the scheme, the MD5 file consistency verification is carried out before the wireless routing equipment is updated.
In the scheme, DR is elected and generated based on a random serial number value generated after each device is powered on and started.
In the scheme, the device with the largest random serial number value is elected as DR.
In the scheme, the DR election strategy is as follows: device priority > device random sequence number value > device Wan port IP address.
In the scheme, the DR election process is as follows:
(1) the method comprises the steps that after the wireless routing equipment is started, the initial state is a DOWN state, a random sequence number seq is generated at the same time, and version information is requested from a cloud server at regular time;
(2) after receiving the response of the cloud server, the wireless routing equipment enters an INIT state and starts a DelayTimer at the same time;
(3) entering a WAIT state after the DelayTimer is overtime, and starting a WAIT timer in the state;
(4) and D, performing DR election after the WaitTimer is overtime, and enabling the selected device to become the drop.
In the scheme, when the WAIT timer is started in the WAIT state, the helloter timer is started to periodically send the multicast Hello message outwards.
In the scheme, after DR election, the equipment in the INIT state automatically becomes the Dry after receiving the Hello message sent by DR.
In the scheme, if the router does not receive the DR message in the preset Hello period, the aged DR is deleted, and then the router enters the WAIT state again to perform the next round of DR election.
Based on the scheme provided by the invention, batch upgrading of the APs in the local area network can be realized within a fixed time, the bandwidth resources of the local area network are effectively utilized, and the bandwidth pressure of the cloud server is reduced.
In the scheme, the local area network update files are transmitted by adopting a TCP protocol, and the MD5 file consistency verification is adopted before the equipment is updated, so that the whole upgrade cannot be down.
Drawings
The invention is further described below in conjunction with the appended drawings and the detailed description.
FIG. 1 is a diagram illustrating an upgrade system state in an embodiment of the present invention;
fig. 2 is a schematic diagram of distribution of version files in the embodiment of the present invention.
Detailed Description
In order to make the technical means, the creation characteristics, the achievement purposes and the effects of the invention easy to understand, the invention is further explained below by combining the specific drawings.
In the scheme of the embodiment, a download scheme based on DR election is provided on a wireless platform of BDCOM, and then a wireless device version upgrading scheme for transmitting version files (namely updating files) to other APs in the conflict domain through DR is provided. According to the scheme, the AP in the same conflict domain only needs to download the file (such as an updated file) once, and then the file is transmitted through the inside of the local area network, so that the bandwidth pressure of the cloud server can be effectively reduced, and the problem that a large number of APs are upgraded in a fixed time can be solved.
The following describes the specific implementation of the embodiment.
DR election.
DR is an important role in AP version upgrading, and the scheme downloads the update files to the cloud server through DR and transmits the update files to other servers.
In the scheme, DR is elected and generated mainly based on a random serial number value generated after each device is powered on and started.
Each AP device generates a random sequence number seq after being powered on and started, and in the present embodiment, the AP device with the largest seq value is used as the DR. The random seq value is adopted to elect to generate DR, each device is possible to elect to become DR, and the possibility of DR role transformation is also ensured after DR fails.
On the basis, aiming at some occasions needing to appoint a certain device to become a permanent DR, the scheme of the embodiment further increases the device priority value, wherein the device priority value is manually set, and the priority value is higher than the random serial number. Priority based on device priority value being higher than random sequence number value may be preferred as DR.
In this case, the election policy for DR in this example scheme is: device priority (to be set manually) > device random sequence number > device Wan port IP address.
2. Isolation is performed between different devices within the collision domain.
If the AP update files in a conflict domain are the same, the version upgrade scheme based on DR election described above can be directly utilized, and the DR generated by election in the conflict domain downloads the version upgrade file to the cloud server, and then propagates the update file to other servers in the conflict domain.
If there are different types of AP devices in a conflict domain, their update files are not consistent, in which case the above version upgrading scheme based on DR election cannot be directly utilized.
Therefore, a sub-domain scheme is provided, different devices in the conflict domain are isolated, and the AP devices in the sub-domain are upgraded in batches through a version upgrading scheme based on DR election.
The sub-domain specifically belongs to the same conflict domain, and the update file MD5 has the same value as the set of AP devices.
In other words, in the scheme, a group of wireless paths which belong to the same conflict domain and have the same value of the update file MD5 is used as an upgrade sub-domain, and in each upgrade sub-domain, the AP devices in the sub-domain are upgraded in batch by using a version upgrade scheme based on DR election.
It follows that in the same conflict domain, DR is a concept of roles in sub-domains, and the number of sub-domains is equal to the number of DRs.
The file isolation problem between different devices in a conflict domain is effectively solved by setting the subdomains.
The following describes, by way of a specific example, an implementation process of version upgrade based on DR election in the present solution.
Referring to fig. 1 and fig. 2, a schematic diagram of the state of the BDCOM wireless platform AP upgrade system and a schematic diagram of the distribution of the version files in this example are shown. As can be seen from the figure, the whole AP version upgrading process is as follows:
(1) as shown in fig. 1, after the AP device is started, the initial state is DOWN, and a random sequence number seq is generated. And the device requests the latest version of the information of the cloud server through the Http protocol every 15 minutes.
(2) If the cloud server side is provided with version upgrading information, the corresponding AP equipment side receives an Http response, wherein the Http response comprises a version number of an upgrading file, an md5 value and a downloading link, at the moment, the AP equipment enters an INIT state, and meanwhile, a Delaytimer (the default timeout is 1000 seconds) is started, and a delay timer ensures that other APs in the time period can acquire the information of the latest version.
(3) And after the delay timer is overtime, the AP equipment enters a WAIT state, starts a WAIT timer for 60 seconds in the state, and simultaneously starts a Hello timer to send a multicast Hello message outwards in a period (the default period is 15 seconds). Because the time for each AP device to enter the INIT state is different, the state is converted into the WAIT after the AP in the INIT state receives the Hello message, and therefore all AP devices can perform DR election at the same time.
(4) And D, performing DR election after the WaitTimer is overtime, and enabling the selected AP equipment to become the drop. The election strategy is as follows: the device priority (manually set, default to 1) > the device random sequence number > the device Wan port IP address.
When a DR election is performed, a device with a high priority level becomes DR, if the priority levels match, a device with a high random number becomes DR, and if the priority levels match with the random number, a device with a high IP address becomes DR.
Once the DR is successfully elected, the DR is not easily changed any more, and the device in the INIT state automatically becomes the router after receiving the Hello message sent by the DR. Only if the DR equipment end is disconnected (such as network disconnection or equipment failure), the router does not receive DR messages in 4 Hello periods, the aged DR is deleted, and then the router enters the WAIT state again to perform the next round of DR election.
(5) Only the DR equipment terminal can download the version to the cloud server, and after the downloading is finished, the sign BIN _ OK bit is marked in the Hello message. After receiving the message with the BIN _ OK, the drop terminal requests the DR side for the version file in the random interval of [0-15] seconds. And after the request of the drop device end is finished, detecting the version consistency, and immediately carrying out version upgrading operation after the verification is passed. The DR end performs the version upgrade operation immediately after sending the version to all the router neighbors (as shown in fig. 2).
At this point, all AP devices in the subdomain have completed the version upgrade operation.
As can be seen from the above example, the DR election process goes through four states, DOWN- > INIT- > WAIT- > DR. All the APs in one sub-domain only need to download the update files once by DR, bandwidth resources in the local area network are reasonably utilized, bandwidth pressure of the cloud server is greatly reduced, and the overall update speed is accelerated. Meanwhile, the problem of file isolation among different devices in a conflict domain is effectively solved through a sub-domain.
The foregoing shows and describes the general principles, essential features, and advantages of the invention. It will be understood by those skilled in the art that the present invention is not limited to the embodiments described above, which are described in the specification and illustrated only to illustrate the principle of the present invention, but that various changes and modifications may be made therein without departing from the spirit and scope of the present invention, which fall within the scope of the invention as claimed. The scope of the invention is defined by the appended claims and equivalents thereof.

Claims (9)

1. The wireless routing version upgrading method based on DR election is characterized in that an update file is downloaded through DR generated by election in a conflict domain, and the update file is transmitted to other equipment to be upgraded in the conflict domain, so that an AP in the same conflict domain only needs to download the file once and then transmits the file through the inside of a local area network; the wireless routing version upgrading method comprises the following steps:
(1) after the AP equipment is started, the initial state is DOWN, a random sequence number seq is generated at the same time, and the equipment requests the information of the latest version of the cloud server through an Http protocol at intervals of preset time;
(2) if the cloud server side is provided with version upgrading information, the corresponding AP equipment side receives an Http response, wherein the Http response comprises a version number of an upgrading file, an md5 value and a downloading link, the AP equipment enters an INIT state at the moment, a Delaytimer is started at the same time, and a delay timer ensures that other APs in the time period can acquire the information of the latest version;
(3) the DelayTimer enters a WAIT state after being overtime, and the AP equipment starts a WAIT timer in the state and also starts a HellotTimer timer to periodically send a multicast Hello message outwards;
(4) performing DR election after the WaitTimer is overtime, and enabling the selected AP equipment to become a drop;
(5) only the DR equipment terminal can download the version to the cloud server, and after the downloading is finished, a sign BIN _ OK bit is marked in the Hello message; after receiving the message with the BIN _ OK, the Router end requests a DR side for a version file in a random interval; after the request of the drop device end is finished, detecting the version consistency, and immediately carrying out version upgrading operation after the verification is passed; and immediately carrying out version upgrading operation after the DR end sends the versions to all the Dry neighbors.
2. The method for upgrading wireless router version as claimed in claim 1, wherein a group of wireless routers belonging to the same conflict domain and having the same value of the update file MD5 is used as an upgrading sub-domain, and wireless router version upgrading is performed in each upgrading sub-domain based on DR election.
3. The wireless routing version upgrade method according to claim 1, wherein the update file is transmitted using a TCP protocol.
4. The wireless routing version upgrade method according to claim 1, wherein the MD5 file consistency verification is performed before the wireless routing device updates.
5. The wireless routing version upgrade method of claim 1, wherein the DR is elected to be generated based on a random sequence number value generated after each device is powered on.
6. The method of claim 5, wherein the policy of DR election is: device priority > device random sequence number value > device Wan port IP address.
7. The method according to claim 1, wherein when the Wait timeout state is entered and the Wait timer is started, a helloter timer is started to send a multicast Hello packet periodically.
8. The upgrading method of claim 7, wherein after the DR election, the device in initialization state automatically becomes the Dry after receiving the Hello message sent by the DR.
9. The method of claim 8, wherein if the message of DR is not received by the router within a predetermined Hello period, the aged DR is deleted, and then the router re-enters the waiting timeout state for the next round of DR election.
CN201710344370.0A 2017-05-16 2017-05-16 Wireless routing version upgrading method based on DR election Active CN107483224B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710344370.0A CN107483224B (en) 2017-05-16 2017-05-16 Wireless routing version upgrading method based on DR election

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710344370.0A CN107483224B (en) 2017-05-16 2017-05-16 Wireless routing version upgrading method based on DR election

Publications (2)

Publication Number Publication Date
CN107483224A CN107483224A (en) 2017-12-15
CN107483224B true CN107483224B (en) 2021-01-19

Family

ID=60593558

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710344370.0A Active CN107483224B (en) 2017-05-16 2017-05-16 Wireless routing version upgrading method based on DR election

Country Status (1)

Country Link
CN (1) CN107483224B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111245660B (en) * 2020-02-24 2022-08-12 重庆金美通信有限责任公司 Network-based equipment upgrading self-adaptive transmission method
CN113382065B (en) * 2021-06-08 2023-04-07 京东方科技集团股份有限公司 File downloading method, device, system, equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102761492A (en) * 2012-07-25 2012-10-31 杭州华三通信技术有限公司 Routing relearning method and device based on OSPF (Open Shortest Path First) protocol
CN102932259A (en) * 2012-11-20 2013-02-13 华为技术有限公司 Neighborhood relation processing method and routing equipment
CN103744699A (en) * 2013-12-26 2014-04-23 乐视致新电子科技(天津)有限公司 Method and device for software upgrading of intelligent electric equipment
CN105406981A (en) * 2015-10-20 2016-03-16 上海斐讯数据通信技术有限公司 System and method used for upgrading router

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2012103731A1 (en) * 2011-06-30 2012-08-09 华为技术有限公司 Method and device for establishing router neighbor
CN105337904B (en) * 2014-08-05 2018-11-27 新华三技术有限公司 The upgrade method and device of controller cluster
CN105743948A (en) * 2014-12-11 2016-07-06 中兴通讯股份有限公司 Network version upgrading method and apparatus
CN104486223B (en) * 2014-12-17 2018-04-06 上海斐讯数据通信技术有限公司 A kind of G/R method and system based on ospf protocol

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102761492A (en) * 2012-07-25 2012-10-31 杭州华三通信技术有限公司 Routing relearning method and device based on OSPF (Open Shortest Path First) protocol
CN102932259A (en) * 2012-11-20 2013-02-13 华为技术有限公司 Neighborhood relation processing method and routing equipment
CN103744699A (en) * 2013-12-26 2014-04-23 乐视致新电子科技(天津)有限公司 Method and device for software upgrading of intelligent electric equipment
CN105406981A (en) * 2015-10-20 2016-03-16 上海斐讯数据通信技术有限公司 System and method used for upgrading router

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
"OSPF路由协议算法的研究与仿真";关翔宇;《中国优秀硕士学位论文全文数据库信息科技辑》;20130715;I138-295 *
"基于OSPFv3协议的不间断路由的分析与设计";李彦林;《中国优秀硕士学位论文全文数据库信息科技辑》;20130315;I139-17 *
"软件定义网络的研究及应用";张成;《中国优秀硕士学位论文全文数据库信息科技辑》;20150115;I139-146 *

Also Published As

Publication number Publication date
CN107483224A (en) 2017-12-15

Similar Documents

Publication Publication Date Title
US20220224646A1 (en) Method for implementing service continuity and related device
CN109074251B (en) Local over-the-air update for embedded systems
CN102118263B (en) Method and system for distribution of configuration information
AU2008319124B2 (en) Method and apparatus for peer to peer link establishment over a network
US8509754B2 (en) Distributing mobile-device applications
CN102291320B (en) MAC (media access control) address learning method and edge device
RU2520385C2 (en) Method and system for updating network device
US7978630B2 (en) Method and system of maintaining a connection in a network communication system
EP2975807A1 (en) Method and apparatus for discovering openflow protocol-based control plane device
CN104679528B (en) The newer method and apparatus of application program remote
JP2009500759A (en) Method and system for data management based on simple network management protocol
CN111598564B (en) Block chain node connection establishment method, device and equipment
US20150304201A1 (en) Delivery device, communication system, load balancing method, and load balancing program
CN103209108A (en) Dynamic virtual private network (DVPN)-based route generation method and equipment
CN107483224B (en) Wireless routing version upgrading method based on DR election
WO2010148946A1 (en) Method and system for ipv4/ipv6 dual stack terminals to connect to networks
CN107645394B (en) Switch configuration method in SDN network
WO2009120345A4 (en) Updating routing and outage information in a communications network
WO2017124741A1 (en) Method and device for synchronizing apparatus version
CN102118422B (en) The peer node of RELOAD peer-to-peer network and the update method of configuration thereof and system
CN116489068A (en) Automatic discovery of route reflection peer endpoints
CN108512679B (en) Gateway equipment management method and device
EP3111594B1 (en) System, device, and method for communicating data over a mesh network
JP2014146876A (en) Message distribution system and message distribution method
CN113824785A (en) Resource downloading method, system and storage medium based on point-to-point network

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant