CN113747533B - Automatic switching method of router link and dual-frequency router - Google Patents

Automatic switching method of router link and dual-frequency router Download PDF

Info

Publication number
CN113747533B
CN113747533B CN202110938784.2A CN202110938784A CN113747533B CN 113747533 B CN113747533 B CN 113747533B CN 202110938784 A CN202110938784 A CN 202110938784A CN 113747533 B CN113747533 B CN 113747533B
Authority
CN
China
Prior art keywords
router
mode
wan
wired
network
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
CN202110938784.2A
Other languages
Chinese (zh)
Other versions
CN113747533A (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.)
Hunan Fullriver High Technology Co ltd
Original Assignee
Hunan Fullriver High Technology 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 Hunan Fullriver High Technology Co ltd filed Critical Hunan Fullriver High Technology Co ltd
Priority to CN202110938784.2A priority Critical patent/CN113747533B/en
Publication of CN113747533A publication Critical patent/CN113747533A/en
Application granted granted Critical
Publication of CN113747533B publication Critical patent/CN113747533B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/24Reselection being triggered by specific parameters
    • H04W36/30Reselection being triggered by specific parameters by measured or perceived connection quality data
    • H04W36/305Handover due to radio link failure
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/22Alternate routing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/28Routing or path finding of packets in data switching networks using route fault recovery

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses a router link automatic switching method and a dual-frequency router, wherein the method comprises the following steps: setting the router into a bridging mode and configuring corresponding bridging parameters according to bridging equipment; configuring a wired wan module of the router as a priority link; the router firstly detects whether the communication state of the wired network is normal or not through a bridge mode wan state detection method, if so, the router performs data transmission through a wired wan mode, and if so, the router switches to a 5G mode; and in the 5G mode, whether the communication state of the wired wan module is normal or not is detected regularly, and if so, the mode is immediately switched to the wired wan mode. The invention does not need to change the network architecture when accessing the bridging device. The switching of the network access mode can be automatically completed, manual operation is not needed, the network can be quickly recovered, the efficiency of using the network by a user is improved, and the communication cost is saved to the greatest extent.

Description

