Summary of the invention
For the above problem existing for existing OLT Port Management mode, now providing that one kind aims at can be to port collection
Middle management improves the OLT system of the efficiency of management and the indexing means of optical line terminal.
Specific technical solution is as follows:
A kind of OLT system, optical line terminal provide a storage device, and the storage device includes:
First storage unit, first storage unit include a the first storage elements, a the first storage elements
The board number associated with the board of the optical line terminal corresponds;
A the second storage units, each second storage unit are stored in corresponding first storage element,
And it is associated with the port index that board belonging to the corresponding board number of the first storage element includes, each described second
Storage unit includes a plurality of second storage elements, and each second storage element is to store the corresponding port index
In a port port coding;
At least one third storage unit, each third storage unit corresponding one are stored with the end of predefined type
Mouthful port coding the second storage element, and be further associated with all with the port of the corresponding predefined type
The optical network unit of connection, each third storage unit include a plurality of third storage elements, each third storage
Element corresponds to an optical network unit;
At least one the 4th storage unit, each 4th storage unit are stored in a third storage element,
And further it is associated with the optical network unit port rope of the corresponding optical network unit of the corresponding third storage element
Draw, each 4th storage unit includes a plurality of 4th storage elements, and each 4th storage element is to store pair
Optical network unit port coding in the optical network unit port index answered.
Preferably, first storage unit corresponds to a the second storage units with list structure;And/or
The third storage unit where the third storage element of the 4th storage unit is stored with chained list
At least one corresponding described the 4th storage unit of structure.
Preferably, the first storage unit is structure of arrays;And/or
The third storage unit is structure of arrays.
Preferably, the port coding of the optical line terminal includes:
First memory space, to store the cascade between the characterization support optical line terminal;
Second memory space, to store the port type of characterization;
Third memory space, to store the board number where the port of characterization;
4th memory space, to store the subcard number where the port of characterization;
5th memory space, to store reserved bit;
6th memory space, to store the interface of characterization.
Preferably, first memory space is 4 bytes;And/or
Second memory space is 4 bytes;And/or
The third memory space is 4 bytes;And/or
4th memory space is 4 bytes;And/or
5th memory space is 3 bytes;And/or
6th memory space is 13 bytes.
Preferably, the optical network unit port coding of the optical network unit includes are as follows:
First memory space supports the type of the optical network unit port to store characterization;
Second memory space, to store the port numbering for characterizing the optical network unit port;
Third memory space, to store reserved bit;
4th memory space, to store the subcard number where the optical network unit port of characterization;
5th memory space, the user port to store characterization are numbered.
Preferably, first memory space is 8 bytes;And/or
Second memory space is 8 bytes;And/or
The third memory space is 4 bytes;And/or
4th memory space is 4 bytes;And/or
5th memory space is 8 bytes.
Preferably, first storage element in first storage unit is using the board number as under array
Mark.
Preferably, the third storage element in the third storage unit is made using the card number of the optical network unit
For array index.
Preferably, the predefined type is passive optical network.
A kind of indexing means of optical line terminal, include the following steps:
S1. the port status of optical line terminal is obtained;
S2. the port rope that board belonging to the board number associated with the board of the optical line terminal includes is generated
Draw;
S3. judge whether the passive optical network card of the optical line terminal is active, if so, executing the S4;
The step S3 is executed if it is not, returning;
S4. it generates and the passive optical network card is associated all with the port rope of the corresponding passive optical network card
Draw;
S5. the light connecting with the port of the passive optical network card is obtained by the port index of the passive optical network card
The login state of network unit;
S6. judge whether the optical network unit is registered, if so, executing step S7;If it is not, executing step S8;
S7. the port index of the optical network unit is generated;
S8. the port index of the optical network unit is removed.
Above-mentioned technical proposal the utility model has the advantages that
In the technical program, the storage device of the port of OLT system can be to ends all in OLT system
Mouth Unified coding improves the efficiency of OLT system Port Management using the Port Management mode of centralization.Optical link
The indexing means of terminal quickly can traverse and search designated port.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on
Embodiment in the present invention, those of ordinary skill in the art without creative labor it is obtained it is all its
His embodiment, shall fall within the protection scope of the present invention.
It should be noted that in the absence of conflict, the feature in embodiment and embodiment in the present invention can phase
Mutually combination.
The present invention will be further explained below with reference to the attached drawings and specific examples, but not as the limitation of the invention.
As shown in Figure 1, a kind of OLT system, optical line terminal provides a storage device, and storage device includes:
First storage unit 1, the first storage unit 1 include a the first storage elements, a the first storage elements and light
The associated board number of the board of road terminal corresponds;
A the second storage units 2, each second storage unit 2 is stored in corresponding first storage element, and is closed
It is linked to the port index that board belonging to the corresponding board number of the first storage element includes, each second storage unit 2 includes plural number
A second storage element, each second storage element are encoded to store the port of a port in corresponding port index;
At least one third storage unit 3, each third storage unit 3 corresponding one are stored with the end of the port of predefined type
Second storage element of mouth coding, and further it is associated with all optical-fiber network lists connected with the port of corresponding predefined type
Member, each third storage unit 3 include a plurality of third storage elements, the corresponding optical-fiber network list of each third storage element
Member;
At least one the 4th storage unit 4, each 4th storage unit 4 are stored in a third storage element, go forward side by side one
Step is associated with the optical network unit port index of the corresponding optical network unit of corresponding third storage element, each 4th storage
Unit 4 includes a plurality of 4th storage elements, and each 4th storage element is to store corresponding optical network unit port index
In an optical network unit port coding.
As shown in Fig. 2, OLT system includes optical line terminal, optical splitter and multiple optical network units.Optical link
Terminal includes one piece of main control unit (slot 1), is provided with multiple upper united mouths (uplink 1-n) above;Muti-piece PON board (slot
2-a), it is provided on every piece of PON board multiple ports PON (Pon 1-n);Each port PON can connect more by optical splitter
A ONU (ONU 1-n);Each ONU supports a plurality of clients mouth (user port 1-n), and port number is true according to ONU type
It is fixed.Board number (slot 1-a) of first storage element to store characterization optical line terminal.
In the present embodiment, the storing data structure of OLT system port can own in OLT system
Port carries out the storage of structuring, convenient for traversal and searches, using the Port Management mode of this centralization, improves optical link
The efficiency of terminal system Port Management.The indexing means of optical line terminal quickly can traverse and search designated port.
In a preferred embodiment, the first storage unit 1 corresponds to a the second storage units 2 with list structure;And/or
Third storage unit 3 where being stored with the third storage element of the 4th storage unit 4 is corresponding extremely with list structure
Few 4th storage unit 4.
In the present embodiment, storage device is that multistage array adds list structure to can be reserved for port information, to carry out centralization
Management convenient for quickly traversal and searches designated port, improves Port Management efficiency.
In a preferred embodiment, the first storage unit 1 is structure of arrays;And/or
Third storage unit 3 is structure of arrays.
As shown in figure 3, in a preferred embodiment, the port coding of optical line terminal includes:
First memory space, to store the cascade between characterization support optical line terminal;
Second memory space, to store the port type of characterization;
Third memory space, to store the board number where the port of characterization;
4th memory space, to store the subcard number where the port of characterization;
5th memory space, to store reserved bit;
6th memory space, to store the interface of characterization.
In OLT system, all types port on main control unit can uniformly be encoded, be connect including two layers on main control unit
Mouth, the port PON on three layer interfaces, PON plate, registered ONU port;Add the data structure of chained list using multistage array, collects
Middle preservation all of the port information.
In the present embodiment, the first storage unit 1 is that Chasis field cascades between OLT device for indicating to support;
Second storage unit 2 is that interface type of the If_type field for expression has: two layer interfaces, three layer interfaces, polymerization
Port, vlan port, the port PON;
Third storage unit 3 is Slot id field for board number where indicating port;
4th storage unit 4 is Subslot field for subcard number where indicating port;
5th storage unit is Reserved field to indicate reserved bit;
6th storage unit is that If_num field includes two layers, three layer interfaces, the port PON and various virtual interfaces.
In a preferred embodiment, the first memory space is 4 bytes.In a preferred embodiment, the second memory space
For 4 bytes.
In a preferred embodiment, third memory space is 4 bytes.
In a preferred embodiment, the 4th memory space is 4 bytes.
In a preferred embodiment, the 5th memory space is 3 bytes.
In a preferred embodiment, the 6th memory space is 13 bytes.
In the present embodiment, it is 32 bytes (bits) that optical line terminal coded format, which has altogether,;
First storage unit 1 is Chasis field: for 4bits, range is in 1-16;
Second storage unit 2 is If_type field: for 4bits, range is in 1-16;
Third storage unit 3 is Slot id field: for 4bits, range is in 1-16;
4th storage unit 4 is Subslot field: for 4bits, range is in 1-16;
5th storage unit is Reserved field: for 3bits, reserved field defaults to 0, for extending later;
6th storage unit is If_num field: for 13bits, range is in 1-8192.
As shown in figure 4, in a preferred embodiment, the optical network unit port coding of optical network unit includes are as follows:
First memory space supports the type of optical network unit port to store characterization;
Second memory space, to store the port numbering of characterization optical network unit port;
Third memory space, to store reserved bit;
4th memory space, to store the subcard number where the optical network unit port of characterization;
5th memory space, the user port to store characterization are numbered.
In the present embodiment, the first storage unit 1 is onu_type for indicating supported ONU end mouth type, can be propped up
The ONU end mouth type held has: ONU ethernet port, the port ONU PON and ONU virtual port;
Second storage unit 2 is that onu_pon_port indicates ONU, PON port numbering;
Third storage unit 3 is extension after Reserved is indicated;
4th storage unit 4 is that onu_sub_card indicates ONU subcard where port;
5th storage unit is that onu_sub_uport indicates ONU user port number.
In a preferred embodiment, the first memory space is 8 bytes.
In a preferred embodiment, the second memory space is 8 bytes.
In a preferred embodiment, third memory space is 4 bytes.
In a preferred embodiment, the 4th memory space is 4 bytes.
In a preferred embodiment, the 5th memory space is 8 bytes.
In the present embodiment, it is 32bits that optical network unit port coded format, which has altogether,;
First storage unit 1 is onu_type: for 8bits, range is in 1-256:
Second storage unit 2 is onu_pon_port: for 8bits, range is in 1-256;
Third storage unit 3 is Reserved: for 4bits, reserved field defaults to 0, for extending later;
4th storage unit 4 is onu_sub_card: for 4bits, range 1-16;
5th storage unit is onu_sub_uport: for 8bits, range 1-256.
In a preferred embodiment, board number can be used as under array in the first storage element in the first storage unit 1
Mark.Quickly it can be traversed or be searched in array according to board number accordingly as array index by using board number
Element.
In a preferred embodiment, the card number of optical network unit can be used in the third storage element in third storage unit 3
As array index.It can be quick according to the card number of optical network unit as array index by using the card number of optical network unit
Corresponding element is traversed or searched in array.
In a preferred embodiment, predefined type is passive optical network.
The port index of optical line terminal adds the data structure of chained list using multistage array, and the first storage unit 1 uses plate
For card number as array index, array content is directed toward all types of port indexes of the board, is stored using chained list;If line
Card port index is PON port type, there is ONU registration, automatically generates the port index of ONU, and the ONU of registration is supported in the port PON
Quantity is fixed, is ONU ID using the expression of third storage unit 3 data subscript, and array content is directed toward ONU end stomochord and is drawn, should
The port information situation reported according to ONU is indexed to automatically generate.Storing data structure is in distributed OLT system, all of the port
Unified coding, using the data structure of multistage array and chained list, centralized interface management mode had both improved system interface pipe
The efficiency of reason also ensures the scalability of system interface management.
As shown in figure 5, a kind of indexing means of optical line terminal, include the following steps:
S1. the port status of optical line terminal is obtained;
S2. the port index that board belonging to board number associated with the board of optical line terminal includes is generated;
S3. judge whether the passive optical network card of optical line terminal is active, if so, executing S4;If it is not, returning
Execute step S3;
S4. it generates and passive optical network card is associated all with the port index of corresponding passive optical network card;
S5. the optical network unit connecting with the port of passive optical network card is obtained by the port index of passive optical network card
Login state;
S6. judge whether optical network unit is registered, if so, executing step S7;If it is not, executing step S8;
S7. the port index of optical network unit is generated;
S8. the port index of optical network unit is removed.
In the present embodiment, the indexing means of optical line terminal quickly can traverse and search designated port.
The foregoing is merely preferred embodiments of the present invention, are not intended to limit embodiments of the present invention and protection model
It encloses, to those skilled in the art, should can appreciate that all with made by description of the invention and diagramatic content
Equivalent replacement and obviously change obtained scheme, should all be included within the scope of the present invention.