CN107241174B - Network switching method and network equipment - Google Patents
Network switching method and network equipment Download PDFInfo
- Publication number
- CN107241174B CN107241174B CN201710510227.4A CN201710510227A CN107241174B CN 107241174 B CN107241174 B CN 107241174B CN 201710510227 A CN201710510227 A CN 201710510227A CN 107241174 B CN107241174 B CN 107241174B
- Authority
- CN
- China
- Prior art keywords
- switching
- group
- interface
- switching group
- current
- 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
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/50—Testing arrangements
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L1/00—Arrangements for detecting or preventing errors in the information received
- H04L1/22—Arrangements for detecting or preventing errors in the information received using redundant apparatus to increase reliability
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/08—Configuration management of networks or network elements
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/08—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Environmental & Geological Engineering (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The invention provides a network switching method and network equipment. The communication state of the current switching group for network communication in the network equipment is detected, and whether the switching group switching condition is met or not is judged according to the detection result. And when the detection result meets the switching group switching condition, acquiring the monitoring information of at least one monitored switching group meeting the preset monitoring condition, and selecting a new switching group from the at least one monitored switching group to replace the current switching group so as to carry out network communication through the new switching group. Therefore, the interface can be dynamically adjusted according to the actually connected communication quality, and the optimal line can be selected for connection. The occurrence rate of communication interruption and service delay is reduced, the stable operation of communication service is ensured, and the service loss is reduced.
Description
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a network switching method and a network device.
Background
In the prior art, a router can ensure stable operation of a service line by switching between a master line and a standby line. The main-standby switching mainly comprises a main communication line and one or more backup lines.
In the existing scheme, the selection of the main line and the standby line is usually performed according to the priority, and the priority is set by a user and cannot be automatically adjusted according to the actual environment. If the main line has connection problems, the communication is carried out according to the backup line selected by the priority. Since the connection quality of the line is affected by the change of factors such as time and environment, the backup line selected in the above manner is not necessarily the line with the best quality. For example, the first-stage backup line communication is intermittent, and the second-stage backup line communication is excellent. However, since the priority of the first-stage backup line is higher, the second-stage backup line with excellent communication condition is not selected.
Therefore, by adopting the existing scheme, the interface can not be dynamically adjusted according to the actually connected communication quality so as to select the optimal line for connection. Communication quality cannot be guaranteed, communication interruption and service delay are easy to occur, and resource waste is caused.
Disclosure of Invention
In order to overcome the above-mentioned deficiencies in the prior art, the present invention provides a network switching method and a network device, which use a switching group as a determination object, can dynamically adjust an interface according to the actually connected communication quality, select an optimal line for connection, and ensure stable operation of a communication service.
A first object of the present invention is to provide a network handover method, which is applied to a network device including at least one handover group, and the method includes:
detecting whether the set number of the switching groups of the network equipment is unique;
if the current interface is unique, detecting the communication state of the current interface for network communication in the unique switching group, and switching the interfaces according to the detection result;
if not, detecting the communication state of the current switching group for network communication in the network equipment, and judging whether the switching group switching condition is met according to the detection result;
and when the detection result meets the switching group switching condition, acquiring the monitoring information of at least one monitored switching group meeting the preset monitoring condition, and selecting a new switching group from the at least one monitored switching group to replace the current switching group so as to carry out network communication through the new switching group.
A second object of the present invention is to provide a network device, including:
the judging module is used for detecting whether the set number of the switching groups of the network equipment is unique;
the detection module is used for detecting the communication state of the current interface for network communication in the unique switching group when the number of the switching groups is unique, and switching the interfaces according to the detection result;
the detection module is further configured to detect a communication state of a current handover group performing network communication in the network device when the number of the handover groups is not unique, and determine whether a handover group handover condition is satisfied according to a detection result;
and the acquisition and replacement module is used for acquiring the monitoring information of at least one monitored switching group meeting the preset monitoring condition when the detection result meets the switching group switching condition, and selecting a new switching group from the at least one monitored switching group to replace the current switching group so as to carry out network communication through the new switching group.
Compared with the prior art, the invention has the following beneficial effects:
the invention provides a network switching method and network equipment. The method is applied to a network device, the network device comprises at least one switching group, and the method comprises the following steps: and detecting whether the set number of the switching groups of the network equipment is unique. If the current interface is unique, the communication state of the current interface for network communication in the unique switching group is detected, and interface switching is carried out according to the detection result. If not, detecting the communication state of the current switching group for network communication in the network equipment, and judging whether the switching group switching condition is met according to the detection result. And when the detection result meets the switching group switching condition, acquiring the monitoring information of at least one monitored switching group meeting the preset monitoring condition, and selecting a new switching group from the at least one monitored switching group to replace the current switching group so as to carry out network communication through the new switching group. Therefore, the interface can be dynamically adjusted according to the actually connected communication quality, and the optimal line can be selected for connection. The occurrence rate of communication interruption and service delay is reduced, the stable operation of communication service is ensured, and the service loss is reduced.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present invention and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained according to the drawings without inventive efforts.
Fig. 1 is a flowchart illustrating a network handover method according to a preferred embodiment of the invention.
Fig. 2 is a second flowchart illustrating a network handover method according to a preferred embodiment of the present invention.
Fig. 3 is a flowchart illustrating sub-steps of step S110 shown in fig. 2 according to a preferred embodiment of the present invention.
FIG. 4 is a flowchart illustrating the sub-steps of step S140 shown in FIG. 1 according to a preferred embodiment of the present invention.
FIG. 5 is a flowchart illustrating the sub-steps of step S150 shown in FIG. 1 according to a preferred embodiment of the present invention.
Fig. 6 is a functional block diagram of a network device according to a preferred embodiment of the present invention.
Icon: 100-a network device; 110-configuration module; 120-a judgment module; 130-a detection module; 140-acquire and replace module.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. The components of embodiments of the present invention generally described and illustrated in the figures herein may be arranged and designed in a wide variety of different configurations. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures.
The network device 100 provided by the present invention may be, but is not limited to, a router (e.g., a 3G/4G router), a switch, a bridge, and other devices.
The invention provides a concept of switching groups, each switching group comprises at least two interfaces, the switching groups can be established according to the types of the interfaces, and each switching group corresponds to one type of the interfaces. The invention can realize the rapid switching of the communication line by taking the switching group as the judgment object of the communication line switching, select the communication line with excellent communication quality for connection, reduce the possibility of service interruption, reduce the service loss and ensure the stable operation of the communication service.
First embodiment
Referring to fig. 1, fig. 1 is a flowchart illustrating a network switching method according to a preferred embodiment of the invention. The network switching method is applied to a network device 100, and the network device 100 comprises at least one switching group. The following describes a detailed procedure of the network handover method.
Step S135, detecting whether the switching group setting number of the network device 100 is unique.
If yes, go to step S137.
And step S137, detecting the communication state of the current interface for network communication in the unique switching group, and switching the interfaces according to the detection result.
In this embodiment, the network device 100 detects a communication state of a current interface performing network communication in a unique switching group, determines whether an interface switching condition is satisfied, and selects a new interface in the unique switching group to replace the current interface performing network communication when the interface switching condition is satisfied, so as to complete interface switching operation, and perform network communication through the new interface.
In the present embodiment, the detailed description about the interface switching condition and the interface replacing operation can refer to the description of step S130 in fig. 2 below.
If not, go to step S140.
Step S140, detecting a communication state of a current handover group performing network communication in the network device 100, and determining whether a handover group handover condition is satisfied according to a detection result.
In this embodiment, it should be noted that: the switching group proposed by the present invention is a virtual concept and is not a physical device. In the above, the current handover group performing network communication does not mean that the current handover group performs network communication directly, but means that one of the interfaces included in the current handover group performs network communication. Similarly, detecting the communication state of the current handover group means detecting the communication state of the interface included in the current handover group.
Step S150, when the detection result meets the handover group handover condition, acquiring the monitoring information of at least one monitored handover group meeting the preset monitoring condition, and selecting a new handover group from the at least one monitored handover group to replace the current handover group, so as to perform network communication through the new handover group.
In this embodiment, the current handover group is a handover group including an interface for currently performing network connection and implementing a communication service, and the new handover group is a handover group for replacing the current handover group to perform network communication. The current and new switch groups are relative concepts and do not refer to a certain type of switch group.
Referring to fig. 2, fig. 2 is a second flowchart illustrating a network handover method according to a preferred embodiment of the invention. The method further comprises the following steps: step S110.
Step S110 is to perform initialization configuration on each handover group in the network device 100.
Referring to fig. 3, fig. 3 is a flowchart illustrating sub-steps of step S110 shown in fig. 2 according to a preferred embodiment of the present invention. The step S110 includes a substep S111 and a substep S112.
And a substep S111, creating at least two switching groups according to the interface types, and configuring at least two interfaces for each switching group.
In this embodiment, the network device 100 creates at least one switching group according to the interface type, and configures at least two interfaces for each switching group. Each switching group corresponds to an interface type, and the interface types include: a wired interface, a 3G/4G interface, a Wifi interface and a hybrid interface.
In this embodiment, the network device 100 may configure the number of the switching groups and the type corresponding to each switching group according to actual requirements and/or user requirements. For example, the network device 100 may respectively create four switching groups according to the interface types: the system comprises a wired interface switching group, a 3G/4G switching group, a Wifi switching group and a mixed interface switching group. The wired interface switching group is correspondingly provided with a wired interface, the 3G/4G switching group is correspondingly provided with a 3G/4G interface, the Wifi switching group is correspondingly provided with a Wifi interface, and the mixed interface switching group can be provided with any type of interface.
And a substep S112, configuring the handover parameters for each handover group.
In this embodiment, the handover parameter includes a handover priority. The network device 100 may set a default switching priority for each switching group. For example, the switching priorities of the wired interface switching group, the 3G/4G switching group, the Wifi switching group and the hybrid interface switching group may be set to be first, second, third and fourth levels in sequence. In addition, the user may define the switching priority of the switching group according to the user requirement, and the network device 100 configures each switching group by acquiring the switching priority defined by the user.
In this embodiment, the network device 100 may configure the handover parameter corresponding to each handover group according to an actual requirement, and the network device 100 may also configure the handover parameter corresponding to each handover group by obtaining a relevant parameter set by a user.
In this embodiment, the switching parameters corresponding to the wired interface switching group may be, but are not limited to: a packet loss rate threshold, a packet delay time threshold, a detection time interval, etc. The handover parameters corresponding to the 3G/4G handover group may be, but are not limited to: signal sampling period, signal sampling interval, signal difference threshold, etc. The switching parameters corresponding to the Wifi switching group may be, but are not limited to: signal sampling period, signal sampling interval, connection rate, etc. The handover parameters corresponding to the hybrid interface handover group may be, but are not limited to: a connection rate threshold, a connection type weighting, a packet loss rate threshold, etc.
In this embodiment, the present invention provides a concept of a switch group, and the switch group is used to classify and group different types of interfaces, so as to facilitate management of the interfaces. By using the switching group as a carrier for switching the priority and using the switching group to replace the interface as a judgment object, the corresponding interface can be selected according to the communication quality for communication connection, thereby realizing the quick switching of the communication line and ensuring the stable operation of the communication service.
Referring to fig. 2 again, the method further includes: step S120.
And step S120, selecting a target interface for network communication from each monitored switching group in real time according to a preset judgment standard and a switching parameter corresponding to each monitored switching group, so that when a switching condition of the switching group is met and the switching condition is selected as a new switching group, the quick connection of a network line is realized through the target interface in the new switching group.
In this embodiment, the preset determination criteria include: the communication signal strength is optimal, the packet loss rate of the packet is lowest, the packet delay time is shortest, the connection speed is fastest and the like. Each switching group can be correspondingly provided with the same or different preset judgment standards. The target interface is an optimal interface meeting a preset judgment standard.
The network device 100 may select an interface with an optimal condition from each monitored switching group as a target interface according to a preset judgment standard and a switching parameter corresponding to each monitored switching group, so that when a monitored switching group is selected to replace a current switching group, a fast connection of a network line may be achieved through the target interface in the selected switching group.
Step S140 in fig. 2 is explained below based on the above description.
Referring to fig. 4, fig. 4 is a flowchart illustrating sub-steps of step S140 shown in fig. 1 according to a preferred embodiment of the present invention. The step S140 includes a substep S141 and a substep S142.
And a substep S141 of detecting the communication states of all interfaces in the current handover group performing the network communication according to a preset detection time interval.
In this embodiment, the network device 100 may detect the communication states of all interfaces in the current handover group according to a preset detection time interval, and obtain a detection result corresponding to each interface. The preset detection time interval can be set according to actual requirements.
In this embodiment, the network device 100 obtains the communication parameters corresponding to each interface by detecting the communication states of all interfaces. The network device 100 compares the obtained communication parameters with preset communication parameter indexes to obtain comparison results, and obtains corresponding detection results according to the comparison results. The communication parameters include: any one or combination of parameters such as packet loss rate, packet delay time, communication signal strength and connection rate. The preset communication parameter index may be, but is not limited to, a preset communication parameter threshold.
For example, the communication parameter set by the current handover group is a packet loss rate, and the preset communication parameter index is set as a packet loss rate threshold (e.g., 10%). The network device 100 detects communication states of all interfaces in the current switching group to obtain a packet sending loss rate corresponding to each interface, and compares the packet sending loss rate of each interface with a preset packet sending loss rate threshold. And if the comparison result corresponding to one interface is that the packet loss rate of the interface is greater than the packet loss rate threshold, the obtained detection result is that the interface is unavailable.
And a substep S142, when the detection result is that all the interfaces in the current switching group are not available, determining that the current switching group meets the switching group switching condition.
In this embodiment, when the network device 100 obtains that the detection result corresponding to each interface in the current handover group is unavailable, it indicates that the communication quality of the current handover group is poor, and the communication service that cannot be guaranteed stably operates, and it can be determined that the current handover group meets the handover condition of the handover group.
Referring to fig. 5, fig. 5 is a flowchart illustrating sub-steps of step S150 shown in fig. 1 according to a preferred embodiment of the present invention. The step S150 includes a sub-step S151, a sub-step S152, a sub-step S153, and a sub-step S154.
And a substep S151 of comparing the switching priority of the current switching group with the switching priorities of all the remaining switching groups, and taking at least one switching group with the comparison result in a preset priority range as a monitored switching group.
And a substep S152, monitoring all the monitored switching groups to obtain monitoring information of the at least one switching group.
In this embodiment, the network device 100 compares the switching priority of the current switching group currently performing network communication with the switching priorities of all the remaining switching groups, and determines at least one switching group whose comparison result is within a preset priority range as a switching group that needs to be monitored. That is, the monitoring conditions set in the embodiment of the present invention are: comparing the switching priority of the current switching group with the switching priorities of all the rest switching groups, and taking the switching groups with the comparison result within the preset priority range as monitored switching groups, wherein generally at least one monitored switching group meeting the monitoring condition is selected. The network device 100 monitors the at least one switching group (i.e. all monitored switching groups satisfying the monitoring condition, at least one monitored switching group) within the preset priority range, and obtains the monitoring information of the at least one monitored switching group. Here, the monitoring information of all the monitored switch groups is obtained, and meanwhile, the network device 100 may close the related tasks of the switch groups that do not need to be monitored, so as to reduce the resource occupation and save the energy consumption.
In this embodiment, the preset priority range may be set according to actual requirements. The above steps are described below by way of example.
In this embodiment, the preset priority range may be set as: higher than or one level lower than the switching priority of the current switching group. Assume, four handover groups are created: the switching priorities of the wired interface switching group, the 3G/4G switching group, the Wifi switching group and the mixed interface switching group are sequentially set to be a first level, a second level, a third level and a fourth level. If the current switching group connected currently is a 3G/4G switching group with the switching priority of two levels, the wired interface switching group with the switching priority of one level and the Wifi switching group with the switching priority of three levels can be judged as the switching group needing to be monitored according to the preset priority range. The hybrid interface switching group with the switching priority of four is a switching group without monitoring, and related tasks of the hybrid interface switching group can be temporarily closed, so that resource occupation and energy consumption are reduced.
And a substep S153 of selecting a new switching group from the monitored switching groups according to the monitoring information and the switching priority of the at least one monitored switching group.
In this embodiment, the monitoring information may include, but is not limited to: and any one or combination of information such as whether the switching group is available, whether the interface state in the switching group is optimal, whether the communication condition of the switching group is good and the like.
In this embodiment, the network device 100 may select, according to the monitoring information of the monitored at least one handover group, a handover group with the highest handover priority from the monitored at least one handover group as a new handover group. For example, the monitoring information includes: whether the switching group is available or not and whether the interface state in the switching group is optimal or not, wherein at least one monitored switching group is as follows: the first-level wired interface switching group and the third-level Wifi switching group. If the monitoring information of the wired interface switching group and the Wifi switching group is available for the switching group and the interface state is optimal, the wired interface switching group can be selected as a new switching group due to the high switching priority of the wired interface switching group. If the monitoring information of the wired interface switching group is that the switching group is unavailable and the monitoring information of the Wifi switching group is that the switching group is available, the Wifi switching group with the switching priority of three levels is selected as a new switching group.
And a substep S154, replacing the current switching group with the selected new switching group to complete the switching group switching.
In this embodiment, through the above selection of the new handover group, the network device 100 replaces the current handover group with the new handover group to complete handover group handover. Therefore, the communication lines with excellent performance can be selected for connection, the occurrence rate of communication interruption and service delay is reduced, the stable operation of communication services is ensured, and the service loss is reduced.
Referring to fig. 2 again, the method further includes: step S130.
Step S130, detecting a communication state of a current interface performing network communication in the current switching group, determining whether an interface switching condition is satisfied, and when the interface switching condition is satisfied, selecting a new interface in the current switching group to replace the current interface to complete interface switching operation, and performing communication connection through the new interface.
In this embodiment, when the current handover group includes a plurality of interfaces, the network device 100 may detect a communication state of a current network connection interface at a time interval. If the communication state of the current network connection interface is poor, for example, the signal intensity of the current network connection interface is lower than a preset signal intensity threshold, it is determined that the current network connection interface meets the interface switching condition. The network device 100 selects an interface with a good communication status (for example, the signal strength is higher than a preset signal strength threshold) from the current handover group to replace the current connection interface, so as to complete the interface handover operation. Therefore, the interface can be dynamically adjusted according to the actual connected communication condition so as to select the optimal line for connection and ensure the communication quality.
In this embodiment, when the current switching group includes a plurality of interfaces, if the communication state of the interface currently connected to the current switching group is poor, the network device 100 may first detect and determine the remaining interfaces in the current switching group, and perform communication connection through interface switching. If it is detected that all the interfaces in the current handover group are unavailable, the network device 100 will perform the handover group handover operation.
Second embodiment
Referring to fig. 6, fig. 6 is a functional block diagram of a network device 100 according to a preferred embodiment of the present invention. The network device 100 includes: a determination module 120, a detection module 130, and an acquisition and replacement module 140.
The determining module 120 is configured to detect whether the number of the switch group settings of the network device 100 is unique.
In this embodiment, the determining module 120 is configured to execute step S135 in fig. 1, and the detailed description about the determining module 120 may refer to the description of step S135.
The detecting module 130 is configured to detect a communication state of a current interface performing network communication in the unique handover group when the number of the handover groups is unique, and perform interface handover according to a detection result.
In the present embodiment, the detection module 130 is configured to perform step S137 in fig. 1, and the detailed description about the detection module 130 may refer to the description of step S137.
The detecting module 130 is further configured to detect a communication state of a current handover group in the network device 100 for performing network communication when the number of handover groups is not unique, and determine whether a handover group handover condition is satisfied according to a detection result.
In the present embodiment, the detection module 130 is configured to perform step S140 in fig. 1, and the detailed description about the detection module 130 may refer to the description of step S140.
The obtaining and replacing module 140 is configured to, when the detection result meets the handover group handover condition, obtain monitoring information of at least one monitored handover group meeting a preset monitoring condition, and select a new handover group from the at least one monitored handover group to replace the current handover group, so as to perform network communication connection through the new handover group.
In the present embodiment, the acquiring and replacing module 140 is configured to execute step S150 in fig. 1, and the detailed description about the acquiring and replacing module 140 may refer to the description of step S150.
Referring to fig. 6 again, the apparatus further includes: a configuration module 110.
A configuration module 110, configured to perform initial configuration on each handover group in the network device 100.
In the present embodiment, the configuration module 110 is configured to execute step S110 in fig. 2 and step S110 in sub-step S111 and sub-step S112 in fig. 3. The detailed description of the configuration module 110 can refer to the descriptions of step S110, substep S111, and substep S112.
The obtaining and replacing module 140 is further configured to select a target interface for performing network communication from each monitored switching group in real time according to a preset determination criterion and a switching parameter corresponding to each monitored switching group, so that when a switching condition of a switching group is met and the switching condition is selected as a new switching group, connection of a network line is achieved through the target interface in the new switching group.
In the present embodiment, the acquiring and replacing module 140 is configured to execute step S120 in fig. 2, and the detailed description of the acquiring and replacing module 140 may refer to the description of step S120.
The detecting module 130 is further configured to detect a communication state of a current interface performing network communication in the current switching group, determine whether an interface switching condition is met, select a new interface in the current switching group to replace the current interface when the interface switching condition is met, so as to complete interface switching operation, and perform communication connection through the new interface.
In this embodiment, the detection module 130 is further configured to perform step S130 in fig. 2, and the detailed description about the detection module 130 may refer to the description of step S130.
In summary, the present invention provides a network switching method and a network device. The method is applied to a network device, the network device comprises at least one switching group, and the method comprises the following steps: and detecting whether the set number of the switching groups of the network equipment is unique. If the current interface is unique, the communication state of the current interface for network communication in the unique switching group is detected, and interface switching is carried out according to the detection result. If not, detecting the communication state of the current switching group for network communication in the network equipment, and judging whether the switching group switching condition is met according to the detection result. And when the detection result meets the switching group switching condition, acquiring the monitoring information of at least one monitored switching group meeting the preset monitoring condition, and selecting a new switching group from the at least one monitored switching group to replace the current switching group so as to carry out network communication through the new switching group.
Therefore, the interface can be dynamically adjusted according to the actually connected communication quality, and the optimal line can be selected for connection. The occurrence rate of communication interruption and service delay is reduced, the stable operation of communication service is ensured, and the service loss is reduced.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims (9)
1. A network handover method applied to a network device including at least one handover group, the method comprising:
detecting whether the set number of the switching groups of the network equipment is unique;
if the current interface is unique, detecting the communication state of the current interface for network communication in the unique switching group, and switching the interfaces according to the detection result;
if not, detecting the communication state of the current switching group for network communication in the network equipment, and judging whether the switching group switching condition is met according to the detection result;
when the detection result meets the switching group switching condition, acquiring the monitoring information of at least one monitored switching group meeting the preset monitoring condition, and selecting a new switching group from the at least one monitored switching group to replace the current switching group so as to carry out network communication through the new switching group;
wherein, the step of obtaining the monitoring information of at least one monitored switching group meeting the preset monitoring condition comprises:
comparing the switching priority of the current switching group with the switching priorities of all the rest switching groups, and taking at least one switching group with the comparison result in a preset priority range as a monitored switching group;
monitoring all monitored switching groups to obtain monitoring information of at least one monitored switching group;
the step of selecting a new handoff group from the at least one monitored handoff group to replace the current handoff group for network communication via the new handoff group comprises:
selecting a new switching group from the monitored switching groups according to the monitoring information and the switching priority of the at least one monitored switching group;
and replacing the current switching group with the selected new switching group to complete switching group switching.
2. The method according to claim 1, wherein the step of detecting the communication status of the current interface performing network communication in the unique handover group and performing interface handover according to the detection result comprises:
detecting the communication state of the current interface for network communication in the unique switching group, judging whether the interface switching condition is met, selecting a new interface in the unique switching group to replace the current interface for network communication when the interface switching condition is met so as to complete interface switching operation, and carrying out network communication through the new interface.
3. The method of claim 1, further comprising:
performing initialization configuration on each switching group in the network device, specifically including:
creating at least one switching group according to interface types, and configuring at least two interfaces for each switching group, wherein each switching group corresponds to one interface type, and the interface types comprise: a wired interface, a 3G/4G interface, a Wifi interface and a mixed interface;
configuring handover parameters for each handover group, wherein the handover parameters include a handover priority.
4. The method of claim 3, further comprising:
and selecting a target interface for network communication from each monitored switching group in real time according to a preset judgment standard and the switching parameter corresponding to each monitored switching group, so that when the switching condition of the switching group is met and the switching condition is selected as a new switching group, the quick connection of the network line is realized through the target interface in the new switching group.
5. The method according to any one of claims 1 to 4, wherein the step of detecting the communication status of the current handover group performing network communication in the network device and determining whether the handover group handover condition is satisfied according to the detection result comprises:
detecting the communication states of all interfaces in a current switching group for network communication according to a preset detection time interval;
and when the detection result indicates that all the interfaces in the current switching group are unavailable, judging that the current switching group meets the switching condition of the switching group.
6. A network device, characterized in that the network device comprises:
the judging module is used for detecting whether the set number of the switching groups of the network equipment is unique;
the detection module is used for detecting the communication state of the current interface for network communication in the unique switching group when the number of the switching groups is unique, and switching the interfaces according to the detection result;
the detection module is further configured to detect a communication state of a current handover group performing network communication in the network device when the number of the handover groups is not unique, and determine whether a handover group handover condition is satisfied according to a detection result;
the acquisition and replacement module is used for acquiring the monitoring information of at least one monitored switching group meeting preset monitoring conditions when the detection result meets the switching group switching conditions, and selecting a new switching group from the at least one monitored switching group to replace the current switching group so as to carry out network communication through the new switching group;
the step of acquiring the monitoring information of at least one monitored switching group meeting the preset monitoring condition by the acquiring and replacing module comprises the following steps:
comparing the switching priority of the current switching group with the switching priorities of all the rest switching groups, and taking at least one switching group with the comparison result in a preset priority range as a monitored switching group;
monitoring all monitored switching groups to obtain monitoring information of at least one monitored switching group;
the step of selecting a new handover group from the at least one monitored handover group by the acquisition and replacement module to replace the current handover group, and performing network communication through the new handover group includes:
selecting a new switching group from the monitored switching groups according to the monitoring information and the switching priority of the at least one monitored switching group;
and replacing the current switching group with the selected new switching group to complete switching group switching.
7. The network device of claim 6, wherein the network device further comprises:
a configuration module, configured to create at least one switching group according to an interface type, and configure at least two interfaces for each switching group, where each switching group corresponds to one interface type, and the interface type includes: a wired interface, a 3G/4G interface, a Wifi interface and a mixed interface;
and the configuration module is further used for configuring the switching parameters of each switching group, wherein the switching parameters comprise switching priorities.
8. The network device of claim 7, wherein:
the acquisition and replacement module is further configured to select a target interface for performing network communication from each monitored switching group in real time according to a preset judgment standard and a switching parameter corresponding to each monitored switching group, so that when a switching condition of the switching group is met and the switching condition is selected as a new switching group, fast connection of a network line is achieved through the target interface in the new switching group.
9. The network device of any of claims 6-8, wherein:
the detection module is further configured to detect a communication state of a current interface for performing network communication in a current switching group, determine whether an interface switching condition is met, select a new interface in the current switching group to replace the current interface when the interface switching condition is met, so as to complete interface switching operation, and perform communication connection through the new interface.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710510227.4A CN107241174B (en) | 2017-06-28 | 2017-06-28 | Network switching method and network equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710510227.4A CN107241174B (en) | 2017-06-28 | 2017-06-28 | Network switching method and network equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107241174A CN107241174A (en) | 2017-10-10 |
CN107241174B true CN107241174B (en) | 2020-04-03 |
Family
ID=59991231
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710510227.4A Active CN107241174B (en) | 2017-06-28 | 2017-06-28 | Network switching method and network equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107241174B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108093447B (en) * | 2017-12-20 | 2022-05-17 | 中磊电子(苏州)有限公司 | Base station switching parameter adjusting method |
CN111953542B (en) * | 2020-08-12 | 2023-08-04 | 深圳市前海澳威智控科技有限责任公司 | System for guaranteeing stable operation of gateway |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1984039A (en) * | 2006-04-23 | 2007-06-20 | 华为技术有限公司 | Fast re-routing method for shared multi-port transmitting link |
CN101051885A (en) * | 2007-05-17 | 2007-10-10 | 中兴通讯股份有限公司 | Protecting method and device for cut-in device up connection service |
CN101340381A (en) * | 2008-08-04 | 2009-01-07 | 中兴通讯股份有限公司 | Aggregation link management method and apparatus |
CN101378359A (en) * | 2008-10-06 | 2009-03-04 | 中兴通讯股份有限公司 | Method and apparatus for switching of primary and secondary compulsion links |
CN202351906U (en) * | 2011-12-19 | 2012-07-25 | 重庆大唐新数码股份有限公司 | Radio frequency identification (RFID) reader-writer capable of automatically switching optical fiber and 3rd-generation (3G) network to communicate |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6389553B1 (en) * | 1998-05-26 | 2002-05-14 | Nortel Networks Limited | Redundant link delay maintenance circuit and method |
CN202949423U (en) * | 2012-11-06 | 2013-05-22 | 天津瑞利通科技有限公司 | Optical fiber automatic switch protective device |
CN104283976B (en) * | 2013-07-10 | 2019-12-24 | 中兴通讯股份有限公司 | Switching method of network interface and access equipment |
CN104184843B (en) * | 2013-11-06 | 2018-08-03 | 邦彦技术股份有限公司 | Data forwarding apparatus and method |
CN104753792B (en) * | 2013-12-31 | 2018-10-30 | 华为技术有限公司 | The network equipment and the method to E-Packet |
-
2017
- 2017-06-28 CN CN201710510227.4A patent/CN107241174B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1984039A (en) * | 2006-04-23 | 2007-06-20 | 华为技术有限公司 | Fast re-routing method for shared multi-port transmitting link |
CN101051885A (en) * | 2007-05-17 | 2007-10-10 | 中兴通讯股份有限公司 | Protecting method and device for cut-in device up connection service |
CN101340381A (en) * | 2008-08-04 | 2009-01-07 | 中兴通讯股份有限公司 | Aggregation link management method and apparatus |
CN101378359A (en) * | 2008-10-06 | 2009-03-04 | 中兴通讯股份有限公司 | Method and apparatus for switching of primary and secondary compulsion links |
CN202351906U (en) * | 2011-12-19 | 2012-07-25 | 重庆大唐新数码股份有限公司 | Radio frequency identification (RFID) reader-writer capable of automatically switching optical fiber and 3rd-generation (3G) network to communicate |
Also Published As
Publication number | Publication date |
---|---|
CN107241174A (en) | 2017-10-10 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
KR102292990B1 (en) | Method and apparatus of sharing information related to status | |
US10750420B2 (en) | Intelligent heterogeneous wireless handoff | |
CN110891093A (en) | Method and system for selecting edge computing node in delay sensitive network | |
CN103415041B (en) | A kind of method and device of load of base station equilibrium | |
CN101841878B (en) | Switch method, device and system in communication network | |
CN110621047A (en) | Operator network switching method and device and computer readable storage medium | |
CN103987085A (en) | Inter-cell mobility load balance method and mobility load balance device | |
WO2014094314A1 (en) | Optimal path selection method, related device and communication system | |
CN107241174B (en) | Network switching method and network equipment | |
CN110662264B (en) | Switching method, system, core network device and computer readable storage medium | |
CN105592496A (en) | Configuration method and apparatus for terminal measurement event | |
CN113543246B (en) | Network switching method and device | |
CN104661268B (en) | Information processing method, information processing unit and mobile terminal | |
CN107948000B (en) | Method, device and system for switching main channel and standby channel | |
WO2024093219A1 (en) | Service path optimization method and apparatus, and storage medium | |
CN109819482B (en) | Data processing method and device | |
CN104918286A (en) | Load balancing user switching method and device | |
CN110381539B (en) | Network load balancing method, device and system | |
CN109586405B (en) | Micro-grid system and communication method thereof | |
CN112911657A (en) | Cell reselection method, equipment and storage medium | |
CN113055123A (en) | Blind detection method, system and terminal | |
Xu et al. | Towards smart networking through context aware traffic identification kit (trick) in 5G | |
WO2024199521A1 (en) | Artificial intelligence (ai) model validation method and communication device | |
CN104469696A (en) | Method, device and system for mobility management of terminal group | |
CN101674598A (en) | Method, device and system for cell switching judgment |
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 |