WO2017128654A1 - Method and device realizing switching required by internet-connected terminal - Google Patents

Method and device realizing switching required by internet-connected terminal Download PDF

Info

Publication number
WO2017128654A1
WO2017128654A1 PCT/CN2016/091559 CN2016091559W WO2017128654A1 WO 2017128654 A1 WO2017128654 A1 WO 2017128654A1 CN 2016091559 W CN2016091559 W CN 2016091559W WO 2017128654 A1 WO2017128654 A1 WO 2017128654A1
Authority
WO
WIPO (PCT)
Prior art keywords
wireless router
internet
switching
terminal
internet terminal
Prior art date
Application number
PCT/CN2016/091559
Other languages
French (fr)
Chinese (zh)
Inventor
司可宁
Original Assignee
中兴通讯股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2017128654A1 publication Critical patent/WO2017128654A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/24Reselection being triggered by specific parameters
    • H04W36/30Reselection being triggered by specific parameters by measured or perceived connection quality data
    • H04W36/304Reselection being triggered by specific parameters by measured or perceived connection quality data due to measured or perceived resources with higher communication quality
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/24Reselection being triggered by specific parameters
    • H04W36/30Reselection being triggered by specific parameters by measured or perceived connection quality data
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]

Definitions

  • the present application relates to, but is not limited to, the field of communications technologies, and in particular, to a method and apparatus for implementing switching of an internet terminal.
  • the embodiment of the invention provides a method and a device for implementing the switching of the Internet terminal, and solves the problem that the router terminal device cannot guarantee the fast and stable Internet access of the Internet terminal due to equipment failure, network failure or overload.
  • a method for implementing switching of an Internet terminal is applied to a first wireless router that needs to switch an Internet terminal, including:
  • the network terminal that needs to be switched is switched to one or more second wireless routers that have established a trust relationship in advance, so that the switched Internet terminal performs the second wireless router. Internet connection.
  • switching the network terminal that needs to be handed over to the one or more second wireless routers that have established the trust relationship in advance includes:
  • the request message for switching the Internet terminal is sent to one or more second wireless routers that have established a trust relationship in advance.
  • the method further includes: establishing a trust relationship with the second wireless router in advance before monitoring the current network carrying condition.
  • the establishing a trust relationship with the second wireless router in advance includes:
  • the method further includes: after the trust relationship is successfully established, sending its identifier to the second wireless router that has established a trust relationship, and causing the second wireless router to receive the received The identifier is stored.
  • the identifier includes: a service set identifier SSID information and an encrypted password information.
  • the method further includes: after the trust relationship is successfully established, receiving an identifier of the second wireless router that has established the trust relationship.
  • the identifier of the second wireless router that has received the established trust relationship is stored.
  • the identifier includes: a service set identifier SSID information and an encrypted password information.
  • the method further includes: after establishing a trust relationship with the second wireless router in advance, causing the second wireless router to store the received status information.
  • the status information includes: network signal strength information and remaining available bandwidth information.
  • the method further includes: after establishing a trust relationship with the second wireless router in advance, receiving state information about itself sent by the second wireless router in real time or periodically.
  • the received status information of the second wireless router is stored.
  • the status information includes: network signal strength information and remaining available bandwidth information.
  • the request message for switching the Internet terminal includes:
  • One or more target wireless routers transmitting a request message for switching the Internet terminal are determined in the second wireless router in an order of the state stability degree values from large to small.
  • the obtaining a state stability degree value of each of the second wireless routers that have established a trust relationship includes:
  • the network signal strength and the remaining available bandwidth of all stored second wireless routers of the established trust relationship are respectively classified according to a preset hierarchical rule.
  • P denotes a state stability degree value
  • S denotes a level of network signal strength of a second wireless router that has established a trust relationship
  • B denotes a level of remaining available bandwidth of a second wireless router that has established a trust relationship.
  • the switching the self-hosted internet terminal that needs to be handed over to the second wireless router includes:
  • the first target wireless router agrees to the request message for switching the Internet access terminal, switching some or all of the Internet access terminals that need to be handed over to the first target wireless router, and recording the MAC address information of the switched Internet access terminal and The identifier information of the first target wireless router.
  • the first target wireless router rejects the request message for switching the Internet access terminal, searching for the second target wireless router in the second wireless router according to the state stability degree value, to complete the switching of the Internet access terminal.
  • the method further includes: after switching the online terminal that needs to be handed over to the second wireless router, and continuously monitoring the current network carrying condition.
  • the network carrier When the network carrier returns to normal, sending, according to the recorded MAC address information of the switched Internet terminal and the identifier information of the target wireless router that is switched, to the target wireless router, sending a request message for returning to the Internet terminal, so that the target wireless
  • the router returns a corresponding Internet access terminal, where the request message includes MAC address information of the Internet access terminal that is switched to the target wireless router.
  • a method for implementing switching of an Internet terminal is applied to a second wireless router that receives a request from a first wireless router to switch an Internet terminal, including:
  • the second wireless router determines whether the current network carrying condition of the second wireless router meets the predetermined Internet terminal switching condition.
  • the second wireless router determines whether the current network carrying condition of the second wireless router meets the predetermined online terminal switching condition, including:
  • the at least part of the Internet access terminal that accepts and carries the first wireless router to be switched includes:
  • the acknowledgment switching message is sent to the first wireless router; and the first wireless router needs to be switched according to the acknowledgment switching message. At least part of the Internet terminal.
  • the method further includes: establishing a trust relationship with the first wireless router in advance before receiving the request message for switching the Internet terminal sent by the first wireless router that has established the trust relationship.
  • the establishing a trust relationship with the first wireless router in advance includes:
  • a response message agreeing to establish a trust relationship is sent to the first wireless router, so that the trust relationship is successfully established.
  • the method further includes: after the trust relationship is successfully established, sending its own identifier to the first wireless router, so that the first wireless router stores the received identifier.
  • the identifier includes: a service set identifier SSID information and an encrypted password information.
  • the method further includes: after the trust relationship is successfully established, receiving an identifier of the first wireless router to send the identifier.
  • the received identifier of the first wireless router is stored.
  • the identifier includes: a service set identifier SSID information and an encrypted password information.
  • the method further includes: after establishing a trust relationship with the first wireless router in advance, sending the status information of the first wireless router to the first wireless router in real time or periodically, so that the first wireless router receives the The status information is stored.
  • the status information includes: network signal strength information and remaining available bandwidth information.
  • the method further includes: after establishing a trust relationship with the first wireless router in advance, receiving state information about itself sent by the first wireless router in real time or periodically.
  • the received status information of the first wireless router is stored and updated.
  • the status information includes: network signal strength information and remaining available bandwidth information.
  • the request message for switching the Internet access terminal includes the MAC address information of the Internet access terminal that needs to be switched, and the at least part of the Internet access terminal that accepts and carries the first wireless router to be switched includes:
  • the network terminal that accepts the switching of all the first wireless routers is accepted and carried. And recording the MAC address information of the connected terminal and the identifier information of the first wireless router.
  • the part of the said A wireless router needs to switch the Internet terminal, and records the MAC address information of the Internet terminal that is switched to and the identifier information of the first wireless router.
  • the method further includes: after receiving and carrying some or all of the Internet terminals that need to be switched by the first wireless router, receiving a request message sent by the first wireless router to return to the Internet terminal, where The request message includes the MAC address information of the request to return to the Internet terminal.
  • the MAC address information of the request returned to the Internet terminal in the request message is matched with the recorded MAC address information of the Internet terminal corresponding to the switching of the first wireless router.
  • the Internet access corresponding to the first wireless router is The terminal returns to the first wireless router.
  • a device for implementing switching of an Internet terminal is applied to a first wireless router that needs to switch an Internet terminal, and includes: a first monitoring module and a switching module.
  • the first monitoring module is configured to monitor the current network carrying condition.
  • the switching module is configured to switch the online terminal that needs to be switched to the one or more second wireless routers that have established the trust relationship in advance when the current network carrier is abnormal, so that the switched Internet terminal passes the
  • the second wireless router makes a network connection.
  • the device for implementing the switching of the Internet terminal is applied to the second wireless router that receives the request of the first wireless router to switch the Internet access terminal, and includes: a determining module and an accepting carrying module.
  • the determining module is configured to: when the first wireless router requests to switch the internet terminal to the second wireless router, the second wireless router determines whether the current network carrying condition of the second wireless router meets a predetermined online terminal switching condition.
  • the receiving module is configured to receive and carry at least part of the Internet terminals that the first wireless router needs to switch when the current network carrying condition meets the predetermined Internet terminal switching condition.
  • a computer readable storage medium storing computer executable instructions, the computer executable instructions being implemented by a processor to implement the method for implementing internet terminal switching.
  • the wireless router can timely
  • the Internet terminal switches to other wireless routers to ensure the reliability and stability of the Internet access terminal, and also facilitates load balancing and reduces resource waste.
  • FIG. 1 is a flowchart of a method for implementing handover of an internet terminal according to a first embodiment of the present invention
  • FIG. 2 is another flowchart of a method for implementing switching of an internet terminal according to the first embodiment of the present invention
  • FIG. 3 is a flowchart showing the step S100 provided by the first embodiment of the present invention.
  • FIG. 4 is a flowchart showing the step S102 provided by the first embodiment of the present invention.
  • FIG. 5 is a flowchart showing the step S1021 provided by the first embodiment of the present invention.
  • FIG. 6 is a flowchart showing the step S10211 provided by the first embodiment of the present invention.
  • FIG. 7 is a flowchart showing the step S1022 provided by the first embodiment of the present invention.
  • FIG. 8 is a flowchart of a method for implementing handover of an internet terminal according to a second embodiment of the present invention.
  • FIG. 9 is another flowchart of a method for implementing switching of an internet terminal according to a second embodiment of the present invention.
  • FIG. 10 is a flowchart showing the step S800 provided by the second embodiment of the present invention.
  • FIG. 11 is a flowchart showing the step S801 provided by the second embodiment of the present invention.
  • FIG. 12 is a flowchart showing the step S802 provided by the second embodiment of the present invention.
  • FIG. 13 is a flowchart showing the step S8022 provided by the second embodiment of the present invention.
  • FIG. 14 is a block diagram showing an apparatus for implementing switching of an internet terminal according to a third embodiment of the present invention.
  • FIG. 15 is another block diagram of an apparatus for implementing switching of an internet terminal according to a third embodiment of the present invention.
  • FIG. 16 is a block diagram showing an apparatus for implementing switching of an internet terminal according to a fourth embodiment of the present invention.
  • FIG. 17 is a block diagram showing another apparatus for implementing switching of an internet terminal according to a fourth embodiment of the present invention. Figure.
  • An embodiment of the present invention provides a method for implementing handover of an Internet terminal, which is applied to a first wireless router that needs to switch an Internet terminal.
  • the method includes steps S101-S103:
  • Step S101 Monitor the current network carrying status.
  • the first wireless router can monitor its own network carrying status in real time or periodically. When an abnormal condition is detected, the process proceeds to step S102.
  • the network carrying status refers to the network status and load status of the wireless router. For the network status, it is generally monitored whether the Internet can be accessed. For the load situation, it is generally monitored whether the load is overloaded.
  • Step S102 When the current network carrier is abnormal, the network terminal that needs to be switched is switched to one or more second wireless routers that have established a trust relationship in advance, so that the switched Internet terminal passes the second wireless router. Make a network connection.
  • the first wireless router detects that the network is unable to access the Internet due to a network failure or a fault of its own device, or because the number of users carrying the Internet access terminal is excessive, the network speed is too slow, so as to ensure the stable Internet access of the Internet terminal user.
  • All or part of the Internet terminal users can be switched to at least one second wireless router that has established a trust relationship, so that the switched Internet terminal performs network connection through the second wireless router.
  • the second wireless router that receives the request from the first wireless router to switch the Internet terminal first determines whether the network carrying condition of the first wireless router can accept the Internet terminal that the first wireless router needs to switch, and if the network carrying condition of the first wireless router can accept the first The wireless router needs to switch the Internet terminal, and accepts and carries at least part of the Internet terminal that the first wireless router needs to switch.
  • the reason why the "at least part of the Internet terminal" is said is that there may be a second wireless router that accepts the first wireless router and needs to switch.
  • the Internet terminal may be overloaded. Therefore, only some of the Internet terminals that need to be switched by the first wireless router can be accepted at this time, and the first wireless router needs to continue to search for an Internet terminal that needs to be switched.
  • the Internet terminal that needs to be switched carried by the first wireless router is all the Internet access terminals; when the first wireless router is overloaded, the Internet terminal that needs to be switched carried by the first wireless router is overloaded. Range of internet terminals.
  • step S101 the method provided by the embodiment of the present invention further includes step S100:
  • Step S100 Establish a trust relationship with the second wireless router in advance.
  • step S100 may include steps S1001-S1002:
  • Step S1001 Send a request message for establishing a trust relationship to the second wireless router.
  • the administrator may enter an interface for establishing a trust relationship of the first wireless router, where one or more other wireless routers searchable by the first wireless router exist, and corresponding to each searched wireless
  • the router has a virtual button for sending a request message, and the administrator can trigger the sending of the request message according to actual needs.
  • Step S1002 If the response message sent by the second wireless router agreeing to establish a trust relationship is received, the trust relationship is successfully established.
  • the first wireless router and the second wireless router that agree to establish a trust relationship further send each other's identifiers to the other party, so that the other party stores the information, so as to facilitate other relationships that have established a trust relationship.
  • the router performs identification and query.
  • the wireless router can store the received identifiers in a table called a trust list for convenient storage and query.
  • the identifier includes at least: a service set identifier SSID information and an encrypted password information.
  • the so-called encrypted password is an encrypted password for the identifier when the identifier is sent, so as to ensure secure switching of the Internet terminal and avoid information leakage.
  • the first wireless router needs to perform real-time or timing All second wireless routers that have established a trust relationship send their own state information to enable the second wireless router to enter the latest state of the first wireless router.
  • Line understanding and storage where the newly received status information will overwrite the previously stored status information
  • the second wireless router also sends its own status information to the first wireless router in real time or timing, so that the first wireless router Understand and store the latest status of the second wireless router.
  • the status information includes at least: network signal strength information and remaining available bandwidth information.
  • the state information of the other wireless routers that have received the established trust relationship may be stored in the trust list.
  • step S102 may include steps S1021-S1022:
  • Step S1021 When the current network carrier is abnormal, send a request message for switching the Internet terminal to at least one of the second wireless routers that have established a trust relationship in advance.
  • the first wireless router detects that the network is unable to access the Internet due to a network failure or a failure of its own device, or because the overload of the hosted Internet terminal is excessive, and the network speed is too slow, at least one of the established trust relationships is established.
  • the second wireless router sends a request message for switching the Internet terminal to request the second wireless router to accept the Internet terminal that needs to be switched.
  • Step S1022 The second wireless router receives the acknowledgment switching message fed back by the request message, and switches the online terminal that needs to be switched to the second wireless router, so that the switched Internet terminal passes the second wireless
  • the router makes a network connection.
  • the second wireless router that receives the first wireless router request message confirms that its network carrying condition can accept the Internet terminal that the first wireless router needs to switch, sends an acknowledgement handover message to the first wireless router, accepting and carrying the first wireless router. At least part of the Internet terminal that needs to be switched.
  • the second wireless router By sending a request message to the second wireless router, the second wireless router agrees to switch again, which can improve the accuracy of the handover.
  • step S1021 may include steps S10211-S10212:
  • Step S10211 Acquire a state stability degree value of each second wireless router that has established a trust relationship.
  • step S10211 may include S102111-S102112:
  • Step S102111 The network signal strength and the remaining available bandwidth of all the second wireless routers of the stored established trust relationship are respectively classified according to a preset level division rule.
  • each signal strength grid can be used as a level, with a total of multiple signal strength grids, and the number of levels.
  • the remaining available bandwidth can be divided into five levels according to the bandwidth of 1-5M, 5-10M, 10-15M, 15-20M, and 20M.
  • partitioning rules can be set according to actual needs.
  • P represents a state stability degree value
  • S represents a network signal strength of a second wireless router that has established a trust relationship
  • B represents a level of remaining available bandwidth of a second wireless router that has established a trust relationship.
  • Step S10212 Determine one or more target wireless routers that send the request message for switching the Internet terminal in the second wireless router according to the order of the state stability degree values.
  • the wireless router with the highest state stability value is first selected to send a request message for switching the Internet terminal, and if the wireless router with the highest state stability value rejects the request of the first wireless router, The wireless router with the second largest state stable value sends a request message for switching the Internet terminal, and so on.
  • step S1022 may include S10221-S10224:
  • Step S10221 Select a second wireless router with the highest state stability degree value as the first target router.
  • Step S10222 Send a request message for switching the internet terminal to the first target wireless router.
  • the request message includes media access control MAC address information of the internet terminal that needs to be switched.
  • Step S10223 If the first target wireless router agrees to switch the request message of the Internet access terminal, switch some or all of the Internet access terminals that need to be switched to the first target wireless router, and record the MAC address information and the first target of the switched Internet access terminal.
  • the identifier information of the wireless router is not limited to the wireless router.
  • the first target wireless router After receiving the request message of the switching Internet terminal sent by the first wireless router, the first target wireless router judges the network carrying situation of the first wireless router, and first determines whether it can be To access the Internet, if it can access the Internet, it will continue to judge its own load. If the MAC address information in the request message of the Internet access terminal is changed, it is determined that it will not be overloaded when accepting all the Internet terminals that need to be switched by the first wireless router. Receiving and carrying all the Internet terminals that the first wireless router needs to switch; if it is determined that only the part of the Internet terminals that the first wireless router needs to switch can be accepted according to the MAC address information in the switching Internet terminal request message, the first wireless device is accepted and carried.
  • the router needs to switch some of the Internet terminals, and the first wireless router selects the second target wireless router to send a request message for switching the Internet terminal according to the state stability degree value, so as to complete the remaining switching of the Internet terminal that needs to be switched, and then analogy, Let me repeat.
  • the first target wireless router needs to record the MAC address information of the Internet terminal that the first wireless router has switched to and the identifier information of the first wireless router, and the first wireless router also needs to The MAC address information of the Internet terminal that is moved out to the first target wireless router and the identifier information of the first target wireless router are recorded.
  • the MAC address information of the Internet terminal and the corresponding identifier information of the wireless router may be recorded in a transfer list to facilitate the query.
  • the first wireless router can notify the mobile terminal that it bears to be switched to the message of the first target wireless router by using the APP push mode.
  • the first wireless router and the first target wireless router have established a trust relationship. Therefore, the APP agrees to switch by default.
  • Step S10224 If the first target wireless router refuses to switch the request message of the Internet access terminal, the second target wireless router is searched for in the second wireless router according to the state stability degree value to complete the switching of the Internet access terminal.
  • the first target wireless router receives the request message for switching the Internet terminal sent by the first wireless router, it determines that the user cannot access the Internet or can access the Internet but is overloaded, that is, the Internet terminal that needs to be switched by the first wireless router cannot be received. Sending a reject message to the first wireless router, and in the reject message, carrying the network carrying status information of the first wireless router to inform the first wireless router of the specific situation, and the first wireless router may mark the first target wireless router as corresponding “Unconnected” or “overloaded”.
  • the method provided by the embodiment of the present invention further includes steps S103-S104:
  • Step S103 Continue to monitor the current network carrying status.
  • Step S104 when the network carrier returns to normal, according to the recorded MAC address information of the switched Internet terminal and the identifier information of the target wireless router that is switched to, send a request message to the target wireless router to return to the Internet terminal, so that the target wireless The router returns to the corresponding Internet terminal.
  • the request message includes MAC address information of the internet terminal that is switched to the target wireless router.
  • the first wireless router When the first wireless router detects that it can connect to the network or is no longer overloaded, it queries whether to switch the Internet terminal to another wireless router. If the Internet terminal has been switched to another wireless router, it is switched according to the record. The MAC address information of the Internet terminal and the identifier information of the target wireless router that is switched to send a request message to the target wireless router to return to the Internet terminal, and the target wireless router also queries whether the Internet terminal of the first wireless router has been received, if In order to receive the Internet terminal of the first wireless router, the corresponding Internet terminal is returned to the first wireless router, and the Internet terminal can be notified of the return message through the APP push mode, generally because the first wireless router and the target wireless router have established a trust relationship. Therefore, the app agrees to return by default.
  • the method for implementing the switching of the Internet terminal provided by the embodiment of the present invention can establish the trust relationship between the wireless routers, so that when one of the wireless routers cannot access the Internet or the load is overloaded, the Internet terminal can be switched to other terminals in time.
  • the wireless router to ensure the reliability and stability of the Internet access terminal, it is also beneficial to achieve load balancing and reduce resource waste.
  • An embodiment of the present invention provides a method for implementing handover of an Internet terminal, which is applied to a second wireless router that receives a request from a first wireless router to switch an Internet terminal.
  • the method includes steps S801-S802:
  • Step S801 When the first wireless router requests to switch the Internet access terminal to the second wireless router, the second wireless router determines whether the current network carrying condition of the second wireless router meets the predetermined Internet terminal switching condition.
  • the second wireless router When the first wireless router detects that it is unable to access the Internet or is overloaded, the second wireless router that has established the trust relationship may request to switch the Internet terminal user to the second wireless router, and the second wireless router determines its current network carrying. Whether the status can accept the Internet terminal that the first wireless router needs to switch.
  • the network carrying status refers to the network status and load status of the wireless router. For the network status, it is generally determined whether the Internet is available. For the load situation, it is generally determined whether the load is overloaded.
  • step S802 when the result of the determination is that the current network carrying condition of the network meets the predetermined switching condition of the Internet access terminal, at least part of the Internet access terminal that the first wireless router needs to switch is accepted and carried.
  • the second wireless path confirms that the first wireless router needs to switch the Internet terminal, accepting and carrying at least part of the Internet terminal that the first wireless router needs to switch, wherein the reason for saying "at least part of the Internet terminal" is because of the possibility There is an overload condition when the second wireless router accepts all the Internet terminals that need to be switched by the first wireless router. Therefore, only some of the Internet terminals that need to be switched by the first wireless route can be accepted at this time, and the first wireless router needs to continue searching. Accept the remaining Internet terminals that need to be switched.
  • the Internet terminal that needs to be switched carried by the first wireless router is all the Internet access terminals; when the first wireless router is overloaded, the Internet terminal that needs to be switched carried by the first wireless router is overloaded. Range of internet terminals.
  • step S800 the method provided by the embodiment of the present invention further includes step S800:
  • Step S800 Establish a trust relationship with the first wireless router in advance.
  • step 800 may include steps S8001-S8002:
  • Step S8001 Receive a request message for establishing a trust relationship sent by the first wireless router.
  • the administrator may enter an interface for establishing a trust relationship of the first wireless router, where one or more other wireless routers searchable by the first wireless router exist, and corresponding to each searched wireless
  • the router has a virtual button for sending a request message, and the administrator can trigger the sending of the request message according to actual needs.
  • other wireless routers ie, the second wireless router
  • the administrators of other wireless routers can according to actual needs. Choose to agree or reject.
  • Step S8002 If it is agreed to establish a trust relationship, send a response message agreeing to establish a trust relationship to the first wireless router, so that the trust relationship is successfully established.
  • the second wireless router and the first wireless router further send their identifiers to each other to enable the other party to store, so as to facilitate the established trust.
  • the wireless router can store the received identifiers in a table called a trust list for convenient storage and query.
  • the identifier includes at least: a service set identifier SSID information and an encrypted password information.
  • the so-called encrypted password is an encrypted password for the identifier when the identifier is sent, so as to ensure secure switching of the Internet terminal and avoid information leakage.
  • the second wireless router needs to perform real-time or timing
  • the first wireless router that has established the trust relationship sends its own state information to enable the first wireless router to know and store the latest state of the second wireless router (where the newly received state information overwrites the previously stored state information)
  • the first wireless router also sends its own status information to the second wireless router in real time or timing, so that the second wireless router knows and stores the latest status of the first wireless router.
  • the status information includes at least: network signal strength information and remaining available bandwidth information.
  • step S801 may include steps S8011-S8012:
  • Step S8011 Receive a request message for switching the Internet terminal sent by the first wireless router that has established a trust relationship.
  • the second wireless router When the first wireless router detects that it is unable to access the Internet or is overloaded, the second wireless router that has established the trust relationship may send a request message for switching the Internet terminal to request the second wireless router to accept the Internet terminal that needs to be switched.
  • the request message for switching the Internet terminal includes MAC address information of the Internet terminal that needs to be switched.
  • step S8012 it is determined whether the current network carrying condition of the user meets the predetermined online terminal switching condition.
  • step S802 may include steps S8021-S8022:
  • Step S8021 Send a confirmation switching message to the first wireless router when the result of the determination is that the current network carrying condition of the network meets the predetermined Internet terminal handover condition.
  • Step S8022 Accept and carry at least part of the Internet access terminal that the first wireless router needs to switch.
  • steps S8011 to S8012 and steps S8021 to S8022 send a request message to the second wireless router through the first wireless router, and then perform handover when the second wireless router agrees to switch, so that the accuracy of the handover can be improved.
  • step S8022 may include steps S80221-S80222:
  • Step S80221 If the current network is normal and no overload condition occurs, and if all the first wireless routers need to switch the Internet terminal to be switched, the Internet terminal that needs to be switched by all the first wireless routers is accepted and recorded.
  • Step S80222 If the current network is normal and no overload condition occurs, and if an overload condition occurs when all the first wireless routers need to switch the Internet terminal, the Internet terminal that needs to be switched by the first wireless router is accepted and recorded.
  • the second wireless router After receiving the request message for switching the Internet terminal sent by the first wireless router, the second wireless router determines the network carrying condition of the second wireless router, first determines whether it can access the Internet, and if it can access the Internet, continues to determine its own load. In the case that, according to the MAC address information in the switching Internet terminal request message, it is determined that when all the Internet terminals that need to be switched by the first wireless router are received, and are not overloaded, all the Internet terminals that need to be switched by the first wireless router are accepted and carried.
  • the part of the Internet terminal that the first wireless router needs to switch is received and carried, and the first wireless router also It is necessary to continue to select other wireless routers that have established a trust relationship to send a request message for switching the Internet terminal, so as to complete the handover of the remaining Internet terminals that need to be switched, and then the analogy will not be repeated.
  • the second wireless router In the process of switching the Internet terminal, the second wireless router needs to record the MAC address information of the Internet terminal that the first wireless router has switched to and the identifier information of the first wireless router, and the first wireless router also needs to move.
  • the MAC address information of the Internet terminal on the second wireless router and the identifier information of the second wireless router are recorded.
  • the MAC of the internet terminal The address information and the identifier information of the corresponding wireless router can be correspondingly recorded in a transfer list for convenient query.
  • the first wireless router can notify the mobile terminal that it bears to be switched to the second wireless router by using the APP push mode.
  • the first wireless router and the second wireless router have established a trust relationship, so the APP The above is the default to agree to switch.
  • the method provided by the embodiment of the present invention further includes steps S803-S804:
  • Step S803 receiving a request message sent back to the Internet terminal sent by the first wireless router.
  • the request message includes the MAC address information of the request to return to the Internet terminal.
  • the first wireless router When the first wireless router detects that it can connect to the network or is no longer overloaded, it queries whether to switch the Internet terminal to another wireless router. If the Internet terminal has been switched to another wireless router, it is switched according to the record. The MAC address information of the Internet terminal and the identifier information of the target wireless router that is switched to send a request message to the target wireless router to return to the Internet terminal.
  • Step S804 Matching the MAC address information of the request returned to the Internet terminal to the MAC address information of the Internet terminal to which the first wireless router is switched.
  • the second wireless router After receiving the request message sent back to the Internet terminal sent by the first wireless router, the second wireless router also queries whether the Internet terminal of the first wireless router is received, that is, the request in the request message is returned to the MAC address information of the Internet terminal. Matching with the recorded MAC address information of the connected terminal corresponding to the first wireless router.
  • Step S806 If the matching is successful, return the corresponding Internet terminal to the first wireless router.
  • the second wireless router queries the Internet terminal that has received the first wireless router, the corresponding Internet terminal is returned to the first wireless router, and the Internet terminal can be notified by the APP push mode to return a message, generally due to the second wireless router and the A wireless router has established a trust relationship, so the APP agrees to return by default.
  • the method for implementing the switching of the Internet terminal provided by the embodiment of the present invention can establish the trust relationship between the wireless routers, so that when one of the wireless routers cannot access the Internet or the load is overloaded, the Internet terminal can be switched to other terminals in time.
  • the wireless router to ensure the reliability of the Internet access terminal sexuality and stability, while also facilitating load balancing and reducing waste of resources.
  • the embodiment of the present invention provides a device for implementing the switching of the Internet access terminal, which is applied to the first wireless router that needs to switch the Internet access terminal.
  • the device includes: a first monitoring module 1401 and a switching module 1402.
  • the first monitoring module 1401 is configured to monitor the current network carrying condition.
  • the first wireless router can monitor its own network carrying status in real time or by the first monitoring module 1401.
  • the network carrying status refers to the network status and load status of the wireless router. For the network status, it is generally monitored whether the Internet can be accessed. For the load situation, it is generally monitored whether the load is overloaded.
  • the switching module 1402 is configured to: when the current network carrier is abnormal, switch the online terminal that needs to be switched to the one or more second wireless routers that have established the trust relationship in advance, so that the switched Internet terminal passes the Two wireless routers make network connections.
  • the first wireless router detects that the Internet access is too slow due to network failure or self-device failure, or because the number of users carrying the Internet access terminal is too heavy, and the network speed is too slow, in order to ensure stable Internet access for the Internet terminal user, All or part of the Internet terminal user switches to at least one second wireless router that has established a trust relationship, so that the switched Internet terminal performs network connection through the second wireless router.
  • the second wireless router that receives the request from the first wireless router to switch the Internet terminal first determines whether the network carrying condition of the first wireless router can accept the Internet terminal that the first wireless router needs to switch, and if it can accept that the first wireless router needs to switch.
  • the Internet terminal accepts and carries at least part of the Internet terminal that the first wireless router needs to switch.
  • the reason why the "at least part of the Internet terminal" is said is that there may be a second wireless router that accepts all the Internet terminals that need to be switched by the first wireless router. In the event of an overload condition, only some of the Internet terminals that need to be switched by the first wireless router can be accepted at this time, and the first wireless router needs to continue to search for an Internet terminal that needs to be switched.
  • the first wireless router when the first wireless router is unable to access the Internet, the first wireless router carries the Internet terminal that needs to be switched as all the Internet terminals; when the first wireless router is overloaded, the first wireless router The Internet access terminal that needs to be switched is an Internet terminal that exceeds the load range.
  • the switching module 1402 includes:
  • the first sending sub-module 14021 is configured to send a request message for switching the Internet access terminal to one or more second wireless routers that have established a trust relationship in advance when an abnormality occurs in the current network.
  • the first wireless router When the first wireless router detects that the network is unable to access the Internet due to a network failure or a device failure, or the overload occurs due to excessive load of the Internet access terminal, and the network speed is too slow, the first sending module 1402 may establish a trust relationship.
  • the one or more second wireless routers send a request message for switching the Internet terminal.
  • the switching sub-module 14022 is configured to receive the acknowledgment switching message fed back by the second wireless router according to the request message, and switch the online terminal that needs to be switched to the second wireless router, so that the switched Internet terminal performs network connection through the second wireless router. .
  • the second wireless router that receives the first wireless router request message confirms that its network carrying condition can accept the Internet terminal that the first wireless router needs to switch, sends an acknowledgement handover message to the first wireless router, accepting and carrying the first wireless router. At least part of the Internet terminal that needs to be switched.
  • the second wireless router By sending a request message to the second wireless router, the second wireless router agrees to switch again, which can improve the accuracy of the handover.
  • the apparatus further includes:
  • the first trust establishing module 1403 is configured to establish a trust relationship with the second wireless router in advance.
  • the first trust establishing module 1403 includes:
  • the second sending submodule 14031 is configured to send a request message for establishing a trust relationship to the second wireless router.
  • the administrator may enter an interface for establishing a trust relationship of the first wireless router, where one or more other wireless routers searchable by the first wireless router exist, and corresponding to each searched wireless
  • the router has a virtual button for sending a request message, and the administrator can trigger the sending of the request message according to actual needs.
  • a first trust establishment sub-module 14032 configured to receive the second wireless router when sent When the response message of the trust relationship is established, the trust relationship is established successfully.
  • the apparatus further includes:
  • the first sending module 1404 is configured to send its own identifier to the second wireless router that has established a trust relationship, so that the second wireless router stores the received identifier.
  • the first wireless router After the trust relationship is successfully established, the first wireless router needs to send its own identifier to the second wireless router that has established the trust relationship, so that the other party stores, and it is convenient to identify and query other wireless routers that have established a trust relationship.
  • the wireless router can store the received identifiers in a table called a trust list for convenient storage and query.
  • the identifier includes at least: a service set identifier SSID information and an encrypted password information.
  • the so-called encrypted password is the encrypted password for the identifier when the identifier is sent. This ensures the secure switching of the Internet terminal and avoids information leakage.
  • the apparatus further includes:
  • the first receiving module 1405 is configured to receive its own identifier sent by the second wireless router that has established the trust relationship.
  • the first storage module 1406 is configured to store the identifier of the received second wireless router that has established the trust relationship.
  • the second wireless router that has established a trust relationship with the first wireless router also needs to send its own identifier to the first wireless router, so that the first wireless router can conveniently query and save the Which other wireless routers have established a trust relationship.
  • the wireless router can store the received identifiers in a table called a trust list for convenient storage and query.
  • the identifier includes at least: a service set identifier SSID information and an encrypted password information.
  • the so-called encrypted password is the encrypted password for the identifier when the identifier is sent. This ensures the secure switching of the Internet terminal and avoids information leakage.
  • the apparatus further includes:
  • the second sending module 1407 is configured to send its own state information to the second wireless router in real time or timing, so that the second wireless router stores the received state information.
  • the status information includes at least: network signal strength information and remaining available bandwidth information.
  • the switching of the Internet terminal can be completed quickly.
  • the first wireless router After the first wireless router establishes a trust relationship with the second wireless router, the first wireless router needs to establish a trust relationship in real time or periodically. All of the second wireless routers transmit their own status information to enable the second wireless router to know and store the latest status of the first wireless router (where the newly received status information overwrites the previously stored status information). In actual operation, the status information of other wireless routers that have received the established trust relationship may be stored in the trust list.
  • the apparatus further includes:
  • the second receiving module 1408 is configured to receive status information about itself sent by the second wireless router.
  • the second storage module 1409 is configured to store the received status information of the second wireless router.
  • the status information includes at least: network signal strength information and remaining available bandwidth information.
  • the switching of the Internet terminal can be completed quickly.
  • the second wireless router After the first wireless router establishes a trust relationship with the second wireless router, the second wireless router also needs to be in real time or timed.
  • a wireless router transmits its own status information so that the first wireless router knows and stores the latest status of the second wireless router (where the newly received status information overwrites the previously stored status information).
  • the status information of other wireless routers that have received the established trust relationship may be stored in the trust list.
  • the first sending submodule 14021 includes:
  • the first obtaining unit 140211 is configured to acquire a state stability degree value of each second wireless router that has established a trust relationship.
  • the first obtaining unit 140211 includes:
  • Level division sub-unit 1402111 set to store all of the second established trust relationships
  • the network signal strength and the remaining available bandwidth of the wireless router are respectively classified according to a preset level division rule.
  • each signal strength grid can be used as a level, with a total of multiple signal strength grids, and the number of levels.
  • the remaining available bandwidth can be divided into five levels according to the bandwidth of 1-5M, 5-10M, 10-15M, 15-20M, and 20M.
  • partitioning rules can be set according to actual needs.
  • P represents a state stability degree value
  • S represents a network state of a second wireless router that has established a trust relationship
  • B represents a level of remaining available bandwidth of a second wireless router that has established a trust relationship.
  • the first sending unit 140212 is configured to determine, in the second wireless router, the one or more target wireless routers that send the request message for switching the Internet terminal according to the order of the state stability degree value.
  • the wireless router with the highest state stability value is first selected to send a request message for switching the Internet terminal, and if the wireless router with the highest state stability value rejects the request of the first wireless router, The wireless router with the second largest state stable value sends a request message for switching the Internet terminal, and so on.
  • the switching submodule 14022 includes:
  • the selecting unit 140221 is configured to select the second wireless router with the largest state stability value as the first target router.
  • the second sending unit 140222 is configured to send a request message for switching the internet terminal to the first target wireless router.
  • the request message includes media access control MAC address information of the internet terminal that needs to be switched.
  • the first switching unit 140223 is configured to: when the first target wireless router agrees to switch the Internet access terminal In the request message, some or all of the Internet terminals that need to be switched are switched to the first target wireless router, and the MAC address information of the switched Internet terminal and the identifier information of the first target wireless router are recorded.
  • the selection unit 140221 selects the second wireless router with the highest state stability degree value as the first target router, and the second sending unit 140222 sends the request message for switching the Internet access terminal to the first target wireless router, and the first target wireless router receives the first message.
  • the network carrying situation of the Internet terminal is judged, and it is first determined whether it can access the Internet. If the Internet access is available, the user continues to determine the load status of the Internet.
  • the MAC address information determines that when all the Internet terminals that need to be switched by the first wireless router are accepted, and are not overloaded, all the Internet terminals that need to be switched by the first wireless router are accepted and carried, and the first switching unit 140223 will need The switched Internet terminals all switch to the first target wireless router; if it is determined that only the part of the Internet terminals that the first wireless router needs to switch can be accepted according to the MAC address information in the switching Internet terminal request message, the first wireless router needs to be accepted and carried. Switch Internet terminal portion, the first switching section 140,223 will require access terminal switching unit is switched to the first target wireless router. At the same time, the first wireless router selects the second target wireless router to send a request message for switching the Internet terminal according to the state stability degree value, so as to complete the switching of the remaining Internet terminal that needs to be switched, and then the analogy will not be repeated.
  • the first target wireless router needs to record the MAC address information of the Internet terminal that the first wireless router has switched to and the identifier information of the first wireless router, and the first wireless router also needs to The MAC address information of the Internet terminal that is moved out to the first target wireless router and the identifier information of the first target wireless router are recorded.
  • the MAC address information of the Internet terminal and the corresponding identifier information of the wireless router may be recorded in a transfer list to facilitate the query.
  • the first wireless router can notify the mobile terminal that it bears to be switched to the message of the first target wireless router by using the APP push mode.
  • the first wireless router and the first target wireless router have established a trust relationship. Therefore, the APP agrees to switch by default.
  • the second switching unit 140224 is configured to: when the first target wireless router refuses to switch the request message of the Internet access terminal, find the second target wireless router in the second wireless router according to the state stability degree value, to complete the switching of the Internet access terminal.
  • the first target wireless router receives the request message for switching the Internet terminal sent by the first wireless router, it determines that the user cannot access the Internet or can access the Internet but is overloaded, that is, the Internet terminal that needs to be switched by the first wireless router cannot be received. And sending a reject message to the first wireless router. After receiving the reject message, the first wireless router may search for the second target wireless router in the second wireless router according to the state stability level value by using the second switching unit 140224 to complete the Internet access. Switching of the terminal. In the reject message, the network carrying status information of the first target wireless router may be carried to inform the first wireless router of the specific situation, and the first wireless router may mark the first target wireless router as “unconnected” or “corresponding”. overload".
  • the apparatus further includes:
  • the second monitoring module 1410 is configured to continue to monitor the current network carrying condition.
  • the first returning module 1411 is configured to, when the network carrier returns to normal, send a request message to the target wireless router to return to the target terminal according to the recorded MAC address information of the switched Internet terminal and the identifier information of the target wireless router that is switched to. In order to return the target wireless router to the corresponding Internet terminal.
  • the first wireless router When the first wireless router detects that the network can be connected to the network or is no longer overloaded by the second monitoring module 1410, it queries whether the Internet terminal is switched to another wireless router, if the Internet terminal has been switched to another wireless router.
  • the returning module 1411 sends a request message for returning to the Internet terminal to the target wireless router according to the recorded MAC address information of the switched Internet terminal and the identifier information of the target wireless router that is switched, and the target wireless router also queries whether Receiving the Internet terminal of the first wireless router, if it is the Internet terminal receiving the first wireless router, returning the corresponding Internet terminal to the first wireless router, and simultaneously informing the Internet terminal to return the message through the APP push mode, generally due to A wireless router and the target wireless router have established a trust relationship, so the APP agrees to return by default.
  • the device for implementing the switching of the Internet terminal can establish the trust relationship between the wireless routers, so that when one of the wireless routers cannot access the Internet or the load is overloaded, the Internet terminal can be switched to other terminals in time.
  • the wireless router to ensure the reliability and stability of the Internet access terminal, it is also beneficial to achieve load balancing and reduce resource waste.
  • the request message includes MAC address information of the internet terminal that is switched to the target wireless router.
  • the embodiment of the present invention provides a device for implementing the switching of the Internet terminal, and is applied to the second wireless router that receives the request of the first wireless router to switch the Internet access terminal.
  • the device includes: a determining module 1601 and an accepting bearer module 1602.
  • the determining module 1601 is configured to: when the first wireless router requests to switch the internet terminal to the second wireless router, the second wireless router determines whether the current network carrying condition of the second wireless router meets a predetermined online terminal switching condition.
  • the second wireless router When the first wireless router detects that it is unable to access the Internet or is overloaded, the second wireless router that has established the trust relationship may request to switch the Internet terminal user to the second wireless router, and the second wireless router determines itself through the determining module 1601. Whether the current network carrying condition can accept the Internet terminal that the first wireless router needs to switch.
  • the network carrying status refers to the network status and load status of the wireless router. For the network status, it is generally determined whether the Internet is available. For the load situation, it is generally determined whether the load is overloaded.
  • the receiving bearer module 1602 is configured to accept and carry at least part of the internet terminal that the first wireless router needs to switch when the determination result is yes.
  • the receiving bearer module 1602 accepts and carries at least part of the Internet terminal that the first wireless router needs to switch, wherein the reason for saying at least part of the Internet terminal is "Because there may be an overload situation when the second wireless router accepts all the Internet terminals that need to be switched by the first wireless router, so only some of the Internet terminals that need to be switched by the first wireless route can be accepted at this time, and the first wireless router is It is necessary to continue to search for an Internet terminal that accepts the remaining needs to be switched.
  • the Internet terminal that needs to be switched carried by the first wireless router is all the Internet access terminals; when the first wireless router is overloaded, the Internet terminal that needs to be switched carried by the first wireless router is overloaded. Range of internet terminals.
  • the determining module 1601 includes:
  • the receiving sub-module 16011 is configured to receive a request message for switching the Internet terminal sent by the first wireless router that has established a trust relationship.
  • the second wireless router When the first wireless router detects that it is unable to access the Internet or is overloaded, the second wireless router that has established the trust relationship may send a request message for switching the Internet terminal to request the second The line router accepts the Internet terminal that needs to be switched.
  • the request message for switching the Internet terminal includes MAC address information of the Internet terminal that needs to be switched.
  • the determining sub-module 16012 is configured to determine whether the current network carrying condition of the user meets the predetermined Internet terminal switching condition.
  • the second wireless router may determine, by the determining module 16012, whether the current network carrying condition of the first wireless router can accept the Internet terminal that the first wireless router needs to switch.
  • the accepting bearer module 1602 includes:
  • the sending sub-module 16021 is configured to send an acknowledgement handover message to the first wireless router when the result of the determination is that the current network carrying condition of the network meets the predetermined Internet terminal handover condition.
  • the receiving bearer module 16022 is configured to accept and carry at least part of the internet terminal that the first wireless router needs to switch.
  • the sending sub-module 16021 sends an acknowledgement switching message to the first wireless router, and the accepting sub-module 16022 accepts and carries the first wireless router to switch. At least part of the Internet terminal.
  • the foregoing sends a request message to the second wireless router through the first wireless router, and performs switching again when the second wireless router agrees to switch, so that the accuracy of the handover can be improved.
  • the apparatus further includes:
  • the second trust establishing module 1603 is configured to establish a trust relationship with the first wireless router in advance.
  • the second trust establishing module 1603 includes:
  • the second receiving submodule 16031 is configured to receive a request message for establishing a trust relationship sent by the first wireless router.
  • the administrator may enter an interface for establishing a trust relationship of the first wireless router, where one or more other wireless routers searchable by the first wireless router exist, and corresponding to each searched wireless
  • the router has a virtual button for sending a request message, and the administrator can trigger the sending of the request message according to actual needs, while other wireless routers (ie, the second wireless router)
  • the administrators of other wireless routers can choose to agree or reject according to actual needs.
  • the second trust establishment sub-module 16032 is configured to, when agreeing to establish a trust relationship, send a response message to the first wireless router to agree to establish a trust relationship, so that the trust relationship is successfully established.
  • the apparatus further includes:
  • the third sending module 1604 is configured to send its own identifier to the first wireless router, so that the first wireless router stores the received identifier.
  • the second wireless router After the trust relationship is successfully established, the second wireless router needs to send its own identifier to the other party, so that the other party stores, and facilitates identification and query of other wireless routers that have established a trust relationship.
  • the wireless router can store the received identifiers in a table called a trust list for convenient storage and query.
  • the identifier includes at least: a service set identifier SSID information and an encrypted password information.
  • the so-called encrypted password is an encrypted password for the identifier when the identifier is sent, so as to ensure secure switching of the Internet terminal and avoid information leakage.
  • the apparatus further includes:
  • the third receiving module 1605 is configured to receive an identifier of its own sent by the first wireless router.
  • the third storage module 1606 is configured to store the identifier of the received first wireless router.
  • the first wireless router After the trust relationship is established successfully, the first wireless router also needs to send its own identifier to the second wireless router, so that the other party stores, and facilitates identification and query of other wireless routers that have established a trust relationship.
  • the wireless router can store the received identifiers in a table called a trust list for convenient storage and query.
  • the identifier includes at least: a service set identifier SSID information and an encrypted password information.
  • the so-called encrypted password is an encrypted password for the identifier when the identifier is sent, so as to ensure secure switching of the Internet terminal and avoid information leakage.
  • the device further includes:
  • the fourth sending module 1607 is configured to send its own state information to the first wireless router in real time or timing, so that the first wireless router stores the received state information.
  • the status information includes at least: network signal strength information and remaining available bandwidth information.
  • the second wireless router In order to ensure that when the wireless router's network carrying condition is abnormal, it can be quickly completed. After the second wireless router establishes a trust relationship with the first wireless router, the second wireless router needs to send its own state information to the first wireless router that has established the trust relationship through the fifth sending module 1607 in real time or periodically. In order to enable the first wireless router to know and store the latest state of the second wireless router (where the newly received state information will overwrite the previously stored state information), in actual operation, the received established trust may be received. The status information of other wireless routers of the relationship is stored in the trust list.
  • the apparatus further includes:
  • the fourth receiving module 1608 is configured to receive status information about itself sent by the first wireless router.
  • the fourth storage module 1609 is configured to store and update status information of the received first wireless router.
  • the status information includes at least: network signal strength information and remaining available bandwidth information.
  • the switching of the Internet terminal can be completed quickly.
  • the first wireless router also sends its own state information to the second wireless router in real time or periodically, by the second wireless router.
  • the fourth storage module 1609 stores the received status information of the first wireless router, so that the second wireless router knows the latest status of the first wireless router.
  • the status information includes at least: network signal strength information and remaining available bandwidth information. In actual operation, the status information of other wireless routers that have received the established trust relationship may be stored in the trust list.
  • the request message for switching the Internet terminal includes MAC address information of the Internet terminal that needs to be switched.
  • the accepting bearer module 16022 includes:
  • the first receiving bearer unit 160221 is configured to receive and carry all the first wireless routers when the current network is normal and no overload condition occurs, and if all the first wireless routers need to switch the Internet terminals are not overloaded. Switching the Internet terminal, and recording the MAC address information of the connected terminal and the identifier information of the first wireless router.
  • the second receiving bearer unit 160222 is configured to accept and carry part of the first wireless router when the current network is normal and no overload condition occurs, and if an overload condition occurs when all the first wireless routers need to switch the Internet terminal Switch the internet terminal and record the switch to The MAC address information of the Internet terminal and the identifier information of the first wireless router.
  • the second wireless router After receiving the request message for switching the Internet terminal sent by the first wireless router, the second wireless router determines the network carrying condition of the second wireless router, first determines whether it can access the Internet, and if it can access the Internet, continues to determine its own load. In the case that, according to the MAC address information in the switching Internet terminal request message, it is determined that when all the Internet terminals that need to be switched by the first wireless router are received, and are not overloaded, all the Internet terminals that need to be switched by the first wireless router are accepted and carried.
  • the part of the Internet terminal that the first wireless router needs to switch is received and carried, and the first wireless router also It is necessary to continue to select other wireless routers that have established a trust relationship to send a request message for switching the Internet terminal, so as to complete the handover of the remaining Internet terminals that need to be switched, and then the analogy will not be repeated.
  • the second wireless router In the process of switching the Internet terminal, the second wireless router needs to record the MAC address information of the Internet terminal that the first wireless router has switched to and the identifier information of the first wireless router, and the first wireless router also needs to move.
  • the MAC address information of the Internet terminal on the second wireless router and the identifier information of the second wireless router are recorded.
  • the MAC address information of the Internet terminal and the identifier information of the corresponding wireless router may be correspondingly recorded in a transfer list for convenient query.
  • the first wireless router can notify the mobile terminal that it bears to be switched to the second wireless router by using the APP push mode.
  • the first wireless router and the second wireless router have established a trust relationship, so the APP The above is the default to agree to switch.
  • the apparatus further includes:
  • the fifth receiving module 1610 is configured to receive a request message sent back to the Internet terminal sent by the first wireless router.
  • the request message includes the MAC address information of the request to return to the Internet terminal.
  • the first wireless router When the first wireless router detects that it can connect to the network or is no longer overloaded, it queries whether to switch the Internet terminal to another wireless router. If yes, according to the recorded MAC address information of the switched Internet terminal and switching The identifier information of the target wireless router to the destination wireless router sends a request message to the Internet terminal.
  • the matching module 1611 is configured to match the MAC address information of the request returned to the Internet terminal in the request message with the MAC address information of the Internet terminal to which the corresponding first wireless router is switched.
  • the second wireless router After receiving the request message sent back to the Internet terminal sent by the first wireless router, the second wireless router also queries whether the Internet terminal of the first wireless router is received, that is, the request in the request message is returned to the MAC address information of the Internet terminal. Matching with the recorded MAC address information of the connected terminal corresponding to the first wireless router.
  • the second returning module 1612 is configured to return the corresponding Internet terminal to the first wireless router when the matching is successful.
  • the second wireless router queries the Internet terminal that has received the first wireless router, the corresponding Internet terminal is returned to the first wireless router, and the Internet terminal can be notified by the APP push mode to return a message, generally due to the second wireless router and the A wireless router has established a trust relationship, so the APP agrees to return by default.
  • the device for implementing the switching of the Internet terminal can establish the trust relationship between the wireless routers, so that when one of the wireless routers cannot access the Internet or the load is overloaded, the Internet terminal can be switched to other terminals in time.
  • the wireless router to ensure the reliability and stability of the Internet access terminal, it is also beneficial to achieve load balancing and reduce resource waste.
  • a computer readable storage medium storing computer executable instructions, the computer executable instructions being implemented by a processor to implement the method for implementing internet terminal switching.
  • all or part of the steps of the above embodiments may also be implemented by using an integrated circuit. These steps may be separately fabricated into individual integrated circuit modules, or multiple modules or steps may be fabricated into a single integrated circuit module. achieve.
  • the device/function module/functional unit in the above embodiments may be implemented by using a general-purpose computing device, which may be concentrated on a single computing device or distributed in multiple computing devices. On the network.
  • the device/function module/functional unit in the above embodiment When the device/function module/functional unit in the above embodiment is implemented in the form of a software function module and sold or used as a stand-alone product, it can be stored in a computer readable storage medium.
  • the above mentioned computer readable storage medium may be a read only memory, a magnetic disk or an optical disk or the like.

Landscapes

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

Abstract

Provided are a method and device realizing switching required by an Internet-connected terminal. The method applied to a first wireless router side of an Internet-connected terminal requiring switching comprises: monitoring a current network transport state; and if an abnormality occurs in the current network transport state, switching the terminal borne by the first router to one or more second wireless routers with which a trusted relationship has been established in advance, such that the terminal establishes a network connection by means of the second wireless routers.

Description

一种实现上网终端切换的方法及装置Method and device for realizing switching of internet terminal 技术领域Technical field
本申请涉及但不限于通信技术领域,尤其涉及一种实现上网终端切换的方法及装置。The present application relates to, but is not limited to, the field of communications technologies, and in particular, to a method and apparatus for implementing switching of an internet terminal.
背景技术Background technique
随着电子科技的发展,网络已经得到了广泛的覆盖,智能手机也得到了广泛的普及,上网也已经成为智能手机的一项重要用途,且提供较快的网速和保障上网终端稳定上网成为一项重要的要求,但是对于一些存在多台路由器终端设备的办公场合或公共场合,有时会由于某些路由器终端设备出现设备故障、网络故障或用户过载等情况造成接入的上网终端暂时无法上网或者网速过慢的问题,且用户也因无法知晓哪台路由器终端设备可用,而不能快速的选择其他可用的路由器终端设备,从而影响用户的使用体验。With the development of electronic technology, the network has been widely covered, and smartphones have also been widely popularized. Internet access has become an important use of smart phones, and it provides faster network speeds and secures Internet terminals to become stable. An important requirement, but for some office or public places where there are multiple router terminal devices, sometimes the access terminal may not be able to access the Internet due to device failure, network failure or user overload. Or the problem that the network speed is too slow, and the user cannot know which router terminal device is available, and cannot quickly select other available router terminal devices, thereby affecting the user experience.
发明内容Summary of the invention
以下是对本文详细描述的主题的概述。本概述并非是为了限制权利要求的保护范围。The following is an overview of the topics detailed in this document. This Summary is not intended to limit the scope of the claims.
本发明实施例提供了一种实现上网终端切换的方法及装置,解决了相关技术中当路由器终端设备因设备故障、网络故障或超负荷等原因造成无法保障上网终端快速、稳定上网的问题。The embodiment of the invention provides a method and a device for implementing the switching of the Internet terminal, and solves the problem that the router terminal device cannot guarantee the fast and stable Internet access of the Internet terminal due to equipment failure, network failure or overload.
一种实现上网终端切换的方法,应用于需要切换上网终端的第一无线路由器,包括:A method for implementing switching of an Internet terminal is applied to a first wireless router that needs to switch an Internet terminal, including:
监控当前的网络运载状况。Monitor current network traffic conditions.
当当前的网络运载出现异常时,则将自身承载的需要切换的上网终端切换至已预先建立信任关系的一个或多个第二无线路由器上,使切换的上网终端通过所述第二无线路由器进行网络连接。When the current network carrier is abnormal, the network terminal that needs to be switched is switched to one or more second wireless routers that have established a trust relationship in advance, so that the switched Internet terminal performs the second wireless router. Internet connection.
可选地,所述当当前的网络运载出现异常时,则将自身承载的需要切换的上网终端切换至已预先建立信任关系的一个或多个第二无线路由器上包括: Optionally, when the current network carrier is abnormal, switching the network terminal that needs to be handed over to the one or more second wireless routers that have established the trust relationship in advance includes:
当当前的网络运载出现异常时,则向已预先建立信任关系的一个或多个第二无线路由器发送切换上网终端的请求消息。When the current network carrier is abnormal, the request message for switching the Internet terminal is sent to one or more second wireless routers that have established a trust relationship in advance.
接收所述第二无线路由器根据所述请求消息反馈的确认切换消息,将自身承载的需要切换的上网终端切换至所述第二无线路由器,使切换的上网终端通过所述第二无线路由器进行网络连接。Receiving, by the second wireless router, the acknowledgment switching message fed back by the request message, switching the online terminal that needs to be switched to the second wireless router, so that the switched Internet terminal performs the network through the second wireless router. connection.
可选地,所述方法还包括:在监控当前的网络运载状况之前,预先与所述第二无线路由器建立信任关系。Optionally, the method further includes: establishing a trust relationship with the second wireless router in advance before monitoring the current network carrying condition.
可选地,所述预先与所述第二无线路由器建立信任关系包括:Optionally, the establishing a trust relationship with the second wireless router in advance includes:
向所述第二无线路由器发送建立信任关系的请求消息。Sending a request message for establishing a trust relationship to the second wireless router.
如果接收到所述第二无线路由器发送的同意建立信任关系的应答消息,则信任关系建立成功。If the response message sent by the second wireless router agreeing to establish a trust relationship is received, the trust relationship is successfully established.
可选地,所述方法还包括:在所述信任关系建立成功之后,发送自身的标示符至已建立信任关系的所述第二无线路由器,令所述第二无线路由器对接收到的所述标示符进行存储。Optionally, the method further includes: after the trust relationship is successfully established, sending its identifier to the second wireless router that has established a trust relationship, and causing the second wireless router to receive the received The identifier is stored.
其中,所述标示符中包括:服务集标识SSID信息和加密密码信息。The identifier includes: a service set identifier SSID information and an encrypted password information.
可选地,所述方法还包括:在所述信任关系建立成功之后,接收已建立信任关系的所述第二无线路由器发送的自身的标示符。Optionally, the method further includes: after the trust relationship is successfully established, receiving an identifier of the second wireless router that has established the trust relationship.
将接收到的已建立信任关系的所述第二无线路由器的标示符进行存储。The identifier of the second wireless router that has received the established trust relationship is stored.
其中,所述标示符中包括:服务集标识SSID信息和加密密码信息。The identifier includes: a service set identifier SSID information and an encrypted password information.
可选地,所述方法还包括:在预先与所述第二无线路由器建立信任关系之后,令所述第二无线路由器对接收到的所述状态信息进行存储。Optionally, the method further includes: after establishing a trust relationship with the second wireless router in advance, causing the second wireless router to store the received status information.
其中,所述状态信息包括:网络信号强度信息和剩余可用带宽信息。The status information includes: network signal strength information and remaining available bandwidth information.
可选地,所述方法还包括:在预先与所述第二无线路由器建立信任关系之后,接收所述第二无线路由器实时或定时发送的关于自身的状态信息。Optionally, the method further includes: after establishing a trust relationship with the second wireless router in advance, receiving state information about itself sent by the second wireless router in real time or periodically.
将接收到的所述第二无线路由器的状态信息进行存储。The received status information of the second wireless router is stored.
其中,所述状态信息包括:网络信号强度信息和剩余可用带宽信息。The status information includes: network signal strength information and remaining available bandwidth information.
可选地,所述向已预先建立信任关系的一个或多个第二无线路由器发送 切换上网终端的请求消息包括:Optionally, the sending to the one or more second wireless routers that have established a trust relationship in advance The request message for switching the Internet terminal includes:
获取已建立信任关系的每个所述第二无线路由器的状态稳定程度值Obtaining a state stability degree value of each of the second wireless routers that have established a trust relationship
按照所述状态稳定程度值由大到小的顺序,在所述第二无线路由器中确定发送切换上网终端的请求消息的一个或多个目标无线路由器。One or more target wireless routers transmitting a request message for switching the Internet terminal are determined in the second wireless router in an order of the state stability degree values from large to small.
可选地,所述获取已建立信任关系的每个所述第二无线路由器的状态稳定程度值包括:Optionally, the obtaining a state stability degree value of each of the second wireless routers that have established a trust relationship includes:
将存储的已建立信任关系的所有第二无线路由器的网络信号强度和剩余可用带宽分别按照预设的等级划分规则进行等级划分The network signal strength and the remaining available bandwidth of all stored second wireless routers of the established trust relationship are respectively classified according to a preset hierarchical rule.
根据每个已建立信任关系的第二无线路由器的网络状态所属等级和剩余可用带宽所属等级,利用预设的计算公式计算状态稳定程度值;Calculating a state stability level value according to a level of each network state of each second wireless router that has established a trust relationship and a level of remaining available bandwidth;
其中,所述预设的计算公式包括:P=(S+B)/2;The preset calculation formula includes: P=(S+B)/2;
P表示状态稳定程度值,S表示一已建立信任关系的第二无线路由器的网络信号强度所属等级,B表示一已建立信任关系的第二无线路由器的剩余可用带宽所属等级。P denotes a state stability degree value, S denotes a level of network signal strength of a second wireless router that has established a trust relationship, and B denotes a level of remaining available bandwidth of a second wireless router that has established a trust relationship.
可选地,所述将自身承载的需要切换的上网终端切换至所述第二无线路由器包括:Optionally, the switching the self-hosted internet terminal that needs to be handed over to the second wireless router includes:
选择所述状态稳定程度值最大的第二无线路由器作为第一目标路由器Selecting the second wireless router with the highest state stability value as the first target router
向所述第一目标无线路由器发送切换上网终端的请求消息,其中,所述请求消息中包括需要切换的上网终端的介质访问控制MAC地址信息。And sending, to the first target wireless router, a request message for switching the Internet access terminal, where the request message includes media access control MAC address information of the Internet terminal that needs to be switched.
如果所述第一目标无线路由器同意所述切换上网终端的请求消息,则将部分或全部需要切换的上网终端切换至所述第一目标无线路由器,并记录已切换的上网终端的MAC地址信息和所述第一目标无线路由器的标示符信息。If the first target wireless router agrees to the request message for switching the Internet access terminal, switching some or all of the Internet access terminals that need to be handed over to the first target wireless router, and recording the MAC address information of the switched Internet access terminal and The identifier information of the first target wireless router.
如果所述第一目标无线路由器拒绝所述切换上网终端的请求消息,则根据所述状态稳定程度值在所述第二无线路由器中寻找第二目标无线路由器,以完成上网终端的切换。And if the first target wireless router rejects the request message for switching the Internet access terminal, searching for the second target wireless router in the second wireless router according to the state stability degree value, to complete the switching of the Internet access terminal.
可选地,所述方法还包括:在将自身承载的需要切换的上网终端切换至所述第二无线路由器之后,继续监控当前的网络运载状况。 Optionally, the method further includes: after switching the online terminal that needs to be handed over to the second wireless router, and continuously monitoring the current network carrying condition.
当网络运载恢复正常时,根据记录的已切换的上网终端的MAC地址信息和切换至的目标无线路由器的标示符信息,向所述目标无线路由器发送返回上网终端的请求消息,令所述目标无线路由器返回相应的上网终端,其中,所述请求消息中包括切换至所述目标无线路由器的上网终端的MAC地址信息。When the network carrier returns to normal, sending, according to the recorded MAC address information of the switched Internet terminal and the identifier information of the target wireless router that is switched, to the target wireless router, sending a request message for returning to the Internet terminal, so that the target wireless The router returns a corresponding Internet access terminal, where the request message includes MAC address information of the Internet access terminal that is switched to the target wireless router.
一种实现上网终端切换的方法,应用于接收第一无线路由器切换上网终端请求的第二无线路由器,包括:A method for implementing switching of an Internet terminal is applied to a second wireless router that receives a request from a first wireless router to switch an Internet terminal, including:
当所述第一无线路由器请求切换上网终端到所述第二无线路由器时,所述第二无线路由器判断自身当前的网络运载状况是否符合预定的上网终端切换条件。When the first wireless router requests to switch the Internet access terminal to the second wireless router, the second wireless router determines whether the current network carrying condition of the second wireless router meets the predetermined Internet terminal switching condition.
当判断结果为自身当前的网络运载状况符合预定的上网终端切换条件时,接受并承载所述第一无线路由器需要切换的至少部分上网终端。When the result of the determination is that the current network carrying condition of the network meets the predetermined switching condition of the Internet access terminal, at least part of the Internet access terminal that the first wireless router needs to switch is accepted and carried.
可选地,所述当所述第一无线路由器请求切换上网终端到所述第二无线路由器时,所述第二无线路由器判断自身当前的网络运载状况是否符合预定的上网终端切换条件包括:Optionally, when the first wireless router requests to switch the Internet access terminal to the second wireless router, the second wireless router determines whether the current network carrying condition of the second wireless router meets the predetermined online terminal switching condition, including:
接收已建立信任关系的所述第一无线路由器发送的切换上网终端的请求消息;根据所述请求消息判断自身当前的网络运载状况是否符合预定的上网终端切换条件。Receiving a request message for switching the Internet access terminal sent by the first wireless router that has established a trust relationship; determining, according to the request message, whether the current network carrying condition of the network meets a predetermined online terminal switching condition.
所述当判断结果为自身当前的网络运载状况符合预定的上网终端切换条件时,接受并承载所述第一无线路由器需要切换的至少部分上网终端包括:When the result of the determination is that the current network carrying condition of the network meets the predetermined switching conditions of the Internet access terminal, the at least part of the Internet access terminal that accepts and carries the first wireless router to be switched includes:
当判断结果为自身当前的网络运载状况符合预定的上网终端切换条件时,则向所述第一无线路由器发送确认切换消息;根据所述确认切换消息接受并承载所述第一无线路由器需要切换的至少部分上网终端。When the result of the determination is that the current network carrying condition of the network meets the predetermined Internet terminal switching condition, the acknowledgment switching message is sent to the first wireless router; and the first wireless router needs to be switched according to the acknowledgment switching message. At least part of the Internet terminal.
可选地,所述方法还包括:在接收已建立信任关系的所述第一无线路由器发送的切换上网终端的请求消息之前,预先与所述第一无线路由器建立信任关系。Optionally, the method further includes: establishing a trust relationship with the first wireless router in advance before receiving the request message for switching the Internet terminal sent by the first wireless router that has established the trust relationship.
可选地,所述预先与所述第一无线路由器建立信任关系包括:Optionally, the establishing a trust relationship with the first wireless router in advance includes:
接收所述第一无线路由器发送的建立信任关系的请求消息。 Receiving a request message for establishing a trust relationship sent by the first wireless router.
如果同意建立信任关系,则向所述第一无线路由器发送同意建立信任关系的应答消息,令信任关系建立成功。If it is agreed to establish a trust relationship, a response message agreeing to establish a trust relationship is sent to the first wireless router, so that the trust relationship is successfully established.
可选地,所述方法还包括:在信任关系建立成功之后,发送自身的标示符至所述第一无线路由器,令所述第一无线路由器对接收到的标示符进行存储。Optionally, the method further includes: after the trust relationship is successfully established, sending its own identifier to the first wireless router, so that the first wireless router stores the received identifier.
其中,所述标示符中包括:服务集标识SSID信息和加密密码信息。The identifier includes: a service set identifier SSID information and an encrypted password information.
可选地,所述方法还包括:在信任关系建立成功之后,接收所述第一无线路由器发送的自身的标示符。Optionally, the method further includes: after the trust relationship is successfully established, receiving an identifier of the first wireless router to send the identifier.
将接收到的所述第一无线路由器的标示符进行存储。The received identifier of the first wireless router is stored.
其中,所述标示符中包括:服务集标识SSID信息和加密密码信息。The identifier includes: a service set identifier SSID information and an encrypted password information.
可选地,所述方法还包括:在预先与所述第一无线路由器建立信任关系之后,实时或定时向所述第一无线路由器发送自身的状态信息,令所述第一无线路由器对接收到的状态信息进行存储。Optionally, the method further includes: after establishing a trust relationship with the first wireless router in advance, sending the status information of the first wireless router to the first wireless router in real time or periodically, so that the first wireless router receives the The status information is stored.
其中,所述状态信息包括:网络信号强度信息和剩余可用带宽信息。The status information includes: network signal strength information and remaining available bandwidth information.
可选地,所述方法还包括:在预先与所述第一无线路由器建立信任关系之后,接收所述第一无线路由器实时或定时发送的关于自身的状态信息。Optionally, the method further includes: after establishing a trust relationship with the first wireless router in advance, receiving state information about itself sent by the first wireless router in real time or periodically.
将接收到的所述第一无线路由器的状态信息进行存储和更新。The received status information of the first wireless router is stored and updated.
其中,所述状态信息包括:网络信号强度信息和剩余可用带宽信息。The status information includes: network signal strength information and remaining available bandwidth information.
可选地,所述切换上网终端的请求消息包括需要切换的上网终端的MAC地址信息,所述接受并承载所述第一无线路由器需要切换的至少部分上网终端包括:Optionally, the request message for switching the Internet access terminal includes the MAC address information of the Internet access terminal that needs to be switched, and the at least part of the Internet access terminal that accepts and carries the first wireless router to be switched includes:
如果当前网络正常且未出现超负荷情况,且如果接受全部所述第一无线路由器需要切换的上网终端时也不会超负荷,则接受并承载全部所述第一无线路由器需要切换的上网终端,并记录切换至的上网终端的MAC地址信息和所述第一无线路由器的标示符信息。If the current network is normal and no overload condition occurs, and if all the first wireless routers need to switch the Internet terminal to be switched, the network terminal that accepts the switching of all the first wireless routers is accepted and carried. And recording the MAC address information of the connected terminal and the identifier information of the first wireless router.
如果当前网络正常且未出现超负荷情况,且如果接受全部所述第一无线路由器需要切换的上网终端时会出现超负荷情况,则接受并承载部分所述第 一无线路由器需要切换的上网终端,并记录切换至的上网终端MAC地址信息和所述第一无线路由器的标示符信息。If the current network is normal and there is no overload condition, and if all the first wireless routers need to switch the Internet terminal, an overload situation occurs, then the part of the said A wireless router needs to switch the Internet terminal, and records the MAC address information of the Internet terminal that is switched to and the identifier information of the first wireless router.
可选地,所述方法还包括:在接受并承载部分或全部所述第一无线路由器需要切换的上网终端之后,接收所述第一无线路由器发送的返回上网终端的请求消息,其中,所述请求消息中包括请求返回上网终端的MAC地址信息。Optionally, the method further includes: after receiving and carrying some or all of the Internet terminals that need to be switched by the first wireless router, receiving a request message sent by the first wireless router to return to the Internet terminal, where The request message includes the MAC address information of the request to return to the Internet terminal.
将所述请求消息中的请求返回上网终端的MAC地址信息与已记录的对应所述第一无线路由器的切换至的上网终端的MAC地址信息进行匹配。The MAC address information of the request returned to the Internet terminal in the request message is matched with the recorded MAC address information of the Internet terminal corresponding to the switching of the first wireless router.
如果所述请求消息中的请求返回上网终端的MAC地址信息与已记录的对应所述第一无线路由器的切换至的上网终端的MAC地址信息匹配成功,则将对应所述第一无线路由器的上网终端返回至所述第一无线路由器上。If the MAC address information of the request returned to the Internet terminal in the request message matches the recorded MAC address information of the Internet terminal to which the first wireless router is switched, the Internet access corresponding to the first wireless router is The terminal returns to the first wireless router.
一种实现上网终端切换的装置,应用于需要切换上网终端的第一无线路由器,包括:第一监控模块和切换模块。A device for implementing switching of an Internet terminal is applied to a first wireless router that needs to switch an Internet terminal, and includes: a first monitoring module and a switching module.
第一监控模块,设置为监控当前的网络运载状况。The first monitoring module is configured to monitor the current network carrying condition.
切换模块,设置为当当前的网络运载出现异常时,则将自身承载的需要切换的上网终端切换至已预先建立信任关系的一个或多个第二无线路由器上,令切换的上网终端通过所述第二无线路由器进行网络连接。The switching module is configured to switch the online terminal that needs to be switched to the one or more second wireless routers that have established the trust relationship in advance when the current network carrier is abnormal, so that the switched Internet terminal passes the The second wireless router makes a network connection.
一种实现上网终端切换的装置,应用于接收第一无线路由器切换上网终端请求的第二无线路由器,包括:判断模块和接受承载模块。The device for implementing the switching of the Internet terminal is applied to the second wireless router that receives the request of the first wireless router to switch the Internet access terminal, and includes: a determining module and an accepting carrying module.
判断模块,设置为当所述第一无线路由器请求切换上网终端到所述第二无线路由器时,所述第二无线路由器判断自身当前的网络运载状况是否符合预定的上网终端切换条件。The determining module is configured to: when the first wireless router requests to switch the internet terminal to the second wireless router, the second wireless router determines whether the current network carrying condition of the second wireless router meets a predetermined online terminal switching condition.
接受承载模块,设置为当判断结果为自身当前的网络运载状况符合预定的上网终端切换条件时,则接受并承载所述第一无线路由器需要切换的至少部分上网终端。The receiving module is configured to receive and carry at least part of the Internet terminals that the first wireless router needs to switch when the current network carrying condition meets the predetermined Internet terminal switching condition.
一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令被处理器执行时实现所述的实现上网终端切换的方法。A computer readable storage medium storing computer executable instructions, the computer executable instructions being implemented by a processor to implement the method for implementing internet terminal switching.
本发明实施例的有益效果是: The beneficial effects of the embodiments of the present invention are:
上述技术方案,通过使无线路由器之间建立信任关系,当彼此已建立信任关系中的其中一个无线路由器无法上网或超负荷时,从而在其中一无线路由器无法上网或负载超荷时,能够及时将上网终端切换至其他无线路由器上,以保障上网终端上网的可靠性和稳定性,同时也有利实现负载均衡,减少资源的浪费。In the above technical solution, by establishing a trust relationship between the wireless routers, when one of the wireless routers in the mutual established trust relationship cannot access the Internet or is overloaded, when one of the wireless routers cannot access the Internet or load overload, the wireless router can timely The Internet terminal switches to other wireless routers to ensure the reliability and stability of the Internet access terminal, and also facilitates load balancing and reduces resource waste.
附图概述BRIEF abstract
图1表示本发明第一实施例提供的实现上网终端切换的方法的流程图;FIG. 1 is a flowchart of a method for implementing handover of an internet terminal according to a first embodiment of the present invention;
图2表示本发明第一实施例提供的实现上网终端切换的方法的另一流程图;FIG. 2 is another flowchart of a method for implementing switching of an internet terminal according to the first embodiment of the present invention;
图3表示本发明第一实施例提供的步骤S100的流程图;Figure 3 is a flowchart showing the step S100 provided by the first embodiment of the present invention;
图4表示本发明第一实施例提供的步骤S102的流程图;Figure 4 is a flowchart showing the step S102 provided by the first embodiment of the present invention;
图5表示本发明第一实施例提供的步骤S1021的流程图;Figure 5 is a flowchart showing the step S1021 provided by the first embodiment of the present invention;
图6表示本发明第一实施例提供的步骤S10211的流程图;Figure 6 is a flowchart showing the step S10211 provided by the first embodiment of the present invention;
图7表示本发明第一实施例提供的步骤S1022的流程图;Figure 7 is a flowchart showing the step S1022 provided by the first embodiment of the present invention;
图8表示本发明第二实施例提供的实现上网终端切换的方法的流程图;FIG. 8 is a flowchart of a method for implementing handover of an internet terminal according to a second embodiment of the present invention;
图9表示本发明第二实施例提供的实现上网终端切换的方法的另一流程图;FIG. 9 is another flowchart of a method for implementing switching of an internet terminal according to a second embodiment of the present invention;
图10表示本发明第二实施例提供的步骤S800的流程图;Figure 10 is a flowchart showing the step S800 provided by the second embodiment of the present invention;
图11表示本发明第二实施例提供的步骤S801的流程图;Figure 11 is a flowchart showing the step S801 provided by the second embodiment of the present invention;
图12表示本发明第二实施例提供的步骤S802的流程图;Figure 12 is a flowchart showing the step S802 provided by the second embodiment of the present invention;
图13表示本发明第二实施例提供的步骤S8022的流程图;Figure 13 is a flowchart showing the step S8022 provided by the second embodiment of the present invention;
图14表示本发明第三实施例提供的实现上网终端切换的装置的框图;FIG. 14 is a block diagram showing an apparatus for implementing switching of an internet terminal according to a third embodiment of the present invention;
图15表示本发明第三实施例提供的实现上网终端切换的装置的另一框图;FIG. 15 is another block diagram of an apparatus for implementing switching of an internet terminal according to a third embodiment of the present invention;
图16表示本发明第四实施例提供的实现上网终端切换的装置的框图;FIG. 16 is a block diagram showing an apparatus for implementing switching of an internet terminal according to a fourth embodiment of the present invention;
图17表示本发明第四实施例提供的实现上网终端切换的装置的另一框 图。FIG. 17 is a block diagram showing another apparatus for implementing switching of an internet terminal according to a fourth embodiment of the present invention. Figure.
本发明的实施方式Embodiments of the invention
下文中将结合附图对本发明的实施例进行详细说明。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。Embodiments of the present invention will be described in detail below with reference to the accompanying drawings. It should be noted that the embodiments in the present application and the features in the embodiments may be combined with each other without conflict.
第一实施例First embodiment
本发明实施例提供了一种实现上网终端切换的方法,应用于需要切换上网终端的第一无线路由器,参见图1,该方法包括步骤S101-S103:An embodiment of the present invention provides a method for implementing handover of an Internet terminal, which is applied to a first wireless router that needs to switch an Internet terminal. Referring to FIG. 1, the method includes steps S101-S103:
步骤S101、监控当前的网络运载状况。Step S101: Monitor the current network carrying status.
其中,第一无线路由器可实时或定时监控自身的网络运载状况,当检测出出现异常状况时,则进入步骤S102。The first wireless router can monitor its own network carrying status in real time or periodically. When an abnormal condition is detected, the process proceeds to step S102.
其中,上述网络运载状况是指无线路由器的网络状态和负载情况等,对于网络状态一般是监测是否能够上网,对于负载情况一般是监测是否超负荷。The network carrying status refers to the network status and load status of the wireless router. For the network status, it is generally monitored whether the Internet can be accessed. For the load situation, it is generally monitored whether the load is overloaded.
步骤S102、当当前的网络运载出现异常时,则将自身承载的需要切换的上网终端切换至已预先建立信任关系的一个或多个第二无线路由器上,使切换的上网终端通过第二无线路由器进行网络连接。Step S102: When the current network carrier is abnormal, the network terminal that needs to be switched is switched to one or more second wireless routers that have established a trust relationship in advance, so that the switched Internet terminal passes the second wireless router. Make a network connection.
也就是,当第一无线路由器检测到由于网络故障或自身设备故障等原因导致无法上网,或由于承载上网终端用户过多导致超负荷,出现网速过慢时,为了保障上网终端用户的稳定上网,可将全部或部分上网终端用户切换至已建立信任关系的至少一个第二无线路由器上,使切换的上网终端通过所述第二无线路由器进行网络连接。That is, when the first wireless router detects that the network is unable to access the Internet due to a network failure or a fault of its own device, or because the number of users carrying the Internet access terminal is excessive, the network speed is too slow, so as to ensure the stable Internet access of the Internet terminal user. All or part of the Internet terminal users can be switched to at least one second wireless router that has established a trust relationship, so that the switched Internet terminal performs network connection through the second wireless router.
其中,接收到第一无线路由器的切换上网终端用户请求的第二无线路由器首先会判断自身的网络运载状况是否能够接受第一无线路由器需要切换的上网终端,如果自身的网络运载状况能够接受第一无线路由器需要切换的上网终端,则接受并承载第一无线路由器需要切换的至少部分上网终端,这里之所以说“至少部分上网终端”是因为可能存在第二无线路由器接受第一无线路由器所有需要切换的上网终端时会出现超负荷情况,因此此时仅能接受第一无线路由需要切换的部分上网终端,而第一无线路由器则需继续寻找可接受剩余需要切换的上网终端。 The second wireless router that receives the request from the first wireless router to switch the Internet terminal first determines whether the network carrying condition of the first wireless router can accept the Internet terminal that the first wireless router needs to switch, and if the network carrying condition of the first wireless router can accept the first The wireless router needs to switch the Internet terminal, and accepts and carries at least part of the Internet terminal that the first wireless router needs to switch. The reason why the "at least part of the Internet terminal" is said is that there may be a second wireless router that accepts the first wireless router and needs to switch. The Internet terminal may be overloaded. Therefore, only some of the Internet terminals that need to be switched by the first wireless router can be accepted at this time, and the first wireless router needs to continue to search for an Internet terminal that needs to be switched.
其中,当第一无线路由器无法上网时,第一无线路由器承载的需要切换的上网终端为全部上网终端;当第一无线路由器超负荷时,第一无线路由器承载的需要切换的上网终端为超出负载范围的上网终端。Wherein, when the first wireless router is unable to access the Internet, the Internet terminal that needs to be switched carried by the first wireless router is all the Internet access terminals; when the first wireless router is overloaded, the Internet terminal that needs to be switched carried by the first wireless router is overloaded. Range of internet terminals.
可选地,参见图2,在步骤S101之前,本发明实施例提供的该方法还包括步骤S100:Optionally, referring to FIG. 2, before the step S101, the method provided by the embodiment of the present invention further includes step S100:
步骤S100、预先与第二无线路由器建立信任关系。Step S100: Establish a trust relationship with the second wireless router in advance.
其中,参见图3,步骤S100可包括步骤S1001-S1002:Wherein, referring to FIG. 3, step S100 may include steps S1001-S1002:
步骤S1001、向第二无线路由器发送建立信任关系的请求消息。Step S1001: Send a request message for establishing a trust relationship to the second wireless router.
实际操作中,可以由管理员进入第一无线路由器的建立信任关系的界面中,在该界面中存在第一无线路由器可搜索到的一个或多个其他无线路由器,且对应每个搜索到的无线路由器具有一发送请求消息的虚拟按钮,管理员可根据实际需求触发请求消息的发送。In actual operation, the administrator may enter an interface for establishing a trust relationship of the first wireless router, where one or more other wireless routers searchable by the first wireless router exist, and corresponding to each searched wireless The router has a virtual button for sending a request message, and the administrator can trigger the sending of the request message according to actual needs.
步骤S1002、如果接收到第二无线路由器发送的同意建立信任关系的应答消息,则信任关系建立成功。Step S1002: If the response message sent by the second wireless router agreeing to establish a trust relationship is received, the trust relationship is successfully established.
也就是,如果接收到第一无线路由器发送的请求消息的其他无线路由器同意建立信任关系,则发送一应答消息告知第一无线路由器,以建立信任关系。That is, if another wireless router that receives the request message sent by the first wireless router agrees to establish a trust relationship, a response message is sent to the first wireless router to establish a trust relationship.
可选地,在信任关系建立成功之后,第一无线路由器与同意建立信任关系的第二无线路由器还要相互发送自身的标示符至对方,以使对方进行存储,便于对已建立信任关系的其他路由器进行识别和查询。在实际操作中,无线路由器可将接收到的标示符存储在一名为信任列表的表格中,方便存储和查询。其中,标示符中至少包括:服务集标识SSID信息和加密密码信息,所谓加密密码就是发送标示符时,对标示符的加密密码,这样可以保证上网终端的安全切换,避免信息泄露。Optionally, after the trust relationship is successfully established, the first wireless router and the second wireless router that agree to establish a trust relationship further send each other's identifiers to the other party, so that the other party stores the information, so as to facilitate other relationships that have established a trust relationship. The router performs identification and query. In practice, the wireless router can store the received identifiers in a table called a trust list for convenient storage and query. The identifier includes at least: a service set identifier SSID information and an encrypted password information. The so-called encrypted password is an encrypted password for the identifier when the identifier is sent, so as to ensure secure switching of the Internet terminal and avoid information leakage.
可选地,为了保证当无线路由器的网络运载状况出现异常时,能够快速的完成上网终端的切换,第一无线路由器在与第二无线路由器建立信任关系之后,第一无线路由器需实时或定时向已建立信任关系的所有第二无线路由器发送自身的状态信息,以使第二无线路由器对第一无线路由的最新状态进 行了解和存储(其中,新接收到的状态信息会覆盖之前已存储的状态信息);同样,第二无线路由器也要实时或定时向第一无线路由器发送自身的状态信息,以便第一无线路由器对第二无线路由器的最新状态进行了解和存储。其中,状态信息至少包括:网络信号强度信息和剩余可用带宽信息。在实际操作中,对于每个彼此之间已建立信任关系的无线路由器而言,可以将接收到的已建立信任关系的其他无线路由器的状态信息存储在信任列表中。Optionally, in order to ensure that the switching of the Internet terminal is completed quickly when the network carrying condition of the wireless router is abnormal, after the first wireless router establishes a trust relationship with the second wireless router, the first wireless router needs to perform real-time or timing All second wireless routers that have established a trust relationship send their own state information to enable the second wireless router to enter the latest state of the first wireless router. Line understanding and storage (where the newly received status information will overwrite the previously stored status information); likewise, the second wireless router also sends its own status information to the first wireless router in real time or timing, so that the first wireless router Understand and store the latest status of the second wireless router. The status information includes at least: network signal strength information and remaining available bandwidth information. In actual operation, for each wireless router that has established a trust relationship with each other, the state information of the other wireless routers that have received the established trust relationship may be stored in the trust list.
可选地,参见图4,步骤S102可包括步骤S1021-S1022:Optionally, referring to FIG. 4, step S102 may include steps S1021-S1022:
步骤S1021、当当前的网络运载出现异常时,则向已预先建立信任关系的至少一个所述第二无线路由器发送切换上网终端的请求消息。Step S1021: When the current network carrier is abnormal, send a request message for switching the Internet terminal to at least one of the second wireless routers that have established a trust relationship in advance.
也就是,当第一无线路由器检测到由于网络故障或自身设备故障等原因导致无法上网,或由于承载上网终端过多导致超负荷,出现网速过慢时,则向已建立信任关系的至少一个第二无线路由器发送切换上网终端的请求消息,以请求第二无线路由器接受需要切换的上网终端。That is, when the first wireless router detects that the network is unable to access the Internet due to a network failure or a failure of its own device, or because the overload of the hosted Internet terminal is excessive, and the network speed is too slow, at least one of the established trust relationships is established. The second wireless router sends a request message for switching the Internet terminal to request the second wireless router to accept the Internet terminal that needs to be switched.
步骤S1022、接收所述第二无线路由器根据所述请求消息反馈的确认切换消息,将自身承载的需要切换的上网终端切换至所述第二无线路由器,使切换的上网终端通过所述第二无线路由器进行网络连接。Step S1022: The second wireless router receives the acknowledgment switching message fed back by the request message, and switches the online terminal that needs to be switched to the second wireless router, so that the switched Internet terminal passes the second wireless The router makes a network connection.
如果接收到第一无线路由器请求消息的第二无线路由器确认自身的网络运载状况能够接受第一无线路由器需要切换的上网终端,则向第一无线路由器发送确认切换消息,接受并承载第一无线路由器需要切换的至少部分上网终端。If the second wireless router that receives the first wireless router request message confirms that its network carrying condition can accept the Internet terminal that the first wireless router needs to switch, sends an acknowledgement handover message to the first wireless router, accepting and carrying the first wireless router. At least part of the Internet terminal that needs to be switched.
通过向第二无线路由器发送请求消息,在第二无线路由器同意切换时再进行切换,这样可以提高切换的准确性。By sending a request message to the second wireless router, the second wireless router agrees to switch again, which can improve the accuracy of the handover.
可选地,参见图5,步骤S1021可包括步骤S10211-S10212:Optionally, referring to FIG. 5, step S1021 may include steps S10211-S10212:
步骤S10211、获取已建立信任关系的每个第二无线路由器的状态稳定程度值。Step S10211: Acquire a state stability degree value of each second wireless router that has established a trust relationship.
其中,参见图6,步骤S10211可包括S102111-S102112:Wherein, referring to FIG. 6, step S10211 may include S102111-S102112:
步骤S102111、将存储的已建立信任关系的所有第二无线路由器的网络信号强度和剩余可用带宽分别按照预设的等级划分规则进行等级划分。 Step S102111: The network signal strength and the remaining available bandwidth of all the second wireless routers of the stored established trust relationship are respectively classified according to a preset level division rule.
例如,如果网络信号强度均是以阶梯状的信号强度格表示,则可将每一个信号强度格作为一个等级,总共具有多个信号强度格,等级数就是多少。而剩余可用带宽例如可按照1-5M,5-10M,10-15M,15-20M,20M以上带宽划分为5个等级,当然可以理解的是,还可根据实际需要设置其他的划分规则。For example, if the network signal strengths are represented by a stepped signal strength grid, each signal strength grid can be used as a level, with a total of multiple signal strength grids, and the number of levels. The remaining available bandwidth can be divided into five levels according to the bandwidth of 1-5M, 5-10M, 10-15M, 15-20M, and 20M. For example, it can be understood that other partitioning rules can be set according to actual needs.
步骤S102112、根据每个已建立信任关系的第二无线路由器的网络状态所属等级和剩余可用带宽所属等级,利用预设的计算公式P=(S+B)/2,计算状态稳定程度值。Step S102112: Calculate a state stability degree value by using a preset calculation formula P=(S+B)/2 according to a network state belonging level and a remaining available bandwidth belonging level of each second wireless router that has established a trust relationship.
其中,P表示状态稳定程度值,S表示一已建立信任关系的第二无线路由器的网络信号强度所属等级,B表示一已建立信任关系的第二无线路由器的剩余可用带宽所属等级。Wherein, P represents a state stability degree value, S represents a network signal strength of a second wireless router that has established a trust relationship, and B represents a level of remaining available bandwidth of a second wireless router that has established a trust relationship.
步骤S10212、按照状态稳定程度值由大到小的顺序,在第二无线路由器中确定发送切换上网终端的请求消息的一个或多个目标无线路由器。Step S10212: Determine one or more target wireless routers that send the request message for switching the Internet terminal in the second wireless router according to the order of the state stability degree values.
也就是,在已建立信任关系的第二无线路由器中,首先选择状态稳定值最大的无线路由器发送切换上网终端的请求消息,如果状态稳定值最大的无线路由器拒绝第一无线路由器的请求,则选择状态稳定值第二大的无线路由器发送切换上网终端的请求消息,之后依次类推。That is, in the second wireless router that has established the trust relationship, the wireless router with the highest state stability value is first selected to send a request message for switching the Internet terminal, and if the wireless router with the highest state stability value rejects the request of the first wireless router, The wireless router with the second largest state stable value sends a request message for switching the Internet terminal, and so on.
可选地,参见图7,步骤S1022可包括S10221-S10224:Optionally, referring to FIG. 7, step S1022 may include S10221-S10224:
步骤S10221、选择状态稳定程度值最大的第二无线路由器作为第一目标路由器。Step S10221: Select a second wireless router with the highest state stability degree value as the first target router.
步骤S10222、向第一目标无线路由器发送切换上网终端的请求消息。Step S10222: Send a request message for switching the internet terminal to the first target wireless router.
其中,请求消息中包括需要切换的上网终端的介质访问控制MAC地址信息。The request message includes media access control MAC address information of the internet terminal that needs to be switched.
步骤S10223、如果第一目标无线路由器同意切换上网终端的请求消息,则将部分或全部需要切换的上网终端切换至第一目标无线路由器,并记录已切换的上网终端的MAC地址信息和第一目标无线路由器的标示符信息。Step S10223: If the first target wireless router agrees to switch the request message of the Internet access terminal, switch some or all of the Internet access terminals that need to be switched to the first target wireless router, and record the MAC address information and the first target of the switched Internet access terminal. The identifier information of the wireless router.
其中,第一目标无线路由器在接收到第一无线路由器发送的切换上网终端的请求消息后,会对自身的网络运载情况进行判断,首先确定自身是否可 以上网,如果自身可以上网,则继续判断自身的负载情况,如果根据切换上网终端请求消息中的MAC地址信息,确定在接受第一无线路由器需要切换的全部上网终端时,也不会超负荷,则接受并承载第一无线路由器需要切换的全部上网终端;如果根据切换上网终端请求消息中的MAC地址信息,确定仅能接受第一无线路由器需要切换的部分上网终端,则接受并承载第一无线路由器需要切换的部分上网终端,同时第一无线路由器根据状态稳定程度值选择第二目标无线路由器发送切换上网终端的请求消息,以完成剩余的需要切换的上网终端的切换,之后依次类推,便不再赘述。After receiving the request message of the switching Internet terminal sent by the first wireless router, the first target wireless router judges the network carrying situation of the first wireless router, and first determines whether it can be To access the Internet, if it can access the Internet, it will continue to judge its own load. If the MAC address information in the request message of the Internet access terminal is changed, it is determined that it will not be overloaded when accepting all the Internet terminals that need to be switched by the first wireless router. Receiving and carrying all the Internet terminals that the first wireless router needs to switch; if it is determined that only the part of the Internet terminals that the first wireless router needs to switch can be accepted according to the MAC address information in the switching Internet terminal request message, the first wireless device is accepted and carried. The router needs to switch some of the Internet terminals, and the first wireless router selects the second target wireless router to send a request message for switching the Internet terminal according to the state stability degree value, so as to complete the remaining switching of the Internet terminal that needs to be switched, and then analogy, Let me repeat.
其中,在上网终端切换过程中,第一目标无线路由器需记录第一无线路由器已切换至的上网终端的MAC地址信息和第一无线路由器的标示符信息,同时,第一无线路由器也需对已迁出至第一目标无线路由器上的上网终端的MAC地址信息和第一目标无线路由器的标示符信息进行记录。在实际操作中,上网终端的MAC地址信息和相应的无线路由器的标示符信息可对应的记录在一名为转移列表中,以方便查询。In the process of switching the Internet terminal, the first target wireless router needs to record the MAC address information of the Internet terminal that the first wireless router has switched to and the identifier information of the first wireless router, and the first wireless router also needs to The MAC address information of the Internet terminal that is moved out to the first target wireless router and the identifier information of the first target wireless router are recorded. In actual operation, the MAC address information of the Internet terminal and the corresponding identifier information of the wireless router may be recorded in a transfer list to facilitate the query.
需要说明的是,第一无线路由器可通过APP推送方式告知自身承载的上网终端其将要被切换至第一目标无线路由器的消息,一般由于第一无线路由器和第一目标无线路由器已建立信任关系,因此APP上是默认同意切换的。It should be noted that the first wireless router can notify the mobile terminal that it bears to be switched to the message of the first target wireless router by using the APP push mode. Generally, the first wireless router and the first target wireless router have established a trust relationship. Therefore, the APP agrees to switch by default.
步骤S10224、如果第一目标无线路由器拒绝切换上网终端的请求消息,则根据状态稳定程度值在第二无线路由器中寻找第二目标无线路由器,以完成上网终端的切换。Step S10224: If the first target wireless router refuses to switch the request message of the Internet access terminal, the second target wireless router is searched for in the second wireless router according to the state stability degree value to complete the switching of the Internet access terminal.
其中,如果第一目标无线路由器在接收到第一无线路由器发送的切换上网终端的请求消息后,确定自身无法上网或可上网但已超负荷,也就是无法接收第一无线路由器需要切换的上网终端,则向第一无线路由器发送拒绝消息,同时在拒绝消息中,可携带自身的网络运载状况信息以告知第一无线路由器具体情况,而第一无线路由器可将第一目标无线路由器相应的标注为“未连网”或“超负荷”。If the first target wireless router receives the request message for switching the Internet terminal sent by the first wireless router, it determines that the user cannot access the Internet or can access the Internet but is overloaded, that is, the Internet terminal that needs to be switched by the first wireless router cannot be received. Sending a reject message to the first wireless router, and in the reject message, carrying the network carrying status information of the first wireless router to inform the first wireless router of the specific situation, and the first wireless router may mark the first target wireless router as corresponding “Unconnected” or “overloaded”.
可选地,参见图2,在步骤S102之后,本发明实施例提供的该方法还包括步骤S103-S104:Optionally, referring to FIG. 2, after the step S102, the method provided by the embodiment of the present invention further includes steps S103-S104:
步骤S103、继续监控当前的网络运载状况。 Step S103: Continue to monitor the current network carrying status.
步骤S104、当网络运载恢复正常时,根据记录的已切换的上网终端的MAC地址信息和切换至的目标无线路由器的标示符信息,向目标无线路由器发送返回上网终端的请求消息,以使目标无线路由器返回相应的上网终端。Step S104, when the network carrier returns to normal, according to the recorded MAC address information of the switched Internet terminal and the identifier information of the target wireless router that is switched to, send a request message to the target wireless router to return to the Internet terminal, so that the target wireless The router returns to the corresponding Internet terminal.
其中,请求消息中包括切换至目标无线路由器的上网终端的MAC地址信息。The request message includes MAC address information of the internet terminal that is switched to the target wireless router.
当第一无线路由器检测到自身可以连网或不再超负荷时,则查询是否将上网终端切换至其他无线路由器上,如果为已将上网终端切换至其他无线路由器上,则根据记录的已切换的上网终端的MAC地址信息和切换至的目标无线路由器的标示符信息,向目标无线路由器发送返回上网终端的请求消息,而目标无线路由器同样会查询是否接收过第一无线路由器的上网终端,如果为接收过第一无线路由器的上网终端,则将相应的上网终端返回给第一无线路由器,同时可通过APP推送方式告知上网终端返回消息,一般由于第一无线路由器和目标无线路由器已建立信任关系,因此APP上是默认同意返回的。When the first wireless router detects that it can connect to the network or is no longer overloaded, it queries whether to switch the Internet terminal to another wireless router. If the Internet terminal has been switched to another wireless router, it is switched according to the record. The MAC address information of the Internet terminal and the identifier information of the target wireless router that is switched to send a request message to the target wireless router to return to the Internet terminal, and the target wireless router also queries whether the Internet terminal of the first wireless router has been received, if In order to receive the Internet terminal of the first wireless router, the corresponding Internet terminal is returned to the first wireless router, and the Internet terminal can be notified of the return message through the APP push mode, generally because the first wireless router and the target wireless router have established a trust relationship. Therefore, the app agrees to return by default.
综上所述,本发明实施例提供的实现上网终端切换的方法,通过使无线路由器之间建立信任关系,从而在其中一无线路由器无法上网或负载超荷时,能够及时将上网终端切换至其他无线路由器上,以保障上网终端上网的可靠性和稳定性,同时也有利实现负载均衡,减少资源的浪费。In summary, the method for implementing the switching of the Internet terminal provided by the embodiment of the present invention can establish the trust relationship between the wireless routers, so that when one of the wireless routers cannot access the Internet or the load is overloaded, the Internet terminal can be switched to other terminals in time. On the wireless router, to ensure the reliability and stability of the Internet access terminal, it is also beneficial to achieve load balancing and reduce resource waste.
第二实施例Second embodiment
本发明实施例提供了一种实现上网终端切换的方法,应用于接收第一无线路由器切换上网终端请求的第二无线路由器,参见图8,该方法包括步骤S801-S802:An embodiment of the present invention provides a method for implementing handover of an Internet terminal, which is applied to a second wireless router that receives a request from a first wireless router to switch an Internet terminal. Referring to FIG. 8, the method includes steps S801-S802:
步骤S801、当所述第一无线路由器请求切换上网终端到所述第二无线路由器时,所述第二无线路由器判断自身当前的网络运载状况是否符合预定的上网终端切换条件。Step S801: When the first wireless router requests to switch the Internet access terminal to the second wireless router, the second wireless router determines whether the current network carrying condition of the second wireless router meets the predetermined Internet terminal switching condition.
其中,当第一无线路由器检测出自身无法上网或超负荷时,则可向已建立信任关系的第二无线路由器请求切换上网终端用户到第二无线路由器,第二无线路由器判断自身当前的网络运载状况是否可以接受第一无线路由器需要切换的上网终端。 When the first wireless router detects that it is unable to access the Internet or is overloaded, the second wireless router that has established the trust relationship may request to switch the Internet terminal user to the second wireless router, and the second wireless router determines its current network carrying. Whether the status can accept the Internet terminal that the first wireless router needs to switch.
其中,上述网络运载状况是指无线路由器的网络状态和负载情况等,对于网络状态一般是判断是否能够上网,对于负载情况一般是判断是否超负荷。The network carrying status refers to the network status and load status of the wireless router. For the network status, it is generally determined whether the Internet is available. For the load situation, it is generally determined whether the load is overloaded.
步骤S802、当判断结果为自身当前的网络运载状况符合预定的上网终端切换条件时,接受并承载所述第一无线路由器需要切换的至少部分上网终端。In step S802, when the result of the determination is that the current network carrying condition of the network meets the predetermined switching condition of the Internet access terminal, at least part of the Internet access terminal that the first wireless router needs to switch is accepted and carried.
如果第二无线路起确认可以接受第一无线路由器需要切换的上网终端,则接受并承载第一无线路由器需要切换的至少部分上网终端,其中,这里之所以说“至少部分上网终端”是因为可能存在第二无线路由器接受第一无线路由器所有需要切换的上网终端时会出现超负荷情况,因此此时仅能接受第一无线路由需要切换的部分上网终端,而第一无线路由器则需继续寻找可接受剩余需要切换的上网终端。If the second wireless path confirms that the first wireless router needs to switch the Internet terminal, accepting and carrying at least part of the Internet terminal that the first wireless router needs to switch, wherein the reason for saying "at least part of the Internet terminal" is because of the possibility There is an overload condition when the second wireless router accepts all the Internet terminals that need to be switched by the first wireless router. Therefore, only some of the Internet terminals that need to be switched by the first wireless route can be accepted at this time, and the first wireless router needs to continue searching. Accept the remaining Internet terminals that need to be switched.
其中,当第一无线路由器无法上网时,第一无线路由器承载的需要切换的上网终端为全部上网终端;当第一无线路由器超负荷时,第一无线路由器承载的需要切换的上网终端为超出负载范围的上网终端。Wherein, when the first wireless router is unable to access the Internet, the Internet terminal that needs to be switched carried by the first wireless router is all the Internet access terminals; when the first wireless router is overloaded, the Internet terminal that needs to be switched carried by the first wireless router is overloaded. Range of internet terminals.
可选地,参见图9,在步骤S801之前,本发明实施例提供的该方法还包括步骤S800:Optionally, referring to FIG. 9, before the step S801, the method provided by the embodiment of the present invention further includes step S800:
步骤S800、预先与第一无线路由器建立信任关系。Step S800: Establish a trust relationship with the first wireless router in advance.
其中,参加图10,步骤800可包括步骤S8001-S8002:Wherein, participating in FIG. 10, step 800 may include steps S8001-S8002:
步骤S8001、接收第一无线路由器发送的建立信任关系的请求消息。Step S8001: Receive a request message for establishing a trust relationship sent by the first wireless router.
实际操作中,可以由管理员进入第一无线路由器的建立信任关系的界面中,在该界面中存在第一无线路由器可搜索到的一个或多个其他无线路由器,且对应每个搜索到的无线路由器具有一发送请求消息的虚拟按钮,管理员可根据实际需求触发请求消息的发送,而当其他无线路由器(即第二无线路由器)接收到请求消息后,其他无线路由器的管理员可根据实际需要选择同意或拒绝。In actual operation, the administrator may enter an interface for establishing a trust relationship of the first wireless router, where one or more other wireless routers searchable by the first wireless router exist, and corresponding to each searched wireless The router has a virtual button for sending a request message, and the administrator can trigger the sending of the request message according to actual needs. When other wireless routers (ie, the second wireless router) receive the request message, the administrators of other wireless routers can according to actual needs. Choose to agree or reject.
步骤S8002、如果同意建立信任关系,则向第一无线路由器发送同意建立信任关系的应答消息,以使信任关系建立成功。Step S8002: If it is agreed to establish a trust relationship, send a response message agreeing to establish a trust relationship to the first wireless router, so that the trust relationship is successfully established.
可选地,在信任关系建立成功之后,第二无线路由器与第一无线路由器还要相互发送自身的标示符至对方,以使对方进行存储,便于对已建立信任 关系的其他无线路由器的识别和查询。在实际操作中,无线路由器可将接收到的标示符存储在一名为信任列表的表格中,方便存储和查询。其中,标示符中至少包括:服务集标识SSID信息和加密密码信息,所谓加密密码就是发送标示符时,对标示符的加密密码,这样可以保证上网终端的安全切换,避免信息泄露。Optionally, after the trust relationship is successfully established, the second wireless router and the first wireless router further send their identifiers to each other to enable the other party to store, so as to facilitate the established trust. Identification and query of other wireless routers in relation. In practice, the wireless router can store the received identifiers in a table called a trust list for convenient storage and query. The identifier includes at least: a service set identifier SSID information and an encrypted password information. The so-called encrypted password is an encrypted password for the identifier when the identifier is sent, so as to ensure secure switching of the Internet terminal and avoid information leakage.
可选地,为了保证当无线路由器的网络运载状况出现异常时,能够快速的完成上网终端的切换,第二无线路由器在与第一无线路由器建立信任关系之后,第二无线路由器需实时或定时向已建立信任关系的第一无线路由器发送自身的状态信息,以使第一无线路由器对第二无线路由的最新状态进行了解和存储(其中,新接收到的状态信息会覆盖之前已存储的状态信息);同样,第一无线路由器也要实时或定时向第二无线路由器发送自身的状态信息,以便第二无线路由器对第一无线路由器的最新状态进行了解和存储。其中,状态信息至少包括:网络信号强度信息和剩余可用带宽信息。在实际操作中,对于每个彼此之间已建立信任关系的无线路由器而言,可以将接收到的已建立信任关系的其他无线路由器的状态信息存储在信任列表中。Optionally, in order to ensure that when the network carrying condition of the wireless router is abnormal, the switching of the Internet terminal can be completed quickly, and after the second wireless router establishes a trust relationship with the first wireless router, the second wireless router needs to perform real-time or timing The first wireless router that has established the trust relationship sends its own state information to enable the first wireless router to know and store the latest state of the second wireless router (where the newly received state information overwrites the previously stored state information) Similarly, the first wireless router also sends its own status information to the second wireless router in real time or timing, so that the second wireless router knows and stores the latest status of the first wireless router. The status information includes at least: network signal strength information and remaining available bandwidth information. In actual operation, for each wireless router that has established a trust relationship with each other, the state information of the other wireless routers that have received the established trust relationship may be stored in the trust list.
可选地,参见图11,步骤S801可包括步骤S8011-S8012:Optionally, referring to FIG. 11, step S801 may include steps S8011-S8012:
步骤S8011、接收已建立信任关系的所述第一无线路由器发送的切换上网终端的请求消息。Step S8011: Receive a request message for switching the Internet terminal sent by the first wireless router that has established a trust relationship.
其中,当第一无线路由器检测出自身无法上网或超负荷时,则可向已建立信任关系的第二无线路由器发送切换上网终端的请求消息,以请求第二无线路由器接受需要切换的上网终端。When the first wireless router detects that it is unable to access the Internet or is overloaded, the second wireless router that has established the trust relationship may send a request message for switching the Internet terminal to request the second wireless router to accept the Internet terminal that needs to be switched.
其中,切换上网终端的请求消息包括需要切换的上网终端的MAC地址信息。The request message for switching the Internet terminal includes MAC address information of the Internet terminal that needs to be switched.
步骤S8012、判断自身当前的网络运载状况是否符合预定的上网终端切换条件。In step S8012, it is determined whether the current network carrying condition of the user meets the predetermined online terminal switching condition.
相应的,参见图12,步骤S802可包括步骤S8021-S8022:Correspondingly, referring to FIG. 12, step S802 may include steps S8021-S8022:
步骤S8021、当判断结果为自身当前的网络运载状况符合预定的上网终端切换条件时,则向所述第一无线路由器发送确认切换消息。 Step S8021: Send a confirmation switching message to the first wireless router when the result of the determination is that the current network carrying condition of the network meets the predetermined Internet terminal handover condition.
步骤S8022、接受并承载所述第一无线路由器需要切换的至少部分上网终端。Step S8022: Accept and carry at least part of the Internet access terminal that the first wireless router needs to switch.
上述步骤S8011~步骤S8012以及步骤S8021~步骤S8022通过第一无线路由器向第二无线路由器发送请求消息,并在第二无线路由器同意切换时再进行切换,这样可以提高切换的准确性。The above steps S8011 to S8012 and steps S8021 to S8022 send a request message to the second wireless router through the first wireless router, and then perform handover when the second wireless router agrees to switch, so that the accuracy of the handover can be improved.
可选地,切换上网终端的请求消息包括需要切换的上网终端的MAC地址信息,参见图13,步骤S8022可包括步骤S80221-S80222:Optionally, the request message for switching the Internet terminal includes MAC address information of the Internet terminal that needs to be switched. Referring to FIG. 13, step S8022 may include steps S80221-S80222:
步骤S80221、如果当前网络正常且未出现超负荷情况,且如果接受全部第一无线路由器需要切换的上网终端时也不会超负荷时,则接受全部第一无线路由器需要切换的上网终端,并记录切换至的上网终端的MAC地址信息和第一无线路由器的标示符信息。Step S80221: If the current network is normal and no overload condition occurs, and if all the first wireless routers need to switch the Internet terminal to be switched, the Internet terminal that needs to be switched by all the first wireless routers is accepted and recorded. The MAC address information of the Internet terminal that is switched to and the identifier information of the first wireless router.
步骤S80222、如果当前网络正常且未出现超负荷情况,且如果接受全部第一无线路由器需要切换的上网终端时会出现超负荷情况时,则接受部分第一无线路由器需要切换的上网终端,并记录切换至的上网终端MAC地址信息和第一无线路由器的标示符信息。Step S80222: If the current network is normal and no overload condition occurs, and if an overload condition occurs when all the first wireless routers need to switch the Internet terminal, the Internet terminal that needs to be switched by the first wireless router is accepted and recorded. The MAC address information of the Internet terminal that is switched to and the identifier information of the first wireless router.
其中,第二无线路由器在接收到第一无线路由器发送的切换上网终端的请求消息后,会对自身的网络运载情况进行判断,首先确定自身是否可以上网,如果可以上网,则继续判断自身的负载情况,如果根据切换上网终端请求消息中的MAC地址信息,确定在接收第一无线路由器需要切换的全部上网终端时,也不会超负荷,则接受并承载第一无线路由器需要切换的全部上网终端;如果根据切换上网终端请求消息中的MAC地址信息,确定仅能接受第一无线路由器需要切换的部分上网终端,则接收并承载第一无线路由器需要切换的部分上网终端,同时第一无线路由器还需继续选择其他已建立信任关系的无线路由器发送切换上网终端的请求消息,以完成剩余的需要切换的上网终端的切换,之后依次类推,便不再赘述。After receiving the request message for switching the Internet terminal sent by the first wireless router, the second wireless router determines the network carrying condition of the second wireless router, first determines whether it can access the Internet, and if it can access the Internet, continues to determine its own load. In the case that, according to the MAC address information in the switching Internet terminal request message, it is determined that when all the Internet terminals that need to be switched by the first wireless router are received, and are not overloaded, all the Internet terminals that need to be switched by the first wireless router are accepted and carried. If, according to the MAC address information in the switching network terminal request message, it is determined that only the part of the Internet terminal that the first wireless router needs to switch can be accepted, then the part of the Internet terminal that the first wireless router needs to switch is received and carried, and the first wireless router also It is necessary to continue to select other wireless routers that have established a trust relationship to send a request message for switching the Internet terminal, so as to complete the handover of the remaining Internet terminals that need to be switched, and then the analogy will not be repeated.
其中,在上网终端切换过程中,第二无线路由器需记录第一无线路由器已切换至的上网终端的MAC地址信息和第一无线路由器的标示符信息,同时,第一无线路由器也需对已迁出至第二无线路由器上的上网终端的MAC地址信息和第二无线路由器的标示符信息进行记录。其中上网终端的MAC 地址信息和相应的无线路由器的标示符信息可对应的记录在一转移列表中,以方便查询。In the process of switching the Internet terminal, the second wireless router needs to record the MAC address information of the Internet terminal that the first wireless router has switched to and the identifier information of the first wireless router, and the first wireless router also needs to move. The MAC address information of the Internet terminal on the second wireless router and the identifier information of the second wireless router are recorded. The MAC of the internet terminal The address information and the identifier information of the corresponding wireless router can be correspondingly recorded in a transfer list for convenient query.
需要说明的是,第一无线路由器可通过APP推送方式告知自身承载的上网终端其将要被切换至第二无线路由器的消息,一般由于第一无线路由器和第二无线路由器已建立信任关系,因此APP上是默认同意切换的。It should be noted that the first wireless router can notify the mobile terminal that it bears to be switched to the second wireless router by using the APP push mode. Generally, the first wireless router and the second wireless router have established a trust relationship, so the APP The above is the default to agree to switch.
可选地,参见图9,在步骤S802之后,本发明实施例提供的该方法还包括步骤S803-S804:Optionally, referring to FIG. 9, after the step S802, the method provided by the embodiment of the present invention further includes steps S803-S804:
步骤S803、接收第一无线路由器发送的返回上网终端的请求消息。Step S803, receiving a request message sent back to the Internet terminal sent by the first wireless router.
其中,请求消息中包括请求返回上网终端的MAC地址信息。The request message includes the MAC address information of the request to return to the Internet terminal.
当第一无线路由器检测到自身可以连网或不再超负荷时,则查询是否将上网终端切换至其他无线路由器上,如果为已将上网终端切换至其他无线路由器上,则根据记录的已切换的上网终端的MAC地址信息和切换至的目标无线路由器的标示符信息,向目标无线路由器发送返回上网终端的请求消息。When the first wireless router detects that it can connect to the network or is no longer overloaded, it queries whether to switch the Internet terminal to another wireless router. If the Internet terminal has been switched to another wireless router, it is switched according to the record. The MAC address information of the Internet terminal and the identifier information of the target wireless router that is switched to send a request message to the target wireless router to return to the Internet terminal.
步骤S804、将请求消息中的请求返回上网终端的MAC地址信息与已记录的对应第一无线路由器的切换至的上网终端的MAC地址信息进行匹配。Step S804: Matching the MAC address information of the request returned to the Internet terminal to the MAC address information of the Internet terminal to which the first wireless router is switched.
第二无线路由器在接收到第一无线路由器发送的返回上网终端的请求消息后,同样会查询是否接收过第一无线路由器的上网终端,也就是将请求消息中的请求返回上网终端的MAC地址信息与已记录的对应第一无线路由器的切换至的上网终端的MAC地址信息进行匹配。After receiving the request message sent back to the Internet terminal sent by the first wireless router, the second wireless router also queries whether the Internet terminal of the first wireless router is received, that is, the request in the request message is returned to the MAC address information of the Internet terminal. Matching with the recorded MAC address information of the connected terminal corresponding to the first wireless router.
步骤S806、如果匹配成功,则将对应的上网终端返回至第一无线路由器上。Step S806: If the matching is successful, return the corresponding Internet terminal to the first wireless router.
如果第二无线路由器查询到接收过第一无线路由器的上网终端,则将相应的上网终端返回给第一无线路由器,同时可通过APP推送方式告知上网终端返回消息,一般由于第二无线路由器和第一无线路由器已建立信任关系,因此APP上是默认同意返回的。If the second wireless router queries the Internet terminal that has received the first wireless router, the corresponding Internet terminal is returned to the first wireless router, and the Internet terminal can be notified by the APP push mode to return a message, generally due to the second wireless router and the A wireless router has established a trust relationship, so the APP agrees to return by default.
综上所述,本发明实施例提供的实现上网终端切换的方法,通过使无线路由器之间建立信任关系,从而在其中一无线路由器无法上网或负载超荷时,能够及时将上网终端切换至其他无线路由器上,以保障上网终端上网的可靠 性和稳定性,同时也有利实现负载均衡,减少资源的浪费。In summary, the method for implementing the switching of the Internet terminal provided by the embodiment of the present invention can establish the trust relationship between the wireless routers, so that when one of the wireless routers cannot access the Internet or the load is overloaded, the Internet terminal can be switched to other terminals in time. On the wireless router, to ensure the reliability of the Internet access terminal Sexuality and stability, while also facilitating load balancing and reducing waste of resources.
第三实施例Third embodiment
本发明实施例提供了一种实现上网终端切换的装置,应用于需要切换上网终端的第一无线路由器,参见图14,该装置包括:第一监控模块1401和切换模块1402。The embodiment of the present invention provides a device for implementing the switching of the Internet access terminal, which is applied to the first wireless router that needs to switch the Internet access terminal. Referring to FIG. 14, the device includes: a first monitoring module 1401 and a switching module 1402.
第一监控模块1401,设置为监控当前的网络运载状况。The first monitoring module 1401 is configured to monitor the current network carrying condition.
其中,第一无线路由器可通过第一监控模块1401实时或定时监控自身的网络运载状况。The first wireless router can monitor its own network carrying status in real time or by the first monitoring module 1401.
其中,上述网络运载状况是指无线路由器的网络状态和负载情况等,对于网络状态一般是监测是否能够上网,对于负载情况一般是监测是否超负荷。The network carrying status refers to the network status and load status of the wireless router. For the network status, it is generally monitored whether the Internet can be accessed. For the load situation, it is generally monitored whether the load is overloaded.
切换模块1402,设置为当当前的网络运载出现异常时,则将自身承载的需要切换的上网终端切换至已预先建立信任关系的一个或多个第二无线路由器上,使切换的上网终端通过第二无线路由器进行网络连接。The switching module 1402 is configured to: when the current network carrier is abnormal, switch the online terminal that needs to be switched to the one or more second wireless routers that have established the trust relationship in advance, so that the switched Internet terminal passes the Two wireless routers make network connections.
当第一无线路由器检测到由于网络故障或自身设备故障等原因导致无法上网,或由于承载上网终端用户过多导致超负荷,出现网速过慢时,为了保障上网终端用户的稳定上网,可将全部或部分上网终端用户切换至已建立信任关系的至少一个第二无线路由器上,使切换的上网终端通过所述第二无线路由器进行网络连接。When the first wireless router detects that the Internet access is too slow due to network failure or self-device failure, or because the number of users carrying the Internet access terminal is too heavy, and the network speed is too slow, in order to ensure stable Internet access for the Internet terminal user, All or part of the Internet terminal user switches to at least one second wireless router that has established a trust relationship, so that the switched Internet terminal performs network connection through the second wireless router.
其中,接收到第一无线路由器的切换上网终端用户请求的第二无线路由器首先会判断自身的网络运载状况是否能够接受第一无线路由器需要切换的上网终端,如果能够接受第一无线路由器需要切换的上网终端,则接受并承载第一无线路由器需要切换的至少部分上网终端,这里之所以说“至少部分上网终端”是因为可能存在第二无线路由器接受第一无线路由器所有需要切换的上网终端时会出现超负荷情况,因此此时仅能接受第一无线路由需要切换的部分上网终端,而第一无线路由器则需继续寻找可接受剩余需要切换的上网终端。The second wireless router that receives the request from the first wireless router to switch the Internet terminal first determines whether the network carrying condition of the first wireless router can accept the Internet terminal that the first wireless router needs to switch, and if it can accept that the first wireless router needs to switch. The Internet terminal accepts and carries at least part of the Internet terminal that the first wireless router needs to switch. The reason why the "at least part of the Internet terminal" is said is that there may be a second wireless router that accepts all the Internet terminals that need to be switched by the first wireless router. In the event of an overload condition, only some of the Internet terminals that need to be switched by the first wireless router can be accepted at this time, and the first wireless router needs to continue to search for an Internet terminal that needs to be switched.
其中,当第一无线路由器无法上网时,第一无线路由器承载的需要切换的上网终端为全部上网终端;当第一无线路由器超负荷时,第一无线路由器 承载的需要切换的上网终端为超出负载范围的上网终端。Wherein, when the first wireless router is unable to access the Internet, the first wireless router carries the Internet terminal that needs to be switched as all the Internet terminals; when the first wireless router is overloaded, the first wireless router The Internet access terminal that needs to be switched is an Internet terminal that exceeds the load range.
可选地,参见图15,所述切换模块1402包括:Optionally, referring to FIG. 15, the switching module 1402 includes:
第一发送子模块14021,设置为当当前的网络运载出现异常时,则向已预先建立信任关系的一个或多个第二无线路由器发送切换上网终端的请求消息。The first sending sub-module 14021 is configured to send a request message for switching the Internet access terminal to one or more second wireless routers that have established a trust relationship in advance when an abnormality occurs in the current network.
当第一无线路由器检测到由于网络故障或自身设备故障等原因导致无法上网,或由于承载上网终端过多导致超负荷,出现网速过慢时,第一发送模块1402可向已建立信任关系的一个或多个第二无线路由器发送切换上网终端的请求消息。When the first wireless router detects that the network is unable to access the Internet due to a network failure or a device failure, or the overload occurs due to excessive load of the Internet access terminal, and the network speed is too slow, the first sending module 1402 may establish a trust relationship. The one or more second wireless routers send a request message for switching the Internet terminal.
切换子模块14022,设置为接收第二无线路由器根据请求消息反馈的确认切换消息,将自身承载的需要切换的上网终端切换至第二无线路由器,使切换的上网终端通过第二无线路由器进行网络连接。The switching sub-module 14022 is configured to receive the acknowledgment switching message fed back by the second wireless router according to the request message, and switch the online terminal that needs to be switched to the second wireless router, so that the switched Internet terminal performs network connection through the second wireless router. .
如果接收到第一无线路由器请求消息的第二无线路由器确认自身的网络运载状况能够接受第一无线路由器需要切换的上网终端,则向第一无线路由器发送确认切换消息,接受并承载第一无线路由器需要切换的至少部分上网终端。If the second wireless router that receives the first wireless router request message confirms that its network carrying condition can accept the Internet terminal that the first wireless router needs to switch, sends an acknowledgement handover message to the first wireless router, accepting and carrying the first wireless router. At least part of the Internet terminal that needs to be switched.
通过向第二无线路由器发送请求消息,在第二无线路由器同意切换时再进行切换,这样可以提高切换的准确性。By sending a request message to the second wireless router, the second wireless router agrees to switch again, which can improve the accuracy of the handover.
可选地,参见图15,该装置还包括:Optionally, referring to FIG. 15, the apparatus further includes:
第一信任建立模块1403,设置为预先与第二无线路由器建立信任关系。The first trust establishing module 1403 is configured to establish a trust relationship with the second wireless router in advance.
可选地,参见图15,第一信任建立模块1403包括:Optionally, referring to FIG. 15, the first trust establishing module 1403 includes:
第二发送子模块14031,设置为向第二无线路由器发送建立信任关系的请求消息。The second sending submodule 14031 is configured to send a request message for establishing a trust relationship to the second wireless router.
实际操作中,可以由管理员进入第一无线路由器的建立信任关系的界面中,在该界面中存在第一无线路由器可搜索到的一个或多个其他无线路由器,且对应每个搜索到的无线路由器具有一发送请求消息的虚拟按钮,管理员可根据实际需求触发请求消息的发送。In actual operation, the administrator may enter an interface for establishing a trust relationship of the first wireless router, where one or more other wireless routers searchable by the first wireless router exist, and corresponding to each searched wireless The router has a virtual button for sending a request message, and the administrator can trigger the sending of the request message according to actual needs.
第一信任建立子模块14032,设置为当接收到第二无线路由器发送的同 意建立信任关系的应答消息时,使信任关系建立成功。a first trust establishment sub-module 14032, configured to receive the second wireless router when sent When the response message of the trust relationship is established, the trust relationship is established successfully.
也就是,如果接收到第一无线路由器发送的请求消息的其他无线路由器同意建立信任关系,则发送一应答消息告知第一无线路由器,以建立信任关系。That is, if another wireless router that receives the request message sent by the first wireless router agrees to establish a trust relationship, a response message is sent to the first wireless router to establish a trust relationship.
可选地,参见图15,该装置还包括:Optionally, referring to FIG. 15, the apparatus further includes:
第一发送模块1404,设置为发送自身的标示符至已建立信任关系的第二无线路由器,以使第二无线路由器对接收到的标示符进行存储。The first sending module 1404 is configured to send its own identifier to the second wireless router that has established a trust relationship, so that the second wireless router stores the received identifier.
在信任关系建立成功之后,第一无线路由器需发送自身的标示符至已建立信任关系的第二无线路由器,以使对方进行存储,便于对已建立信任关系的其他无线路由器进行识别和查询。在实际操作中,无线路由器可将接收到的标示符存储在一名为信任列表的表格中,方便存储和查询。After the trust relationship is successfully established, the first wireless router needs to send its own identifier to the second wireless router that has established the trust relationship, so that the other party stores, and it is convenient to identify and query other wireless routers that have established a trust relationship. In practice, the wireless router can store the received identifiers in a table called a trust list for convenient storage and query.
其中,标示符中至少包括:服务集标识SSID信息和加密密码信息。所谓加密密码就是发送标示符时,对标示符的加密密码,这样可以保证上网终端的安全切换,避免信息泄露。The identifier includes at least: a service set identifier SSID information and an encrypted password information. The so-called encrypted password is the encrypted password for the identifier when the identifier is sent. This ensures the secure switching of the Internet terminal and avoids information leakage.
可选地,参见图15,该装置还包括:Optionally, referring to FIG. 15, the apparatus further includes:
第一接收模块1405,设置为接收已建立信任关系的第二无线路由器发送的自身的标示符。The first receiving module 1405 is configured to receive its own identifier sent by the second wireless router that has established the trust relationship.
第一存储模块1406,设置为将接收到的已建立信任关系的第二无线路由器的标示符进行存储。The first storage module 1406 is configured to store the identifier of the received second wireless router that has established the trust relationship.
同样的,在信任关系建立成功之后,与第一无线路由器已建立信任关系的第二无线路由器也需将自身的标示符发送至第一无线路由器,以使第一无线路由器方便查询和保存到底与哪些其他无线路由器建立了信任关系。在实际操作中,无线路由器可将接收到的标示符存储在一名为信任列表的表格中,方便存储和查询。Similarly, after the trust relationship is successfully established, the second wireless router that has established a trust relationship with the first wireless router also needs to send its own identifier to the first wireless router, so that the first wireless router can conveniently query and save the Which other wireless routers have established a trust relationship. In practice, the wireless router can store the received identifiers in a table called a trust list for convenient storage and query.
其中,标示符中至少包括:服务集标识SSID信息和加密密码信息。所谓加密密码就是发送标示符时,对标示符的加密密码,这样可以保证上网终端的安全切换,避免信息泄露。The identifier includes at least: a service set identifier SSID information and an encrypted password information. The so-called encrypted password is the encrypted password for the identifier when the identifier is sent. This ensures the secure switching of the Internet terminal and avoids information leakage.
可选地,参见图15,该装置还包括: Optionally, referring to FIG. 15, the apparatus further includes:
第二发送模块1407,设置为实时或定时向第二无线路由器发送自身的状态信息,以使第二无线路由器对接收到的状态信息进行存储。The second sending module 1407 is configured to send its own state information to the second wireless router in real time or timing, so that the second wireless router stores the received state information.
其中,状态信息至少包括:网络信号强度信息和剩余可用带宽信息。The status information includes at least: network signal strength information and remaining available bandwidth information.
为了保证当无线路由器的网络运载状况出现异常时,能够快速的完成上网终端的切换,第一无线路由器在与第二无线路由器建立信任关系之后,第一无线路由器需实时或定时向已建立信任关系的所有第二无线路由器发送自身的状态信息,以使第二无线路由器对第一无线路由的最新状态进行了解和存储(其中,新接收到的状态信息会覆盖之前已存储的状态信息)。在实际操作中,可以将接收到的已建立信任关系的其他无线路由器的状态信息存储在信任列表中。In order to ensure that when the network carrying condition of the wireless router is abnormal, the switching of the Internet terminal can be completed quickly. After the first wireless router establishes a trust relationship with the second wireless router, the first wireless router needs to establish a trust relationship in real time or periodically. All of the second wireless routers transmit their own status information to enable the second wireless router to know and store the latest status of the first wireless router (where the newly received status information overwrites the previously stored status information). In actual operation, the status information of other wireless routers that have received the established trust relationship may be stored in the trust list.
可选地,参见图15,该装置还包括:Optionally, referring to FIG. 15, the apparatus further includes:
第二接收模块1408,设置为接收第二无线路由器发送的关于自身的状态信息。The second receiving module 1408 is configured to receive status information about itself sent by the second wireless router.
第二存储模块1409,设置为将接收到的第二无线路由器的状态信息进行存储。The second storage module 1409 is configured to store the received status information of the second wireless router.
其中,状态信息至少包括:网络信号强度信息和剩余可用带宽信息。The status information includes at least: network signal strength information and remaining available bandwidth information.
为了保证当无线路由器的网络运载状况出现异常时,能够快速的完成上网终端的切换,第一无线路由器在与第二无线路由器建立信任关系之后,同样,第二无线路由器也要实时或定时向第一无线路由器发送自身的状态信息,以便第一无线路由器对第二无线路由器的最新状态进行了解和存储(其中,新接收到的状态信息会覆盖之前已存储的状态信息)。在实际操作中,可以将接收到的已建立信任关系的其他无线路由器的状态信息存储在信任列表中。In order to ensure that when the network carrying condition of the wireless router is abnormal, the switching of the Internet terminal can be completed quickly. After the first wireless router establishes a trust relationship with the second wireless router, the second wireless router also needs to be in real time or timed. A wireless router transmits its own status information so that the first wireless router knows and stores the latest status of the second wireless router (where the newly received status information overwrites the previously stored status information). In actual operation, the status information of other wireless routers that have received the established trust relationship may be stored in the trust list.
可选地,参见图15,第一发送子模块14021包括:Optionally, referring to FIG. 15, the first sending submodule 14021 includes:
第一获取单元140211,设置为获取已建立信任关系的每个第二无线路由器的状态稳定程度值。The first obtaining unit 140211 is configured to acquire a state stability degree value of each second wireless router that has established a trust relationship.
其中,参见图15,第一获取单元140211包括:Referring to FIG. 15, the first obtaining unit 140211 includes:
等级划分子单元1402111,设置为将存储的已建立信任关系的所有第二 无线路由器的网络信号强度和剩余可用带宽分别按照预设的等级划分规则进行等级划分。 Level division sub-unit 1402111, set to store all of the second established trust relationships The network signal strength and the remaining available bandwidth of the wireless router are respectively classified according to a preset level division rule.
例如,如果网络信号强度均是以阶梯状的信号强度格表示,则可将每一个信号强度格作为一个等级,总共具有多个信号强度格,等级数就是多少。而剩余可用带宽例如可按照1-5M,5-10M,10-15M,15-20M,20M以上带宽划分为5个等级,当然可以理解的是,还可根据实际需要设置其他的划分规则。For example, if the network signal strengths are represented by a stepped signal strength grid, each signal strength grid can be used as a level, with a total of multiple signal strength grids, and the number of levels. The remaining available bandwidth can be divided into five levels according to the bandwidth of 1-5M, 5-10M, 10-15M, 15-20M, and 20M. For example, it can be understood that other partitioning rules can be set according to actual needs.
计算子单元1402112,设置为根据每个已建立信任关系的第二无线路由器的网络状态所属等级和剩余可用带宽所属等级,利用预设的计算公式P=(S+B)/2,计算状态稳定程度值。The calculating sub-unit 1402112 is configured to calculate the state stable according to the level of the network state of the second wireless router and the level of the remaining available bandwidth of each of the established trust relationships, using a preset calculation formula P=(S+B)/2 Degree value.
其中,P表示状态稳定程度值,S表示一已建立信任关系的第二无线路由器的网络状态所属等级,B表示一已建立信任关系的第二无线路由器的剩余可用带宽所属等级。Wherein, P represents a state stability degree value, S represents a network state of a second wireless router that has established a trust relationship, and B represents a level of remaining available bandwidth of a second wireless router that has established a trust relationship.
第一发送单元140212,设置为按照状态稳定程度值由高到底的顺序,在第二无线路由器中确定发送切换上网终端的请求消息的一个或多个目标无线路由器。The first sending unit 140212 is configured to determine, in the second wireless router, the one or more target wireless routers that send the request message for switching the Internet terminal according to the order of the state stability degree value.
也就是,在已建立信任关系的第二无线路由器中,首先选择状态稳定值最大的无线路由器发送切换上网终端的请求消息,如果状态稳定值最大的无线路由器拒绝第一无线路由器的请求,则选择状态稳定值第二大的无线路由器发送切换上网终端的请求消息,之后依次类推。That is, in the second wireless router that has established the trust relationship, the wireless router with the highest state stability value is first selected to send a request message for switching the Internet terminal, and if the wireless router with the highest state stability value rejects the request of the first wireless router, The wireless router with the second largest state stable value sends a request message for switching the Internet terminal, and so on.
可选地,参见图15,切换子模块14022包括:Optionally, referring to FIG. 15, the switching submodule 14022 includes:
选择单元140221,设置为选择状态稳定程度值最大的第二无线路由器作为第一目标路由器。The selecting unit 140221 is configured to select the second wireless router with the largest state stability value as the first target router.
第二发送单元140222,设置为向第一目标无线路由器发送切换上网终端的请求消息。The second sending unit 140222 is configured to send a request message for switching the internet terminal to the first target wireless router.
其中,请求消息中包括需要切换的上网终端的介质访问控制MAC地址信息。The request message includes media access control MAC address information of the internet terminal that needs to be switched.
第一切换单元140223,设置为当第一目标无线路由器同意切换上网终端 的请求消息时,将部分或全部需要切换的上网终端切换至第一目标无线路由器,并记录已切换的上网终端的MAC地址信息和第一目标无线路由器的标示符信息。The first switching unit 140223 is configured to: when the first target wireless router agrees to switch the Internet access terminal In the request message, some or all of the Internet terminals that need to be switched are switched to the first target wireless router, and the MAC address information of the switched Internet terminal and the identifier information of the first target wireless router are recorded.
其中,选择单元140221选择状态稳定程度值最大的第二无线路由器作为第一目标路由器,第二发送单元140222向第一目标无线路由器发送切换上网终端的请求消息,第一目标无线路由器在接收到第一无线路由器发送的切换上网终端的请求消息后,会对自身的网络运载情况进行判断,首先确定自身是否可以上网,如果可以上网,则继续判断自身的负载情况,如果根据切换上网终端请求消息中的MAC地址信息,确定在接受第一无线路由器需要切换的全部上网终端时,也不会超负荷,则可接受并承载第一无线路由器需要切换的全部上网终端,则第一切换单元140223将需要切换的上网终端全部切换到第一目标无线路由器;如果根据切换上网终端请求消息中的MAC地址信息,确定仅能接受第一无线路由器需要切换的部分上网终端,则接受并承载第一无线路由器需要切换的部分上网终端,则第一切换单元140223将需要切换的部分上网终端切换至第一目标无线路由器。同时第一无线路由器根据状态稳定程度值选择第二目标无线路由器发送切换上网终端的请求消息,以完成剩余的需要切换的上网终端的切换,之后依次类推,便不再赘述。The selection unit 140221 selects the second wireless router with the highest state stability degree value as the first target router, and the second sending unit 140222 sends the request message for switching the Internet access terminal to the first target wireless router, and the first target wireless router receives the first message. After the request message of the Internet terminal sent by the wireless router is switched, the network carrying situation of the Internet terminal is judged, and it is first determined whether it can access the Internet. If the Internet access is available, the user continues to determine the load status of the Internet. The MAC address information determines that when all the Internet terminals that need to be switched by the first wireless router are accepted, and are not overloaded, all the Internet terminals that need to be switched by the first wireless router are accepted and carried, and the first switching unit 140223 will need The switched Internet terminals all switch to the first target wireless router; if it is determined that only the part of the Internet terminals that the first wireless router needs to switch can be accepted according to the MAC address information in the switching Internet terminal request message, the first wireless router needs to be accepted and carried. Switch Internet terminal portion, the first switching section 140,223 will require access terminal switching unit is switched to the first target wireless router. At the same time, the first wireless router selects the second target wireless router to send a request message for switching the Internet terminal according to the state stability degree value, so as to complete the switching of the remaining Internet terminal that needs to be switched, and then the analogy will not be repeated.
其中,在上网终端切换过程中,第一目标无线路由器需记录第一无线路由器已切换至的上网终端的MAC地址信息和第一无线路由器的标示符信息,同时,第一无线路由器也需对已迁出至第一目标无线路由器上的上网终端的MAC地址信息和第一目标无线路由器的标示符信息进行记录。在实际操作中,上网终端的MAC地址信息和相应的无线路由器的标示符信息可对应的记录在一名为转移列表中,以方便查询。In the process of switching the Internet terminal, the first target wireless router needs to record the MAC address information of the Internet terminal that the first wireless router has switched to and the identifier information of the first wireless router, and the first wireless router also needs to The MAC address information of the Internet terminal that is moved out to the first target wireless router and the identifier information of the first target wireless router are recorded. In actual operation, the MAC address information of the Internet terminal and the corresponding identifier information of the wireless router may be recorded in a transfer list to facilitate the query.
需要说明的是,第一无线路由器可通过APP推送方式告知自身承载的上网终端其将要被切换至第一目标无线路由器的消息,一般由于第一无线路由器和第一目标无线路由器已建立信任关系,因此APP上是默认同意切换的。It should be noted that the first wireless router can notify the mobile terminal that it bears to be switched to the message of the first target wireless router by using the APP push mode. Generally, the first wireless router and the first target wireless router have established a trust relationship. Therefore, the APP agrees to switch by default.
第二切换单元140224,设置为当第一目标无线路由器拒绝切换上网终端的请求消息时,根据状态稳定程度值在第二无线路由器中寻找第二目标无线路由器,以完成上网终端的切换。 The second switching unit 140224 is configured to: when the first target wireless router refuses to switch the request message of the Internet access terminal, find the second target wireless router in the second wireless router according to the state stability degree value, to complete the switching of the Internet access terminal.
其中,如果第一目标无线路由器在接收到第一无线路由器发送的切换上网终端的请求消息后,确定自身无法上网或可上网但已超负荷,也就是无法接收第一无线路由器需要切换的上网终端,则向第一无线路由器发送拒绝消息,第一无线路由器在接收到拒绝消息后,可通过第二切换单元140224根据状态稳定程度值在第二无线路由器中寻找第二目标无线路由器,以完成上网终端的切换。其中在拒绝消息中,可携带第一目标无线路由器的网络运载状况信息以告知第一无线路由器具体情况,而第一无线路由器可将第一目标无线路由器相应的标注为“未连网”或“超负荷”。If the first target wireless router receives the request message for switching the Internet terminal sent by the first wireless router, it determines that the user cannot access the Internet or can access the Internet but is overloaded, that is, the Internet terminal that needs to be switched by the first wireless router cannot be received. And sending a reject message to the first wireless router. After receiving the reject message, the first wireless router may search for the second target wireless router in the second wireless router according to the state stability level value by using the second switching unit 140224 to complete the Internet access. Switching of the terminal. In the reject message, the network carrying status information of the first target wireless router may be carried to inform the first wireless router of the specific situation, and the first wireless router may mark the first target wireless router as “unconnected” or “corresponding”. overload".
可选地,参见图15,该装置还包括:Optionally, referring to FIG. 15, the apparatus further includes:
第二监控模块1410,设置为继续监控当前的网络运载状况。The second monitoring module 1410 is configured to continue to monitor the current network carrying condition.
第一返回模块1411,设置为当网络运载恢复正常时,根据记录的已切换的上网终端的MAC地址信息和切换至的目标无线路由器的标示符信息,向目标无线路由器发送返回上网终端的请求消息,以使目标无线路由器返回相应的上网终端。The first returning module 1411 is configured to, when the network carrier returns to normal, send a request message to the target wireless router to return to the target terminal according to the recorded MAC address information of the switched Internet terminal and the identifier information of the target wireless router that is switched to. In order to return the target wireless router to the corresponding Internet terminal.
其中,当第一无线路由器通过第二监控模块1410检测到自身可以连网或不再超负荷时,则查询是否将上网终端切换至其他无线路由器上,如果为已将上网终端切换至其他无线路由器上,则返回模块1411根据记录的已切换的上网终端的MAC地址信息和切换至的目标无线路由器的标示符信息,向目标无线路由器发送返回上网终端的请求消息,而目标无线路由器同样会查询是否接收过第一无线路由器的上网终端,如果为接收过第一无线路由器的上网终端,则将相应的上网终端返回给第一无线路由器,同时可通过APP推送方式告知上网终端返回消息,一般由于第一无线路由器和目标无线路由器已建立信任关系,因此APP上是默认同意返回的。When the first wireless router detects that the network can be connected to the network or is no longer overloaded by the second monitoring module 1410, it queries whether the Internet terminal is switched to another wireless router, if the Internet terminal has been switched to another wireless router. The returning module 1411 sends a request message for returning to the Internet terminal to the target wireless router according to the recorded MAC address information of the switched Internet terminal and the identifier information of the target wireless router that is switched, and the target wireless router also queries whether Receiving the Internet terminal of the first wireless router, if it is the Internet terminal receiving the first wireless router, returning the corresponding Internet terminal to the first wireless router, and simultaneously informing the Internet terminal to return the message through the APP push mode, generally due to A wireless router and the target wireless router have established a trust relationship, so the APP agrees to return by default.
综上所述,本发明实施例提供的实现上网终端切换的装置,通过使无线路由器之间建立信任关系,从而在其中一无线路由器无法上网或负载超荷时,能够及时将上网终端切换至其他无线路由器上,以保障上网终端上网的可靠性和稳定性,同时也有利实现负载均衡,减少资源的浪费。请求消息中包括切换至目标无线路由器的上网终端的MAC地址信息。In summary, the device for implementing the switching of the Internet terminal according to the embodiment of the present invention can establish the trust relationship between the wireless routers, so that when one of the wireless routers cannot access the Internet or the load is overloaded, the Internet terminal can be switched to other terminals in time. On the wireless router, to ensure the reliability and stability of the Internet access terminal, it is also beneficial to achieve load balancing and reduce resource waste. The request message includes MAC address information of the internet terminal that is switched to the target wireless router.
第四实施例 Fourth embodiment
本发明实施例提供了一种实现上网终端切换的装置,应用于接收第一无线路由器切换上网终端请求的第二无线路由器,参见图16,该装置包括:判断模块1601和接受承载模块1602。The embodiment of the present invention provides a device for implementing the switching of the Internet terminal, and is applied to the second wireless router that receives the request of the first wireless router to switch the Internet access terminal. Referring to FIG. 16, the device includes: a determining module 1601 and an accepting bearer module 1602.
判断模块1601,设置为当所述第一无线路由器请求切换上网终端到所述第二无线路由器时,所述第二无线路由器判断自身当前的网络运载状况是否符合预定的上网终端切换条件。The determining module 1601 is configured to: when the first wireless router requests to switch the internet terminal to the second wireless router, the second wireless router determines whether the current network carrying condition of the second wireless router meets a predetermined online terminal switching condition.
其中,当第一无线路由器检测出自身无法上网或超负荷时,则可向已建立信任关系的第二无线路由器请求切换上网终端用户到第二无线路由器,第二无线路由器通过判断模块1601判断自身当前的网络运载状况是否可以接受第一无线路由器需要切换的上网终端。When the first wireless router detects that it is unable to access the Internet or is overloaded, the second wireless router that has established the trust relationship may request to switch the Internet terminal user to the second wireless router, and the second wireless router determines itself through the determining module 1601. Whether the current network carrying condition can accept the Internet terminal that the first wireless router needs to switch.
其中,上述网络运载状况是指无线路由器的网络状态和负载情况等,对于网络状态一般是判断是否能够上网,对于负载情况一般是判断是否超负荷。The network carrying status refers to the network status and load status of the wireless router. For the network status, it is generally determined whether the Internet is available. For the load situation, it is generally determined whether the load is overloaded.
接受承载模块1602,设置为当判断结果为是时,接受并承载所述第一无线路由器需要切换的至少部分上网终端。The receiving bearer module 1602 is configured to accept and carry at least part of the internet terminal that the first wireless router needs to switch when the determination result is yes.
如果第二无线路起确认可以接受第一无线路由器需要切换的上网终端,则接受承载模块1602接受并承载第一无线路由器需要切换的至少部分上网终端,其中,这里之所以说“至少部分上网终端”是因为可能存在第二无线路由器接受第一无线路由器所有需要切换的上网终端时会出现超负荷情况,因此此时仅能接受第一无线路由需要切换的部分上网终端,而第一无线路由器则需继续寻找可接受剩余需要切换的上网终端。If the second wireless path confirms that the first wireless router needs to switch the Internet terminal, the receiving bearer module 1602 accepts and carries at least part of the Internet terminal that the first wireless router needs to switch, wherein the reason for saying at least part of the Internet terminal is "Because there may be an overload situation when the second wireless router accepts all the Internet terminals that need to be switched by the first wireless router, so only some of the Internet terminals that need to be switched by the first wireless route can be accepted at this time, and the first wireless router is It is necessary to continue to search for an Internet terminal that accepts the remaining needs to be switched.
其中,当第一无线路由器无法上网时,第一无线路由器承载的需要切换的上网终端为全部上网终端;当第一无线路由器超负荷时,第一无线路由器承载的需要切换的上网终端为超出负载范围的上网终端。Wherein, when the first wireless router is unable to access the Internet, the Internet terminal that needs to be switched carried by the first wireless router is all the Internet access terminals; when the first wireless router is overloaded, the Internet terminal that needs to be switched carried by the first wireless router is overloaded. Range of internet terminals.
可选地,参见图17,判断模块1601包括:Optionally, referring to FIG. 17, the determining module 1601 includes:
接收子模块16011,设置为接收已建立信任关系的所述第一无线路由器发送的切换上网终端的请求消息。The receiving sub-module 16011 is configured to receive a request message for switching the Internet terminal sent by the first wireless router that has established a trust relationship.
其中,当第一无线路由器检测出自身无法上网或超负荷时,则可向已建立信任关系的第二无线路由器发送切换上网终端的请求消息,以请求第二无 线路由器接受需要切换的上网终端。When the first wireless router detects that it is unable to access the Internet or is overloaded, the second wireless router that has established the trust relationship may send a request message for switching the Internet terminal to request the second The line router accepts the Internet terminal that needs to be switched.
其中,切换上网终端的请求消息包括需要切换的上网终端的MAC地址信息。The request message for switching the Internet terminal includes MAC address information of the Internet terminal that needs to be switched.
判断子模块16012,设置为判断自身当前的网络运载状况是否符合预定的上网终端切换条件。The determining sub-module 16012 is configured to determine whether the current network carrying condition of the user meets the predetermined Internet terminal switching condition.
第二无线路由器在接收到第一无线路由器发送的切换上网终端的请求消息后,可通过判断模块16012判断自身当前的网络运载状况是否可以接受第一无线路由器需要切换的上网终端。After receiving the request message for switching the Internet terminal sent by the first wireless router, the second wireless router may determine, by the determining module 16012, whether the current network carrying condition of the first wireless router can accept the Internet terminal that the first wireless router needs to switch.
相应的,参见图17,接受承载模块1602包括:Correspondingly, referring to FIG. 17, the accepting bearer module 1602 includes:
发送子模块16021,设置为当判断结果为自身当前的网络运载状况符合预定的上网终端切换条件时,则向所述第一无线路由器发送确认切换消息。The sending sub-module 16021 is configured to send an acknowledgement handover message to the first wireless router when the result of the determination is that the current network carrying condition of the network meets the predetermined Internet terminal handover condition.
接收承载子模块16022,设置为接受并承载所述第一无线路由器需要切换的至少部分上网终端。The receiving bearer module 16022 is configured to accept and carry at least part of the internet terminal that the first wireless router needs to switch.
如果判断子模块16012确认可以接受第一无线路由器需要切换的上网终端,则发送子模块16021向所述第一无线路由器发送确认切换消息,接受承载子模块16022接受并承载第一无线路由器需要切换的至少部分上网终端。If the determining sub-module 16012 confirms that the first wireless router needs to switch the Internet terminal, the sending sub-module 16021 sends an acknowledgement switching message to the first wireless router, and the accepting sub-module 16022 accepts and carries the first wireless router to switch. At least part of the Internet terminal.
上述通过第一无线路由器向第二无线路由器发送请求消息,并在第二无线路由器同意切换时再进行切换,这样可以提高切换的准确性。The foregoing sends a request message to the second wireless router through the first wireless router, and performs switching again when the second wireless router agrees to switch, so that the accuracy of the handover can be improved.
可选地,参见图17,该装置还包括:Optionally, referring to FIG. 17, the apparatus further includes:
第二信任建立模块1603,设置为预先与第一无线路由器建立信任关系。The second trust establishing module 1603 is configured to establish a trust relationship with the first wireless router in advance.
可选地,参见图17,第二信任建立模块1603包括:Optionally, referring to FIG. 17, the second trust establishing module 1603 includes:
第二接收子模块16031,设置为接收第一无线路由器发送的建立信任关系的请求消息。The second receiving submodule 16031 is configured to receive a request message for establishing a trust relationship sent by the first wireless router.
实际操作中,可以由管理员进入第一无线路由器的建立信任关系的界面中,在该界面中存在第一无线路由器可搜索到的一个或多个其他无线路由器,且对应每个搜索到的无线路由器具有一发送请求消息的虚拟按钮,管理员可根据实际需求触发请求消息的发送,而当其他无线路由器(即第二无线路由 器)接收到请求消息后,其他无线路由器的管理员可根据实际需要选择同意或拒绝。In actual operation, the administrator may enter an interface for establishing a trust relationship of the first wireless router, where one or more other wireless routers searchable by the first wireless router exist, and corresponding to each searched wireless The router has a virtual button for sending a request message, and the administrator can trigger the sending of the request message according to actual needs, while other wireless routers (ie, the second wireless router) After receiving the request message, the administrators of other wireless routers can choose to agree or reject according to actual needs.
第二信任建立子模块16032,设置为当同意建立信任关系时,向第一无线路由器发送同意建立信任关系的应答消息,以使信任关系建立成功。The second trust establishment sub-module 16032 is configured to, when agreeing to establish a trust relationship, send a response message to the first wireless router to agree to establish a trust relationship, so that the trust relationship is successfully established.
可选地,参见图17,该装置还包括:Optionally, referring to FIG. 17, the apparatus further includes:
第三发送模块1604,设置为发送自身的标示符至第一无线路由器,以使第一无线路由器对接收到的标示符进行存储。The third sending module 1604 is configured to send its own identifier to the first wireless router, so that the first wireless router stores the received identifier.
在信任关系建立成功之后,第二无线路由器需发送自身的标示符至对方,以使对方进行存储,便于对已建立信任关系的其他无线路由器的识别和查询。在实际操作中,无线路由器可将接收到的标示符存储在一名为信任列表的表格中,方便存储和查询。其中,标示符中至少包括:服务集标识SSID信息和加密密码信息,所谓加密密码就是发送标示符时,对标示符的加密密码,这样可以保证上网终端的安全切换,避免信息泄露。After the trust relationship is successfully established, the second wireless router needs to send its own identifier to the other party, so that the other party stores, and facilitates identification and query of other wireless routers that have established a trust relationship. In practice, the wireless router can store the received identifiers in a table called a trust list for convenient storage and query. The identifier includes at least: a service set identifier SSID information and an encrypted password information. The so-called encrypted password is an encrypted password for the identifier when the identifier is sent, so as to ensure secure switching of the Internet terminal and avoid information leakage.
可选地,参见图17,该装置还包括:Optionally, referring to FIG. 17, the apparatus further includes:
第三接收模块1605,设置为接收第一无线路由器发送的自身的标示符。The third receiving module 1605 is configured to receive an identifier of its own sent by the first wireless router.
第三存储模块1606,设置为将接收到的第一无线路由器的标示符进行存储。The third storage module 1606 is configured to store the identifier of the received first wireless router.
在信任关系建立成功之后,同样第一无线路由器需发送自身的标示符至第二无线路由器,以使对方进行存储,便于对已建立信任关系的其他无线路由器的识别和查询。在实际操作中,无线路由器可将接收到的标示符存储在一名为信任列表的表格中,方便存储和查询。其中,标示符中至少包括:服务集标识SSID信息和加密密码信息,所谓加密密码就是发送标示符时,对标示符的加密密码,这样可以保证上网终端的安全切换,避免信息泄露。After the trust relationship is established successfully, the first wireless router also needs to send its own identifier to the second wireless router, so that the other party stores, and facilitates identification and query of other wireless routers that have established a trust relationship. In practice, the wireless router can store the received identifiers in a table called a trust list for convenient storage and query. The identifier includes at least: a service set identifier SSID information and an encrypted password information. The so-called encrypted password is an encrypted password for the identifier when the identifier is sent, so as to ensure secure switching of the Internet terminal and avoid information leakage.
可选地,该装置还包括:Optionally, the device further includes:
第四发送模块1607,设置为实时或定时向第一无线路由器发送自身的状态信息,以使第一无线路由器对接收到的状态信息进行存储。The fourth sending module 1607 is configured to send its own state information to the first wireless router in real time or timing, so that the first wireless router stores the received state information.
其中,状态信息至少包括:网络信号强度信息和剩余可用带宽信息。The status information includes at least: network signal strength information and remaining available bandwidth information.
为了保证当无线路由器的网络运载状况出现异常时,能够快速的完成上 网终端的切换,第二无线路由器在与第一无线路由器建立信任关系之后,第二无线路由器需实时或定时通过第五发送模块1607向已建立信任关系的第一无线路由器发送自身的状态信息,以使第一无线路由器对第二无线路由的最新状态进行了解和存储(其中,新接收到的状态信息会覆盖之前已存储的状态信息),在实际操作中,可以将接收到的已建立信任关系的其他无线路由器的状态信息存储在信任列表中。In order to ensure that when the wireless router's network carrying condition is abnormal, it can be quickly completed. After the second wireless router establishes a trust relationship with the first wireless router, the second wireless router needs to send its own state information to the first wireless router that has established the trust relationship through the fifth sending module 1607 in real time or periodically. In order to enable the first wireless router to know and store the latest state of the second wireless router (where the newly received state information will overwrite the previously stored state information), in actual operation, the received established trust may be received. The status information of other wireless routers of the relationship is stored in the trust list.
可选地,参见图17,该装置还包括:Optionally, referring to FIG. 17, the apparatus further includes:
第四接收模块1608,设置为接收第一无线路由器发送的关于自身的状态信息。The fourth receiving module 1608 is configured to receive status information about itself sent by the first wireless router.
第四存储模块1609,设置为将接收到的第一无线路由器的状态信息进行存储和更新。The fourth storage module 1609 is configured to store and update status information of the received first wireless router.
其中,状态信息至少包括:网络信号强度信息和剩余可用带宽信息。The status information includes at least: network signal strength information and remaining available bandwidth information.
为了保证当无线路由器的网络运载状况出现异常时,能够快速的完成上网终端的切换,同样,第一无线路由器也要实时或定时向第二无线路由器发送自身的状态信息,由第二无线路由器的第四存储模块1609将接收到的第一无线路由器的状态信息进行存储,以便第二无线路由器对第一无线路由器的最新状态进行了解。其中,状态信息至少包括:网络信号强度信息和剩余可用带宽信息。在实际操作中,可以将接收到的已建立信任关系的其他无线路由器的状态信息存储在信任列表中。In order to ensure that the wireless router's network carrying condition is abnormal, the switching of the Internet terminal can be completed quickly. Similarly, the first wireless router also sends its own state information to the second wireless router in real time or periodically, by the second wireless router. The fourth storage module 1609 stores the received status information of the first wireless router, so that the second wireless router knows the latest status of the first wireless router. The status information includes at least: network signal strength information and remaining available bandwidth information. In actual operation, the status information of other wireless routers that have received the established trust relationship may be stored in the trust list.
可选地,切换上网终端的请求消息包括需要切换的上网终端的MAC地址信息。相应的,参见图17,接受承载子模块16022包括:Optionally, the request message for switching the Internet terminal includes MAC address information of the Internet terminal that needs to be switched. Correspondingly, referring to FIG. 17, the accepting bearer module 16022 includes:
第一接受承载单元160221,设置为当当前网络正常且未出现超负荷情况,且如果接受全部第一无线路由器需要切换的上网终端时也不会超负荷时,接受并承载全部第一无线路由器需要切换的上网终端,并记录切换至的上网终端的MAC地址信息和第一无线路由器的标示符信息。The first receiving bearer unit 160221 is configured to receive and carry all the first wireless routers when the current network is normal and no overload condition occurs, and if all the first wireless routers need to switch the Internet terminals are not overloaded. Switching the Internet terminal, and recording the MAC address information of the connected terminal and the identifier information of the first wireless router.
第二接受承载单元160222,设置为当当前网络正常且未出现超负荷情况,且如果接受全部第一无线路由器需要切换的上网终端时会出现超负荷情况时,接受并承载部分第一无线路由器需要切换的上网终端,并记录切换至的 上网终端MAC地址信息和第一无线路由器的标示符信息。The second receiving bearer unit 160222 is configured to accept and carry part of the first wireless router when the current network is normal and no overload condition occurs, and if an overload condition occurs when all the first wireless routers need to switch the Internet terminal Switch the internet terminal and record the switch to The MAC address information of the Internet terminal and the identifier information of the first wireless router.
其中,第二无线路由器在接收到第一无线路由器发送的切换上网终端的请求消息后,会对自身的网络运载情况进行判断,首先确定自身是否可以上网,如果可以上网,则继续判断自身的负载情况,如果根据切换上网终端请求消息中的MAC地址信息,确定在接收第一无线路由器需要切换的全部上网终端时,也不会超负荷,则接受并承载第一无线路由器需要切换的全部上网终端;如果根据切换上网终端请求消息中的MAC地址信息,确定仅能接受第一无线路由器需要切换的部分上网终端,则接收并承载第一无线路由器需要切换的部分上网终端,同时第一无线路由器还需继续选择其他已建立信任关系的无线路由器发送切换上网终端的请求消息,以完成剩余的需要切换的上网终端的切换,之后依次类推,便不再赘述。After receiving the request message for switching the Internet terminal sent by the first wireless router, the second wireless router determines the network carrying condition of the second wireless router, first determines whether it can access the Internet, and if it can access the Internet, continues to determine its own load. In the case that, according to the MAC address information in the switching Internet terminal request message, it is determined that when all the Internet terminals that need to be switched by the first wireless router are received, and are not overloaded, all the Internet terminals that need to be switched by the first wireless router are accepted and carried. If, according to the MAC address information in the switching network terminal request message, it is determined that only the part of the Internet terminal that the first wireless router needs to switch can be accepted, then the part of the Internet terminal that the first wireless router needs to switch is received and carried, and the first wireless router also It is necessary to continue to select other wireless routers that have established a trust relationship to send a request message for switching the Internet terminal, so as to complete the handover of the remaining Internet terminals that need to be switched, and then the analogy will not be repeated.
其中,在上网终端切换过程中,第二无线路由器需记录第一无线路由器已切换至的上网终端的MAC地址信息和第一无线路由器的标示符信息,同时,第一无线路由器也需对已迁出至第二无线路由器上的上网终端的MAC地址信息和第二无线路由器的标示符信息进行记录。其中上网终端的MAC地址信息和相应的无线路由器的标示符信息可对应的记录在一转移列表中,以方便查询。In the process of switching the Internet terminal, the second wireless router needs to record the MAC address information of the Internet terminal that the first wireless router has switched to and the identifier information of the first wireless router, and the first wireless router also needs to move. The MAC address information of the Internet terminal on the second wireless router and the identifier information of the second wireless router are recorded. The MAC address information of the Internet terminal and the identifier information of the corresponding wireless router may be correspondingly recorded in a transfer list for convenient query.
需要说明的是,第一无线路由器可通过APP推送方式告知自身承载的上网终端其将要被切换至第二无线路由器的消息,一般由于第一无线路由器和第二无线路由器已建立信任关系,因此APP上是默认同意切换的。It should be noted that the first wireless router can notify the mobile terminal that it bears to be switched to the second wireless router by using the APP push mode. Generally, the first wireless router and the second wireless router have established a trust relationship, so the APP The above is the default to agree to switch.
可选地,参见图17,该装置还包括:Optionally, referring to FIG. 17, the apparatus further includes:
第五接收模块1610,设置为接收第一无线路由器发送的返回上网终端的请求消息。The fifth receiving module 1610 is configured to receive a request message sent back to the Internet terminal sent by the first wireless router.
其中,请求消息中包括请求返回上网终端的MAC地址信息。The request message includes the MAC address information of the request to return to the Internet terminal.
当第一无线路由器检测到自身可以连网或不再超负荷时,则查询是否将上网终端切换至其他无线路由器上,如果为是,则根据记录的已切换的上网终端的MAC地址信息和切换至的目标无线路由器的标示符信息,向目标无线路由器发送返回上网终端的请求消息。 When the first wireless router detects that it can connect to the network or is no longer overloaded, it queries whether to switch the Internet terminal to another wireless router. If yes, according to the recorded MAC address information of the switched Internet terminal and switching The identifier information of the target wireless router to the destination wireless router sends a request message to the Internet terminal.
匹配模块1611,设置为将请求消息中的请求返回上网终端的MAC地址信息与已记录的对应第一无线路由器的切换至的上网终端的MAC地址信息进行匹配。The matching module 1611 is configured to match the MAC address information of the request returned to the Internet terminal in the request message with the MAC address information of the Internet terminal to which the corresponding first wireless router is switched.
第二无线路由器在接收到第一无线路由器发送的返回上网终端的请求消息后,同样会查询是否接收过第一无线路由器的上网终端,也就是将请求消息中的请求返回上网终端的MAC地址信息与已记录的对应第一无线路由器的切换至的上网终端的MAC地址信息进行匹配。After receiving the request message sent back to the Internet terminal sent by the first wireless router, the second wireless router also queries whether the Internet terminal of the first wireless router is received, that is, the request in the request message is returned to the MAC address information of the Internet terminal. Matching with the recorded MAC address information of the connected terminal corresponding to the first wireless router.
第二返回模块1612,设置为当匹配成功时,将对应的上网终端返回至第一无线路由器上。The second returning module 1612 is configured to return the corresponding Internet terminal to the first wireless router when the matching is successful.
如果第二无线路由器查询到接收过第一无线路由器的上网终端,则将相应的上网终端返回给第一无线路由器,同时可通过APP推送方式告知上网终端返回消息,一般由于第二无线路由器和第一无线路由器已建立信任关系,因此APP上是默认同意返回的。If the second wireless router queries the Internet terminal that has received the first wireless router, the corresponding Internet terminal is returned to the first wireless router, and the Internet terminal can be notified by the APP push mode to return a message, generally due to the second wireless router and the A wireless router has established a trust relationship, so the APP agrees to return by default.
综上所述,本发明实施例提供的实现上网终端切换的装置,通过使无线路由器之间建立信任关系,从而在其中一无线路由器无法上网或负载超荷时,能够及时将上网终端切换至其他无线路由器上,以保障上网终端上网的可靠性和稳定性,同时也有利实现负载均衡,减少资源的浪费。In summary, the device for implementing the switching of the Internet terminal according to the embodiment of the present invention can establish the trust relationship between the wireless routers, so that when one of the wireless routers cannot access the Internet or the load is overloaded, the Internet terminal can be switched to other terminals in time. On the wireless router, to ensure the reliability and stability of the Internet access terminal, it is also beneficial to achieve load balancing and reduce resource waste.
一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令被处理器执行时实现所述的实现上网终端切换的方法。A computer readable storage medium storing computer executable instructions, the computer executable instructions being implemented by a processor to implement the method for implementing internet terminal switching.
本领域普通技术人员可以理解上述实施例的全部或部分步骤可以使用计算机程序流程来实现,所述计算机程序可以存储于一个计算机可读存储介质中,所述计算机程序在相应的硬件平台上(如系统、设备、装置、器件等)执行,在执行时,包括方法实施例的步骤之一或其组合。One of ordinary skill in the art will appreciate that all or a portion of the steps of the above-described embodiments can be implemented using a computer program flow, which can be stored in a computer readable storage medium, such as on a corresponding hardware platform (eg, The system, device, device, device, etc. are executed, and when executed, include one or a combination of the steps of the method embodiments.
可选地,上述实施例的全部或部分步骤也可以使用集成电路来实现,这些步骤可以被分别制作成一个个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。Alternatively, all or part of the steps of the above embodiments may also be implemented by using an integrated circuit. These steps may be separately fabricated into individual integrated circuit modules, or multiple modules or steps may be fabricated into a single integrated circuit module. achieve.
上述实施例中的装置/功能模块/功能单元可以采用通用的计算装置来实现,它们可以集中在单个的计算装置上,也可以分布在多个计算装置所组成 的网络上。The device/function module/functional unit in the above embodiments may be implemented by using a general-purpose computing device, which may be concentrated on a single computing device or distributed in multiple computing devices. On the network.
上述实施例中的装置/功能模块/功能单元以软件功能模块的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。上述提到的计算机可读取存储介质可以是只读存储器,磁盘或光盘等。When the device/function module/functional unit in the above embodiment is implemented in the form of a software function module and sold or used as a stand-alone product, it can be stored in a computer readable storage medium. The above mentioned computer readable storage medium may be a read only memory, a magnetic disk or an optical disk or the like.
工业实用性Industrial applicability
本发明实施例技术方案,通过使无线路由器之间建立信任关系,当彼此已建立信任关系中的其中一个无线路由器无法上网或超负荷时,从而在其中一无线路由器无法上网或负载超荷时,能够及时将上网终端切换至其他无线路由器上,以保障上网终端上网的可靠性和稳定性,同时也有利实现负载均衡,减少资源的浪费。 According to the technical solution of the embodiment of the present invention, when a wireless router is unable to access the Internet or is overloaded by establishing a trust relationship between the wireless routers, when one of the wireless routers cannot access the Internet or load overload, It is possible to switch the Internet terminal to other wireless routers in time to ensure the reliability and stability of the Internet access terminal, and also to achieve load balancing and reduce resource waste.

Claims (24)

  1. 一种实现上网终端切换的方法,应用于需要切换上网终端的第一无线路由器,包括:A method for implementing switching of an Internet terminal is applied to a first wireless router that needs to switch an Internet terminal, including:
    监控当前的网络运载状况;Monitor current network traffic conditions;
    当当前的网络运载出现异常时,则将自身承载的需要切换的上网终端切换至已预先建立信任关系的一个或多个第二无线路由器上,令切换的上网终端通过所述第二无线路由器进行网络连接。When the current network carrier is abnormal, the Internet terminal that needs to be switched is switched to one or more second wireless routers that have established a trust relationship in advance, so that the switched Internet terminal performs the second wireless router. Internet connection.
  2. 根据权利要求1所述的实现上网终端切换的方法,其中,所述当当前的网络运载出现异常时,则将自身承载的需要切换的上网终端切换至已预先建立信任关系的一个或多个第二无线路由器上包括:The method for implementing the switching of the Internet access terminal according to claim 1, wherein when the current network carrier is abnormal, the Internet terminal that needs to be handed over is switched to one or more pre-established trust relationships. The two wireless routers include:
    当当前的网络运载出现异常时,则向已预先建立信任关系的一个或多个所述第二无线路由器发送切换上网终端的请求消息;When the current network carrier is abnormal, sending a request message for switching the Internet terminal to one or more of the second wireless routers that have established a trust relationship in advance;
    接收所述第二无线路由器根据所述请求消息反馈的确认切换消息,将自身承载的需要切换的上网终端切换至所述第二无线路由器,使切换的上网终端通过所述第二无线路由器进行网络连接。Receiving, by the second wireless router, the acknowledgment switching message fed back by the request message, switching the online terminal that needs to be switched to the second wireless router, so that the switched Internet terminal performs the network through the second wireless router. connection.
  3. 根据权利要求2所述的实现上网终端切换的方法,所述方法还包括:在监控当前的网络运载状况的步骤之前,预先与所述第二无线路由器建立信任关系。The method for implementing Internet terminal handover according to claim 2, the method further comprising: establishing a trust relationship with the second wireless router in advance before the step of monitoring the current network carrying condition.
  4. 根据权利要求3所述的实现上网终端切换的方法,其中,所述预先与所述第二无线路由器建立信任关系包括:The method for implementing the switching of the Internet terminal according to claim 3, wherein the establishing a trust relationship with the second wireless router in advance comprises:
    向所述第二无线路由器发送建立信任关系的请求消息;Sending a request message for establishing a trust relationship to the second wireless router;
    如果接收到所述第二无线路由器发送的同意建立信任关系的应答消息,则信任关系建立成功。If the response message sent by the second wireless router agreeing to establish a trust relationship is received, the trust relationship is successfully established.
  5. 根据权利要求4所述的实现上网终端切换的方法,所述方法还包括:在所述信任关系建立成功之后,发送自身的标示符至已建立信任关系的所述第二无线路由器,令所述第二无线路由器对接收到的所述标示符进行存储;The method for implementing the switching of the Internet terminal according to claim 4, the method further comprising: after the trust relationship is successfully established, transmitting its identifier to the second wireless router that has established a trust relationship, so that the The second wireless router stores the received identifier;
    其中,所述标示符中包括:服务集标识SSID信息和加密密码信息。 The identifier includes: a service set identifier SSID information and an encrypted password information.
  6. 根据权利要求4所述的实现上网终端切换的方法,所述方法还包括:在所述信任关系建立成功之后,接收已建立信任关系的所述第二无线路由器发送的自身的标示符;The method for implementing the switching of the Internet terminal according to claim 4, the method further comprising: after the trust relationship is successfully established, receiving an identifier of the second wireless router that has established the trust relationship;
    将接收到的已建立信任关系的所述第二无线路由器的标示符进行存储;And storing the identifier of the second wireless router that has received the established trust relationship;
    其中,所述标示符中包括:服务集标识SSID信息和加密密码信息。The identifier includes: a service set identifier SSID information and an encrypted password information.
  7. 根据权利要求3所述的实现上网终端切换的方法,所述方法还包括:在预先与所述第二无线路由器建立信任关系之后,实时或定时向所述第二无线路由器发送自身的状态信息,令所述第二无线路由器对接收到的所述状态信息进行存储;The method for implementing the switching of the Internet terminal according to claim 3, the method further comprising: transmitting the status information of the second wireless router to the second wireless router in real time or periodically after establishing a trust relationship with the second wireless router in advance, And causing the second wireless router to store the received status information;
    其中,所述状态信息包括:网络信号强度信息和剩余可用带宽信息。The status information includes: network signal strength information and remaining available bandwidth information.
  8. 根据权利要求3所述的实现上网终端切换的方法,所述方法还包括:在预先与所述第二无线路由器建立信任关系之后,接收所述第二无线路由器实时或定时发送的关于自身的状态信息;The method for implementing switching of an internet terminal according to claim 3, the method further comprising: after establishing a trust relationship with the second wireless router in advance, receiving a status about the self sent by the second wireless router in real time or periodically information;
    将接收到的所述第二无线路由器的状态信息进行存储;And storing the received status information of the second wireless router;
    其中,所述状态信息包括:网络信号强度信息和剩余可用带宽信息。The status information includes: network signal strength information and remaining available bandwidth information.
  9. 根据权利要求7或8所述的实现上网终端切换的方法,其中,所述向已预先建立信任关系的一个或多个第二无线路由器发送切换上网终端的请求消息包括:The method for implementing the switching of the Internet access terminal according to claim 7 or 8, wherein the sending the request message for switching the Internet access terminal to the one or more second wireless routers that have established the trust relationship in advance comprises:
    获取已建立信任关系的每个所述第二无线路由器的状态稳定程度值;Obtaining a state stability degree value of each of the second wireless routers that have established a trust relationship;
    按照所述状态稳定程度值由大到小的顺序,在所述第二无线路由器中确定发送切换上网终端的请求消息的一个或多个目标无线路由器。One or more target wireless routers transmitting a request message for switching the Internet terminal are determined in the second wireless router in an order of the state stability degree values from large to small.
  10. 根据权利要求9所述的实现上网终端切换的方法,其中,所述获取已建立信任关系的每个所述第二无线路由器的状态稳定程度值包括:The method for implementing the switching of the Internet terminal according to claim 9, wherein the obtaining the state stability degree value of each of the second wireless routers that have established the trust relationship comprises:
    将存储的已建立信任关系的所有第二无线路由器的网络信号强度和剩余可用带宽分别按照预设的等级划分规则进行等级划分;Separating the network signal strength and the remaining available bandwidth of all stored second wireless routers that have established a trust relationship according to a preset level division rule;
    根据每个已建立信任关系的第二无线路由器的网络状态所属等级和剩余可用带宽所属等级,利用预设的计算公式计算状态稳定程度值; Calculating a state stability level value according to a level of each network state of each second wireless router that has established a trust relationship and a level of remaining available bandwidth;
    其中,所述预设的计算公式包括:P=(S+B)/2;The preset calculation formula includes: P=(S+B)/2;
    P表示状态稳定程度值,S表示一已建立信任关系的第二无线路由器的网络信号强度所属等级,B表示一已建立信任关系的第二无线路由器的剩余可用带宽所属等级。P denotes a state stability degree value, S denotes a level of network signal strength of a second wireless router that has established a trust relationship, and B denotes a level of remaining available bandwidth of a second wireless router that has established a trust relationship.
  11. 根据权利要求10所述的实现上网终端切换的方法,其中,所述将自身承载的需要切换的上网终端切换至所述第二无线路由器包括:The method for implementing the switching of the Internet terminal according to claim 10, wherein the switching the self-hosted Internet terminal that needs to be handed over to the second wireless router comprises:
    选择所述状态稳定程度值最大的第二无线路由器作为第一目标路由器;Selecting, as the first target router, the second wireless router with the highest state stability degree value;
    向所述第一目标无线路由器发送切换上网终端的请求消息,其中,所述请求消息中包括需要切换的上网终端的介质访问控制MAC地址信息;Sending, by the first target wireless router, a request message for switching the Internet access terminal, where the request message includes media access control MAC address information of the Internet access terminal that needs to be switched;
    如果所述第一目标无线路由器同意所述切换上网终端的请求消息,则将部分或全部需要切换的上网终端切换至所述第一目标无线路由器,并记录已切换的上网终端的MAC地址信息和所述第一目标无线路由器的标示符信息;If the first target wireless router agrees to the request message for switching the Internet access terminal, switching some or all of the Internet access terminals that need to be handed over to the first target wireless router, and recording the MAC address information of the switched Internet access terminal and The identifier information of the first target wireless router;
    如果所述第一目标无线路由器拒绝所述切换上网终端的请求消息,则根据所述状态稳定程度值在所述第二无线路由器中寻找第二目标无线路由器,完成上网终端的切换。If the first target wireless router rejects the request message for switching the Internet access terminal, searching for the second target wireless router in the second wireless router according to the state stability degree value, and completing the switching of the Internet access terminal.
  12. 根据权利要求11所述的实现上网终端切换的方法,所述方法还包括:在将自身承载的需要切换的上网终端切换至所述第二无线路由器之后,继续监控当前的网络运载状况;The method for implementing the switching of the Internet terminal according to claim 11, the method further comprising: after switching the Internet terminal that needs to be switched to the second wireless router, continuously monitoring the current network carrying condition;
    当网络运载恢复正常时,根据记录的已切换的上网终端的MAC地址信息和切换至的目标无线路由器的标示符信息,向所述目标无线路由器发送返回上网终端的请求消息,令所述目标无线路由器返回相应的上网终端,其中,所述请求消息中包括切换至所述目标无线路由器的上网终端的MAC地址信息。When the network carrier returns to normal, sending, according to the recorded MAC address information of the switched Internet terminal and the identifier information of the target wireless router that is switched, to the target wireless router, sending a request message for returning to the Internet terminal, so that the target wireless The router returns a corresponding Internet access terminal, where the request message includes MAC address information of the Internet access terminal that is switched to the target wireless router.
  13. 一种实现上网终端切换的方法,应用于接收第一无线路由器切换上网终端请求的第二无线路由器,包括:A method for implementing switching of an Internet terminal is applied to a second wireless router that receives a request from a first wireless router to switch an Internet terminal, including:
    当所述第一无线路由器请求切换上网终端到所述第二无线路由器时,所述第二无线路由器判断自身当前的网络运载状况是否符合预定的上网终端切换条件; When the first wireless router requests to switch the Internet terminal to the second wireless router, the second wireless router determines whether the current network carrying condition of the second wireless router meets a predetermined online terminal switching condition;
    当判断结果为自身当前的网络运载状况符合预定的上网终端切换条件时,接受并承载所述第一无线路由器需要切换的至少部分上网终端。When the result of the determination is that the current network carrying condition of the network meets the predetermined switching condition of the Internet access terminal, at least part of the Internet access terminal that the first wireless router needs to switch is accepted and carried.
  14. 根据权利要求13所述的实现上网终端切换的方法,其中,所述当所述第一无线路由器请求切换上网终端到所述第二无线路由器时,所述第二无线路由器判断自身当前的网络运载状况是否符合预定的上网终端切换条件包括:The method for implementing switching of an internet terminal according to claim 13, wherein when the first wireless router requests to switch the internet terminal to the second wireless router, the second wireless router determines that its current network carries Whether the condition meets the predetermined Internet terminal switching conditions includes:
    接收已建立信任关系的所述第一无线路由器发送的切换上网终端的请求消息;根据所述请求消息判断自身当前的网络运载状况是否符合预定的上网终端切换条件;Receiving a request message for switching the Internet access terminal sent by the first wireless router that has established a trust relationship; determining, according to the request message, whether the current network carrying condition of the network meets a predetermined switching condition of the Internet access terminal;
    所述当判断结果为自身当前的网络运载状况符合预定的上网终端切换条件时,接受并承载所述第一无线路由器需要切换的至少部分上网终端包括:When the result of the determination is that the current network carrying condition of the network meets the predetermined switching conditions of the Internet access terminal, the at least part of the Internet access terminal that accepts and carries the first wireless router to be switched includes:
    当判断结果为自身当前的网络运载状况符合预定的上网终端切换条件时,则向所述第一无线路由器发送确认切换消息;When the judgment result is that the current network carrying condition of the network meets the predetermined online terminal switching condition, sending an acknowledgement switching message to the first wireless router;
    根据所述确认切换消息接受并承载所述第一无线路由器需要切换的至少部分上网终端。Receiving and carrying at least part of the Internet access terminal that the first wireless router needs to switch according to the acknowledgement handover message.
  15. 根据权利要求14所述的实现上网终端切换的方法,所述方法还包括:在接收已建立信任关系的所述第一无线路由器发送的切换上网终端的请求消息之前,预先与所述第一无线路由器建立信任关系。The method for implementing the switching of the Internet terminal according to claim 14, the method further comprising: pre-matching with the first wireless before receiving the request message for switching the Internet terminal sent by the first wireless router that has established the trust relationship The router establishes a trust relationship.
  16. 根据权利要求15所述的实现上网终端切换的方法,其中,所述预先与所述第一无线路由器建立信任关系包括:The method for implementing the switching of the Internet terminal according to claim 15, wherein the establishing a trust relationship with the first wireless router in advance comprises:
    接收所述第一无线路由器发送的建立信任关系的请求消息;Receiving a request message for establishing a trust relationship sent by the first wireless router;
    如果同意建立信任关系,则向所述第一无线路由器发送同意建立信任关系的应答消息,令信任关系建立成功。If it is agreed to establish a trust relationship, a response message agreeing to establish a trust relationship is sent to the first wireless router, so that the trust relationship is successfully established.
  17. 根据权利要求16所述的实现上网终端切换的方法,所述方法还包括:在信任关系建立成功之后,发送自身的标示符至所述第一无线路由器,令所述第一无线路由器对接收到的标示符进行存储;The method for implementing the switching of the Internet terminal according to claim 16, the method further comprising: after the trust relationship is successfully established, transmitting its own identifier to the first wireless router, so that the first wireless router receives the The identifier is stored;
    其中,所述标示符中包括:服务集标识SSID信息和加密密码信息。The identifier includes: a service set identifier SSID information and an encrypted password information.
  18. 根据权利要求16所述的实现上网终端切换的方法,所述方法还包括: 在信任关系建立成功之后,接收所述第一无线路由器发送的自身的标示符;The method for implementing the switching of the Internet terminal according to claim 16, further comprising: After the trust relationship is successfully established, receiving an identifier of the first wireless router to send;
    将接收到的所述第一无线路由器的标示符进行存储;And storing the received identifier of the first wireless router;
    其中,所述标示符中包括:服务集标识SSID信息和加密密码信息。The identifier includes: a service set identifier SSID information and an encrypted password information.
  19. 根据权利要求15所述的实现上网终端切换的方法,所述方法还包括:在所述预先与所述第一无线路由器建立信任关系的步骤之后,实时或定时向所述第一无线路由器发送自身的状态信息,以使所述第一无线路由器对接收到的状态信息进行存储;The method for implementing switching of an internet terminal according to claim 15, the method further comprising: transmitting the self to the first wireless router in real time or timing after the step of establishing a trust relationship with the first wireless router in advance Status information for causing the first wireless router to store the received status information;
    其中,所述状态信息包括:网络信号强度信息和剩余可用带宽信息。The status information includes: network signal strength information and remaining available bandwidth information.
  20. 根据权利要求15所述的实现上网终端切换的方法,所述方法还包括:在所述预先与所述第一无线路由器建立信任关系的步骤之后,接收所述第一无线路由器实时或定时发送的关于自身的状态信息;The method for implementing Internet terminal handover according to claim 15, the method further comprising: after the step of establishing a trust relationship with the first wireless router in advance, receiving the first wireless router to transmit in real time or timing Status information about itself;
    将接收到的所述第一无线路由器的状态信息进行存储;And storing the received status information of the first wireless router;
    其中,所述状态信息包括:网络信号强度信息和剩余可用带宽信息。The status information includes: network signal strength information and remaining available bandwidth information.
  21. 根据权利要求14所述的实现上网终端切换的方法,其中,所述切换上网终端的请求消息包括需要切换的上网终端的MAC地址信息,所述接受并承载所述第一无线路由器需要切换的至少部分上网终端包括:The method for implementing the switching of the Internet terminal according to claim 14, wherein the request message for switching the Internet terminal includes MAC address information of the Internet terminal that needs to be switched, and the accepting and carrying at least the first wireless router needs to be switched. Some internet terminals include:
    如果当前网络正常且未出现超负荷情况,且如果接受全部所述第一无线路由器需要切换的上网终端时也不会超负荷,则接受并承载全部所述第一无线路由器需要切换的上网终端,并记录切换至的上网终端的MAC地址信息和所述第一无线路由器的标示符信息;If the current network is normal and no overload condition occurs, and if all the first wireless routers need to switch the Internet terminal to be switched, the network terminal that accepts the switching of all the first wireless routers is accepted and carried. And recording the MAC address information of the connected terminal and the identifier information of the first wireless router;
    如果当前网络正常且未出现超负荷情况,且如果接受全部所述第一无线路由器需要切换的上网终端时会出现超负荷情况,则接受并承载部分所述第一无线路由器需要切换的上网终端,并记录切换至的上网终端MAC地址信息和所述第一无线路由器的标示符信息。If the current network is normal and no overload condition occurs, and if an overload condition occurs when all the Internet terminals that need to be switched by the first wireless router are accepted, then the Internet terminal that needs to be switched by the first wireless router is accepted and carried. And recording the MAC address information of the Internet terminal switched to and the identifier information of the first wireless router.
  22. 根据权利要求21所述的实现上网终端切换的方法,所述方法还包括:在接受并承载部分或全部所述第一无线路由器需要切换的上网终端之后,接收所述第一无线路由器发送的返回上网终端的请求消息,其中,所述请求消息中包括请求返回上网终端的MAC地址信息; The method for implementing the switching of the Internet terminal according to claim 21, the method further comprising: after receiving and carrying some or all of the Internet terminals that the first wireless router needs to switch, receiving the return sent by the first wireless router a request message of the Internet terminal, where the request message includes MAC address information that is requested to be returned to the Internet terminal;
    将所述请求消息中的请求返回上网终端的MAC地址信息与已记录的对应所述第一无线路由器的切换至的上网终端的MAC地址信息进行匹配;And matching the MAC address information of the request returned to the Internet terminal to the MAC address information of the Internet terminal that is switched to the first wireless router;
    如果所述请求消息中的请求返回上网终端的MAC地址信息与已记录的对应所述第一无线路由器的切换至的上网终端的MAC地址信息匹配成功,则将对应所述第一无线路由器的上网终端返回至所述第一无线路由器上。If the MAC address information of the request returned to the Internet terminal in the request message matches the recorded MAC address information of the Internet terminal to which the first wireless router is switched, the Internet access corresponding to the first wireless router is The terminal returns to the first wireless router.
  23. 一种实现上网终端切换的装置,应用于需要切换上网终端的第一无线路由器,包括:第一监控模块和切换模块;A device for implementing switching of an Internet terminal is applied to a first wireless router that needs to switch an Internet terminal, and includes: a first monitoring module and a switching module;
    所述第一监控模块,设置为监控当前的网络运载状况;The first monitoring module is configured to monitor a current network carrying condition;
    所述切换模块,设置为当当前的网络运载出现异常时,则将自身承载的需要切换的上网终端切换至已预先建立信任关系的一个或多个第二无线路由器上,令切换的上网终端通过所述第二无线路由器进行网络连接。The switching module is configured to switch the online terminal that needs to be switched to the one or more second wireless routers that have established the trust relationship in advance when the current network carrier is abnormal, so that the switched Internet terminal passes The second wireless router performs a network connection.
  24. 一种实现上网终端切换的装置,应用于接收第一无线路由器切换上网终端请求的第二无线路由器,包括:判断模块和接受承载模块;The device for implementing the switching of the Internet terminal is applied to the second wireless router that receives the request of the first wireless router to switch the Internet terminal, and includes: a determining module and a receiving bearer module;
    所述判断模块,设置为当所述第一无线路由器请求切换上网终端到所述第二无线路由器时,所述第二无线路由器判断自身当前的网络运载状况是否符合预定的上网终端切换条件;The determining module is configured to: when the first wireless router requests to switch the Internet access terminal to the second wireless router, the second wireless router determines whether the current network carrying condition of the second wireless router meets a predetermined online terminal switching condition;
    所述接受承载模块,设置为当判断结果为自身当前的网络运载状况符合预定的上网终端切换条件时,则接受并承载所述第一无线路由器需要切换的至少部分上网终端。 The receiving bearer module is configured to accept and carry at least part of the Internet terminals that the first wireless router needs to switch when the current network carrying condition meets the predetermined Internet terminal switching condition.
PCT/CN2016/091559 2016-01-25 2016-07-25 Method and device realizing switching required by internet-connected terminal WO2017128654A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610048632.4A CN106998576A (en) 2016-01-25 2016-01-25 A kind of method and device for realizing access terminals switching
CN201610048632.4 2016-01-25

Publications (1)

Publication Number Publication Date
WO2017128654A1 true WO2017128654A1 (en) 2017-08-03

Family

ID=59397216

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/091559 WO2017128654A1 (en) 2016-01-25 2016-07-25 Method and device realizing switching required by internet-connected terminal

Country Status (2)

Country Link
CN (1) CN106998576A (en)
WO (1) WO2017128654A1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110829514A (en) * 2018-08-14 2020-02-21 矢崎总业株式会社 Battery monitoring device
CN112533038A (en) * 2020-11-27 2021-03-19 卡莱特(深圳)云科技有限公司 Playing box wireless connection switching method and playing box capable of automatically switching wireless connection
CN114449601A (en) * 2022-01-27 2022-05-06 浙江大华技术股份有限公司 Method and device for sharing traffic under networking

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108777874A (en) * 2018-05-31 2018-11-09 安徽电信器材贸易工业有限责任公司 A kind of method and its system that router mutually switches
CN109982427B (en) * 2019-03-29 2021-11-16 联想(北京)有限公司 Information processing method and device
CN110493786B (en) * 2019-10-15 2020-01-07 北京翼辉信息技术有限公司 Method and device for intelligently connecting electronic equipment with network and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1992657A (en) * 2005-12-26 2007-07-04 中兴通讯股份有限公司 Load-balancing method of wireless LAN
CN101272353A (en) * 2008-05-21 2008-09-24 杭州华三通信技术有限公司 Wireless load balancing method and access controller
CN104053184A (en) * 2014-06-23 2014-09-17 福建三元达通讯股份有限公司 Wireless load balancing method, wireless controller, wireless access point and system
CN104883721A (en) * 2015-06-01 2015-09-02 深圳市蓝泰源信息技术股份有限公司 Wireless network access control method and equipment

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103262608B (en) * 2010-12-17 2016-08-17 西门子公司 A kind of method for handover control, Apparatus and system
CN102752823B (en) * 2012-07-04 2014-08-20 西安电子科技大学 Method for switching user terminal between access joints in WLAN (Wireless Local Area Network) based on AP (Access Point) collaboration

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1992657A (en) * 2005-12-26 2007-07-04 中兴通讯股份有限公司 Load-balancing method of wireless LAN
CN101272353A (en) * 2008-05-21 2008-09-24 杭州华三通信技术有限公司 Wireless load balancing method and access controller
CN104053184A (en) * 2014-06-23 2014-09-17 福建三元达通讯股份有限公司 Wireless load balancing method, wireless controller, wireless access point and system
CN104883721A (en) * 2015-06-01 2015-09-02 深圳市蓝泰源信息技术股份有限公司 Wireless network access control method and equipment

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110829514A (en) * 2018-08-14 2020-02-21 矢崎总业株式会社 Battery monitoring device
CN110829514B (en) * 2018-08-14 2023-06-20 矢崎总业株式会社 Battery monitoring device
CN112533038A (en) * 2020-11-27 2021-03-19 卡莱特(深圳)云科技有限公司 Playing box wireless connection switching method and playing box capable of automatically switching wireless connection
CN112533038B (en) * 2020-11-27 2022-11-25 卡莱特云科技股份有限公司 Playing box wireless connection switching method and playing box capable of automatically switching wireless connection
CN114449601A (en) * 2022-01-27 2022-05-06 浙江大华技术股份有限公司 Method and device for sharing traffic under networking

Also Published As

Publication number Publication date
CN106998576A (en) 2017-08-01

Similar Documents

Publication Publication Date Title
WO2017128654A1 (en) Method and device realizing switching required by internet-connected terminal
EP3745645B1 (en) Method, device, and system for guaranteeing service level agreement of application
US10313997B2 (en) User equipment registration method for network slice selection and network controller and network communication system using the same
JP2021518075A (en) Service subscription method and equipment
EP4138439A1 (en) Communication method, apparatus, and system
CN106332182B (en) Wireless access method and device
US20140351478A1 (en) Apparatus and method for performing wireless docking operation in communication system supporting universal plug and play protocol
WO2020253531A1 (en) Communication method and apparatus, entity and storage medium
WO2018090677A1 (en) Processing method, device and system for nf component abnormality
JP6730511B2 (en) Network policy update trigger method, management entity and core network device
US20230061152A1 (en) Communication method, apparatus, and system
WO2018000202A1 (en) Load migration method, apparatus and system
CN109150659B (en) Processor and BFD message transmission method
US20230300912A1 (en) Session update method, terminal, and network-side device
JP2021524204A (en) Quality of service monitoring methods, systems, and equipment
US20160164786A1 (en) Communication system
JPH10312365A (en) Load decentralization system
WO2016110084A1 (en) Method, device and system for precision time protocol time synchronization in aggregation network
US10511494B2 (en) Network control method and apparatus
EP3065445B1 (en) Method, cse, and system for transmitting m2m application request
KR102273390B1 (en) Method and Apparatus for Integrating Network Function
WO2021088905A1 (en) Positioning measurement method, terminal and network node
WO2022155853A1 (en) Wireless communication method, communication apparatus and communication system
US20120066292A1 (en) Apparatus and method for controlling service mobility
US10715390B2 (en) Service optimization method, transport controller, client controller, and system

Legal Events

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

Ref document number: 16887532

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 16887532

Country of ref document: EP

Kind code of ref document: A1