CN103546595A - Mainframe route maintaining method based on xPON - Google Patents

Mainframe route maintaining method based on xPON Download PDF

Info

Publication number
CN103546595A
CN103546595A CN201310528665.5A CN201310528665A CN103546595A CN 103546595 A CN103546595 A CN 103546595A CN 201310528665 A CN201310528665 A CN 201310528665A CN 103546595 A CN103546595 A CN 103546595A
Authority
CN
China
Prior art keywords
arp
request message
address
enter
vlan
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
CN201310528665.5A
Other languages
Chinese (zh)
Other versions
CN103546595B (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.)
Fiberhome Telecommunication Technologies Co Ltd
Original Assignee
Fiberhome Telecommunication 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 Fiberhome Telecommunication Technologies Co Ltd filed Critical Fiberhome Telecommunication Technologies Co Ltd
Priority to CN201310528665.5A priority Critical patent/CN103546595B/en
Publication of CN103546595A publication Critical patent/CN103546595A/en
Application granted granted Critical
Publication of CN103546595B publication Critical patent/CN103546595B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Small-Scale Networks (AREA)

Abstract

The invention relates to a mainframe route maintaining method based on an xPON and relates to a PON system. An ARP module receives a request message. When a source mac is not a mac of a supervlan or zero, a corresponding three-layer interface exists. A source ip address is different from an ip address of the supervlan. According to the source ip, the source mac, an outer-layer vlan, an innerlayer vlan and a port of the request message, ARP clauses in an ARP list are updated; when an objective ip address of the request message is not an ip address of the supervlan and the three-layer interface which receives the request message enables ARP agency, the ARP list is searched for according to the requested ip address and after the ARP list is found, a response message is sent to the three-layer interface receiving the request message. If the APP list is not found, the request message is sent to the three-layer interface receiving the request message. According to the mainframe route maintaining method based on the xPON, when a PC is changed to ports under different line cards, service communication still works and a double-layer vlan can be configured for an ONU in a supporting mode.

Description

A kind of main frame route maintenance method based on xPON
Technical field
The present invention relates to PON system, is specifically a kind of main frame route maintenance method based on xPON.
Background technology
Telecom operators require PON(Passive Optical Network, passive optical-fiber network) internal system ONU(Optical Network Unit, optical network unit) between two layers of isolation, between ONU, intercommunication must be passed through three layers of routing forwarding.Along with the continuous application of business, three layers of forwarding capability of PON system support have also been proposed to new demand.Due to PON system port is numerous and to vlan(virtual local area network, VLAN) demand of technology is very large, and the support of three layers of main frame route has also been proposed to new demand.Three layers of traditional main frame routing table adopt the ARP(Address Resolution Protocol of vxworks system, address resolution protocol) table, only have ip, two parameters of mac, at PC, change to the port under different line cards, 2 layers of mac mapping table have become, but main frame route entry does not change, and causes business obstructed, can not support ONU can configure double-deck vlan.
Summary of the invention
For the defect existing in prior art, the object of the present invention is to provide a kind of main frame route maintenance method based on xPON, PC changes to the port under different line cards, and business still communicates, and supports that ONU configures double-deck vlan.
For reaching above object, the technical scheme that the present invention takes is: a kind of main frame route maintenance method based on xPON, comprise the intrasystem OLT of PON and a plurality of ONU, ARP module is set in described OLT, OLT also comprises that exchange chip drives, ARP module drives and receives the arp entry that message and exchange chip transmit from exchange chip, ARP module is received the request message from OUN, when request message source mac is not the mac or 0 of supervlan, there are corresponding three layer interfaces, and ip address, request message source is different from the ip address of supervlan, according to the source ip of request message, source mac, outer vlan, internal layer vlan, port upgrades arp entry in ARP table, when the object ip address of request message is not the ip address of supervlan, and described in receive that three layer interfaces of request message enable ARP proxy, according to the ip address search ARP table of request, after finding, to three layer interfaces of receiving request message, send response messages, if do not find, to three layer interfaces of receiving described request message, send this request message, ARP module is received the response message from OUN, when response message source mac be not supervlan mac or 0, there are corresponding three layer interfaces, and ip address, response message source is different from the ip address of supervlan, according to ip, source, the source mac of response message, outer vlan, internal layer vlan, port, upgrade arp entry in ARP table.
On the basis of technique scheme, when described ARP module is received from the request message of OUN or response message, when the source of request message or response message mac is the mac or 0 of supervlan, this request message or response message are as illegal ARP packet loss.
On the basis of technique scheme, there are not corresponding three layer interfaces in the vlan of described receipts request message and port on OLT, do not do any processing.
On the basis of technique scheme, when described ARP module is received from the request message of OUN or response message, identical with the ip address of supervlan when ip address, the source of request message or response message, ARP module produces the alarm of ip address conflict.
On the basis of technique scheme, described ARP module is upgraded arp entry in ARP table according to request message or response message, and its concrete steps are as follows: S101. judges in double-deck vlan table whether have inside and outside layer vlan couple, if so, enters S103; If not, enter S102; S102. in double-deck vlan table, add inside and outside layer vlan couple, and add double-deck valn tri-layer interfaces in the exchange chip of ARP module, enter S103; Whether the source ip that S103. judges request message or response message finds in ARP table, if not, enters S104; If so, enter S105; S104. in ARP table, add the arp entry of the source ip of request message or response message, enter S107; Whether ip, the mac, outer vlan, internal layer vlan, the port information that S105. judge arp entry in ARP table change, and if not, enter S107; If so, enter S106; S106. according to ip, source, the source mac of request message or response message, outer vlan, internal layer vlan, port, upgrade arp entry in ARP table, and the main frame route entry of upgrading exchange chip, S107 entered; S107. upgrade arp entry timing, zero clearing sends ARP request message entry number counting.
On the basis of technique scheme, when the object ip address of request message is the ip address of supervlan, ARP module directly sends response message to the ONU that sends ARP request message.
On the basis of technique scheme, described in receive that three layer interfaces of request message enable ARP proxy, also to judge whether the source ip of request message and object ip are allowed to carry out ARP proxy, if so, according to the ip address search ARP table of request; If not, be left intact.
On the basis of technique scheme, supervlan tri-layer interfaces of described PON system upper united mouth configuration, ONU side is joined supervlan tri-layer interfaces, and ONU connects PC, ONU and PC configuration ip address, exchange chip comprises three layers of route and three layer interface tables; PC, ONU and IP bearer network, by three layers of route intercommunication of OLT, are acted on behalf of intercommunication by ARP module between PC or between ONU, by three layers of routing forwarding of OLT.
On the basis of technique scheme, three layer interfaces of described PON system upper united mouth configuration, ONU side is joined three layer interfaces, ONU configures ip address, intercommunication between ONU and voice bearer net, OLT, as two-layer equipment, carries out intercommunication by ARP module agency between ONU, by three layers of routing forwarding of OLT.
On the basis of technique scheme, described PON system comprises a timer, overtime and the overtime processing of arp entry for ip address conflict, timeout treatment step is as follows: C101. travels through three layer interfaces of OLT successively, by there being three layer interface ip addresses of ip address conflict alarm, be labeled as and there is no ip address conflict; The ip address of ip address conflict alarm is sent request to message simultaneously; C102. judge that whether three layer interfaces have traveled through, and if so, enter C103; If not, enter C101; C103. travel through successively the arp entry in ARP table, the arp entry in ARP table is divided into multistage and travels through; C104. judge that whether all arp entrys in ARP table have traveled through, and if so, enter C115; If not, enter C105; Whether the arp entry that C105. judgement will travel through traveled through, and if so, entered C103; If not, enter C106; The arp entry that C106. will travel through is designated as and travels through, and the counting of traversal arp entry adds 1; Whether C107. judgement is traveling through the timing of arp entry overtime, if so, enters C108; If not, enter C103; C108. after judging that this arp entry is overtime, whether sent request message three times, the corresponding mac of request ip address; If so, enter C109; If not, enter C113; C109. judge that whether arp entry is double-deck vlan, if so, enters C110; If not, enter C112; C110. judge whether to exist the double-deck vlan of other arp entrys and this arp entry to identical, if so, enter C112; If not, enter C111; C111. from the three layer interface tables of exchange chip vlan, delete double-deck vlan tri-layer interfaces, and delete double-deck vlan tri-layer interfaces from three layers of vlan interface table of exchange chip.C112. from exchange chip, delete the main frame route of this arp entry; From ARP table, delete this arp entry, enter C103; C113., after overtime to arp entry, what do not send three request messages continues to send request message, the corresponding mac of request ip address; The message number counting that sends request of arp entry adds 1; C114. judge in this Timing Processing, request message sends the normal process ability whether number surpasses cpu, if so, enters C115; If not, enter C103; C115. whether the counting of judgement traversal arp entry number is more than or equal to all entry number in ARP table, if so, enters C116; If not, enter C117; C116. the arp entry that travels through ARP table, empties and travels through sign, zero clearing traversal arp entry counting number, and this timing that is through with is processed, and waits for timing processing next time; C117. finish this timing and process, wait for timing processing next time.
Beneficial effect of the present invention is: by ARP function and ARP proxy function, safeguard that a ARP shows, realize the ARP table of synchronously operating system, the main frame routing table of synchronous exchange chip, adopts parameter ip, mac, outer vlan, internal layer vlan, port to identify each arp entry; When PC changes to the ONU port under different line cards, business is still led to; Support ONU to join double-deck vlan and carry out routing forwarding.
Accompanying drawing explanation
Fig. 1 is the schematic diagram that embodiment of the present invention PON system connects ip bearer network;
Fig. 2 is the schematic diagram that embodiment of the present invention PON system connects voice bearer net;
Fig. 3 is OLT internal structure schematic diagram in PON system of the present invention;
Fig. 4 is the flow chart that ARP module of the present invention is received ARP request message;
Fig. 5 is the flow chart that ARP module of the present invention is received ARP reply message;
Fig. 6 is the flow chart that ARP module of the present invention is upgraded arp entry in ARP table;
Fig. 7 is the overtime and overtime process chart of arp entry of ip address conflict of the present invention.
Embodiment
Below in conjunction with drawings and Examples, the present invention is described in further detail.
The applied PON system of the present invention, comprise OLT and a plurality of ONU, OLT connects a plurality of ONU, as shown in Figure 3, described OLT comprises that exchange chip drives (SDK), ARP module and ICP/IP protocol stack, exchange chip drives and is used for driving exchange chip, exchange chip to comprise three layers of route and three layer interface tables.The use scenes of PON system has two kinds, is respectively and connects ip bearer network, connection voice bearer net.
As shown in Figure 1, described OLT connects ip bearer network, and each ONU connects main frame (PC) and telephone set.Supervlan tri-layer interfaces are joined in PON system upper united mouth, and ONU side is joined supervlan tri-layer interfaces, ONU and host configuration ip address.ONU and ip bearer network, by three layers of route intercommunication of OLT, are acted on behalf of by ARP module between ONU, by three layers of route of OLT, carry out intercommunication.ARP module drives and receives ARP message from exchange chip, comprises request message (ARP request) and response message (ARP reply), and from exchange chip, obtains internal layer vlan, outer vlan, the port that receives message; And to carrying out ARP proxy between the ip node under same three layer interfaces.
As shown in Figure 2, join supervlan tri-layer interfaces on PON system OLT, for example, join supervlan and add subvlan1000, subvlan1000 has added the interface of upper united mouth and OLT ONU side.ONU configures ip address, intercommunication between ONU and voice bearer net, and OLT is as two-layer equipment, and the ARP proxy by OLT supervlan between ONU carries out intercommunication, walks three layers of forwarding of OLT.
The present invention is based on the main frame route maintenance method of xPON, mainly comprise that ARP module receives that the processing of ARP request message, ARP reply message, ip conflict is overtime, arp entry timeout mechanism is processed.
As shown in Figure 4, ARP module is received the ARP request message from ONU, and concrete handling process is as follows:
A101.ARP module is received the ARP request message from ONU.
Whether the source mac that A102. judges ARP request message is the mac or 0 of supervlan, if or source mac be 0, enter A103; If not, enter A104.
A103. this ARP request message as illegal ARP message and abandon, finishes.
A104. whether vlan and the port of judgement receipts ARP request message there are corresponding three layer interfaces on OLT, if not, enter A105; If so, enter A106.
A105. be left intact, finish.
Whether the ip address, source that A106. judges ARP request message is identical with the ip address of supervlan, if so, enters A107; If not, enter A108.
A107. three layer interfaces of explanation transmission ARP request message have been joined the ip address identical with supervlan, and ARP module produces the alarm of ip address conflict, finishes.
A108. according to ip, source, the source mac of ARP request message, outer vlan, internal layer vlan, port, upgrade the arp entry in ARP table.
Whether the object ip address that A109. judges ARP request message is the ip address of supervlan, if so, enters A110; If not, enter A111.
A110.ARP module is directly replied ARP reply message to the ONU that sends ARP request message, finishes.
A111. whether three layer interfaces of judgement reception ARP request message enable ARP proxy, if not, enter A112; If so, enter A113.
A112. be left intact, finish.
Whether the source ip of A113.ARP request message and object ip are allowed to carry out ARP proxy, if so, enter A115; If not, enter A114.
A114. be left intact, finish.
A115. according to the object ip address search arp entry table of ARP request message, judge whether to find, if not, enter A116; If so, enter A117.
A116. to three layer interfaces of receiving ARP request message, send ARP request message, request ip address, finishes.
A116. to the ONU that sends ARP request message, reply ARP reply message, message source mac is the mac of OLT supervlan, and the object ip that source ip is request message finishes.
As shown in Figure 5, for ARP module of the present invention receives that the flow process of ARP reply message is as follows:
B101.ARP module is received the ARP reply message from OUN.
Whether the source mac that B102. judges ARP reply message is the mac or 0 of supervlan, if or source mac be 0, enter B103; If not, enter B104.
B103. this ARP reply message as illegal ARP message and abandon, finishes.
B104. whether vlan and the port of judgement receipts ARP request message there are corresponding three layer interfaces on OLT, if not, enter B105; If so, enter B106.
B105. be left intact, finish.
Whether the ip address, source that B106. judges ARP reply message is identical with the ip address of supervlan, if so, enters B107; If not, enter B108.
B107. three layer interfaces of explanation transmission ARP reply message have been joined the ip address identical with supervlan, and ARP module produces the alarm of ip address conflict, finishes.
B108. according to ip, source, the source mac of ARP reply message, outer vlan, internal layer vlan, port, upgrade the arp entry in ARP table, finish.
As shown in Figure 6, in the processing procedure of ARP request message and ARP reply message, all related to ARP module and upgraded arp entry in ARP table, idiographic flow is as follows:
S101. judge in double-deck vlan table whether have inside and outside layer vlan couple, if so, enter S103; If not, enter S102;
S102. in double-deck vlan table, add inside and outside layer vlan couple, and add double-deck valn tri-layer interfaces in the exchange chip of ARP module, enter S103;
Whether the source ip that S103. judges ARP request message or ARP reply message finds in ARP table, if not, enters S104; If so, enter S105;
S104. in ARP table, add the arp entry of the source ip of ARP request message or ARP reply message, enter S107;
Whether ip, the mac, outer vlan, internal layer vlan, the port information that S105. judge arp entry in ARP table change, and if not, enter S107; If so, enter S106;
S106. according to ip, source, the source mac of ARP request message or ARP reply message, outer vlan, internal layer vlan, port, upgrade arp entry in ARP table, and the main frame route entry of upgrading exchange chip, S107 entered;
S107. upgrade arp entry timing, because ARP reply message does not need counting, so zero clearing sends ARP request message entry number counting, end.
Concerning ARP table, if do not carry out arp entry timeout treatment, ARP table can infinitely increase, and corresponding exchange chip main frame routing table also can infinitely increase.Therefore carrying out ARP table while safeguarding, not online ip terminal is deleted to corresponding arp entry.Because CPU disposal ability is limited, while adopting each timing to travel through arp entry, the arp entry of some is sent to ARP request message request, see whether ip terminal is also online.The alarm of ip address conflict, when there is no ip address conflict, be eliminated the alarm of ip address conflict.Therefore adopt and every a period of time, enable timer and carry out timeout treatment.Timeout treatment is divided two functions, and one is the timeout treatment of ip address conflict, and another is the timeout treatment of arp entry.
As shown in Figure 7, for ip address conflict is overtime and the overtime treatment mechanism of arp entry, concrete handling process is as follows:
C101. travel through successively three layer interfaces of OLT, by there being three layer interface ip addresses of ip address conflict alarm, be labeled as and there is no ip address conflict; The ip address of ip address conflict alarm is sent to ARP request message simultaneously.Object is to see that the ip equipment whether connecting also exists same ip address, and source ip, the object ip of ARP request message is the ip address that has the alarm of ip address conflict.
C102. judge whether three layer interfaces have traveled through, and if not, enter C101, continue traversal three layer interfaces; If so, enter C103, carry out the processing of arp entry timeout mechanism.
C103. travel through successively the entry in ARP table, the entry in ARP table is divided into multistage and travels through.
C104. judge whether all arp entrys in ARP table have traveled through, if enter C115, process, and enter if not C105 and process.
Whether the arp entry that C105. judgement will travel through traveled through, and if so, entered C103; If not, enter C106.
The arp entry that C106. will travel through is designated as and travels through, and the counting of traversal arp entry adds 1.
Whether the timing of the arp entry that C107. judgement is traveling through is overtime, if so, enters C108 and processes; If not, enter C103 and continue the next arp entry of traversal.
C108. after judging that this arp entry is overtime, whether sent three ARP request messages and asked the corresponding mac of ip address, if so, entered C109 and process, entered if not C113 and process
C109. judge whether arp entry is double-deck vlan, if so, enter C110 and process; If not, entering C112 processes.
C110. judge whether to exist the double-deck vlan of other arp entrys and this arp entry to identical, if so, enter C112 and process; If not, entering C111 processes.
C111. from tri-layer of three layer interface table of exchange chip vlan, delete double-deck vlan tri-layer interfaces, keep not having arp entry to use this three layer interfaces entry, just from exchange chip, delete; And delete double-deck vlan tri-layer interfaces from three layers of vlan interface table of exchange chip.
C112. from exchange chip, delete the main frame route of this arp entry; From ARP table, delete this arp entry, enter C103;
C113., after overtime to arp entry, what do not send three ARP request messages continues to send request message, the corresponding mac of request ip address; The message number counting that sends request of arp entry adds 1, identifies this overtime arp entry and has sent how many ARP request message numbers.
C114. judge in this Timing Processing, ARP request message sends the normal process ability whether number surpasses cpu, if so, enters C115; If not, enter C103;
C115. whether the counting of judgement traversal arp entry number is more than or equal to all entry number in ARP table, if so, enters C116; If not, enter C117;
C116. the arp entry that travels through ARP table, empties and travels through sign, zero clearing traversal arp entry counting number, and this timing that is through with is processed, and waits for timing processing next time;
C117. finish this timing and process, wait for timing processing next time.
As shown in Figure 1, by specific embodiment, describe in detail between main frame and ip bearer network and between host A and host B, be intercommunication how.Suppose that host A is configured to outer vlan1000, internal layer vlan10, host B is configured to outer vlan1000, internal layer vlan20.When host A is communicated by letter with host B, send ARP request message, the mac address of requesting host B, OLT acquires the mac of host A, outer vlan1000, internal layer vlan10, in exchange chip three layer interface tables, create double-deck vlan tri-layer interfaces, dose the route entry of host A to exchange chip.OLT replys ARP reply message to the ARP request message of host A, the ip address that in ARP reply message content, ip address, source is host B, and source mac is OLT main control unit mac.Host B sends the mac address of ARP request message request host A, OLT learns the mac of host B, outer vlan1000, internal layer vlan20, in three layers of vlan interface table of exchange chip, create double-deck vlan tri-layer interfaces, add main frame route B to exchange chip.OLT replys to the ARP request message of host B the ip address that ARP reply message source ip address is host A, and source mac is OLT main control unit mac.The mac that host B has been learnt host A is like this on main control unit, and the data flow object mac that host B sends to host A is main control unit.Main control unit receives that the object ip address that host B is sent is the data flow of host A ip address, and through the route of exchange chip, data flow object mac is replaced by the mac of host A, and internal layer vlan is replaced by 10 and is forwarded to host A; The data flow that host A is come is replaced to the mac of host B by main control unit exchange chip, internal layer vlan replaces to 20 and is forwarded to host B; Between host A and host B, double-deck vlan data flow can intercommunication like this.The intercommunication of host A and ip bearer network, upstream is forwarded to ip bearer network through gateway 20.1.1.254, the data flow of getting off from ip bearer network, forwarding through OLT main control unit exchange chip, changing object mac into is host A, outer vlan1000, and the forwarding data flow of internal layer vlan10 is to host A.
Shown in Fig. 2, by specific embodiment, describe in detail between ONU and voice bearer net and between ONU1 and ONU2, be intercommunication how.For example the outer vlan of ONU1 is 1000, internal layer vlan is 10, ip is 20.1.1.53, gateway is 20.1.1.254, and the outer vlan of ONU2 is 1000, and internal layer vlan is 20, ip is 20.1.1.55, gateway is 20.1.1.254, and OLT joins the supervlan that a subvlan is 1000, and vlan1000 is all joined in the joint side of ONU side and OLT.Between ONU and voice bearer net, communicate by letter, OLT is as two-layer equipment, and data message directly for example, carries out intercommunication between ONU and gateway (20.1.1.254), does not use the ARP module of OLT.Intercommunication between ONU1 and ONU2, ONU1 sends the ip address of ARP request message request ONU2, OLT receives ARP request message, add outer vlan and internal layer vlan in three layers of vlan interface table in exchange chip, interpolation ip is 20.1.1.53, the mac that mac is ONU, and outer vlan is 1000, internal layer vlan is that 10, port receives that OLT receives that the main frame route entry of ARP request message port numbers arrives exchange chip.Receive after the ARP request of ONU1 request ONU2, OLT transmission source ip is the ip of OLT supervlan, source mac is ARP request message request ONU2ip mac corresponding to address of OLT supervlan mac, ONU2 sends ARP reply message and replys ARP request message, and OLT has acquired the ip(20.1.1.55 of ONU2 like this), the arp entry of mac, outer vlan1000, internal layer vlan20, port add in exchange chip and (comprise and add double-deck vlan tri-layer interfaces and interpolation main frame route).OLT carries out ARP proxy to ONU1 request mac corresponding to ONU2ip address, transmission source ip is the ip of ONU2, source mac is the ARP reply message of the mac of OLT supervlan, mac corresponding to ip that ONU1 acquires ONU2 is the mac of OLT supervlan, ONU1 sends to OLT to the ip stream of ONU2 like this, through tri-layers of routing forwarding of OLT, arrives ONU2.ONU2 replys the ip stream of ONU1, sends the mac of ARP request message request ONU1, and OLT carries out ARP proxy, transmission source ip is the ip of ONU1, source mac is the ARP reply message of OLT supervlan mac, and ONU2 acquires the mac that ONU1ip is corresponding, is also the mac of OLT supervlan.The ip stream packet that ONU2 replys ONU1ip stream also sends to OLT, through tri-layers of routing forwarding of OLT, sends to ONU1, and the voice ip stream of ONU1 and ONU2 can intercommunication like this.
As depicted in figs. 1 and 2, described host A is hung race business under the ONU of line card 1, be switched to the lower time of ONU of line card 2, the inbound port that OLT main control unit detects the ARP message of host A transmission changes, therefore the route entry of original host A has been deleted, again the host A route entry of new port is write in exchange chip, the business of host A and ip bearer network or main frame and voice bearer net can continue intercommunication like this.
The present invention is not limited to above-mentioned execution mode, for those skilled in the art, under the premise without departing from the principles of the invention, can also make some improvements and modifications, within these improvements and modifications are also considered as protection scope of the present invention.The content not being described in detail in this specification belongs to the known prior art of professional and technical personnel in the field.

