CN107040302A - The collocation method and device of a kind of trunking traffic - Google Patents
The collocation method and device of a kind of trunking traffic Download PDFInfo
- Publication number
- CN107040302A CN107040302A CN201710254564.1A CN201710254564A CN107040302A CN 107040302 A CN107040302 A CN 107040302A CN 201710254564 A CN201710254564 A CN 201710254564A CN 107040302 A CN107040302 A CN 107040302A
- Authority
- CN
- China
- Prior art keywords
- channel
- via node
- nodes
- relaying
- rank
- 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.)
- Granted
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04B—TRANSMISSION
- H04B7/00—Radio transmission systems, i.e. using radiation field
- H04B7/14—Relay systems
- H04B7/15—Active relay systems
- H04B7/155—Ground-based stations
- H04B7/15528—Control of operation parameters of a relay station to exploit the physical medium
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04B—TRANSMISSION
- H04B7/00—Radio transmission systems, i.e. using radiation field
- H04B7/14—Relay systems
- H04B7/15—Active relay systems
- H04B7/155—Ground-based stations
- H04B7/15528—Control of operation parameters of a relay station to exploit the physical medium
- H04B7/15542—Selecting at relay station its transmit and receive resources
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W88/00—Devices specially adapted for wireless communication networks, e.g. terminals, base stations or access point devices
- H04W88/02—Terminal devices
- H04W88/04—Terminal devices adapted for relaying to or from another terminal or user
Abstract
The embodiments of the invention provide a kind of collocation method of trunking traffic and device, using in the terminal, the mobile terminal configuration has Wi Fi modules, and methods described includes:The router or via node of upper level are connected by the station nodes of the Wi Fi modules;Detection is used as the relaying rank residing for via node;According to the relaying rank selection target channel;Start the softAP nodes of the Wi Fi modules according to the relaying rank, to connect application terminal and/or the via node of next stage in the destination channel;According to the relaying rank configuration trunking traffic parameter, to support to be communicated between the station nodes and the softAP nodes.The embodiment of the present invention forms the junction network of multistage, has widened the structural level of network, has added the quantity of via node, so as to improve the quantity of connection, also, has not been interfere with each other between channel.
Description
Technical field
The present invention relates to the technical field of communication, more particularly to a kind of collocation method of trunking traffic and a kind of relaying are logical
The configuration device of letter.
Background technology
With the improvement of living standards, wireless signal, such as Wi-Fi (Wireless Fidelity), due to wireless convenience, extensively
The general various aspects for being applied to life.
Wireless signal is being used, in order to strengthen the intensity of wireless signal and the coverage of increase wireless signal, it is ensured that nothing
The normal of line signal is used, and at present, in order to save cost, discarded mobile terminal can be used to be articulated under router, as
Repeater, the wireless signal transmission received is gone out, and increases the coverage of wireless signal, expands communication distance and wireless
Signal cover, wireless weak signal is strengthened.
But, router connection limited amount, the limited amount of the equipment of relaying can be used, with intelligent appliance,
Increasing for the equipment such as handheld terminal, causes newly-increased equipment can not connect relaying, it is impossible to use wireless signal.
The content of the invention
In view of the above problems, in order to solve the limited amount that above-mentioned router is connected, newly-increased equipment is caused not connect
Relaying, using wireless signal the problem of, the embodiment of the present invention proposes a kind of collocation method of trunking traffic and corresponding a kind of
The configuration device of trunking traffic.
According to one aspect of the present invention there is provided a kind of collocation method of trunking traffic, using in the terminal, institute
Stating mobile terminal configuration has Wi-Fi modules, and methods described includes:
The router or via node of upper level are connected by the station nodes of the Wi-Fi modules;
Detection is used as the relaying rank residing for via node;
According to the relaying rank selection target channel;
Start the softAP nodes of the Wi-Fi modules according to the relaying rank, with destination channel connection
The application terminal of one-level and/or via node;
According to the relaying rank configuration trunking traffic parameter, to support in the station nodes and the softAP
Communicated between node.
Alternatively, it is described to be included according to the step of the relaying rank selection target channel:
The channel residing for the router or via node of upper level is inquired about, up channel is used as;
Determine the frequency range type of the up channel;
When the relaying rank is the first order, calculate non-interfering with the up channel according to the frequency range type
Destination channel;
When the relaying rank is below the second level or the second level, the channel residing for adjacent via node is detected, is made
For adjacent channel;
Calculated and the up channel and the non-interfering destination channel of the adjacent channel according to the frequency range type.
Alternatively, it is described the step of calculated according to the frequency range type with the up channel non-interfering destination channel
Including:
When the channel type is 2.4G frequency ranges, the up channel is offset into N number of channel, destination channel is used as;
When the channel type is 5G frequency ranges, the up channel is offset into M channel, destination channel is used as.
Alternatively, the channel residing for the adjacent via node of the detection, includes the step of as adjacent channel:
Search the service set identical via node with mobile terminal;
The channel residing for the via node is detected, adjacent channel is used as.
Alternatively, it is described to calculate non-interfering with the up channel and the adjacent channel according to the frequency range type
The step of destination channel, includes:
When the channel type is 2.4G frequency ranges, the up channel is offset into N number of channel, candidate channel is used as;
When the channel type is 5G frequency ranges, the up channel is offset into M channel, candidate channel is used as;
When the candidate channel is identical with the adjacent channel, using the signal of the affiliated via node of the adjacent channel
Information calculates interference coefficient;
According to the interference coefficient destination channel is chosen from the candidate channel.
Alternatively, it is described to calculate non-interfering with the up channel and the adjacent channel according to the frequency range type
The step of destination channel, also includes:
When the quantity of the candidate channel is one, by the channel of farthest apart from the candidate channel, numbering minimum
Or the largest number of channel is set to candidate channel.
Alternatively, the step of signal message using the affiliated via node of the adjacent channel calculates interference coefficient is wrapped
Include:
Detect the quantity and/or signal intensity of the affiliated via node of the adjacent channel;
Interference coefficient is calculated using the quantity and/or the signal intensity, wherein, the quantity and/or the signal
Intensity and the interference coefficient positive correlation.
Alternatively, the detection includes as the other step of Relay residing for via node:
The first order will be set to as the relaying rank residing for via node;
Link deployment information is asked to the router or via node of upper level;
When asking successfully, the relaying rank of the via node of upper level is extracted from the link deployment information;
On the basis of the Relay of the via node of upper level is other, calculate as the relaying rank residing for via node,
To be replaced to the first order;
When asking failure, it is the first order to be determined as the relaying rank residing for via node.
Alternatively, the softAP nodes for starting the Wi-Fi modules according to the relaying rank, with the target
The step of application terminal of channel connection next stage and/or via node, includes:
When the relaying rank is the first order, the log-on message of user's input is received;
When the relaying rank is more than the second level or the second level, from the link deployment information of the via node of upper level
Middle extraction log-on message, wherein, the log-on message includes service set and password;
Start the softAP sections of the Wi-Fi modules according to the destination channel, the service set and the password
Point, to broadcast the service set in the destination channel.
Alternatively, it is described according to it is described relaying rank configuration trunking traffic parameter, with support the station nodes with
The step of being communicated between the softAP nodes includes:
Open bag forwarding capability;
When the relaying rank is the first order, address translation feature NAT configuration information is set;
When the relaying rank is below the second level or the second level, IP address is distributed from the via node of upper level, and
The transistroute table set up between via nodes at different levels;
And/or,
Inquire about the router of upper level or the IP address of via node;
By the IP address of the router of upper level or via node, the gateway address of domain name system DNS is set to.
Alternatively, in addition to:
The packet that the application terminal of next stage and/or via node are sent is received by the softAP nodes;
The packet is forwarded to station nodes from softAP nodes;
The packet is sent to the route of upper level by the station nodes according to the communication configuration parameter
Device or via node.
Alternatively, it is described according to the communication configuration parameter by the station nodes by the packet send to
The step of router or via node of upper level, includes:
When having uniform resource position mark URL in the packet, nslookup system DNS gateway address;
By the station nodes according to the gateway address, the packet is sent to the router of upper level
Or via node;
Or,
When the relaying rank is the first order, by the source address in the packet, from the IP of the application terminal
Location is converted to the IP address of the mobile terminal;
The packet for pretending the IP address from the mobile terminal is sent to upper level by the station nodes
Router;
Or,
When the relaying rank is below the second level or the second level,
The packet is sent to the via node of upper level by the station nodes.
Alternatively, in addition to:
The packet that the router or via node for receiving upper level by the station nodes are sent;
The packet is forwarded to the softAP nodes from the station nodes;
The packet is sent to the application of next stage by the softAP nodes according to the communication configuration parameter
Terminal or via node.
Alternatively, it is described to be sent the packet to the step of the via node of upper level by the station nodes
Suddenly include:
When the relaying rank is the first order, by the destination address in the packet from the IP of the mobile terminal
Location is converted to the IP address of the application terminal;
When the relaying rank is below the second level or the second level, source address is inquired about in the packet, institute is known
State the IP address of application terminal;
Routed to by the transistroute table inquiry between via nodes at different levels from the IP address of the mobile terminal described
The destination path of the IP address of application terminal;The application terminal of next stage or the IP of via node are inquired about in the destination path
Address;
The data are sent out according to the application terminal of next stage or the IP address of via node by the softAP nodes
Deliver to application terminal or the via node of next stage.
According to another aspect of the present invention there is provided a kind of configuration device of trunking traffic, using in the terminal, institute
Stating mobile terminal configuration has Wi-Fi modules, and described device includes:
Higher level equipment link block, the router of upper level is connected for the station nodes by the Wi-Fi modules
Or via node;
Rank detection module is relayed, for detecting as the relaying rank residing for via node;
Destination channel selecting module, for according to the relaying rank selection target channel;
Subordinate equipment link block, the softAP nodes for starting the Wi-Fi modules according to the relaying rank, with
Application terminal and/or the via node of next stage are connected in the destination channel;
Trunking traffic parameter configuration module, for according to the relaying rank configuration trunking traffic parameter, to support in institute
State and communicated between station nodes and the softAP nodes.
Alternatively, the destination channel selecting module includes:
Up channel sets submodule, for inquiring about the channel residing for the router or via node of upper level, as upper
Row channel;
Frequency range type determination module, the frequency range type for determining the up channel;
First object channel calculation submodule, for when the relaying rank is the first order, according to the frequency range type
Calculate and the non-interfering destination channel of the up channel;
Adjacent channel detection sub-module, for when the relaying rank is below the second level or the second level, detecting adjacent
Via node residing for channel, be used as adjacent channel;
Second adjacent channel calculating sub module, for being calculated and the up channel and the phase according to the frequency range type
The non-interfering destination channel of side channel.
Alternatively, the first object channel calculation submodule includes:
First Channel Offset element, for when the channel type is 2.4G frequency ranges, the up channel being offset N number of
Channel, is used as destination channel;
Second channel offset units, for when the channel type is 5G frequency ranges, the up channel to be offset into M letter
Road, is used as destination channel.
Alternatively, the adjacent channel detection sub-module includes:
Via node searching unit, for searching the service set identical via node with mobile terminal;
Node channel detection unit, for detecting the channel residing for the via node, is used as adjacent channel.
Alternatively, the second adjacent channel calculating sub module includes:
3rd Channel Offset element, for when the channel type is 2.4G frequency ranges, the up channel being offset N number of
Channel, is used as candidate channel;
4th Channel Offset element, for when the channel type is 5G frequency ranges, the up channel to be offset into M letter
Road, is used as candidate channel;
Interference coefficient computing unit, for when the candidate channel is identical with the adjacent channel, using described adjacent
The signal message of the affiliated via node of channel calculates interference coefficient;
Destination channel chooses unit, for choosing destination channel from the candidate channel according to the interference coefficient.
Alternatively, the second adjacent channel calculating sub module also includes:
Candidate channel augment unit, for the candidate channel quantity be one when, will be apart from the candidate channel
Farthest, to number minimum channel or the largest number of channel is set to candidate channel.
Alternatively, the interference coefficient computing unit includes:
Nodal information detection sub-unit, for detecting that the quantity and/or signal of the affiliated via node of the adjacent channel are strong
Degree;
Nodal information computation subunit, for calculating interference coefficient using the quantity and/or the signal intensity, its
In, the quantity and/or the signal intensity and the interference coefficient positive correlation.
Alternatively, the relaying rank detection module includes:
Default level sets submodule, for will be set to the first order as the relaying rank residing for via node;
Link deployment information request submodule, for the router to upper level or via node request link deployment letter
Breath;
When asking successfully, the relaying rank of the via node of upper level is extracted from the link deployment information;
Upper level extracting sub-module, on the basis of Relay for the via node in upper level is other, calculates conduct
Relaying rank residing for via node, to be replaced to the first order;
Current level calculating sub module, for when asking failure, being determined as the relaying rank residing for via node to be
The first order.
Alternatively, the subordinate equipment link block includes:
Log-on message receiving submodule, for when the relaying rank is the first order, receiving the login letter of user's input
Breath;
Log-on message extracting sub-module, for when the relaying rank is more than the second level or the second level, from upper level
Via node link deployment information in extract log-on message, wherein, the log-on message include service set and password;
SoftAP nodes start submodule, for being opened according to the destination channel, the service set and the password
The softAP nodes of the Wi-Fi modules are moved, to broadcast the service set in the destination channel.
Alternatively, the trunking traffic parameter configuration module includes:
Bag forwarding capability opens submodule, for opening bag forwarding capability;
Address translation feature sets submodule, for when the relaying rank is the first order, setting address translation feature
NAT configuration information;
IP address distribution sub module, for when the relaying rank is below the second level or the second level, from upper level
Via node distributes IP address, and the transistroute table set up between via nodes at different levels;
And/or,
IP address inquires about submodule, for inquiring about the router of upper level or the IP address of via node;
Domain name system DNS sets submodule, for by the IP address of the router of upper level or via node, being set to domain
Name system DNS gateway address.
Alternatively, in addition to:
Upstream data bag receiving module, for by the softAP nodes receive next stage application terminal and/or in
The packet sent after node;
Uplink relay communication module, for the packet to be forwarded into station nodes from softAP nodes;
Upstream data bag sending module, for inciting somebody to action described by the station nodes according to the communication configuration parameter
Packet is sent to the router of upper level or via node.
Alternatively, the upstream data bag sending module includes:
Gateway address inquires about submodule, during for having uniform resource position mark URL in the packet, nslookup
System DNS gateway address;
Gateway address sending submodule, for by the station nodes according to the gateway address, by the data
Bag is sent to the router or via node of upper level;
Or,
First IP address conversion submodule, for when the relaying rank is the first order, by the source in the packet
Address, from the IP address that the IP address conversion of the application terminal is the mobile terminal;
First packet forwards submodule, for will be pretended by the station nodes from the mobile terminal
The packet of IP address is sent to the router of upper level;
Or,
Second packet forwards submodule, for when the relaying rank is below the second level or the second level, passing through institute
Station nodes are stated to send the packet to the via node of upper level.
Alternatively, in addition to:
Downlink data packet receiving module, router or relaying for receiving upper level by the station nodes are saved
The packet that point is sent;
Downlink relay communication module, is saved for the packet to be forwarded into the softAP from the station nodes
Point;
Downlink data packet sending module, for according to the communication configuration parameter by the softAP nodes by the number
Sent according to bag to the application terminal of next stage or via node.
Alternatively, the downlink data packet sending module includes:
Second IP address conversion submodule, for when the relaying rank is the first order, by the mesh in the packet
Address from the IP address that the IP address conversion of the mobile terminal is the application terminal;
Source address inquires about submodule, for when the relaying rank is below the second level or the second level, in the data
Source address is inquired about in bag, the IP address of the application terminal is known;
Destination path inquires about submodule, for being inquired about by the transistroute table between via nodes at different levels from the movement
The IP address of terminal routes to the destination path of the IP address of the application terminal;
Subordinate's address lookup submodule, application terminal or via node for inquiring about next stage in the destination path
IP address;
3rd packet forwards submodule, for the application terminal by the softAP nodes according to next stage or relaying
The IP address of node sends the data to the application terminal of next stage or via node.
The embodiment of the present invention includes advantages below:
The embodiment of the present invention has Wi-Fi modules in mobile terminal configuration, passes through on the station nodes of Wi-Fi modules one
Level router or via node, start Wi-Fi modules softAP nodes, with connect next stage application terminal and/or in
After node, according to the relaying rank selection target channel being presently in and trunking traffic parameter is configured, to support to save in station
Mobile terminal is embodied as via node by point with being communicated between softAP nodes, rear in via node to hang via node,
Multistage junction network is formed, the structural level of network has been widened, has added the quantity of via node, so as to improve connection
Quantity, situation about increasing in equipment such as intelligent appliance, handheld terminals, it is ensured that newly-increased equipment can connect relaying, normally use
Wireless signal.Also, destination channel adaptively relays rank and is adjusted, and is not interfere with each other between channel, improves relay function
Forwarding data capability, improve relaying performance.
Brief description of the drawings
Fig. 1 is a kind of step flow chart of the collocation method of trunking traffic of one embodiment of the invention;
Fig. 2 is a kind of channel profile of 2.4G channels;
Fig. 3 is a kind of channel profile of 5G channels;
Fig. 4 is a kind of topological diagram of junction network of one embodiment of the invention;
Fig. 5 is the step flow chart of the collocation method of another trunking traffic of one embodiment of the invention;
Fig. 6 is a kind of structured flowchart of the configuration device embodiment of trunking traffic of one embodiment of the invention;
Fig. 7 is the structured flowchart of the configuration device embodiment of another trunking traffic of one embodiment of the invention.
Embodiment
In order to facilitate the understanding of the purposes, features and advantages of the present invention, it is below in conjunction with the accompanying drawings and specific real
Applying mode, the present invention is further detailed explanation.
Reference picture 1, show one embodiment of the invention a kind of trunking traffic collocation method embodiment the step of flow
Cheng Tu, specifically may include steps of:
Step 101, the router or via node of upper level are connected by the station nodes of the Wi-Fi modules.
In the specific implementation, the embodiment of the present invention can apply to mobile terminal, for example, mobile phone, tablet personal computer, intelligence can
Wearable device (such as intelligent watch), etc..
These mobile terminals can install the operating systems such as WindowsPhone, Android (Android), IOS, Windows,
Wi-Fi (WIreless-Fidelity, Wireless Fidelity) module is configured with, radio node can be connected, as via node, is turned
Send out wireless signal.
Wi-Fi modules also known as serial ports Wi-Fi module, belong to Internet of Things transport layer, can be by serial ports or TTL
(transistor transistor logic, transistor-transistor logic level) signal switchs to meet Wi-Fi wireless networks
The flush bonding module of communication standard, built-in wireless network protocol IEEE802.11b.g.n protocol stacks and TCP/IP
(Transmission Control Protocol/Internet Protocol, transmission control protocol/internet protocol) is assisted
Discuss stack.
In the specific implementation, Wi-Fi modules generally have three kinds of functions:station、softAP、P2P.
Wherein, station (work station):The equipment being connected in wireless network is represented, these equipment pass through AP
(WirelessAccessPoint, wireless access node), can communicate with internal miscellaneous equipment or wireless network-external.
softAP:Represent to realize AP function using application, allow mobile terminal to allow other website as a route
Link.
P2P(Peer-to-Peer):Also known as Wi-Fi Direct, can be supported in the case of no AP, two Wi-Fi
Equipment is direct-connected and communicates.
In embodiments of the present invention, the equipment that mobile terminal can connect upper level as via node, the equipment can be with
For router, or via node, you can after via node, to mount via node, form tree-shaped junction network.
If mobile terminal is the via node of the first order, upper one can be connected by the station nodes of Wi-Fi modules
The router of level.
, can be by the station of Wi-Fi modules if mobile terminal is the via node below the second level or the second level
Node connects the via node of upper level.
In one embodiment, getWifiState () method in WifiManager can be called, detection is mobile eventually
Whether Wi-Fi station node was opened in end.
When detecting station nodes and having turned on, then it can be provided by calling ConnectivityManager
API (Application Programming Interface, application programming interface) interface getNetworkInfo (),
Incoming using ConnectivityManager.TYPE_WIFI as parameter, whether detection station nodes connect radio node.
If the NetworkInfo objects returned are not null, and isConnected () is true, and confirmation has been connected
Radio node.
When detecting station nodes and not opening or be not connected with radio node, the prompting letter of generation connection radio node
Breath, such as " please open Wi-Fi and connection route device or relaying ".
Step 102, detection is used as the relaying rank residing for via node.
In the specific implementation, mobile terminal as via node access network after, the relaying being presently in can be recognized
Rank.
The via node of the first order is properly termed as root node, the two-stage via node of interconnection, the relaying section of upper level
Point is the father node of the via node of next stage, and comparatively, the via node of next stage is the son of the via node of upper level
Node.
In one embodiment, every grade of via node can safeguard a link deployment information, in link deployment letter
In breath, routed path, relaying rank, log-on message (such as service set SSID and password) information can be recorded.
In this embodiment, the first order will can be set to as the relaying rank residing for via node.
According to default specification, link deployment information is asked to the router or via node of upper level.
If the equipment of upper level is router, the router does not set the specification, then ignores the request of mobile terminal.
If the equipment of upper level is via node, the via node has set the specification, then to the request of mobile terminal
Responded, return to link deployment information.
When asking successfully, therefrom after the relaying rank for the via node that upper level is extracted in configuration information.
On the basis of the Relay of the via node of upper level is other, calculate as the relaying rank residing for via node,
To be replaced to the first order.
Furthermore, mobile terminal can Jia one on the basis of the Relay of the via node of upper level is other, then may be used
Currently the relaying rank residing for via node is used as to obtain mobile terminal.
For example, if the relaying rank of the via node of upper level is the second level, mobile terminal is used as via node
Relaying rank is the third level, and then the first order of acquiescence is revised as into the third level.
When asking failure, it is the first order to be determined as the relaying rank residing for via node.Certainly, above-mentioned relaying rank
Detection method be intended only as example, implement the embodiment of the present invention when, can be set according to actual conditions other relay rank
Detection method, for example, to upper level router or via node request relaying grade, if request failure, be set to
The first order, if asked successfully, on the basis of the Relay of the via node of upper level is other, calculates current Relay
Not, etc., the embodiment of the present invention is not any limitation as to this.In addition, in addition to the other detection method of above-mentioned Relay, this area skill
Art personnel can also use the other detection method of other Relays according to actual needs, and the embodiment of the present invention is not also limited this
System.
Step 103, according to the relaying rank selection target channel.
Theoretical according to electromagnetic interference, the electromagnetic wave of non-self equipment is interference source, and interference source sends electromagnetic energy, electromagnetism
Sensitive equipment can be transferred to through certain route of transmission, sensitive equipment produces some form of response to interference again, and produces interference
Effect.
In embodiments of the present invention, the Wi-Fi antennas in mobile terminal be spaced closely together, mobile terminal with it is mobile between phase
Away from also close, maximum interference come from itself antenna or surrounding antenna electromagnetic radiation coupling, may result in turn
The problem of sending out relatively low data capability, relaying poor-performing.
When signal source and interfering frequency are separated by nearer, coupling value is bigger, disturbs then bigger, therefore, for reduction electromagnetic interference,
Rank selection target channel can be relayed, to select non-interfering frequency range, relay function is solved and draws because channel is set
The problem of relatively low data capability, relaying poor-performing are forwarded caused by the channel disturbance risen.
In one embodiment of the invention, step 103 can include following sub-step:
Sub-step S11, inquires about the channel residing for the router or via node of upper level, is used as up channel.
In android system, WifiService is responsible for the kernel service of WiFi function, and therein
WifiStateMachine subsystems are then responsible for safeguarding WiFi all kinds of status informations.
The status information includes the router or via node channel information of upper level, therefore, it can by calling system
MWifiStateMachine.fetchFrequencyNative () function obtain the router or via node of upper level
The first channel.
Sub-step S12, determines the frequency range type of the up channel.
In actual applications, the working frequency range of the first channel of router or via node is different, mainly includes
2.4G frequency ranges (2.412GHz-2.484GHz) and 5G frequency ranges (5.735GHz-5.835GHz)
Wherein, most of routers or via node generally use the wireless technology operated on 2.4Ghz, use
(forth generation) 802.11n standards, and the 5th generation Wi-Fi technology operated on 5Ghz high bands, using 802.11ac Protocol Standards
It is accurate.
Sub-step S13, when the relaying rank is the first order, is calculated and the up channel according to the frequency range type
Non-interfering destination channel.
If mobile terminal is the first order as the relaying rank residing for via node, mobile terminal connection route device can
Destination channel is set with the frequency range type of the up channel of direct basis router.
When channel type is 2.4G frequency ranges, up channel is offset into N number of channel, as destination channel, wherein, N is just
Integer, and N >=5.
As shown in Fig. 2 the collection of illustrative plates of the 1-14 channels in 2.4G frequency ranges is gradient matrix, from frequency range angle, 3 independences are divided into
Frequency range, the scope substantially 22MHz of each separate frequency bands is each independent because adjacent frequency range, which has, intersects equal frequency values
There is interference in the channel in frequency range, specific frequency range is as follows:
One area:1-5 channels
2nd area:6-10 channels
3rd area:11-14 channels
For example, channel 1 and the shared frequency of channel 2 are 2406-2423, now, if the router or relaying of upper level
The channel of the up channel of node is set to 1, when the destination channel of via node is set to 2, then there is the identical interval of frequency, deposit
In interference.
Interference is not present in the angle isolated from frequency range, the channel being divided into 5 isolation regions, isolation region, specific interval
It is as follows:
One class:1、6、11
Two classes:2、7、12
Three classes:3、8、13
Four classes:4、9
Five classes:5、10
Therefore, when channel type is 2.4G frequency ranges, up channel can be offset at least five channel, believed as target
Road.
Assuming that X is the router of upper level or the up channel of via node, Y is the mesh of via node (i.e. mobile terminal)
Channel is marked, both meet relationship below:
Y >=X+5, or, Y≤X-5
Wherein, X, Y are positive integer, work as Y<1 or Y>When 13, Y is invalid, it is necessary to abandon.
When channel type is 5G frequency ranges, up channel is offset into M channel, as destination channel, wherein, M is just whole
Number, such as 1,2.
As shown in figure 3, intersect because 5G frequency ranges are not present, therefore, the router of upper level or the up letter of via node
The destination channel of road and current hop node is not same channel, you can to avoid interference substantially.
Sub-step S14, when the relaying rank is below the second level or the second level, is detected residing for adjacent via node
Channel, be used as adjacent channel.
In one embodiment of the invention, if via node sets identical service set and password, in order to
Roamed, then can search the service set identical via node with mobile terminal, detected residing for the via node
Channel, be used as adjacent channel.
Sub-step S15, calculates non-interfering with the up channel and the adjacent channel according to the frequency range type
Destination channel.
If mobile terminal is that below the second level or the second level, mobile terminal connects as the relaying rank residing for via node
Via node is connect, destination channel can be set according to the frequency range type of the up channel of neighbouring via node.
When channel type is 2.4G frequency ranges, up channel is offset into N number of channel, as candidate channel, wherein, N is just
Integer, and N >=5.
When channel type is 5G frequency ranges, up channel is offset into M channel, as candidate channel, wherein, M is just whole
Number, such as 1,2.
When candidate channel is identical with adjacent channel, then can represent via node belonging to current adjacent channel with it is current
Via node belong to same junction network, it is understood that there may be interference, it is therefore possible to use adjacent channel affiliated via node
Signal message calculates interference coefficient.
When candidate channel is different from adjacent channel, then it can ignore the adjacent channel.
In one example, the quantity and/or signal intensity of the affiliated via node of adjacent channel can be detected, by configuring
The modes such as weight summation, interference coefficient is calculated using quantity and/or the signal intensity.
Wherein, quantity and/or signal intensity and interference coefficient positive correlation, i.e. quantity is more, signal intensity is stronger, interference system
Number it is bigger, conversely, quantity less, signal intensity it is lower, interference coefficient is smaller.
Hereafter, destination channel is chosen from candidate channel according to interference coefficient, generally, selection interference coefficient is minimum
Candidate channel in choose destination channel.
It should be noted that when the quantity of candidate channel is one, by it is farthest apart from candidate channel, numbering is minimum
Channel or the largest number of channel are set to candidate channel.
Therefore, interference is not present in the angle isolated from frequency range, the channel being divided into 5 isolation regions, isolation region, specifically
It is interval as follows:
One class:1、6、11
Two classes:2、7、12
Three classes:3、8、13
Four classes:4、9、13
Five classes:1、5、10
For the 4th class and the 5th class, it is assumed that up channel is 9,5, up channel offsets 5 channels, respectively obtains 4,14
(discarding), 0 (discarding), 10 channels can then add 13,1 channel and be used as candidate channel.
Assuming that Y is the router of upper level or the up channel of via node, Z is the mesh of via node (i.e. mobile terminal)
Channel is marked, both meet relationship below:
Z >=Y+5, or, Z≤Y-5
Wherein, Y, Z are positive integer, work as Z<1 or Z>When 13, Z is invalid, it is necessary to abandon.
Step 104, the softAP nodes of the Wi-Fi modules are started according to the relaying rank, to believe in the target
The application terminal of road connection next stage and/or via node.
If the station nodes of the Wi-Fi modules of mobile terminal are already connected to the router or via node of upper level,
SoftAP nodes then can be started, under being connected by softAP nodes according to relaying rank to Wi-Fi module transmission relay instruction
The application terminal of one-level and/or via node.
Wherein, application terminal can refer to the terminal for realizing itself function, for example, intelligent electric cooker, intelligent air condition, Intelligent hot
Hydrophone, etc..
It should be noted that mobile terminal is in addition to can be as via node, it can also be realized as application terminal
Browse webpage, game, play the functions such as Internet video.
In one embodiment of the invention, it may be determined that the channel of softAP nodes, the channel typically with router, its
Interference is not present by via node in he, therefore, it can issue relay instruction on this channel.
In the specific implementation, the corresponding frequency of different channels is:
When it is the first order to relay rank, the log-on message of user's input is received, the log-on message includes service set
And password.
In this case, it is possible to (i.e. mobile whole in UI (User Interface, user interface) prompting user's input relayings
End) SSID and password.
If user have input SSID and password in UI, using the SSID and password, otherwise, the SSID of acquiescence and close is used
Code.
When it is more than the second level or the second level to relay rank, carried from the link deployment information of the via node of upper level
Take log-on message, keep the identical of log-on message between father node and child node, invalid network dtr signal (such as less than-
In the case of 90DB), roaming can be started, other adjacent via nodes are connected automatically using identical log-on message.
If obtaining log-on message, Wi-Fi modules can be started according to destination channel, service set and password
SoftAP nodes, with destination channel broadcast service set identifier.
In the specific implementation, freq (channel), SSID and password are written in hostapd.conf configuration files, enable
The relay instruction of softAP node serves is:
hostapd-d hostapd.conf
Freq, SSID and password can be come into force.
After relay instruction is sent, the broadcast frame that via node (i.e. mobile terminal) is sent will carry SSID, other terminals
It can be just attached after scanning with SSID and password.
In the specific implementation, via node (i.e. mobile terminal) can be considered as an AP, it periodically broadcasts Beacon
Frame, other station device scans can be obtained by the SSID of via node (i.e. mobile terminal) to the Beacon frames.
Sent when receiving one or more electronic equipments (application terminal of next stage and/or via node) for SSID
Application request when, return to response message challenge text to one or more electronic equipments.
When receiving the connection request that one or more electronic equipments are sent, in checking connection request password with it is default
Whether password is identical, if so, then accessing one or more electronic equipments.
Step 105, according to the relaying rank configuration trunking traffic parameter, to support in the station nodes and institute
State and communicated between softAP nodes.
In embodiments of the present invention, the other via node of different Relays, with different trunking traffic parameters so that
It can be communicated between station nodes and softAP nodes, because station nodes connect the radio node of upper level,
The application terminal of softAP nodes connection next stage and/or via node so that the router or via node of upper level are with
The application terminal of one-level and/or via node can be communicated, and realize relay function.
In one embodiment of the invention, step 105 can include following sub-step:
Sub-step S21, opens bag forwarding capability.
In the specific implementation, can by echo property values open bag forwarding capability, with support station nodes with
Packet is forwarded between softAP nodes:
echo 1>/proc/sys/net/ipv4/ip_forward
Bag forwarding, is to allow packet to be forwarded to another terminal from a terminal.
In embodiments of the present invention, open bag forwarding capability, support packet station nodes and softAP nodes it
Between mutually forwarding packet.
Sub-step S22, when when the relaying rank is the first order, sets address translation feature NAT configuration information.
In actual applications, it can call and iptables transmission address translation features NAT is serviced by system address table
The configuration information of (Network Address Translation) to Wi-Fi modules, NAT will automatic modification IP messages source IP
Address and purpose IP address, are pretended with the IP address to application terminal.
Certainly, before routing table and NAT is sent, first routing table can also be removed.
The configuration information of Iptables, NAT configuration is as follows:
#remove old rules (the first routing table of cleaning)
iptables-F
iptables-t filter-F
iptables-t nat-F
#Bring up NAT rules
iptables-t nat-A POSTROUTING-s 192.168.49.0/24-d 0.0.0.0/0-j
MASQUERADE
Where it is assumed that the IP sections of relaying (i.e. mobile terminal) are 192.168.49.0, Bring up NAT rules are sent
The 192.168.49.0/24 network segments can be carried out again into package, unpacking for the packet of source address to handle, disguise as 0.0.0.0/
0 source address.
Sub-step S23, when the relaying rank is below the second level or the second level, is distributed from the via node of upper level
IP address, and the routed path set up between via nodes at different levels.
In the specific implementation, for the via node below the second level or the second level, IP address dynamically can be distributed to it.
In one embodiment, address space altogether can be divided into multistage or multiple subdomains, each relaying
Node can will distribute to the address of oneself again to be continued therefrom to distribute to child node, and application terminal does not have child node, so not
Need to distribute address.
In having as the mobile terminal of via node below the set of address pool, i.e. address, the second level or the second level
After address of node tankage by being determined from its father node, father node calculates address tankage by equation below:
Cskip(d)=1+Cm×(Lm-d-1) Rm=1
Cskip(d)=(1+Cm-Rm-Cm×Rm Lm-d-1)/(1-Rm) Rm≠1
Wherein, Cskip(d) offset that relaying rank determines for d father node when distributing address, correspondence son section are represented
The address tankage of point, CmRepresent the maximum child node number that via node can be received, LmRepresent the depth capacity (relaying of network
Rank), RmThe maximum son node number that via node can be received is represented, d represents node depth (relaying rank).
Depth d father node depth increases by 1 when networking, the depth of telegon is defined as 0, Cm、Lm、RmThese three parameters can
To have user's offer, the substantially scale of description network and form.
Calculate offset Cskip(d) after, father node determines its network address according to the type of networking child node.
If child node is via node, address can be calculated using equation below:
An=Ap+Cskip(d)×(n-1)+1 1≤n≤Rm
Wherein, ApFor the network address of father node, n is which sub- via node, A for the node that application networksnFor n-th
It is individual enter net via node obtain the network address.
In embodiments of the present invention, a transistroute table can be safeguarded in each via node, in the transistroute
In table, its allocated address can be recorded when each via node is networking, and, the via node is saved with other relayings
Father and son's node relationships between point, each via node deletes its allocated address in logout, so, relayings at different levels
Between father and son's node relationships, address can constitute the routed path of relayings at different levels.
Sub-step S24, inquires about the router of upper level or the IP address of via node.
Sub-step S25, by the IP address of the router of upper level or via node, is set to the gateway of domain name system DNS
Address
In embodiments of the present invention, on the one hand, can be sent with the address table service iptable in calling system and be based on TCP
The DNS of (Transmission Control Protocol, transmission control protocol) gateway address is to Wi-Fi modules;
Command format is:
Iptables-t nat-I PREROUTING-i (trunking name)-p tcp--dport 53-j DNAT--to-
Destination (gateway)
On the other hand iptable can be serviced with the address table in calling system, sends and be based on UDP (Open System
Interconnection, open system interconnection) DNS gateway address to Wi-Fi modules.
Command format is:
Iptables-t nat-I PREROUTING-i (trunking name)-p udp--dport 53-j DNAT--to-
Destination (gateway)
When relaying the via node that rank is the first order, the gateway address of domain name system DNS is set to router
Gateway address.
When relaying the via node that rank is below the second level or the second level, it is by the gateway address of domain name system DNS
It is set to the IP address of the via node of upper level.
As above, TCP and UDP DNS gateway address is added to trunking (i.e. mobile terminal), after configuration DNS, input
Uniform resource position mark URL can be transmitted step by step, finally parsed by dns server, realize network service.
The embodiment of the present invention has Wi-Fi modules in mobile terminal configuration, passes through on the station nodes of Wi-Fi modules one
Level router or via node, start Wi-Fi modules softAP nodes, with connect next stage application terminal and/or in
After node, trunking traffic parameter is configured according to the relaying rank being presently in, to support in station nodes and softAP nodes
Between communicated, mobile terminal is embodied as via node, in via node after hang via node, form multistage relaying
Network, has widened the structural level of network, adds the quantity of via node, so that the quantity of connection is improved, in intelligent family
The situation that the equipment such as electricity, handheld terminal increase, it is ensured that newly-increased equipment can connect relaying, normally using wireless signal.
The embodiment of the present invention has Wi-Fi modules in mobile terminal configuration, passes through on the station nodes of Wi-Fi modules one
Level router or via node, start Wi-Fi modules softAP nodes, with connect next stage application terminal and/or in
After node, according to the relaying rank selection target channel being presently in and trunking traffic parameter is configured, to support to save in station
Mobile terminal is embodied as via node by point with being communicated between softAP nodes, rear in via node to hang via node,
Multistage junction network is formed, the structural level of network has been widened, has added the quantity of via node, so as to improve connection
Quantity, situation about increasing in equipment such as intelligent appliance, handheld terminals, it is ensured that newly-increased equipment can connect relaying, normally use
Wireless signal.Also, destination channel adaptively relays rank and is adjusted, and is not interfere with each other between channel, improves relay function
Forwarding data capability, improve relaying performance.
To make those skilled in the art more fully understand the embodiment of the present invention, illustrate this hair below by way of specific example
Junction network in bright embodiment.
It is (including master bedroom, secondary with a parlor, kitchen, two bedrooms it is assumed that in a house
It is sleeping) and a study, wherein, master bedroom and study are close, and secondary room is close with kitchen.
In this example, router 42 is placed in parlor, the access base station 41 of router 42, and as radio node,
Broadcast Wi-Fi signal.
Because parlor area is larger, walls block, Wi-Fi signal is weaker in master bedroom, secondary room, study and kitchen, therefore, can
With the holding movable terminal 432 in parlor, mobile terminal 431 is placed around in master bedroom, in study annex holding movable terminal
4313, mobile terminal 4321 is placed around in secondary room and kitchen, mobile terminal 43213 is placed around in kitchen, near secondary room
Holding movable terminal 43211.
In parlor:
Mobile terminal 431 starts softAP nodes by station nodes access route 42, as in the first order
After node, to relay Wi-Fi signal to master bedroom.
Mobile terminal 432 is used as the first order respectively by station nodes access route 42, and start softAP nodes
Via node, with to the other parts in parlor (such as balcony) relay Wi-Fi signal.
Portable computer 433 is operated for user in parlor, entertain etc. and handle as application terminal access route 42.
Mobile terminal 4321 accesses mobile terminal 432 by station nodes, and starts softAP nodes, is used as second
The via node of level, to relay Wi-Fi signal to secondary room, kitchen.
Intelligent coffee machine 4322, intelligent drinking machine 4323 access mobile terminal 432 as application terminal.
In master bedroom:
Tablet personal computer 4311, PDA 4312, mobile terminal 4314 as application terminal access mobile terminal 431, for
Family such as is operated, entertained in master bedroom at the processing.
Mobile terminal 4313 accesses mobile terminal 431 by station nodes, and starts softAP nodes, is used as second
The via node of level, to relay Wi-Fi signal to study.
In study:
PC 43131, mobile terminal 43132 access mobile terminal 4313 as application terminal, so that user is carried out in study
The processing such as work, amusement.
In secondary room:
Mobile terminal 43211 accesses mobile terminal 4321 by station nodes, and starts softAP nodes, is used as the
The via node of three-level, to relay Wi-Fi signal to secondary room.
Electronic game machine 432111, television set 432112, mobile terminal 432113 access mobile terminal as application terminal
43111, the processing such as it is operated, entertains for user in study.
In kitchen:
Mobile terminal 4322 accesses mobile terminal 4321 by station nodes, and starts softAP nodes, is used as the 3rd
The via node of level, to relay Wi-Fi signal to kitchen.
Intelligent refrigerator 432121, intelligent microwave oven 432122, intelligent kitchen stove 432123 access mobile whole as application terminal
End 43112.
Reference picture 5, the step of showing the collocation method embodiment of another trunking traffic of one embodiment of the invention
Flow chart, using in the terminal, the mobile terminal configuration has Wi-Fi modules, and this method specifically may include steps of:
Step 501, the data that the application terminal of next stage and/or via node are sent are received by the softAP nodes
Bag.
When application terminal is communicated with the target device (such as web page server) of external networks, application terminal is generated
Packet, transmitted step by step by via node, until sending to target device.
Step 502, the packet is forwarded to station nodes from softAP nodes.
In the specific implementation, due to opening bag forwarding capability, therefore, it can packet being forwarded to from softAP nodes
Station nodes, realize the forwarding of via node internal data bag.
Step 503, the packet is sent supreme one by the station nodes according to the communication configuration parameter
The router or via node of level.
In actual applications, packet can be handled, with reality according to different Relays other communication configuration parameter
Existing trunking traffic.
In one embodiment of the invention, step 503 can include following sub-step:
Sub-step S31, when having uniform resource position mark URL in the packet, nslookup system DNS gateway
Address.
Sub-step S32, by the station nodes according to the gateway address, supreme one is sent by the packet
The router or via node of level.
In embodiments of the present invention, when application terminal accesses webpage, URL parsing is carried out.
The DNS of mobile terminal gateway address is the IP address of the via node of upper level, then can will parse URL number
The via node of upper level is forwarded to according to bag.
, then can be with and the DNS of the via node of current level gateway address is the IP address of the via node of upper level
The packet for parsing URL is forwarded to the via node of upper level.
Until reaching the via node of the first order, its D NS gateway address is the IP address of router, then will can solve
Analysis URL packet is forwarded to router, and router sends to outer net the server for providing domain name mapping, URL is mapped as into IP
Address.
In another embodiment of the present invention, step 503 can include following sub-step:
Sub-step S33, when the relaying rank is the first order, by the source address in the packet, from the application
The IP address conversion of terminal is the IP address of the mobile terminal.
Sub-step S34, is sent out the packet for pretending the IP address from the mobile terminal by the station nodes
Deliver to the router of upper level.
, can be by the source address (i.e. the IP address of mobile terminal) in packet, such as the via node of the first order
192.168.49.0, then the configuration information based on NAT, disguise oneself as the IP address of mobile terminal in itself, such as 0.0.0.0, then forwards
To router.
In another embodiment of the present invention, step 503 can include following sub-step:
Sub-step S35, when the relaying rank is below the second level or the second level,
The packet is sent to the via node of upper level by the station nodes.
In embodiments of the present invention, then can be directly by packet for the via node below the second level or the second level
It is forwarded to the via node of upper level.
Step 504, the packet that the router or via node for receiving upper level by the station nodes are sent.
When the target device of external network is communicated with application terminal, target device generation packet, hop-by-hop to
Via node (i.e. mobile terminal) is transmitted, until sending to application terminal.
Step 505, the packet is forwarded to the softAP nodes from the station nodes.
In the specific implementation, due to opening bag forwarding capability, therefore, it can forward packet from section station points
To softAP nodes, the forwarding of via node internal data bag is realized.
Step 506, the packet is sent to next by the softAP nodes according to the communication configuration parameter
The application terminal of level or via node.
In actual applications, packet can be handled, with reality according to different Relays other communication configuration parameter
Existing trunking traffic.
In one embodiment of the invention, step 506 can include following sub-step:
Sub-step S41, when the relaying rank is the first order, by the destination address in the packet from the movement
The IP address conversion of terminal is the IP address of the application terminal.
Sub-step S42, when the relaying rank is below the second level or the second level, the query source in the packet
Location, knows the IP address of the application terminal.
Sub-step S43, the IP address from the mobile terminal is inquired about by the transistroute table between via nodes at different levels
Route to the destination path of the IP address of the application terminal.
Sub-step S44, inquires about the application terminal of next stage or the IP address of via node in the destination path.
Sub-step S45, will according to the application terminal of next stage or the IP address of via node by the softAP nodes
The data are sent to the application terminal of next stage or via node.
For the via node of the first order, the second IP address of the station nodes in packet source is can confirm that, on road
Corresponding first IP address of the second IP address is searched in table, then can be forwarded the packet to belonging to the first IP address
SoftAP nodes.
, can be by destination address (the i.e. IP of mobile terminal in itself in packet for the via node of the first order
Location), such as 0.0.0.0, then the configuration information based on NAT, is converted to the IP address of application terminal, such as 192.168.49.0.For
Via node per one-level, due to multiple via nodes can be connected, i.e., with a plurality of path for routing to application terminal, because
This, when issuing packet, the destination address that can be inquired about in packet determines the application terminal that packet is sent.
Transistroute table is inquired about, the destination path of the application terminal can be routed to by knowing, next stage is inquired about from the path
Mobile terminal or via node IP address, forward the packet to the IP address.
If next stage is application terminal, the application terminal is sent data packets to by softAP nodes, using end
End is handled accordingly, for example, loading webpage, broadcasting video etc..
If next stage is via node, the via node is sent data packets to by softAP nodes, the relaying
Node can proceed to carry out trunking traffic downwards.
It should be noted that for embodiment of the method, in order to be briefly described, therefore it to be all expressed as to a series of action group
Close, but those skilled in the art should know, the embodiment of the present invention is not limited by described sequence of movement, because according to
According to the embodiment of the present invention, some steps can be carried out sequentially or simultaneously using other.Secondly, those skilled in the art also should
Know, embodiment described in this description belongs to preferred embodiment, the involved action not necessarily present invention is implemented
Necessary to example.
Reference picture 6, shows a kind of structural frames of the configuration device embodiment of trunking traffic of one embodiment of the invention
Figure, using in the terminal, the mobile terminal configuration has Wi-Fi modules, and described device can specifically include following module:
Higher level equipment link block 601, the road of upper level is connected for the station nodes by the Wi-Fi modules
By device or via node;
Rank detection module 602 is relayed, for detecting as the relaying rank residing for via node;
Destination channel selecting module 603, for according to the relaying rank selection target channel;
Subordinate equipment link block 604, the softAP for starting the Wi-Fi modules according to the relaying rank is saved
Point, to connect application terminal and/or the via node of next stage in the destination channel;
Trunking traffic parameter configuration module 605, for according to the relaying rank configuration trunking traffic parameter, to support
Communicated between the station nodes and the softAP nodes.
In one embodiment of the invention, the destination channel selecting module 603 includes:
Up channel sets submodule, for inquiring about the channel residing for the router or via node of upper level, as upper
Row channel;
Frequency range type determination module, the frequency range type for determining the up channel;
First object channel calculation submodule, for when the relaying rank is the first order, according to the frequency range type
Calculate and the non-interfering destination channel of the up channel;
Adjacent channel detection sub-module, for when the relaying rank is below the second level or the second level, detecting adjacent
Via node residing for channel, be used as adjacent channel;
Second adjacent channel calculating sub module, for being calculated and the up channel and the phase according to the frequency range type
The non-interfering destination channel of side channel.
In one embodiment of the invention, the first object channel calculation submodule includes:
First Channel Offset element, for when the channel type is 2.4G frequency ranges, the up channel being offset N number of
Channel, is used as destination channel;
Second channel offset units, for when the channel type is 5G frequency ranges, the up channel to be offset into M letter
Road, is used as destination channel.
In one embodiment of the invention, the adjacent channel detection sub-module includes:
Via node searching unit, for searching the service set identical via node with mobile terminal;
Node channel detection unit, for detecting the channel residing for the via node, is used as adjacent channel.
In one embodiment of the invention, the second adjacent channel calculating sub module includes:
3rd Channel Offset element, for when the channel type is 2.4G frequency ranges, the up channel being offset N number of
Channel, is used as candidate channel;
4th Channel Offset element, for when the channel type is 5G frequency ranges, the up channel to be offset into M letter
Road, is used as candidate channel;
Interference coefficient computing unit, for when the candidate channel is identical with the adjacent channel, using described adjacent
The signal message of the affiliated via node of channel calculates interference coefficient;
Destination channel chooses unit, for choosing destination channel from the candidate channel according to the interference coefficient.
In one embodiment of the invention, the second adjacent channel calculating sub module also includes:
Candidate channel augment unit, for the candidate channel quantity be one when, will be apart from the candidate channel
Farthest, to number minimum channel or the largest number of channel is set to candidate channel.
In one embodiment of the invention, the interference coefficient computing unit includes:
Nodal information detection sub-unit, for detecting that the quantity and/or signal of the affiliated via node of the adjacent channel are strong
Degree;
Nodal information computation subunit, for calculating interference coefficient using the quantity and/or the signal intensity, its
In, the quantity and/or the signal intensity and the interference coefficient positive correlation.
In one embodiment of the invention, the relaying rank detection module 602 includes:
Default level sets submodule, for will be set to the first order as the relaying rank residing for via node;
Link deployment information request submodule, for the router to upper level or via node request link deployment letter
Breath;
When asking successfully, the relaying rank of the via node of upper level is extracted from the link deployment information;
Upper level extracting sub-module, on the basis of Relay for the via node in upper level is other, calculates conduct
Relaying rank residing for via node, to be replaced to the first order;
Current level calculating sub module, for when asking failure, being determined as the relaying rank residing for via node to be
The first order.
In one embodiment of the invention, the subordinate equipment link block 604 includes:
Log-on message receiving submodule, for when the relaying rank is the first order, receiving the login letter of user's input
Breath;
Log-on message extracting sub-module, for when the relaying rank is more than the second level or the second level, from upper level
Via node link deployment information in extract log-on message, wherein, the log-on message include service set and password;
SoftAP nodes start submodule, for being opened according to the destination channel, the service set and the password
The softAP nodes of the Wi-Fi modules are moved, to broadcast the service set in the destination channel.
In one embodiment of the invention, the trunking traffic parameter configuration module 605 includes:
Bag forwarding capability opens submodule, for opening bag forwarding capability;
Address translation feature sets submodule, for when the relaying rank is the first order, setting address translation feature
NAT configuration information;
IP address distribution sub module, for when the relaying rank is below the second level or the second level, from upper level
Via node distributes IP address, and the transistroute table set up between via nodes at different levels;
And/or,
IP address inquires about submodule, for inquiring about the router of upper level or the IP address of via node;
Domain name system DNS sets submodule, for by the IP address of the router of upper level or via node, being set to domain
Name system DNS gateway address.
Reference picture 7, shows the structure of the configuration device embodiment of another trunking traffic of one embodiment of the invention
Block diagram, using in the terminal, the mobile terminal configuration has Wi-Fi modules, and described device can specifically include following mould
Block:
Upstream data bag receiving module 701, for by the softAP nodes receive next stage application terminal and/or
The packet that via node is sent;
Uplink relay communication module 702, for the packet to be forwarded into station nodes from softAP nodes;
Upstream data bag sending module 703, for according to the communication configuration parameter by the station nodes by institute
Packet is stated to send to the router of upper level or via node.
Downlink data packet receiving module 704, router or relaying for receiving upper level by the station nodes
The packet that node is sent;
Downlink relay communication module 705, for the packet to be forwarded into the softAP from the station nodes
Node;
Downlink data packet sending module 706, for according to the communication configuration parameter by the softAP nodes by institute
Packet is stated to send to the application terminal of next stage or via node.
In one embodiment of the invention, the upstream data bag sending module 703 includes:
Gateway address inquires about submodule, during for having uniform resource position mark URL in the packet, nslookup
System DNS gateway address;
Gateway address sending submodule, for by the station nodes according to the gateway address, by the data
Bag is sent to the router or via node of upper level;
Or,
First IP address conversion submodule, for when the relaying rank is the first order, by the source in the packet
Address, from the IP address that the IP address conversion of the application terminal is the mobile terminal;
First packet forwards submodule, for will be pretended by the station nodes from the mobile terminal
The packet of IP address is sent to the router of upper level;
Or,
Second packet forwards submodule, for when the relaying rank is below the second level or the second level, passing through institute
Station nodes are stated to send the packet to the via node of upper level.
In one embodiment of the invention, the downlink data packet sending module 706 includes:
Second IP address conversion submodule, for when the relaying rank is the first order, by the mesh in the packet
Address from the IP address that the IP address conversion of the mobile terminal is the application terminal;
Source address inquires about submodule, for when the relaying rank is below the second level or the second level, in the data
Source address is inquired about in bag, the IP address of the application terminal is known;
Destination path inquires about submodule, for being inquired about by the transistroute table between via nodes at different levels from the movement
The IP address of terminal routes to the destination path of the IP address of the application terminal;
Subordinate's address lookup submodule, application terminal or via node for inquiring about next stage in the destination path
IP address;
3rd packet forwards submodule, for the application terminal by the softAP nodes according to next stage or relaying
The IP address of node sends the data to the application terminal of next stage or via node.
For device embodiment, because it is substantially similar to embodiment of the method, so description is fairly simple, it is related
Part illustrates referring to the part of embodiment of the method.
Each embodiment in this specification is described by the way of progressive, what each embodiment was stressed be with
Between the difference of other embodiment, each embodiment identical similar part mutually referring to.
It should be understood by those skilled in the art that, the embodiment of the embodiment of the present invention can be provided as method, device or calculate
Machine program product.Therefore, the embodiment of the present invention can using complete hardware embodiment, complete software embodiment or combine software and
The form of the embodiment of hardware aspect.Moreover, the embodiment of the present invention can use it is one or more wherein include computer can
With in the computer-usable storage medium (including but is not limited to magnetic disk storage, CD-ROM, optical memory etc.) of program code
The form of the computer program product of implementation.
The embodiment of the present invention is with reference to method according to embodiments of the present invention, terminal device (system) and computer program
The flow chart and/or block diagram of product is described.It should be understood that can be by computer program instructions implementation process figure and/or block diagram
In each flow and/or square frame and the flow in flow chart and/or block diagram and/or the combination of square frame.These can be provided
Computer program instructions are set to all-purpose computer, special-purpose computer, Embedded Processor or other programmable data processing terminals
Standby processor is to produce a machine so that held by the processor of computer or other programmable data processing terminal equipments
Capable instruction is produced for realizing in one flow of flow chart or multiple flows and/or one square frame of block diagram or multiple square frames
The device for the function of specifying.
These computer program instructions, which may be alternatively stored in, can guide computer or other programmable data processing terminal equipments
In the computer-readable memory worked in a specific way so that the instruction being stored in the computer-readable memory produces bag
The manufacture of command device is included, the command device is realized in one flow of flow chart or multiple flows and/or one side of block diagram
The function of being specified in frame or multiple square frames.
These computer program instructions can be also loaded into computer or other programmable data processing terminal equipments so that
Series of operation steps is performed on computer or other programmable terminal equipments to produce computer implemented processing, so that
The instruction performed on computer or other programmable terminal equipments is provided for realizing in one flow of flow chart or multiple flows
And/or specified in one square frame of block diagram or multiple square frames function the step of.
Although having been described for the preferred embodiment of the embodiment of the present invention, those skilled in the art once know base
This creative concept, then can make other change and modification to these embodiments.So, appended claims are intended to be construed to
Including preferred embodiment and fall into having altered and changing for range of embodiment of the invention.
Finally, in addition it is also necessary to explanation, herein, such as first and second or the like relational terms be used merely to by
One entity or operation make a distinction with another entity or operation, and not necessarily require or imply these entities or operation
Between there is any this actual relation or order.Moreover, term " comprising ", "comprising" or its any other variant meaning
Covering including for nonexcludability, so that process, method, article or terminal device including a series of key elements are not only wrapped
Those key elements, but also other key elements including being not expressly set out are included, or also include being this process, method, article
Or the intrinsic key element of terminal device.In the absence of more restrictions, by wanting that sentence "including a ..." is limited
Element, it is not excluded that also there is other identical element in the process including the key element, method, article or terminal device.
Collocation method above to a kind of trunking traffic provided by the present invention and a kind of configuration device of trunking traffic, enter
Go and be discussed in detail, specific case used herein is set forth to the principle and embodiment of the present invention, and the above is implemented
The explanation of example is only intended to the method and its core concept for helping to understand the present invention;Simultaneously for the general technology people of this area
Member, according to the thought of the present invention, will change in specific embodiments and applications, in summary, this explanation
Book content should not be construed as limiting the invention.
Claims (10)
1. a kind of collocation method of trunking traffic, it is characterised in that in the terminal, the mobile terminal configuration has for application
Wi-Fi modules, methods described includes:
The router or via node of upper level are connected by the station nodes of the Wi-Fi modules;
Detection is used as the relaying rank residing for via node;
According to the relaying rank selection target channel;
Start the softAP nodes of the Wi-Fi modules according to the relaying rank, to connect next stage in the destination channel
Application terminal and/or via node;
According to the relaying rank configuration trunking traffic parameter, to support in the station nodes and the softAP nodes
Between communicated.
2. according to the method described in claim 1, it is characterised in that the step according to the relaying rank selection target channel
Suddenly include:
The channel residing for the router or via node of upper level is inquired about, up channel is used as;
Determine the frequency range type of the up channel;
When the relaying rank is the first order, calculated and the non-interfering target of the up channel according to the frequency range type
Channel;
When the relaying rank is below the second level or the second level, the channel residing for adjacent via node is detected, phase is used as
Side channel;
Calculated and the up channel and the non-interfering destination channel of the adjacent channel according to the frequency range type.
3. method according to claim 2, it is characterised in that described to be calculated and the up letter according to the frequency range type
The step of non-interfering destination channel in road, includes:
When the channel type is 2.4G frequency ranges, the up channel is offset into N number of channel, destination channel is used as;
When the channel type is 5G frequency ranges, the up channel is offset into M channel, destination channel is used as.
4. method according to claim 2, it is characterised in that the channel residing for the adjacent via node of the detection, makees
The step of for adjacent channel, includes:
Search the service set identical via node with mobile terminal;
The channel residing for the via node is detected, adjacent channel is used as.
5. method according to claim 2, it is characterised in that described to be calculated and the up letter according to the frequency range type
The step of road and the adjacent channel non-interfering destination channel, includes:
When the channel type is 2.4G frequency ranges, the up channel is offset into N number of channel, candidate channel is used as;
When the channel type is 5G frequency ranges, the up channel is offset into M channel, candidate channel is used as;
When the candidate channel is identical with the adjacent channel, using the signal message of the affiliated via node of the adjacent channel
Calculate interference coefficient;
According to the interference coefficient destination channel is chosen from the candidate channel.
6. method according to claim 5, it is characterised in that described to be calculated and the up letter according to the frequency range type
The step of road and the adjacent channel non-interfering destination channel, also includes:
When the quantity of the candidate channel is one, by farthest apart from the candidate channel, to number minimum channel or volume
Number maximum channel is set to candidate channel.
7. method according to claim 5, it is characterised in that the letter using the affiliated via node of the adjacent channel
The step of number information calculates interference coefficient includes:
Detect the quantity and/or signal intensity of the affiliated via node of the adjacent channel;
Interference coefficient is calculated using the quantity and/or the signal intensity, wherein, the quantity and/or the signal intensity
With the interference coefficient positive correlation.
8. the method according to claim any one of 1-7, it is characterised in that the detection is as in residing for via node
Include the step of rank:
The first order will be set to as the relaying rank residing for via node;
Link deployment information is asked to the router or via node of upper level;
When asking successfully, the relaying rank of the via node of upper level is extracted from the link deployment information;
On the basis of the Relay of the via node of upper level is other, calculate as the relaying rank residing for via node, with right
The first order is replaced;
When asking failure, it is the first order to be determined as the relaying rank residing for via node.
9. the method according to claim any one of 1-7, it is characterised in that described according to starting the relaying rank
The softAP nodes of Wi-Fi modules, with the step of the application terminal of destination channel connection next stage and/or via node
Including:
When the relaying rank is the first order, the log-on message of user's input is received;
When the relaying rank is more than the second level or the second level, carried from the link deployment information of the via node of upper level
Log-on message is taken, wherein, the log-on message includes service set and password;
Start the softAP nodes of the Wi-Fi modules according to the destination channel, the service set and the password, with
The service set is broadcasted in the destination channel.
10. a kind of configuration device of trunking traffic, it is characterised in that in the terminal, the mobile terminal configuration has for application
Wi-Fi modules, described device includes:
Higher level equipment link block, for connected by the station nodes of the Wi-Fi modules upper level router or in
After node;
Rank detection module is relayed, for detecting as the relaying rank residing for via node;
Destination channel selecting module, for according to the relaying rank selection target channel;
Subordinate equipment link block, the softAP nodes for starting the Wi-Fi modules according to the relaying rank, with institute
State application terminal and/or the via node of destination channel connection next stage;
Trunking traffic parameter configuration module, for according to the relaying rank configuration trunking traffic parameter, to support described
Communicated between station nodes and the softAP nodes.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710254564.1A CN107040302B (en) | 2017-04-18 | 2017-04-18 | Relay communication configuration method and device |
PCT/CN2017/119921 WO2018192265A1 (en) | 2017-04-18 | 2017-12-29 | Configuration method and device for relay communication |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710254564.1A CN107040302B (en) | 2017-04-18 | 2017-04-18 | Relay communication configuration method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107040302A true CN107040302A (en) | 2017-08-11 |
CN107040302B CN107040302B (en) | 2020-06-12 |
Family
ID=59534936
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710254564.1A Active CN107040302B (en) | 2017-04-18 | 2017-04-18 | Relay communication configuration method and device |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN107040302B (en) |
WO (1) | WO2018192265A1 (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2018192264A1 (en) * | 2017-04-18 | 2018-10-25 | 青岛海信移动通信技术股份有限公司 | Configuration method and device for relay communication |
WO2018192265A1 (en) * | 2017-04-18 | 2018-10-25 | 青岛海信移动通信技术股份有限公司 | Configuration method and device for relay communication |
CN112533200A (en) * | 2020-11-23 | 2021-03-19 | 广州技象科技有限公司 | Data hopping transmission link management method and device based on system change |
CN113163339A (en) * | 2020-01-22 | 2021-07-23 | 深圳市云海物联科技有限公司 | Method and device for searching equipment and terminal equipment |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20210368416A1 (en) * | 2020-05-20 | 2021-11-25 | Arcadyan Technology Corporation | Wireless network bridging method and wireless network transmission device using the same |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101212762A (en) * | 2006-12-25 | 2008-07-02 | 华为技术有限公司 | Method and system for allocating radio channel to trunk node |
CN101577969A (en) * | 2008-05-09 | 2009-11-11 | 中兴通讯股份有限公司 | Resource allocation methods and resource regulation method |
CN102113404A (en) * | 2009-01-26 | 2011-06-29 | 松下电器产业株式会社 | Relay apparatus, control method, and program |
US20140086139A1 (en) * | 2012-09-21 | 2014-03-27 | Samsung Electronics Co., Ltd. | Repeater for selecting channel in local communication system, and method thereof |
CN105228150A (en) * | 2015-09-30 | 2016-01-06 | 青岛海信移动通信技术股份有限公司 | A kind of mobile device carries out the method and apparatus of relaying |
CN105307290A (en) * | 2015-09-30 | 2016-02-03 | 青岛海信移动通信技术股份有限公司 | Method and device for configuring relay channel of mobile equipment |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107040302B (en) * | 2017-04-18 | 2020-06-12 | 青岛海信移动通信技术股份有限公司 | Relay communication configuration method and device |
-
2017
- 2017-04-18 CN CN201710254564.1A patent/CN107040302B/en active Active
- 2017-12-29 WO PCT/CN2017/119921 patent/WO2018192265A1/en active Application Filing
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101212762A (en) * | 2006-12-25 | 2008-07-02 | 华为技术有限公司 | Method and system for allocating radio channel to trunk node |
CN101577969A (en) * | 2008-05-09 | 2009-11-11 | 中兴通讯股份有限公司 | Resource allocation methods and resource regulation method |
CN102113404A (en) * | 2009-01-26 | 2011-06-29 | 松下电器产业株式会社 | Relay apparatus, control method, and program |
US20140086139A1 (en) * | 2012-09-21 | 2014-03-27 | Samsung Electronics Co., Ltd. | Repeater for selecting channel in local communication system, and method thereof |
CN105228150A (en) * | 2015-09-30 | 2016-01-06 | 青岛海信移动通信技术股份有限公司 | A kind of mobile device carries out the method and apparatus of relaying |
CN105307290A (en) * | 2015-09-30 | 2016-02-03 | 青岛海信移动通信技术股份有限公司 | Method and device for configuring relay channel of mobile equipment |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2018192264A1 (en) * | 2017-04-18 | 2018-10-25 | 青岛海信移动通信技术股份有限公司 | Configuration method and device for relay communication |
WO2018192265A1 (en) * | 2017-04-18 | 2018-10-25 | 青岛海信移动通信技术股份有限公司 | Configuration method and device for relay communication |
CN113163339A (en) * | 2020-01-22 | 2021-07-23 | 深圳市云海物联科技有限公司 | Method and device for searching equipment and terminal equipment |
CN113163339B (en) * | 2020-01-22 | 2022-05-13 | 深圳市云海物联科技有限公司 | Method and device for searching equipment and terminal equipment |
CN112533200A (en) * | 2020-11-23 | 2021-03-19 | 广州技象科技有限公司 | Data hopping transmission link management method and device based on system change |
CN112533200B (en) * | 2020-11-23 | 2021-10-08 | 广州技象科技有限公司 | Data hopping transmission link management method and device based on system change |
Also Published As
Publication number | Publication date |
---|---|
WO2018192265A1 (en) | 2018-10-25 |
CN107040302B (en) | 2020-06-12 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20220182742A1 (en) | Gateway apparatus and methods for wireless iot (internet of things) services | |
CN107040302A (en) | The collocation method and device of a kind of trunking traffic | |
US11470666B2 (en) | Autonomous formation for backhaul networks | |
CN105228213B (en) | A kind of method and apparatus that mobile device is relayed | |
CN105307290B (en) | A kind of configuration method and device of the trunk channel of mobile device | |
CN101341684B (en) | Communications methods and apparatus using physical attachment point identifiers wich support dual communications links | |
CN105376357B (en) | A kind of antenna installation method and device of mobile device | |
TWI477111B (en) | Outdoor wireless modem and method for signal procesisng thereof | |
CN107257561A (en) | The collocation method and device of a kind of trunking traffic | |
CN105375970B (en) | A kind of method and apparatus that mobile device is relayed | |
CN106797377A (en) | The infrastructure access in networking data path is perceived via neighbours | |
CN105227693B (en) | A kind of configuration method and device of the DNS of mobile device | |
CN105228150A (en) | A kind of mobile device carries out the method and apparatus of relaying | |
CN104620636A (en) | Bridge learning in multi-hop wireless mesh networks | |
CN115442010A (en) | Method and device for managing identification | |
CN102625346B (en) | LTE-LAN system, access device and terminal | |
CN109672708A (en) | Communication means and device, system | |
CN102638382A (en) | Method for realizing DLNA (Digital Living Network Alliance) and DLNA agent equipment | |
CN103997729B (en) | A kind of method, apparatus and system for transmitting message | |
CN107249204B (en) | Antenna setting method and device for relay communication | |
US11706828B2 (en) | Method and apparatus for supporting terminal relay | |
CN108124301A (en) | A kind of connection method of wireless aps and its system | |
US9973350B2 (en) | Method for network sharing of multiple network operators and network sharing management proxy device using the same | |
US20180103393A1 (en) | Data transmission method and device | |
EP3656148B1 (en) | Network node configuration by a proxy |
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 | ||
CP01 | Change in the name or title of a patent holder | ||
CP01 | Change in the name or title of a patent holder |
Address after: 266071 Shandong city of Qingdao province Jiangxi City Road No. 11 Patentee after: Qingdao Hisense Mobile Communication Technology Co.,Ltd. Address before: 266071 Shandong city of Qingdao province Jiangxi City Road No. 11 Patentee before: HISENSE MOBILE COMMUNICATIONS TECHNOLOGY Co.,Ltd. |