CN106713524A - AP device, network address conversion method and communication system - Google Patents

AP device, network address conversion method and communication system Download PDF

Info

Publication number
CN106713524A
CN106713524A CN201611238297.0A CN201611238297A CN106713524A CN 106713524 A CN106713524 A CN 106713524A CN 201611238297 A CN201611238297 A CN 201611238297A CN 106713524 A CN106713524 A CN 106713524A
Authority
CN
China
Prior art keywords
address
equipment
terminal device
request message
wave point
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201611238297.0A
Other languages
Chinese (zh)
Inventor
王江林
赵森林
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Maipu Communication Technology Co Ltd
Original Assignee
Maipu Communication 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 Maipu Communication Technology Co Ltd filed Critical Maipu Communication Technology Co Ltd
Priority to CN201611238297.0A priority Critical patent/CN106713524A/en
Publication of CN106713524A publication Critical patent/CN106713524A/en
Pending legal-status Critical Current

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/25Mapping addresses of the same type
    • H04L61/2503Translation of Internet protocol [IP] addresses

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Small-Scale Networks (AREA)

Abstract

The embodiment of the invention discloses an AP device, a network address conversion method and a communication system, relates to the technical field of communication, and aims at reducing the economic cost of a networking device in network deployment. The specific scheme is as follows: receiving a request message for accessing service corresponding to a target server sent by a terminal device by the AP device, wherein the request message comprises a source address and a destination address, the source address is an IP address of the terminal device, and the destination address is the IP address of the target server; converting the source address in the request message into a public network address of the AP device; forwarding the request message to the target server; receiving a reply message containing service response sent by the target server; converting the destination address in the reply message into the source address in the request message; and searching a wireless interface of the AP device corresponding to the terminal device in a stored mapping relation table, and sending the reply message to the terminal device through the wireless interface. The network address conversion method disclosed by the invention is applied to the AP device.

Description

A kind of AP equipment, method for network address translation and communication system
Technical field
The present invention relates to communication technical field, more particularly to a kind of AP equipment, method for network address translation and communication system.
Background technology
Traditional WLAN is by wireless controller (English:Wireless Access Point Controller, Referred to as:AC), WAP (English:Wireless Access Point, referred to as:AP) the group such as equipment and intermediate equipment Into, wherein, intermediate equipment can be:Interchanger, router or intelligent service gateway (English:Intelligent Services Gateway, referred to as:ISG).Specifically, the network design figure that reference picture 1 is given, wherein:AP equipment passes through local area with AC Net completes two layers or three layers communication, for IP address distribution (DHCP), address conversion (NAT) and domain name mapping (DNS) in Between equipment or AC complete, and AP equipment is only used as two layers of bridge device and carries out two layers of forwarding, and above-mentioned three layer protocols treatment is not provided.
As internet is popularized, it is wireless that traditional WLAN can not meet those due to there is limitation, Network size gives the network design figure shown in Fig. 2 than larger scene, and the AC is disposed beyond the clouds, AP deployed with devices Local, network-in-dialing is carried out by internet, and often by ISG or router connection AP equipment in Local Area Networking, Each AP equipment can connect multiple user terminals.
But, inventor has found, for the network designs beyond the clouds of the AC in Fig. 2, is set when a small amount of AP is disposed in single site When standby, it is still desirable to collocation deployment ISG or router, and the router or ISG's is relatively costly so that whole networking sets Standby cost is excessive, weakens product competitiveness.
The content of the invention
Embodiments of the invention provide a kind of AP equipment, method for network address translation and communication system, it is intended to reduce network The financial cost of the networking equipment in deployment.
To reach above-mentioned purpose, embodiments of the invention are adopted the following technical scheme that:
The first aspect of the embodiment of the present invention, there is provided a kind of AP equipment, the AP equipment includes:
Receiver module, the request for the corresponding service of access target server sent for receiving terminal apparatus disappears Breath, the request message includes source address and destination address, wherein:The source address is IP address, the mesh of terminal device Address for destination server IP address;
Modular converter, the public affairs of AP equipment are converted to for the source address in the request message that receives the receiver module Net address;
Sending module, for forwarding the request message, the source address in the request message to the destination server It is the public network address of the AP equipment after modular converter conversion;
The receiver module, is additionally operable to receive the replying message comprising service response that the destination server sends, institute State the public network address that the destination address in replying message is the AP equipment;
The modular converter, be additionally operable to by the receiver module receive reply message in destination address be converted to institute State the source address in request message;
Enquiry module, for searching the corresponding institute of the terminal device in the mapping table of storage from the AP equipment State the wave point of AP equipment;The wave point of the IP address with the AP equipment of terminal device is included in the mapping table Between corresponding relation;
The sending module, for described replying message to be sent to terminal device by wave point, the reply disappears Source address in breath is the IP address of the destination server, and the wave point is as described in the enquiry module is inquired The wave point of the corresponding AP equipment of terminal device.
The second aspect of the embodiment of the present invention, there is provided a kind of method for network address translation, methods described includes:
The request message for the corresponding service of access target server that AP equipment receiving terminal apparatus send, it is described to ask Seeking message includes source address and destination address, wherein:The source address is the IP address of terminal device, destination address is mesh Mark the IP address of server;
Source address in the request message is converted to AP equipment the public network address of AP equipment;
AP equipment forwards the request message to the destination server, and the source address in the request message turns for described The public network address of the AP equipment after mold changing block conversion;
AP equipment receives the replying message comprising service response that the destination server sends, described to reply message Destination address is the public network address of the AP equipment;
AP equipment will reply message in the source address that is converted in the request message of destination address;
AP equipment searches the wave point of the corresponding AP equipment of the terminal device from the mapping table of storage, And described replying message is sent to terminal device by wave point, it is described reply message in source address be the target clothes The IP address of business device;It is right between the wave point of the IP address comprising terminal device and the AP equipment in the mapping table Should be related to.
A kind of third aspect of the embodiment of the present invention, there is provided communication system, the system includes claim any one of 1-6 Described AP equipment and wireless controller AC, the AP equipment are connected by internet with AC.
AP equipment provided in an embodiment of the present invention, method for network address translation and communication system, compared to prior art, During carrying out network address translation, by the corresponding for access target server of AP equipment receiving terminal apparatus transmission The request message of service;Then source address in request message is converted to the public network address of AP equipment;Secondly, to destination service Device forwards request message, and the source address in the request message is the public network address of the AP equipment after modular converter conversion;Receive mesh The replying message comprising service response that mark server sends, the destination address in replying message is the public network address of AP equipment; AP equipment will reply message in the source address that is converted in request message of destination address;Searched from the mapping table of storage The wave point of the corresponding AP equipment of terminal device, and will reply message and be sent to terminal device by wave point, so that full Foot terminal device conducts interviews the demand of service, and required during the terminal device service of conducting interviews is realized carries out Network address translation is to go to realize by AP equipment, accordingly, just goes to increase without extra again in corresponding network design Plus router or ISG, so as to reduce the cost of networking equipment.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing The accompanying drawing to be used needed for having technology description is briefly described, it should be apparent that, drawings in the following description are only this Some embodiments of invention, for those of ordinary skill in the art, without having to pay creative labor, may be used also Other accompanying drawings are obtained with according to these accompanying drawings.
A kind of network design figure that Fig. 1 is provided for prior art;
Another network design figure that Fig. 2 is provided for prior art;
Fig. 3 is network structure provided in an embodiment of the present invention;
Fig. 4 is a kind of method flow diagram of method for network address translation provided in an embodiment of the present invention;
Fig. 5 is the method flow diagram of another method for network address translation provided in an embodiment of the present invention;
Fig. 6 is the method flow diagram of another method for network address translation provided in an embodiment of the present invention;
Fig. 7 is the method flow diagram of another method for network address translation provided in an embodiment of the present invention;
Fig. 8 is a kind of structural representation of AP equipment provided in an embodiment of the present invention;
Fig. 9 is the structural representation of another AP equipment provided in an embodiment of the present invention;
Figure 10 is the structural representation of another AP equipment provided in an embodiment of the present invention.
Specific embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete Site preparation is described, it is clear that described embodiment is only a part of embodiment of the invention, rather than whole embodiments.It is based on Embodiment in the present invention, it is every other that those of ordinary skill in the art are obtained under the premise of creative work is not made Embodiment, belongs to the scope of protection of the invention.
For the ease of clearly describing the technical scheme of the embodiment of the present invention, in an embodiment of the present invention, employ " the One ", the printed words such as " second " make a distinction to function or the essentially identical identical entry of effect or similar item, and those skilled in the art can To understand that the printed words such as " first ", " second " are not defined to quantity and execution order.
The embodiment of the present invention provides a kind of network architecture diagram, as shown in figure 3, the network architecture diagram includes WAP (English:Wireless Access Point, referred to as:AP) equipment and wireless controller (English:Wireless Access Point Controller, referred to as:AC), beyond the clouds, and AP deployed with devices is local for wherein AC deployment, and AP equipment is by interconnection Net is communicated with AC.By taking the network architecture in Fig. 3 as an example, the Local Area Networking includes AP1, AP2 and AP3, the nothing on AP1 Line is connected with terminal 1 and terminal 2, terminal 3 and terminal 4 is wirelessly connected with AP2, and terminal 5 is wirelessly connected with AP3 With terminal 6.Here the number of terminal not to being connected on AP is defined, and is only illustrated with example.
Based on the network architecture in above-mentioned Fig. 3, the embodiment of the present invention provides a kind of method for network address translation, such as Fig. 4 institutes Show, the method includes:
101st, the request message for the corresponding service of access target server that AP equipment receiving terminal apparatus send.
Wherein, above-mentioned request message includes source address and destination address, and the source address is the IP ground of terminal device Location, destination address are the IP address of destination server.
It is exemplary, the MAC Address of terminal device and destination server can also be included in above-mentioned request message MAC Address.And above-mentioned destination server is included but is not limited to:Baidu's server, Jingdone district server and search dog server.Correspondence , above-mentioned request message can be to access the request message of Baidu's page or access request message of Jingdone district page etc., and not It is limited to this.
102nd, the source address in request message is converted to AP equipment the public network address of AP equipment.
It is exemplary, based on above-mentioned Fig. 3, illustrated by taking AP1 as an example here, the source address in the request message can be with It is the IP address of terminal device 1, the source address is converted to AP1 the public network address of AP1 itself.
103rd, AP equipment forwards request message to destination server.
Wherein, the source address for being carried in the request message of above-mentioned forwarding is the public network address of AP equipment.
104th, AP equipment receives the replying message comprising service response that destination server sends.
Wherein, it is above-mentioned reply message in destination address be the public network address of AP equipment.
Exemplary, if the request message that above-mentioned terminal device sends is the request for obtaining Baidu's page, should The response of middle Baidu's page is replied message, it is on the terminal device the homepage of Baidu to present.
105th, the destination address during AP equipment will be replied message is converted to the source address in request message.
Exemplary, based on above-mentioned Fig. 3, if the source address in above-mentioned request message is the IP address of terminal 1, this In need that the destination address in replying message is converted to the IP address of terminal 1.
Preferably, how to determine that the destination address in replying message is converted to the IP address of terminal 1 for AP equipment Can specifically be accomplished by the following way:
Destination address of 105a, AP equipment in request message determines that the destination address in replying message is converted to end The IP address at end 1.
It is the IP address of destination server due to carrying destination address, and the destination address in above-mentioned request message, this In destination server by taking Baidu's server as an example, AP equipment may determine that terminal 1 what is desired is that Baidu's server is returned here The message returned.Therefore, AP equipment by above-mentioned Baidu's server send reply message in destination address be converted into terminal 1 IP address.If above-mentioned replying message be not Baidu's server sending, here will not be by the destination in replying message Location is converted to the IP address of terminal 1.
106th, AP equipment searches the wave point of the corresponding AP equipment of terminal device from the mapping table of storage, and will Reply message and sent to terminal device by wave point.
Wherein, it is above-mentioned reply message in source address be the IP address of destination server;In above-mentioned mapping table Corresponding relation between the wave point of the IP address comprising terminal device and AP equipment, also sets in the mapping table including terminal Corresponding relation between standby MAC Address and the wave point of AP equipment.
Exemplary, the corresponding relation between the above-mentioned IP address of terminal device and the wave point of AP equipment can be stored In the first mapping table, and the corresponding relation between the wave point of the MAC Address of terminal device and AP equipment can be stored In the second mapping table;Or, by the wave point of the IP of terminal device, the MAC Address of terminal device and AP equipment Between corresponding relation store in a mapping table.
Exemplary, AP equipment is searched the corresponding AP of terminal device and is set in the mapping table according to the IP address of terminal device Standby wave point, and the mapping table is prestored into AP equipment.
Under this scene, carrier network is assigned to only one necessary IP address (public network address) of online of AP equipment, and The IP address of the multi-terminal equipment that AP equipment is serviced is that AP equipment is distributed in itself, does not possess directly logical with carrier network Letter, it is necessary to AP equipment support network address translation, so as to reach the purpose communicated with carrier network.
Method for network address translation provided in an embodiment of the present invention, compared to prior art, is carrying out network address translation During, the request message for the corresponding service of access target server sent by AP equipment receiving terminal apparatus; Then source address in request message is converted to the public network address of AP equipment;Secondly, request message is forwarded to destination server, Source address in the request message is the public network address of the AP equipment after modular converter conversion;Receive the bag that destination server sends Replying message containing service response, the destination address in replying message is the public network address of AP equipment;AP equipment will be replied message In destination address be converted to source address in request message;The corresponding AP of terminal device is searched from the mapping table of storage The wave point of equipment, and will reply message and be sent to terminal device by wave point, carried out so as to meet terminal device The demand of access service, and the required network address translation that carries out is logical during the terminal device service of conducting interviews is realized Cross AP equipment and go what is realized, accordingly, just go to increase router or ISG without extra again in corresponding network design, from And reduce the cost of networking equipment.
Optionally, during compared to realizing acting on behalf of domain name mapping in the prior art, this programme is in order to save network Lower deployment cost, the AP equipment in the embodiment of the present invention can also realize acting on behalf of the function of domain name mapping.Exemplary, such as Fig. 5 institutes Show, before above-mentioned step 101, the method also includes:
The request message for obtaining domain name to be detected that 101a, AP equipment receiving terminal apparatus send.
Wherein, source address is included in above-mentioned request message, the source address is the IP address of terminal device.
Domain name mapping to be detected is the IP address of destination server by 101b, AP equipment.
Exemplary, by taking www.baidu.com as an example, the process of above-mentioned step 101b can be with for domain name to be detected here Realized by following two modes.
Optionally, step 101b above-mentioned in mode one specifically includes herein below:
B1, AP equipment are to local name server (English:Local DNS) request www.baidu.com;
Whether the IP address of www.baidu.com is had in b2, Local DNS query local cache, by Baidu if having IP address returns to AP equipment.
Optionally, step 101b above-mentioned in mode two specifically includes herein below:
C1, AP equipment are to local name server (English:Local DNS) request www.baidu.com;
Whether there is the IP address of www.baidu.com in c2, Local DNS query local cache, carried out if not following The step of 1. -10..It is specific as follows:
1. AP equipment is to Local DNS requests www.baidu.com.
2. Local DNS ask www.baidu.com, rhizosphere to return to the server ip in com. domains to rhizosphere.
3. Local DNS return to the server ip in baidu.com domains to com. domain requests www.baidu.com, com. domains.
4. Local DNS to baidu.com ask www.baidu.com, return cname www.a.shifen.com and The server ip in a.shifen.com domains
5. Local DNS are to root domain requests www.a.shifen.com.
6. to com. domain requests www.a.shife.com.
7. asked to shifen.com.
8. to a.shifen.com domain requests.
9. the IP of www.a.shifen.com is taken.
10. Local DNS return the machine www.baidu.com cname www.a.shifen.com and The IP of www.a.shifen.com.
101c, AP equipment search the wave point of the corresponding AP equipment of terminal device from the mapping table of storage, and To reply message and be sent to terminal device by wave point.
Wherein, it is above-mentioned reply message in the IP address comprising destination server.
Optionally, IP address for convenience subsequently according to terminal device searches the nothing of the AP equipment corresponding to terminal device Line interface, after above-mentioned step 101 or 101a, (is given at the signal after above-mentioned 101a as shown in Figure 6 in Fig. 6 Figure), the method also includes:
A1, AP equipment create the mapping relations between the IP address of terminal device and the wave point of AP equipment, and will mapping The mapping table that relation is formed is stored into AP equipment.
Optionally, compared to the process that IP address is distributed is realized in the prior art, in order to save the portion of network in this programme Administration's cost, the function of the also specific IP address distribution of AP equipment in the embodiment of the present invention.As described in Figure 7, above-mentioned 101a it Before, the method also includes:
B1, AP equipment are the terminal device distribution IP address being connected with AP equipment.
Exemplary, above-mentioned step B1 specifically includes herein below:
The request message of acquisition itself IP that d1, receiving terminal apparatus send, the request message includes source address, the source Address is the MAC Address of terminal device.
Mapping relations between the wave point of d2, the MAC Address for creating terminal device and AP equipment, and by mapping relations shape Into mapping table store into AP equipment.
The IP address of free time is selected in d3, the network segment address stored from AP equipment according to request message, and is set The lease time of idle IP address.
D4, the corresponding wave point of lookup terminal device from the mapping table in AP equipment, and will reply message logical Wave point is crossed to send to terminal device;When this includes idle IP address, the lease of the idle IP address in replying message Between and source address be the MAC Address of AP equipment, the mapping table includes the MAC Address of terminal device and the AP equipment Wave point between corresponding relation.
The associated description in the embodiment based on the corresponding network method for transformation of Fig. 4 is provided the embodiment of the present invention below A kind of AP equipment be introduced.The explanation of the technical term related to above-described embodiment, concept etc. can be with following examples With reference to the above embodiments, repeat no more here.
The embodiment of the present invention provides a kind of AP equipment, as shown in figure 8, the AP equipment includes:Receiver module 21, modular converter 22nd, sending module 23 and enquiry module 24, wherein:
Receiver module 21, the request for the corresponding service of access target server sent for receiving terminal apparatus disappears Breath, request message includes source address and destination address, wherein:Source address is the IP address of terminal device, destination address is The IP address of destination server.
Modular converter 22, the public network address for the source address in request message to be converted to AP equipment.
Sending module 23, for forwarding request message to destination server, the source address in request message is modular converter The public network address of the AP equipment after conversion.
Receiver module 21, is additionally operable to receive the replying message comprising service response that destination server sends, and the reply disappears Destination address in breath is the public network address of AP equipment.
Modular converter 22, be additionally operable to by receiver module receive reply message in destination address be converted to request message In source address.
Enquiry module 24, for searching the corresponding AP equipment of terminal device in the mapping table of storage from AP equipment Wave point;Corresponding relation in the mapping table between the wave point of the IP address comprising terminal device and AP equipment.
Sending module 23, is sent to terminal device for that will reply message by wave point, the source ground in replying message Location is the IP address of destination server, and wave point is inquired by enquiry module, and the wave point is terminal device correspondence AP equipment wave point.
Exemplary, the wave point of MAC Address and AP equipment in above-mentioned mapping table also including terminal device Between corresponding relation.Corresponding relation between the IP address of above-mentioned terminal device and the wave point of AP equipment can be stored In one mapping table, and the corresponding relation between the wave point of the MAC Address of terminal device and AP equipment can be stored In two mapping tables;Or, by between the wave point of the IP of terminal device, the MAC Address of terminal device and AP equipment Corresponding relation is stored in a mapping table.
Exemplary, the modular converter 22 in AP equipment in above-mentioned scheme is directly turned to the address in message Change.And the function of the modular converter 22 is realized by herein below:
01) above-mentioned AP equipment is based on LINUX system basis, and preecedence requirement Configuration network subsystem is supported, route is supported And network address translation is supported.
02) changed by NETFILTER interfaces configuration address, i.e., the source address in terminal device outflow message is turned Change, the destination address conversion in inflow terminal equipment message.
03) bridge control interface order (BRCTL) provided by LINUX system makes the up-link wired network in AP equipment Network interface is detached, and is correspondingly formed wan interface, and the wave point of AP is correspondingly formed LAN interface.
Optionally, as shown in figure 9, the AP equipment also includes:DNS modules 25, wherein:
Receiver module 21, is additionally operable to the request message for obtaining domain name to be detected of receiving terminal apparatus transmission, request Source address is included in message;Wherein:Source address is the IP address of terminal device.
DNS modules 25, for being the IP address of destination server by domain name mapping to be detected.
Sending module 23, is sent to terminal device, comprising DNS in replying message for that will reply message by wave point The IP address of the destination server that module is parsed, wave point is inquired by enquiry module, and the wave point is terminal The wave point of the corresponding AP equipment of equipment.
It is exemplary, above-mentioned DNS modules 25 specifically for:
Domain name analysis request message is sent to dns server, domain name to be detected is included in the domain name mapping request message.
Receive dns server return domain name mapping reply message, the domain name mapping reply message in comprising domain to be detected The IP address of name.
Exemplary, in above-mentioned scheme, the DNS modules 25 in AP equipment realize acting on behalf of the function of domain name mapping.Should The function of DNS modules 25 is realized by herein below:
11) by transplanting DNSMASQ packets, the main delivery process of the function is realized, the intersection according to AP equipment is compiled Translating tools chain carries out cross compile, you can the program that generation be able to can run in AP equipment.
12) in the configuration file of DHCP modules, using local BR1 interface IP addresses as the address of name server.Pass through The method terminal device can translate domain names into request and send to AP equipment, so that the DNS moulds in AP equipment after IP address is obtained The above-mentioned domain name mapping request of block treatment.
Optionally, IP address for convenience subsequently according to terminal device searches the nothing of the AP equipment corresponding to terminal device Line interface, as shown in figure 9, above-mentioned AP equipment also includes:Creation module 26, wherein:
Creation module 26, for creating the mapping relations between the IP address of terminal device and the wave point of AP equipment, and The mapping table that mapping relations are formed is stored into AP equipment.
Optionally, as shown in Figure 10, the AP equipment also includes:Dynamic host configuration (English:Dynamic Host Configuration Protocol, referred to as:DHCP) module 27, wherein:
DHCP modules 27, for distributing IP address for the terminal device being connected with AP equipment.
Exemplary, the DHCP modules 27 in AP equipment in above-mentioned scheme realize the function of distribution address.The DHCP The function of module 27 is realized by herein below:
21) by transplanting UDHCP packets, the main delivery process of the function is realized, according to the cross compile of AP equipment Tools chain carries out cross compile, you can the program that generation be able to can run in AP equipment.
22) network segment address and lease time of the predistribution according to user configuring are passed in UDHCP packets, to match somebody with somebody The incoming DHCP modules of file mode are put, and is stored in ram space.
23) binding interface is must determine in DHCP modules, i.e., which interface carries out IP address distribution action at, specifically, Bridge joint mouthful (br1) in AP equipment is actual address distribution interface, and br1 is written in configuration file.
Optionally, above-mentioned DHCP modules 27 when IP address is distributed for the terminal device that is connected with AP equipment, wherein:
Receiver module 21, for the request message of itself IP of the acquisition of receiving terminal apparatus transmission, wraps in the request message Include source address;Wherein:Source address is the MAC Address of terminal device.
Creation module 26, is additionally operable to be created according to the request message of receiver module reception the MAC Address and AP of terminal device Mapping relations between the wave point of equipment, and the mapping table that mapping relations are formed is stored into AP equipment.
DHCP modules 27, select in the network segment address that the request message for being received according to receiver module is stored from AP equipment The IP address of free time is selected out, and sets the lease time of the IP address of free time.
Enquiry module 24, searches that terminal device is corresponding wirelessly connects in being additionally operable to the mapping table created from creation module Mouthful;The mapping table includes the corresponding relation between the wave point of the MAC Address of terminal device and AP equipment.
Sending module 23, is sent to terminal device for that will reply message by wave point;This is included in replying message Idle IP address, the lease time of idle IP address and the source address that DHCP modules are selected are the MAC ground of AP equipment Location, the wave point is found by the enquiry module, and the wave point is that the wireless of the corresponding AP equipment of terminal device connects Mouthful.
AP equipment provided in an embodiment of the present invention, compared to prior art, during network address translation is carried out, leads to Cross the request message for the corresponding service of access target server of AP equipment receiving terminal apparatus transmission;Then request is disappeared Source address in breath is converted to the public network address of AP equipment;Secondly, request message is forwarded to destination server, in the request message Source address for modular converter conversion after AP equipment public network address;Receive that destination server sends comprising service response Reply message, the destination address in replying message is the public network address of AP equipment;AP equipment will reply message in destination address Be converted to the source address in request message;The wireless of the corresponding AP equipment of terminal device is searched from the mapping table of storage to connect Mouthful, and will reply message and be sent to terminal device by wave point, conducted interviews the need of service so as to meet terminal device Ask, and the required network address translation that carries out is to go reality by AP equipment during the terminal device service of conducting interviews is realized It is existing, accordingly, just go to increase router or ISG without extra again in corresponding network design, so as to reduce networking The cost of equipment.
The embodiment of the present invention provides a kind of communication system, and the system includes AP equipment and wireless controlled in above-described embodiment Device AC processed, the AP equipment is connected by internet with AC.
Exemplary, terminal device is connected with the AP equipment in above-mentioned communication system, the terminal device is being carried out During accession page, request message is sent by AP equipment, the AP equipment is directly processed the request message of terminal device, So as to finally ensure that terminal can normally remove accession page.When a small amount of AP equipment is disposed in single site, above-mentioned communication is used System so that the cost of the networking equipment spent in whole network framework is relatively low.
Through the above description of the embodiments, it is apparent to those skilled in the art that, be description It is convenient and succinct, only carried out with the division of above-mentioned each functional module for example, in practical application, can as needed will be upper Function distribution is stated to be completed by different functional module, will the internal structure of device be divided into different functional modules, to complete All or part of function described above.The specific work process of the system, apparatus, and unit of foregoing description, before may be referred to The corresponding process in embodiment of the method is stated, be will not be repeated here.
In several embodiments provided herein, it should be understood that disclosed system, AP apparatus and method can To realize by another way.For example, device embodiment described above is only schematical, for example, the module Or the division of unit, only a kind of division of logic function, there can be other dividing mode when actually realizing, such as it is multiple single Unit or component can be combined or be desirably integrated into another system, or some features can be ignored, or not performed.It is another, Shown or discussed coupling or direct-coupling or communication connection each other can be by some interfaces, device or unit INDIRECT COUPLING or communication connection, can be electrical, mechanical or other forms.
The unit that is illustrated as separating component can be or may not be it is physically separate, it is aobvious as unit The part for showing can be or may not be physical location, you can with positioned at a place, or can also be distributed to multiple On NE.Some or all of unit therein can be according to the actual needs selected to realize the mesh of this embodiment scheme 's.
In addition, during each functional unit in each embodiment of the invention can be integrated in a processing unit, it is also possible to It is that unit is individually physically present, it is also possible to which two or more units are integrated in a unit.Above-mentioned integrated list Unit can both be realized in the form of hardware, it would however also be possible to employ the form of SFU software functional unit is realized.
If the integrated unit is to realize in the form of SFU software functional unit and as independent production marketing or use When, can store in a computer read/write memory medium.Based on such understanding, technical scheme is substantially The part for being contributed to prior art in other words or all or part of the technical scheme can be in the form of software products Embody, the computer software product is stored in a storage medium, including some instructions are used to so that a computer Equipment (can be personal computer, server, or network equipment etc.) or processor (processor) perform the present invention each The all or part of step of embodiment methods described.And foregoing storage medium includes:USB flash disk, mobile hard disk, read-only storage (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disc or CD Etc. it is various can be with the medium of store program codes.
The above, specific embodiment only of the invention, but protection scope of the present invention is not limited thereto, and it is any Those familiar with the art the invention discloses technical scope in, change or replacement can be readily occurred in, should all contain Cover within protection scope of the present invention.Therefore, protection scope of the present invention should be based on the protection scope of the described claims.

Claims (10)

1. a kind of AP equipment, it is characterised in that the AP equipment includes:
Receiver module, for the request message for the corresponding service of access target server that receiving terminal apparatus send, institute Stating request message includes source address and destination address, wherein:The source address is IP address, the destination address of terminal device It is the IP address of destination server;
Modular converter, the public network address for the source address in the request message to be converted to AP equipment;
Sending module, for forwarding the request message to the destination server, the source address in the request message is institute State the public network address of the AP equipment after modular converter conversion;
The receiver module, is additionally operable to receive the replying message comprising service response that the destination server sends, described time Destination address in multiple message is the public network address of the AP equipment;
The modular converter, be additionally operable to by the receiver module receive reply message in destination address be converted to it is described please Seek the source address in message;
Enquiry module, for searching the corresponding AP of the terminal device in the mapping table of storage from the AP equipment The wave point of equipment;In the mapping table between the wave point of the IP address comprising terminal device and the AP equipment Corresponding relation;
The sending module, it is described to reply message for described replying message to be sent to terminal device by wave point Source address be the destination server IP address, the wave point is the terminal inquired by the enquiry module The wave point of the corresponding AP equipment of equipment.
2. AP equipment according to claim 1, it is characterised in that also include:
The receiver module, is additionally operable to the request message for obtaining domain name to be detected of receiving terminal apparatus transmission, described to ask Ask in message comprising source address;Wherein:The source address is the IP address of terminal device;
DNS modules, for by IP address that the domain name mapping to be detected is the destination server.
The sending module, is sent to terminal device for that will reply message by wave point, it is described reply message in include The IP address of the destination server that the DNS modules are parsed, the wave point is the institute inquired by the enquiry module State the wave point of the corresponding AP equipment of terminal device.
3. AP equipment according to claim 1 and 2, it is characterised in that also include:
Creation module, for creating the mapping relations between the IP address of terminal device and the wave point of the AP equipment, and will The mapping table that the mapping relations are formed is stored into AP equipment.
4. AP equipment according to claim 2, it is characterised in that also including dynamic host configuration DHCP module,
The receiver module, is additionally operable to the request message of itself IP of the acquisition of receiving terminal apparatus transmission, in the request message Including source address;Wherein:The source address is the MAC Address of terminal device;
The creation module, be additionally operable to according to the receiver module receive request message create terminal device MAC Address with Mapping relations between the wave point of the AP equipment, and the mapping table that the mapping relations are formed is stored to AP equipment In;
The DHCP modules, for selecting a sky in the network segment address that is stored from the AP equipment according to the request message Not busy IP address, and set the lease time of the IP address of the free time;
The enquiry module, searches the terminal device corresponding in being additionally operable to the mapping table created from the creation module Wave point;The mapping table include the MAC Address of terminal device with it is corresponding between the wave point of the AP equipment Relation;
The sending module, is sent to terminal device for that will reply message by the wave point;It is described to reply message Idle IP address, the lease time of the idle IP address and the source address selected comprising the DHCP modules are institute The MAC Address of AP equipment is stated, the wave point is the corresponding AP of the terminal device found by the enquiry module The wave point of equipment.
5. a kind of method for network address translation, it is characterised in that methods described includes:
The request message for the corresponding service of access target server that AP equipment receiving terminal apparatus send, the request disappears Breath includes source address and destination address, wherein:The source address is the IP address of terminal device, destination address is target clothes The IP address of business device;
Source address in the request message is converted to AP equipment the public network address of AP equipment;
AP equipment forwards the request message to the destination server, and the source address in the request message is the institute after conversion State the public network address of AP equipment;
AP equipment receives the replying message comprising service response that the destination server sends, it is described reply message in purpose Address is the public network address of the AP equipment;
AP equipment will reply message in the source address that is converted in the request message of destination address;
AP equipment searches the wave point of the corresponding AP equipment of the terminal device from the mapping table of storage, and will Described replying message is sent to terminal device by wave point, it is described reply message in source address be the destination server IP address;The IP address comprising terminal device is corresponding between the wave point of the AP equipment in the mapping table closes System.
6. method according to claim 5, it is characterised in that also include:
The request message for obtaining domain name to be detected that AP equipment receiving terminal apparatus send, includes source in the request message Address;Wherein:The source address is the IP address of terminal device;
AP equipment is by IP address that the domain name mapping to be detected is the destination server;
AP equipment searches the wave point of the corresponding AP equipment of the terminal device from the mapping table of storage, and will Reply message and sent to terminal device by wave point, it is described reply message in the IP address comprising destination server.
7. the method according to claim 5 or 6, it is characterised in that what the AP equipment receiving terminal apparatus sent is used for Obtain after the request message of domain name to be detected, also include:
AP equipment creates the mapping relations between the IP address of terminal device and the wave point of the AP equipment, and by the mapping The mapping table that relation is formed is stored into AP equipment.
8. method according to claim 7, it is characterised in that also include:
AP equipment is the terminal device distribution IP address being connected with the AP equipment.
9. method according to claim 8, it is characterised in that the AP equipment is that the terminal being connected with the AP equipment sets Back-up is specifically included with IP address:
The request message of acquisition itself IP that receiving terminal apparatus send, the request message includes source address;Wherein:It is described Source address is the MAC Address of terminal device;
The mapping relations between the MAC Address of terminal device and the wave point of the AP equipment are created, and by the mapping relations The mapping table of formation is stored into AP equipment;
According to selecting the IP address of free time in the network segment address that the request message is stored from the AP equipment, and set The lease time of the idle IP address;
The corresponding wave point of the terminal device is searched from the mapping table in the AP equipment, and will be replied message logical The wave point is crossed to send to terminal device;It is described reply message in comprising the idle IP address, the idle IP The lease time and source address of address are the MAC Address of the AP equipment, and the mapping table includes terminal device Corresponding relation between the wave point of MAC Address and the AP equipment.
10. a kind of communication system, it is characterised in that the system include AP equipment described in claim any one of 1-4 and Wireless controller AC, the AP equipment is connected by internet with AC.
CN201611238297.0A 2016-12-28 2016-12-28 AP device, network address conversion method and communication system Pending CN106713524A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611238297.0A CN106713524A (en) 2016-12-28 2016-12-28 AP device, network address conversion method and communication system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611238297.0A CN106713524A (en) 2016-12-28 2016-12-28 AP device, network address conversion method and communication system

Publications (1)

Publication Number Publication Date
CN106713524A true CN106713524A (en) 2017-05-24

Family

ID=58896784

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611238297.0A Pending CN106713524A (en) 2016-12-28 2016-12-28 AP device, network address conversion method and communication system

Country Status (1)

Country Link
CN (1) CN106713524A (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107276901A (en) * 2017-05-27 2017-10-20 上海斐讯数据通信技术有限公司 The system and method and wireless router and terminal of integration application
CN108965036A (en) * 2018-09-21 2018-12-07 深圳市信锐网科技术有限公司 Configure across public network equipment exchanging visit method, system, server and storage medium
CN109495349A (en) * 2018-12-11 2019-03-19 成都西加云杉科技有限公司 The NAT throughput testing approach and system of wireless access point
CN110505316A (en) * 2018-05-17 2019-11-26 中兴通讯股份有限公司 The distribution method and wireless routing device of internet protocol address
CN113395368A (en) * 2020-03-13 2021-09-14 阿里巴巴集团控股有限公司 Access configuration method, access method and device
CN113395309A (en) * 2020-03-14 2021-09-14 阿里巴巴集团控股有限公司 Communication method and computer network
CN114615233A (en) * 2022-03-11 2022-06-10 展讯半导体(成都)有限公司 Data transmission method, device and system, gateway equipment, terminal equipment and medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101754318A (en) * 2009-12-23 2010-06-23 华为技术有限公司 Bypass data transmission method and system, and access point network device
CN102143509A (en) * 2010-12-16 2011-08-03 华为终端有限公司 Method, device and system for managing wireless repeater by using access point (AP)
WO2011121295A1 (en) * 2010-03-30 2011-10-06 British Telecommunications Public Limited Company System and method for wlan roaming traffic authentication
CN106130908A (en) * 2016-06-03 2016-11-16 北京小米移动软件有限公司 Message transmitting method and device, intelligent terminal
CN106231596A (en) * 2016-09-05 2016-12-14 上海斐讯数据通信技术有限公司 A kind of access point apparatus configuration devices and methods therefor, a kind of access point apparatus

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101754318A (en) * 2009-12-23 2010-06-23 华为技术有限公司 Bypass data transmission method and system, and access point network device
WO2011121295A1 (en) * 2010-03-30 2011-10-06 British Telecommunications Public Limited Company System and method for wlan roaming traffic authentication
CN102143509A (en) * 2010-12-16 2011-08-03 华为终端有限公司 Method, device and system for managing wireless repeater by using access point (AP)
CN106130908A (en) * 2016-06-03 2016-11-16 北京小米移动软件有限公司 Message transmitting method and device, intelligent terminal
CN106231596A (en) * 2016-09-05 2016-12-14 上海斐讯数据通信技术有限公司 A kind of access point apparatus configuration devices and methods therefor, a kind of access point apparatus

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107276901A (en) * 2017-05-27 2017-10-20 上海斐讯数据通信技术有限公司 The system and method and wireless router and terminal of integration application
CN110505316A (en) * 2018-05-17 2019-11-26 中兴通讯股份有限公司 The distribution method and wireless routing device of internet protocol address
CN108965036A (en) * 2018-09-21 2018-12-07 深圳市信锐网科技术有限公司 Configure across public network equipment exchanging visit method, system, server and storage medium
CN108965036B (en) * 2018-09-21 2021-09-14 深圳市信锐网科技术有限公司 Method, system, server and storage medium for configuring cross-public network equipment mutual access
CN109495349A (en) * 2018-12-11 2019-03-19 成都西加云杉科技有限公司 The NAT throughput testing approach and system of wireless access point
CN113395368A (en) * 2020-03-13 2021-09-14 阿里巴巴集团控股有限公司 Access configuration method, access method and device
CN113395368B (en) * 2020-03-13 2024-05-03 阿里巴巴集团控股有限公司 Access configuration method, access method and device
CN113395309A (en) * 2020-03-14 2021-09-14 阿里巴巴集团控股有限公司 Communication method and computer network
CN113395309B (en) * 2020-03-14 2023-09-26 阿里巴巴集团控股有限公司 Communication method and computer network
CN114615233A (en) * 2022-03-11 2022-06-10 展讯半导体(成都)有限公司 Data transmission method, device and system, gateway equipment, terminal equipment and medium
CN114615233B (en) * 2022-03-11 2023-08-04 展讯半导体(成都)有限公司 Data transmission method, device and system, gateway equipment, terminal equipment and medium

Similar Documents

Publication Publication Date Title
CN106713524A (en) AP device, network address conversion method and communication system
CN102907072B (en) Enabling ipv6 mobility with nat64
CN102457586B (en) Expanding method for realizing double-layer network and expanded double-layer network
CN103262503B (en) Node selecting method and equipment in packet core network
CN106375492A (en) Content Delivery Network (CDN) service processing method and related device and communication system
CN103109517B (en) Method, terminal and the system of a kind of pair of stack terminal access server
CN103701950B (en) The distribution method and device of a kind of IP address
CN102404416A (en) Method for acquiring DNS and tunnel gateway equipment
CN108063839A (en) A kind of method for accessing network and the device for accessing network
CN100571286C (en) Cdma system distributes the method for fixed ip address for the user
CN102056329A (en) Method and device for connecting and managing multiple APs (access points)
CN104333610A (en) IPv6 address allocation method and device
CN105681249B (en) A kind of Network Access Method and link switch equipment
CN106255089A (en) A kind of method and apparatus of radio three layer roaming
CN111654443B (en) Method for directly accessing public network by virtual machine IPv6 address in cloud environment
CN104253878A (en) VLAN (Virtual Local Area Network) information management system and method of DHCP (Dynamic Host Configuration Protocol) RELAY termination sub-interface
CN110225144A (en) Obtain and provide method, user equipment and the management server of service
CN110365557A (en) A kind of method and device of network interconnection
CN102164188A (en) Network address allocation method, device and system
CN102437946A (en) Access control method, NAS (network attached storage) equipment and authentication server
CN104581977B (en) WLAN user management method, apparatus and system
CN106713528A (en) Home gateway and method of IPv6 host to access network server
CN102801745A (en) Method and system for accessing local area network WEB site by using wide area network browser
CN105721622A (en) Method and device for achieving 6LoWPAN and IPv4 network interconnection
CN112003771A (en) Method for realizing intelligent network access of LAN side terminal

Legal Events

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

Application publication date: 20170524

RJ01 Rejection of invention patent application after publication