Automatic switching method of router link and dual-frequency router
Technical Field
The invention relates to the field of routers, in particular to an automatic switching method of a router link and a dual-frequency router.
Background
With the development of network communication, the 5G technology has the advantages of high speed, low delay, energy conservation, cost reduction, higher system capacity, connection for a large number of devices and the like after the update of 2G, 3G, 4G and the like, and provides high-quality experience for users. The router is used as network access bearing equipment necessary in network communication, provides network access for various users, and as the requirements of the users on network experience are higher and higher, the update from the existing 4G router to the 5G router becomes a trend.
When in use, because the 5G charge is relatively high at present and the operator charges according to the flow, the user hopes that all communication data are forwarded through the wire wan under the condition that the wire is normal, but the user can not normally surf the internet when the wire network fails, so the 5G router can take the 5G as a backup link, and the 5G router is switched to the 5G communication network after the wire is interrupted due to the fault, but the existing 5G router has the following defects:
1. the 5G router is in a routing mode when working, so that bridging equipment cannot be directly added, if the network architecture is changed by adding the bridging equipment, a gateway of a lower-level access needs to be redefined, and the labor cost is increased by manually resetting lower-level configuration parameters.
2. wan mode and 5G mode can only be through manual switching, and manual switching needs to get into the router and set up, and complex operation, ordinary user's study cost is higher. And if the user does not manually switch after the wired network is recovered, the router still works in the 5G mode, which is equivalent to consuming unnecessary 5G traffic and increasing the communication cost.
Disclosure of Invention
The present invention aims to solve at least one of the technical problems existing in the prior art. Therefore, the invention provides an automatic router link switching method and a dual-frequency router, which can access bridging equipment under the condition of keeping the original network architecture unchanged, can realize automatic switching between wan mode and 5G mode and ensure wan mode priority, do not need manual operation and reduce communication cost as much as possible.
According to the router link automatic switching method of the embodiment of the first aspect of the invention, the method comprises the following steps:
setting the router into a bridging mode and configuring corresponding bridging parameters according to the accessed bridging equipment;
the wired wan module of the router is configured as a priority link, and the 5G module is configured as a standby link;
after power-on, the router firstly detects whether the communication state of the wired network is normal or not through a bridge mode wan state detection method, if the communication state of the wired network is normal, the router performs data transmission through a wired wan mode, and if the communication state of the wired network is abnormal, the router switches to a 5G mode for data transmission;
the router detects whether the communication state of the wired wan module is normal or not through a bridge mode wan state detection method at regular time in the 5G mode, if so, the router immediately switches to a wired wan mode, and if not, the router continues to operate in the 5G mode.
The router link automatic switching method according to the embodiment of the first aspect of the invention has at least the following technical effects: the router is operated in the bridging mode, so that data transmission can be realized, the network architecture is not required to be changed when the router is accessed to bridging equipment, no change is required to be made to original equipment on the network, and labor is saved. After the wired network fails, the router can be automatically switched to a 5G mode to ensure the normal data communication, and in the 5G mode, the router detects the state of the wired network in real time through a bridge mode wan state detection method, and after the wired network is recovered, the router is automatically switched back to a wan mode, so that the switching of a network access mode can be automatically completed, the network can be quickly recovered without manual operation, the network utilization efficiency of a user is improved, and the communication cost is maximally saved.
According to some embodiments of the invention, the bridging parameters include IP and MAC addresses of the upper bridging device, IP and MAC addresses of the lower bridging device.
According to some embodiments of the invention, the bridge mode wan status detection method comprises the steps of:
selecting a group of public network IP, camouflaging the ICMP packet through the bridging parameter and initiating a ping message request to the selected public network IP through a wan interface;
the packet grabbing module grabs the response packet of the wan interface, and if the response packet is grabbed within the appointed time after the ping message request is initiated, the wired network communication state is considered to be normal; otherwise, the test is considered abnormal.
According to some embodiments of the invention, the specified time is 2s.
According to some embodiments of the invention, the number of the set of public network IPs is 3.
According to some embodiments of the invention, the packet grabbing module is a PCAP module or an NDPI module.
According to some embodiments of the invention, the step router detects whether the communication state of the wired wan module is normal or not by the bridge mode wan state detecting method in the 5G mode at regular time, and the timing time is 2S.
According to the second aspect of the invention, the dual-frequency router comprises a router body, wherein the router body performs switching between a 5G mode and a wired wan mode through the router link automatic switching method.
The dual-frequency router according to the embodiment of the second aspect of the present invention has at least the following technical effects: the router is operated in the bridging mode, so that data transmission can be realized, the network architecture is not required to be changed when the router is accessed to bridging equipment, no change is required to be made to original equipment on the network, and labor is saved. After the wired network fails, the router can be automatically switched to a 5G mode to ensure the normal data communication, and in the 5G mode, the router detects the state of the wired network in real time through a bridge mode wan state detection method, and after the wired network is recovered, the router is automatically switched back to a wan mode, so that the switching of a network access mode can be automatically completed, the network can be quickly recovered without manual operation, the network utilization efficiency of a user is improved, and the communication cost is maximally saved.
Additional aspects and advantages of the invention will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention.
Drawings
The foregoing and/or additional aspects and advantages of the invention will become apparent and may be better understood from the following description of embodiments taken in conjunction with the accompanying drawings in which:
fig. 1 is a flow chart of a router link automatic switching method in an embodiment of the invention.
Detailed Description
Embodiments of the present invention are described in detail below, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to like or similar elements or elements having like or similar functions throughout. The embodiments described below by referring to the drawings are illustrative only and are not to be construed as limiting the invention.
In the description of the present invention, unless explicitly defined otherwise, terms such as arrangement, installation, connection, etc. should be construed broadly and the specific meaning of the terms in the present invention can be reasonably determined by a person skilled in the art in combination with the specific contents of the technical scheme.
Referring to fig. 1, a router link automatic switching method includes the steps of:
s100, setting the router into a bridging mode and configuring corresponding bridging parameters according to the upper and lower bridging devices, wherein the bridging parameters comprise IP and MAC addresses of the upper bridging devices and IP and MAC addresses of the lower bridging devices.
S200, configuring a wired wan module of the router as a priority link and configuring a 5G module as a standby link;
s300, initializing a 5G module and a wired wan module after power-on, acquiring user configuration wan parameters, reading a priority working mode of a router by a process, modifying if the router is not wired in a wired bridge mode, and setting the router to be in a wired wan priority mode for saving communication cost, wherein the cost of a wired network is usually fixed, and the 5G communication cost is charged according to flow, so that the wired network is used for data transmission as much as possible. Then the router detects whether the communication state of the wired network is normal or not through a bridge mode wan state detection method, and the specific steps are as follows:
s301, a group of public network IPs are selected, the number of the public network IPs in the embodiment is 3, public network IPs which are not missed by a wired line and are less time-consuming are required to be selected, because the wan port of the router in the bridge mode cannot be configured with the IPs, the router needs to be configured with the IP and the MAC address of the lower bridge equipment in the step S100, and therefore the router can disguise the ICMP packet by taking the IP and the MAC address of the lower bridge equipment as the source IP address and the MAC address and initiate a ping message request to the external network IP through a wan interface.
S302, capturing a response packet of the wan interface through a packet capturing module, wherein the packet capturing module can adopt a PCAP module or an NDPI module, in the embodiment, the PCAP module is adopted, and if the response packet is captured in 2S after a ping message request is initiated, the wired network communication state is considered to be normal; if no response is obtained by all the external network IPs within 2S, it is considered abnormal.
If the communication state of the wired network is normal, the router continues to transmit data through a wired wan mode and continuously transmits ping message requests at intervals, and if the communication state is abnormal, the router switches to a 5G mode to transmit data, so that the smoothness of data transmission is maintained.
And S400, the router detects whether the communication state of the wired wan module is normal or not in a timing mode through the bridge mode wan state detection method which is the same as that of the steps S301-302, the timing time is 2S, if the communication state is normal, the router is immediately switched to the wired wan mode, and if the communication state is abnormal, the router continues to operate in the 5G mode, so that the generation of 5G communication cost can be reduced as much as possible, and the communication cost is saved.
The invention also relates to a dual-frequency router, which comprises a router body, wherein the router body performs switching between a 5G mode and a wired wan mode through the router link automatic switching method.
In summary, the embodiment of the invention can insert the 5G gateway equipment node under the condition of keeping the original network architecture unchanged, thereby realizing the wired transparent transmission of the data; when in use, because the 5G charge is relatively high at present and operators charge according to the flow, users hope that all the flow is forwarded through the wire wan under the condition that the wire is normal, but the wire can sometimes fail, so that the users cannot normally access the network, therefore, a 5G mode is used as a backup link, the 5G communication network is switched to after the wire is interrupted due to failure, but the manual switching can be insufficiently timely processed and the maintenance cost is improved if the manual switching is performed manually, and the like, therefore, the routing gateway sends a network detection packet through a bridge mode wan state detection method, automatically detects the network communication state of the wire wan in real time, automatically switches to the 5G network when the wire wan is abnormal, and automatically returns to the network state of the wire wan after the wire wan is out of failure, the network access mode is automatically completed without manual operation in the communication process, thereby achieving the effect of quickly enabling the network to recover to be normal, and improving the efficiency of the user to use the network.
The embodiment of the invention enables the router to work in the bridging mode, can realize data transparent transmission, does not need to change the network architecture when the router is accessed to bridging equipment, does not need to change the original equipment on the network, and saves manpower. After the wired network fails, the router can be automatically switched to a 5G mode to ensure the normal data communication, and in the 5G mode, the router detects the state of the wired network in real time through a bridge mode wan state detection method, and after the wired network is recovered, the router is automatically switched back to a wan mode, so that the switching of a network access mode can be automatically completed, the network can be quickly recovered without manual operation, the network utilization efficiency of a user is improved, and the communication cost is maximally saved.
The embodiments of the present invention have been described in detail with reference to the accompanying drawings, but the present invention is not limited to the above embodiments, and various changes can be made within the knowledge of one of ordinary skill in the art without departing from the spirit of the present invention.

Claims (7)

1. The automatic switching method of the router link is characterized by comprising the following steps:
setting the router into a bridging mode and configuring corresponding bridging parameters according to the accessed bridging equipment;
the wired wan module of the router is configured as a priority link, and the 5G module is configured as a standby link;
after power-on, the router firstly detects whether the communication state of the wired network is normal or not through a bridge mode wan state detection method, if the communication state of the wired network is normal, the router performs data transmission through a wired wan mode, and if the communication state of the wired network is abnormal, the router switches to a 5G mode for data transmission;
the router detects whether the communication state of the wired wan module is normal or not through a bridge mode wan state detection method at regular time in the 5G mode, if so, the router immediately switches to a wired wan mode, and if not, the router continues to operate in the 5G mode;
the bridge mode wan state detection method comprises the following steps:
selecting a group of public network IP, camouflaging the ICMP packet through the bridging parameter and initiating a ping message request to the selected public network IP through a wan interface;
the packet grabbing module grabs the response packet of the wan interface, and if the response packet is grabbed within the appointed time after the ping message request is initiated, the wired network communication state is considered to be normal; otherwise, the test is considered abnormal.
2. The method for automatically switching a router link according to claim 1, wherein the bridging parameters include IP and MAC addresses of upper bridging devices and IP and MAC addresses of lower bridging devices.
3. The method for automatically switching a router link according to claim 1, wherein the specified time is 2s.
4. The method for automatically switching router links according to claim 1, wherein the number of the set of public network IPs is 3.
5. The method for automatically switching a router link according to claim 1, wherein the packet grabbing module is a PCAP module or an NDPI module.
6. The method of claim 1, wherein the step of the router detects whether the communication state of the wired wan module is normal by the bridge mode wan state detecting method at regular time in the 5G mode for a regular time of 2S.
7. A dual-frequency router, comprising a router body that performs switching between a 5G mode and a wired wan mode by the router link automatic switching method according to any one of claims 1 to 6.
CN202110938784.2A 2021-08-16 2021-08-16 Automatic switching method of router link and dual-frequency router Active CN113747533B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110938784.2A CN113747533B (en) 2021-08-16 2021-08-16 Automatic switching method of router link and dual-frequency router

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110938784.2A CN113747533B (en) 2021-08-16 2021-08-16 Automatic switching method of router link and dual-frequency router

