CN105636160B - A kind of business wifi looking for Platform Server automatically - Google Patents
A kind of business wifi looking for Platform Server automatically Download PDFInfo
- Publication number
- CN105636160B CN105636160B CN201610018313.9A CN201610018313A CN105636160B CN 105636160 B CN105636160 B CN 105636160B CN 201610018313 A CN201610018313 A CN 201610018313A CN 105636160 B CN105636160 B CN 105636160B
- Authority
- CN
- China
- Prior art keywords
- udp
- platform server
- datagram
- looking
- platform
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W48/00—Access restriction; Network selection; Access point selection
- H04W48/08—Access restriction or access information delivery, e.g. discovery data delivery
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W88/00—Devices specially adapted for wireless communication networks, e.g. terminals, base stations or access point devices
- H04W88/08—Access point devices
Abstract
The invention discloses a kind of business wifi for looking for Platform Server automatically, AP including business wifi, the AP includes UDP sending device and UDP reception device, the AP and Platform Server are located in the same local area network, the UDP sending device is used to send UDP datagram to Platform Server, and the UDP reception device is used to receive the response data report returned from Platform Server and forwards the response data report.The beneficial effect of business wifi looking for Platform Server automatically of the invention a kind of has: this scheme reduces integral deployment difficulty, field deployment is implemented personnel and is not required to it is to be understood that specific AP and Platform Server dock, only need to confirm whether each AP can normally access internet again, whether the wifi signal of transmitting is normal, adjoin the problems such as wifi signal of AP is with the presence or absence of interference, and the AP quantity of deployment is more, advantage is more obvious, and lower deployment cost also can be lower.
Description
Technical field
The present invention relates to the communications fields, and in particular to a kind of business wifi for looking for Platform Server automatically.
Background technique
As smart phone and the continuous of handheld terminal are popularized, user, which needs to surf the Internet whenever and wherever possible, obtains information.In order to
It is preferably serviced to client, more and more businessmans start to provide free or charge wifi access service, such as hotel, meal
The industries such as drink, 4 S auto shop have all started offer wifi service.
It is perfect now with wifi service, it is increasing for wifi demand, it is desirable to provide AP is also more and more, big rule
The AP of mould is accessed, and causes the cost for disposing wifi constantly to increase, convenient, economic embodiment just becomes more and more important.
When carrying out integral deployment with priority scheme, specific implementation personnel will not only undertake the tissue of network, also pay close attention to
Each AP considerably increases the burden that personnel are implemented in field deployment to the connection of platform in this way.When server ip changes
Become, influences whether the situation of docking of beneath all AP and platform, thus AP must be reconfigured again.AP quantity is got over
More, adjoint deployment and maintenance cost is also bigger, undoubtedly will lead to appearance very large overhead in this way.
Summary of the invention
In order to solve prior art problem, it is simple that the present invention provides one kind, fast, efficiently, economic deployment scheme, i.e.,
A kind of business wifi looking for Platform Server automatically.
One kind of the invention looks for the business wifi of Platform Server automatically, and the AP including business wifi, the AP include
UDP sending device and UDP reception device, the AP and Platform Server are located in the same local area network, the UDP sending device
For sending UDP datagram to Platform Server, the UDP reception device is used to receive the response number returned from Platform Server
According to reporting and forward the response data report.
Further, the UDP datagram includes datagram header and data content.
Further, the datagram header includes op, len, time, srcip, srcmac, dstip and dstmac;It is described
Data content includes context, and the context includes server platform IP and port.
Further, the UDP reception device is received back using UDP service processes reception rule and answers datagram.
Further, the UDP reception device is forwarded back to using UDP server forward rule answers datagram.
Further, the Platform Server is located in internet, and the AP is located in local area network, and the AP further includes
UDP service processes device.
The present invention is configured using low and middle-end, equipped with carry out under open source system (Openwrt) router using.
One kind of the invention looks for the business wifi of Platform Server by formulating a logical cloud agreement automatically, allows in subnet
All business wifi, can be with Automatic-searching to management server, and reports some essential informations, allows management platform can be more
Add and easily carries out bulk management.
The beneficial effect of business wifi looking for Platform Server automatically of the invention a kind of has: this scheme reduces whole portion
Affix one's name to difficulty, field deployment is implemented personnel and is not required to it is to be understood that specific AP and Platform Server dock, it is only necessary to confirm that each AP is
No normally to access internet again, whether the wifi signal of transmitting is normal, adjoins the wifi signal of AP with the presence or absence of interference etc.
Problem, and the AP quantity disposed is more, advantage is more obvious, and lower deployment cost also can be lower.
Detailed description of the invention
Fig. 1 is the format diagram of UDP datagram in the present invention;
Fig. 2 is UDP datagram flow schematic diagram in multistage network in the present invention;
Fig. 3 be in the present invention inside AP about UDP message processing schematic.
Specific embodiment
In order to be easy to understand the technical means, the creative features, the aims and the efficiencies achieved by the present invention, tie below
Conjunction is specifically illustrating, and the present invention is further explained.
Embodiment 1
A kind of business wifi, AP including business wifi looking for Platform Server automatically mass-sends mechanism, AP using UDP
Including UDP sending device and UDP reception device, the AP and Platform Server are located in the same local area network, and UDP sending device is used
In sending UDP datagram to Platform Server, in order to reduce AP burden, the time interval of default mass-sending UDP datagram is 1 point
Clock, while peer AP will not mutually forward the mass-sending of AP at the same level to look for the UDP datagram of Platform Server address.UDP datagram
The variable data content (as shown in Figure 1) of datagram header and length including regular length (32 byte).
Datagram header includes op, len, time, srcip, srcmac, dstip and dstmac, wherein op: indicating order
Word, different all data represent different UDP datagrams, and length fixes two bytes, as op=1, indicate that the datagram is to look for
Datagram is sought, purposes is the datagram that AP looks for server ip address;
As op=2, indicate that the datagram is response data message, direction is that Platform Server responds AP, informs AP certainly
As effective, the addressable address AP;
As op=3, indicate that the datagram is response data message, direction is that AP replys Platform Server, informs service
Device correctly obtains platform IP address, and has correctly connected;
Len: indicating UDP datagram data length, and length fixes 2 bytes;
Time: indicating UDP datagram generation time, each UDP datagram has a fixed validity period, time 30
Second, it is more than this time value, expression receives the UDP datagram without response;
Srcip: the IP address of UDP datagram source AP is indicated;
Srcmac: the MAC Address of UDP datagram source AP is indicated;
Dstip: the IP address of UDP datagram purpose AP is indicated;
Dstmac: the MAC Address of UDP datagram purpose AP is indicated.
Data content includes context,
Context: indicating the datagram content that UDP datagram may carry, and what is carried under normal circumstances is that server is flat
Platform IP and port, context content all use character visible, and character content format is ip:port, such as:
192.168.1.1:4000。
UDP reception device, which is used to receive the response data report returned from Platform Server and is forwarded back to, answers datagram, and UDP connects
Receiving apparatus is received back using UDP service processes reception rule and answers datagram, and UDP service processes receive rule and are, UDP service processes
Only receive Platform Server response data report, other messages are directly ignored;UDP reception device uses UDP server forward rule
It being forwarded back to and answers datagram, UDP server forward rule is that UDP service processes only understand forwarding platform server response datagram, and
And UDP service processes can be only forwarded in itself subnet, and operation will not be forwarded in peer network, is reduced to the greatest extent in network
Flow.
As shown in Fig. 2, the process for using of the present embodiment are as follows: each AP is at regular intervals in Home Network stage group in peer network
Hair UDP looks for the data message of Platform Server, and when top layer's network finds Platform Server IP, the AP for possessing subnet is mass-sended just
Into own subnet, such level-one level-one constantly issues true Platform Server IP address, until all AP are received, and
To Platform Server response data report, correct server ip address is found.
The beneficial effect for the business wifi that one kind of the present embodiment looks for Platform Server automatically has: this scheme reduces whole
Body disposes difficulty, and field deployment is implemented personnel and is not required to it is to be understood that specific AP and Platform Server dock, it is only necessary to which confirmation is each
Whether AP can normally access internet again, and whether the wifi signal of transmitting is normal, adjoin the wifi signal of AP with the presence or absence of dry
The problems such as disturbing, and the AP quantity disposed is more, advantage is more obvious, and lower deployment cost also can be lower.
Embodiment 2
A kind of business wifi, AP including business wifi looking for Platform Server automatically mass-sends mechanism, AP using UDP
Including UDP sending device, UDP reception device and UDP service processes device, AP is located in local area network, and Platform Server is located at because of spy
In net, UDP sending device is used to send UDP datagram to Platform Server, in order to reduce AP burden, default mass-sending UDP message
The time interval of report is 1 minute, while peer AP will not mutually forward the mass-sending of AP at the same level to look for the UDP of Platform Server address
Datagram.The datagram header and the variable data content of length that UDP datagram includes regular length (32 byte) are (such as Fig. 1 institute
Show).
Datagram header includes op, len, time, srcip, srcmac, dstip and dstmac, wherein
Op: indicating that command word, different all data represent different UDP datagrams, and length fixes two bytes,
As op=1, indicate that the datagram is to look for datagram, purposes is the datagram that AP looks for server ip address;
As op=2, indicate that the datagram is response data message, direction is that Platform Server responds AP, informs AP certainly
As effective, the addressable address AP;
As op=3, indicate that the datagram is response data message, direction is that AP replys Platform Server, informs service
Device correctly obtains platform IP address, and has correctly connected;
Len: indicating UDP datagram data length, and length fixes 2 bytes;
Time: indicating UDP datagram generation time, each UDP datagram has a fixed validity period, time 30
Second, it is more than this time value, expression receives the UDP datagram without response;
Srcip: the IP address of UDP datagram source AP is indicated;
Srcmac: the MAC Address of UDP datagram source AP is indicated;
Dstip: the IP address of UDP datagram purpose AP is indicated;
Dstmac: the MAC Address of UDP datagram purpose AP is indicated.
Data content includes context,
Context: indicating the datagram content that UDP datagram may carry, and what is carried under normal circumstances is that server is flat
Platform IP and port, context content all use character visible, and character content format is ip:port, such as:
192.168.1.1:4000。
UDP reception device, which is used to receive the response data report returned from Platform Server and is forwarded back to, answers datagram, and UDP connects
Receiving apparatus is received back using UDP service processes reception rule and answers datagram, and UDP service processes receive rule and are, UDP service processes
Only receive Platform Server response data report, other messages are directly ignored;UDP reception device uses UDP server forward rule
It being forwarded back to and answers datagram, UDP server forward rule is that UDP service processes only understand forwarding platform server response datagram, and
And UDP service processes can be only forwarded in itself subnet, and operation will not be forwarded in peer network, is reduced to the greatest extent in network
Flow.
UDP service processes device can check on startup/etc catalogue under with the presence or absence of SerAddr file, if there is reading
This file content is taken, while this content being become to the Platform Server response data report of UDP datagram, and by it in itself subnet
Middle mass-sending.
The present embodiment is configured using low and middle-end, equipped with carry out under open source system (Openwrt) router using.
Particular hardware parameter request: CPU is MIPS Kc V;Memory: 60M;
Deployment request: when deployment multistage network, Platform Server is necessarily present in first order network (due to scheme all offices
Limit, this requirement is necessary condition).
Platform Server also there must be a UDP service processes for receiving the UDP request platform clothes of AP transmission simultaneously
The request data report for device IP address of being engaged in.This request data report is received, Platform Server UDP service processes must can have oneself
The IP address conversion of access is imitated at computer decimal system character visible, response to request AP equipment.
As shown in Fig. 2, the process for using of the present embodiment are as follows: each AP is at regular intervals in Home Network stage group in peer network
Hair UDP looks for the data message of Platform Server, and when top layer's network finds Platform Server IP, the AP for possessing subnet is mass-sended just
Into own subnet, such level-one level-one constantly issues true Platform Server IP address, until all AP are received, and
To Platform Server response data report, correct server ip address is found.
As shown in figure 3, AP starting is regularly sent with finding server ip in the case where unknown Platform Server IP address
Location datagram, while also starting UDP server process device, to collect Platform Server response data report that may be present.Work as AP
UDP service processes device receive Platform Server response data report, can be to ignore the response data report according to conditional decision, still
" mass-sending to itself sub-network server IP address " module is sent it to, still send it to " setting local server
Location ".
The beneficial effect for the business wifi that one kind of the present embodiment looks for Platform Server automatically has: this scheme reduces whole
Body disposes difficulty, and field deployment is implemented personnel and is not required to it is to be understood that specific AP and Platform Server dock, it is only necessary to which confirmation is each
Whether AP can normally access internet again, and whether the wifi signal of transmitting is normal, adjoin the wifi signal of AP with the presence or absence of dry
The problems such as disturbing, and the AP quantity disposed is more, advantage is more obvious, and lower deployment cost also can be lower;This scheme also solves platform clothes
Business device is located at the problems in internet, as long as one AP of change, increases UDP service processes device, so that it may correct the flat of all AP
Platform server ip.
The basic principles, main features and advantages of the present invention have been shown and described above.The technology of the industry
Personnel are it should be appreciated that the present invention is not limited to the above embodiments, and the above embodiments and description only describe this
The principle of invention, various changes and improvements may be made to the invention without departing from the spirit and scope of the present invention, these changes
Change and improvement is both fallen in claimed invention encloses.The claimed scope of the invention is by appended claims and its waits
Jljl is defined.
Claims (6)
1. a kind of business wifi for looking for Platform Server automatically, it is characterised in that: the AP including business wifi, the AP include
UDP sending device and UDP reception device, the AP and Platform Server are located in the same local area network, the UDP sending device
For sending UDP datagram to Platform Server, the UDP reception device is used to receive the response number returned from Platform Server
According to reporting and forwarding the response data report, each AP looks for platform in Home Network stage group hair UDP at regular intervals in peer network
The data message of server, when top layer's network finds Platform Server IP, the AP for possessing subnet mass-sends correct platform service
Into own subnet, such level-one level-one constantly issues device IP address, until all AP receive, and to Platform Server
Response data report finds correct server ip address.
2. a kind of business wifi for looking for Platform Server automatically according to claim 1, it is characterised in that: the UDP
Datagram includes datagram header and data content.
3. a kind of business wifi for looking for Platform Server automatically according to claim 2, it is characterised in that: the data
Header includes op, len, time, srcip, srcmac, dstip and dstmac;The data content includes context, described
Context includes server platform IP and port.
4. a kind of business wifi for looking for Platform Server automatically according to claim 1, it is characterised in that: the UDP
Reception device is received back using UDP service processes reception rule and answers datagram.
5. a kind of business wifi for looking for Platform Server automatically according to claim 1, it is characterised in that: the UDP
Reception device is forwarded back to using UDP server forward rule and answers datagram.
6. a kind of business wifi for looking for Platform Server automatically according to claim 1, it is characterised in that: the platform
Server is located in internet, and the AP is located in local area network, and the AP further includes UDP service processes device.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610018313.9A CN105636160B (en) | 2016-01-12 | 2016-01-12 | A kind of business wifi looking for Platform Server automatically |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610018313.9A CN105636160B (en) | 2016-01-12 | 2016-01-12 | A kind of business wifi looking for Platform Server automatically |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105636160A CN105636160A (en) | 2016-06-01 |
CN105636160B true CN105636160B (en) | 2018-12-28 |
Family
ID=56050518
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610018313.9A Active CN105636160B (en) | 2016-01-12 | 2016-01-12 | A kind of business wifi looking for Platform Server automatically |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105636160B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108986437A (en) * | 2018-07-23 | 2018-12-11 | 宁波三星医疗电气股份有限公司 | A kind of electric power acquisition terminal monitoring adjustment method based on WIFI |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102123181A (en) * | 2010-12-09 | 2011-07-13 | 广东高新兴通信股份有限公司 | Method for automatically configuring IP address to network device |
CN102685269A (en) * | 2012-05-16 | 2012-09-19 | 陈为人 | Method and device for obtaining broadband dynamic IP (Internet protocol) address in real time |
CN103716189A (en) * | 2013-12-24 | 2014-04-09 | 深圳市共进电子股份有限公司 | Configuration management method for local area network terminal gateway equipment |
CN104270440A (en) * | 2014-09-26 | 2015-01-07 | 郭丹 | Portal processing method of portable broadband wireless access equipment |
-
2016
- 2016-01-12 CN CN201610018313.9A patent/CN105636160B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102123181A (en) * | 2010-12-09 | 2011-07-13 | 广东高新兴通信股份有限公司 | Method for automatically configuring IP address to network device |
CN102685269A (en) * | 2012-05-16 | 2012-09-19 | 陈为人 | Method and device for obtaining broadband dynamic IP (Internet protocol) address in real time |
CN103716189A (en) * | 2013-12-24 | 2014-04-09 | 深圳市共进电子股份有限公司 | Configuration management method for local area network terminal gateway equipment |
CN104270440A (en) * | 2014-09-26 | 2015-01-07 | 郭丹 | Portal processing method of portable broadband wireless access equipment |
Also Published As
Publication number | Publication date |
---|---|
CN105636160A (en) | 2016-06-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20200241888A1 (en) | Method and apparatus for plug and play, networkable iso 18000-7 connectivity | |
CN103248665B (en) | A kind of mthods, systems and devices for sharing third-party application | |
CN103731487A (en) | Download method, device, system and router for resource file | |
CN103415062B (en) | A kind of network connection device, wireless router and method for connecting network | |
US8472420B2 (en) | Gateway device | |
CN105959188B (en) | Method and device for controlling user terminal to be on-line | |
CN103095684A (en) | Method obtaining attention user aggregate information, device and system | |
CN103618667A (en) | Information transfer method, access gateway and system | |
US9641395B2 (en) | Method of processing device discovery | |
CN103347084A (en) | Multi-account unifying interacted system and interacted method | |
CN107368334B (en) | Business plug-in interaction system and method | |
CN109474646B (en) | Communication connection method, device, system and storage medium | |
CN109525639A (en) | Vehicle electronic device connects the method that smart phone realizes online by USB line | |
CN103369034A (en) | Method, system and device for sending photos to digital photo frames | |
CN109510748B (en) | Node and node interaction method and system | |
CN103796191A (en) | Method, device and terminal for sending data to user terminal | |
CN105636160B (en) | A kind of business wifi looking for Platform Server automatically | |
WO2013152644A1 (en) | Wireless sd-card type processing device | |
CN105357260A (en) | System for realizing virtual desktop, data caching method for VDI (Virtual Desktop Infrastructure) and VDI caching device | |
CN102932214B (en) | A kind of discovery polymerization of home network dissimilar medium equipment | |
CN105338654A (en) | Network sharing method, apparatus and system | |
CN104980481A (en) | Method and system for transmitting data between electronic terminals and electronic terminal | |
CN105591866A (en) | Method and system for sharing WIFI, household gateway, and local area network gateway | |
CN104320695A (en) | Method and system for family socializing of mobile device based on smart TV | |
CN110661895A (en) | Network address mapping method and network address mapping equipment of server |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
CB02 | Change of applicant information | ||
CB02 | Change of applicant information |
Address after: 310012 A Block 12, Building D, Paradise Software Park, 3 Xidoumen Road, Xihu District, Hangzhou City, Zhejiang Province Applicant after: Hangzhou technology Limited by Share Ltd Address before: 310012 Block B, 8th floor, Building D, Paradise Software Park, No. 3 Xidoumen Road, Xihu District, Hangzhou City, Zhejiang Province Applicant before: HANGZHOU QUANWEI COMMUNICATIONS SERVICES CO., LTD. |
|
GR01 | Patent grant | ||
GR01 | Patent grant |