CN107094282B - Self-adaptive flow distribution method and control system - Google Patents
Self-adaptive flow distribution method and control system Download PDFInfo
- Publication number
- CN107094282B CN107094282B CN201710262653.0A CN201710262653A CN107094282B CN 107094282 B CN107094282 B CN 107094282B CN 201710262653 A CN201710262653 A CN 201710262653A CN 107094282 B CN107094282 B CN 107094282B
- Authority
- CN
- China
- Prior art keywords
- time
- file
- bluetooth
- wifi
- sending
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 41
- 238000004891 communication Methods 0.000 claims abstract description 67
- 230000005540 biological transmission Effects 0.000 claims description 72
- 238000012360 testing method Methods 0.000 claims description 24
- 230000003044 adaptive effect Effects 0.000 claims description 10
- 238000012546 transfer Methods 0.000 claims description 7
- 238000012935 Averaging Methods 0.000 claims description 6
- 230000002349 favourable effect Effects 0.000 abstract 1
- 238000012545 processing Methods 0.000 description 4
- 239000012634 fragment Substances 0.000 description 3
- 230000003993 interaction Effects 0.000 description 3
- 230000008569 process Effects 0.000 description 3
- 230000002159 abnormal effect Effects 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 230000007246 mechanism Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000006855 networking Effects 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W28/00—Network traffic management; Network resource management
- H04W28/02—Traffic management, e.g. flow control or congestion control
- H04W28/10—Flow control between communication endpoints
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W4/00—Services specially adapted for wireless communication networks; Facilities therefor
- H04W4/80—Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Mobile Radio Communication Systems (AREA)
- Small-Scale Networks (AREA)
Abstract
The invention relates to a self-adaptive inflow distribution method and a control system, and the self-adaptive inflow distribution method comprises the following steps: establishing two wireless communication modes; when the file is transmitted, flow distribution is carried out through two wireless communication modes; the self-adaptive inflow distribution method and the control system can keep two connections existing simultaneously when the file is transmitted, and are favorable for the stability of the transmitted file data; and can also transmit data more efficiently and more stably when the signal strength is reduced or a channel is congested or a certain channel fails.
Description
Technical Field
The invention belongs to the field of wireless communication, and particularly relates to a self-adaptive flow distribution method and a control system.
Background
At present, a terminal is used for file transmission, and wifi and Bluetooth are mainly used. In some situations the throughput of the wlan is high but not stable, when the wlan is congested, the task is facilitated by transmitting data via bluetooth. Maintaining both connections simultaneously may be advantageous in some cases for stability of the transmitted file data.
Disclosure of Invention
The invention aims to provide a self-adaptive flow distribution method and a control system.
In order to solve the above technical problem, the present invention provides a method for adaptive traffic distribution, including:
establishing two wireless communication modes; and
when the file is transmitted, the flow distribution is carried out by two wireless communication modes.
Further, the two wireless communication modes include: a bluetooth connection and a WiFi connection;
the file sending end and the file receiving end both comprise: a Bluetooth module and a WiFi module;
and when initializing, a connection relation of a Bluetooth module and/or a WiFi module is established between the file sending end and the file receiving end.
Further, the transfer of the file is adapted to be performed in a segmented sending manner, an
The method for carrying out flow distribution through two wireless communication modes comprises the following steps:
respectively calculating the real-time signal intensity ratio of the Bluetooth module and the WiFi module;
and the flow distribution of the two wireless communication modes is adjusted according to the signal intensity ratio.
Further, the method for calculating the real-time signal strength ratio of the Bluetooth module and the WiFi module comprises the following steps:
for the WiFi module, the RSSI value when the WiFi signal is strongest is set as RSSIwmax, and the corresponding maximum transmission rate at this time is Rwm, that is
WiFi signal strength ratio is set as a, and a ═ 10EXP (RSSIw1)/10EXP (rssiwmax);
in the above equation, RSSIw1 represents the current RSSI value of the WiFi signal; and
for the bluetooth module, the RSSI value when the bluetooth signal is strongest is set as: RSSIbmax, when the corresponding maximum transmission rate is: rbm, i.e.
The bluetooth signal strength ratio is set as B, and B is 10EXP (RSSIb1)/10EXP (rssibmax);
in the above equation, RSSIb1 represents the current RSSI value of the bluetooth signal.
Further, the method for adjusting the traffic distribution of the two wireless communication modes according to the signal strength ratio comprises the following steps:
defining the current total instantaneous flow as 100%, then the flow proportion allocated to wifi is [ A/(A + B) ] (Rwm + Rbm)%, and the rest flows are transmitted in a Bluetooth communication mode; and
the traffic distribution is adapted to be adjusted in real time according to the bluetooth signal strength and the WiFi signal strength.
Further, the method for flow distribution through two wireless communication modes further comprises the following steps:
distributing flow according to the test packet through WLAN loopback time average value, which comprises:
a WiFi communication mode is used as a main transmission mode, and a Bluetooth communication mode is used as an auxiliary transmission mode;
pre-sending test packets according to a segmented mode, recording the time required by each segmented test packet from sending to WLAN returning, and averaging the time;
when a file is transmitted through the WiFi communication means,
if the sending time of a certain section of file exceeds the average time, calculating the difference time, increasing the difference time on the waiting interval of WLAN packet sending, and simultaneously increasing the data transmission flow of Bluetooth in the increased difference time; or
If the sending time of a certain segment of file is lower than the average time, calculating the difference time, reducing the difference time at the waiting interval of WLAN packet sending, and reducing the data transmission flow of Bluetooth in the reduced difference time; and
and accumulating the required time of each file transmission into an average value so as to calculate the flow distribution of the next file transmission.
In another aspect, the invention further provides an adaptive flow distribution control system.
The adaptive flow distribution control system includes:
the system comprises a file sending end and a file receiving end, wherein both ends of the file sending end and the file receiving end comprise a Bluetooth module and a WiFi module;
establishing a corresponding wireless communication mode through a Bluetooth module and a WiFi module; and
when the file is transmitted, the flow distribution is carried out through the two wireless communication modes.
Further, the transfer of the file is adapted to be performed in a segmented sending manner, an
The method for carrying out flow distribution through two wireless communication modes comprises the following steps:
respectively calculating the real-time signal intensity ratio of the Bluetooth module and the WiFi module;
and the flow distribution of the two wireless communication modes is adjusted according to the signal intensity ratio.
Further, the method for calculating the real-time signal strength ratio of the Bluetooth module and the WiFi module comprises the following steps:
for the WiFi module, the RSSI value when the WiFi signal is strongest is set as RSSIwmax, and the corresponding maximum transmission rate at this time is Rwm, that is
WiFi signal strength ratio is set as a, and a ═ 10EXP (RSSIw1)/10EXP (rssiwmax);
in the above equation, RSSIw1 represents the current RSSI value of the WiFi signal; and
for the bluetooth module, the RSSI value when the bluetooth signal is strongest is set as: RSSIbmax, when the corresponding maximum transmission rate is: rbm, i.e.
The bluetooth signal strength ratio is set as B, and B is 10EXP (RSSIb1)/10EXP (rssibmax);
in the above equation, RSSIb1 represents the current RSSI value of the bluetooth signal;
the method for adjusting the flow distribution of the two wireless communication modes according to the signal strength ratio comprises the following steps:
defining the current total instantaneous flow as 100%, then the flow proportion allocated to wifi is [ A/(A + B) ] (Rwm + Rbm)%, and the rest flows are transmitted in a Bluetooth communication mode; and
the traffic distribution is adapted to be adjusted in real time according to the bluetooth signal strength and the WiFi signal strength.
Further, the method for flow distribution through two wireless communication modes further comprises the following steps:
distributing flow according to the test packet through WLAN loopback time average value, which comprises:
a WiFi communication mode is used as a main transmission mode, and a Bluetooth communication mode is used as an auxiliary transmission mode;
pre-sending test packets according to a segmented mode, recording the time required by each segmented test packet from sending to WLAN returning, and averaging the time;
when a file is transmitted through the WiFi communication means,
if the sending time of a certain section of file exceeds the average time, calculating the difference time, increasing the difference time on the waiting interval of WLAN packet sending, and simultaneously increasing the data transmission flow of Bluetooth in the increased difference time; or
If the sending time of a certain segment of file is lower than the average time, calculating the difference time, reducing the difference time at the waiting interval of WLAN packet sending, and reducing the data transmission flow of Bluetooth in the reduced difference time; and
and accumulating the required time of each file transmission into an average value so as to calculate the flow distribution of the next file transmission.
The self-adaptive flow distribution method and the control system have the advantages that the two connections can be kept simultaneously during file transmission, and the stability of file data transmission is facilitated; and can also transmit data more efficiently and more stably when the signal strength is reduced or a channel is congested or a certain channel fails.
Drawings
The invention is further illustrated with reference to the following figures and examples.
FIG. 1 is a flow chart of an adaptive traffic distribution method of the present invention;
fig. 2 is a functional block diagram of the adaptive flow distribution control system of the present invention.
Detailed Description
The present invention will now be described in further detail with reference to the accompanying drawings. These drawings are simplified schematic views illustrating only the basic structure of the present invention in a schematic manner, and thus show only the constitution related to the present invention.
Example 1
As shown in fig. 1, this embodiment 1 provides an adaptive traffic distribution method, including:
establishing two wireless communication modes; and when the file is transmitted, carrying out flow distribution through two wireless communication modes.
Specifically, the two wireless communication modes include: a bluetooth connection and a WiFi connection; the file sending end and the file receiving end both comprise: a Bluetooth module and a WiFi module; and when initializing, a connection relation of a Bluetooth module and/or a WiFi module is established between the file sending end and the file receiving end.
When a file is transmitted between the file transmitting end and the file receiving end, WiFi and Bluetooth connections are started simultaneously, and data transmission is carried out simultaneously on the two connections. The WiFi networking mode can be an AD-hoc self-organizing network and can also be an Infrastructure mode.
The flow and the working principle of data transmission of the file sending end and the file receiving end are as follows:
regarding bluetooth:
the file sending end and the file receiving end are internally provided with a microprocessor (CPU) which is connected with the Bluetooth module through a UART (universal asynchronous receiver/transmitter) and can also be connected by using a serial port, a USB (universal serial bus), a SDIO (serial digital input output) and the like, the microprocessor can be provided with operating systems such as Linux, UCOS (unified content operating system) and the like, and the Linux can be provided with an Android operating system.
The transmission is realized based on an HCI layer, a Host Controller Interface (HCI) is positioned in the middle layer of a Bluetooth protocol stack, and the HCI provides a uniform interface for a Bluetooth host to access a baseband of a Bluetooth host controller and hardware such as a link controller, a link manager, a status register and the like.
The specific process of Bluetooth data transmission comprises initialization, Bluetooth interaction and data processing.
Initialization includes system initialization and bluetooth initialization. The system initialization comprises system clock initialization, serial port initialization, timer initialization and the like, wherein the Bluetooth initialization is to send a series of initialization instructions to the Bluetooth module through the UART, and the Bluetooth module returns events to interactively complete a series of initialization operations such as resetting, authentication, address reading and the like.
After the Bluetooth interaction is completed, if the local Bluetooth is used as slave equipment, waiting for a link establishment request of remote Bluetooth equipment, and if the request is received, continuing to wait for the successful link establishment to obtain a connection handle, thereby carrying out data exchange; if the local Bluetooth is used as the master device, a series of operations such as active inquiry, link establishment, data transmission, link disconnection and the like are carried out.
The data processing is a series of subsequent operations of extracting valid data and transferring the valid data to a corresponding position.
With respect to WiFi:
the microprocessor is connected with the WiFi module through SDIO, and also can use UART, SPI, USB and the like to connect.
Specific flow of WiFi data transmission
And (5) initializing the system. The method comprises the steps of initializing a microprocessor, initializing a serial port, initializing an SDIO, initializing a wifi chip and initializing a TCP/IP (or LWIP) protocol stack.
The socket is established, and since the file transfer application program has a mechanism for guaranteeing that data transfer is correct, the data is sent and received by using a UDP protocol.
Process and working principle for file transfer application program to transmit data
The file receiving end sends 'file sending request' information to the file sending end, and the file receiving end initializes the file after receiving the request. Then, performing Bluetooth interaction to establish connection; and adding a WiFi wireless network, and returning information of 'allowing to send files' to a file sending end after establishing a socket.
After receiving the information allowing transmission, the file sending end opens a local file to be sent, obtains file information and file data, sends the file information to the file receiving end, after receiving the file information, the file receiving end creates an empty file according to the file information, and after the file information is received, returns file creation completion information to the file sending end.
The transmission of the file is suitable for being carried out according to a segmented transmission mode, namely, the file sending end can send the file data after knowing that the file corresponding to the file receiving end is created, and the sending of the file data is carried out in a segmented transmission mode because the maximum length of an ACL data packet is limited. According to the conditions of maximum packet length, buffer size and the like, a file is divided into fixed-size fragments, a serial number is added, and data with the fixed fragment size is transmitted each time.
The method for carrying out flow distribution through two wireless communication modes comprises the following steps:
respectively calculating the real-time signal intensity ratio of the Bluetooth module and the WiFi module; and the flow distribution of the two wireless communication modes is adjusted according to the signal intensity ratio.
Specifically, the method for calculating the real-time signal strength ratio of the bluetooth module and the WiFi module includes:
for the WiFi module, the RSSI value when the WiFi signal is strongest is set as RSSIwmax, and the corresponding maximum transmission rate at this time is Rwm, that is
WiFi signal strength ratio is set as a, and a ═ 10EXP (RSSIw1)/10EXP (rssiwmax);
in the above equation, RSSIw1 represents the current RSSI value of the WiFi signal; and
for the bluetooth module, the RSSI value when the bluetooth signal is strongest is set as: RSSIbmax, when the corresponding maximum transmission rate is: rbm, i.e.
The bluetooth signal strength ratio is set as B, and B is 10EXP (RSSIb1)/10EXP (rssibmax);
in the above equation, RSSIb1 represents the current RSSI value of the bluetooth signal.
The RSSI values (in dBm) for the WiFi module and the bluetooth module are written in advance in the firmware at both ends.
The method for adjusting the flow distribution of the two wireless communication modes according to the signal strength ratio comprises the following steps:
defining the current total instantaneous flow as 100%, then the flow proportion allocated to wifi is [ A/(A + B) ] (Rwm + Rbm)%, and the rest flows are transmitted in a Bluetooth communication mode; and
since RSSIw1 and rssibb 1 both change dynamically during communication, traffic distribution is adapted to be adjusted in real time according to bluetooth signal strength and WiFi signal strength.
Preferably, the method for allocating traffic through two wireless communication modes further includes:
and distributing the flow according to the test packet through the WLAN loopback time average value.
Further, the distributing the flow according to the test packet through the WLAN loopback time average value includes:
a WiFi communication mode is used as a main transmission mode, and a Bluetooth communication mode is used as an auxiliary transmission mode;
pre-sending test packets according to a segmented mode, recording the time required by each segmented test packet from sending to WLAN returning, and averaging the time; when a file is sent in a WiFi communication mode, if the sending time of a certain section of file exceeds the average time, calculating the difference time, adding the difference time to a waiting interval during WLAN packet sending, and simultaneously adding the data transmission flow of Bluetooth in the added difference time; or if the sending time of a certain segment of file is lower than the average time, calculating the difference time, reducing the difference time at the waiting interval of WLAN packet sending, and reducing the data transmission flow of Bluetooth in the reduced difference time; and accumulating the time required by each file transmission into an average value so as to calculate the flow distribution of the next file transmission.
Specifically, the average distribution of the flow of the test packets through the WLAN loopback time is suitable for being established on the premise that the throughput of the microprocessor is high or moderate, and the throughput of the WLAN (wireless Local Area networks) is high but unstable. When the WLAN is congested, the microprocessor gives the bluetooth a portion of the processing power.
When the file packet is transmitted, the microprocessor is operated at full speed, the test packet is sent to test the time required from the sending of the packet with the same or similar length as the data packet to the returning of the packet through the WLAN, the time is measured periodically and averaged, and the recorded data is updated.
When the test packet loop back time is long, the test packet loop back time is often caused by congestion due to excessive user data processing by the switch. For this case, the bale velocity is adjusted as follows:
let mean time taverageThe real-time transmission time of the ith segmented file is ti;
Let the difference time Δ t be | taverage-ti|
Comparison taverageAnd tiIf t isaverage>tiAnd increasing the waiting interval of the microprocessor in WLAN packet transmission, namely increasing delta t on the basis of the original interval time, and transmitting the Bluetooth data by using the increased time interval delta t.
If taverage<tiAnd then, reducing the waiting interval of the microprocessor in the WLAN packet sending process, reducing delta t on the basis of the original interval time, and reducing the sending of Bluetooth data by utilizing the reduced time interval delta t.
If one of the connections is abnormal, the connection is reset, the connection is reestablished, and the data can be transmitted by 2 connections all the time.
When the connection cannot be restored after reset, only 1 connection can be used, and the current transmission position is recorded, so that breakpoint transmission can be carried out when the current connection is also failed.
During transmission, UDP transmission is adopted, and according to the serial number n of the file fragment mark of the currently received packet, a receiving end can judge whether a UDP packet which cannot be sent exists or not; for a UDP packet which cannot be delivered, the receiving terminal transmits a retransmission instruction to the transmitting terminal to request retransmission.
After the data transmission of the file sending end is finished, the file sending end sends file sending end information to the file receiving end, the file receiving end closes the current file, the Bluetooth connection is disconnected, the Socket is closed, and the file transmission is finished.
Example 2
On the basis of the above embodiment 1, the present embodiment 2 provides an adaptive flow rate distribution control system.
The adaptive flow distribution control system includes:
the system comprises a file sending end and a file receiving end, wherein both ends of the file sending end and the file receiving end comprise a microprocessor, a Bluetooth module and a WiFi module which are connected with the microprocessor; establishing a corresponding wireless communication mode through a Bluetooth module and a WiFi module; and when the file is transmitted, carrying out flow distribution through the two wireless communication modes.
Specifically, the method for transmitting the file is suitable for being carried out according to a segmented transmission mode, and the method for carrying out flow distribution through two wireless communication modes comprises the following steps: respectively calculating the real-time signal intensity ratio of the Bluetooth module and the WiFi module; and the flow distribution of the two wireless communication modes is adjusted according to the signal intensity ratio.
The method for calculating the real-time signal strength ratio of the Bluetooth module and the WiFi module comprises the following steps:
for the WiFi module, the RSSI value when the WiFi signal is strongest is set as RSSIwmax, and the corresponding maximum transmission rate at this time is Rwm, that is
WiFi signal strength ratio is set as a, and a ═ 10EXP (RSSIw1)/10EXP (rssiwmax);
in the above equation, RSSIw1 represents the current RSSI value of the WiFi signal; and
for the bluetooth module, the RSSI value when the bluetooth signal is strongest is set as: RSSIbmax, when the corresponding maximum transmission rate is: rbm, i.e.
The bluetooth signal strength ratio is set as B, and B is 10EXP (RSSIb1)/10EXP (rssibmax);
in the above equation, RSSIb1 represents the current RSSI value of the bluetooth signal;
the method for adjusting the flow distribution of the two wireless communication modes according to the signal strength ratio comprises the following steps:
defining the current total instantaneous flow as 100%, then the flow proportion allocated to wifi is [ A/(A + B) ] (Rwm + Rbm)%, and the rest flows are transmitted in a Bluetooth communication mode; and
the traffic distribution is adapted to be adjusted in real time according to the bluetooth signal strength and the WiFi signal strength.
The method for distributing the flow through two wireless communication modes further comprises the following steps: distributing flow according to the test packet through WLAN loopback time average value, which comprises: a WiFi communication mode is used as a main transmission mode, and a Bluetooth communication mode is used as an auxiliary transmission mode; pre-sending test packets according to a segmented mode, recording the time required by each segmented test packet from sending to WLAN returning, and averaging the time; when a file is sent in a WiFi communication mode, if the sending time of a certain section of file exceeds the average time, calculating the difference time, adding the difference time to a waiting interval during WLAN packet sending, and simultaneously adding the data transmission flow of Bluetooth in the added difference time; or if the sending time of a certain segment of file is lower than the average time, calculating the difference time, reducing the difference time at the waiting interval of WLAN packet sending, and reducing the data transmission flow of Bluetooth in the reduced difference time; and accumulating the time required by each file transmission into an average value so as to calculate the flow distribution of the next file transmission.
In light of the foregoing description of the preferred embodiment of the present invention, many modifications and variations will be apparent to those skilled in the art without departing from the spirit and scope of the invention. The technical scope of the present invention is not limited to the content of the specification, and must be determined according to the scope of the claims.
Claims (2)
1. An adaptive traffic distribution method, comprising:
establishing two wireless communication modes; and
when the file is transmitted, flow distribution is carried out through two wireless communication modes;
the two wireless communication modes include: a bluetooth connection and a WiFi connection;
the file sending end and the file receiving end both comprise: a Bluetooth module and a WiFi module;
when the file is initialized, a connection relation of a Bluetooth module and/or a WiFi module is established between the file sending end and the file receiving end;
the transfer of the file is suitably performed in a segmented transmission manner, an
The method for carrying out flow distribution through two wireless communication modes comprises the following steps:
respectively calculating the real-time signal intensity ratio of the Bluetooth module and the WiFi module;
and the flow distribution of the two wireless communication modes is adjusted according to the signal intensity ratio;
the method for calculating the real-time signal strength ratio of the Bluetooth module and the WiFi module comprises the following steps:
for the WiFi module, the RSSI value when the WiFi signal is strongest is set as RSSIwmax, and the corresponding maximum transmission rate at this time is Rwm, that is
WiFi signal strength ratio is set as a, and a ═ 10EXP (RSSIw1)/10EXP (rssiwmax);
in the above equation, RSSIw1 represents the current RSSI value of the WiFi signal; and
for the bluetooth module, the RSSI value when the bluetooth signal is strongest is set as: RSSIbmax, when the corresponding maximum transmission rate is: rbm, i.e.
The bluetooth signal strength ratio is set as B, and B is 10EXP (RSSIb1)/10EXP (rssibmax);
in the above equation, RSSIb1 represents the current RSSI value of the bluetooth signal;
the method for adjusting the flow distribution of the two wireless communication modes according to the signal strength ratio comprises the following steps:
defining the current total instantaneous flow as 100%, then the flow proportion allocated to wifi is [ A/(A + B) ] (Rwm + Rbm)%, and the rest flows are transmitted in a Bluetooth communication mode; and
the flow distribution is suitable for real-time adjustment according to the Bluetooth signal intensity and the WiFi signal intensity;
the method for distributing the flow through two wireless communication modes further comprises the following steps:
distributing flow according to the test packet through WLAN loopback time average value, which comprises:
a WiFi communication mode is used as a main transmission mode, and a Bluetooth communication mode is used as an auxiliary transmission mode;
pre-sending test packets according to a segmented mode, recording the time required by each segmented test packet from sending to WLAN returning, and averaging the time;
when a file is transmitted through the WiFi communication means,
if the sending time of a certain section of file exceeds the average time, calculating the difference time, increasing the difference time on the waiting interval of WLAN packet sending, and simultaneously increasing the data transmission flow of Bluetooth in the increased difference time; or
If the sending time of a certain segment of file is lower than the average time, calculating the difference time, reducing the difference time at the waiting interval of WLAN packet sending, and reducing the data transmission flow of Bluetooth in the reduced difference time; and
and accumulating the required time of each file transmission into an average value so as to calculate the flow distribution of the next file transmission.
2. An adaptive flow distribution control system, comprising:
the system comprises a file sending end and a file receiving end, wherein both ends of the file sending end and the file receiving end comprise a Bluetooth module and a WiFi module;
establishing a corresponding wireless communication mode through a Bluetooth module and a WiFi module; and
when the file is transmitted, flow distribution is carried out through two wireless communication modes;
the transfer of the file is suitably performed in a segmented transmission manner, an
The method for carrying out flow distribution through two wireless communication modes comprises the following steps:
respectively calculating the real-time signal intensity ratio of the Bluetooth module and the WiFi module;
and the flow distribution of the two wireless communication modes is adjusted according to the signal intensity ratio;
the method for calculating the real-time signal strength ratio of the Bluetooth module and the WiFi module comprises the following steps:
for the WiFi module, the RSSI value when the WiFi signal is strongest is set as RSSIwmax, and the corresponding maximum transmission rate at this time is Rwm, that is
WiFi signal strength ratio is set as a, and a ═ 10EXP (RSSIw1)/10EXP (rssiwmax);
in the above equation, RSSIw1 represents the current RSSI value of the WiFi signal; and
for the bluetooth module, the RSSI value when the bluetooth signal is strongest is set as: RSSIbmax, when the corresponding maximum transmission rate is: rbm, i.e.
The bluetooth signal strength ratio is set as B, and B is 10EXP (RSSIb1)/10EXP (rssibmax);
in the above equation, RSSIb1 represents the current RSSI value of the bluetooth signal;
the method for adjusting the flow distribution of the two wireless communication modes according to the signal strength ratio comprises the following steps:
defining the current total instantaneous flow as 100%, then the flow proportion allocated to wifi is [ A/(A + B) ] (Rwm + Rbm)%, and the rest flows are transmitted in a Bluetooth communication mode; and
the flow distribution is suitable for real-time adjustment according to the Bluetooth signal intensity and the WiFi signal intensity;
the method for distributing the flow through two wireless communication modes further comprises the following steps:
distributing flow according to the test packet through WLAN loopback time average value, which comprises:
a WiFi communication mode is used as a main transmission mode, and a Bluetooth communication mode is used as an auxiliary transmission mode;
pre-sending test packets according to a segmented mode, recording the time required by each segmented test packet from sending to WLAN returning, and averaging the time;
when a file is transmitted through the WiFi communication means,
if the sending time of a certain section of file exceeds the average time, calculating the difference time, increasing the difference time on the waiting interval of WLAN packet sending, and simultaneously increasing the data transmission flow of Bluetooth in the increased difference time; or
If the sending time of a certain segment of file is lower than the average time, calculating the difference time, reducing the difference time at the waiting interval of WLAN packet sending, and reducing the data transmission flow of Bluetooth in the reduced difference time; and
and accumulating the required time of each file transmission into an average value so as to calculate the flow distribution of the next file transmission.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710262653.0A CN107094282B (en) | 2017-04-20 | 2017-04-20 | Self-adaptive flow distribution method and control system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710262653.0A CN107094282B (en) | 2017-04-20 | 2017-04-20 | Self-adaptive flow distribution method and control system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107094282A CN107094282A (en) | 2017-08-25 |
CN107094282B true CN107094282B (en) | 2020-03-10 |
Family
ID=59637655
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710262653.0A Active CN107094282B (en) | 2017-04-20 | 2017-04-20 | Self-adaptive flow distribution method and control system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107094282B (en) |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8520586B1 (en) * | 2009-12-16 | 2013-08-27 | Qualcomm Incorporated | Discovery and connection coexistence mechanism for wireless devices |
CN103856993A (en) * | 2012-12-06 | 2014-06-11 | 腾讯科技(深圳)有限公司 | Method and device for wireless communication |
CN105764079A (en) * | 2016-02-19 | 2016-07-13 | 努比亚技术有限公司 | Data transmission method and data transmission device |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US9860297B2 (en) * | 2014-06-02 | 2018-01-02 | Nokia Technologies Oy | Method, apparatus, and computer program product for media selection for moving user |
-
2017
- 2017-04-20 CN CN201710262653.0A patent/CN107094282B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8520586B1 (en) * | 2009-12-16 | 2013-08-27 | Qualcomm Incorporated | Discovery and connection coexistence mechanism for wireless devices |
CN103856993A (en) * | 2012-12-06 | 2014-06-11 | 腾讯科技(深圳)有限公司 | Method and device for wireless communication |
CN105764079A (en) * | 2016-02-19 | 2016-07-13 | 努比亚技术有限公司 | Data transmission method and data transmission device |
Also Published As
Publication number | Publication date |
---|---|
CN107094282A (en) | 2017-08-25 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101253745B (en) | Method and system for transparent TCP offload | |
US9143349B2 (en) | Configurable media access controller | |
EP2479941B1 (en) | Communication apparatus and communication system for enhancing speed of communications between terminals | |
JP2014509483A (en) | Mechanisms to improve the performance of transmission control protocols in wireless networks | |
JP2000216815A (en) | Multilink communication equipment | |
US20070019574A1 (en) | Wireless access point and method for operating the same | |
CN110662256A (en) | Multi-path cross-protocol transmission data packet scheduling method and system | |
JP4432385B2 (en) | Data relay system | |
WO2013015114A1 (en) | Communication device, communication method, and communication system | |
CN1992582B (en) | Implementation method for adaptive variable slide receiving window of broadband signaling link | |
JP4998687B2 (en) | Communication system, tunneling device, communication method, and program | |
CN112491842A (en) | Multi-protocol Internet of things gateway for smart construction site | |
US20100254310A1 (en) | Packet sniffer for ad hoc network | |
WO2005050942A1 (en) | Radio communication system, method for controlling transmission of reception acknowledgement signal, and radio station used therein | |
US20130332504A1 (en) | Station, target apparatus, initiator apparatus, communication system, and communication method | |
WO2007007574A1 (en) | Communication system, communication apparatus, and link use stopping method | |
US6999443B1 (en) | Hardware MAC | |
CN107094282B (en) | Self-adaptive flow distribution method and control system | |
US20110205918A1 (en) | Apparatus for Power Line and Wireless Communications | |
CN101473599A (en) | System and method for controlling bandwidth at a wireless endpoint | |
EP1633087B1 (en) | Repeater apparatus for supporting a plurality of protocols, and a method for controlling proctocol conversion in the repeater apparatus | |
EP1505759B1 (en) | Method and device for transmitting/receiving data using acknowledged transport layer protocols | |
JP2003101551A (en) | Radio communication device, access request processing method, storage medium, and program | |
KR100259768B1 (en) | Method of service process using point-to-point protocol and multilink protocol in the distributed environment | |
CN113950099A (en) | Network congestion control method and equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
TR01 | Transfer of patent right | ||
TR01 | Transfer of patent right |
Effective date of registration: 20201222 Address after: 213100 Mingxin Middle Road, HUTANG Town, Wujin District, Changzhou City, Jiangsu Province Patentee after: Changzhou College of Mechatronics Technology Transfer Center Co.,Ltd. Patentee after: CHANGZHOU VOCATIONAL INSTITUTE OF MECHATRONIC TECHNOLOGY Address before: 213000 No. 26 Mingxin Middle Road, Hutang Town, Wujin District, Changzhou City, Jiangsu Province Patentee before: CHANGZHOU VOCATIONAL INSTITUTE OF MECHATRONIC TECHNOLOGY |