Publications (2)

Publication Number Publication Date
CN113747533A CN113747533A (en) 2021-12-03
CN113747533B true CN113747533B (en) 2024-04-16

Family

ID=78731319

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110938784.2A Active CN113747533B (en) 2021-08-16 2021-08-16 Automatic switching method of router link and dual-frequency router

Country Status (1)

Country Link
CN (1) CN113747533B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1901469A (en) * 2006-07-21 2007-01-24 华为技术有限公司 Remote managing method and system of briding device
CN101321049A (en) * 2008-07-14 2008-12-10 广州华唐信息技术有限公司 Method and system for implementing double-machine hot backup of bridge network accelerating device
CN106375224A (en) * 2015-07-22 2017-02-01 国基电子(上海)有限公司 Router and method for performing network connection by use of the router
CN107948028A (en) * 2017-12-14 2018-04-20 成都网丁科技有限公司 The system for accessing internet without source IP based on the gateway of bridge mode
CN110572817A (en) * 2019-07-30 2019-12-13 华为技术有限公司 Communication method and electronic equipment
CN112087375A (en) * 2020-08-28 2020-12-15 上海中觅通信技术有限公司 WAN port switching method of WAN port standby router, storage medium and router
CN112804721A (en) * 2021-01-05 2021-05-14 湖南恒茂高科股份有限公司 Automatic link switching method for dual-frequency router and dual-frequency router

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1901469A (en) * 2006-07-21 2007-01-24 华为技术有限公司 Remote managing method and system of briding device
CN101321049A (en) * 2008-07-14 2008-12-10 广州华唐信息技术有限公司 Method and system for implementing double-machine hot backup of bridge network accelerating device
CN106375224A (en) * 2015-07-22 2017-02-01 国基电子(上海)有限公司 Router and method for performing network connection by use of the router
CN107948028A (en) * 2017-12-14 2018-04-20 成都网丁科技有限公司 The system for accessing internet without source IP based on the gateway of bridge mode
CN110572817A (en) * 2019-07-30 2019-12-13 华为技术有限公司 Communication method and electronic equipment
CN112087375A (en) * 2020-08-28 2020-12-15 上海中觅通信技术有限公司 WAN port switching method of WAN port standby router, storage medium and router
CN112804721A (en) * 2021-01-05 2021-05-14 湖南恒茂高科股份有限公司 Automatic link switching method for dual-frequency router and dual-frequency router

Also Published As

Publication number Publication date
CN113747533A (en) 2021-12-03

Similar Documents

Publication Publication Date Title
CN100558050C (en) The method of a kind of remote monitoring or maintenance and device
CN102148677B (en) Method for updating address resolution protocol table entries and core switch
CN108092889B (en) End-to-end multi-link multi-node full-automatic redundancy backup routing system
CN103686854A (en) Method and device for controlling AP
CN101317379A (en) Service take-over method based on equipment disaster tolerance, service switching equipment and backup machine
CN103957138B (en) A kind of method for monitoring network, device and its system
EP3576347A1 (en) Network device snapshots
CN108833149A (en) Method and system for monitoring network availability and self-healing of express delivery cabinet
US20230132861A1 (en) Switching method and apparatus, device, and storage medium
CN106209619A (en) A kind of real-time automatic switching control equipment being applied to route interruption and method
CN109586986B (en) Method, device, equipment and storage medium for switching network equipment
CN106411574B (en) Management control method and device
CN104579729B (en) The notification method and device of CGN single board default
CN102571383B (en) Access control method and system
CN113747533B (en) Automatic switching method of router link and dual-frequency router
CN107070739A (en) A kind of router operation troubles intelligent detecting method and system
CN112804721A (en) Automatic link switching method for dual-frequency router and dual-frequency router
CN114070715A (en) Method and device for building standby communication channel of communication system and electronic equipment
CN103138957A (en) Method, device and system for business path failback
CN1235346C (en) Method for improving route repeat liability of access server
CN108174398B (en) Data processing method, system and equipment of terminal equipment
CN102594735B (en) A kind of home gateway and realize the method that many uplink modes link detects automatically
CN105577811B (en) A kind of method and apparatus of ppp state monitoring and Auto-reconnect based on communication module
JP4466245B2 (en) Redundant packet network standby system switching system and method
WO2012097604A1 (en) Method, system and gateway for processing messages when gateway has failed

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