CN112788696A - Communication delay reduction method and system for switching wireless network of mobile terminal in area - Google Patents

Communication delay reduction method and system for switching wireless network of mobile terminal in area Download PDF

Info

Publication number
CN112788696A
CN112788696A CN202011632072.XA CN202011632072A CN112788696A CN 112788696 A CN112788696 A CN 112788696A CN 202011632072 A CN202011632072 A CN 202011632072A CN 112788696 A CN112788696 A CN 112788696A
Authority
CN
China
Prior art keywords
connection
communication link
network
standby
mobile terminal
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202011632072.XA
Other languages
Chinese (zh)
Inventor
何泾沙
邓万航
朱娜斐
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing University of Technology
Original Assignee
Beijing University of Technology
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 Beijing University of Technology filed Critical Beijing University of Technology
Priority to CN202011632072.XA priority Critical patent/CN112788696A/en
Publication of CN112788696A publication Critical patent/CN112788696A/en
Pending legal-status Critical Current

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/305Handover due to radio link failure
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/16Performing reselection for specific purposes
    • H04W36/18Performing reselection for specific purposes for allowing seamless reselection, e.g. soft reselection
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W84/00Network topologies
    • H04W84/02Hierarchically pre-organised networks, e.g. paging networks, cellular networks, WLAN [Wireless Local Area Network] or WLL [Wireless Local Loop]
    • H04W84/10Small scale networks; Flat hierarchical networks
    • H04W84/12WLAN [Wireless Local Area Networks]

Abstract

The invention discloses a method and a system for reducing communication delay of wireless network switching of a mobile terminal in an area, belonging to the technical field of communication, wherein the method comprises the following steps: acquiring a wireless network of a mobile terminal in an area; and based on the SCTP, establishing a standby connection for the mobile terminal in advance through the wireless network, and checking the active state of the standby connection. By pre-establishing the standby connection, checking the active state of the standby connection, disconnecting the communication link, switching to and directly using the pre-established standby connection, the time consumed by re-establishing the communication link is reduced, and the communication delay caused by switching the communication link is reduced, so that the communication delay is reduced; at the same time, the active state of the backup connection is checked to improve the availability of the backup connection.

Description

Communication delay reduction method and system for switching wireless network of mobile terminal in area
Technical Field
The invention relates to the technical field of communication, in particular to a method and a system for reducing communication delay of wireless network switching of a mobile terminal in an area.
Background
In the current heterogeneous network, there is a certain delay because the mobile terminal performs the handover of the wireless network link within a certain spatial range. For example, the mobile terminal switches between the 4G signal and the AP (wireless access point) signal, and switches between different AP signals.
The mobile terminal moves and communicates within a regional range, under the current background, all places where the mobile terminal is located are covered by a plurality of wireless signals, communication contents of each signal are mutually incoherent, a user can carry out data communication by means of the wireless signals, and common signals include 4G signals generated by a cellular network base station, or WiFi signals generated by a wireless Access Point (AP), Bluetooth and other signals.
The following description describes a communication mechanism based on a wireless network, which uses an AP in a WiFi wireless lan as a basis for spatial setting, and is applicable to other network access devices as a basis for spatial setting, that is, a communication group in an area range of a mobile terminal may not only use signal information of twenty meters covered by a signal range of the AP device, but also use other signal information such as a GPS signal, a bluetooth signal, a UWB signal, and a cellular base station data signal in a specific area.
When the mobile terminal moves in a regional range, or a currently connected link fails, or transmission link switching is performed manually, macroscopic delay and blockage of data transmission can be caused, page loading fails, and user experience is poor.
Disclosure of Invention
In view of the above technical problems in the prior art, the present invention provides a method and a system for reducing communication delay in switching a wireless network of a mobile terminal in an area, which directly switches to a standby connection when a communication link is actively or passively switched, thereby reducing the process of establishing a connection and reducing the communication delay.
The invention discloses a method for reducing communication delay of wireless network switching of a mobile terminal in an area, which comprises the following steps: acquiring a wireless network of a mobile terminal in an area; and based on the SCTP, establishing a standby connection for the mobile terminal in advance through the wireless network, and checking the active state of the standby connection.
Preferably, the wireless network of the backup connection comprises one or a combination of the following: a WiFi network, a bluetooth network, and a cellular data network.
Preferably, the method for switching the wireless network includes: the communication link is switched to the backup connection in a passive or active manner.
Preferably, the method for passively switching the communication link includes:
acquiring the active state of a current communication link;
judging whether the current communication link is available or not according to the active state;
if not, switching the current communication link.
Preferably, the active state of the current communication link is obtained by a ping command or a heartbeat mechanism.
Preferably, the method of the present invention further comprises a method for passively switching the link according to the signal strength:
presetting the priority of a wireless network and obtaining the priority of corresponding standby connection with the wireless network;
detecting the strength of the wireless signal;
judging whether the wireless signal strength is smaller than a threshold value;
if the current communication link is smaller than the priority level of the standby connection, the current communication link is switched to the standby connection with the higher priority level.
Preferably, a plurality of standby connections are established for the mobile terminal in advance according to the wireless network;
detecting a failure condition of the backup connection through a heartbeat mechanism;
judging whether the standby connection has a fault;
and if so, rejecting the standby connection.
Preferably, the connection between the mobile terminal and the server comprises a main connection and a standby connection, wherein the main connection is connected through a WiFi network, and the standby connection is connected through a mobile network;
acting the primary connection as a communication link;
detecting a failure condition of the primary connection and an active condition of a backup connection;
judging whether the main connection fails or not;
if the communication link is switched to the backup connection.
Preferably, the connection between the mobile terminal and the server includes a main connection and a standby connection, the main connection includes a first WiFi network connection, and the standby connection includes a second WiFi network connection and a cellular data network connection;
taking the first WiFi network connection as a communication link, and simultaneously detecting the active conditions of a second WiFi network connection and a cellular data network connection;
determining whether a second WiFi network connection or a cellular data network connection is active;
if not, removing the inactive standby connection;
if yes, detecting the fault condition of the first WiFi network;
judging whether the first WiFi network fails or not;
if the fault occurs, switching the communication link to a second WiFii network connection or a mobile network connection;
and if the fault does not occur, periodically detecting the active conditions of the second WiFi network connection and the cellular data network connection.
The invention also provides a system for realizing the communication delay reduction method, which is characterized by comprising an acquisition module and a standby module,
the acquisition module is used for acquiring a wireless network of a mobile terminal in an area;
and the standby module is used for establishing standby connection for the wireless network path of the mobile terminal in advance according to the wireless network based on the SCTP and verifying the active state of the standby connection.
Compared with the prior art, the invention has the beneficial effects that: by pre-establishing the standby connection, checking the active state of the standby connection, disconnecting the communication link, switching to and directly using the pre-established standby connection, the time consumed by re-establishing the communication link is reduced, and the communication delay caused by switching the communication link is reduced, so that the communication delay is reduced; at the same time, the active state of the backup connection is checked to improve the availability of the backup connection.
Drawings
FIG. 1 is a flow chart of a method for reducing communication delay in a local mobile radio network handover in accordance with the present invention;
fig. 2 is a schematic diagram of a SCTP protocol four-way handshake procedure;
FIG. 3 is a flow chart of a method of passively switching a communication link;
FIG. 4 is a flow chart of a method of passively switching communication links based on signal strength;
FIG. 5 is a flow chart of a method for reducing communication latency by establishing a plurality of backup connections;
FIG. 6 is a logical block diagram of the system of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be obtained by a person skilled in the art without any inventive step based on the embodiments of the present invention, are within the scope of the present invention.
The invention is described in further detail below with reference to the attached drawing figures:
a method for reducing communication delay in handover of a wireless network at a mobile terminal in a region, as shown in fig. 1, the method comprising:
step 101: and acquiring a wireless network of a mobile terminal in the area.
Step 102: and based on the SCTP, establishing a standby connection for the mobile terminal in advance through the wireless network, and checking the active state of the standby connection.
The invention establishes the standby connection in advance, checks the active state of the standby connection, disconnects the communication link, switches to and directly uses the standby connection established in advance, reduces the time consumed by reestablishing the communication link, reduces the communication delay caused by switching the communication link, and thus reduces the communication delay; at the same time, the active state of the backup connection is checked to improve the availability of the backup connection.
The physical channel between two nodes in the network is called a communication link, and in the invention, the communication link is established on the basis of a wireless network.
The SCTP Protocol (Stream Control Transmission Protocol), a Stream Control Transmission Protocol, provides reliability, sequencing, flow Control, and full-duplex data transfer. The SCTP protocol is capable of providing multiple streams between connected endpoints, each stream reliably delivering messages in sequence, the loss of a message on one stream not blocking the delivery of messages on other streams of the same association.
As shown in fig. 2, the SCTP protocol is different from the TCP protocol in that the handshake process is a four-way handshake and storage information (cookie) is introduced to prevent DOS attacks.
First handshake: the client sends an initialization message (INIT) over SCTP protocol telling the server that the client's list of IP addresses, initial sequence numbers, start tags identifying all packets in the association, the number of outgoing streams requested by the client, and the number of outgoing streams the client can support.
Second handshake: the server acknowledges the client's initialization message with an initial acknowledgement message (INIT ACK) containing the server's list of IP addresses, initial sequence number, start tag, number of outgoing streams requested by the server, number of outgoing streams that the server can support, and a storage information (cookie). The cookie contains all the state required by the server to make sure the association is valid, it is digitally signed to ensure its validity. The storage information (cookie) is a simple text file stored in the client.
Third handshake: the client sends back to the server a store information response message (COOKIE ECHO). The canned info response message may bundle the user data in the same packet.
The fourth handshake: the server establishes the connection by acknowledging the COOKIE retro-reflected by the client as a COOKIE store information acknowledgement message (COOKIE ACK).
In the handshake process of the client and the server, the two parties can set a timer to avoid the state that one end is busy after the other end is out of order. The COOKIE returned to the client by the server is formed by a timestamp and a life cycle of COOKIE and a home-end secret key of the server through an information digest algorithm MAC. The core of the SCTP which can effectively prevent the DOS attack lies in generating COOKIE. The DOS attack received in the TCP protocol is SYNFlood, the second part of three-way handshake is established by utilizing TCP, the server side can maintain a queue of half-open connection, the queue has length limitation, and a malicious SYN connection can cause the queue to be occupied in a period of time, so that other connections can not normally complete handshake. The SCTP protocol is made by the method that half-open connection information is not maintained at a server, when COOKIE is generated, resources required to be maintained for establishing connection are released by the server, the resources required for connection are stored in Stateookie, and if a client needs to be connected, connection is established through the information in the Stateookie, so that the situation similar to SYNFlood in TCP can be prevented.
SCTP defines the heartbeat mechanism (Heart Beat): when a certain path is idle, one end generates a corresponding heartbeat message and sends the heartbeat message to the other end through the path, and the other end must immediately send back a corresponding heartbeat confirmation message. This mechanism is used to accurately measure the loop delay rtt (round Trip time) and can monitor the availability of the connection and keep the connection active at any time.
The standby connection only needs to send and receive heartbeat packets to detect the active state, so a large amount of traffic is not consumed, and the connection state is stored in the client due to the characteristics of the SCTP protocol, so that additional pressure is not caused to the server.
The active state of the connection can also be detected through a custom mechanism: the response time length and the packet loss rate of the current communication link are obtained through the ping command, and whether the connection is available or not can be judged through a set threshold, so that the available condition and the active state of the standby connection are obtained. For example, a certain port of the ping server, determines the availability of the connection and the active state of the connection according to the received determination information.
Wherein the standby connected wireless network comprises one or a combination of the following: a WiFi network, a bluetooth network, and a cellular data network. For example, the primary connection is a WiFi network and the backup connection is a cellular data network; or the primary connection is a first cellular data network and the backup connection is a second cellular data network.
The wireless network switching method comprises the following steps: the active switching refers to that a user actively switches a communication link, and when the communication link is switched, the wireless network is correspondingly switched.
As shown in fig. 3, the method for passively switching the communication link includes:
step 301: the active state of the current communication link is obtained. The active state may be detected in a custom manner, such as a ping command, or using a heartbeat mechanism.
Step 302: judging whether the current communication link is available or not according to the active state;
if not, go to step 303: and switching the current communication link. The communication link is switched to the backup connection.
If so, go to step 304: the current communication link continues to be used.
As shown in fig. 4, the method of the present invention further includes a method for passively switching a communication link according to signal strength:
step 401: the priority of the wireless network is preset, and the priority of the corresponding standby connection with the wireless network is obtained.
Step 402: detecting the strength of the wireless signal.
Step 403: and judging whether the wireless signal strength is smaller than a threshold value. Such as setting the threshold to-50 dBm or 20% intensity.
If so, go to step 404: the current communication link is switched to the backup connection with the higher priority.
If not, the current communication link is continuously used.
The priority can be preset, for example, the WiFi network has higher priority than the cellular data network, which is beneficial to saving traffic.
Example 1
As shown in fig. 5, for a situation with multiple wireless networks in a regional area, the communication delay can be reduced by establishing multiple backup connections:
step 501: a plurality of standby connections are established for the mobile terminal in advance.
Step 502: detecting a failure condition of the backup connection through a heartbeat mechanism. When the heartbeat mechanism detects that the active state is not good, such as high delay or high packet loss rate, the fault is determined.
Step 503: it is determined whether the backup connection is faulty.
If yes, step 504: and rejecting the standby connection.
The availability of the backup connection is improved by managing the backup connection.
Example 2
The WiFi network is taken as a main connection, the standby connection is taken as a cellular data network for example, and the connection between the mobile terminal and the server includes the main connection and the standby connection;
acting the primary connection as a communication link;
detecting a failure condition of the primary connection and an active condition of a backup connection;
judging whether the main connection fails or whether the WiFi signal strength is lower than a second threshold value;
if yes, switching the communication link to the standby connection;
if not, the main connection is continuously used as a communication link.
Example 3
Taking a dual-WiFi network as an example for explanation: the mobile terminal is connected with the server by a main connection and a standby connection, wherein the main connection comprises a first WiFi network connection, and the standby connection comprises a second WiFi network connection and a mobile network connection;
taking the first WiFi network connection as a communication link, and simultaneously detecting the active conditions of a second WiFi network connection and a cellular data network connection;
determining whether a second WiFi network connection or a cellular data network connection is active;
if not, removing the inactive standby connection;
if yes, detecting the fault condition of the first WiFi network;
judging whether the first WiFi network fails or not;
if the fault occurs, switching the communication link to a second WiFi network connection or a mobile network connection;
and if the fault does not occur, periodically detecting the active conditions of the second WiFi network connection and the cellular data network connection.
But is not limited to this, the backup connection may also comprise a second cellular data network connection or a bluetooth network connection.
The present invention also provides a system for implementing the method for reducing communication delay, as shown in fig. 6, including an obtaining module 1, a standby module 2 and a connection switching module 3,
the acquisition module 1 is used for acquiring a wireless network of a mobile terminal in an area;
the standby module 2 is used for establishing a standby connection for the wireless network path of the mobile terminal in advance according to the wireless network based on the SCTP, and verifying the active state of the standby connection.
The connection switching module 3 is used to switch the communication link to the backup connection in a passive or active manner.
The above is only a preferred embodiment of the present invention, and is not intended to limit the present invention, and various modifications and changes will occur to those skilled in the art. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (10)

1. A method for reducing communication delay in handover of a wireless network at a mobile terminal in a region, the method comprising:
acquiring a wireless network of a mobile terminal in an area;
and based on the SCTP, establishing a standby connection for the mobile terminal in advance through the wireless network, and checking the active state of the standby connection.
2. The method of claim 1, wherein the backup connection wireless network comprises one or a combination of the following: a WiFi network, a bluetooth network, and a cellular data network.
3. The method of claim 1, wherein the method of wireless network handover comprises:
the communication link is switched to the backup connection in a passive or active manner.
4. The method of claim 3, wherein the method of passively switching the communication link comprises:
acquiring the active state of a current communication link;
judging whether the current communication link is available or not according to the active state;
if not, switching the current communication link.
5. The communication delay reduction method according to claim 4, wherein the active state of the current communication link is obtained by a ping command or a heartbeat mechanism.
6. The method of claim 4, further comprising passively switching links according to signal strength:
presetting the priority of a wireless network and obtaining the priority of corresponding standby connection with the wireless network;
detecting the strength of the wireless signal;
judging whether the wireless signal strength is smaller than a threshold value;
if the current communication link is smaller than the priority level of the standby connection, the current communication link is switched to the standby connection with the higher priority level.
7. The method of claim 1, wherein a plurality of backup connections are established for the mobile terminal in advance according to the wireless network;
detecting a failure condition of the backup connection through a heartbeat mechanism;
judging whether the standby connection has a fault;
and if so, rejecting the standby connection.
8. The communication delay reduction method according to claim 1, wherein the connection between the mobile terminal and the server includes a main connection and a backup connection, the main connection is through a WiFi network, and the backup connection is through a mobile network;
acting the primary connection as a communication link;
detecting a failure condition of the primary connection and an active condition of a backup connection;
judging whether the main connection fails or not;
if the communication link is switched to the backup connection.
9. The method of claim 1, wherein the connection between the mobile terminal and the server comprises a primary connection and a backup connection, the primary connection comprises a first WiFi network connection, and the backup connection comprises a second WiFi network connection and a cellular data network connection;
taking the first WiFi network connection as a communication link, and simultaneously detecting the active conditions of a second WiFi network connection and a cellular data network connection;
determining whether a second WiFi network connection or a cellular data network connection is active;
if not, removing the inactive standby connection;
if yes, detecting the fault condition of the first WiFi network;
judging whether the first WiFi network fails or not;
if the fault occurs, switching the communication link to a second WiFi network connection or a mobile network connection;
and if the fault does not occur, periodically detecting the active conditions of the second WiFi network connection and the cellular data network connection.
10. A system for implementing the communication delay reduction method according to any one of claims 1 to 9, comprising an acquisition module and a standby module,
the acquisition module is used for acquiring a wireless network of a mobile terminal in an area;
and the standby module is used for establishing standby connection for the wireless network path of the mobile terminal in advance according to the wireless network based on the SCTP and verifying the active state of the standby connection.
CN202011632072.XA 2020-12-31 2020-12-31 Communication delay reduction method and system for switching wireless network of mobile terminal in area Pending CN112788696A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011632072.XA CN112788696A (en) 2020-12-31 2020-12-31 Communication delay reduction method and system for switching wireless network of mobile terminal in area

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011632072.XA CN112788696A (en) 2020-12-31 2020-12-31 Communication delay reduction method and system for switching wireless network of mobile terminal in area

Publications (1)

Publication Number Publication Date
CN112788696A true CN112788696A (en) 2021-05-11

Family

ID=75754780

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011632072.XA Pending CN112788696A (en) 2020-12-31 2020-12-31 Communication delay reduction method and system for switching wireless network of mobile terminal in area

Country Status (1)

Country Link
CN (1) CN112788696A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115273388A (en) * 2022-07-28 2022-11-01 深圳市睿创科数码有限公司 Method for processing abnormal event of security gateway in wireless security camera

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101459541A (en) * 2008-12-31 2009-06-17 华为技术有限公司 Method, equipment and system for detecting link break
CN101588617A (en) * 2009-05-14 2009-11-25 中兴通讯股份有限公司 A kind of method for switching network and multi-module mobile terminal
WO2019014426A1 (en) * 2017-07-14 2019-01-17 Interdigital Patent Holdings, Inc. Communication path management

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101459541A (en) * 2008-12-31 2009-06-17 华为技术有限公司 Method, equipment and system for detecting link break
CN101588617A (en) * 2009-05-14 2009-11-25 中兴通讯股份有限公司 A kind of method for switching network and multi-module mobile terminal
WO2019014426A1 (en) * 2017-07-14 2019-01-17 Interdigital Patent Holdings, Inc. Communication path management

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
CHIA-SHENG TSAI ET AL.: "《2006 International Symposium on Communications and Information Technologies》", 20 October 2006 *
许德力等: "无线环境下基于SCTP的并行多路径传输", 《计算机应用》 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115273388A (en) * 2022-07-28 2022-11-01 深圳市睿创科数码有限公司 Method for processing abnormal event of security gateway in wireless security camera

Similar Documents

Publication Publication Date Title
US10201035B2 (en) Dynamic adjustment of keep-alive messages for efficient battery usage in a mobile network
US9270524B2 (en) Method and device for LACP link switching and data transmission
US9961599B2 (en) Methods to control multiple radio access bearers in a wireless device
KR100621728B1 (en) Recovery in mobile communication systems
EP2361468B1 (en) Congestion control method and devices
EP2252005B1 (en) Protection method, device and communication system for transmitting signaling
US7586847B2 (en) Method and apparatus for network imposed packet data flow control
US8472941B1 (en) Polling methods for use in a wireless communication system
WO2017186059A1 (en) Method and apparatus for switching access point in wireless local area network
CA2524789A1 (en) System and method of wireless device activity messaging
KR101150680B1 (en) Method and apparatus to control audio switch during call handoff
TW200828879A (en) Automatic resignation from ad hoc network
CN101420381B (en) Method and apparatus for enhancing forwarding reliability in VRRP load balance
KR20130073684A (en) Apparatus and method for performing a handover in a radio local access network communication system
CN112788696A (en) Communication delay reduction method and system for switching wireless network of mobile terminal in area
EP3425850B1 (en) Method and device for processing communication path
EP2345278B1 (en) Reestablishment of the interface between mme and node b using a backoff time
US20100240374A1 (en) method for reducing the risk of dropped calls in a mobile communications network
CN112714060B (en) Link detection method and device
CN111405615B (en) Communication data transmission method, device and storage medium
US7330462B2 (en) Managing wireless packet service resources
KR102402355B1 (en) Method of Service Recovery Upon Occurrence of a Failure on a Data Packet Processing Device
KR102353226B1 (en) Method of Service Recovery Upon Occurrence of a Failure on a Session Management Device
KR100623871B1 (en) Method for protecting a wrong operation related network registration according to overload
US20100210261A1 (en) Method for ensuring the accessibility of mobile radio devices using an optimized paging mechanism

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20210511