CN105338535B - A method of carrying out wireless networking using mobile terminal - Google Patents

A method of carrying out wireless networking using mobile terminal Download PDF

Info

Publication number
CN105338535B
CN105338535B CN201510544822.0A CN201510544822A CN105338535B CN 105338535 B CN105338535 B CN 105338535B CN 201510544822 A CN201510544822 A CN 201510544822A CN 105338535 B CN105338535 B CN 105338535B
Authority
CN
China
Prior art keywords
mobile terminal
data packet
address
wireless router
wireless
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
Application number
CN201510544822.0A
Other languages
Chinese (zh)
Other versions
CN105338535A (en
Inventor
焦绍华
乔海权
蔡长利
陈顺平
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Lierda Science & Technology Group Co., Ltd.
Original Assignee
ZHEJIANG LIERDA INTERNET OF THINGS TECHNOLOGY Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by ZHEJIANG LIERDA INTERNET OF THINGS TECHNOLOGY Co Ltd filed Critical ZHEJIANG LIERDA INTERNET OF THINGS TECHNOLOGY Co Ltd
Priority to CN201510544822.0A priority Critical patent/CN105338535B/en
Publication of CN105338535A publication Critical patent/CN105338535A/en
Application granted granted Critical
Publication of CN105338535B publication Critical patent/CN105338535B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W16/00Network planning, e.g. coverage or traffic planning tools; Network deployment, e.g. resource partitioning or cells structures
    • H04W16/18Network planning tools
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/02Topology update or discovery
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/74Address processing for routing
    • H04L45/745Address table lookup; Address filtering
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W16/00Network planning, e.g. coverage or traffic planning tools; Network deployment, e.g. resource partitioning or cells structures
    • H04W16/24Cell structures
    • H04W16/26Cell enhancers or enhancement, e.g. for tunnels, building shadow
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W40/00Communication routing or communication path finding
    • H04W40/02Communication route or path selection, e.g. power-based or shortest path routing
    • H04W40/22Communication route or path selection, e.g. power-based or shortest path routing using selective relaying for reaching a BTS [Base Transceiver Station] or an access point
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W40/00Communication routing or communication path finding
    • H04W40/24Connectivity information management, e.g. connectivity discovery or connectivity update

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

A kind of method carrying out wireless networking using mobile terminal of the present invention.It includes the following steps:It modifies to the system configuration of mobile terminal, so that mobile terminal is not abandoned the data packet when it is the data packet of own MAC address to receive target MAC (Media Access Control) address not, route list is provided in mobile terminal;Wireless networking interior energy receives the mobile terminal of wireless router signal and wireless router establishes wireless connection, and the mobile terminal that wireless router signal is not received in wireless networking connects wireless router by jump method.The present invention is on the basis of conventional wireless networking, wireless device in wireless networking is used as wireless router, data are constantly forwarded, networking is carried out by multiple wireless hops, in the case where not adding non-wireless infrastructures, expanding cost, the greatly coverage area of extended wireless signal.

Description

A method of carrying out wireless networking using mobile terminal
Technical field
The present invention relates to wireless networking technology field more particularly to a kind of sides carrying out wireless networking using mobile terminal Method.
Background technology
Continuous improvement with people to network communication demand, it is desirable to whenever, where, can be into whom Row fast and accurately communicates.Currently, WiFi is held in both hands because of efficient ability to work by heat in wireless networking, but it is traditional A router belongs to the pattern more than 1 pair, router itself, which connects quantity, to be had by WIFI connection multiple equipments in wireless networking Limitation, transmission range is limited, causes wireless networking range smaller.
Invention content
The purpose of the present invention is overcoming existing wireless networking to be made of wireless router, wireless router itself connects quantity Restricted, transmission range is limited, the technical problem for causing wireless networking range smaller, provides and a kind of is carried out using mobile terminal The method of wireless networking, on the basis of conventional wireless networking, using the wireless device in wireless networking as wireless router It uses, data is constantly forwarded, networking is carried out by multiple wireless hops, non-wireless infrastructures is not being added, is being expanded into In the case of this, the greatly coverage area of extended wireless signal.
To solve the above-mentioned problems, the present invention is achieved by the following scheme:
The present invention it is a kind of using mobile terminal carry out wireless networking method, if wireless networking include wireless router and Dry mobile terminal, wireless router connect internet, include the following steps:
S1:It modifies to the system configuration of mobile terminal, mobile terminal is made receiving target MAC (Media Access Control) address to be not itself The data packet will not be abandoned when the data packet of MAC Address, route list is provided in mobile terminal, and the route list is for storing Routed path, the IP address of wireless router and MAC Address, the IP address of other mobile terminals and MAC Address;
S2:Wireless networking interior energy receives the mobile terminal of wireless router signal and wireless router foundation wirelessly connects It connects, the mobile terminal that wireless router signal is not received in wireless networking connects wireless router by jump method, redirects Method includes the following steps:
S21:The mobile terminal first peripherad mobile terminal transmission of wireless router signal is not received in wireless networking Data packet includes purpose IP address and target MAC (Media Access Control) address, the i.e. IP address of Target Wireless router and MAC in data packet Location;
S22:The mobile terminal of surrounding receives the data packet, searches the route list of itself storage, if arranged in routing The target MAC (Media Access Control) address in the data packet is found in table, then the IP address of itself, MAC Address are added to the road of the data packet By in path, the counter of record number of hops adds 1 in the data packet, forwards a packet to the data then according to purpose IP address Target Wireless router;If the target MAC (Media Access Control) address in the data packet is not found in route list, from route list In find out and belong to the corresponding mobile terminal of the IP address of the same network segment with own IP address, these mobile terminals are determined as turning The next tiny node for sending out data packet, the IP address of itself, MAC Address is added in the routed path of the data packet, the data The counter of record number of hops adds 1 in packet, then according to the IP address for belonging to the same network segment with own IP address found out The data forward a packet to the mobile terminal of next stop node, the mobile terminal of next tiny node repeats after receiving the data packet Above-mentioned steps are executed, until the data packet is forwarded to Target Wireless router;
S23:After data packet is forwarded to Target Wireless router, routed path and corresponding number of hops are fed back to initially The mobile terminal of transmission data packet, be originally sent the mobile terminal of data packet using the minimum routed path of number of hops as with mesh The final route path that wireless router carries out data exchange is marked, the mobile terminal for being originally sent data packet passes through final route road Diameter carries out data exchange with Target Wireless router.
In the technical scheme, the IP layers of mobile terminal system both can be configured to the function of router, can also configure At the function of host.By taking most widely used Android mobile phone in the market as an example, the kernel of Android mobile phone is linux kernel system, Network protocol stack built in linux is the ICP/IP protocol for meeting international standard, and in this agreement, default configuration is host work( Can, i.e., destination address, which is not the data packet of this host MAC address, to be dropped, therefore we need the IP of mobile terminal system Layer is configured to router feature, makes mobile terminal will not when it is the data packet of own MAC address to receive target MAC (Media Access Control) address not Abandon the data packet.In the application of mobile terminal system, it would be desirable to the route list information of a surrounding devices is preserved, The route list be used for store routed path, the IP address of wireless router and MAC Address, other mobile terminals IP address and MAC Address, when the packet rs destination address received is not local mac address, the first lookup inside route list information The equipment matched judges that the next path node of selection is forwarded if it can not find according to IP address(Route forwarding function), Until arriving at.
Wireless connection between wireless router and mobile terminal is WIFI connections.The wireless group established by this method Net, each mobile terminal in wireless networking can be used as the forwarding wireless router of the head-end site in wireless networking or its The data that his mobile terminal is sent out, to make the coverage area of wireless networking greatly extend.
Preferably, when there is new mobile terminal that wireless networking is added, new mobile terminal is first in wireless to what is detected Mobile terminal in networking sends out networking request, and the mobile terminal in wireless networking registers the information of new mobile terminal, will The IP address and MAC Address of new mobile terminal are added in the route list of itself, and send broadcast packet and notify itself routing row Other mobile terminals described in table have new mobile terminal to be added, and the IP address of new mobile terminal and MAC Address are sent to These mobile terminals, are then sent to new mobile terminal by itself route list, and new mobile terminal is arranged according to the routing received Table establishes the route list of itself.
Preferably, when final route path failure, step S21 to step S23 is re-executed, establishes new final road By path.
Preferably, the mobile terminal for being originally sent data packet carries out data by final route path and wireless router Exchange includes the following steps:Final route path is added in data packet by the mobile terminal for being originally sent data packet, then will Data packet is sent to the next stop mobile terminal described in final route path, after next stop mobile terminal receives the data packet It is forwarded to next stop mobile terminal again according to the final route path recorded in data packet, so successively according to final route path Forwarding, until data packet is sent to Target Wireless router, Target Wireless router is according to the final route path by feedback coefficient According to being sent back to the mobile terminal for being originally sent data packet.
Preferably, the mobile terminal in wireless networking is at regular intervals to other shiftings described in itself route list Data of dynamic terminal transmission, other mobile terminals meeting feedback acknowledgment data, if being not received by the confirmation data of feedback, The mobile terminal judges that itself breaks, and executes step S2 and reconnects into wireless networking.
The present invention it is a kind of using mobile terminal carry out wireless networking method, if wireless networking include wireless router and Dry mobile terminal, wireless router connect internet, include the following steps:
S1:It modifies to the system configuration of mobile terminal, mobile terminal is made receiving target MAC (Media Access Control) address to be not itself The data packet will not be abandoned when the data packet of MAC Address, route list is provided in mobile terminal, and the route list is for storing Routed path, the IP address of wireless router and MAC Address, the IP address of other mobile terminals and MAC Address;
S2:Wireless networking interior energy receives the mobile terminal of wireless router signal and wireless router foundation wirelessly connects It connects, the mobile terminal that wireless router signal is not received in wireless networking connects wireless router by jump method, redirects Method includes the following steps:
S21:The mobile terminal first peripherad mobile terminal transmission of wireless router signal is not received in wireless networking Data packet, include currently transmitted time, purpose IP address and target MAC (Media Access Control) address in data packet, i.e. Target Wireless router IP address and MAC Address;
S22:The mobile terminal of surrounding receives the data packet, searches the route list of itself storage, if arranged in routing The target MAC (Media Access Control) address in the data packet is found in table, then the IP address of itself, MAC Address are added to the road of the data packet By in path, the currently transmitted time is added in data packet, the time of the secondary transmission of the timer record in the data packet, i.e., Current mobile terminal receives the time of the data packet and upper station mobile terminal sends difference between the time of the data packet, The data are forwarded a packet into Target Wireless router then according to purpose IP address;If not finding this in route list Target MAC (Media Access Control) address in data packet then finds out the IP address pair for belonging to the same network segment with own IP address from route list These mobile terminals are determined as forwarding next tiny node of data packet, by itself IP address, MAC by the mobile terminal answered Location is added in the routed path of the data packet, and the currently transmitted time is added in data packet, the timer in the data packet The time of the secondary transmission is recorded, i.e., current mobile terminal receives the time of the data packet and upper station mobile terminal sends the number According to the difference between the time of packet, belong to the IP address of the same network segment by the data with own IP address then according to finding out Forward a packet to the mobile terminal of next tiny node, the mobile terminal of next tiny node receive repeat after the data packet it is above-mentioned Step, until the data packet is forwarded to Target Wireless router;
S23:After data packet is forwarded to Target Wireless router, routed path and corresponding overall transmission time are fed back to most The mobile terminal for just sending data packet, be originally sent the mobile terminal of data packet using the minimum routed path of overall transmission time as The final route path of data exchange is carried out with Target Wireless router, the mobile terminal for being originally sent data packet passes through final road Data exchange is carried out by path and Target Wireless router.
Substantial effect of the invention is:On the basis of conventional wireless networking, the wireless device in wireless networking is made It is used for wireless router(Wireless device includes AP and STA), data are constantly forwarded, are carried out by multiple wireless hops Networking, in the case where not adding non-wireless infrastructures, expanding cost, the greatly coverage area of extended wireless signal.
Description of the drawings
Fig. 1 is a kind of work flow diagram of the present invention;
Fig. 2 is a kind of wireless networking structural schematic diagram of the present invention.
In figure:1, wireless router, 2, first movement terminal, the 3, second mobile terminal, the 4, third mobile terminal, the 5, the 4th Mobile terminal.
Specific implementation mode
Below with reference to the embodiments and with reference to the accompanying drawing technical scheme of the present invention is described in further detail.
Embodiment 1:A kind of method carrying out wireless networking using mobile terminal of the present embodiment, wireless networking include wireless Router and several mobile terminals, wireless router connects internet, as shown in Figure 1, including the following steps:
S1:It modifies to the system configuration of mobile terminal, mobile terminal is made receiving target MAC (Media Access Control) address to be not itself The data packet will not be abandoned when the data packet of MAC Address, route list is provided in mobile terminal, and the route list is for storing Routed path, the IP address of wireless router and MAC Address, the IP address of other mobile terminals and MAC Address;
S2:Wireless networking interior energy receives the mobile terminal of wireless router signal and wireless router foundation wirelessly connects It connects, the mobile terminal that wireless router signal is not received in wireless networking connects wireless router by jump method, redirects Method includes the following steps:
S21:The mobile terminal first peripherad mobile terminal transmission of wireless router signal is not received in wireless networking Data packet includes purpose IP address and target MAC (Media Access Control) address, the i.e. IP address of Target Wireless router and MAC in data packet Location;
S22:The mobile terminal of surrounding receives the data packet, searches the route list of itself storage, if arranged in routing The target MAC (Media Access Control) address in the data packet is found in table, then the IP address of itself, MAC Address are added to the road of the data packet By in path, the counter of record number of hops adds 1 in the data packet, forwards a packet to the data then according to purpose IP address Target Wireless router;If the target MAC (Media Access Control) address in the data packet is not found in route list, from route list In find out and belong to the corresponding mobile terminal of the IP address of the same network segment with own IP address, these mobile terminals are determined as turning The next tiny node for sending out data packet, the IP address of itself, MAC Address is added in the routed path of the data packet, the data The counter of record number of hops adds 1 in packet, then according to the IP address for belonging to the same network segment with own IP address found out The data forward a packet to the mobile terminal of next stop node, the mobile terminal of next tiny node repeats after receiving the data packet Above-mentioned steps are executed, until the data packet is forwarded to Target Wireless router;
S23:After data packet is forwarded to Target Wireless router, routed path and corresponding number of hops are fed back to initially The mobile terminal of transmission data packet, be originally sent the mobile terminal of data packet using the minimum routed path of number of hops as with mesh The final route path that wireless router carries out data exchange is marked, the mobile terminal for being originally sent data packet passes through final route road Diameter carries out data exchange with Target Wireless router.
It is originally sent the mobile terminal of data packet data exchange is carried out by final route path and wireless router and include Following steps:Final route path is added in data packet by the mobile terminal for being originally sent data packet, then sends out data packet It is sent to the next stop mobile terminal described in final route path, next stop mobile terminal receives after the data packet according to data The final route path recorded in packet is forwarded to next stop mobile terminal again, is so forwarded successively according to final route path, directly It is sent to Target Wireless router to data packet, feedback data is sent back to by Target Wireless router according to the final route path It is originally sent the mobile terminal of data packet.
When final route path failure(As some mobile terminal shutdown, failure, the release on final route path are wireless Networking etc. causes the mobile terminal not forward data packet), step S21 to step S23 is re-executed, new final route is established Path.
When there is new mobile terminal that wireless networking is added, new mobile terminal is first to the letter in wireless networking detected Number strongest mobile terminal sends out networking request, and the strongest mobile terminal of signal in wireless networking registers new mobile terminal Information, the IP address of new mobile terminal and MAC Address are added in the route list of itself, and send broadcast packet notice from Other mobile terminals described in body route list have new mobile terminal to be added, and by the IP address of new mobile terminal and MAC Location is sent to these mobile terminals(The IP address of the new mobile terminal received and MAC Address are added to by these mobile terminals In the route list of itself), itself route list is then sent to new mobile terminal, new mobile terminal is according to the road received The route list of itself is established by list.
Mobile terminal in wireless networking is at regular intervals to other mobile terminals hair described in itself route list Send a data(Tell other mobile terminals " I am also online "), other mobile terminals meeting feedback acknowledgment data, if do not connect The confirmation data of feedback are received, then the mobile terminal judges that itself breaks, and executes step S2 and reconnects into wireless networking.
The IP layers of mobile terminal system both can be configured to the function of router, can also be configured to the function of host.With In the market for most widely used Android mobile phone, the kernel of Android mobile phone is linux kernel system, the network built in linux Protocol stack is the ICP/IP protocol for meeting international standard, and in this agreement, default configuration is host function, i.e. destination address is not The data packet of this host MAC address can be dropped, therefore we need the IP layers of mobile terminal system being configured to router work( Can, so that mobile terminal is not abandoned the data packet when it is the data packet of own MAC address to receive target MAC (Media Access Control) address not.It is silent The ICP/IP protocol recognized be judge the destination IP inside preceding 20 bytes of IP data packets and purpose MAC, if it is not, this Packet just abandons, therefore we need to change the corresponding field inside agreement.TCP ports all simultaneously must be unified, Mei Geshe Standby to need to prepare 2 ports, a connection upper network, a connection undernet is established message queue in a program, is turned The data in two conduits are sent out, the maximum MSS of each data packet of the pipeline of TCP is 1460 at present, it is therefore desirable to limit number According to the length of packet.Cell phone application uses eclipse+ADT(Android development environment), in APP, it would be desirable to establish 2 Socket, one is client, and connection upper hop routing, one is server, receives connection and the data of next-hop routing, because This needs to establish 2 threads, while needing disconnection reconnecting mechanism.Procotol part is mainly set in the option data part of IP Routing forwarding is set, after flag bit setting, when the data of forwarding pass to next-hop, program can detect the datagram received automatically Mark, it is first determined whether destination address is the machine, if it is not, detection forwarding flag bit be 1, then it is true to search for route list The address for determining next-hop, forwards.
In the application of mobile terminal system, it would be desirable to preserve the route list information of a surrounding devices, the road By list for storing routed path, the IP address of wireless router and MAC Address, the IP address of other mobile terminals and MAC It is first searched inside route list information matched when the packet rs destination address received is not local mac address address Equipment judges that the next path node of selection is forwarded if it can not find according to IP address(Route forwarding function), until It arrives at.
Wireless connection between wireless router and mobile terminal is WIFI connections.The wireless group established by this method Net, each mobile terminal in wireless networking can be used as the forwarding wireless router of the head-end site in wireless networking or its The data that his mobile terminal is sent out, to make the coverage area of wireless networking greatly extend.It is determined by number of hops most short Routed path reduces network delay.
A kind of wireless networking structure of the present embodiment, as shown in Fig. 2, wireless networking is whole by wireless router 1, first movement Hold the 2, second mobile terminal 3, third mobile terminal 4 and the 4th mobile terminal 5 composition.
First movement terminal 2 and the second mobile terminal 3 can receive the WIFI signal of wireless router 1, can directly with Wireless router 1 carries out WIFI communications.Third mobile terminal 4 and the 4th mobile terminal 5 do not receive the WIFI of wireless router 1 Signal needs to forward data packet to carry out data exchange with wireless router 1 by first movement terminal 2 and the second mobile terminal 3.
The first peripherad mobile terminal transmission data packet of third mobile terminal 4, include in data packet purpose IP address and Target MAC (Media Access Control) address, the i.e. IP address and MAC Address of wireless router 1.First movement terminal 2, the second mobile terminal 3 and the 4th Mobile terminal 5 receives the data packet, searches the route list of itself storage.
First movement terminal 2 and the second mobile terminal 3 with finding the purpose MAC in the data packet in route list The IP address of itself, MAC Address are then added in the routed path of the data packet by location, and number of hops is recorded in the data packet Counter add 1, the data are forwarded a packet into wireless router 1 then according to purpose IP address.
4th mobile terminal 5 does not find the target MAC (Media Access Control) address in the data packet in route list, then is arranged from routing It is found out in table and belongs to the corresponding mobile terminal of the IP address of the same network segment, i.e. first movement terminal 2 and with own IP address Two mobile terminals 3.First movement terminal 2 and the second mobile terminal 3 are determined as to forward next tiny node of data packet, by itself IP address, MAC Address be added in the routed path of the data packet, the counter of record number of hops adds 1 in the data packet, Then the data are forwarded a packet into first movement terminal 2 and the second mobile terminal 3.First movement terminal 2 and the second mobile terminal 3 The target MAC (Media Access Control) address in the data packet is found in route list, then the IP address of itself, MAC Address is added to the number According in the routed path of packet, the counter of record number of hops adds 1 in the data packet, then according to purpose IP address by the data Forward a packet to wireless router 1.
After data packet is forwarded to wireless router 1, routed path and corresponding number of hops are fed back to being originally sent number According to the mobile terminal of packet, the routed path of feedback and corresponding number of hops are as follows:
Routed path 1:Third mobile terminal 4-- first movement terminal 2-- wireless routers 1, number of hops 1;
Routed path 2:Third mobile terminal 4-- the second mobile terminal 3-- wireless routers 1, number of hops 1;
Routed path 3:The 4th mobile terminal 5-- the second mobile terminal 3-- wireless routers 1 of third mobile terminal 4-- are jumped Turn number 2;
Routed path 4:The 4th mobile terminal 5-- first movement terminal 2-- wireless routers 1 of third mobile terminal 4-- are jumped Turn number 2;
The number of hops of routed path 1 and routed path 2 is minimum, and third mobile terminal 4 is from routed path 1 and routed path One is randomly choosed in 2 as the final route path for carrying out data exchange with wireless router 1, third mobile terminal 4 passes through Final route path carries out data exchange with wireless router 1.
Embodiment 1:A kind of method carrying out wireless networking using mobile terminal of the present embodiment, wireless networking include wireless Router and several mobile terminals, wireless router connect internet, include the following steps:
S1:It modifies to the system configuration of mobile terminal, mobile terminal is made receiving target MAC (Media Access Control) address to be not itself The data packet will not be abandoned when the data packet of MAC Address, route list is provided in mobile terminal, and the route list is for storing Routed path, the IP address of wireless router and MAC Address, the IP address of other mobile terminals and MAC Address;
S2:Wireless networking interior energy receives the mobile terminal of wireless router signal and wireless router foundation wirelessly connects It connects, the mobile terminal that wireless router signal is not received in wireless networking connects wireless router by jump method, redirects Method includes the following steps:
S21:The mobile terminal first peripherad mobile terminal transmission of wireless router signal is not received in wireless networking Data packet, include currently transmitted time, purpose IP address and target MAC (Media Access Control) address in data packet, i.e. Target Wireless router IP address and MAC Address;
S22:The mobile terminal of surrounding receives the data packet, searches the route list of itself storage, if arranged in routing The target MAC (Media Access Control) address in the data packet is found in table, then the IP address of itself, MAC Address are added to the road of the data packet By in path, the currently transmitted time is added in data packet, the time of the secondary transmission of the timer record in the data packet, i.e., Current mobile terminal receives the time of the data packet and upper station mobile terminal sends difference between the time of the data packet, The data are forwarded a packet into Target Wireless router then according to purpose IP address;If not finding this in route list Target MAC (Media Access Control) address in data packet then finds out the IP address pair for belonging to the same network segment with own IP address from route list These mobile terminals are determined as forwarding next tiny node of data packet, by itself IP address, MAC by the mobile terminal answered Location is added in the routed path of the data packet, and the currently transmitted time is added in data packet, the timer in the data packet The time of the secondary transmission is recorded, i.e., current mobile terminal receives the time of the data packet and upper station mobile terminal sends the number According to the difference between the time of packet, belong to the IP address of the same network segment by the data with own IP address then according to finding out Forward a packet to the mobile terminal of next tiny node, the mobile terminal of next tiny node receive repeat after the data packet it is above-mentioned Step, until the data packet is forwarded to Target Wireless router;
S23:After data packet is forwarded to Target Wireless router, routed path and corresponding overall transmission time are fed back to most The mobile terminal for just sending data packet, be originally sent the mobile terminal of data packet using the minimum routed path of overall transmission time as The final route path of data exchange is carried out with Target Wireless router, the mobile terminal for being originally sent data packet passes through final road Data exchange is carried out by path and Target Wireless router.
A minimum routed path of overall transmission time of one data packet on routed path is determined as final route Network delay is reduced in path.Remaining method is the same as embodiment 1.

Claims (5)

1. a kind of method carrying out wireless networking using mobile terminal, wireless networking includes that wireless router and several movements are whole End, wireless router connect internet, which is characterized in that include the following steps:
S1:It modifies to the system configuration of mobile terminal, mobile terminal is made receiving target MAC (Media Access Control) address to be not self MAC The data packet will not be abandoned when the data packet of address, route list is provided in mobile terminal, and the route list is for storing road By path, the IP address of wireless router and MAC Address, the IP address of other mobile terminals and MAC Address;
S2:Wireless networking interior energy receives the mobile terminal of wireless router signal and wireless router establishes wireless connection, nothing The mobile terminal that wireless router signal is not received in line networking connects wireless router, jump method packet by jump method Include following steps:
S21:The mobile terminal of wireless router signal first peripherad mobile terminal transmission data is not received in wireless networking It wraps, includes purpose IP address and target MAC (Media Access Control) address, the i.e. IP address and MAC Address of Target Wireless router in data packet;
S22:The mobile terminal of surrounding receives the data packet, the route list of itself storage is searched, if in route list The target MAC (Media Access Control) address in the data packet is found, then the IP address of itself, MAC Address are added to the routing road of the data packet In diameter, the counter of record number of hops adds 1 in the data packet, and the data are forwarded a packet to target then according to purpose IP address Wireless router;If not finding the target MAC (Media Access Control) address in the data packet in route list, looked into from route list It finds out and belongs to the corresponding mobile terminal of the IP address of the same network segment with own IP address, these mobile terminals are determined as forwarding number According to next tiny node of packet, the IP address of itself, MAC Address are added in the routed path of the data packet, in the data packet The counter of record number of hops adds 1, should then according to the IP address for belonging to the same network segment with own IP address found out Data forward a packet to the mobile terminal of next stop node, and the mobile terminal of next tiny node repeats after receiving the data packet Above-mentioned steps, until the data packet is forwarded to Target Wireless router;
S23:After data packet is forwarded to Target Wireless router, routed path and corresponding number of hops are fed back to being originally sent The mobile terminal of data packet, be originally sent the mobile terminal of data packet using the minimum routed path of number of hops as with target without Line router carries out the final route path of data exchange, be originally sent the mobile terminal of data packet by final route path with Target Wireless router carries out data exchange;
When there is new mobile terminal that wireless networking is added, new mobile terminal is first to the mobile end in wireless networking detected End sends out networking request, and the mobile terminal in wireless networking registers the information of new mobile terminal, by the IP of new mobile terminal Address and MAC Address are added in the route list of itself, and send broadcast packet and notify other described in itself route list Mobile terminal has new mobile terminal to be added, and the IP address of new mobile terminal and MAC Address are sent to these mobile terminals, connects It and itself route list is sent to new mobile terminal, new mobile terminal establishes the routing of itself according to the route list received List.
2. a kind of method carrying out wireless networking using mobile terminal according to claim 1, it is characterised in that:When final When routed path fails, step S21 to step S23 is re-executed, new final route path is established.
3. a kind of method carrying out wireless networking using mobile terminal according to claim 1 or 2, it is characterised in that:Most The mobile terminal for just sending data packet is included the following steps by final route path and wireless router progress data exchange:Most Final route path is added in data packet by the mobile terminal for just sending data packet, then delivers a packet to final route Next stop mobile terminal described in path, next stop mobile terminal receive after the data packet according to being recorded most in data packet Whole routed path is forwarded to next stop mobile terminal again, is so forwarded successively according to final route path, until data packet is sent To Target Wireless router, feedback data is sent back to according to the final route path and is originally sent data by Target Wireless router The mobile terminal of packet.
4. a kind of method carrying out wireless networking using mobile terminal according to claim 1 or 2, it is characterised in that:Nothing Mobile terminal in line networking sends a data to other mobile terminals described in itself route list at regular intervals, Other mobile terminals meeting feedback acknowledgment data, if being not received by the confirmation data of feedback, which judges itself Broken string executes step S2 and reconnects into wireless networking.
5. a kind of method carrying out wireless networking using mobile terminal, wireless networking includes that wireless router and several movements are whole End, wireless router connect internet, which is characterized in that include the following steps:
S1:It modifies to the system configuration of mobile terminal, mobile terminal is made receiving target MAC (Media Access Control) address to be not self MAC The data packet will not be abandoned when the data packet of address, route list is provided in mobile terminal, and the route list is for storing road By path, the IP address of wireless router and MAC Address, the IP address of other mobile terminals and MAC Address;
S2:Wireless networking interior energy receives the mobile terminal of wireless router signal and wireless router establishes wireless connection, nothing The mobile terminal that wireless router signal is not received in line networking connects wireless router, jump method packet by jump method Include following steps:
S21:The mobile terminal of wireless router signal first peripherad mobile terminal transmission data is not received in wireless networking Packet, includes currently transmitted time, purpose IP address and target MAC (Media Access Control) address in data packet, i.e. the IP of Target Wireless router Location and MAC Address;
S22:The mobile terminal of surrounding receives the data packet, the route list of itself storage is searched, if in route list The target MAC (Media Access Control) address in the data packet is found, then the IP address of itself, MAC Address are added to the routing road of the data packet In diameter, the currently transmitted time is added in data packet, the time of the secondary transmission of the timer record in the data packet, i.e., currently Mobile terminal receives the time of the data packet and upper station mobile terminal sends difference between the time of the data packet, then The data are forwarded a packet into Target Wireless router according to purpose IP address;If not finding the data in route list Target MAC (Media Access Control) address in packet, then find out that belong to the IP address of the same network segment with own IP address corresponding from route list These mobile terminals are determined as forwarding next tiny node of data packet, the IP address of itself, MAC Address are added by mobile terminal It is added in the routed path of the data packet, the currently transmitted time is added in data packet, the timer record in the data packet The time of the secondary transmission, i.e. current mobile terminal receive the time of the data packet and upper station mobile terminal sends the data packet Time between difference, the data packet is turned then according to the IP address for belonging to the same network segment with own IP address is found out It is dealt into the mobile terminal of next tiny node, the mobile terminal of next tiny node repeats above-mentioned step after receiving the data packet Suddenly, until the data packet is forwarded to Target Wireless router;
S23:After data packet is forwarded to Target Wireless router, routed path and corresponding overall transmission time are fed back to most initial The mobile terminal for sending data packet, be originally sent the mobile terminal of data packet using the minimum routed path of overall transmission time as with mesh The final route path that wireless router carries out data exchange is marked, the mobile terminal for being originally sent data packet passes through final route road Diameter carries out data exchange with Target Wireless router.
CN201510544822.0A 2015-08-31 2015-08-31 A method of carrying out wireless networking using mobile terminal Active CN105338535B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510544822.0A CN105338535B (en) 2015-08-31 2015-08-31 A method of carrying out wireless networking using mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510544822.0A CN105338535B (en) 2015-08-31 2015-08-31 A method of carrying out wireless networking using mobile terminal

Publications (2)

Publication Number Publication Date
CN105338535A CN105338535A (en) 2016-02-17
CN105338535B true CN105338535B (en) 2018-09-28

Family

ID=55288735

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510544822.0A Active CN105338535B (en) 2015-08-31 2015-08-31 A method of carrying out wireless networking using mobile terminal

Country Status (1)

Country Link
CN (1) CN105338535B (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105704226A (en) * 2016-03-11 2016-06-22 北京奇虎科技有限公司 Intelligent terminal and network configuration method thereof
CN105721220B (en) * 2016-03-11 2019-08-27 北京安云世纪科技有限公司 Intelligent terminal and its network bottom layer configuration method
CN107294669A (en) * 2016-03-31 2017-10-24 深圳市维杰乐思科技有限公司 Improve method, system and the controller of the reliability of wireless camera network
CN106102019A (en) * 2016-06-02 2016-11-09 山东有人信息技术有限公司 A kind of data transmission method based on WIFI broadcast packet and data transmission system
CN106792979A (en) * 2016-12-07 2017-05-31 国网宁夏电力公司吴忠供电公司 It is a kind of to set up the method that radio relay communication route communication link
CN108494687B (en) * 2018-03-08 2022-05-31 全球能源互联网研究院有限公司 Wifi-based multi-path networking communication method and system for electric power information physical system
CN113596821B (en) * 2021-07-15 2024-03-01 北京小米移动软件有限公司 Data communication method, device, computer equipment and storage medium
CN114866607A (en) * 2022-04-28 2022-08-05 中建三局智能技术有限公司 Networking transmission method and device based on voice coding technology

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101004861A (en) * 2006-11-08 2007-07-25 北京航空航天大学 System for monitoring moving target on place of aerodrome
CN101217498A (en) * 2008-01-18 2008-07-09 北京科技大学 A self-organizing network routing method based on data message point-to-point decision making

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8904177B2 (en) * 2009-01-27 2014-12-02 Sony Corporation Authentication for a multi-tier wireless home mesh network

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101004861A (en) * 2006-11-08 2007-07-25 北京航空航天大学 System for monitoring moving target on place of aerodrome
CN101217498A (en) * 2008-01-18 2008-07-09 北京科技大学 A self-organizing network routing method based on data message point-to-point decision making

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
王传刚."Ad Hoc中基于MAC层的交换技术".《中国优秀硕士学位论文全文数据库信息科技辑》.2010,(第8期), *

Also Published As

Publication number Publication date
CN105338535A (en) 2016-02-17

Similar Documents

Publication Publication Date Title
CN105338535B (en) A method of carrying out wireless networking using mobile terminal
JP4571666B2 (en) Method, communication device and system for address resolution mapping in a wireless multi-hop ad hoc network
US10057342B2 (en) Infrastructure access via neighbor awareness networking data path
EP2652905B1 (en) Increased communication opportunities with low-contact nodes in a computer network
JP5087553B2 (en) Method and system for adaptive wireless routing protocol in mesh networks
JP2006525694A (en) Route search apparatus and method in mobile ad hoc network
TWI499327B (en) Method for communicating in a network comprising a batteryless zigbee device, network and device therefor
CN108476457A (en) Distributed reaction resource in time slotted channel hopping network and management and running
WO2012156852A1 (en) Label switched routing to connect low power network domains
JP2004282270A (en) Radio ad hoc communication system, terminal, processing method therein, and program for making terminal to execute the method
JP2005064721A (en) Communication system and method, communication terminal device and control method thereof, and program
JP2008042665A (en) Network virtualization apparatus and network virtualization program
JP4605428B2 (en) COMMUNICATION SYSTEM, COMMUNICATION TERMINAL DEVICE, COMMUNICATION METHOD, AND PROGRAM
JP2006279168A (en) Communication apparatus for configuring adhoc network, bridge apparatus, and communication system
JP2009260594A (en) Data communication method
CN101296126B (en) Link fault announcing method, interface management unit and router
Jin et al. MANET for Disaster Relief based on NDN
JP2007089182A (en) Method and apparatus for high-speed path establishment
Che-Aron et al. The enhanced fault-tolerant AODV routing protocol for wireless sensor network
CN104735712B (en) A kind of maintaining method of Ad Hoc networks route
JP4913208B2 (en) Address resolution method
JP2014207629A (en) Communication device, communication control method and program
WO2011118133A1 (en) Communication apparatus, communication system, communication method and communication program
CN101835236B (en) Method for realizing label routing and packet exchange of driver layer-based mobile ad hoc network
JP2007142543A (en) Portable terminal for selecting routing protocol for ad hoc network, and program

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20191209

Address after: 310000 room 1201, block a, building 18, United courtyard, Gongshu District, Hangzhou City, Zhejiang Province

Patentee after: Lierda Science & Technology Group Co., Ltd.

Address before: Yuhang District, Hangzhou City, Zhejiang Province, 310000 West No. 1500 Building No. 1 room 105

Patentee before: ZHEJIANG LIERDA INTERNET OF THINGS TECHNOLOGY CO., LTD.

TR01 Transfer of patent right