A kind of OLT PON service cards realize the method that the soft tables of FDB update
Technical field
The present invention relates to a kind of data more frontier of PON business board, more particularly, to a kind of OLT PON service card realities
The method that now the soft tables of FDB update.
Background technology
FDB management functions are highly important management service functions in EPON system, and Main Function is that maintenance system FDB is soft
Table, for inquiry and removing means that operation maintenance personnel provides MAC.Information in the soft tables of FDB be Ethernet interface in OLT device and
The dynamic MAC learnt on PON ports and the static MAC information of configuration, these information are kept with the MAC information of bottom chip
Synchronous.
The dynamic MAC study of PON business boards FDB management at present depends on the MAC Address active reporting function of chip, i.e.,
MAC address learning is carried out using hardware mode.One typical mac learning mode such as Fig. 1 in PON parts in distributed OLT system
Shown.For the chip for not possessing MAC Address active reporting function, software cannot effectively obtain the update status of its MAC Address.
Two layer functions of PON chips are still weaker compared with exchange chip in the market, for MAC active reporting functions support compared with
Difference.Accordingly, it would be desirable to realize a kind of general FDB software learning modes being independent of with chip.
Content of the invention
It is an object of the invention to:For the problem that prior art is present, there is provided a kind of OLT PON service cards realize FDB
The method that soft table updates, solves for the chip for not possessing MAC Address active reporting function, and software cannot effectively obtain its MAC
The problem of the update status of address.
The goal of the invention of the present invention is achieved through the following technical solutions:
A kind of OLT PON service cards realize the method that the soft tables of FDB update, it is characterised in that the method comprising the steps of:
(1) MAC Address of PON chips is obtained;
(2) MAC Address for getting is mated with local FDB list items, if match, and the list item is not required to delete, then set
Put the table entry operation to be masked as keeping constant, if not matching, FDB tables are added to the MAC Address not matched, and records this
Table entry operation is masked as increasing newly.
Used as further technical scheme, the method also includes step:
(3) judge whether the MAC Address for having obtained all PON chips, if being judged as NO, return to step (1), if judge
For being, step (4) is carried out;
(4) local FDB list items are obtained, corresponding operating is executed according to content if having content in table entry operation mark, if table
Without content in item operation flag, then the table entry operation is set and is masked as needing aging, the next poll of wait.
As further technical scheme, corresponding operating is executed according to content if having content in table entry operation mark concrete
For:If the table entry operation is masked as increasing newly, tension management module is reported, be synchronized to global FDB tables;If table entry operation mark
Will is aging, then delete the PON FDB list items, while reporting tension management module, be synchronized to global FDB tables;If list item is grasped
It is masked as deleting, then deletes the PON FDB list items.
Used as further technical scheme, local FDB contents in table includes:Mac addresses, vlan, source port, source LLID with
And the table entry operation mark.
As further technical scheme, table entry operation mark include the list item be whether increase newly, aging, needs delete or
Keep constant.
As further technical scheme, if receiving the configuration-direct of the removing MAC Address that operation maintenance personnel is issued, lead to
The MAC Address that PON chip SDK interfaces delete PON chips is crossed, while the soft tables of FDB are traveled through, for the list item for meeting deletion condition,
Arrange table entry operation to be masked as needing to delete.
Compared with prior art, the present invention has advantages below:
1st, the present invention is FDB software learning modes, and which does not rely on the hardware circuit of chip;
2nd, automatically updating for the soft table contents of FDB can be realized by the present invention.
Description of the drawings
Fig. 1 is mac learning mode in PON parts in existing distributed OLT system;
Fig. 2 is mac learning mode in PON parts in distributed OLT system of the invention;
Fig. 3 is the flow chart of the present invention.
Specific embodiment
The present invention is described in detail with specific embodiment below in conjunction with the accompanying drawings.
Embodiment
Present invention is mainly applied to the PON business boards of the OLT device of EPON system, the technology that the present invention is realized certainly is also
Can be applicable in the logical product of other numbers.
As shown in Fig. 2 be using the inventive method after a typically PON parts mac learning in distributed OLT system
Mode.Its hardware being related to includes that PON business board and main control card, wherein PON business board include CPU and PON chips, master control
CPU is provided with card.Then FDB is given main control card by the M AC addresses of the CPU active obtaining PON chips of PON business boards
CPU.
The present invention idiographic flow as shown in figure 3, including:
Step 1:Timing obtains PON chip MAC Address by PON chip SDK specified interfaces;
Step 2:The MAC for getting is mated with local FDB list items, if match, and the list item is not required to delete, then arrange
The table entry operation is masked as keeping constant, goes to step 4, otherwise enters step 3;
Step 3:FDB tables are added to the MAC Address not matched, and records the table entry operation and be masked as increasing newly;
Step 4:All PON chips MAC whether have been obtained, if not completing, 1 has been gone to step, step 5 has otherwise been entered;
Step 5:The soft tables of traversal PON FDB, if the table entry operation is masked as increasing newly, report tension management module, with
Walk to global FDB tables;If being masked as aging, the PON FDB list items are deleted, while reporting tension management module, is synchronized to
Global FDB tables;If being masked as deleting, the PON FDB list items are deleted;If non-above three kinds of situations, list item behaviour is put
It is masked as needing aging, the next poll of wait.
Wherein, OLT CPU safeguard that the special FDB tables of PON, contents in table include:Mac addresses, vlan, source port, source LLID,
And the table entry operation mark.The table entry operation mark include the list item be whether newly-increased, aging, need to delete, or keep not
Become;
If additionally, operation maintenance personnel issues the configuration for removing MAC, deleting chip MAC by chip SDK interfaces, while time
PON FDB tables are gone through, for the list item for meeting deletion condition, it is to need to delete to arrange operation flag.
PON service card FDB table key data structures are:
Wherein, TREE_NODE may be selected the data structure such as balanced binary tree or RBTree.
Presently preferred embodiments of the present invention is the foregoing is only, not in order to limiting the present invention, it is noted that all
Any modification, equivalent and improvement for being made within the spirit and principles in the present invention etc., should be included in the guarantor of the present invention
Within the scope of shield.