CN102970622B - A kind of EPON network loop control method - Google Patents

A kind of EPON network loop control method Download PDF

Info

Publication number
CN102970622B
CN102970622B CN201210545478.3A CN201210545478A CN102970622B CN 102970622 B CN102970622 B CN 102970622B CN 201210545478 A CN201210545478 A CN 201210545478A CN 102970622 B CN102970622 B CN 102970622B
Authority
CN
China
Prior art keywords
port
thread
sub
mac address
optical network
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201210545478.3A
Other languages
Chinese (zh)
Other versions
CN102970622A (en
Inventor
周涛
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
GUANGDONG DONYAN NETWORK TECHNOLOGIES Co Ltd
Original Assignee
GUANGDONG DONYAN NETWORK TECHNOLOGIES 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 GUANGDONG DONYAN NETWORK TECHNOLOGIES Co Ltd filed Critical GUANGDONG DONYAN NETWORK TECHNOLOGIES Co Ltd
Priority to CN201210545478.3A priority Critical patent/CN102970622B/en
Publication of CN102970622A publication Critical patent/CN102970622A/en
Application granted granted Critical
Publication of CN102970622B publication Critical patent/CN102970622B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention provides a kind of EPON network loop control method, it comprises: first on optical network unit, carry out static mac address binding, then open the sub-thread of broadcast, in optical network unit, open poll subprocess to carry out detection from central port and process simultaneously.The method can solve occur in EPON network from ring problem.

Description

A kind of EPON network loop control method
Technical field
EPON(Ethernet passive optical network belonging to the present invention) there is from ring problem control method in network.
Background technology
Due to the complexity of Access Network network environment, its maintenance issues becomes the emphasis that each operator considers gradually, and passive network is in the advantage of maintenance cost than active network, also causes EPON in the fast development of Access Network; EPON inherits Ethernet characteristic completely, and compatible strong, technology is widely used, and also bring the disadvantageous one side of Ethernet while inheriting Ethernet advantage, that is exactly the harmfulness of Ethernet Circle.Ethernet Circle refers to because the reasons such as network connectivity is lack of standardization, short cause the data forwarding paths of whole network to there is loop, the harm caused thus mainly comprises broadcast storm, MAC Address drift, transmits entanglement etc., thus causes whole network congestion, interruption.
Case 1:
Case describes:
0 second line of a couplet switch 1 as shown in Figure 1: the ONU(optical network unit of XX community), switch 1 time hangs Hub(hub) 3 and 4, Hub be placed in user family, every user has 3 interfaces for online.Occur that user cannot surf the Net or surf the Net interruption phenomenon at the scene in environment.
Case root cause analysis:
ONU meets PC 5:192.168.0.100, switch meets PC 2:192.168.0.99, PC 5 couples of PC 2 send ping order, namely during 192.168.0.100ping 192.168.0.99, following event occur:
(1) first PC 5 checks the ARP(address resolution protocol of oneself) buffer memory, find the entry not arriving PC 2;
(2) calculate object IP address and 192.168.0.99 whether with oneself the same network segment (carrying out binary system and computing), if not, and when not having allocating default gateway, it will directly abandon this packet; Calculating 192.168.0.99 and oneself belong to same network segment 192.168.0.0/24, then send ARP broadcast request, object MAC(medium access control) address is ff-ff-ff-ff-ff-ff;
(3) ONU 0 floods after receiving the broadcast frame of this unknown;
(4) broadcast frame floods after passing to switch 1, and records the incoming interface (being such as Port 23, i.e. port 23) of this frame in a mac address;
(5) because this process is very fast, before the PC 2 be connected on switch 1 makes response to this broadcast, but there is ARP broadcast and be sent to Hub, because the connection error on Hub circuit forms ring.This broadcast is passed back on switch 1 again.When switch 1 receives this frame time, mistake think that the position of PC 5 moves (port numbers is inconsistent, is no longer 23).Occurred that PC 5ping PC 2 is obstructed this time, packet is forwarded on the port of mistake.Cause PC 2 to send at every turn ARP request reply time all by Packet Generation on the port of mistake.
Generation and principle analysis from ring problem:
The topological diagram of common generation loop, as shown in Figure 2.
Cause two kinds in Fig. 2 and circularize formula, cannot be eliminated by Spanning-Tree Protocol.
Become ring 1:
When ONU hangs hub 76 times, when the two-port of hub 7 is connected by netting twine, can cause ONU 6 port from ring, have influence on the data retransmission of ONU 6, data retransmission causes address table to forward confusion to the exchange part branch of OLT 10, has influence on whole network data and forward time serious.
Become ring 2:
When two ONU 8,9 are connected by netting twine, OLT 10(optical line terminal can be caused) local side Cheng Huan.Part local side apparatus cannot solve a PON(EPON) port from ring.
Produce the principle analysis of loop:
As shown in Figure 3, after ONU 11 one-tenth ring, the unknown message repeating of first line of a couplet port UP LINK PORT → PORT mouth is as follows:
Down direction, message source address SA=A, destination address DA=B.
Two kinds of forwarding situations are had from ring:
1, when port 1 mouthful receive be less than the back message of port 3 from ring message delay time:
For the message of the unknown, ONU 11 can record the address corresponding relation of MAC Address A and uplink port, simultaneously to 4 port port repeats.Message through port 1 occurs from ring and records the address corresponding relation of MAC Address A and port 1, and refresh address table again.Port 1 again by this message to except oneself other 4 port repeats.
Besides say port 3, if having response to destination address, namely transmission source address is B, destination address is the back message of A, and records the address corresponding relation of MAC Address B and port 3.Back message is directly transmitted to port port 1, and back message is through port 1 after ring, and port 1 receives the address corresponding relation of back message postscript recording MAC address B and port 1, and refresh address table again.And continue to forward back message, empty because destination address A transmits, back message is by 4 port repeats of all the other except port1.
Result causes to broadcast and has once been broadcasted three times for the message of learned addresses table, and does not still learn forwarding address port, and address table has been updated twice and has caused address table chaotic.
2, port 1 mouthful receive when ring message delay is greater than the back message of port 3:
The back message of Port 3 can correctly be forwarded to uplink port, but when port 1 receives the address corresponding relation that will be updated to MAC Address A and port1 after ring message, and refresh address table again, if now the back message of port 3 is continuous print words, subsequent packet can be forwarded to port 1.
What more than analyze is the forwarding of clean culture, and as when except port 1, remaining multiport has a business, be easy to cause and transmit confusion, data are not stopped broadcast and finally caused port bandwidth to block in exchange chip, allow the whole network paralyse.
List of references:
[1] data file of PAS6301/88E6095 Datasheet.ONU switching part.
[2] YD/T 1475-2006. access network technology requirement one is based on the EPON (EPON) of Ethernet mode.
Summary of the invention
Technical problem to be solved by this invention is: provide a kind of EPON network loop control method, the method can solve occur in EPON network from ring problem.
The technical solution adopted in the present invention is: a kind of EPON network loop control method, comprise: first on optical network unit, carry out static mac address binding, then open the sub-thread of broadcast, in optical network unit, open poll subprocess to carry out detection from central port and process simultaneously.
Described method, the method for static mac address binding comprises: in the mac address table of optical network unit, and a newly-increased static MAC Address, is set to the first line of a couplet port of optical network unit switching part by the ingress port that this MAC Address is bound.
Described method, the method for opening the sub-thread of broadcast comprises: in optical network unit, open a sub-thread of broadcast specially, this sub-thread is at interval of a period of time, and the UNI (user port) to optical network unit sends a broadcast frame.
Described method, the interval time of the sub-thread of this broadcast was 1 second.
Described method, the source address of this broadcast frame is the static mac address of previous bindings, and destination address is ff:ff:ff:ff:ff:ff.
Described method, the method for opening poll subprocess comprises: in optical network unit, open a sub-thread of poll specially, this sub-thread is at interval of the related register of a period of time poll exchange chip.
Described method, the sub-thread interlude of poll is 100ms.
Described method, related register to conflict interrupt register for member.
Described method, detects that the processing method behind central port comprises: closed, and records timestamp when closing this port, and port shutdown number of times is added 1.
Advantage of the present invention: this patent mainly to solve in EPON network the problem of how analysis and solve loop, the data retransmission of whole network can be had influence on when loop occurs in EPON network, the ONU end mouth that the present invention proposes is from the solution of ring problem and localization method, and the mass field for EPON future uses significant.
Accompanying drawing explanation
Tu1Shi Mou surfs the Net community abnormal schematic diagram.
Fig. 2 is the prevailing topology figure of network Cheng Huan.
Fig. 3 is the data retransmission schematic diagram of ONU end mouth Cheng Huan.
Embodiment
In EPON network, can find, occur being into ring from the presentation of ring problem, root causes the mac address table of switching part chaotic because being into ring.The legitimacy that therefore can detect address table by switching part processes port Cheng Huan.
Any one port of ONU, when receiving a new ethernet data frame, first switching part takes out mac address, source from the Frame newly received, and then searches for the whole mac address table of exchange chip, checks whether the mac address, source of this Frame has existed in mac address table.
If existed, ONU then checks the arrival end slogan of this mac recorded in mac address table, if the arrival end slogan of record is just in time identical with the arrival end slogan of the frame of new reception, illustrates that this is a legal Frame;
If the arrival end slogan of the frame of the arrival end slogan of record and new reception is not identical, illustrate that this is an illegal Frame.Now ONU has following action: if this mac address is static in the mac address table of exchange chip, and exchange chip can produce " member violation " event.This event causes two results: one exports interrupt requests at switching part " INTn " pin; One is the state recording " member violation " event in the related register of exchange chip.
ONU from ring measuring ability, utilize above-mentioned principle to realize.
First, in the mac address table of ONU, a newly-increased static mac address (such as 00:1D:2B:00:00:01), the ingress port of this mac address binding is: the first line of a couplet port (uplink port) of ONU switching part
In ONU, open a sub-thread specially, this sub-thread, at interval of 1 second, to 0,1,2,3 ports of exchange chip, broadcasts SA=00:1D:2B:00:00:01, a DA=ff:ff:ff:ff:ff:ff, the broadcast frame of length 64 byte;
In ONU, open a sub-thread specially, this sub-thread is at interval of " memberviolation " related register of a 100ms poll exchange chip.If there occurs " member violation " event, corresponding switching part port will be closed immediately, and record timestamp when closing this port, and port shutdown number of times is added 1.That is, the fastest 100ms, just can catch port from ring, and close port.
As shown in Figure 2, above-mentioned detection means can solve into simultaneously ring 1(Hub 7 from ring) with the loop becoming ring 2(ONU 8,9), become in ring 1 when first line of a couplet port (uplink port) arranges static father mac address: 00:1D:2B:00:00:01, occurring as port 1 to occur the source mac address the same with uplink port at this port after ring, so just there will be " member violation ", switching part can be closed into central port according to this.
In like manner, in one-tenth ring 2 when ONU 8 is connected with ONU 9 port, the detection messages that descending static father mac address is 00:1D:2B:00:00:01 is issued the other side by ONU 8 or ONU 9, can there is the source mac address identical with first line of a couplet port at this connected port of this ONU after receiving detection messages in arbitrary ONU: 00:1D:2B:00:00:01, in like manner also can be closed into central port, so far be closed into central port solution and can realize from the object of ring.

Claims (4)

1. an EPON network loop control method, it is characterized in that comprising: first on optical network unit, carry out static mac address binding, then open the sub-thread of broadcast, in optical network unit, open poll subprocess to carry out detection from central port and process simultaneously;
The method of static mac address binding comprises: in the mac address table of optical network unit, and a newly-increased static MAC Address, is set to the first line of a couplet port of optical network unit switching part by the ingress port that this MAC Address is bound;
The method of opening the sub-thread of broadcast comprises: in optical network unit, open a sub-thread of broadcast specially, this sub-thread is at interval of a period of time, user port to optical network unit sends a broadcast frame, the source address of this broadcast frame is the static mac address of previous bindings, and destination address is ff:ff:ff:ff:ff:ff;
The method of opening poll subprocess comprises: in optical network unit, open a sub-thread of poll, and this sub-thread to conflict interrupt register at interval of the member of a period of time poll exchange chip.
2. method according to claim 1, is characterized in that: the interval time of broadcasting sub-thread was 1 second.
3. method according to claim 1, is characterized in that: the sub-thread interlude of poll is 100ms.
4. method according to claim 1, is characterized in that, detects that the processing method behind central port comprises: closed, and records timestamp when closing this port, and port shutdown number of times is added 1.
CN201210545478.3A 2012-12-14 2012-12-14 A kind of EPON network loop control method Active CN102970622B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210545478.3A CN102970622B (en) 2012-12-14 2012-12-14 A kind of EPON network loop control method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210545478.3A CN102970622B (en) 2012-12-14 2012-12-14 A kind of EPON network loop control method

Publications (2)

Publication Number Publication Date
CN102970622A CN102970622A (en) 2013-03-13
CN102970622B true CN102970622B (en) 2015-09-09

Family

ID=47800437

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210545478.3A Active CN102970622B (en) 2012-12-14 2012-12-14 A kind of EPON network loop control method

Country Status (1)

Country Link
CN (1) CN102970622B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105262854A (en) * 2015-10-15 2016-01-20 上海斐讯数据通信技术有限公司 Method and device for performing unified management on MAC address table on OLT equipment
CN105553739B (en) * 2015-12-25 2019-04-26 瑞斯康达科技发展股份有限公司 A kind of method and device for realizing MAC Address tracking

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101707538A (en) * 2009-11-25 2010-05-12 烽火通信科技股份有限公司 Method for detecting and automatically recovering Ethernet loopback
CN102055525A (en) * 2010-12-17 2011-05-11 北京格林伟迪科技有限公司 Loop detecting and controlling method
CN102355364A (en) * 2011-08-15 2012-02-15 杭州华三通信技术有限公司 Method and device for detecting one-way fault

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060156284A1 (en) * 2002-10-07 2006-07-13 Edss., Inc. Architecture of Ticc-Ppde, a new paradigm for parallel programming

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101707538A (en) * 2009-11-25 2010-05-12 烽火通信科技股份有限公司 Method for detecting and automatically recovering Ethernet loopback
CN102055525A (en) * 2010-12-17 2011-05-11 北京格林伟迪科技有限公司 Loop detecting and controlling method
CN102355364A (en) * 2011-08-15 2012-02-15 杭州华三通信技术有限公司 Method and device for detecting one-way fault

Also Published As

Publication number Publication date
CN102970622A (en) 2013-03-13

Similar Documents

Publication Publication Date Title
CN108206761B (en) Method for setting link speed of dual port switch
Phaal et al. InMon corporation's sFlow: A method for monitoring traffic in switched and routed networks
KR101056091B1 (en) Method and apparatus for packet forwarding in EPON (EtOernet
WO2018210213A1 (en) Method and device for implementing ioam packaging and storage medium
US20110149960A1 (en) Method and apparatus for filtering multicast packets
CN112422389B (en) Ethernet and field bus fusion gateway based on chip-level encryption and transmission method
JP2014090468A (en) Ethernet oam at intermediate nodes in pbt network
KR102364803B1 (en) Communication method, communication device and storage medium
CN104219122A (en) Detection method for quickly positioning far-end ONU (optical network unit) loop ports by OLT (optical line terminal) local sides
CN102594600A (en) Method and system for determining failure position of bidirectional forwarding detection session
KR102058766B1 (en) Method for monitoring a wireless link of a wi-fi node of a customer premises equipment device, and customer premises equipment device utilizing the method
CN102281165A (en) Fault detection method based on QoS, system and apparatus thereof
CN110601919A (en) Loopback detection method and system
WO2014101185A1 (en) Method, apparatus and system for detecting performance of multicast channel
CN102970622B (en) A kind of EPON network loop control method
CN101834665A (en) Packet loss detection system and method of Ethernet service in DTMB (Digital Television Terrestrial Multimedia Broadcasting) system
JP2015527786A5 (en)
WO2018209914A1 (en) Method and system for olt loopback detection in gpon system
CN102469016B (en) Device and method for determining path maximum transmission unit (PMTU) reversely
EP2854339B1 (en) Transmission monitoring method and device
CN101989937B (en) A kind of method, Apparatus and system sending data flow
CN115484193A (en) Method, system, storage medium and device for monitoring and analyzing network packet loss flow
CN106341297B (en) Networking method and device for monitoring ring network
JP5056775B2 (en) Frame loss measurement method and measurement system, and network relay device
Cisco show drip statistics through show ip route

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant