CN109618019A - Dynamic address allocation service configuration method, apparatus, equipment and storage medium - Google Patents
Dynamic address allocation service configuration method, apparatus, equipment and storage medium Download PDFInfo
- Publication number
- CN109618019A CN109618019A CN201811587828.6A CN201811587828A CN109618019A CN 109618019 A CN109618019 A CN 109618019A CN 201811587828 A CN201811587828 A CN 201811587828A CN 109618019 A CN109618019 A CN 109618019A
- Authority
- CN
- China
- Prior art keywords
- wireless router
- address allocation
- dynamic address
- wan mouthfuls
- allocation service
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L61/00—Network arrangements, protocols or services for addressing or naming
- H04L61/50—Address allocation
- H04L61/5007—Internet protocol [IP] addresses
- H04L61/5014—Internet protocol [IP] addresses using dynamic host configuration protocol [DHCP] or bootstrap protocol [BOOTP]
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Small-Scale Networks (AREA)
Abstract
The invention discloses a kind of dynamic address allocation service configuration method, apparatus, equipment and storage mediums, which comprises when current wireless router is in target operational mode, detects WAN mouthfuls of states of wide area network of current wireless router;If detecting, the WAN mouthfuls of state is not-connected status, detects whether current wireless router connects with other wireless routers bridge joint;If detecting, current wireless router and other wireless routers bridge joint are connected, and the dynamic address allocation service of current wireless router is set to off closed state.The present invention realizes the normal internal node of WDS bridge joint connection in AP+WDS networking and dynamic address allocation service is automatically closed, without manually going the dynamic address allocation service of internal node in configuration AP+WDS networking, and then also solve the problems, such as that user terminal online is abnormal in AP+WDS networking.
Description
Technical field
The present invention relates to wireless communication field more particularly to a kind of dynamic address allocation service configuration method, apparatus, equipment
And storage medium.
Background technique
The function of WDS (Wireless Distribution System, wireless distribution system) acts as wireless network
Repeater allows it that can extend extended wireless signal, so that covering is wider more by opening WDS function on wireless router
Big range.If wireless router supports WDS function, its work can be made in AP+WDS mode, wireless access point can be done
(AP) common wireless routing function is provided, and the bridging device of WDS can be done, extended wireless signal promotes coverage area.Wirelessly
Router is surfed the Internet and is managed for configuration in AP+WDS operating mode, in order to facilitate user, and dynamic address allocation clothes can be enabled
Business, for the user terminal automatic IP address allocation of connection.
In AP+WDS networking, a wireless router is had as Egress node and external network communication, remaining is all
It is internal node, is bridging device.Since each wireless router in networking can provide the service of dynamic address allocation, if
The IP address that user terminal is got is distributed by the internal node in networking, it is abnormal to will lead to user terminal online, therefore need
The dynamic address allocation service for closing internal node is currently to be taken by the dynamic address allocation of human configuration wireless router
Business.And by wireless router dynamic address allocation service in human configuration AP+WDS networking, have to the technical level of operator
Certain demand, configuration difficulty is high, and configuration process is complicated, while can also reduce networking flexibility.
Summary of the invention
The main purpose of the present invention is to provide a kind of dynamic address allocation service configuration method, apparatus, equipment and storages
Medium, it is intended to solve the dynamic address allocation service of wireless router in existing human configuration AP+WDS networking, configure difficulty
High, configuration process complexity, to the demanding technical problem of operator's technical level.
To achieve the above object, the present invention provides a kind of dynamic address allocation service configuration method, the dynamic address point
With service configuration method comprising steps of
When current wireless router is in target operational mode, WAN mouthfuls of shapes of wide area network of current wireless router are detected
State;
If detecting, the WAN mouthfuls of state is not-connected status, whether wireless with other detects current wireless router
Routers bridge connection;
If detecting, current wireless router and other wireless routers bridge joint are connected, by the dynamic of current wireless router
State address allocation services are set to off closed state.
Optionally, after the step of WAN mouthfuls of states of wide area network of the current wireless router of detection, further includes:
If detecting, the WAN mouthfuls of state is connected status, and the dynamic address allocation of current wireless router is taken
Business is set on state.
Optionally, if described detect that the WAN mouthfuls of state is not-connected status, whether current wireless router is detected
After the step of bridging connection with other wireless routers, further includes:
If detecting that current wireless router is not bridged with other wireless routers to connect, by current wireless router
Dynamic address allocation service is set on state.
Optionally, the step of WAN mouthfuls of states of wide area network of the current wireless router of detection include:
Detect whether current wireless router WAN mouthfuls be inserted into cable;
If detecting, described WAN mouthfuls has been inserted into cable, it is determined that current WAN mouthfuls of states of wireless router are to have connected shape
State;
If detecting, described WAN mouthfuls is not inserted into cable, it is determined that current WAN mouthfuls of states of wireless router are not connected shape
State.
Optionally, the step of WAN mouthfuls of states of wide area network of the current wireless router of detection include:
Detect whether current wireless router by WAN mouthfuls gets IP address;
IP address is got by described WAN mouthfuls if detecting, it is determined that current WAN mouthfuls of states of wireless router are to have connected
Connect state;
If detecting and not getting IP address by described WAN mouthfuls, it is determined that current WAN mouthfuls of states of wireless router are not
Connection status.
Optionally, the step of WAN mouthfuls of states of wide area network of the current wireless router of detection include:
Whether normal detect current wireless router domain name mapping;
If detecting, domain name parsing is normal, it is determined that current WAN mouthfuls of states of wireless router are connected status;
If detecting, domain name parsing is abnormal, it is determined that current WAN mouthfuls of states of wireless router are not-connected status.
Optionally, described to detect that the step of whether current wireless router bridges connection with other wireless routers includes:
The frame number for the beacon beacon frame that other wireless routers received in statistics preset duration are sent;
If the beacon frame frame number received in the preset duration is greater than default frame number, it is determined that described current
Wireless router and other wireless routers bridge joint connect;
If the beacon frame frame number received in the preset duration is not more than the default frame number, it is determined that institute
It states current wireless router and does not bridge connection with other wireless routers.
In addition, to achieve the above object, the present invention also provides a kind of dynamic address allocation service configuration device, the dynamics
Address allocation services configuration device includes:
Detection module, for detecting current wireless router when current wireless router is in target operational mode
WAN mouthfuls of states of wide area network;
If the detection module is also used to detect that the WAN mouthfuls of state is not-connected status, detect currently without route
It is connected by whether device bridges with other wireless routers;
Dynamic address allocation service configuration module, if for detecting current wireless router and other wireless router bridges
It connects in succession, then the dynamic address allocation service of current wireless router is set to closed state.
In addition, to achieve the above object, the present invention also provides a kind of dynamic address allocation service configuration equipment, the dynamics
Address allocation services configuration equipment includes memory, processor and is stored on the memory and can transport on the processor
Capable dynamic address allocation service configuration program, it is real when the dynamic address allocation service configuration program is executed by the processor
Now the step of dynamic address allocation service configuration method as described above.
In addition, to achieve the above object, it is described computer-readable the present invention also provides a kind of computer readable storage medium
Dynamic address allocation service configuration program is stored on storage medium, the dynamic address allocation service configuration program is by processor
The step of dynamic address allocation service configuration method as described above is realized when execution.
The present invention is by detecting current router WAN mouthfuls of state when current wireless router is in target operational mode;
If detecting, WAN mouthfuls of states are not-connected status, detect whether current wireless router connects with other wireless routers bridge joint
It connects;If detecting, current wireless router and other wireless routers bridge joint are connected, by current router dynamic address allocation
Service is set to off closed state, realizes the normal internal node of WDS bridge joint connection in AP+WDS networking and is automatically closed dynamically
Location distribution service, without manually going the dynamic address allocation service of internal node in configuration AP+WDS networking, in turn
Also solve the problems, such as that user terminal online is abnormal in AP+WDS networking.
Detailed description of the invention
Fig. 1 is the structural schematic diagram for the hardware running environment that the embodiment of the present invention is related to;
Fig. 2 is the flow diagram of dynamic address allocation service configuration method first embodiment of the present invention;
Fig. 3 is the flow diagram of dynamic address allocation service configuration method second embodiment of the present invention.
The embodiments will be further described with reference to the accompanying drawings for the realization, the function and the advantages of the object of the present invention.
Specific embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
Since presently, there are the dynamic address allocation services of wireless router in human configuration AP+WDS networking, difficulty is configured
High, configuration process complexity, to the demanding technical problem of operator's technical level, the present invention provides a solution, leads to
It crosses when current wireless router is in target operational mode, detects current router WAN mouthfuls of state;If detecting WAN mouthfuls of shapes
State is not-connected status, then detects whether current wireless router connects with other wireless routers bridge joint;If detecting current
Wireless router and other wireless routers bridge joint connect, then current router dynamic address allocation service are set off shape
State realizes the normal internal node of WDS bridge joint connection in AP+WDS networking and dynamic address allocation service is automatically closed, thus not
It needs manually to go the dynamic address allocation service of internal node in configuration AP+WDS networking, and then also solves AP+WDS networking
The abnormal problem of middle user terminal online.
The present invention provides a kind of dynamic address allocation service configuration equipment, and referring to Fig.1, Fig. 1 is embodiment of the present invention side
The structural schematic diagram for the hardware running environment that case is related to.
It should be noted that Fig. 1 can show for the structure of the hardware running environment of dynamic address allocation service configuration equipment
It is intended to.Dynamic address allocation service configuration equipment can be wireless router, wireless aps etc. with AP+ in the embodiment of the present invention
The radio reception device of WDS operating mode.
As shown in Figure 1, the dynamic address allocation service configuration equipment may include: processor 1001, such as CPU, network
Interface 1004, user interface 1003, memory 1005, communication bus 1002.Wherein, communication bus 1002 is for realizing these groups
Connection communication between part.User interface 1003 may include display screen (Display), input unit such as keyboard
(Keyboard), optional user interface 1003 can also include standard wireline interface and wireless interface.Network interface 1004 is optional
May include standard wireline interface and wireless interface (such as WI-FI interface).Memory 1005 can be high speed RAM memory,
It is also possible to stable memory (non-volatile memory), such as magnetic disk storage.Memory 1005 optionally may be used also
To be independently of the storage device of aforementioned processor 1001.
It will be understood by those skilled in the art that the not structure of dynamic address allocation service configuration device structure shown in Fig. 1
The restriction of pairs of dynamic address allocation service configuration equipment may include components more more or fewer than diagram, or combine certain
A little components or different component layouts.
As shown in Figure 1, as may include that operating system, network are logical in a kind of memory 1005 of computer storage medium
Believe module, Subscriber Interface Module SIM and dynamic address allocation service configuration program.
In dynamic address allocation service configuration equipment shown in Fig. 1, network interface 1004 is mainly used for connection backstage and takes
Business device, is communicated with background server;User interface 1003 is mainly used for connecting client, is communicated with client;And
Processor 1001 can be used for calling the dynamic address allocation service configuration program stored in memory 1005, and execute following behaviour
Make:
When current wireless router is in target operational mode, WAN mouthfuls of shapes of wide area network of current wireless router are detected
State;
If detecting, the WAN mouthfuls of state is not-connected status, whether wireless with other detects current wireless router
Routers bridge connection;
If detecting, current wireless router and other wireless routers bridge joint are connected, by the dynamic of current wireless router
State address allocation services are set to off closed state.
Further, after the step of WAN mouthfuls of states of wide area network of the current wireless router of detection, processor 1001
It can be used for calling the dynamic address allocation service configuration program stored in memory 1005, also execute following operation:
If detecting, the WAN mouthfuls of state is connected status, and the dynamic address allocation of current wireless router is taken
Business is set on state.
Further, if described detect that the WAN mouthfuls of state is not-connected status, detecting current wireless router is
After no the step of bridge joint is connected with other wireless routers, processor 1001 can be used for calling to be stored in memory 1005
Dynamic address allocation service configuration program also executes following operation:
If detecting that current wireless router is not bridged with other wireless routers to connect, by current wireless router
Dynamic address allocation service is set on state.
Further, the step of WAN mouthfuls of states of wide area network of the current wireless router of detection include:
Detect whether current wireless router WAN mouthfuls be inserted into cable;
If detecting, described WAN mouthfuls has been inserted into cable, it is determined that current WAN mouthfuls of states of wireless router are to have connected shape
State;
If detecting, described WAN mouthfuls is not inserted into cable, it is determined that current WAN mouthfuls of states of wireless router are not connected shape
State.
Further, the step of WAN mouthfuls of states of wide area network of the current wireless router of detection include:
Detect whether current wireless router by WAN mouthfuls gets IP address;
IP address is got by described WAN mouthfuls if detecting, it is determined that current WAN mouthfuls of states of wireless router are to have connected
Connect state;
If detecting and not getting IP address by described WAN mouthfuls, it is determined that current WAN mouthfuls of states of wireless router are not
Connection status.
Further, the step of WAN mouthfuls of states of wide area network of the current wireless router of detection include:
Whether normal detect current wireless router domain name mapping;
If detecting, domain name parsing is normal, it is determined that current WAN mouthfuls of states of wireless router are connected status;
If detecting, domain name parsing is abnormal, it is determined that current WAN mouthfuls of states of wireless router are not-connected status.
Further, which is characterized in that whether the current wireless router of detection bridges with other wireless routers connects
The step of connecing include:
The frame number for the beacon beacon frame that other wireless routers received in statistics preset duration are sent;
If the beacon frame frame number received in the preset duration is greater than default frame number, it is determined that described current
Wireless router and other wireless routers bridge joint connect;
If the beacon frame frame number received in the preset duration is not more than the default frame number, it is determined that institute
It states current wireless router and does not bridge connection with other wireless routers.
Based on above-mentioned hardware configuration, each embodiment of dynamic address allocation service configuration method of the present invention is proposed.
Referring to Fig. 2, dynamic address allocation service configuration method first embodiment of the present invention provides a kind of dynamic address allocation
Service configuration method, it should be noted that, in some cases, can be with although logical order is shown in flow charts
The steps shown or described are performed in an order that is different from the one herein.The dynamic address allocation service configuration method includes:
Step S1 detects the wide area network of current wireless router when current wireless router is in target operational mode
WAN mouthfuls of states;
Current wireless router mostly supports WDS function, and wireless router can be opened when opening WDS function with other
It opens and carries out bridge joint connection between the wireless router of WDS function, realize extended wireless signal.The AP+WDS mode of wireless router
Refer to that wireless router can do wireless access point (AP) and provide common wireless routing function and to be WDS (wireless distributed
System) bridging device, extended wireless signal, promoted coverage area.The dynamic address allocation service of wireless router, for connection
The user terminal automatic IP address allocation of the wireless router, allows user terminal normally to surf the Internet.
In AP+WDS networking, there is multiple wireless routers, only one of them wireless router as Egress node with
External network communication, remaining wireless router are all internal nodes, are bridging devices.Wireless router as Egress node
It needs to open dynamic address allocation services, distributes IP address, and the wireless routing as internal node for the user terminal of connection
Device cannot then open dynamic address allocation services, otherwise will when the IP address that user terminal is got is distributed by internal node
Cause user terminal online abnormal.Therefore it should ensure that internal node closing when WDS bridge joint connection is normal in AP+WDS networking
Dynamic address allocation service.
To realize that dynamic address allocation clothes are automatically closed when bridge joint connection is normal for the wireless router as internal node
Business, in the present embodiment, when wireless router is in target operational mode, current wireless router starts to detect its wide area network
WAN mouthfuls of states.Wherein, target operational mode can be the AP+WDS mode of wireless router, is also possible to other and is equal to AP+
The operating mode of WDS mode.Since the Egress node in AP+WDS networking is communicated by WAN mouthfuls with external network, so
When the WAN of wireless router mouth state is connected status, it may be determined that the wireless router is used as Egress node in networking
Come what is used.Therefore when wireless router detects that its WAN mouthfuls of state is to have connected, that is, determine that current wireless router is
Mouth node can be opened currently if the dynamic address allocation service of current wireless router is in close state at this time without route
By the dynamic address allocation service of device.
Step S2, if detect the WAN mouthfuls of state be not-connected status, detect current wireless router whether with its
He connects wireless router bridge joint;
If current wireless router detects that its WAN mouthfuls of state is not-connected status, detecting current wireless router is
It is no to be connected with other wireless routers bridge joint.If current wireless router detects that WAN mouthfuls of states are not-connected status, illustrate
The Egress node that current wireless router is not communicated with external network not instead of directly, internal node is current at this time wireless
Router is detected whether to bridge with other wireless routers and be connected, to determine whether to surf the Internet by other wireless routers.
Step S3, if detecting, current wireless router and other wireless routers bridge joint are connected, will be currently without route
Closed state is set to off by the dynamic address allocation service of device.
If current wireless router in the case where detecting its WAN mouthfuls of state is not-connected status, detects and other
Wireless router bridge joint connection, then be set to off closed state for the dynamic address allocation service of current router.Specifically, if working as
The dynamic address allocation service of preceding wireless router is originally closed state, then remains off, if current wireless router
Dynamic address allocation service originally be open state, then close dynamic address allocation service.It should be noted that wireless routing
WAN mouthfuls of states of device are not connected, and bridge and connect with other wireless routers, illustrate that the wireless router is can to pass through others
The internal node of wireless router online, should close the dynamic address allocation service of the wireless router, at this time to ensure user
Terminal will not surf the Internet exception because getting the IP address of wireless router distribution.Specifically, wireless router can pass through pass
The mode for closing udhcpd process closes dynamic address allocation service, naturally it is also possible to be closed dynamically by other feasible modes
Location distribution service.
Further, if current wireless router is in the case where detecting WAN mouthful states is to be not connected with, also not with other
Wireless router bridge joint connection, then dynamic address allocation service can be set on state by the wireless router at this time.
In the present embodiment, by detecting current router WAN when current wireless router is in target operational mode
Mouth state;If detect WAN mouthfuls of states be not-connected status, detect current wireless router whether with other wireless routers
Bridge joint connection;If detecting, current wireless router and other wireless routers bridge joint are connected, dynamically by current router
Location distribution service is set to off closed state, realizes the normal internal node of WDS bridge joint connection in AP+WDS networking and is automatically closed
Dynamic address allocation service, without manually going the dynamic address allocation of internal node in configuration AP+WDS networking to take
Business, and then also solve the problems, such as that user terminal online is abnormal in AP+WDS networking.
Further, referring to Fig. 3, it is based on above-mentioned first embodiment, dynamic address allocation service configuration method of the present invention the
Two embodiments provide a kind of dynamic address allocation service configuration method.In the present embodiment, after step S1, further includes:
Step S4, if detecting, the WAN mouthfuls of state is connected status, by the dynamic address of current wireless router
Distribution service is set on state.
Current wireless router detects its WAN mouthfuls of state, if detecting, WAN mouthfuls of states are to have connected, will be currently wireless
The dynamic address allocation service of router is set on state.If the WAN mouth state of wireless router is to have connected, illustrate this
Wireless router is the Egress node communicated with external network, should open the dynamic address point of the wireless router at this time
It is that user terminal and internal node distribute IP address by the router with service.Wireless router can be by starting udhcpd
The mode of process starts dynamic address allocation service, can also start dynamic address allocation service by other feasible modes.
Specifically, if wireless router is in target operational mode after actuation, that is, start to detect WAN mouthfuls of states, if detecting WAN mouthfuls
State then detects whether current router opens dynamic address allocation service from being not attached to have connected, if not opening,
Then start dynamic address allocation service, if dynamic address allocation service is originally open state, the dynamic address allocation is kept to take
Business open state.If wireless router detects that WAN mouthfuls of states are not connected from being already connected to, WDS connection status is detected, if inspection
It is normal to measure WDS connection, then detects whether to open dynamic address allocation service, if not opening, continues to keep dynamic address
The closed state of distribution service closes dynamic address allocation service if having turned on dynamic address allocation service.
In the present embodiment, by when wireless router detect WAN mouthfuls of states be have connected when, by current wireless routing
The dynamic address allocation service of device is set on state, and the Egress node realized in AP+WDS networking automatically turns on dynamically
Location distribution service, without the dynamic address allocation service of the Egress node manually gone in configuration AP+WDS networking.
Further, above-mentioned first or second embodiments, dynamic address allocation service configuration method third of the present invention are based on
Embodiment provides a kind of dynamic address allocation service configuration method.In the present embodiment, after step S2, further includes:
Step S5 is connected if detecting that current wireless router is not bridged with other wireless routers, will be currently wireless
The dynamic address allocation service of router is set on state.
If in the case that current wireless router detects that its WAN mouthfuls of state is not connected, detecting not wireless with other
Routers bridge connection, then be set on state for the dynamic address allocation service of current wireless router.Wireless router
When detecting that its WAN mouthfuls of state is not connected, and not bridging connection with other wireless routers, illustrate the wireless router not
It can be communicated, can not be surfed the Internet by other wireless routers with external network, the wireless router can start dynamic at this time
Address allocation services, so that user terminal connected to it can carry out network configuration to it.It should be noted that wireless routing
Device bridges successful connection with other wireless routers in the case where it is not connected for detecting WAN mouthfuls of states, if detecting, examines
It surveys and whether opens dynamic address allocation service, if opening, close dynamic address allocation service, if not opening, keep dynamic
State address allocation services closed state.Wireless router is in the case where it is not connected for detecting WAN mouthfuls of states, if detecting not
Successful connection is bridged with other wireless routers, then detects whether to open dynamic address allocation service, if opening, keeps dynamic
State address allocation services open state opens dynamic address allocation services if not opening.
Further, above-mentioned first, second or third embodiment, dynamic address allocation service configuration method of the present invention are based on
Fourth embodiment provides a kind of dynamic address allocation service configuration method.In the present embodiment, step S1 includes:
Step S101, detects whether current wireless router WAN mouthfuls be inserted into cable;
When wireless router is in AP+WDS mode, the WAN mouth state of current wireless router, the method for detection are detected
It can be and whether be inserted into cable by detecting WAN mouthfuls.
Step S102, if detecting, described WAN mouthfuls has been inserted into cable, it is determined that currently WAN mouthfuls of states of wireless router are
Connected status;
Wireless router is provided with the WAN physical interface of insertion cable, if wireless router detects that WAN mouthfuls have been inserted into net
Line then illustrates that the wireless router is as the Egress node communicated with external network, at this point, the wireless router determines
WAN mouthfuls of states are to have connected.At this point, the wireless router is as the Egress node communicated with external network, if dynamic
Address allocation services are in close state, and dynamic address allocation service is set on state.
Step S103, if detecting, described WAN mouthfuls is not inserted into cable, it is determined that currently WAN mouthfuls of states of wireless router are
Not-connected status.
If wireless router detects that WAN mouthfuls are not inserted into cable, illustrate the wireless router cannot by cable with
External network is communicated, the case where wireless router can only be communicated by way of being inserted into cable with external network
Under, which can determine that WAN mouthfuls of states are not-connected status, and even wireless router detects that its WAN mouthfuls is not inserted into
Cable, it is determined that the wireless router is not the Egress node communicated with external network.At this point, in wireless router conduct
Whether portion's nodal test bridges with other wireless routers connects, and determines whether to open dynamic address allocation clothes according to testing result
Business.
Further, step S1 includes:
Step S111, detects whether current wireless router by WAN mouthfuls gets IP address;
If wireless router can be not necessarily by WAN by way of wireless relay and external network communication
Physical interface is inserted into the mode and external network communication of cable, then can be by detecting whether to get IP address by WAN mouthfuls
Mode detect WAN mouthfuls of states.And wireless router gets IP address by WAN mouthfuls can be side by wireless relay
Formula gets IP address, is also possible to get IP address in such a way that WAN physical interface is inserted into cable.
Step S112 gets IP address by described WAN mouthfuls if detecting, it is determined that the WAN mouthfuls of connection is normal;
If wireless router, which is detected, gets correct IP address from external network by WAN mouthfuls, the nothing can determine
Line router and external network normal communication, WAN mouthfuls of states are to have connected connection.Determine the wireless router for outlet section at this time
Point.
Step S113 does not get IP address by described WAN mouthfuls if detecting, it is determined that described WAN mouthfuls not connected.
If detecting and not getting IP address by WAN mouthfuls, it is determined that WAN mouthfuls of states are not connected.It should be noted that
Cable whether is inserted into above by WAN mouthfuls of detection and determines the mode of WAN mouthfuls of states, and detects whether to get by WAN mouthfuls
IP address can select one application in a manner of determining WAN mouthfuls of states, can also be with connected applications.Connected applications mode, which can be, works as nothing
Line router is detected get IP address by WAN mouthfuls after, it may be determined that WAN mouthfuls of states are to have connected, and are not passed through if detecting
WAN mouthfuls get IP address, then can detect WAN mouthfuls and whether be inserted into cable, if being inserted into cable, can determine WAN mouthfuls of states
To have connected, if being not inserted into cable, it is determined that WAN mouthfuls of states are not connected.
Further, step S1 includes:
Whether normal step S121 detects current wireless router domain name mapping;
Even if due to WAN mouthfuls of insertion cables of wireless router or getting IP address, it is also possible to abnormal with external network
Communication, can using be as determination wireless router with external network normal communication Egress node premise, even wireless routing
Device and external network normal communication, it is determined that WAN mouthfuls of states of wireless router are to have connected, it is determined that wireless router is outlet
Node, if wireless router and external network are unable to normal communication, it is determined that WAN mouthfuls of states of wireless router are not connected.And
Judge wireless router whether with external network normal communication, can whether normal by detecting current wireless router domain name mapping
To judge.
Step S122, if detecting, domain name parsing is normal, it is determined that current WAN mouthfuls of states of wireless router are to have connected
Connect state;
If wireless router detects that DNS name resolution is normal, illustrate that wireless router can be with the positive normal open of external network
Letter, wireless router determines that its WAN mouthfuls of state is to have connected at this time.
Step S123, if detecting, domain name parsing is abnormal, it is determined that current WAN mouthfuls of states of wireless router are not
Connection status.
If wireless router detects that DNS name resolution is abnormal, illustrate that wireless router can cannot with external network
Normal communication, wireless router determines that its WAN mouthfuls of state is not connected at this time.It should be noted that passing through detection DNS domain name solution
Whether analysis normally determines the modes of WAN mouthful states, with above by by the way that whether WAN mouthfuls of detection be inserted into cable determines WAN
The mode of mouthful state and above-mentioned detect whether that it can be selected in a manner of determining WAN mouthfuls of states by getting IP address WAN mouthfuls
One application, can also be with connected applications.The mode of connected applications may is that when wireless router detects that DNS name resolution is normal,
It can determine that WAN mouthfuls of connections are normal;If detecting, DNS name resolution is abnormal, detects and gets IP address by WAN mouthfuls
Afterwards, it may be determined that WAN mouthfuls of connections are normal, do not get IP address by WAN mouthfuls if detecting, whether detectable WAN mouthfuls inserted
Enter cable, if being inserted into cable, can determine that WAN mouthfuls of connections are normal, if being not inserted into cable, it is determined that WAN mouthfuls not connected.
Further, it is based on above-mentioned first, second, third or fourth embodiment, dynamic address allocation service of the present invention is matched
It sets the 5th embodiment of method and a kind of dynamic address allocation service configuration method is provided.In the present embodiment, the detection WDS connection
The step of state includes:
Step S201 counts the frame for the beacon beacon frame that other wireless routers received in preset duration are sent
Number;
Wireless router in the case where it is not connected for detecting WAN mouthfuls of states, detect current wireless router whether with
The bridge joint connection of other wireless routers.Wireless router can be by counting other wireless routers received in preset duration
The frame number of the beacon frame of transmission connects to determine whether to bridge with other wireless routers.Wireless router can be to AP+WDS group
Other wireless routers in net broadcast Beacon frame (beacon frame), and the MAC Address (hardware of oneself is written in Beacon frame
Location).The frame number for the beacon frame that other wireless routers received in wireless router statistics preset duration are sent, when presetting
Length is arranged according to specific needs, is such as set as 10 seconds, then primary every 10 seconds statistics.Wireless router passes through parsing beacon
Frame obtains MAC Address, that is, can determine it is beacon frame which other wireless router is sent.Wireless router counts pre- respectively
If the beacon frame sent in duration from other different wireless routers.As the statistics of wireless router 1 obtains receiving in 10 seconds
With beacon frame totally 10 frame of the MAC Address of router 2, the beacon frame totally 2 with the MAC Address of router 3 is received
Frame.
Step S202, if the beacon that other wireless routers described in receiving in the preset duration are sent
Frame frame number is greater than default frame number, it is determined that the WDS connection is normal;
If the beacon frame frame number that other wireless routers that wireless router receives in preset duration are sent is greater than
Default frame number, it is determined that bridge joint connection.Wherein, default frame number can be configured as the case may be.Such as it is set as wireless routing
As long as device receives 1 beacon frame sent by other wireless routers in 10 seconds, it is determined that the wireless router and its
He connects wireless router bridge joint.It lifts a specific example to be illustrated, router 1 is counted in 10 seconds and received with router
The beacon frame of the address 2MAC totally 10 frame, does not receive with the beacon frame of the address router 3MAC and with router 4MAC
The beacon frame of address, then determining bridge between router 2 of router 1 connects, and not connected with router 3 and 4, at this time really
Determine router 1 to connect with other Routers bridges in AP+WDS networking.
Step S203, if the beacon that other wireless routers described in receiving in the preset duration are sent
Frame frame number is not more than the default frame number, it is determined that the WDS is not connected.
If the beacon frame frame number that other wireless routers that wireless router receives in preset duration are sent is little
In default frame number, then the wireless router is not bridged with other wireless routers and is connected.If wireless router is 1 in preset duration
A beacon frame from other wireless routers does not all receive, it is determined that the wireless router not with other wireless router bridges
It connects in succession.
It is further possible to be determined whether and other nothings by way of counting the data packet that wireless router receives
Line router bridge joint connection, or determine whether wireless router bridges with other wireless routers by other feasible modes
Connection.
In the present embodiment, the beacon frame frame sent by other wireless routers received in statistics preset duration
Several modes, to determine wireless router WDS connection status, and then WDS connection status configures dynamic address allocation service, according to
Realize the function that wireless router in AP+WDS networking automatically configures dynamic address allocation service.
In addition, the embodiment of the present invention also provides a kind of dynamic address allocation service configuration device, the dynamic address allocation
Service configuration device includes:
Detection module, for detecting current wireless router when current wireless router is in target operational mode
WAN mouthfuls of states of wide area network;
If the detection module is also used to detect that the WAN mouthfuls of state is not-connected status, detect currently without route
It is connected by whether device bridges with other wireless routers;
Dynamic address allocation service configuration module, if for detecting current wireless router and other wireless router bridges
It connects in succession, then the dynamic address allocation service of current wireless router is set to closed state.
Further, if the dynamic address allocation service configuration module is also used to detect that the WAN mouthfuls of state is
The dynamic address allocation service of current wireless router is then set on state by connection status.
Further, if the dynamic address allocation service configuration module be also used to detect current wireless router not with
The bridge joint connection of other wireless routers, then be set on state for the dynamic address allocation service of current wireless router.
Further, the detection module is also used to:
Detect whether current wireless router WAN mouthfuls be inserted into cable;
If detecting, described WAN mouthfuls has been inserted into cable, it is determined that current WAN mouthfuls of states of wireless router are to have connected shape
State;
If detecting, described WAN mouthfuls is not inserted into cable, it is determined that current WAN mouthfuls of states of wireless router are not connected shape
State.
Further, the detection module is also used to:
Detect whether current wireless router by WAN mouthfuls gets IP address;
IP address is got by described WAN mouthfuls if detecting, it is determined that current WAN mouthfuls of states of wireless router are to have connected
Connect state;
If detecting and not getting IP address by described WAN mouthfuls, it is determined that current WAN mouthfuls of states of wireless router are not
Connection status.
Further, the detection module is also used to:
Whether normal detect current wireless router domain name mapping;
If detecting, domain name parsing is normal, it is determined that current WAN mouthfuls of states of wireless router are connected status;
If detecting, domain name parsing is abnormal, it is determined that current WAN mouthfuls of states of wireless router are not-connected status.
Further, the detection module is also used to:
The frame number for the beacon beacon frame that other wireless routers received in statistics preset duration are sent;
If the beacon frame frame number received in the preset duration is greater than default frame number, it is determined that described current
Wireless router and other wireless routers bridge joint connect;
If the beacon frame frame number received in the preset duration is not more than the default frame number, it is determined that institute
It states current wireless router and does not bridge connection with other wireless routers.
The expansion content of the specific embodiment of dynamic address allocation service configuration device of the present invention and above-mentioned dynamic address
Distribution each embodiment of service configuration method is essentially identical, and this will not be repeated here.
In addition, the embodiment of the present invention also proposes a kind of computer readable storage medium, the computer readable storage medium
On be stored with dynamic address allocation service configuration program, it is real when the dynamic address allocation service configuration program is executed by processor
The step of now service configuration method is distributed in location dynamically as explained above.The specific embodiment party of computer readable storage medium of the present invention
The expansion content of formula and above-mentioned each embodiment of dynamic address allocation service configuration method are essentially identical, and this will not be repeated here.
It should be noted that, in this document, the terms "include", "comprise" or its any other variant are intended to non-row
His property includes, so that the process, method, article or the system that include a series of elements not only include those elements, and
And further include other elements that are not explicitly listed, or further include for this process, method, article or system institute it is intrinsic
Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including being somebody's turn to do
There is also other identical elements in the process, method of element, article or system.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side
Method can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many cases
The former is more preferably embodiment.Based on this understanding, technical solution of the present invention substantially in other words does the prior art
The part contributed out can be embodied in the form of software products, which is stored in one as described above
In storage medium (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that terminal device (it can be mobile phone,
Computer, server, air conditioner or network equipment etc.) execute method described in each embodiment of the present invention.
The above is only a preferred embodiment of the present invention, is not intended to limit the scope of the invention, all to utilize this hair
Equivalent structure or equivalent flow shift made by bright specification and accompanying drawing content is applied directly or indirectly in other relevant skills
Art field, is included within the scope of the present invention.
Claims (10)
1. a kind of dynamic address allocation service configuration method, which is characterized in that the dynamic address allocation service configuration method packet
Include following steps:
When current wireless router is in target operational mode, WAN mouthfuls of states of wide area network of current wireless router are detected;
If detect the WAN mouthfuls of state be not-connected status, detect current wireless router whether with other wireless routings
Device bridge joint connection;
If detecting, current wireless router and other wireless routers bridge joint are connected, dynamically by current wireless router
Location distribution service is set to off closed state.
2. dynamic address allocation service configuration method as described in claim 1, which is characterized in that the detection is currently without route
By device WAN mouthfuls of states of wide area network the step of after, further includes:
If detecting, the WAN mouthfuls of state is connected status, and the dynamic address allocation service of current wireless router is set
It is set to open state.
3. dynamic address allocation service configuration method as described in claim 1, which is characterized in that if it is described detect it is described
WAN mouthfuls of states are not-connected status, then detect the step of whether current wireless router bridges connection with other wireless routers
Later, further includes:
If detecting that current wireless router is not bridged with other wireless routers to connect, by the dynamic of current wireless router
Address allocation services are set on state.
4. dynamic address allocation service configuration method as described in claim 1, which is characterized in that the detection is currently without route
By device WAN mouthfuls of states of wide area network the step of include:
Detect whether current wireless router WAN mouthfuls be inserted into cable;
If detecting, described WAN mouthfuls has been inserted into cable, it is determined that current WAN mouthfuls of states of wireless router are connected status;
If detecting, described WAN mouthfuls is not inserted into cable, it is determined that current WAN mouthfuls of states of wireless router are not-connected status.
5. dynamic address allocation service configuration method as described in claim 1, which is characterized in that the detection is currently without route
By device WAN mouthfuls of states of wide area network the step of include:
Detect whether current wireless router by WAN mouthfuls gets IP address;
IP address is got by described WAN mouthfuls if detecting, it is determined that current WAN mouthfuls of states of wireless router are to have connected shape
State;
If detecting and not getting IP address by described WAN mouthfuls, it is determined that current WAN mouthfuls of states of wireless router are not connected
State.
6. dynamic address allocation service configuration method as described in claim 1, which is characterized in that the detection is currently without route
By device WAN mouthfuls of states of wide area network the step of include:
Whether normal detect current wireless router domain name mapping;
If detecting, domain name parsing is normal, it is determined that current WAN mouthfuls of states of wireless router are connected status;
If detecting, domain name parsing is abnormal, it is determined that current WAN mouthfuls of states of wireless router are not-connected status.
7. such as dynamic address allocation service configuration method as claimed in any one of claims 1 to 6, which is characterized in that the detection
Whether current wireless router bridges the step of connecting with other wireless routers
The frame number for the beacon beacon frame that other wireless routers received in statistics preset duration are sent;
If the beacon frame frame number received in the preset duration is greater than default frame number, it is determined that described current wireless
Router and other wireless routers bridge joint connect;
If the beacon frame frame number received in the preset duration is not more than the default frame number, it is determined that described to work as
Preceding wireless router is not bridged with other wireless routers and is connected.
8. a kind of dynamic address allocation service configuration device, which is characterized in that the dynamic address allocation service configuration device packet
It includes:
Detection module, for detecting the wide area of current wireless router when current wireless router is in target operational mode
Net WAN mouthfuls of states;
If the detection module is also used to detect that the WAN mouthfuls of state is not-connected status, current wireless router is detected
Whether bridge and connects with other wireless routers;
Dynamic address allocation service configuration module, if for detecting that current wireless router and other wireless routers bridge joint connect
It connects, then the dynamic address allocation service of current wireless router is set to closed state.
9. a kind of dynamic address allocation service configuration equipment, which is characterized in that the dynamic address allocation service configuration equipment packet
It includes memory, processor and is stored in the dynamic address allocation service that can be run on the memory and on the processor and match
Program is set, is realized when the dynamic address allocation service configuration program is executed by the processor such as any one of claim 1 to 7
The step of described dynamic address allocation service configuration method.
10. a kind of computer readable storage medium, which is characterized in that be stored with dynamically on the computer readable storage medium
Service configuration program is distributed in location, and such as claim 1 is realized when the dynamic address allocation service configuration program is executed by processor
To described in any one of 7 the step of dynamic address allocation service configuration method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811587828.6A CN109618019B (en) | 2018-12-25 | 2018-12-25 | Dynamic address allocation service configuration method, device, equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811587828.6A CN109618019B (en) | 2018-12-25 | 2018-12-25 | Dynamic address allocation service configuration method, device, equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109618019A true CN109618019A (en) | 2019-04-12 |
CN109618019B CN109618019B (en) | 2021-10-22 |
Family
ID=66012181
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811587828.6A Active CN109618019B (en) | 2018-12-25 | 2018-12-25 | Dynamic address allocation service configuration method, device, equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109618019B (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110098968A (en) * | 2019-05-20 | 2019-08-06 | 李德鱼 | A kind of wired bridge joint of router realizes the automatic setting method of radio roaming |
CN110213079A (en) * | 2019-04-24 | 2019-09-06 | 北京奇虎科技有限公司 | A kind of router drop off-line configuration method, device and computer equipment |
CN111404779A (en) * | 2020-03-12 | 2020-07-10 | 深圳市吉祥腾达科技有限公司 | Method, device and system for testing role switching of router nodes |
CN113452560A (en) * | 2021-06-24 | 2021-09-28 | 博为科技有限公司 | Mesh networking method and device |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1411212A (en) * | 2002-08-22 | 2003-04-16 | 华为技术有限公司 | Message receiving and transmitting method of combined bridge connection function and routing function |
US20040114610A1 (en) * | 2002-12-16 | 2004-06-17 | Featherston Lord Nigel | Dynamic wan port detection |
CN101286909A (en) * | 2008-06-10 | 2008-10-15 | 华中科技大学 | Method of automatically constructing wireless distributed system |
CN203378053U (en) * | 2013-07-17 | 2014-01-01 | 浩利源电子(深圳)有限公司 | An intelligent wireless router |
CN103746908A (en) * | 2013-12-31 | 2014-04-23 | 上海斐讯数据通信技术有限公司 | Wireless gateway equipment and work pattern selection method thereof |
CN105472485A (en) * | 2015-11-20 | 2016-04-06 | 烽火通信科技股份有限公司 | Method and system for controlling ONU to distribute IP automatically |
CN107211369A (en) * | 2014-12-16 | 2017-09-26 | 汤姆逊许可公司 | It is selectively enabled the method for WAP or repeater |
CN107453945A (en) * | 2017-07-14 | 2017-12-08 | 上海斐讯数据通信技术有限公司 | Because router netting twine disconnects the solution method and system for causing network not connect |
CN108989114A (en) * | 2018-07-25 | 2018-12-11 | 新华三技术有限公司 | A kind of method and device configuring router |
-
2018
- 2018-12-25 CN CN201811587828.6A patent/CN109618019B/en active Active
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1411212A (en) * | 2002-08-22 | 2003-04-16 | 华为技术有限公司 | Message receiving and transmitting method of combined bridge connection function and routing function |
US20040114610A1 (en) * | 2002-12-16 | 2004-06-17 | Featherston Lord Nigel | Dynamic wan port detection |
CN101286909A (en) * | 2008-06-10 | 2008-10-15 | 华中科技大学 | Method of automatically constructing wireless distributed system |
CN203378053U (en) * | 2013-07-17 | 2014-01-01 | 浩利源电子(深圳)有限公司 | An intelligent wireless router |
CN103746908A (en) * | 2013-12-31 | 2014-04-23 | 上海斐讯数据通信技术有限公司 | Wireless gateway equipment and work pattern selection method thereof |
CN107211369A (en) * | 2014-12-16 | 2017-09-26 | 汤姆逊许可公司 | It is selectively enabled the method for WAP or repeater |
CN105472485A (en) * | 2015-11-20 | 2016-04-06 | 烽火通信科技股份有限公司 | Method and system for controlling ONU to distribute IP automatically |
CN107453945A (en) * | 2017-07-14 | 2017-12-08 | 上海斐讯数据通信技术有限公司 | Because router netting twine disconnects the solution method and system for causing network not connect |
CN108989114A (en) * | 2018-07-25 | 2018-12-11 | 新华三技术有限公司 | A kind of method and device configuring router |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110213079A (en) * | 2019-04-24 | 2019-09-06 | 北京奇虎科技有限公司 | A kind of router drop off-line configuration method, device and computer equipment |
CN110098968A (en) * | 2019-05-20 | 2019-08-06 | 李德鱼 | A kind of wired bridge joint of router realizes the automatic setting method of radio roaming |
CN111404779A (en) * | 2020-03-12 | 2020-07-10 | 深圳市吉祥腾达科技有限公司 | Method, device and system for testing role switching of router nodes |
CN113452560A (en) * | 2021-06-24 | 2021-09-28 | 博为科技有限公司 | Mesh networking method and device |
Also Published As
Publication number | Publication date |
---|---|
CN109618019B (en) | 2021-10-22 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109618019A (en) | Dynamic address allocation service configuration method, apparatus, equipment and storage medium | |
CN101523812B (en) | System and method for collecting network performance information | |
CN104539464B (en) | Nodal fault diagnostics method and device | |
CN104185305B (en) | It is a kind of to apply networking methods and mobile terminal with priority | |
CN106612211A (en) | A rout detecting method, a controller and a network device in a VxLAN | |
CN109889547A (en) | A kind of detection method and device of abnormal network equipment | |
CN113595897B (en) | Path detection method and device | |
CN103906055B (en) | Business datum shunt method and system | |
CN106162696A (en) | Method, device and the terminal that a kind of wireless network connects | |
CN106534289A (en) | Automatic testing method, device and system | |
CN108322366A (en) | Access the methods, devices and systems of network | |
CN102142925B (en) | Method, equipment and system for filtering deep packet inspection | |
KR101264951B1 (en) | Device for intercepting and analyzing traffic for a terminal | |
CN103503373A (en) | Communication system and method | |
JP2014513501A5 (en) | Information determination method, user application, and information determination system | |
US9979793B2 (en) | Methods and systems for sending and receiving information data | |
CN102143024A (en) | Test method, network equipment and test system of load balancing function | |
CN107659436A (en) | A kind of method and device for preventing service disconnection | |
CN104869118B (en) | A kind of method and system for realizing DDoS defence based on dynamic tunneling technique | |
US7209464B2 (en) | Verification system and method for packet call processing operation of mobile telephone | |
US20170019327A1 (en) | Heterogeneous network system, network apparatus, and rendezvous path selection method thereof | |
CN115834291A (en) | Distributed intranet service data acquisition method, device, equipment and storage medium | |
CN106603348B (en) | A kind of method and system that simulation DHCP Offer floods | |
JP6068540B2 (en) | Information providing apparatus, communication apparatus, information providing method, and program | |
Peng et al. | Multipath mobile data offloading of deadline assurance with policy and charging control in cellular/WiFi networks |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |