CN103236942B - A kind of optical line terminal equipment ethernet port character control device and method - Google Patents

A kind of optical line terminal equipment ethernet port character control device and method Download PDF

Info

Publication number
CN103236942B
CN103236942B CN201310117225.0A CN201310117225A CN103236942B CN 103236942 B CN103236942 B CN 103236942B CN 201310117225 A CN201310117225 A CN 201310117225A CN 103236942 B CN103236942 B CN 103236942B
Authority
CN
China
Prior art keywords
port
bridge
processing module
state machine
data
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.)
Expired - Fee Related
Application number
CN201310117225.0A
Other languages
Chinese (zh)
Other versions
CN103236942A (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.)
Shandong Ltd Co Of Dong Sheng Electronics Group
Weifang University
Original Assignee
Shandong Ltd Co Of Dong Sheng Electronics Group
Weifang University
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 Shandong Ltd Co Of Dong Sheng Electronics Group, Weifang University filed Critical Shandong Ltd Co Of Dong Sheng Electronics Group
Priority to CN201310117225.0A priority Critical patent/CN103236942B/en
Publication of CN103236942A publication Critical patent/CN103236942A/en
Application granted granted Critical
Publication of CN103236942B publication Critical patent/CN103236942B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Small-Scale Networks (AREA)

Abstract

The present invention relates to Ethernet passive optical network technical field, provide a kind of optical line terminal equipment ethernet port character control device and method, described device specifically comprises: bridge message processing module, for obtaining and resolving the outside data message inputted, obtains the type of data message; Port information processing module, for being configured port organization body, and type parsing is proceeded to port deal with data, port information table corresponding with it for the type of resolving the port data obtained is compared, and according to the port data after comparison result output processing, generate the first hardware driving instruction; State machine processing module, for bridge message processing module resolve the process that the state machine deal with data that obtains and port information processing module export after port data carry out computing and control, generate the second hardware driving instruction.The embodiment of the present invention improves the operating efficiency of OLT device, and the constringency performance of overall EPON system improves.

Description

A kind of optical line terminal equipment ethernet port character control device and method
Technical field
The invention belongs to ethernet passive optical network technical field, particularly relate to a kind of optical line terminal equipment ethernet port character control device and method.
Background technology
Ethernet passive optical network (Ethernet Passive Optical Network, EPON) system is by local side (Optical Line Terminal, OLT), user side (Optical Network Uni t, ONU), Optical Distribution Network (Optical Distribution Network, ODN) form, ODN is all made up of passive device.Current, to adopt in the Access Network of EPON system composition generally by EPON+EOC scheme or adopt EPON+ Private Branch Exchange PBX category-5 cable to register one's residence scheme.
In EPON+EOC scheme, a PON interface of OLT connects 32 ~ 64 ONU, an ONU connects the local side of an EOC, the local side of an EOC connects the family end of 32 ~ 64 EOC, and the family end of an EOC connects a main frame, PON mouth band 1000 ~ 3000 users of an OLT.Generally small-sized OLT device has four PON mouths, with 4000 ~ 10000 subscriber's main stations.The EPON+ Private Branch Exchange PBX category-5 cable middle-size and small-size OLT of scheme that registers one's residence also is with several thousand subscriber's main stations.Host number is many, and the reliability of OLT first line of a couplet port is most important.
In the practical application of Networking Design, OLT first line of a couplet port and link are all according to dual link design, to improve the reliability of network.But, in order to debug double link structure, can only be debugged by the method for plug circuit board or plug optical fiber link, being easy to damage circuit board and Optical fiber plug like this, make troubles to debugging and maintenance.
Summary of the invention
The object of the present invention is to provide a kind of optical line terminal equipment ethernet port character control device, be intended to solve in prior art to debug double link structure, can only be debugged by the method for plug circuit board or plug optical fiber link, easy damage circuit board and Optical fiber plug, give debugging and safeguard the problem made troubles.
The present invention realizes like this, a kind of optical line terminal equipment ethernet port character control device, described optical line terminal equipment ethernet port character control device is built in the RSTP module of the optical line terminal equipment of ethernet passive optical network system, and described device specifically comprises:
Bridge message processing module, for configuring bridge entities structure, and obtain the data message of outside input, simultaneously, Bridge configuration parsing is carried out to the data message got, obtain the type of described data message, the type of described data message specifically comprises port deal with data and state machine deal with data, and described bridge message processing module is connected with the external command configuration module for inputting external command;
Port information processing module, be connected with described bridge message processing module, for being configured port organization body, and to described bridge message processing module resolve the port deal with data obtained proceed type resolve, port information table corresponding with it for the type of resolving the port data obtained is compared, and according to the port data after comparison result output processing, simultaneously, generate the first hardware driving instruction, wherein, the type of described data message comprises command configuration information and data transmit package informatin, described port information table is provided with two, be designated as the first port information table and the second port information table respectively, whether described first port information table marks by the port of command set is specially backup port and corresponding port information, described second port information table is set up by analyzing BPDU, described port information processing module is connected with driver module, described driver module connects optical line terminal equipment master chip, described driver module is for driving described optical line terminal equipment master chip determination backup link or conveying data, wherein, described port organization body specifically comprises the pointer pointing to next port variable, port state machine list, bridge belonging to the port and port timer,
State machine processing module, be connected with described bridge message processing module and port information processing module, for to described bridge message processing module resolve the process that the state machine deal with data that obtains and described port information processing module export after port data carry out computing and control, generate the second hardware driving instruction, described state machine processing module also connects described driver module;
Described first hardware driving instruction and described second hardware driving instruction are transported to described driver module respectively, and described driver module and described external command configuration module are all connected with main program module.
As a kind of improved plan, bridge message processing module is also for carrying out number statistics to the data message received, when loss three BPDUs, described bridge message processing module generates the 3rd hardware driving instruction, described 3rd hardware driving instruction is transported to described driver module, for driving backup link as data channel.
As a kind of improved plan, described bridge entities structure specifically comprises the statistical information that port pointer, state machine pointer, bridge variable, protocol version, bridge id, bridge temporal information, root port ID, root priority, root temporal information, bridge mark and bridge are in operation.
As a kind of improved plan, the state of port comprises and abandons, learns and forwarding state, and the type of port comprises root port, assigns port, alternate port and backup port.
As a kind of improved plan, state machine specifically comprises port role selection mode machine, Port Profile transition state machine, port role transfering state machine, port status transfering state machine, port information state machine, topology change state machine, Linktype state machine and port cost state machine.
Another object of the embodiment of the present invention is to provide a kind of optical line terminal equipment ethernet port character control method based on optical line terminal equipment ethernet port character control device, and described optical line terminal equipment ethernet port character control method specifically comprises the steps:
Bridge message processing module configuration bridge entities structure, and obtain the data message of outside input, simultaneously, Bridge configuration parsing is carried out to the data message got, obtain the type of described data message, the type of described data message specifically comprises port deal with data and state machine deal with data, and described bridge message processing module is connected with the external command configuration module for inputting external command;
Port information processing module is configured port organization body, and to described bridge message processing module resolve the port deal with data obtained proceed type resolve, port information table corresponding with it for the type of resolving the port data obtained is compared, and according to the port data after comparison result output processing, simultaneously, generate the first hardware driving instruction, wherein, the type of described data message comprises command configuration information and data transmit package informatin, described port information table is provided with two, be designated as the first port information table and the second port information table respectively, whether described first port information table marks by the port of command set is specially backup port and corresponding port information, described second port information table is set up by analyzing BPDU, described port information processing module is connected with driver module, described driver module connects optical line terminal equipment master chip, described driver module is for driving described optical line terminal equipment master chip determination backup link or conveying data, wherein, described port organization body specifically comprises the pointer pointing to next port variable, port state machine list, bridge belonging to the port and port timer,
State machine processing module to described bridge message processing module resolve the process that the state machine deal with data that obtains and described port information processing module export after port data carry out computing and control, generate the second hardware driving instruction, described state machine processing module also connects described driver module;
Described first hardware driving instruction and described second hardware driving instruction are transported to described driver module respectively, and described driver module and described external command configuration module are all connected with main program module.
As a kind of improved plan, described method also comprises the steps:
Described bridge message processing module is also for carrying out number statistics to the data message received, when loss three BPDUs, described bridge message processing module generates the 3rd hardware driving instruction, described 3rd hardware driving instruction is transported to described driver module, for driving backup link as data channel.
As a kind of improved plan, described bridge entities structure specifically comprises the statistical information that port pointer, state machine pointer, bridge variable, protocol version, bridge id, bridge temporal information, root port ID, root priority, root temporal information, bridge mark and bridge are in operation.
As a kind of improved plan, the state of port comprises and abandons, learns and forwarding state, and the type of port comprises root port, assigns port, alternate port and backup port.
As a kind of improved plan, state machine specifically comprises port role selection mode machine, Port Profile transition state machine, port role transfering state machine, port status transfering state machine, port information state machine, topology change state machine, Linktype state machine and port cost state machine.
In embodiments of the present invention, RSTP module in OLT device is carried out function refinement, be specially bridge message processing module, port information processing module and state machine processing module, its duty of each tool of its each functional module, improve the operating efficiency of OLT device, the constringency performance of overall EPON system improves.
Accompanying drawing explanation
Fig. 1 is the optical line terminal equipment ethernet port character control device structured flowchart that the embodiment of the present invention provides;
Fig. 2 is the realization flow figure of the optical line terminal equipment ethernet port character control method that the embodiment of the present invention provides;
Fig. 3 is the configuration diagram of the EPON system that the embodiment of the present invention provides;
Wherein, 11-bridge message processing module, 12-port information processing module, 13-state machine processing module.
Embodiment
In order to make object of the present invention, technical scheme and advantage clearly understand, below in conjunction with drawings and Examples, the present invention is further elaborated.Should be appreciated that specific embodiment described herein only in order to explain the present invention, be not intended to limit the present invention.
Fig. 1 shows the structured flowchart of optical line terminal equipment ethernet port character control device provided by the invention, for convenience of explanation, only provides part related to the present invention in figure.
Optical line terminal equipment ethernet port character control device is built in the RSTP module of optical line terminal equipment (OLT) of ethernet passive optical network system, described device specifically comprises bridge message processing module 11, port information processing module 12 and state machine processing module 13, in fact, these three modules are to the concrete refinement of the function of RSTP module, namely to the division of relevant to technical solution of the present invention three content module, it is specific as follows:
Bridge message processing module 11 is for configuring bridge entities structure, and obtain the data message of outside input, simultaneously, Bridge configuration parsing is carried out to the data message got, obtain the type of described data message, the type of described data message specifically comprises port deal with data and state machine deal with data, and described bridge message processing module is connected with the external command configuration module for inputting external command;
Port information processing module 12 is connected with described bridge message processing module 11, for being configured port organization body, and to described bridge message processing module 11 resolve the port deal with data obtained proceed type resolve, port information table corresponding with it for the type of resolving the port data obtained is compared, and according to the port data after comparison result output processing, simultaneously, generate the first hardware driving instruction, wherein, the type of described data message comprises command configuration information and data transmit package informatin, described port information table is provided with two, be designated as the first port information table and the second port information table respectively, whether described first port information table marks by the port of command set is specially backup port and corresponding port information, described second port information table is set up by analyzing BPDU, described port information processing module 12 is connected with driver module (unmarked in figure), described driver module connects optical line terminal equipment master chip, described driver module is for driving described optical line terminal equipment master chip determination backup link or conveying data, wherein, described port organization body specifically comprises the pointer pointing to next port variable, port state machine list, bridge belonging to the port and port timer,
State machine processing module 13 is connected with described bridge message processing module 11 and port information processing module 12, for to described bridge message processing module 11 resolve the process that the state machine deal with data that obtains and described port information processing module 12 export after port data carry out computing and control, generate the second hardware driving instruction, described state machine processing module 13 also connects described driver module;
First hardware driving instruction and described second hardware driving instruction are transported to described driver module respectively, described driver module carries out hardware driving to OLT master chip, and described driver module and described external command configuration module are all connected with main program module.
Wherein, above-mentioned RSTP module is functional module common in OLT, it exists as single functional module, this RSTP module carries out being refined as bridge message processing module 11, port information processing module 12 and state machine processing module 13 by the embodiment of the present invention, its function carries out concrete refinement, operating efficiency improves, and constringency performance improves.
In embodiments of the present invention, bridge message processing module 11 is also for carrying out number statistics to the data message received, when loss three BPDUs, described bridge message processing module 11 generates the 3rd hardware driving instruction, described 3rd hardware driving instruction is transported to described driver module, for driving backup link as data channel, described data message is BPDU, particularly:
In the course of work of bridge message processing module 11, what continue adds up the BPDU received, when losing three BPDUs continuously, bridge message processing module 11 generates one the 3rd hardware driving instruction automatically, when the 3rd hardware driving instruction is got by driver module, drives relevant hardware, using current alternate channel as main sendaisle, original data send main channel and interrupt, and break down, and prompting is safeguarded.
In embodiments of the present invention, bridge message processing module 11, port information processing module 12 and state machine processing module 13 process the data of its correspondence respectively, it belongs to work in essence, such as bridge information belongs bridge message processing module 11 processes, port information belongs to port information process 12 and processes, the deal with data that residue is specialized then is processed by state machine processing module 13, wherein:
Two inquiries are set in port information processing module 12 according to table, the first port information table and the second port information table respectively, these two port information tables are as a core point of the present embodiment, whether its first port information table marks by the port of command set is specially backup port and corresponding port information, described second port information table is set up by analyzing BPDU, and it comprises following two operating process:
(1), when each module automatic synchronization work that the present embodiment provides, the second port information table is as main reference frame, and it provides foundation for data transmit-receive link, namely gives tacit consent to link and carries link as key data, is namely used for realizing the conveying of routine data;
(2), when staff to be controlled link by CLI order select or debugging maintenance time, then can input corresponding CLI order bag by external hardware, bridge message processing module 11 is resolved this CLI order bag, and lost to port information processing module 12, port information processing module 12 is resolved this CLI order, and contrast the first port information table, according to the content described in this table, set corresponding link as main conveying link.
Therefore, from above-mentioned two implementations, in OLT device in debugging or maintenance process, improve adjustable and the maintainability of equipment, thus further increase fast convergence.
In embodiments of the present invention, above-mentioned bridge message processing module 11, port information processing module 12 and state machine processing module 13 are except the feature of foregoing description, also possesses conventional function, the functions such as the poll of such as port information processing module 12, it is specific as follows states described in content, but not in order to limit the present invention.
In the present embodiment, OLT device is provided with Ethernet interface and PON interface, the setting of these two kinds of interfaces and mode of operation are also different, regard OLT and the multiple stage ONU equipment that is attached thereto as a distribution switch, each network interface distributes a port id, RSTP agreement is mainly used in and OLT network interface side and ONU user interface side, avoid causing loop, waste Internet resources and cause network congestion, realize in the local area network (LAN) be made up of EPON system, select one simple acyclic, full communicating active topology spanning tree, wherein, active topology is predictable, reproducible, can be selected by placement algorithm parameter, when EPON system OLT device breaks down, automatically spanning-tree topology can be reconfigured.In the present embodiment, bridge entities structure comprises port pointer, state machine pointer, bridge variable, protocol version, bridge id, bridge temporal information, root port ID, root priority, root temporal information, bridge mark and the operating statistical information of bridge etc.
Its statement bridge information processing function, for other submodules provide corresponding operating.
Particularly, bridge run the release type of spanning tree: run STP compatibility mode when=0; When=2, run RSTP normal mode.
Wherein, being defined as follows of BPDU:
1. data field: add 4 field description positions, illustrates state and the type of port
2. CFG BPDU: directly in inter-exchange exchange between two, if lose 3 BPDU, mean that link topology changes
3. TCN BPDU: directly flood at inter-exchange
In the present embodiment, port variable structure, the variable of all associated port and state machine are organized into structure, one is defined to each bridge port and points to the information that the pointer of port variable carrys out storage port, port organization body specifically comprise point to next port variable pointer, port state machine list, bridge and port timer belonging to the port;
Port information is a subset of bridge information, and the variable that port information comprises, state machine and statistical information are more, and processing mode and bridge are also very different.In order to the correlation reducing bridge and port is divided into independently submodule port, Bridge configuration body is by all of the port of this bridge of pointed.
Wherein, (1) port status:
1. abandon (discarding): can not user data be forwarded
2. learn (learning): learning MAC address, build MAC and show process item
3. (forwarding) is forwarded: user data can be forwarded
(2) port type:
1. root (root) port: identical with 802.1D
2. (des ignated) port is assigned: identical with 802.1D
3. (alternative) port is prepared: port gets clogged, as the backup of root port
4. (backup) port is backed up: (learning): port gets clogged, as the backup of assigning port.
In the present embodiment, state machine is responsible for computing and the control of the various complex informations of bridge and port, state machine specifically comprises: port role selection mode machine, Port Profile transition state machine, port role transfering state machine, port status transfering state machine, port information send state machine, port information state machine, topology change state machine, Linktype state machine and port cost state machine, and different conditions machine does different computings or control.
Wherein, state machine belongs to port or bridge is comparatively simple to the operation of state machine, or checks its state updating condition, or implements state updating.A bridge or port comprise numerous state machine, and define state machine universal architecture body to better manage these state machines, structure points to concrete operation by function pointer.
State machine architecture body and grand, wherein, comprises bridge pointer (belonging to pointing to bridge), port pointer (belonging to pointing to port), state machine pointer (pointing to next state machine), state machine action-function and state machine information.
Port role transfering state machine: be responsible for root port, designated port to transfer to forwarding state; Optional port, backup port are transferred to discarding state.
In embodiments of the present invention, the EPON system function that should possess in a local network is as follows:
(1) a unique group address is had can be bridged all bridge identifications in LAN in a local network, this group address identifies all bridges on an independent LAN, and (namely in an independent LAN, destination address is the message of this group address, can be received by all bridges on this LAN, this message directly can not be forwarded by them) EPON group address is set;
(2) each bridge has a unique bridge identifier in bridged lan, is called bridge id (BridgeIdentifier).This ID part is from Bridge Address, and part is from bridge priority.And this value is less, the priority of this bridge is higher;
(3) all of the port of each bridge has different port-marks, be called port id (each bridge independent allocation of portId), this ID part is fixing (different from other port, to be such as port numbers), and part is from port priority.And this value is less, the priority of this port is higher.
Demand is below the active topology in order to support administration configuration spanning tree:
(1) relative priority can be distributed for each bridge in bridged lan;
(2) can be each port assignment relative priority of each bridge;
(3) can be each port assignment path cost (path cost) of each bridge.
The optical line terminal equipment ethernet port character control device that the embodiment of the present invention provides is applied in the environment of following configuration, and it is specially:
(1), in all from network bridges, one is selected as Root Bridge (root);
(2) shortest path of current bridge to Root Bridge is calculated;
(3) to each LAN, select from the nearest bridge of Root Bridge as Designated Bridge, be responsible for the forwarding of data on the LAN of place;
(4) bridge selects a port as root port, and the path that this port provides is that this bridge is to Root Bridge optimal path;
(5) port be contained in spanning tree except heel end mouth is selected.
In conjunction with the embodiment of the present invention, above-mentioned application configuration surroundings possesses following effect:
(1) time that the backup link in double link structure makes discovery topology change to recovery connective can reach several milliseconds, and without the need to transmitting configuration messages;
(2) Handshake Protocol makes network connectivty can recover within the time of exchange two configuration messages, the time delay of namely shaking hands, when the worst, shakes hands from network, be diffused into the bridge at another edge of network, network connectivty could recover.
(3) state variation of edge port does not affect network connectivty, also can not cause loop, enters forwarding state without the need to time delay.
The embodiment of the present invention needs following basic parameter configuration, described in specific as follows:
1, RSTP functional configuration demand is:
Only have and start every configuration task after RSTP and just can come into force, before startup RSTP, can the relevant parameter of configuration device or ethernet port, after RSTP closes, these configuration parameters still retain, and after RSTP restarts, these parameters main configuration task list of RSTP that will come into force is as follows:
(1) turn on/off devices STP characteristic
(2) the Spanning-Tree Protocol pattern of EPON is configured
(3) EPON RSTP priority is configured
(4) EPON Forward Delay characteristic is configured
(5) EPON hel lo-t ime characteristic is configured
(6) EPON Max Age characteristic is configured
(7) path cost of particular port is configured
(8) the RSTP priority of particular port is configured
(9) configure particular port to force to send RSTP BPDUs
(10) Linktype of particular port is configured
(11) the boundary port state of particular port is configured
(12) rate limit that particular port sends BPDU is configured
(13) STP monitoring and maintenance
2.CLI user command
Spanning-tree starts rstp agreement
Spanning-tree cost arranges the path cost of current Ethernet interface
Spanning-tree forward-time arranges the Forwarding Latency value of switch
Spanning-tree hello-time arranges the hello time value of switch
Spanning-tree link-type point-to-poin arranges the Linktype be connected with present port
Spanning-tree maxage arranges the maximum aging time of switch
Spanning-tree mcheck runs under forcing switch to move to rstp pattern
Spanning-tree mode arranges the pattern that switch runs spanning-tree
It is edge port that spanning-tree portfast arranges present port
Present port is set for replacing port
Spanning-tree port-priority arranges present port priority value
Spanning-tree priority arranges switch priority
In embodiments of the present invention, be provided with two port information tables in port information processing module, it provides two kinds of different data messages to carry out the reference frame of different operations, when being carried out link change by CLI order, then generate the first hardware driving instruction, it is corrected; When losing three BPDUs continuously, then being changed link by the 3rd hardware driving instruction, being about to send data channel and changing to backup link, wherein, above-mentioned second hardware driving instruction is that conventional data send instruction; Further, when on the backup link of sendaisle after change, also need to continue to detect the BPDU that it receives, when losing three continuously, also needing generation the 3rd hardware driving instruction, sendaisle is changed;
Further, when by the backup link after CLI order change, also need to continue to detect the BPDU that it receives, when losing three continuously, also needing generation the 3rd hardware driving instruction, sendaisle is changed.
For the ease of understanding, the following operational process that the RSTP of the optical line terminal equipment ethernet port character control device provided based on the embodiment of the present invention is provided:
(1) initialization
Carry out port setting, arrange maximum port number, port index tables, configuration communication information, configured port variable, state machine creates.
(2) RSTP user command configuration
Cli interface module is converted to power function CLI order, line parameter inspection of going forward side by side, and builds configuration communication information, and carry out bridge renewal according to the parameter transmitted.
(3) configuration information process
According to configuration requirement amendment configuration communication information, obtain bridge pointer, calculate bridge id according to bridge title, compare bridge priority, amendment bridge variable, port variable.
(4) BPDU process
If root port loses 3 BPDU, preparation (alternative) port is directly converted to heel end mouth and forwards, assign (des ignated) port to lose 3 BPDU, backup (backup) port is directly converted to assigns port to forward.BPDU normally receives, and according to the BPDU received, checks whether bridge topology changes, changes, TCN BPDU: directly flood at inter-exchange.Bridge renewal is carried out according to new network topology.
(5) bridge upgrades
Judge topologies change, carry out state machine renewal, send BPDU, hardware state is set.
BPDU message exchanges in direct-connected two bridges or multiple bridge, can not be forwarded.The bridge not running STP agreement will be used as BPDU message as general service message repeating.
The time interval sending BPDU between OLT device and direct-connected switch is set.
In embodiments of the present invention, the first port information table and the second Port State Table is provided with in port information processing module, the state of port can by the protocol changes of BPDU, also can be modified by CLI order, according to topological structure, because the replacement port of root port is all that the dual link arranged to improve reliability is formed in RSTP.So wherein certain port can be determined to replace port, edge port by CLI order, determine to replace port, to improve the convergence rate of spanning tree by CLI order.
Fig. 2 shows the realization flow figure of the optical line terminal equipment ethernet port character control method that the embodiment of the present invention provides, and its concrete step is as described below:
In step s 201, bridge message processing module configuration bridge entities structure, and obtain the data message of outside input, simultaneously, Bridge configuration parsing is carried out to the data message got, obtain the type of described data message, the type of described data message specifically comprises port deal with data and state machine deal with data, and described bridge message processing module is connected with the external command configuration module for inputting external command.
In step S202, port information processing module is configured port organization body, and to described bridge message processing module resolve the port deal with data obtained proceed type resolve, port information table corresponding with it for the type of resolving the port data obtained is compared, and according to the port data after comparison result output processing, simultaneously, generate the first hardware driving instruction, wherein, the type of described data message comprises command configuration information and data transmit package informatin, described port information table is provided with two, be designated as the first port information table and the second port information table respectively, whether described first port information table marks by the port of command set is specially backup port and corresponding port information, described second port information table is set up by analyzing BPDU, described port information processing module is connected with driver module, described driver module connects optical line terminal equipment master chip, described driver module is for driving described optical line terminal equipment master chip determination backup link or conveying data, wherein, described port organization body specifically comprises the pointer pointing to next port variable, port state machine list, bridge belonging to the port and port timer,
In step S203, state machine processing module to described bridge message processing module resolve the process that the state machine deal with data that obtains and described port information processing module export after port data carry out computing and control, generate the second hardware driving instruction, described state machine processing module also connects described driver module;
Wherein, the first hardware driving instruction and described second hardware driving instruction are transported to described driver module respectively, and described driver module and described external command configuration module are all connected with main program module.
Above are only a concrete grammar embodiment of the present invention, its concrete realization, with reference to described in said structure embodiment, does not repeat them here, but not in order to limit the present invention.
In embodiments of the present invention, said method embodiment also comprises the steps:
Bridge message processing module also carries out number statistics to the data message received, when loss three BPDUs, described bridge message processing module generates the 3rd hardware driving instruction, described 3rd hardware driving instruction is transported to described driver module, for driving backup link as data channel, its concrete realization, as described in said apparatus embodiment, does not repeat them here, but not in order to limit the present invention.
For the ease of understanding, followingly provide concrete realization flow, as shown in Figure 3:
1, overall design framework is: connect several switches under business router, connect an OLT device under every path switching mechanism, connect several ONU equipment under OLT device, wherein OLT is as local side, ONU as family end, and, be set to double link structure between switch and OLT;
2, suppose that figure double center chain road is designated as A and B respectively, wherein, can set A is primary link, and namely at the key data transfer passage of EPON system work, B, as backup link, when primary link A is as fault, uses B link to carry out data transmission;
3, in debug process, suppose the road ability first debugging passage A, then commissioning staff inputs corresponding CLI order, this CLI order includes connects A, disconnect the information of B, by this CLI command routing to the bridge message processing module of OLT device, bridge message processing module is resolved this CLI order, obtain it and belong to item handled by port information processing module, then by this CLI command routing to port information processing module; After port information processing module receives CLI order, the first port information table arranged in itself and its is compared, obtain the first concrete hardware driving instruction, and this first hardware driving instruction is delivered to driver module, driver module, by A equipment debugging passage, disconnects B, when debugging, realized the transmission of data between switch and OLT by A, thus determine the road ability of A; Otherwise, be also the same to the debugging of B;
4, in the course of work of OLT device, when breaking down, RSTP changes topology automatically, realizes resuming of data, and while not affecting OLT work, the mode can recorded by above-mentioned 3 is safeguarded dual link.
Certainly, for occurring that packet loss causes the content changing backup link not repeat them here, but not in order to limit the present invention.
In embodiments of the present invention, RSTP module in OLT device is carried out function refinement, be specially bridge message processing module, port information processing module and state machine processing module, its duty of each tool of its each functional module, improve the operating efficiency of OLT device, the constringency performance of overall EPON system improves.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, all any amendments done within the spirit and principles in the present invention, equivalent replacement and improvement etc., all should be included within protection scope of the present invention.

Claims (10)

1. an optical line terminal equipment ethernet port character control device, it is characterized in that, described optical line terminal equipment ethernet port character control device is built in the RSTP module of the optical line terminal equipment of ethernet passive optical network system, and described device specifically comprises:
Bridge message processing module, for configuring bridge entities structure, and obtain the data message of outside input, simultaneously, Bridge configuration parsing is carried out to the data message got, obtain the type of described data message, the type of described data message specifically comprises port deal with data and state machine deal with data, and described bridge message processing module is connected with the external command configuration module for inputting external command;
Port information processing module, be connected with described bridge message processing module, for being configured port organization body, and to described bridge message processing module resolve the port deal with data obtained proceed type resolve, port information table corresponding with it for the type of resolving the port data obtained is compared, and according to the port data after comparison result output processing, simultaneously, generate the first hardware driving instruction, wherein, the type of described data message comprises command configuration information and data transmit package informatin, described port information table is provided with two, be designated as the first port information table and the second port information table respectively, whether described first port information table marks by the port of command set is specially backup port and corresponding port information, described second port information table is set up by analyzing BPDU, described port information processing module is connected with driver module, described driver module connects optical line terminal equipment master chip, described driver module is for driving described optical line terminal equipment master chip determination backup link or conveying data, wherein, described port organization body specifically comprises the pointer pointing to next port variable, port state machine list, bridge belonging to the port and port timer,
State machine processing module, be connected with described bridge message processing module and port information processing module, for to described bridge message processing module resolve the process that the state machine deal with data that obtains and described port information processing module export after port data carry out computing and control, generate the second hardware driving instruction, described state machine processing module also connects described driver module;
Described first hardware driving instruction and described second hardware driving instruction are transported to described driver module respectively, and described driver module and described external command configuration module are all connected with main program module.
2. optical line terminal equipment ethernet port character control device according to claim 1, it is characterized in that, described bridge message processing module is also for carrying out number statistics to the data message received, when loss three BPDUs, described bridge message processing module generates the 3rd hardware driving instruction, described 3rd hardware driving instruction is transported to described driver module, for driving backup link as data channel, described data message is BPDU.
3. optical line terminal equipment ethernet port character control device according to claim 1 and 2, it is characterized in that, described bridge entities structure specifically comprises the statistical information that port pointer, state machine pointer, bridge variable, protocol version, bridge id, bridge temporal information, root port ID, root priority, root temporal information, bridge mark and bridge are in operation.
4. optical line terminal equipment ethernet port character control device according to claim 1 and 2, it is characterized in that, the state of port comprises and abandons, learns and forwarding state, and the type of described port comprises root port, assigns port, alternate port and backup port.
5. optical line terminal equipment ethernet port character control device according to claim 1 and 2, it is characterized in that, state machine specifically comprises port role selection mode machine, Port Profile transition state machine, port role transfering state machine, port status transfering state machine, port information state machine, topology change state machine, Linktype state machine and port cost state machine.
6. the optical line terminal equipment ethernet port character control method based on optical line terminal equipment ethernet port character control device according to claim 1, it is characterized in that, described optical line terminal equipment ethernet port character control method specifically comprises the steps:
Bridge message processing module configuration bridge entities structure, and obtain the data message of outside input, simultaneously, Bridge configuration parsing is carried out to the data message got, obtain the type of described data message, the type of described data message specifically comprises port deal with data and state machine deal with data, and described bridge message processing module is connected with the external command configuration module for inputting external command;
Port information processing module is configured port organization body, and to described bridge message processing module resolve the port deal with data obtained proceed type resolve, port information table corresponding with it for the type of resolving the port data obtained is compared, and according to the port data after comparison result output processing, simultaneously, generate the first hardware driving instruction, wherein, the type of described data message comprises command configuration information and data transmit package informatin, described port information table is provided with two, be designated as the first port information table and the second port information table respectively, whether described first port information table marks by the port of command set is specially backup port and corresponding port information, described second port information table is set up by analyzing BPDU, described port information processing module is connected with driver module, described driver module connects optical line terminal equipment master chip, described driver module is for driving described optical line terminal equipment master chip determination backup link or conveying data, wherein, described port organization body specifically comprises the pointer pointing to next port variable, port state machine list, bridge belonging to the port and port timer,
State machine processing module to described bridge message processing module resolve the process that the state machine deal with data that obtains and described port information processing module export after port data carry out computing and control, generate the second hardware driving instruction, described state machine processing module also connects described driver module;
Described first hardware driving instruction and described second hardware driving instruction are transported to described driver module respectively, and described driver module and described external command configuration module are all connected with main program module.
7. optical line terminal equipment ethernet port character control method according to claim 6, it is characterized in that, described method also comprises the steps:
Described bridge message processing module is also for carrying out number statistics to the data message received, when loss three BPDUs, described bridge message processing module generates the 3rd hardware driving instruction, described 3rd hardware driving instruction is transported to described driver module, for driving backup link as data channel.
8. the optical line terminal equipment ethernet port character control method according to claim 6 or 7, it is characterized in that, described bridge entities structure specifically comprises the statistical information that port pointer, state machine pointer, bridge variable, protocol version, bridge id, bridge temporal information, root port ID, root priority, root temporal information, bridge mark and bridge are in operation.
9. the optical line terminal equipment ethernet port character control method according to claim 6 or 7, it is characterized in that, the state of port comprises and abandons, learns and forwarding state, and the type of described port comprises root port, assigns port, alternate port and backup port.
10. the optical line terminal equipment ethernet port character control method according to claim 6 or 7, it is characterized in that, state machine specifically comprises port role selection mode machine, Port Profile transition state machine, port role transfering state machine, port status transfering state machine, port information state machine, topology change state machine, Linktype state machine and port cost state machine.
CN201310117225.0A 2013-04-07 2013-04-07 A kind of optical line terminal equipment ethernet port character control device and method Expired - Fee Related CN103236942B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310117225.0A CN103236942B (en) 2013-04-07 2013-04-07 A kind of optical line terminal equipment ethernet port character control device and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310117225.0A CN103236942B (en) 2013-04-07 2013-04-07 A kind of optical line terminal equipment ethernet port character control device and method

Publications (2)

Publication Number Publication Date
CN103236942A CN103236942A (en) 2013-08-07
CN103236942B true CN103236942B (en) 2015-08-26

Family

ID=48884960

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310117225.0A Expired - Fee Related CN103236942B (en) 2013-04-07 2013-04-07 A kind of optical line terminal equipment ethernet port character control device and method

Country Status (1)

Country Link
CN (1) CN103236942B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103731199A (en) * 2013-11-15 2014-04-16 成都市宏山科技有限公司 Neighborhood EPON network equipment protected by multiple stages of power supplies
CN105227424B (en) * 2015-10-20 2018-05-15 成都广达新网科技股份有限公司 A kind of EOC local sides are by cascading the method and system of bridge virtual interface
CN107466056A (en) * 2017-07-14 2017-12-12 武汉集客科技有限公司 Wireless bridge and its matching method
CN107645434A (en) * 2017-09-27 2018-01-30 武汉集客科技有限公司 Interface Expanding type wireless bridge and its matching method
CN113938419B (en) * 2021-10-15 2023-03-24 湖南八零二三科技有限公司 Switch RSTP convergence enhancing method

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101123550A (en) * 2006-08-11 2008-02-13 阿尔卡特公司 Function change by topology upon change to area root information
CN101809934A (en) * 2007-06-19 2010-08-18 北卡罗来纳科姆斯科普公司 The method, system and the computer program that are used for the use and management port circuit

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7639699B2 (en) * 2006-08-04 2009-12-29 Cisco Technology, Inc. Technique for sharing a physical port among a plurality of virtual bridges on a switch in a computer network

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101123550A (en) * 2006-08-11 2008-02-13 阿尔卡特公司 Function change by topology upon change to area root information
CN101809934A (en) * 2007-06-19 2010-08-18 北卡罗来纳科姆斯科普公司 The method, system and the computer program that are used for the use and management port circuit

Also Published As

Publication number Publication date
CN103236942A (en) 2013-08-07

Similar Documents

Publication Publication Date Title
CN103236942B (en) A kind of optical line terminal equipment ethernet port character control device and method
CN103379005B (en) A kind of optical line terminal equipment and its implementation
CN100558111C (en) Metro Ethernet provides reliability processing method and the system under the multi-service networking
CN102917286B (en) Hand-in-hand protection switching method and system in EPON (Ethernet Passive Optical Network)
CN102957616B (en) In the method and system of ASIC repeating TRILL network message
US9755749B2 (en) ONU, communication system and communication method for ONU
WO2007086157A1 (en) Network system
CN101505191A (en) Fault processing method and system for Ethernet passive optical network
CN1921357A (en) Full optical fibre protecting device and method
CN103312546A (en) Method for automatically configuring and managing ZigBee network
CN101848186B (en) Three-layer plastic optical fiber Ethernet switch
CN110430114B (en) Virtual router and method for realizing interconnection between SDN network and traditional IP network
CN102006526A (en) Method and device for processing broadcast packet/multicast control message
CN100561990C (en) A kind of digital home gateway device and processing method thereof
CN105656645A (en) Decision making method and device for fault processing of stacking system
CN101316260A (en) Packaging conversion method and packaging conversion equipment
CN102282805A (en) Method for service protection and access device
Alvizu et al. Can open flow make transport networks smarter and dynamic? An overview on transport SDN
CN1863153B (en) Method of Ethernet supporting source specific multicast forwarding and apparatus thereof
CN101860769B (en) Method, device and system for fusing IP and light
CN202385092U (en) Power communication platform integrating packet transport network (PTN) and Ethernet passive optical network (EPON)
CN103534995B (en) A kind of interplate communication method of router cluster, router and router cluster
CN102388580A (en) Methods and apparatus for protecting a communications network
CN110113258B (en) Method and system for automatically protecting data surface link by using control surface link
CN100466546C (en) System and method for realizing business protection using LCAS protocol

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C53 Correction of patent for invention or patent application
CB02 Change of applicant information

Address after: Weifang City, Shandong province 261061 Dongfeng East Street, No. 5147

Applicant after: Weifang College

Applicant after: Shandong limited company of Dong Sheng electronics group

Address before: Weifang City, Shandong province 261061 Dongfeng East Street, No. 5147

Applicant before: Weifang College

Applicant before: Weifang Dongsheng Electronic Co., Ltd.

COR Change of bibliographic data

Free format text: CORRECT: APPLICANT; FROM: WEIFANG DONGSHENG ELECTRONIC CO., LTD. TO: SHANDONG DONGSHENG ELECTRONIC LIMITED BY SHARE LTD.

C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20150826

Termination date: 20180407