Claims (10)

1. the main frame route maintenance method based on xPON, comprise the intrasystem OLT of PON and a plurality of ONU, ARP module is set in described OLT, OLT also comprises that exchange chip drives, ARP module drives and receives the arp entry that message and exchange chip transmit from exchange chip, it is characterized in that:
ARP module is received the request message from OUN, when request message source mac be not supervlan mac or 0, there are corresponding three layer interfaces, and ip address, request message source is different from the ip address of supervlan, according to ip, source, the source mac of request message, outer vlan, internal layer vlan, port, upgrade arp entry in ARP table; When the object ip address of request message is not the ip address of supervlan, and described in receive that three layer interfaces of request message enable ARP proxy, according to the ip address search ARP table of request, after finding, to three layer interfaces of receiving request message, send response messages; If do not find, to three layer interfaces of receiving described request message, send this request message;
ARP module is received the response message from OUN, when response message source mac be not supervlan mac or 0, there are corresponding three layer interfaces, and ip address, response message source is different from the ip address of supervlan, according to ip, source, the source mac of response message, outer vlan, internal layer vlan, port, upgrade arp entry in ARP table.
2. the main frame route maintenance method based on xPON as claimed in claim 1, it is characterized in that: when described ARP module is received from the request message of OUN or response message, when the source of request message or response message mac is the mac or 0 of supervlan, this request message or response message are as illegal ARP packet loss.
3. the main frame route maintenance method based on xPON as claimed in claim 1, is characterized in that: the vlan of described receipts request message and port do not exist corresponding three layer interfaces on OLT, does not do any processing.
4. the main frame route maintenance method based on xPON as claimed in claim 1, it is characterized in that: when described ARP module is received from the request message of OUN or response message, identical with the ip address of supervlan when ip address, the source of request message or response message, ARP module produces the alarm of ip address conflict.
5. the main frame route maintenance method based on xPON as claimed in claim 1, is characterized in that: described ARP module is upgraded arp entry in ARP table according to request message or response message, and its concrete steps are as follows:
S101. judge in double-deck vlan table whether have inside and outside layer vlan couple, if so, enter S103; If not, enter S102;
S102. in double-deck vlan table, add inside and outside layer vlan couple, and add double-deck valn tri-layer interfaces in the exchange chip of ARP module, enter S103;
Whether the source ip that S103. judges request message or response message finds in ARP table, if not, enters S104; If so, enter S105;
S104. in ARP table, add the arp entry of the source ip of request message or response message, enter S107;
Whether ip, the mac, outer vlan, internal layer vlan, the port information that S105. judge arp entry in ARP table change, and if not, enter S107; If so, enter S106;
S106. according to ip, source, the source mac of request message or response message, outer vlan, internal layer vlan, port, upgrade arp entry in ARP table, and the main frame route entry of upgrading exchange chip, S107 entered;
S107. upgrade arp entry timing, zero clearing sends ARP request message entry number counting.
6. the main frame route maintenance method based on xPON as claimed in claim 1, is characterized in that: when the object ip address of request message is the ip address of supervlan, ARP module directly sends response message to the ONU that sends ARP request message.
7. the main frame route maintenance method based on xPON as claimed in claim 1, it is characterized in that: described in receive that three layer interfaces of request message enable ARP proxy, whether source ip and the object ip that also will judge request message are allowed to carry out ARP proxy, if so, according to the ip address search ARP table of request; If not, be left intact.
8. the main frame route maintenance method based on xPON as claimed in claim 1, it is characterized in that: supervlan tri-layer interfaces of described PON system upper united mouth configuration, ONU side is joined supervlan tri-layer interfaces, ONU connects PC, ONU and PC configuration ip address, exchange chip comprises three layers of route and three layer interface tables; PC, ONU and IP bearer network, by three layers of route intercommunication of OLT, are acted on behalf of intercommunication by ARP module between PC or between ONU, by three layers of routing forwarding of OLT.
9. the main frame route maintenance method based on xPON as claimed in claim 1, it is characterized in that: three layer interfaces of described PON system upper united mouth configuration, ONU side is joined three layer interfaces, ONU configures ip address, intercommunication between ONU and voice bearer net, OLT, as two-layer equipment, carries out intercommunication by ARP module agency between ONU, by three layers of routing forwarding of OLT.
10. the main frame route maintenance method based on xPON as claimed in claim 1, is characterized in that: described PON system comprises a timer, the overtime and overtime processing of arp entry for ip address conflict, and timeout treatment step is as follows:
C101. travel through successively three layer interfaces of OLT, by there being three layer interface ip addresses of ip address conflict alarm, be labeled as and there is no ip address conflict; The ip address of ip address conflict alarm is sent request to message simultaneously;
C102. judge that whether three layer interfaces have traveled through, and if so, enter C103; If not, enter C101;
C103. travel through successively the arp entry in ARP table, the arp entry in ARP table is divided into multistage and travels through;
C104. judge that whether all arp entrys in ARP table have traveled through, and if so, enter C115; If not, enter C105;
Whether the arp entry that C105. judgement will travel through traveled through, and if so, entered C103; If not, enter C106;
The arp entry that C106. will travel through is designated as and travels through, and the counting of traversal arp entry adds 1;
Whether C107. judgement is traveling through the timing of arp entry overtime, if so, enters C108; If not, enter C103;
C108. after judging that this arp entry is overtime, whether sent request message three times, the corresponding mac of request ip address; If so, enter C109; If not, enter C113;
C109. judge that whether arp entry is double-deck vlan, if so, enters C110; If not, enter C112;
C110. judge whether to exist the double-deck vlan of other arp entrys and this arp entry to identical, if so, enter C112; If not, enter C111;
C111. from the three layer interface tables of exchange chip vlan, delete double-deck vlan tri-layer interfaces, and delete double-deck vlan tri-layer interfaces from three layers of vlan interface table of exchange chip.
C112. from exchange chip, delete the main frame route of this arp entry; From ARP table, delete this arp entry, enter C103;
C113., after overtime to arp entry, what do not send three request messages continues to send request message, the corresponding mac of request ip address; The message number counting that sends request of arp entry adds 1;
C114. judge in this Timing Processing, request message sends the normal process ability whether number surpasses cpu, if so, enters C115; If not, enter C103;
C115. whether the counting of judgement traversal arp entry number is more than or equal to all entry number in ARP table, if so, enters C116; If not, enter C117;
C116. the arp entry that travels through ARP table, empties and travels through sign, zero clearing traversal arp entry counting number, and this timing that is through with is processed, and waits for timing processing next time;
C117. finish this timing and process, wait for timing processing next time.
CN201310528665.5A 2013-10-31 2013-10-31 Mainframe route maintaining method based on xPON Active CN103546595B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310528665.5A CN103546595B (en) 2013-10-31 2013-10-31 Mainframe route maintaining method based on xPON

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310528665.5A CN103546595B (en) 2013-10-31 2013-10-31 Mainframe route maintaining method based on xPON

Publications (2)

Publication Number Publication Date
CN103546595A true CN103546595A (en) 2014-01-29
CN103546595B CN103546595B (en) 2017-01-25

Family

ID=49969633

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310528665.5A Active CN103546595B (en) 2013-10-31 2013-10-31 Mainframe route maintaining method based on xPON

Country Status (1)

Country Link
CN (1) CN103546595B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103957288A (en) * 2014-04-28 2014-07-30 福建星网锐捷网络有限公司 Method, device and equipment for IP address dynamic allocation
CN105282268A (en) * 2015-10-22 2016-01-27 上海斐讯数据通信技术有限公司 Management method and system for passive optical network media access control (PON MAC) address information for optical line terminal (OLT) equipment
CN108259644A (en) * 2018-01-18 2018-07-06 新华三技术有限公司 A kind of communication equipment and its ARP entry generation method
CN108965135A (en) * 2018-05-25 2018-12-07 西安云维智联科技有限公司 A kind of address learning method of Ethernet and optical-fibre channel conversion equipment
CN113207049A (en) * 2021-03-31 2021-08-03 新华三信息安全技术有限公司 Multicast forwarding method and device

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1764193A (en) * 2005-11-23 2006-04-26 杭州华为三康技术有限公司 Method for renewing address analysis protocol rapidly
CN1794695A (en) * 2005-12-28 2006-06-28 杭州华为三康技术有限公司 Method of refreshing hardware table item
CN1878139A (en) * 2006-05-31 2006-12-13 杭州华为三康技术有限公司 Three-layer forwarding method, device and ARP information table updating method
CN1946064A (en) * 2006-11-06 2007-04-11 杭州华为三康技术有限公司 Message repeat method and device
CN101127709A (en) * 2007-09-26 2008-02-20 杭州华三通信技术有限公司 A method and device for updating port address in address parsing protocol table
CN102045607A (en) * 2010-12-28 2011-05-04 武汉烽火网络有限责任公司 Method for enhancing QoS (Quality of Service) and VLAN (Virtual Local Area Network) processing capability in EPON (Ethernet Passive Optical Network) system
CN102148766A (en) * 2011-05-11 2011-08-10 烽火通信科技股份有限公司 Method for service interworking in PON (passive optical network) under three-layer function networking
CN103209225A (en) * 2013-04-03 2013-07-17 北京邮电大学 Software defined network (SDN) broadcast processing method based on cycle trigger agent

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1764193A (en) * 2005-11-23 2006-04-26 杭州华为三康技术有限公司 Method for renewing address analysis protocol rapidly
CN1794695A (en) * 2005-12-28 2006-06-28 杭州华为三康技术有限公司 Method of refreshing hardware table item
CN1878139A (en) * 2006-05-31 2006-12-13 杭州华为三康技术有限公司 Three-layer forwarding method, device and ARP information table updating method
CN1946064A (en) * 2006-11-06 2007-04-11 杭州华为三康技术有限公司 Message repeat method and device
CN101127709A (en) * 2007-09-26 2008-02-20 杭州华三通信技术有限公司 A method and device for updating port address in address parsing protocol table
CN102045607A (en) * 2010-12-28 2011-05-04 武汉烽火网络有限责任公司 Method for enhancing QoS (Quality of Service) and VLAN (Virtual Local Area Network) processing capability in EPON (Ethernet Passive Optical Network) system
CN102148766A (en) * 2011-05-11 2011-08-10 烽火通信科技股份有限公司 Method for service interworking in PON (passive optical network) under three-layer function networking
CN103209225A (en) * 2013-04-03 2013-07-17 北京邮电大学 Software defined network (SDN) broadcast processing method based on cycle trigger agent

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
金昊捷: "双层VLAN技术在EPON中的实现", 《光通信技术》, 31 December 2006 (2006-12-31) *

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103957288A (en) * 2014-04-28 2014-07-30 福建星网锐捷网络有限公司 Method, device and equipment for IP address dynamic allocation
CN105282268A (en) * 2015-10-22 2016-01-27 上海斐讯数据通信技术有限公司 Management method and system for passive optical network media access control (PON MAC) address information for optical line terminal (OLT) equipment
CN105282268B (en) * 2015-10-22 2018-05-01 上海斐讯数据通信技术有限公司 Management method and its system for the PON mac address informations of OLT device
CN108259644A (en) * 2018-01-18 2018-07-06 新华三技术有限公司 A kind of communication equipment and its ARP entry generation method
CN108259644B (en) * 2018-01-18 2020-12-08 新华三技术有限公司 Communication equipment and ARP table entry generation method thereof
CN108965135A (en) * 2018-05-25 2018-12-07 西安云维智联科技有限公司 A kind of address learning method of Ethernet and optical-fibre channel conversion equipment
CN108965135B (en) * 2018-05-25 2021-05-04 西安云维智联科技有限公司 Address self-learning method for Ethernet and fiber channel conversion equipment
CN113207049A (en) * 2021-03-31 2021-08-03 新华三信息安全技术有限公司 Multicast forwarding method and device
CN113207049B (en) * 2021-03-31 2022-05-27 新华三信息安全技术有限公司 Multicast forwarding method and device

Also Published As

Publication number Publication date
CN103546595B (en) 2017-01-25

Similar Documents

Publication Publication Date Title
CN103546595A (en) Mainframe route maintaining method based on xPON
CN103312546B (en) A kind of method automatically configuring management ZigBee-network
US7636360B2 (en) Dynamic VLAN ID assignment and packet transfer apparatus
CN102130834B (en) Internet protocol (IP) routing method and router
CN102577277B (en) Providing a logical aggregated point-to-point data link incorporating a multi-point link
CN102263774B (en) Method and device for processing source role information
CN102209121A (en) Method and device for intercommunication between Internet protocol version 6 (IPv6) network and Internet protocol version 4 (IPv4) network
US10615997B2 (en) In-vehicle gateway device
US20050243845A1 (en) Resilient packet ring device
CN102355610B (en) Method for implementing circuit identification in optical network unit (ONU) system based on EOC (Ethernet over Coaxial cable)
CN101399742B (en) Data service network system and access method of data service
CN105530259A (en) Message filtering method and equipment
EP2378717B1 (en) Method for interconnecting with nested backbone provider bridges and system thereof
WO2014121460A1 (en) Method, device and routing system for data transmission of network virtualization
CN104813644A (en) Identifying nated devices for device-specific traffic flow steering
CN101009661A (en) Method and device for updating stream forward table content based on the stream forward
EP1773008A1 (en) Method and system for implementing virtual router redundancy protocol on a resilient packet ring
CN104468219A (en) Virtual networking network topology discovery method and device
CN105264835A (en) Gre tunnel implementation method, access device and convergence gateway
WO2016202086A1 (en) Network topology joining method and apparatus
CN102148766A (en) Method for service interworking in PON (passive optical network) under three-layer function networking
CN103747116A (en) Business access method and device based on Layer 2 Tunneling Protocol (L2TP)
CN101459532A (en) Method and apparatus for automatic networking by multi-port equipment
CN105635335B (en) Social resources cut-in method, apparatus and system
TWI549565B (en) Light control system, light control gateway, processing module

Legal Events

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