CN107040431A - A kind of method and system on detection AP LAN chomas road - Google Patents

A kind of method and system on detection AP LAN chomas road Download PDF

Info

Publication number
CN107040431A
CN107040431A CN201710158959.1A CN201710158959A CN107040431A CN 107040431 A CN107040431 A CN 107040431A CN 201710158959 A CN201710158959 A CN 201710158959A CN 107040431 A CN107040431 A CN 107040431A
Authority
CN
China
Prior art keywords
measured
lan
detection
loop
lan mouthfuls
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
Application number
CN201710158959.1A
Other languages
Chinese (zh)
Other versions
CN107040431B (en
Inventor
王斌
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Taizhou Jiji Intellectual Property Operation Co.,Ltd.
Original Assignee
Shanghai Feixun Data 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 Shanghai Feixun Data Communication Technology Co Ltd filed Critical Shanghai Feixun Data Communication Technology Co Ltd
Priority to CN201710158959.1A priority Critical patent/CN107040431B/en
Publication of CN107040431A publication Critical patent/CN107040431A/en
Application granted granted Critical
Publication of CN107040431B publication Critical patent/CN107040431B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/10Active monitoring, e.g. heartbeat, ping or trace-route
    • H04L43/103Active monitoring, e.g. heartbeat, ping or trace-route with adaptive polling, i.e. dynamically adapting the polling rate

Abstract

The invention discloses a kind of method on detection AP LAN chomas road, including:Judge the to be measured first LAN mouthfuls of AP, the to be measured 2nd LAN mouthfuls whether be in enabling state, if then entering next step;Start loop detection polling mechanism, the to be measured first LAN mouthful according to default detection cycle timing transmission loop detection data frame;Judge whether the data frames of the to be measured 2nd LAN mouthfuls of receptions consistent with loop detection data frame, if so, then judge the to be measured first LAN mouthfuls, the to be measured 2nd LAN mouthfuls there is loop;Otherwise judge the to be measured first LAN mouthfuls, the to be measured 2nd LAN mouthfuls do not occur loop, close loop detection polling mechanism, stop loop detection.The invention also discloses a kind of system on detection AP LAN chomas road., can be whether to there is loop between two LAN mouthfuls of simple and effective quick detection AP by the method and system of the present invention.

Description

A kind of method and system on detection AP LAN chomas road
Technical field
The invention belongs to local area network technology field, more particularly to a kind of method and system on detection AP LAN chomas road.
Background technology
, it is necessary to ensure that the two Ethernet interfaces do not constitute loop, if equipment in the equipment for possessing two local ethernets In loop circuit state, message will constantly circulate reception and forwarding in a device, so that loop storm will be caused, and once Loop storm is formed, the CPU of equipment by it is tired in receive with forwarding tens thousand of at most millions of data messages per second per second at least, and Have no time handle proper communication network message.
Two kinds of common meetings cause the network topology of network access equipment loop to include device port from ring, and its middle port can To be two different ports under same port, or same equipment.Caused by same port from ring be usually by Cause in the register for being provided with device chip, user typically will not relate to this professional generic operation in daily use.Without It can then be easily done from ring with port, a such as netting twine docks two different descending A of equipment with B ports.I.e. The data message that equipment is sent out from A ports is again intact to be collected by B ports.
Above loop situations:The packet collected from a port, if not judged and not having related measure Limitation is with taking precautions against, and same data message can will also be forwarded by previous method and approach, and result is same Data message is received again from identical port, and so circulation causes loop storm, influences normal network communications.
, it is necessary to ensure that the two Ethernet interfaces do not constitute loop in the equipment for possessing two local ethernets, in general, Switch solves this problem using STP, on AP, but STP is complex.
The content of the invention
The present invention provides a kind of method and system on detection AP LAN chomas road, to solve upper two LAN mouthfuls of AP due to There is the problem of loop is difficult to be found in short circuit.
A kind of method on detection AP LAN chomas road of the present invention, including:
S100 judge the to be measured first LAN mouthfuls of AP, the to be measured 2nd LAN mouthfuls whether be in enabling state, if then entering Next step;
S200 starts loop detection polling mechanism, and LAN mouthfuls of control the described to be measured first is according to the timing of default detection cycle Send loop detection data frame;
S300 judge the described to be measured 2nd LAN mouthfuls receive and preparation forwarding data frame whether with the loop detection data Frame is consistent, if so, then entering step S400, otherwise into step S500;
S400 judge the described to be measured first LAN mouthfuls, the described to be measured 2nd LAN mouthfuls there is loop;
S500 judge the described to be measured first LAN mouthfuls, the described to be measured 2nd LAN mouthfuls do not occur loop, close the loop inspection Polling mechanism is surveyed, stops loop detection.
By sending detection data frame, to detect whether two LAN mouthfuls of AP cause loop because of netting twine short circuit.Side Method is easy and effective, workable.
Further, step is also included after the step S400:
S450 sends loop alarm signal, LAN mouthfuls of closing the described to be measured 2nd.
If there is loop, alarm signal is sent in time, notifies user.When there is loop for two LAN mouthfuls, close any One LAN mouthfuls, then the two LAN mouthfuls is not present loop, and loop detection function can also be closed.
Further, step is also included before the step S200:
S150 obtains the described to be measured first LAN mouthfuls, the described to be measured 2nd LAN mouthfuls of absolute time values that enable respectively;And obtain Take the described to be measured 2nd LAN mouthfuls of absolute time values that enable and the described to be measured first LAN mouthfuls of times of absolute time value for enabling Difference;
S160 judges whether the time difference is less than default enabling time interval, if so, then entering step S200.
As long as above scheme use two LAN mouthfuls all enable in the case of, just timing send detection data frame method, So consumption AP that can be larger cpu resource.In fact, last link of AP as access, the maximum possibility of loop It is that non-technical personnel is directly connected two mouths with netting twine.And in general, interchanger will not be connect behind AP again.So carrying here A kind of improved though is gone out, only two mouths of detection are directly with the connected loop caused of netting twine.In view of non-technical personnel netting twine The situation that two mouths of Ethernet are joined directly together, then in theory, it should there is two Ethernet interfaces up simultaneously, it is contemplated that in reality In the situation of border, the processing of hardware and software can not possibly Complete Synchronization, so it is contemplated that if there is two Ethernet interface up's Time interval was less than B seconds, then we carry out loop detection, and in other cases, we need not carry out loop detection completely.Certainly When AP starts shooting, we must do a loop detection.Because we only in the case of only a few detection loop, CPU Burden ignore.Here absolute time value, refer to LAN mouthfuls and open time point for enabling, and general two LAN mouthfuls are shorted When, still there is smaller difference at the time point enabled in fact, be not it is theoretic and meanwhile open enable, but due to difference compared with It is small, therefore we can be with the enabling time interval of reasonable set one, if two LAN mouthfuls are opened the time interval enabled at this In default enabling time interval, then loop detection is carried out, otherwise then illustrating that the two LAN mouthfuls is not shorted, also Loop detection need not be carried out.
Further, step is also included after step S450:
LAN mouthfuls of S460 controls the described to be measured first continue to send loop detection number according to the default detection cycle timing According to frame, according to default LAN mouthfuls of relieving interval time relieving the described to be measured 2nd, LAN mouthfuls of control the described to be measured 2nd is only received Message, it is impossible to E-Packet;
S470 judge the data frame that is received on the 2nd LAN mouths to be measured whether with the described to be measured first LAN mouthfuls of transmissions Loop detection data frame is consistent, if so, then entering step S480, otherwise into step S490;
LAN mouthfuls of S480 closings the described to be measured 2nd, return to step S460;
S490 releases loop alarm, the described to be measured 2nd LAN mouthfuls is enabled, into step S500.
If LAN mouthfuls of two of AP have been observed that there are loop situations, but system does not know when loop can be by Release, therefore, it is also desirable to which whether periodic detection loop is released from.Specifically, the to be measured first LAN mouthfuls still may proceed to timing send Loop detection data frame, and the to be measured 2nd LAN mouthfuls also can according to it is default relieving interval time timing be released, relieving here Refer to this to be measured 2nd LAN mouthfuls can receive message, but do not do any forwarding.If detect to be measured 2nd LAN mouthfuls receive Data frame is exactly the to be measured first LAN mouthfuls of loop detection data frames that send, then just illustrate that the two LAN mouthfuls of loop is still deposited , it is not released from, therefore, or LAN mouthfuls of closing the to be measured 2nd, until next relieving time arrives, then trigger relieving To be measured 2nd LAN mouthfuls, proceed loop detection.If it is determined that the two LAN mouthfuls of loop is not present, then sound all clear, LAN mouthfuls of normal works.
Further, the step S300 includes step:
S310 judges length, the purpose of data frame and the loop detection data frame of the described to be measured 2nd LAN mouthfuls of receptions Whether MAC, payload are consistent, if so, then entering step S400, otherwise into step S500.
The present invention also provides a kind of system on detection AP LAN chomas road, includes AP the to be measured first LAN mouthfuls, the AP The to be measured 2nd LAN mouthfuls, detection control unit, the detection control unit respectively with the described to be measured first LAN mouthfuls, it is described to be measured 2nd LAN mouthfuls be connected, the detection control unit include state detection module, control module, operation module, the control module It is connected respectively with the state detection module, operation module, wherein:The state detection module detection judges described to be measured first LAN mouthfuls, the described to be measured 2nd LAN mouthfuls whether be in enabling state;If so, then the operation module is in the control module Control is lower to start loop detection polling mechanism, the described to be measured first LAN mouthfuls under the control of the control module according to default Detection cycle timing sends loop detection data frame;The control module judges the described to be measured 2nd LAN mouthfuls of receptions and pre- Whether the data frame of standby forwarding consistent with the loop detection data frame, if so, then judge the described to be measured first LAN mouthfuls, it is described To be measured 2nd LAN mouthfuls there is loop;Otherwise, judge the described to be measured first LAN mouthfuls, the described to be measured 2nd LAN mouthfuls do not occur loop, The operation module closes the loop detection polling mechanism, stops loop detection.
Further, the detection control unit also includes alarm modules, the alarm modules and control module electricity Connection, wherein:When the control module judge the described to be measured first LAN mouthfuls, the to be measured 2nd LAN mouthfuls there is loop when, the police Module is reported to send loop alarm signal, LAN mouthfuls of the operation module closing the described to be measured 2nd.
Further, the detection control unit also includes acquisition module, the acquisition module and the control module phase Connect, wherein:The acquisition module obtains the described to be measured first LAN mouthfuls, the described to be measured 2nd LAN mouthfuls of absolute times that enable respectively Value;And obtain the described to be measured 2nd LAN mouthfuls of absolute time values that enable and the described to be measured first LAN mouthfuls of absolute time values that enable Time difference;The control module judges whether the time difference is less than default enabling time interval, if so, the then operation Module starts loop detection polling mechanism under the control of the control module.
Further, when the control module judge the described to be measured first LAN mouthfuls, the described to be measured 2nd LAN mouthfuls there is ring Road, and the alarm modules send loop alarm signal, it is described to treat after LAN mouthfuls of the operation module closing the described to be measured 2nd Survey the first LAN mouthfuls continue to send loop detection number according to the default detection cycle timing under the control of the control module According to frame, the operation module is according to default LAN mouthfuls of relieving interval time relieving the described to be measured 2nd, control described to be measured second LAN mouthfuls only receive message, it is impossible to E-Packet;The control module judges the data frame received on the 2nd LAN mouths to be measured It is whether consistent with the loop detection data frame of the described to be measured first LAN mouthfuls of transmissions, if so, then being treated described in the operation module closing The 2nd LAN mouthfuls are surveyed, waits next default relieving interval time to decontrol the described to be measured 2nd LAN mouthful, progress loop detection again; Otherwise the operation module releases loop alarm, enables the described to be measured 2nd LAN mouthfuls.
Further, the control module judge the described to be measured 2nd LAN mouthfuls receive and preparation forwarding data frame whether It is consistent with the loop detection data frame including:The control module judge the described to be measured 2nd LAN mouthfuls reception data frame with Whether length, purpose MAC, the payload of the loop detection data frame are consistent.
The present invention sends loop detection frame whether loop occur between detecting two LAN mouthfuls that judge AP by timing, Method is simple, workable.Effectively loop circuit state can also be shielded when a loop exists, can prevent to be absorbed in substantially To the danger of loop storm.In addition, before timing sends loop detection frame, setting trigger conditions, passing through interpretation two Ethernet interface Up time interval, to improve loop detection, reduces the burden of system operation.
Brief description of the drawings
Technical scheme in order to illustrate the embodiments of the present invention more clearly, makes required in being described below to embodiment Accompanying drawing is briefly introduced, it should be apparent that, drawings in the following description are only some embodiments of the present invention, for this For the those of ordinary skill in field, without having to pay creative labor, it can also be obtained according to these accompanying drawings His accompanying drawing.
Fig. 1 is a kind of flow chart of the embodiment of the method one on detection AP LAN chomas road of the present invention;
Fig. 2 is a kind of flow chart of another embodiment of method on detection AP LAN chomas road of the present invention;
Fig. 3 is a kind of block diagram of the system embodiment on detection AP LAN chomas road of the present invention.
Embodiment
In order that the object, technical solutions and advantages of the present invention are clearer, below in conjunction with accompanying drawing the present invention is made into One step it is described in detail, it is clear that described embodiment is only embodiment of the invention a part of, rather than whole implementation Example.Based on the embodiment in the present invention, what those of ordinary skill in the art were obtained under the premise of creative work is not made All other embodiment, belongs to the scope of protection of the invention.
The invention discloses a kind of method on detection AP LAN chomas road, embodiment one is as shown in figure 1, including step:
S100 judge the to be measured first LAN mouthfuls of AP, the to be measured 2nd LAN mouthfuls whether be in enabling state, if then entering Next step;
S200 starts loop detection polling mechanism, and LAN mouthfuls of control the described to be measured first is according to the timing of default detection cycle Send loop detection data frame;
S300 judge the described to be measured 2nd LAN mouthfuls receive and preparation forwarding data frame whether with the loop detection data Frame is consistent, if so, then entering step S400, otherwise into step S500;
S400 judge the described to be measured first LAN mouthfuls, the described to be measured 2nd LAN mouthfuls there is loop;
S500 judge the described to be measured first LAN mouthfuls, the described to be measured 2nd LAN mouthfuls do not occur loop, close the loop inspection Polling mechanism is surveyed, stops loop detection.
The present invention detects two LAN mouthfuls of AP by sending loop detection data frame (Ethernet Date frame) Between whether there is loop.The to be measured first LAN mouthfuls first, the to be measured 2nd LAN mouthfuls to be in enabling state and can just start loop Detect function, start loop detection after, the to be measured first LAN mouthfuls can send data frame (the loop detection data for detection loop Frame), then detect the to be measured 2nd LAN mouthfuls receive and the data frame intending to forward whether be exactly the to be measured first LAN mouthfuls send Loop detection data frame, if so then judge the to be measured first LAN mouthfuls, the to be measured 2nd LAN mouthfuls there is loop.
In the step S300 of above-described embodiment, the data frame of the described to be measured 2nd LAN mouthfuls of receptions and preparation forwarding is judged Whether the data frame including judging the described to be measured 2nd LAN mouthfuls of receptions consistent with the loop detection data frame is examined with the loop Whether length, purpose MAC, the payload for surveying data frame are consistent, if so, then entering step S400, otherwise into step S500.
If Ethernet receives and prepares the data frame of forwarding in data frame length, target MAC (Media Access Control) address, payload (payload) if consistent with the to be measured first LAN mouthfuls of loop detection data frames sent, then illustrate, the to be measured 2nd LAN mouthfuls connect The data frame received and forwarded is the to be measured first LAN mouthfuls of data frames that send.Preferably, judging the to be measured 2nd LAN mouthfuls of receptions And preparation forwarding data it is consistent with the to be measured first LAN mouthfuls of loop detection data frames sent after, if determining whether, this is to be measured 2nd LAN mouthfuls be then the to be measured first LAN mouthfuls, the 2nd LAN to be measured to the to be measured first if LAN mouthfuls by the data forwarding of the reception There is loop undoubtedly in mouth, so circulation mutually forwarding, causes loop storm, influence proper communication.
Preferably, on the basis of above-described embodiment, in addition to step:
S450 sends loop alarm signal, LAN mouthfuls of closing the described to be measured 2nd.
It is now assumed that AP has and only two Ethernet interfaces, in order to rapid detecting loop, we take timing to send report The form of text, timing is N.Whether AP after powering, begins to two Ethernet interfaces of detection up.In only one of which LAN Using or without in the case of LAN mouthfuls of uses, loop discovery function is closed.Detection mode, only need to be at some LAN mouthfuls without poll During up or down, detect.
In the case of detecting to two port all up, loop discovery function is opened.
Loop discovery function module design is polling mechanism.Timing is N (it is recommended that N is 3 seconds).In each clocked flip, An Ethernet Data frame is sent from LAN1 to go out, dest mac are a particular value, it is assumed here that A, payload (note for A:The present embodiment set payload also be destination-mac address value, it is of course also possible to be set to it is other, as long as both sides Appoint).So, this Ethernet Data frame length is a fixed value, it is assumed here that be L.
For all Frame received on LAN2, it then follows following logic:
Another embodiment of the inventive method, as shown in Fig. 2 including step:
S100 judge the to be measured first LAN mouthfuls of AP, the to be measured 2nd LAN mouthfuls whether be in enabling state, if then entering Next step;
S150 obtains the described to be measured first LAN mouthfuls, the described to be measured 2nd LAN mouthfuls of absolute time values that enable respectively;And obtain Take the described to be measured 2nd LAN mouthfuls of absolute time values that enable and the described to be measured first LAN mouthfuls of times of absolute time value for enabling Difference;
S160 judges whether the time difference is less than default enabling time interval, if so, then entering step S200;
S200 starts loop detection polling mechanism, and LAN mouthfuls of control the described to be measured first is according to the timing of default detection cycle Send loop detection data frame;
S300 judge the described to be measured 2nd LAN mouthfuls receive and preparation forwarding data frame whether with the loop detection data Frame is consistent, if so, then entering step S400, otherwise into step S500;
S400 judge the described to be measured first LAN mouthfuls, the described to be measured 2nd LAN mouthfuls there is loop;
S450 sends loop alarm signal, LAN mouthfuls of closing the described to be measured 2nd;
S500 judge the described to be measured first LAN mouthfuls, the described to be measured 2nd LAN mouthfuls do not occur loop, close the loop inspection Polling mechanism is surveyed, stops loop detection.
Situation about two mouths of Ethernet being joined directly together with netting twine in view of non-technical personnel, then in theory, it should deposit In two Ethernet interfaces while up, it is contemplated that in a practical situation, the impossible Complete Synchronization of processing of hardware and software, so I Consider if there is two Ethernet interface up time interval be less than B seconds, then we carry out loop detection, in other situations Under, we need not carry out loop detection completely.Certainly when AP starts shooting, we must do a loop detection.
Logic is as follows:
Assuming that a mouth, up, the up exhausted big time is M.
At this moment another up, absolute time is N, then judges as follows:
If(N-M<B)
Loop detection function is opened, if not detecting loop, loop detection function is closed immediately
Else
Do nothing
Because our only detection loops in the case of only a few, CPU burden ignores.
Another embodiment of the inventive method, on the basis of any of the above-described embodiment, also includes after step S450:
LAN mouthfuls of S460 controls the described to be measured first continue to send loop detection number according to the default detection cycle timing According to frame, according to default LAN mouthfuls of relieving interval time relieving the described to be measured 2nd, LAN mouthfuls of control the described to be measured 2nd is only received Message, it is impossible to E-Packet;
S470 judge the data frame that is received on the 2nd LAN mouths to be measured whether with the described to be measured first LAN mouthfuls of transmissions Loop detection data frame is consistent, if so, then entering step S480, otherwise into step S490;
LAN mouthfuls of S480 closings the described to be measured 2nd, return to step S460;
S490 releases loop alarm, the described to be measured 2nd LAN mouthfuls is enabled, into step S500.
If LAN mouthfuls of two of AP have been observed that there are loop situations, but system does not know when loop can be by Release, therefore, it is also desirable to whether periodic detection loop is released from, if not releasing if or to close one LAN mouthfuls, keep away Exempt from loop;Sound all clear if releasing, pent LAN mouthfuls also enables before so that two LAN mouthfuls of normal works.
Therefore, in the case of loop is already present, LAN1 still continued to send out Frame by N seconds, and decontroled (relieving in LAN2M seconds Refer to receive message from LAN2, but do not do any forwarding), then detect whether loop is still present on LAN2.If it is present Block LAN2, when lower M seconds clocked flip.If LAN2 (N in M seconds>M Frame) is not received, then releases Alert, LAN mouthfuls of normal works.
In the case of loop, any a bite down then returns to original state, and close loop discovery function.
Based on identical technical concept, the embodiment of the present invention also provides a kind of system on detection AP LAN chomas road, and this is The executable above method embodiment of system.System provided in an embodiment of the present invention is as shown in figure 3, the to be measured first LAN mouthfuls including AP 10th, the 2nd LAN mouths 20 to be measured of the AP, detection control unit 30, the detection control unit 30 is respectively with described to be measured One LAN mouths 10, the 2nd LAN mouths 20 to be measured are connected, and the detection control unit 30 includes state detection module 11, control mould Block 13, operation module 12, the control module 13 are connected with the state detection module 11, operation module 12 respectively, wherein:Institute State the detection of state detection module 11 and judge whether the first LAN mouths 10 to be measured, the 2nd LAN mouths 20 to be measured are in enabling State;If so, then the operation module 12 starts loop detection polling mechanism under the control of the control module 13, it is described to treat Survey the first LAN mouths 10 and send loop detection number according to the timing of default detection cycle under the control of the control module 13 According to frame;The control module 13 judge the 2nd LAN mouths 20 to be measured receive and preparation forwarding data frame whether with the ring Road detection data frame is consistent, if so, then judging that loop occur in the first LAN mouths 10 to be measured, the 2nd LAN mouths 20 to be measured; Otherwise, judge that the first LAN mouths 10 to be measured, the 2nd LAN mouths 20 to be measured do not occur loop, the operation module 12 is closed The loop detection polling mechanism, stops loop detection.
Preferably, on the basis of said system embodiment one, the detection control unit 30 also includes alarm modules 14, The alarm modules 14 are electrically connected with the control module 13, wherein:
When the control module 13 judges that loop occur in the first LAN mouths 10 to be measured, the 2nd LAN mouths 20 to be measured, institute State alarm modules 14 and send loop alarm signal, the operation module 12 closes the 2nd LAN mouths 20 to be measured.
Once it was found that loop, is momentarily turned off the LAN mouths of loop one end, effectively can shield loop circuit state, keep away Exempt from network service is influenceed by loop.
On the basis of said system embodiment, the detection control unit 30 also includes acquisition module 15, described to obtain Module 15 is connected with the control module 13, wherein:
It is exhausted that the acquisition module 15 obtains the first LAN mouths 10 to be measured respectively, the 2nd LAN mouths 20 to be measured are enabled To time value;And obtain what the absolute time value that the 2nd LAN mouths 20 to be measured enable was enabled with the first LAN mouths 10 to be measured The time difference of absolute time value;
The control module 13 judges whether the time difference is less than default enabling time interval, if so, the then behaviour Make module 12 and start loop detection polling mechanism under the control of the control module 13.
Because automatic regular polling detection more expends Installed System Memory, therefore this programme is carried out on the basis of system embodiment one Improve, before automatic regular polling loop detection, add the condition of automatic regular polling loop detection.Used in view of non-technical personnel The situation that netting twine is joined directly together two mouths of Ethernet, then in theory, it should there is two Ethernet interfaces up simultaneously, it is contemplated that In a practical situation, the impossible Complete Synchronization of the processing of hardware and software, so it is contemplated that if there is two Ethernet interfaces Up time interval was less than default time B seconds, then we carry out loop detection, and in other cases, we need not enter completely Row loop detection.Certainly when AP starts shooting, we must do a loop detection.
On the basis of said system embodiment, the first LAN mouths 10 to be measured are judged when the control module 13, described There is loop in 2nd LAN mouths 20 to be measured, and the alarm modules 14 send loop alarm signal, and the operation module 12 closes institute State after the 2nd LAN mouths 20 to be measured:
The first LAN mouths 10 to be measured continue under the control of the control module 13 according to the default detection cycle Timing sends loop detection data frame, and the operation module 12 decontrols described to be measured second according to default relieving interval time LAN mouths 20, control described 2nd LAN mouths to be measured, 20 reception messages, it is impossible to E-Packet;
Whether the control module 13 judges the data frame that is received on the 2nd LAN mouths 20 to be measured with described to be measured first The loop detection data frame that LAN mouths 10 are sent is consistent, if so, then the operation module 12 closes the 2nd LAN mouths 20 to be measured, Wait next default relieving interval time to decontrol the 2nd LAN mouths 20 to be measured again, carry out loop detection;Otherwise the behaviour Make module 12 and release loop alarm, enable the 2nd LAN mouths 20 to be measured.
Detect after loop, because system can not learn when loop eliminates, therefore, the detection loop that system can be intelligent is No elimination state, after detecting that loop is released from, you can it is preceding because loop is limited the LAN used mouths that intelligence is enabled.
Preferably, in any of the above-described embodiment, the control module 13 judges that the 2nd LAN mouths 20 to be measured are received and pre- The data frame of standby forwarding it is whether consistent with the loop detection data frame including:The control module 13 judges described to be measured second Whether the data frame that LAN mouths 20 are received is consistent with the length of the loop detection data frame, purpose MAC, payload.
, but those skilled in the art once know basic creation although preferred embodiments of the present invention have been described Property concept, then can make other change and modification to these embodiments.So, appended claims are intended to be construed to include excellent Select embodiment and fall into having altered and changing for the scope of the invention.
Obviously, those skilled in the art can carry out the essence of various changes and modification without departing from the present invention to the present invention God and scope.So, if these modifications and variations of the present invention belong to the scope of the claims in the present invention and its equivalent technologies Within, then the present invention is also intended to comprising including these changes and modification.

Claims (10)

1. a kind of method on detection AP LAN chomas road, it is characterised in that including step:
S100 judge the to be measured first LAN mouthfuls of AP, the to be measured 2nd LAN mouthfuls whether be in enabling state, if then entering next Step;
S200 starts loop detection polling mechanism, and LAN mouthfuls of control the described to be measured first is sent according to the timing of default detection cycle Loop detection data frame;
S300 judge the described to be measured 2nd LAN mouthfuls receive and preparation forwarding data frame whether with the loop detection data frame one Cause, if so, then entering step S400, otherwise into step S500;
S400 judge the described to be measured first LAN mouthfuls, the described to be measured 2nd LAN mouthfuls there is loop;
S500 judge the described to be measured first LAN mouthfuls, the described to be measured 2nd LAN mouthfuls do not occur loop, close the loop detection wheel Inquiry mechanism, stops loop detection.
2. the method on a kind of detection AP according to claim 1 LAN chomas road, it is characterised in that in the step Also include step after S400:
S450 sends loop alarm signal, LAN mouthfuls of closing the described to be measured 2nd.
3. the method on a kind of detection AP according to claim 1 LAN chomas road, it is characterised in that in the step Also include step before S200:
S150 obtains the described to be measured first LAN mouthfuls, the described to be measured 2nd LAN mouthfuls of absolute time values that enable respectively;And obtain institute State the to be measured 2nd LAN mouthfuls of absolute time values that enable and the described to be measured first LAN mouthfuls of time differences of absolute time value for enabling;
S160 judges whether the time difference is less than default enabling time interval, if so, then entering step S200.
4. a kind of method on detection AP according to claim 2 LAN chomas road, it is characterised in that step S450 it Also include step afterwards:
LAN mouthfuls of S460 controls the described to be measured first continue to send loop detection data according to the default detection cycle timing Frame, according to default LAN mouthfuls of relieving interval time relieving the described to be measured 2nd, LAN mouthfuls of control the described to be measured 2nd only receives report Text, it is impossible to E-Packet;
S470 judge the data frame that is received on the 2nd LAN mouths to be measured whether the loop with the described to be measured first LAN mouthfuls of transmissions Detect that data frame is consistent, if so, then entering step S480, otherwise into step S490;
LAN mouthfuls of S480 closings the described to be measured 2nd, return to step S460;
S490 releases loop alarm, the described to be measured 2nd LAN mouthfuls is enabled, into step S500.
5. a kind of method on the LAN chomas road of detection AP according to any one of claim 1-4, it is characterised in that institute Stating step S300 includes step:
S310 judge the length of data frame and the loop detection data frame of the described to be measured 2nd LAN mouthfuls of receptions, purpose MAC, Whether payload is consistent, if so, then entering step S400, otherwise into step S500.
6. a kind of system on detection AP LAN chomas road, it is characterised in that the to be measured first LAN mouthfuls including AP, the AP treats Survey the 2nd LAN mouthfuls, detection control unit, the detection control unit respectively with the described to be measured first LAN mouthfuls, described to be measured second LAN mouthfuls are connected, and the detection control unit includes state detection module, control module, operation module, the control module difference It is connected with the state detection module, operation module, wherein:
State detection module detection judge the described to be measured first LAN mouthfuls, the described to be measured 2nd LAN mouthfuls whether be in enabling State;If so, then the operation module starts loop detection polling mechanism, described to be measured under the control of the control module One LAN mouthfuls sends loop detection data frame under the control of the control module according to the timing of default detection cycle;
The control module judge the described to be measured 2nd LAN mouthfuls receive and preparation forwarding data frame whether with the loop detection Data frame is consistent, if so, then judge the described to be measured first LAN mouthfuls, the described to be measured 2nd LAN mouthfuls there is loop;Otherwise, institute is judged State the to be measured first LAN mouthfuls, the described to be measured 2nd LAN mouthfuls do not occur loop, the operation module closes the loop detection poll Mechanism, stops loop detection.
7. a kind of system on detection AP according to claim 6 LAN chomas road, it is characterised in that the detection control Unit also includes alarm modules, and the alarm modules are electrically connected with the control module, wherein:
When the control module judge the described to be measured first LAN mouthfuls, the to be measured 2nd LAN mouthfuls there is loop when, the alarm modules Send loop alarm signal, LAN mouthfuls of the operation module closing the described to be measured 2nd.
8. a kind of system on detection AP according to claim 6 LAN chomas road, it is characterised in that the detection control Unit also includes acquisition module, and the acquisition module is connected with the control module, wherein:
The acquisition module obtains the described to be measured first LAN mouthfuls, the described to be measured 2nd LAN mouthfuls of absolute time values that enable respectively; And obtain the described to be measured 2nd LAN mouthfuls of absolute time value for enabling and the described to be measured first LAN mouthfuls of absolute time values that enable Time difference;
The control module judges whether the time difference is less than default enabling time interval, if so, the then operation module Start loop detection polling mechanism under the control of the control module.
9. a kind of system on detection AP according to claim 7 LAN chomas road, it is characterised in that
When the control module judge the described to be measured first LAN mouthfuls, the described to be measured 2nd LAN mouthfuls there is loop, and the alarm Module sends loop alarm signal, after LAN mouthfuls of the operation module closing the described to be measured 2nd:
Described to be measured first LAN mouthfuls continue to send according to the default detection cycle timing under the control of the control module Loop detection data frame, the operation module controls institute according to default LAN mouthfuls of relieving interval time relieving the described to be measured 2nd State the to be measured 2nd LAN mouthfuls reception messages, it is impossible to E-Packet;
The control module judge the data frame that is received on the 2nd LAN mouths to be measured whether with the described to be measured first LAN mouthfuls of hairs The loop detection data frame sent is consistent, if so, then LAN mouthfuls of the operation module closing the described to be measured 2nd, is waited next pre- If relieving interval time decontrol the described to be measured 2nd LAN mouthfuls again, carry out loop detection;Otherwise the operation module releases loop Alarm, enables the described to be measured 2nd LAN mouthfuls.
10. a kind of system on detection AP LAN chomas road according to any one of claim 6-9, it is characterised in that described Control module judge the described to be measured 2nd LAN mouthfuls receive and preparation forwarding data frame whether with the loop detection data frame one Cause includes:The control module judges the length of data frame and the loop detection data frame of the described to be measured 2nd LAN mouthfuls of receptions Whether degree, purpose MAC, payload are consistent.
CN201710158959.1A 2017-03-16 2017-03-16 Method and system for detecting LAN port loop of AP Active CN107040431B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710158959.1A CN107040431B (en) 2017-03-16 2017-03-16 Method and system for detecting LAN port loop of AP

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710158959.1A CN107040431B (en) 2017-03-16 2017-03-16 Method and system for detecting LAN port loop of AP

Publications (2)

Publication Number Publication Date
CN107040431A true CN107040431A (en) 2017-08-11
CN107040431B CN107040431B (en) 2021-06-04

Family

ID=59534444

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710158959.1A Active CN107040431B (en) 2017-03-16 2017-03-16 Method and system for detecting LAN port loop of AP

Country Status (1)

Country Link
CN (1) CN107040431B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109743234A (en) * 2019-03-01 2019-05-10 盛科网络(苏州)有限公司 Loop detection method and system based on tolerant mechanism

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1845512A (en) * 2006-05-25 2006-10-11 杭州华为三康技术有限公司 Method and apparatus for detecting loop
CN101707538A (en) * 2009-11-25 2010-05-12 烽火通信科技股份有限公司 Method for detecting and automatically recovering Ethernet loopback
CN103858388A (en) * 2013-10-08 2014-06-11 华为技术有限公司 Loop detection method and apparatus
CN104158706A (en) * 2014-08-26 2014-11-19 杭州华三通信技术有限公司 Method and device of loopback detection
US20160020974A1 (en) * 2014-07-18 2016-01-21 Allied Telesis Holdings K.K. Network device, communication method, program, and recording medium
US20160149799A1 (en) * 2014-11-25 2016-05-26 Huawei Technologies Co., Ltd. Loop Avoidance Method, Device and System

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1845512A (en) * 2006-05-25 2006-10-11 杭州华为三康技术有限公司 Method and apparatus for detecting loop
CN101707538A (en) * 2009-11-25 2010-05-12 烽火通信科技股份有限公司 Method for detecting and automatically recovering Ethernet loopback
CN103858388A (en) * 2013-10-08 2014-06-11 华为技术有限公司 Loop detection method and apparatus
US20160020974A1 (en) * 2014-07-18 2016-01-21 Allied Telesis Holdings K.K. Network device, communication method, program, and recording medium
CN104158706A (en) * 2014-08-26 2014-11-19 杭州华三通信技术有限公司 Method and device of loopback detection
US20160149799A1 (en) * 2014-11-25 2016-05-26 Huawei Technologies Co., Ltd. Loop Avoidance Method, Device and System

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109743234A (en) * 2019-03-01 2019-05-10 盛科网络(苏州)有限公司 Loop detection method and system based on tolerant mechanism

Also Published As

Publication number Publication date
CN107040431B (en) 2021-06-04

Similar Documents

Publication Publication Date Title
CN102821050B (en) A kind of RSTP is applied to the processing method of Single-ring network topology
US8213296B2 (en) Link aggregation protection
EP2207307B1 (en) Method for processing the failure of the slave port of the master node in an ethernet ring network system
CN101060485B (en) Topology changed messages processing method and processing device
US7555774B2 (en) Inline intrusion detection using a single physical port
CN112291246B (en) Method for expanding attack flow traction capacity in honeypot scene
EP2352253A1 (en) Method and apparatus for protecting link aggregation group of ethernet ring
CN103051536A (en) Quick multicast switching method of two-layer redundant link
CN101252479A (en) Loop detection method and switch
CN105812318B (en) For preventing method, controller and the system of attack in a network
WO2011021179A1 (en) Technique for dual homing interconnection between communication networks
WO2008154781A1 (en) A method for processing ether rig net message and an ether rig net protection system using the method
CN103973509A (en) Loop detection method and network device
CN101931573A (en) Method for positioning Ethernet loop
CN105516658B (en) A kind of monitoring device control method and device
CN101848121A (en) Automatic port loop detecting and protecting method based on a plurality of VLANs
WO2017059715A1 (en) Data configuration method and device for protecting ring network
CN105657571A (en) Bandwidth-saving method for video transmission in local area network
CN105530115A (en) Method and device for realizing operation management and maintenance function
WO2012139531A1 (en) Handling a fault in an ethernet ring network
JP4532253B2 (en) Frame transfer apparatus and frame loop suppression method
CN107682221A (en) A kind of Link State inspection method and device based on ERPS
US20180076975A1 (en) Auto detection and prevention of loop, segmentation and traffic outage in a g.8032 ring network
CN106487696B (en) Link failure detection method and device
CN107040431A (en) A kind of method and system on detection AP LAN chomas road

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
TA01 Transfer of patent application right

Effective date of registration: 20201027

Address after: 318015 no.2-3167, zone a, Nonggang City, no.2388, Donghuan Avenue, Hongjia street, Jiaojiang District, Taizhou City, Zhejiang Province

Applicant after: Taizhou Jiji Intellectual Property Operation Co.,Ltd.

Address before: 201616 Shanghai city Songjiang District Sixian Road No. 3666

Applicant before: Phicomm (Shanghai) Co.,Ltd.

TA01 Transfer of patent application right
GR01 Patent grant
GR01 Patent grant