CN107508931B - Wireless network communication method, device, storage medium and computer equipment - Google Patents

Wireless network communication method, device, storage medium and computer equipment Download PDF

Info

Publication number
CN107508931B
CN107508931B CN201710912386.7A CN201710912386A CN107508931B CN 107508931 B CN107508931 B CN 107508931B CN 201710912386 A CN201710912386 A CN 201710912386A CN 107508931 B CN107508931 B CN 107508931B
Authority
CN
China
Prior art keywords
mac address
gateway mac
gateway
computer equipment
address
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
CN201710912386.7A
Other languages
Chinese (zh)
Other versions
CN107508931A (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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201710912386.7A priority Critical patent/CN107508931B/en
Publication of CN107508931A publication Critical patent/CN107508931A/en
Application granted granted Critical
Publication of CN107508931B publication Critical patent/CN107508931B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/09Mapping addresses
    • H04L61/10Mapping addresses of different types
    • H04L61/103Mapping addresses of different types across network layers, e.g. resolution of network layer into physical layer addresses or address resolution protocol [ARP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/45Network directories; Name-to-address mapping
    • H04L61/4505Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols
    • H04L61/4511Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols using domain name system [DNS]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L2101/00Indexing scheme associated with group H04L61/00
    • H04L2101/60Types of network addresses
    • H04L2101/618Details of network addresses
    • H04L2101/622Layer-2 addresses, e.g. medium access control [MAC] addresses

Landscapes

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

Abstract

This application involves a kind of wireless network communication method, device, storage medium and computer equipments.The wireless network communication method includes: the first ARP request for receiving the first AP and sending;Whether can normal communication according to the current gateway MAC Address that first ARP request detection computer equipment uses;When the current gateway MAC Address energy normal communication used in the computer equipment, continues to use the current gateway MAC Address and carry out wireless communication.Stability when computer equipment carries out wireless communication can be improved in above-mentioned wireless network communication method, device, storage medium and computer equipment.

Description

Wireless network communication method, device, storage medium and computer equipment
Technical field
This application involves technical field of information processing, are situated between more particularly to a kind of wireless network communication method, device, storage Matter and computer equipment.
Background technique
Computer equipment is when carrying out wireless communication, it is necessary to get the MAC (Media of gateway (Gateway) Access Control or Medium Access Control, media access control) address just can be carried out network communication.Tradition Wireless network communication method in, computer equipment is getting a certain AP (Wireless Access Point, accessing wirelessly Access point) in gateway MAC address after, can directly carry out wireless communication using the address gateway MAC.
However, there is the unstable situations of network communication in traditional wireless network communication method.
Summary of the invention
The embodiment of the present application provides a kind of wireless network communication method, device, storage medium and computer equipment, Ke Yiti The stability of high wireless communication.
A kind of wireless network communication method, which comprises receive the first ARP request that the first AP is sent;According to institute Whether state the current gateway MAC Address that uses of the first ARP request detection computer equipment can normal communication;When in computer equipment When the current gateway MAC Address energy normal communication used, it is logical to continue to use the current gateway MAC Address progress wireless network Letter.
In one of the embodiments, the method also includes: when being unable to normal communication, extract the first ARP and ask Gateway MAC address in asking;With being substituted for the gateway MAC in first ARP request by the current gateway MAC Address used Location, and wireless communication is carried out using replaced gateway MAC address.
In one of the embodiments, the method also includes: when can be normal using the replaced gateway MAC address When communication, solidify the replaced gateway MAC address.
In one of the embodiments, before receiving the first ARP request that the first AP is sent, the method also includes: Obtain the gateway ip address for the 2nd AP connecting with computer equipment;The second ARP request is initiated according to the address the gateway IP, Receive the first ARP response that each AP makes for second ARP request;When detecting the presence of gateway conflict, it is extracted In the address gateway MAC in first arp response, using the gateway MAC address of extraction as being used to carry out wireless communication Gateway MAC address;When detecting the gateway MAC address energy normal communication using the extraction, solidify the net of the extraction Close MAC Address.
In one of the embodiments, the method also includes: when detecting the address gateway MAC using the extraction When being unable to normal communication, the gateway MAC address in another first arp response is extracted;The current gateway MAC Address used is replaced Change the gateway MAC address in another first arp response of extraction into;When another gateway for detecting the use extraction When MAC Address energy normal communication, solidify another gateway MAC address of the extraction.
It is described in one of the embodiments, that the current net that computer equipment uses is detected according to first ARP request Whether can normal communication, comprising: detect the current gateway that computer equipment uses according to first ARP request if closing MAC Address Whether MAC Address is cured;Judge whether the current gateway MAC Address can normal communication according to whether being cured.
In one of the embodiments, the method also includes: to dns server send DNS query, when DNS query at When function, current gateway MAC Address energy normal communication used in the computer equipment is determined.
A kind of wireless network communication apparatus, described device include: ARP processing module, for receiving the of the first AP transmission One ARP request;Communication check module, for detecting the current gateway MAC that computer equipment uses according to first ARP request Address whether can normal communication;Gateway MAC address processing module, for working as current gateway MAC used in computer equipment When the energy normal communication of location, continues to use the current gateway MAC Address and carry out wireless communication.
A kind of computer readable storage medium, is stored thereon with computer program, and the computer program is held by processor The step of wireless network communication method in the various embodiments described above is realized when row.
A kind of computer equipment can be run on a memory and on a processor including memory, processor and storage Computer program, the processor realize the wireless network communication method in the various embodiments described above when executing the computer program The step of.
Above-mentioned wireless network communication method, device, storage medium and computer equipment, when computer equipment receives first When the first ARP request that AP is sent, and when the address gateway MAC energy normal communication currently used in computer equipment, it can neglect Gateway MAC address slightly in first ARP request, does not change currently used gateway MAC address, to keep current net Close the stability of MAC Address.So that there are nothings after can avoid updating gateway MAC address as the gateway MAC address in the first ARP Method carries out the risk of wireless communication by the first AP, improves the stability of wireless communication.
Detailed description of the invention
In order to illustrate the technical solutions in the embodiments of the present application or in the prior art more clearly, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this Some embodiments of application for those of ordinary skill in the art without creative efforts, can be with It obtains other drawings based on these drawings.
Fig. 1 is the application environment schematic diagram of wireless network communication method in one embodiment
Fig. 2 is the internal structure chart of computer equipment in one embodiment;
Fig. 3 is the flow chart of wireless network communication method in one embodiment;
Fig. 4 is the flow chart of wireless network communication method in another embodiment;
Fig. 5 is in one embodiment to the selection of gateway MAC address and the flow chart of cured process;
Fig. 6 is the flow chart of wireless network communication method in another embodiment;
Fig. 7 is the structural block diagram of wireless network communication apparatus in one embodiment;
Fig. 8 is the structural block diagram of wireless network communication apparatus in another embodiment;
Fig. 9 is the internal structure chart of mobile phone in one embodiment.
Specific embodiment
It is with reference to the accompanying drawings and embodiments, right in order to which the objects, technical solutions and advantages of the application are more clearly understood The application is further elaborated.It should be appreciated that specific embodiment described herein is only used to explain the application, and It is not used in restriction the application.
It is appreciated that term " first " used in this application, " second " etc. can be used to describe various elements herein, But these elements should not be limited by these terms.These terms are only used to distinguish the first element from the other element.Citing comes It says, in the case where not departing from scope of the present application, the first ARP request can be known as the second ARP request, and similarly, it can Second ARP request is known as the first ARP request.First ARP request and the second ARP request both ARP request, but it is not It is same ARP request.
Fig. 1 is the application environment schematic diagram of wireless network communication method in one embodiment.As shown in Figure 1, this applies ring Border includes computer equipment 110 and AP120.Wherein, AP120 may include multiple, computer equipment 110 can with multiple AP120 into Row communication, and wireless communication can be carried out by connecting one of AP120 or others AP.In one embodiment, it counts The gateway MAC address in the one of AP120 being connected to can be obtained by calculating machine equipment, to use acquired gateway MAC address Wireless communication is carried out, for example carries out WiFi (WIreless Fidelity, Wireless Fidelity) communication.
Fig. 2 is the schematic diagram of internal structure of computer equipment in one embodiment.As shown in Fig. 2, the computer equipment packet Include processor, memory and the network interface connected by system bus.Wherein, which calculates and controls energy for providing Power supports the operation of entire computer equipment.Memory for storing data, program, and/or instruction code etc., on memory At least one computer program is stored, which can be executed by processor, and provide in the embodiment of the present application to realize Wireless network communication method suitable for computer equipment.Memory may include magnetic disk, CD, read-only memory (Read- Only Memory, ROM) etc. non-volatile memory mediums or random access memory (Random-Access-Memory, RAM) etc..For example, in one embodiment, memory includes non-volatile memory medium and built-in storage.Non-volatile memories Media storage has operating system and computer program.The computer program can be performed by processor, for realizing following A kind of wireless network communication method provided by a embodiment.Built-in storage is the operating system meter in non-volatile memory medium The running environment of calculation machine program offer cache.Network interface can be Ethernet card or wireless network card etc., be used for and outside Computer equipment communicated.The computer equipment can be mobile phone, tablet computer or personal digital assistant or wearable Equipment etc..
It will be understood by those skilled in the art that structure shown in Figure 2, only part relevant to application scheme is tied The block diagram of structure does not constitute the restriction for the computer equipment being applied thereon to application scheme, specific computer equipment It may include perhaps combining certain components or with different component layouts than more or fewer components as shown in the figure.Such as The computer equipment may also include display screen and input unit.Display screen can be liquid crystal display or electric ink display screen Deng input unit can be the touch layer covered on display screen, be also possible to the key being arranged on computer equipment shell, track Ball or Trackpad are also possible to external keyboard, Trackpad or mouse etc..
In one embodiment, as shown in figure 3, providing a kind of wireless network communication method.The present embodiment is mainly with this Method is applied to be illustrated for computer equipment 110 as shown in Figure 1, this method comprises:
Step 302, the first ARP request that the first AP is sent is received.
In the present embodiment, the first AP is the wireless aps that ARP request is sent to computer equipment, and the first AP can be calculating The current connected AP of machine equipment (the 2nd AP i.e. hereinafter), can also not connected by computer equipment, but actively to The wireless aps of computer equipment transmission ARP request.First ARP (Address Resolution Protocol, address resolution association View) request is AP to ARP request transmitted by computer equipment (ARP Request).In one embodiment, also integrated in AP Corresponding gateway, so that terminal, which when being connected to the AP, can pass through the AP, realizes wireless communication.
First AP can send the first ARP request to computer equipment according to preset frequency, wrap in the first ARP request Gateway IP (Internet Protocol, internet protocol) address, gateway MAC address and computer equipment IP address are contained.Quilt The computer equipment for being configured with the computer equipment IP address can receive first ARP request.Wherein, preset frequency can For any appropriate frequency, for example can be sent for 5 seconds primary.
Computer equipment can obtain gateway MAC address information therein when receiving first ARP request.At one In embodiment, computer equipment can also send the second arp response (ARP Response) to the first AP, so that the first AP Know that computer equipment has received the first ARP request.Wherein, the second arp response is that the ARP that computer equipment is sent to AP is rung It answers.
Step 304, whether can be normal according to the current gateway MAC Address that the first ARP request detection computer equipment uses Communication.
In the present embodiment, computer equipment is triggered after receiving first ARP request to the current gateway MAC used Address whether can normal communication detection.Current gateway MAC Address used in computer equipment is computer equipment setting For carrying out the gateway MAC address of wireless communication, indicate computer using the gateway MAC address for carrying out wireless network Communication.Wherein, normal communication indicates that computer equipment is able to access that outer net, i.e. expression computer equipment can surf the Internet.
For example, when the computer equipment uses the outer net of current gateway MAC Address input field entitled " m.***.com " On the situations such as outer online data of data or input field entitled " m.sina.cn " under, i.e. expression computer equipment makes Current gateway MAC Address energy normal communication.Conversely, if outer network data can not be accessed, then it represents that computer equipment used Current gateway MAC Address is unable to normal communication.
Step 306, it when the current gateway MAC Address energy normal communication used in the computer equipment, continues to use current Gateway MAC address carries out wireless communication.
In the present embodiment, when computer equipment judgement can be normally carried out network communication using current gateway MAC Address, it can neglect Slightly first ARP request, that is, ignore the gateway MAC address information for including in the first ARP, gateway not currently used to this MAC Address is changed, and is continued to use current gateway MAC Address and is carried out wireless communication, keeps currently used gateway MAC Address is constant.
Wireless network communication method provided by the present embodiment, when computer equipment receives the first of the first AP transmission When ARP request, and when gateway MAC address energy normal communication currently used in computer equipment, the first ARP can be ignored and ask Gateway MAC address in asking does not change currently used gateway MAC address, to keep the steady of current gateway MAC Address It is qualitative.So that can avoid update gateway MAC address be the first ARP in gateway MAC address after, exist can not by the first AP come The risk for carrying out wireless communication, improves the stability of wireless communication.
In one embodiment, as shown in figure 4, providing another wireless network communication method, this method further includes pair The current gateway MAC Address used is unable to the treatment process of normal communication.This method comprises:
Step 402, the first ARP request that the first AP is sent is received.
Step 404, whether can be normal according to the current gateway MAC Address that the first ARP request detection computer equipment uses Otherwise communication, executes step 408 if so, thening follow the steps 406.
Step 406, it continues to use current gateway MAC Address and carries out wireless communication.
Step 408, the gateway MAC address in the first ARP request is extracted.
In the present embodiment, computer equipment is detecting that it is normal wireless that the current gateway MAC Address used can not carry out When network communication, such as when showing as not surfing the Internet, the gateway MAC address for including in first ARP request can extract.
In one embodiment, one of following manner or a variety of combinations can be used to realize to net in computer equipment Close the acquisition of MAC Address:
Computer equipment can be directed to the first received ARP request, identify and be used to store net in first ARP request The information for closing the fixed position of MAC Address, extracts the information of the fixed position, to obtain the gateway in the first ARP request MAC Address.Or can recognize the information that corresponding gateway MAC address label is carried in first ARP request, it extracts this and fixes Information at position, to realize the acquisition to the gateway MAC address in the first ARP request.Or also it can recognize that the first ARP is asked The information format for all information for including in asking, that identifies meets the information of gateway MAC address format, to realize to gateway The acquisition of MAC address information.
Step 410, the current gateway MAC Address used is substituted for the address gateway MAC in the first ARP request, and made Wireless communication is carried out with replaced gateway MAC address.
In the present embodiment, the gateway MAC address for including in the first ARP request that computer equipment can will acquire is set as New gateway MAC address used in computer equipment realizes the replacement to the address used gateway MAC, and uses replacement Gateway MAC address afterwards carries out wireless communication.By detecting that currently used gateway MAC address can not normal communication When, the gateway MAC address used is updated in time, can be improved computer equipment can restore normal wireless network communication and Shi Xing.
In one embodiment, after above-mentioned steps 410, this method further include: when using replaced gateway MAC When the energy normal communication of location, solidify replaced gateway MAC address.
In the present embodiment, computer equipment can detect after the gateway MAC address used is substituted and use replaced net Whether close MAC Address can normal communication.When detect can normal communication when, further to the updated gateway MAC used Location is solidified, i.e., gateway MAC address used in holding computer equipment is constant.Such as it can be to used replaced net It closes MAC Address and permanent is set.So that keeping when keeping connection status with above-mentioned first AP using in the first AP Gateway MAC address carries out wireless communication, not as other AP ARP request sent and/or arp response are currently used to change Gateway MAC address, to keep the stability of wireless communication.
In one embodiment, the above method further includes the selection and cured process to gateway MAC address, which can It is executed before above-mentioned steps 302, as shown in figure 5, the process includes:
Step 502, the gateway ip address for the 2nd AP connecting with computer equipment is obtained.
In the present embodiment, the AP that the 2nd AP is connected by computer equipment, when computer equipment and a certain AP are successfully connected When, the gateway ip address of the AP can be obtained.I.e. when computer equipment connects upper a certain WiFi, the net of respective wireless AP is obtained The IP address of pass.
Step 504, the second ARP request is initiated according to gateway ip address, receives each AP and is made for the 2nd ARP request The first arp response.
Second ARP request is the ARP request initiated from computer equipment to wireless aps, and computer equipment is by sending ARP Request, to search workable gateway MAC address.IP address, computer in second ARP request comprising computer equipment itself The gateway MAC address that equipment uses and the gateway ip address used enable the AP with the gateway ip address to receive Second ARP request, and the first arp response is sent to computer equipment.Wherein, the gateway IP for including in second ARP request Address is the gateway ip address obtained in above-mentioned steps 502.Receiving in the AP of second ARP request may include step 502 In the 2nd AP.
It is to be appreciated that receiving the AP of second ARP request there may be multiple, each receives the 2nd ARP and ask The AP asked can make the first arp response to the computer equipment.Wherein, the first ARP response is to be sent from AP to computer equipment Arp response.The gateway ip address in the AP for sending the arp response is contained in first arp response, further includes gateway MAC Location.Computer equipment can receive the first arp response that each AP is sent.
Step 506, when detecting the presence of gateway conflict, with extracting the gateway MAC in one of them first arp response Location, using the gateway MAC address of extraction as the address gateway MAC for being used to carry out wireless communication.
In the present embodiment, when computer equipment receives the first arp response that multiple AP are sent, determine that there are gateway punchings It is prominent.I.e. when the gateway ip address for detecting other AP is identical as the gateway ip address of the 2nd AP, determine that there are gateway conflicts.This When, computer equipment can extract the gateway MAC address in one of them first arp response.
The gateway MAC address of extraction can be provided for carrying out the gateway MAC of wireless communication by computer equipment Location, i.e., the fixed gateway MAC address used.When needing to carry out wireless communication, using the fixation gateway MAC address into Row wireless communication.
Step 508, when detecting using the gateway MAC address energy normal communication extracted, with solidifying the gateway MAC of extraction Location.
In the present embodiment, computer equipment it is detectable using the gateway MAC address currently extracted whether can normal communication, Whether can normally surf the Internet, if so, solidifying the gateway MAC address currently extracted, i.e., be used in holding computer equipment Gateway MAC address it is constant, not as currently used gateway is changed in other AP ARP request sent and/or arp response MAC Address, to keep the stability of wireless communication.
In one embodiment, the above method further includes that not can be carried out normal lead to for the gateway MAC address using extraction The treatment process of letter.The process includes: to extract another when detecting that the gateway MAC address using extraction is unable to normal communication Gateway MAC address in a first arp response;By the current gateway MAC Address used be substituted for extraction another first Gateway MAC address in arp response;When detecting using another gateway MAC address energy normal communication extracted, solidification is mentioned Another gateway MAC address taken.
It is replaceable when detecting that the gateway MAC address currently extracted can not carry out wireless communication in the present embodiment Used gateway MAC address.Computer equipment can continue to choose one again in multiple first ARP response of acquisition, And extract the gateway MAC address in the first arp response chosen again.Wherein, the gateway MAC address extracted again with select before The gateway MAC address taken is all different.
Computer equipment can fix the gateway MAC address extracted again, and detection uses the gateway MAC address extracted again Whether normal communication can be carried out, if so, solidifying the gateway MAC address extracted again.
In one embodiment, computer equipment is when detecting that currently fixed gateway MAC address can not recommunicate, The sustainable gateway MAC address extracted in another first different arp response, is updated to for carrying out wireless communication Gateway MAC address, until solidifying updated gateway when detecting using the energy normal communication of the address updated gateway MAC MAC Address or all gateway MAC address, which detect, to be finished.To realize that it is logical that computer equipment can successfully carry out wireless network Letter.And after realizing wireless communication, currently used gateway MAC address is no longer changed, keeps the stability of wireless communication.
In one embodiment, step 304 includes: to detect the current net that computer equipment uses according to the first ARP request Close whether MAC Address is cured;Judge whether current gateway MAC Address can normal communication according to whether being cured.
In the present embodiment, when computer equipment receives the first ARP request of the first AP transmission, and/or the is received When one arp response, the state of gateway MAC address used in computer equipment can detect, when the state is in solid state When, then determine current gateway MAC Address energy normal communication used in computer equipment, the first ARP request can be ignored, to continue Wireless communication is carried out using current gateway MAC Address, so that the stability of wireless communication can be improved.Meanwhile it protecting When holding solid state, ignore first ARP request, can also reduce processing of the computer equipment to unnecessary data, save The resource of itself.
In one embodiment, the above method further include: DNS query is sent to dns server, when DNS successful inquiring When, determine current gateway MAC Address energy normal communication used in computer equipment.
In the present embodiment, the usable current gateway MAC Address initiation DNS of computer equipment (Domain Name System, Domain name system) server initiation DNS query.It wherein, may include being asked to the IP inquiry of the website of default domain name in the DNS query It asks, which can be the domain name of any setting.As the IP for presetting domain name website to this for receiving dns server return When address, then DNS query success is determined.Wherein, only network is in normal situation, and DNS query could succeed, when detecting When DNS query success, current gateway MAC Address energy normal communication used in computer equipment is determined.
In the various embodiments described above need to detect gateway MAC address that computer equipment uses whether can normal communication mistake Journey can be determined by DNS query.
In one embodiment, as shown in fig. 6, providing another wireless network communication method, this method comprises:
Step 602, the gateway ip address for the 2nd AP connecting with computer equipment is obtained.
In the present embodiment, computer equipment can connect a certain AP, and when being connected to a certain AP, the AP of the connection is Two AP.The gateway ip address can be the gateway IP that the 2nd AP includes into the ARP request or arp response that computer equipment is sent Address.For example the gateway ip address is 192.168.0.1.
Wherein, the first ARP request, the first arp response respectively indicate the ARP request sent by AP, arp response;Second ARP request, the second arp response respectively indicate ARP request, the arp response sent by computer equipment.
Step 604, the second ARP request is initiated according to gateway ip address, receives each AP and is made for the 2nd ARP request The first arp response.
In the present embodiment, in the ARP request that computer equipment issues, the address IP comprising computer equipment itself is calculated The gateway MAC address and gateway ip address of machine equipment.The gateway ip address is the gateway IP that obtains in above-mentioned steps 602 Location.In the arp response that AP is issued, the address IP and gateway gateway MAC address comprising gateway itself.Net in a certain AP When the gateway ip address carried in pass IP address and the second ARP request is identical, the first arp response can be sent to computer equipment.
Computer equipment is to the gateway MAC address that the AP purpose for issuing ARP request is to find gateway.Computer equipment It is if equipment in the same local area network, in the same local area network is communicated, to use gateway MAC address with gateway.Meter It calculates and uses IP address between machine equipment and outer net.For computer equipment in order to access outer net, all data packets will carry net The gateway MAC address of pass.
For example, when there are two AP of AP1 and AP2, AP1 to be connected by WAN (Wide Area Network, wide area network) Outer net is connect, and AP2 connects the LAN mouth of AP1, the net of AP1 and AP2 by LAN (Local Area Network, local area network) mouth It is identical to close IP address, is such as 192.168.1.1.For such situation, computer equipment is only by the gateway MAC for having AP1 Location could surf the Internet as the gateway MAC address of gateway.When the second ARP request that computer equipment is initiated for such situation, 2nd ARP request carries gateway ip address 192.168.1.1, then above-mentioned AP1 and AP2 can send the to computer equipment One arp response.
Step 606, it detects whether that there are gateway conflicts, if so, thening follow the steps 608, otherwise, executes step 620.
In the present embodiment, computer equipment can detect whether to receive the first arp response that multiple AP are sent, and work as computer When equipment receives the first arp response more than AP transmission, determine that there are gateway conflicts.It ought detect the net of other AP When pass IP address is identical as the gateway ip address of the 2nd AP, determine that there are gateway conflicts.Such as when for above-mentioned two gateway IP When identical AP1 and AP2 in location, determine that there are gateway conflicts.
In one embodiment, before step 604, further includes: detect whether the gateway ip address can be used, if so, Execute step 604.
In the present embodiment, whether the detectable gateway ip address currently connected of computer equipment is workable gateway IP Otherwise location, produces if so, initiating the second ARP request according to gateway ip address and shows that gateway ip address is not available and mention Show information, so that user chooses whether to continue to connect the 2nd AP, and responds according to the operation of the user received and trigger Instruction.
Step 608, the gateway MAC address in one of them first arp response is extracted, the gateway MAC address of extraction is made For the gateway MAC address for carrying out wireless communication.
In one embodiment, gateway MAC in extractable the first arp response being firstly received of computer equipment Location, to improve the efficiency for realizing wireless communication.The gateway MAC address of extraction can be provided for carrying out wireless by computer equipment The gateway MAC address of network communication, i.e., the fixed gateway MAC address used, so that the gateway MAC address using the fixation carries out Wireless communication.
In one embodiment, computer equipment each of can will receive the gateway MAC address in the first arp response It is stored in corresponding ARP list, and extracts the address one of gateway MAC from the ARP list.It wherein, can be according to first The receiving time of arp response sequentially stores, and the gateway MAC address in rear received first ARP response is sorted and is connect formerly After receiving.So as to extract a gateway MAC address in ARP list every time.
In one embodiment, computer equipment can for it is each detected whether can normal communication gateway MAC Location stores corresponding testing result, forms communication check record.The gateway that history uses is contained in communication check record The newest testing result of MAC Address, i.e., whether can normal communication result.
After receiving the first arp response that multiple AP make for the second ARP request, obtain in each arp response Gateway MAC address.Detection knot of the inquiry with the presence or absence of one or more gateway MAC address obtained from communication check record Fruit.If so, the gateway MAC address of the energy normal communication of state-of-the-art record is chosen, for carrying out the gateway of wireless communication MAC Address.If the testing result for inquiring the gateway MAC address obtained in the presence of one or more is to be unable to normal communication, can It is preferential to choose other gateway MAC address, for carrying out the gateway MAC address of wireless communication.By forming communication check Record is recorded to choose gateway MAC address according to the communication check, be can be improved with selecting the gateway MAC for capableing of normal communication The efficiency of location.
Step 610, detection using the gateway MAC address extracted whether can normal communication, it is no if so, then follow the steps 612 Then, it returns and re-execute the steps 608.
In one embodiment, it when detecting that the gateway MAC address extracted using this is unable to normal communication, updates logical Letter detection record, and choose again and detect gateway MAC address ready for use.Wherein, if not including in communication check record The gateway MAC address of this extraction and testing result are then added to the communication check by this gateway MAC address extracted In record.If comprising communication check is recorded, to the testing result of this gateway MAC address extracted is substituted for this Testing result.
It in one embodiment, can automatic trigger after having chosen the gateway MAC address for carrying out wireless communication Whether DNS query successfully determines whether fixed gateway MAC address can normal communication according to DNS query.When detecting DNS When successful inquiring, fixed gateway MAC address energy normal communication is determined.
The gateway MAC address chosen can be used in computer equipment, and the IP for sending the website of default domain name to dns server is looked into Request is ask, when receiving when presetting the IP address of domain name website to this of dns server return, then determines DNS query success.
Computer equipment requires the targeted website IP address for knowing access to access outer net.But usually just know that mesh Mark the domain name of website, the IP address without knowing targeted website.Therefore, it is necessary to get IP address by DNS process.Treat as When function gets the IP address of targeted website, DNS query success is determined, i.e., whether fixed gateway MAC address can normal communication.
For example, the domain name of the targeted website of preset access is " m.***.com ", and computer equipment can be to dns Server: 192.168.0.1 sends the DNS query of inquiry " m.***.com " IP address.Dns server: 192.168.0.1, " m.***.com " corresponding IP address can be replied to computer equipment, for example the address IP has: 14.215.178.37 and 14.215.178.36.During this, DNS query success determines whether fixed gateway MAC address can normal communication.
Step 612, solidify gateway MAC address.
In the present embodiment, computer equipment is arranged currently used gateway MAC address after DNS query success Permanent is solidified, to use current gateway MAC Address to carry out wireless communication.So that it is above-mentioned there are AP1 and In the case where AP2, the gateway MAC address after solidification will not be changed.
Step 614, the first ARP request that the first AP is sent is received.
In the present embodiment, the first AP includes the 2nd above-mentioned AP, for the AP for sending ARP request to computer equipment.This In one ARP request, the IP address comprising gateway itself, the IP address of gateway MAC address and computer equipment.
Step 616, detect whether the current gateway MAC Address that computer equipment uses is cured according to the first ARP request, If so, thening follow the steps 618, otherwise, step 620 is executed.
In the present embodiment, when the current gateway MAC Address used is cured, can to current gateway the address IP setting The solidification of response marks.So that it is subsequent receive the first ARP request again after, extract the gateway ip address in the request, detection meter Calculate whether machine equipment is provided with solidification label to the gateway ip address, if so, whether determining the current gateway MAC Address used It is cured.The label that solidifies of setting can be the recording status label of NO_ARP and NUD_NOARP.
Step 618, it continues to use current gateway MAC Address and carries out wireless communication.
Step 620, gateway MAC address used in computer equipment is updated, is carried out using updated gateway MAC address Wireless communication.
Above-mentioned wireless network communication method may make that when detecting multiple gateway IP having the same, solidification is wherein One can carry out the gateway MAC address of normal wireless network communication, not to avoid gateway MAC address used in computer equipment It converts disconnectedly, causes wireless communication unstable.
In one embodiment, as shown in fig. 7, providing a kind of wireless network communication apparatus, which includes:
ARP processing module 702, for receiving the first ARP request of the first AP transmission.
Communication check module 704, for according to the first ARP request with detecting the current gateway MAC that uses of computer equipment Location whether can normal communication.
Gateway MAC address processing module 706, can be normal for working as the address current gateway MAC used in computer equipment When communication, continues to use current gateway MAC Address and carry out wireless communication.
In one embodiment, gateway MAC address processing module 706 is also used to when being unable to normal communication, extracts first Gateway MAC address in ARP request;The current gateway MAC Address used is substituted for the gateway MAC in the first ARP request Location, and wireless communication is carried out using replaced gateway MAC address.
In one embodiment, gateway MAC address processing module 706 is also used to when using replaced gateway MAC When the energy normal communication of location, solidify replaced gateway MAC address.
In one embodiment, as shown in figure 8, providing another wireless network communication apparatus, the device further include:
Gateway ip address obtains module 708, for obtaining the gateway ip address for the 2nd AP connecting with computer equipment.
ARP processing module 702 is also used to initiate the second ARP request according to gateway ip address, receives each AP for second The first arp response that ARP request is made.
Gateway MAC address processing module 706 be also used to when detect the presence of gateway conflict when, extract one of them first Gateway MAC address in arp response, as the gateway MAC for being used to carry out wireless communication using the gateway MAC address of extraction Location;When detecting using the gateway MAC address energy normal communication extracted, solidify the gateway MAC address of extraction.
In one embodiment, gateway MAC address processing module 706 is also used to work as the gateway MAC detected using extracting When address is unable to normal communication, the gateway MAC address in another first arp response is extracted;By the current gateway MAC used Location is substituted for the gateway MAC address in another first arp response of extraction;When another gateway for detecting that use is extracted When MAC Address energy normal communication, solidify another gateway MAC address of extraction.
In one embodiment, communication check module 704 is also used to detect computer equipment according to the first ARP request and use Current gateway MAC Address whether be cured;Judge whether current gateway MAC Address can normal communication according to whether being cured.
In one embodiment, communication check module 704 is also used to send DNS query to dns server, works as DNS query When success, current gateway MAC Address energy normal communication used in computer equipment is determined.
The division of modules is only used for for example, in other embodiments in above-mentioned apparatus, can by the device according to Need to be divided into different modules, to complete all or part of function of above-mentioned apparatus.Modules in above-mentioned apparatus can be complete Portion or part are realized by software, hardware and combinations thereof.Above-mentioned each module can be embedded in the form of hardware or independently of calculating In processor in machine equipment, it can also be stored in a software form in the memory in computer equipment, in order to processor It calls and executes the corresponding operation of the above modules.The processor can be central processing unit (CPU), microprocessor, monolithic Machine etc..
In one embodiment, a kind of computer readable storage medium is provided, computer program is stored thereon with, is calculated The step of wireless network communication method in the various embodiments described above is realized when machine program is executed by processor.
In one embodiment, it is performed the steps of when computer program is executed by processor and receives what the first AP was sent First ARP request;Whether can positive normal open according to the address current gateway MAC that the first ARP request detection computer equipment uses Letter;When the current gateway MAC Address energy normal communication used in the computer equipment, continue to use current gateway MAC Address into Row wireless communication.
In one embodiment, it also performs the steps of to work as when computer program is executed by processor and is unable to normal communication When, extract the gateway MAC address in the first ARP request;The address current gateway MAC used is substituted in the first ARP request Gateway MAC address, and using replaced gateway MAC address carry out wireless communication.
In one embodiment, it is also performed the steps of when computer program is executed by processor replaced when using When gateway MAC address energy normal communication, solidify replaced gateway MAC address.
In one embodiment, acquisition is also performed the steps of when computer program is executed by processor to set with computer The gateway ip address of 2nd AP of standby connection;The second ARP request is initiated according to gateway ip address, receives each AP for second The first arp response that ARP request is made;When detecting the presence of gateway conflict, the net in one of them first arp response is extracted MAC Address is closed, using the gateway MAC address of extraction as the gateway MAC address for being used to carry out wireless communication;Make when detecting When with the gateway MAC address energy normal communication of extraction, solidify the gateway MAC address of extraction.
In one embodiment, it also performs the steps of to work as when computer program is executed by processor and detects that use mentions When the gateway MAC address taken is unable to normal communication, the gateway MAC address in another first arp response is extracted;Work as what is used Preceding gateway MAC address is substituted for the gateway MAC address in another first arp response of extraction;Extraction is used when detecting When another gateway MAC address energy normal communication, solidify another gateway MAC address of extraction.
In one embodiment, it also performs the steps of when computer program is executed by processor and is asked according to the first ARP Whether the current gateway MAC Address for asking detection computer equipment to use is cured;Current gateway MAC is judged according to whether being cured Address whether can normal communication.
In one embodiment, it also performs the steps of when computer program is executed by processor and is sent to dns server DNS query determines current gateway MAC Address energy normal communication used in computer equipment when DNS query success.
In one embodiment, a kind of computer equipment is provided, including memory, processor and storage are on a memory And the computer program that can be run on a processor, processor are realized wireless in the various embodiments described above when executing computer program The step of network communication method.
The embodiment of the present application also provides a kind of computer equipments.As shown in figure 9, for ease of description, illustrate only with The relevant part of the embodiment of the present application, it is disclosed by specific technical details, please refer to the embodiment of the present application method part.The calculating Machine equipment can be include mobile phone, tablet computer, PDA (Personal Digital Assistant, personal digital assistant), Any terminal devices such as POS (Point of Sales, point-of-sale terminal), vehicle-mounted computer, wearable device are with computer equipment For mobile phone:
Fig. 9 is the block diagram of the part-structure of mobile phone relevant to computer equipment provided by the embodiments of the present application.With reference to figure 9, mobile phone 900 includes: radio frequency (Radio Frequency, RF) circuit 910, memory 920, input unit 930, display unit 940, sensor 950, voicefrequency circuit 960, Wireless Fidelity (wireless fidelity, WiFi) module 970, processor 980, And the equal components of power supply 990.It will be understood by those skilled in the art that handset structure shown in Fig. 9 does not constitute the limit to mobile phone It is fixed, it may include perhaps combining certain components or different component layouts than illustrating more or fewer components.
Wherein, RF circuit 910 can be used for receiving and sending messages or communication process in, signal sends and receivees, can be by base station After downlink information receives, handled to processor 980;The data of uplink can also be sent to base station.In general, RF circuit include but Be not limited to antenna, at least one amplifier, transceiver, coupler, low-noise amplifier (Low Noise Amplifier, LNA), duplexer etc..In addition, RF circuit 910 can also be communicated with network and other equipment by wireless communication.Above-mentioned channel radio Any communication standard or agreement, including but not limited to global system for mobile communications (Global System of can be used in letter Mobile communication, GSM), general packet radio service (General Packet Radio Service, GPRS), CDMA (Code Division MultIPle Access, CDMA), wideband code division multiple access (Wideband Code Division MultIPle Access, WCDMA), long term evolution (Long Term Evolution, LTE)), Email, Short message service (Short Messaging Service, SMS) etc..
Memory 920 can be used for storing software program and module, and processor 980 is stored in memory 920 by operation Software program and module, thereby executing the various function application and data processing of mobile phone.Memory 920 can mainly include Program storage area and data storage area, wherein program storage area can application journey needed for storage program area, at least one function Sequence (such as application program, application program of image player function of sound-playing function etc.) etc.;Data storage area can store root Created data (such as IP address, the gateway MAC address of mobile phone is used according to mobile phone;The IP address of gateway, gateway MAC Location etc.) etc..In addition, memory 920 may include high-speed random access memory, it can also include nonvolatile memory, example Such as at least one disk memory, flush memory device or other volatile solid-state parts.
Input unit 930 can be used for receiving the number or character information of input, and generate with the user setting of mobile phone with And the related key signals input of function control.Specifically, input unit 930 may include that touch panel 931 and other inputs are set Standby 932.Touch panel 931, alternatively referred to as touch screen, collecting the touch operation of user on it or nearby, (for example user makes With the operation of any suitable object or attachment such as finger, stylus on touch panel 931 or near touch panel 931), and Corresponding attachment device is driven according to preset formula.In one embodiment, touch panel 931 may include touch detection Two parts of device and touch controller.Wherein, the touch orientation of touch detecting apparatus detection user, and detect touch operation band The signal come, transmits a signal to touch controller;Touch controller receives touch information from touch detecting apparatus, and by it It is converted into contact coordinate, then gives processor 980, and order that processor 980 is sent can be received and executed.In addition, can To realize touch panel 931 using multiple types such as resistance-type, condenser type, infrared ray and surface acoustic waves.In addition to touch panel 931, input unit 930 can also include other input equipments 932.Specifically, other input equipments 932 may include but unlimited In one of physical keyboard, function key (such as volume control button, switch key etc.) etc. or a variety of.
Display unit 940 can be used for showing information input by user or be supplied to user information and mobile phone it is various Menu.Display unit 940 may include display panel 941.In one embodiment, liquid crystal display (Liquid can be used Crystal Display, LCD), the forms such as Organic Light Emitting Diode (Organic Light-Emitting Diode, OLED) To configure display panel 941.In one embodiment, touch panel 931 can cover display panel 941, when touch panel 931 is examined After measuring touch operation on it or nearby, processor 980 is sent to determine the type of touch event, is followed by subsequent processing device 980 provide corresponding visual output according to the type of touch event on display panel 941.Although in Fig. 9, touch panel 931 and display panel 941 are the input and input function for realizing mobile phone as two independent components, but in certain realities Apply in example, can be integrated by touch panel 931 and display panel 941 and that realizes mobile phone output and input function.
Mobile phone 900 may also include at least one sensor 950, such as optical sensor, motion sensor and other sensings Device.Specifically, optical sensor may include ambient light sensor and proximity sensor, wherein ambient light sensor can be according to environment The light and shade of light adjusts the brightness of display panel 941, and proximity sensor can close display panel when mobile phone is moved in one's ear 941 and/or backlight.Motion sensor may include acceleration transducer, can detect by acceleration transducer and adds in all directions The size of speed can detect that size and the direction of gravity when static, can be used to identify application (such as the horizontal/vertical screen of mobile phone posture Switching), Vibration identification correlation function (such as pedometer, tap) etc.;In addition, mobile phone can also configure gyroscope, barometer, humidity Other sensors such as meter, thermometer, infrared sensor etc..
Voicefrequency circuit 960, loudspeaker 961 and microphone 962 can provide the audio interface between user and mobile phone.Audio-frequency electric Electric signal after the audio data received conversion can be transferred to loudspeaker 961, be converted to sound by loudspeaker 961 by road 960 Signal output;On the other hand, the voice signal of collection is converted to electric signal by microphone 962, is turned after being received by voicefrequency circuit 960 It is changed to audio data, then by after the processing of audio data output processor 980, another mobile phone can be sent to through RF circuit 910, Or audio data is exported to memory 920 so as to subsequent processing.
WiFi belongs to short range wireless transmission technology, and mobile phone can help user's transceiver electronics postal by WiFi module 970 Part, browsing webpage and access streaming video etc., it provides wireless broadband internet access for user.Although Fig. 9 is shown WiFi module 970, but it is understood that, and it is not belonging to must be configured into for mobile phone, it can according to need and omit.
Processor 980 is the control centre of mobile phone, using the various pieces of various interfaces and connection whole mobile phone, is led to It crosses operation or executes the software program and/or module being stored in memory 920, and call and be stored in memory 920 Data execute the various functions and processing data of mobile phone, to carry out integral monitoring to mobile phone.In one embodiment, it handles Device 980 may include one or more processing units.In one embodiment, processor 980 can integrate application processor and modulation Demodulation processor, wherein the main processing operation system of application processor, user interface and application program etc.;Modulation /demodulation processing Device mainly handles wireless communication.It is understood that above-mentioned modem processor can not also be integrated into processor 980.
Mobile phone 900 further includes the power supply 990 (such as battery) powered to all parts, it is preferred that power supply can pass through electricity Management system and processor 980 are logically contiguous, to realize management charging, electric discharge and power consumption by power-supply management system The functions such as management.
In one embodiment, mobile phone 900 can also include camera, bluetooth module etc..
In one embodiment, it is performed the steps of when processor executes computer program and receives the first AP is sent the One ARP request;Whether can normal communication according to the address current gateway MAC that the first ARP request detection computer equipment uses; When the current gateway MAC Address energy normal communication used in the computer equipment, continues to use current gateway MAC Address and carry out nothing Line network communication.
In one embodiment, it also performs the steps of when processor executes computer program when being unable to normal communication, Extract the gateway MAC address in the first ARP request;The net current gateway MAC Address used being substituted in the first ARP request MAC Address is closed, and carries out wireless communication using replaced gateway MAC address.
In one embodiment, it also performs the steps of to work as when processor executes computer program and uses replaced net When closing the normal communication of MAC Address energy, solidify replaced gateway MAC address.
In one embodiment, acquisition and computer equipment are also performed the steps of when processor executes computer program The gateway ip address of 2nd AP of connection;The second ARP request is initiated according to gateway ip address, receives each AP for the 2nd ARP Request the first arp response made;When detecting the presence of gateway conflict, the gateway in one of them first arp response is extracted MAC Address, using the gateway MAC address of extraction as the gateway MAC address for being used to carry out wireless communication;It is used when detecting When the gateway MAC address energy normal communication of extraction, solidify the gateway MAC address of extraction.
In one embodiment, it also performs the steps of to work as when processor executes computer program and detect using extraction Gateway MAC address when being unable to normal communication, extract the gateway MAC address in another first arp response;Work as what is used Preceding gateway MAC address is substituted for the gateway MAC address in another first arp response of extraction;Extraction is used when detecting When another gateway MAC address energy normal communication, solidify another gateway MAC address of extraction.
In one embodiment, it also performs the steps of when processor executes computer program and is requested according to the first ARP Whether the current gateway MAC Address that detection computer equipment uses is cured;According to whether being cured with judging current gateway MAC Location whether can normal communication.
In one embodiment, it also performs the steps of when processor executes computer program and is sent to dns server DNS query determines that the address current gateway MAC used in computer equipment can normal communication when DNS query success.
Those of ordinary skill in the art will appreciate that realizing all or part of the process in above-described embodiment method, being can be with Relevant hardware is instructed to complete by computer program.The computer program is storable on memory, for example is stored in In one non-volatile computer read/write memory medium.The program is performed, it can be achieved that including the implementation such as above-mentioned each method The process of example.
Any reference to memory, storage, database or other media used in this application may include non-volatile And/or volatile memory.Suitable nonvolatile memory may include read-only memory (ROM), programming ROM (PROM), Electrically programmable ROM (EPROM), electrically erasable ROM (EEPROM) or flash memory.Volatile memory may include depositing at random Access to memory (RAM), it is used as external cache.By way of illustration and not limitation, RAM is available in many forms, all Such as static RAM (SRAM), dynamic ram (DRAM), synchronous dram (SDRAM), double data rate sdram (DDR SDRAM), enhanced SDRAM (ESDRAM), synchronization link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic ram (DRDRAM) and memory bus dynamic ram (RDRAM).
The several embodiments of the application above described embodiment only expresses, the description thereof is more specific and detailed, but simultaneously The limitation to the application the scope of the patents therefore cannot be interpreted as.It should be pointed out that for those of ordinary skill in the art For, without departing from the concept of this application, various modifications and improvements can be made, these belong to the guarantor of the application Protect range.Therefore, the scope of protection shall be subject to the appended claims for the application patent.

Claims (8)

1. a kind of wireless network communication method, which comprises
Receive the first ARP request of the first AP transmission;
Whether can normal communication according to the current gateway MAC Address that first ARP request detection computer equipment uses;
When the current gateway MAC Address energy normal communication used in the computer equipment, with continuing to use the current gateway MAC Location carries out wireless communication;
Wherein, before receiving the first ARP request that the first AP is sent, the method also includes:
Obtain the gateway ip address for the 2nd AP connecting with computer equipment;
The second ARP request is initiated according to the gateway ip address, each AP is received and is directed to second ARP request is made first Arp response;
When computer equipment receives the first arp response that multiple AP are sent, determine that there are gateway conflicts;When detecting the presence of When gateway conflicts, the gateway MAC address in one of them first arp response is extracted, using the gateway MAC address of extraction as being used for Carry out the gateway MAC address of wireless communication;
When detecting the gateway MAC address energy normal communication using the extraction, solidify the gateway MAC address of the extraction;
It is described according to first ARP request detect the current gateway MAC Address that uses of computer equipment whether can normal communication, It include: to detect whether the current gateway MAC Address that computer equipment uses is cured according to first ARP request;According to being No be cured judges whether the current gateway MAC Address can normal communication.
2. the method according to claim 1, wherein the method also includes:
When being unable to normal communication, the gateway MAC address in first ARP request is extracted;
The current gateway MAC Address used is substituted for the gateway MAC address in first ARP request, and after use replacement Gateway MAC address carry out wireless communication.
3. according to the method described in claim 2, it is characterized in that, the method also includes:
When using the replaced gateway MAC address energy normal communication, solidify the replaced gateway MAC address.
4. the method according to claim 1, wherein the method also includes:
When detect be unable to normal communication using the gateway MAC address of the extraction when, extract in another first arp response Gateway MAC address;
The current gateway MAC Address used is substituted for the gateway MAC address in another first arp response of extraction;
When detecting another gateway MAC address energy normal communication using the extraction, solidify another of the extraction Gateway MAC address.
5. method according to claim 1 to 4, which is characterized in that the method also includes:
DNS query is sent to dns server, when DNS query success, determines current gateway used in the computer equipment MAC Address energy normal communication.
6. a kind of wireless network communication apparatus, which is characterized in that described device includes:
ARP processing module, for receiving the first ARP request of the first AP transmission;
Communication check module, the current gateway MAC Address for being used according to first ARP request detection computer equipment are No energy normal communication;
Gateway MAC address processing module, when for the current gateway MAC Address energy normal communication used in the computer equipment, It continues to use the current gateway MAC Address and carries out wireless communication;
Gateway ip address obtains module, for obtaining the gateway ip address for the 2nd AP connecting with computer equipment;
ARP processing module is also used to initiate the second ARP request according to gateway ip address, receives each AP for the second ARP request The first arp response made;
When computer equipment receives the first arp response that multiple AP are sent, determine that there are gateway conflicts;Gateway MAC address Processing module is also used to extract the gateway MAC address in one of them first arp response when detecting the presence of gateway conflict, Using the gateway MAC address of extraction as the gateway MAC address for being used to carry out wireless communication;
When detecting using the gateway MAC address energy normal communication extracted, solidify the gateway MAC address of extraction;
The communication check module is also used to detect the current gateway MAC Address that computer equipment uses according to the first ARP request Whether it is cured;Judge whether current gateway MAC Address can normal communication according to whether being cured.
7. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the computer program quilt The step of processor realizes any one of claims 1 to 5 the method when executing.
8. a kind of computer equipment including memory, processor and stores the meter that can be run on a memory and on a processor Calculation machine program, which is characterized in that the processor realizes any one of claims 1 to 5 institute when executing the computer program The step of stating method.
CN201710912386.7A 2017-09-29 2017-09-29 Wireless network communication method, device, storage medium and computer equipment Active CN107508931B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710912386.7A CN107508931B (en) 2017-09-29 2017-09-29 Wireless network communication method, device, storage medium and computer equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710912386.7A CN107508931B (en) 2017-09-29 2017-09-29 Wireless network communication method, device, storage medium and computer equipment

Publications (2)

Publication Number Publication Date
CN107508931A CN107508931A (en) 2017-12-22
CN107508931B true CN107508931B (en) 2019-08-30

Family

ID=60699527

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710912386.7A Active CN107508931B (en) 2017-09-29 2017-09-29 Wireless network communication method, device, storage medium and computer equipment

Country Status (1)

Country Link
CN (1) CN107508931B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110086685A (en) * 2019-06-13 2019-08-02 深圳市友华通信技术有限公司 Network recovery method based on the network terminal
CN110475315B (en) * 2019-08-19 2021-05-14 Oppo广东移动通信有限公司 Network connection control method and related product
CN114745738A (en) * 2020-12-23 2022-07-12 福建新大陆支付技术有限公司 WIFI communication IP conflict detection method based on POS and storage medium thereof

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102694876A (en) * 2012-05-10 2012-09-26 北京星网锐捷网络技术有限公司 Method and device for determining effectiveness of learned MAC (Media Access Control) address and gateway equipment
CN105282733A (en) * 2014-06-11 2016-01-27 三星电子株式会社 Electronic device and network connection method of electronic device
US9503881B2 (en) * 2011-08-03 2016-11-22 Huawei Technologies Co., Ltd. Method, device, and system for user equipment to access evolved packet core network

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101217448B (en) * 2008-01-18 2013-01-30 福建星网锐捷网络有限公司 Method and system to realize gateway dynamic load sharing
CN101827013A (en) * 2009-03-05 2010-09-08 华为技术有限公司 Method, device and system for balancing multi-gateway load
CN106376003B (en) * 2015-07-23 2019-11-19 中移(杭州)信息技术有限公司 Detect WLAN connection and WLAN data transmission method for uplink and its device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9503881B2 (en) * 2011-08-03 2016-11-22 Huawei Technologies Co., Ltd. Method, device, and system for user equipment to access evolved packet core network
CN102694876A (en) * 2012-05-10 2012-09-26 北京星网锐捷网络技术有限公司 Method and device for determining effectiveness of learned MAC (Media Access Control) address and gateway equipment
CN105282733A (en) * 2014-06-11 2016-01-27 三星电子株式会社 Electronic device and network connection method of electronic device

Also Published As

Publication number Publication date
CN107508931A (en) 2017-12-22

Similar Documents

Publication Publication Date Title
CN103501333B (en) Method, device and terminal equipment for downloading files
WO2018103492A1 (en) Method for setting wifi roaming, and terminal device
WO2018014745A1 (en) Network search method and device after roaming ends
CN107682910B (en) Traffic resource sharing method and device, mobile terminal and storage medium
CN107820331A (en) Call method, device, computer equipment and readable storage medium storing program for executing
CN111316673B (en) Electronic fence updating method and communication device
CN104253873A (en) Domain name parsing method, domain name server, domain name access method, system and terminal
CN106506728B (en) A kind of access point name configuration method and mobile terminal
CN103475996A (en) Network connecting method, network sharing method and devices
CN107484154B (en) Data switching method and device, terminal and computer readable storage medium
CN107508931B (en) Wireless network communication method, device, storage medium and computer equipment
CN109450949B (en) Method for unbinding numbers of multiple applications, mobile terminal and readable storage medium
CN108112028B (en) Network searching method and equipment for international roaming
CN106358254A (en) Network access control method and equipment
CN106658623A (en) Hotspot network switching method and terminal equipment
CN107820301A (en) Control method, device, terminal and the storage medium of WLAN switch
CN110149644A (en) Terminal communication control method, terminal device and computer readable storage medium
CN107623612B (en) Flow display method and device, computer equipment and computer readable storage medium
CN106445336A (en) Fast acquisition method for electronic resource and mobile terminal
CN107734495A (en) Information processing method, device, storage medium and terminal
CN106454975A (en) Hotspot network switching method and terminal equipment
CN105246075A (en) Access point connecting method and device
CN107484201A (en) Flow statistical method and device, terminal, computer-readable recording medium
CN106547874A (en) Multimedia recommendation method and device
WO2019062381A1 (en) Information processing method, device and mobile terminal, and computer readable storage medium

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
CB02 Change of applicant information

Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant after: OPPO Guangdong Mobile Communications Co., Ltd.

Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant before: Guangdong OPPO Mobile Communications Co., Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant