CN107612718A - Forwarding unit switching method and device - Google Patents
Forwarding unit switching method and device Download PDFInfo
- Publication number
- CN107612718A CN107612718A CN201710753814.6A CN201710753814A CN107612718A CN 107612718 A CN107612718 A CN 107612718A CN 201710753814 A CN201710753814 A CN 201710753814A CN 107612718 A CN107612718 A CN 107612718A
- Authority
- CN
- China
- Prior art keywords
- forwarding device
- terminal
- forwarding
- transmission rate
- equipment
- 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.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 43
- 230000005540 biological transmission Effects 0.000 claims abstract description 84
- 238000001514 detection method Methods 0.000 claims description 14
- 238000011084 recovery Methods 0.000 claims description 9
- 238000004891 communication Methods 0.000 description 18
- 238000010586 diagram Methods 0.000 description 8
- 230000008569 process Effects 0.000 description 7
- 230000006870 function Effects 0.000 description 5
- 238000005516 engineering process Methods 0.000 description 4
- 230000001413 cellular effect Effects 0.000 description 3
- 238000005259 measurement Methods 0.000 description 3
- 230000011664 signaling Effects 0.000 description 3
- 239000000969 carrier Substances 0.000 description 2
- 230000003993 interaction Effects 0.000 description 2
- 238000012545 processing Methods 0.000 description 2
- 238000010408 sweeping Methods 0.000 description 2
- 206010063385 Intellectualisation Diseases 0.000 description 1
- 230000003139 buffering effect Effects 0.000 description 1
- 238000004140 cleaning Methods 0.000 description 1
- 238000004590 computer program Methods 0.000 description 1
- 125000004122 cyclic group Chemical group 0.000 description 1
- 239000000428 dust Substances 0.000 description 1
- 230000014509 gene expression Effects 0.000 description 1
- 230000002452 interceptive effect Effects 0.000 description 1
- 238000012806 monitoring device Methods 0.000 description 1
- 230000006855 networking Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000008439 repair process Effects 0.000 description 1
- 210000003462 vein Anatomy 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L49/00—Packet switching elements
- H04L49/55—Prevention, detection or correction of errors
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L49/00—Packet switching elements
- H04L49/50—Overload detection or protection within a single switching element
- H04L49/505—Corrective measures
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L49/00—Packet switching elements
- H04L49/55—Prevention, detection or correction of errors
- H04L49/557—Error correction, e.g. fault recovery or fault tolerance
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L5/00—Arrangements affording multiple use of the transmission path
- H04L5/003—Arrangements for allocating sub-channels of the transmission path
- H04L5/0053—Allocation of signalling, i.e. of overhead other than pilot signals
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The invention discloses a kind of forwarding unit switching method and device.Methods described includes:Network transmission speed of the data in Internet of Things described in first forwarding device detecting between the first forwarding unit and terminal, wherein, the terminal is connected to first forwarding unit;If network transmission speed of the data between first forwarding unit and the terminal in Internet of Things is less than pre-set velocity, the automatic factory reset of the first forwarding unit;First forwarding unit judges whether automatic factory reset fails;If the terminal is switched to the second forwarding unit by the automatic factory reset failure of the first forwarding unit, first forwarding unit.By implementing the present invention, it is possible to increase the reliability and stability of the network interconnection.
Description
Technical Field
The present invention relates to the field of communications, and in particular, to a method and an apparatus for switching forwarding devices.
Background
The forwarding device is a main node device of the internet, and the forwarding device can determine the forwarding of data according to a forwarding strategy. As a hub for interconnection among different networks, forwarding devices are interconnected to form a main body vein of the Internet based on TCP/IP, and the reliability and stability of the forwarding devices directly influence the quality of network interconnection. If the forwarding device directly connected with the terminal has an error, the whole terminal cannot normally transmit data.
Disclosure of Invention
The technical problem to be solved by the embodiments of the present invention is to provide a method and an apparatus for switching a forwarding device, which can improve reliability and stability of network interconnection.
In a first aspect, a forwarding device switching method is provided, including:
the method comprises the steps that a first forwarding device detects the network transmission rate of data between the first forwarding device and a terminal in the Internet of things, wherein the terminal is connected to the first forwarding device;
if the network transmission rate of the data between the first forwarding equipment and the terminal in the Internet of things is less than a preset speed, the first forwarding equipment automatically restores the factory settings;
the first forwarding equipment judges whether the automatic factory restoration setting fails or not;
and if the automatic factory setting restoration of the first forwarding equipment fails, the first forwarding equipment switches the terminal to second forwarding equipment.
Optionally, the terminal is connected to the first forwarding device through the first port, and the terminal is connected to the second forwarding device through a second port;
the switching the terminal to the second forwarding device by the first forwarding device specifically includes:
and the first forwarding equipment sends a switching command to the terminal so that the terminal switches the data transmission between the first port and the first forwarding equipment into the data transmission between the second port and the second forwarding equipment based on the switching command.
Optionally, the switching, by the first forwarding device, the terminal to the second forwarding device specifically includes:
and the first forwarding equipment sends a switching command to the terminal, wherein the switching command comprises the identifier of the second forwarding equipment, so that the terminal can be switched to the second forwarding equipment based on the identifier of the second forwarding equipment.
Optionally, the detecting, by the first forwarding device, a network transmission rate of data between the first forwarding device and the terminal includes:
the first forwarding equipment respectively detects the uplink network transmission rate and the downlink network transmission rate;
and the first forwarding equipment determines the network transmission rate of the data between the first forwarding equipment and the terminal according to the uplink network transmission rate and the downlink network transmission rate.
Optionally, the second forwarding device is a standby forwarding device of the first forwarding device.
Optionally, the first forwarding device is a relay or a router.
Optionally, the terminal is any one or a combination of multiple kinds of a mobile phone, a tablet computer and a computer.
Optionally, the first forwarding device and the second forwarding device are different types of devices.
Optionally, the second forwarding device is only configured to undertake the forwarding service transferred by the first forwarding device, or the second forwarding device undertakes the forwarding service transferred by the first forwarding device and other forwarding services at the same time.
In a second aspect, a forwarding device switching apparatus is provided, including: a detection module, a recovery module, a judgment module and a switching module,
the detection module is used for detecting the network transmission rate of data between the first forwarding device and a terminal in the internet of things, wherein the terminal is connected to the first forwarding device;
the recovery module is used for automatically recovering factory settings of the first forwarding equipment when the network transmission rate of data between the first forwarding equipment and the terminal in the Internet of things is smaller than a preset speed;
the judging module is used for judging whether the automatic factory restoration setting fails;
the switching module is used for switching the terminal to a second forwarding device when the first forwarding device fails to automatically restore factory settings.
Optionally, the terminal is connected to the first forwarding device through the first port, and the terminal is connected to the second forwarding device through a second port;
the switching module is specifically configured to send a switching command to the terminal, so that the terminal switches data transmission between the first port and the first forwarding device to data transmission between the second port and the second forwarding device based on the switching command.
Optionally, the switching module is configured to send a switching command to the terminal, where the switching command includes an identifier of the second forwarding device, so that the terminal switches to the second forwarding device based on the identifier of the second forwarding device.
Optionally, the detection module comprises a detection unit and a determination unit,
the detection unit is used for respectively detecting the transmission rate of the uplink network and the transmission rate of the downlink network;
the determining unit is configured to determine a network transmission rate of data between the first forwarding device and the terminal according to the uplink network transmission rate and the downlink network transmission rate.
Optionally, the second forwarding device is a standby forwarding device of the first forwarding device.
Optionally, the first forwarding device is a relay or a router.
Optionally, the terminal is any one or a combination of multiple of a mobile phone, a tablet computer and a computer.
Optionally, the first forwarding device and the second forwarding device are different types of devices.
Optionally, the second forwarding device is only configured to undertake the forwarding service transferred by the first forwarding device, or the second forwarding device undertakes the forwarding service transferred by the first forwarding device and other forwarding services at the same time.
In a third aspect, a communication system is provided, which includes a terminal, a first forwarding device, and a second forwarding device, where the terminal communicates with the first forwarding device and the second forwarding device, respectively, and the first forwarding device is configured to perform the method according to any one of the first aspect.
In a fourth aspect, a computer-readable storage medium is provided that stores program code for topic recommendation executed by a computing device. The program code comprises instructions for performing the method of any of the first aspects.
In a fifth aspect, a forwarding device is provided, which includes: a processor, a memory, a communication interface, and a bus; the processor, the memory and the communication interface are connected through the bus and complete mutual communication; the memory stores executable program code; the processor executes a program corresponding to the executable program code by reading the executable program code stored in the memory for executing a forwarding device switching method; wherein the method is the method of any one of the first aspect.
By implementing the method and the device, the network transmission rate of the data between the first forwarding equipment and the terminal can be detected, when the network transmission rate of the data between the first forwarding equipment and the terminal is smaller than the preset speed, the factory setting is automatically restored, and when the automatic factory setting restoration of the first forwarding equipment fails, the terminal is switched to the second forwarding equipment. According to the method, when the load of the first forwarding equipment is particularly heavy or the first forwarding equipment fails, the second forwarding equipment which can normally work can be switched to, so that the reliability and the stability of network interconnection are improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic structural diagram of an internet architecture provided by the prior art;
fig. 2 is a schematic structural diagram of an internet architecture according to an embodiment of the present invention;
fig. 3 is an interaction diagram of a forwarding device switching method according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a switching apparatus of forwarding equipment according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a forwarding device according to an embodiment of the present invention.
Detailed Description
Before discussing exemplary embodiments in more detail, it should be noted that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although a flowchart may describe the operations as a sequential process, many of the operations can be performed in parallel, concurrently, or simultaneously. In addition, the order of the operations may be re-arranged. The process may be terminated when its operations are completed, but may have additional steps not included in the figure. The processes may correspond to methods, functions, procedures, subroutines, and the like.
The methods discussed below, some of which are illustrated by flow diagrams, may be implemented by hardware, software, firmware, middleware, microcode, hardware description languages, or any combination thereof. When implemented in software, firmware, middleware or microcode, the program code or code segments to perform the necessary tasks may be stored in a machine or computer readable medium such as a storage medium. The processor(s) may perform the necessary tasks.
Specific structural and functional details disclosed herein are merely representative and are provided for purposes of describing example embodiments of the present invention. The present invention may, however, be embodied in many alternate forms and should not be construed as limited to only the embodiments set forth herein.
It will be understood that, although the terms first, second, etc. may be used herein to describe various elements, these elements should not be limited by these terms. These terms are only used to distinguish one element from another. For example, a first element may be termed a second element, and, similarly, a second element may be termed a first element, without departing from the scope of example embodiments. As used herein, the term "and/or" includes any and all combinations of one or more of the associated listed items.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of example embodiments. As used herein, the singular forms "a", "an" and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It will be further understood that the terms "comprises" and/or "comprising," when used herein, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It should also be noted that, in some alternative implementations, the functions/acts noted may occur out of the order noted in the figures. For example, two figures shown in succession may, in fact, be executed substantially concurrently, or the figures may sometimes be executed in the reverse order, depending upon the functionality/acts involved.
The present invention is described in further detail below with reference to the attached drawing figures.
For ease of understanding, prior to describing the present invention, a prior art internet architecture is first described. The prior art internetwork includes: a terminal 11 and a plurality of forwarding devices 12.
The terminal 11 is connected to one of the forwarding devices 12 in the internet, and the forwarding device 12 accesses the internet through another mode (i.e. a connection mode different from a wireless mode), where the wireless mode includes but is not limited to: the other mode can be an LTE/LTE-A or wired mode. The wireless LTE is exemplified in fig. 1.
Since the terminal 11 is connected to the internet only through one forwarding device 12, if a problem occurs in the forwarding device 12, the terminal 11 cannot communicate with the internet by transmitting through the forwarding device 12.
In order to solve the above problems, the present invention improves the internet architecture of the prior art. As shown in fig. 2, the internet includes: a terminal 10, a first forwarding device 20 and a second forwarding device 30. The terminal 10 is connected to the first forwarding device 20 and the second forwarding device 30 in a wireless manner, and the first forwarding device 20 and the second forwarding device 30 access the internet of things in another manner (i.e. a connection manner different from the wireless manner), where the wireless manner includes but is not limited to: bluetooth, WIFI, etc., and the other mode may be LTE or wired mode.
The internet of things is a network which connects sensors, controllers, machines, personnel, objects and the like together in a new mode by utilizing communication technologies such as local networks or the internet and the like to form the connection between people and objects and between objects and realize informatization, remote management control and intellectualization. The internet of things is an extension of the internet, and comprises the internet and all resources on the internet, and is compatible with all applications of the internet, but all elements (all devices, resources, communication and the like) in the internet of things are personalized and privatized.
The above-described terminal may have different expressions according to different situations, and the terminal 11 (e.g., a cellular phone or a smart phone) may transmit and receive data for two-way communication using a wireless communication system. The terminal 11 may comprise a transmitter for data transmission and a receiver for data reception. For data transmission, a transmitter may modulate a transmit Local Oscillator (LO) signal with data to obtain a modulated Radio Frequency (RF) signal, amplify the modulated RF signal to obtain an output RF signal having the proper transmit power level, and transmit the output RF signal to a base station via an antenna. For data reception, the receiver may obtain a received RF signal via an antenna, amplify and downconvert the received RF signal with a receive LO signal, and process the downconverted signal to recover data transmitted by the base station. The terminal 11 may support communication with multiple wireless systems of different Radio Access Technologies (RATs) (e.g., LTE/TE-a and NR). Each wireless system may have certain characteristics and requirements to efficiently support simultaneous communication for wireless systems utilizing different RATs. A wireless user equipment may also be referred to as a User Equipment (UE), a mobile station, a terminal, an access terminal, a subscriber unit, a station, and so on. The wireless user device may be a cellular phone, a smart phone, a tablet computer, a wireless modem, a Personal Digital Assistant (PDA), a handheld device, a laptop computer, a smartbook, a netbook, a cordless phone, a Wireless Local Loop (WLL) site, a bluetooth device, and so forth. Today, the smart home and wearable devices are developing at a high speed, the terminal 11 may also include other devices with networking functions, such as a smart lamp, a smart television, a smart sweeping device, a smart sleeping device, a smart monitoring device, etc., which may be represented in various forms, for example, for the smart lamp, the smart lamp includes but is not limited to: intelligence desk lamp, intelligence ceiling lamp, equipment such as intelligence wall lamp, for example to intelligent television, it can be three stars brand intelligent television, of course it also can be sharp brand intelligent television, for example to intelligent cleaning equipment, it can be, intelligence robot of sweeping the floor, of course it can also include equipment such as intelligent dust catcher, intelligent garbage disposer, for example to intelligent sleep equipment, it can be: the present invention is not limited to the specific form, number or kind of the above-mentioned terminals. The terminal 11 may be capable of communicating with a wireless system and may also be capable of receiving signals from a broadcast station, one or more satellites in a Global Navigation Satellite System (GNSS), or the like. The terminal 11 may support one or more RATs for wireless communication, such as GSM, WCDMA, cdma2000, LTE/LTE-a, 802.11, and so on. The terms "radio access technology", "RAT", "radio technology", "air interface" and "standard" are often used interchangeably.
The first forwarding device and the second forwarding device may be routers, interaction machines, relay stations, or other network devices with wireless connection and data forwarding functions, and the embodiments of the present invention are not limited to the specific representation forms of the forwarding devices. The interactive machine can be a two-layer switch or a three-layer switch. It will be appreciated that the first forwarding device and the second forwarding device may be the same type of device or may be different types of devices. For example, the first forwarding device and the second forwarding device may both be routers, or the first forwarding device is a router, the second forwarding device is a relay, and so on.
It should be noted that the terminal 11 can communicate with the forwarding device 12 through a downlink and an uplink. The downlink (or forward link) refers to the communication link from the forwarding device 12 to the terminal 11, and the uplink (or reverse link) refers to the communication link from the terminal 11 to the forwarding device. In the LTE/LTE-a scheme, SC-FDMA (Single-carrier Frequency-Division Multiple Access)/OFDM (Orthogonal Frequency Division Multiple Access) and CP (cyclic prefix) are respectively used for uplink and downlink carriers. In the 5G standard, for example, uplink and downlink carriers may be unified, that is, OFDM and CP are used for uplink and downlink.
In order to solve the problem that the data transmission of the whole terminal cannot be normally performed when the load of the first forwarding device is heavy or a failure occurs, the present invention provides a forwarding device switching method based on the internet structure shown in fig. 2, and as shown in fig. 3, the forwarding device switching method according to the embodiment of the present invention includes the following steps:
310: the first forwarding device detects a network transmission rate of data between the first forwarding device and a terminal in the internet of things, wherein the terminal is connected to the first forwarding device.
The network transmission rate of the data between the terminal and the first forwarding device depends on the sum of the uplink network transmission rate and the downlink network transmission rate between the terminal and the first forwarding device. The uplink network transmission rate generally refers to a transmission rate of data sent by the terminal to the first forwarding device, and the downlink network transmission rate generally refers to a transmission rate of data sent by the first forwarding device to the terminal. Of course, in other embodiments, the uplink network transmission rate and the downlink network transmission rate may be defined in opposite directions. The first forwarding device detects an uplink network transmission rate and a downlink network transmission rate of data between the first forwarding device and the terminal, and determines the network transmission rate of the data between the first forwarding device and the terminal according to the uplink network transmission rate and the downlink network transmission rate of the data between the first forwarding device and the terminal. If the network transmission rate of the data between the first forwarding equipment and the terminal is greater than or equal to the preset speed, the first forwarding equipment is indicated to normally work, and the first forwarding equipment is kept to normally work; if the network transmission rate of the data between the first forwarding device and the terminal is less than the preset speed, it indicates that the first forwarding device may have a fault, and step 320 is entered.
It is understood that the wireless connection between the terminal and the first forwarding device includes, but is not limited to: in addition, the wireless connection mode between the terminal and the first forwarding device can be a 2G, 3G, 4G or even a future 5G mode or a wired mode.
320: and the first forwarding equipment automatically restores the factory settings.
In the embodiment of the present invention, the manner of restoring the factory settings of the first forwarding device may include hardware reset and software reset. The factory setting is a default state of the first forwarding device when the first forwarding device leaves the factory, such as a starting interface, a standby mode, an operation shortcut key, a timing reminder and other functions, but the stored data is not deleted. The hardware reset refers to restoring hardware parameters in all the first forwarding devices to initial values, and the software reset refers to pointing a software program to a first instruction of software running in the first forwarding devices. By automatically restoring the first forwarding device to factory settings, it is possible to solve some of the failure problems.
330: and the first forwarding equipment judges whether the automatic factory restoration setting fails. If the first forwarding equipment judges that the automatic factory setting recovery is successful, the fault of the first forwarding equipment can be repaired, and the terminal can continue to be accessed to the internet through the first forwarding equipment; if the first forwarding device determines that the automatic factory reset fails, the failure of the first forwarding device still exists, and the terminal cannot access the internet through the first forwarding device, and then step 340 is performed.
340: and the first forwarding equipment sends a switching command to the terminal.
In the embodiment of the present invention, the first forwarding device carries the handover command in the downlink control signaling. In a specific embodiment, the first forwarding device carries the handover command in the latest downlink control signaling. In another specific embodiment, in order to avoid that the handover command is lost and not received by the terminal, the first forwarding device may repeatedly send the handover command in a plurality of downlink control signaling to ensure that the handover command can be received by the terminal, that is, the first forwarding device may repeatedly send the handover command to ensure that the terminal can successfully receive the handover command, and finally, the handover is successfully performed.
350: and the first forwarding equipment switches the terminal to the second forwarding equipment.
In the embodiment of the present invention, if the first forwarding device fails to repair the fault by automatically restoring the factory settings, the first forwarding device may send a switching command to the terminal, so that the terminal is switched to a second forwarding device based on the switching command, where the second forwarding device is a standby forwarding device of the first forwarding device.
The second forwarding device being a standby forwarding device of the first forwarding device may be understood as: (1) the second forwarding device does not bear any forwarding service at ordinary times, the second forwarding device is only used as a backup for the first forwarding device, when the first forwarding device fails, the forwarding service borne by the first forwarding device is transferred to the second forwarding device, and the second forwarding device only bears the forwarding service transferred by the first forwarding device. (2) The second forwarding device also bears other forwarding services at ordinary times, when the first forwarding device fails, the forwarding service borne by the first forwarding device is transferred to the second forwarding device, and the second forwarding device simultaneously bears the forwarding service transferred by the first forwarding device and other forwarding services.
When the terminal is connected with the first forwarding device and the second forwarding device in a wired manner, the terminal is respectively connected with the first forwarding device and the second forwarding device through different ports. For example, the terminal is connected to the first forwarding device through a first port, and the terminal is connected to the second forwarding device through a second port. And the first forwarding equipment sends a switching instruction to the terminal, and the terminal switches the data transmission between the first forwarding equipment and the first port into the data transmission between the second forwarding equipment and the second port based on the switching instruction after receiving the switching instruction.
When the terminal is connected with the first forwarding device and the second forwarding device in a wireless mode, if the number of the standby forwarding devices of the first forwarding device is more than one, the switching command sent by the first forwarding device to the terminal includes the identifier of the second forwarding device, after the terminal receives the switching command, the identifier of the second forwarding device is obtained from the switching command, and the terminal is switched to the second forwarding device based on the identifier of the second forwarding device. In this embodiment of the present invention, the identifier of the second forwarding device may be a Radio Network Temporary Identity (RNTI) of the second forwarding device, an MAC address of the second forwarding device, or other identifier information that enables the second forwarding device to be identified, which is not limited herein.
It is understood that the number of the standby forwarding devices of the first forwarding device may be one or more. When the number of the standby forwarding devices of the first forwarding device is multiple, the terminal may arbitrarily select one standby forwarding device from the multiple forwarding devices as the second forwarding device. Of course, the terminal may also select an optimal or better standby forwarding device from the multiple standby forwarding devices as the second forwarding device according to the measurement result of the standby forwarding devices.
In some possible implementations, the measurement result of the candidate relay device may include: signal strength between the standby forwarding device and the terminal, load capacity (e.g., data buffering capacity, remaining power, etc.) of the standby forwarding device, current load capacity of the standby forwarding device, information security processing (encryption/decryption) capability, and so on. In practical application, the base station may select an optimal or better standby forwarding device for the terminal according to the measurement result, and use the selected standby forwarding device as the second forwarding device of the terminal.
Referring to fig. 4, fig. 4 is a schematic structural diagram of a forwarding device switching apparatus according to an embodiment of the present invention. The forwarding device switching apparatus of this embodiment includes: a detection module 410, a recovery module 420, a determination module 430, and a switching module 440.
The detecting module 410 is configured to detect a network transmission rate of data between the first forwarding device and a terminal in the internet of things, where the terminal is connected to the first forwarding device.
The recovery module 420 is configured to automatically recover factory settings when a network transmission rate of data between the first forwarding device and the terminal in the internet of things is less than a preset speed.
The judging module 430 is configured to judge whether automatic factory reset fails;
the switching module 440 is configured to switch the terminal to a second forwarding device when the first forwarding device fails to automatically restore the factory settings.
Optionally, the terminal is connected to the first forwarding device through the first port, and the terminal is connected to the second forwarding device through a second port;
the switching module 440 is specifically configured to send a switching command to the terminal, so that the terminal switches data transmission between the first port and the first forwarding device to data transmission between the second port and the second forwarding device based on the switching command.
Optionally, the switching module 440 is configured to send a switching command to the terminal, where the switching command includes an identifier of the second forwarding device, so that the terminal switches to the second forwarding device based on the identifier of the second forwarding device.
Optionally, the detection module 410 comprises a detection unit 411 and a determination unit 412,
the detecting unit 411 is configured to detect an uplink network transmission rate and a downlink network transmission rate, respectively;
the determining unit 412 is configured to determine a network transmission rate of data between the first forwarding device and the terminal according to the uplink network transmission rate and the downlink network transmission rate.
Optionally, the second forwarding device is a standby forwarding device of the first forwarding device.
Therein, step 310 in the method embodiment shown in fig. 3 may be performed by the detection module 410; step 320 in the method embodiment shown in FIG. 3 may be performed by recovery module 420; step 330 in the method embodiment shown in FIG. 3 may be performed by decision module 430; step 330 in the method embodiment shown in fig. 3 can be executed by the determining module 430, which please refer to fig. 2 and related embodiments for details, which are not further described herein.
Referring to fig. 5, fig. 5 is a schematic structural diagram of a forwarding device disclosed in the embodiment of the present invention. The forwarding device of this embodiment includes: at least one processor 501, a communication interface 502, a user interface 503 and a memory 504, wherein the processor 501, the communication interface 502, the user interface 503 and the memory 504 can be connected through a bus or other means, and the embodiment of the present invention is exemplified by being connected through the bus 505. Wherein,
processor 501 may be a general-purpose processor, such as a Central Processing Unit (CPU).
The communication interface 502 may be a wired interface (e.g., an ethernet interface) or a wireless interface (e.g., a cellular network interface or using a wireless local area network interface) for communicating with other electronic devices or websites. In the embodiment of the present invention, the communication interface 502 is specifically configured to recommend the target recommendation object to a user of the electronic device.
The user interface 503 may be a touch panel, including a touch screen and a touch screen, for detecting an operation instruction on the touch panel, and the user interface 503 may also be a physical button or a mouse. The user interface 603 may also be a display screen for outputting, displaying images or data.
The Memory 504 may include Volatile Memory (Volatile Memory), such as Random Access Memory (RAM); the Memory may also include a Non-volatile Memory (Non-volatile Memory), such as a Read-Only Memory (ROM), a Flash Memory (Flash Memory), a Hard Disk (Hard Disk Drive, HDD), or a Solid-State Drive (SSD); the memory 504 may also comprise a combination of the above-described types of memory. The memory 504 is used for storing a set of program codes, and the processor 501 is used for calling the program codes stored in the memory 504 and executing the following operations:
detecting a network transmission rate of data between the first forwarding device and a terminal in the internet of things, wherein the terminal is connected to the first forwarding device;
if the network transmission rate of the data between the first forwarding equipment and the terminal in the Internet of things is less than a preset speed, automatically restoring factory settings;
judging whether the automatic factory restoration setting fails or not;
and if the automatic factory setting recovery of the first forwarding equipment fails, switching the terminal to second forwarding equipment.
Optionally, the terminal is connected to the first forwarding device through the first port, and the terminal is connected to the second forwarding device through a second port;
and sending a switching command to the terminal, so that the terminal switches the data transmission between the first port and the first forwarding device into the data transmission between the second port and the second forwarding device based on the switching command.
Optionally, a handover command is sent to the terminal, where the handover command includes an identifier of the second forwarding device, so that the terminal is handed over to the second forwarding device based on the identifier of the second forwarding device.
Optionally, detecting an uplink network transmission rate and a downlink network transmission rate respectively; and determining the network transmission rate of the data between the first forwarding equipment and the terminal according to the uplink network transmission rate and the downlink network transmission rate.
Optionally, the second forwarding device is a standby forwarding device of the first forwarding device.
By implementing the method and the device, the network transmission rate of the data between the first forwarding equipment and the terminal can be detected, when the network transmission rate of the data between the first forwarding equipment and the terminal is smaller than the preset speed, the factory setting is automatically restored, and when the automatic factory setting restoration of the first forwarding equipment fails, the terminal is switched to the second forwarding equipment. According to the method, when the load of the first forwarding equipment is particularly heavy or the first forwarding equipment fails, the second forwarding equipment which can normally work can be switched to, so that the reliability and the stability of network interconnection are improved.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), or the like.
While the invention has been described with reference to a preferred embodiment, it will be understood by those skilled in the art that various changes in form and detail may be made therein without departing from the spirit and scope of the invention as defined by the appended claims.
Claims (10)
1. A forwarding device switching method is characterized by comprising the following steps:
the method comprises the steps that a first forwarding device detects the network transmission rate of data between the first forwarding device and a terminal in the Internet of things, wherein the terminal is connected to the first forwarding device;
if the network transmission rate of the data between the first forwarding equipment and the terminal in the Internet of things is less than a preset speed, the first forwarding equipment automatically restores the factory settings;
the first forwarding equipment judges whether the automatic factory restoration setting fails or not;
and if the automatic factory setting restoration of the first forwarding equipment fails, the first forwarding equipment switches the terminal to second forwarding equipment.
2. The method according to claim 1, wherein the terminal is connected to the first forwarding device through the first port, and the terminal is connected to the second forwarding device through a second port;
the switching the terminal to the second forwarding device by the first forwarding device specifically includes:
and the first forwarding equipment sends a switching command to the terminal so that the terminal switches the data transmission between the first port and the first forwarding equipment into the data transmission between the second port and the second forwarding equipment based on the switching command.
3. The method according to claim 1, wherein the switching the terminal to the second forwarding device by the first forwarding device specifically comprises:
and the first forwarding equipment sends a switching command to the terminal, wherein the switching command comprises the identifier of the second forwarding equipment, so that the terminal can be switched to the second forwarding equipment based on the identifier of the second forwarding equipment.
4. The method according to any of claims 1 to 3, wherein the first forwarding device detecting the network transmission rate of data between the first forwarding device and the terminal comprises:
the first forwarding equipment respectively detects the uplink network transmission rate and the downlink network transmission rate;
and the first forwarding equipment determines the network transmission rate of the data between the first forwarding equipment and the terminal according to the uplink network transmission rate and the downlink network transmission rate.
5. The method according to any of claims 1 to 4, wherein the second forwarding device is a backup forwarding device of the first forwarding device.
6. A forwarding device switching apparatus, comprising: a detection module, a recovery module, a judgment module and a switching module,
the detection module is used for detecting the network transmission rate of data between the first forwarding device and a terminal in the internet of things, wherein the terminal is connected to the first forwarding device;
the recovery module is used for automatically recovering factory settings of the first forwarding equipment when the network transmission rate of data between the first forwarding equipment and the terminal in the Internet of things is smaller than a preset speed;
the judging module is used for judging whether the automatic factory restoration setting fails;
the switching module is used for switching the terminal to a second forwarding device when the first forwarding device fails to automatically restore factory settings.
7. The apparatus of claim 6, wherein the terminal is connected to the first forwarding device through the first port, and wherein the terminal is connected to the second forwarding device through a second port;
the switching module is specifically configured to send a switching command to the terminal, so that the terminal switches data transmission between the first port and the first forwarding device to data transmission between the second port and the second forwarding device based on the switching command.
8. The apparatus of claim 6,
the switching module is used for sending a switching command to the terminal, wherein the switching command includes an identifier of the second forwarding device, so that the terminal can switch to the second forwarding device based on the identifier of the second forwarding device.
9. The apparatus according to any of claims 6 to 8, wherein the detection module comprises a detection unit and a determination unit,
the detection unit is used for respectively detecting the transmission rate of the uplink network and the transmission rate of the downlink network;
the determining unit is configured to determine a network transmission rate of data between the first forwarding device and the terminal according to the uplink network transmission rate and the downlink network transmission rate.
10. The apparatus according to any of claims 6 to 9, wherein the second forwarding device is a backup forwarding device of the first forwarding device.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710753814.6A CN107612718A (en) | 2017-08-29 | 2017-08-29 | Forwarding unit switching method and device |
PCT/CN2017/100743 WO2019041370A1 (en) | 2017-08-29 | 2017-09-06 | Forwarding device switching method and apparatus |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710753814.6A CN107612718A (en) | 2017-08-29 | 2017-08-29 | Forwarding unit switching method and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107612718A true CN107612718A (en) | 2018-01-19 |
Family
ID=61056054
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710753814.6A Pending CN107612718A (en) | 2017-08-29 | 2017-08-29 | Forwarding unit switching method and device |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN107612718A (en) |
WO (1) | WO2019041370A1 (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114157528A (en) * | 2021-11-28 | 2022-03-08 | 浙江中控技术股份有限公司 | Redundant communication method, system, electronic device, and storage medium |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102869047A (en) * | 2012-06-27 | 2013-01-09 | 中兴通讯股份有限公司 | Method and device for realizing load balance |
CN103888277A (en) * | 2012-12-19 | 2014-06-25 | 中国移动通信集团公司 | Gateway disaster recovery backup method, apparatus and system |
CN105491632A (en) * | 2016-01-15 | 2016-04-13 | 北京小米移动软件有限公司 | Wireless access point switching method and wireless access point switching device |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7769848B2 (en) * | 2004-09-22 | 2010-08-03 | International Business Machines Corporation | Method and systems for copying data components between nodes of a wireless sensor network |
CN101656624B (en) * | 2008-08-18 | 2011-12-07 | 中兴通讯股份有限公司 | Multi-node application-level disaster recovery system and multi-node application-level disaster recovery method |
CN105376113B (en) * | 2015-11-24 | 2018-05-29 | 广东欧珀移动通信有限公司 | Processing method, modem and the mobile terminal of network communicating function exception |
CN105933185A (en) * | 2016-06-24 | 2016-09-07 | 上海连尚网络科技有限公司 | Method and device for determining connection abnormity type of router |
-
2017
- 2017-08-29 CN CN201710753814.6A patent/CN107612718A/en active Pending
- 2017-09-06 WO PCT/CN2017/100743 patent/WO2019041370A1/en active Application Filing
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102869047A (en) * | 2012-06-27 | 2013-01-09 | 中兴通讯股份有限公司 | Method and device for realizing load balance |
CN103888277A (en) * | 2012-12-19 | 2014-06-25 | 中国移动通信集团公司 | Gateway disaster recovery backup method, apparatus and system |
CN105491632A (en) * | 2016-01-15 | 2016-04-13 | 北京小米移动软件有限公司 | Wireless access point switching method and wireless access point switching device |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114157528A (en) * | 2021-11-28 | 2022-03-08 | 浙江中控技术股份有限公司 | Redundant communication method, system, electronic device, and storage medium |
Also Published As
Publication number | Publication date |
---|---|
WO2019041370A1 (en) | 2019-03-07 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10511641B2 (en) | Method and system for providing media services in a communication system | |
US10285122B2 (en) | Method and apparatus for handling abnormality of network communication function and storage medium | |
CN112543468B (en) | Disaster recovery method for gateway equipment and communication equipment | |
US9588850B2 (en) | Network controller failover request to reduce network outages | |
US9426699B2 (en) | Apparatus and method for controlling relay mode of base station in communication system | |
WO2018107895A1 (en) | Network-communication function exception processing method and processing apparatus, terminal device, and computer storage medium | |
CN103716911A (en) | Method, device and system for configuring wireless terminal | |
CN104333890A (en) | Signal transmission control method, device and electronic equipment | |
US20230209420A1 (en) | Transmission parameter obtaining method, apparatus, and system | |
CN104066129A (en) | Network switching method and system | |
CN112738856A (en) | Cell switching method and device and user equipment | |
CN111279748B (en) | Adaptive switching method of communication link, movable platform and control device | |
KR20230138009A (en) | Communication path switching method, device, and terminal | |
WO2018053894A1 (en) | Internet-of-things access point handover method and device based on transmission rate | |
CN104254090A (en) | Method, terminal, base station and system capable of realizing automatic neighbor relation establishment | |
CN105517030B (en) | Network communicating function abnormal processing method, modem and mobile terminal | |
CN106063358A (en) | Method and device for processing circuit switched fallback terminal communication | |
CN107708085A (en) | A kind of repeater support method and access point | |
CN107612718A (en) | Forwarding unit switching method and device | |
WO2019041369A1 (en) | Relay automatic routing method and device | |
CN105722192B (en) | Network connection method, electronic equipment and system | |
CN107612719B (en) | Data backup method and device for Internet of things access point | |
CN107612720B (en) | Access point backup method and gateway | |
CN112291803A (en) | Communication method, terminal equipment and computer readable storage medium | |
WO2018121231A1 (en) | Method and apparatus for reconnecting cell |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20180119 |
|
RJ01 | Rejection of invention patent application after publication |