Operation management maintainance message prioritization sending method, apparatus and system
Technical field
The present invention relates to the communications fields, in particular to a kind of operation management maintainance message prioritization sending method, device
And system.
Background technique
With the rapid development of information technology, network has become essential tool in people's routine work and life.
Ethernet passive optical network (Ethernet Passive Optical Network, referred to as EPON) technology combine Ethernet and
The advantages of passive optical network (Passive Optical Network, referred to as PON), becomes a kind of important technology of access net.
EPON system mainly includes that local side apparatus optical line terminal (Optical Line Terminal, referred to as OLT) and terminal are set
Standby optical network unit (Optical Network Unit, referred to as ONU).Local side apparatus must have ability detection business, mention
For some important informations of physical link and equipment between network and the local network of users.Operation management maintainance message
(Operation Administration and Maintenance, abbreviation OAM) information be exactly solve the problems, such as it is this, and
OAM data has in time, preferentially send.
In traditional EPON technology, an ONU a corresponding Logical link ID (Logical Link Identifier, letter
Referred to as LLID).But with the rapid development of IT technology, application type is increasing, the ONU of single LLID may cannot
A large amount of emerging service type is distinguished well.China Telecom's EPON technology for the ease of queues multiple in ONU management, simultaneously
The mapping relations of more type services are set up, therefore each ONU is expanded into 8 road LLID.Since single channel LLID has had
The function of different kinds of business is distinguished according to data label (TAG), therefore the design of 8 road LLID can significantly increase application
The type of layer service data provides more careful, efficient service quality to support a greater variety of application services
(Quality of Service, referred to as QoS) guarantees.
Fig. 1 is the flow chart that data are sent according to the ONU of the relevant technologies, as shown in Figure 1, the transmission flow includes following step
It is rapid:
Step S102 sends report frame;
ONU is sent to OLT by data volume size to be sent, with Report frame report form.
Step S104 distributes time window;
OLT analyzes the time window (Grant of corresponding ONU according to the report value of the Report frame received
Window) size.
Step S106 sends data.
The Grant window size that ONU is distributed according to OLT, sends existing data.
Fig. 2 is the flow chart that data are sent according to the OAM of single LLID of the relevant technologies, due to Report in existing agreement
Frame at most only supports to 8 queues, while it has to be ensured that efficient QOS, so user will it is expected to prop up when in use
It holds to 8 queues.OAM data must just be mixed with other business datums in this way, be sent in service queue.Such as Fig. 2 institute
Show, the transmission flow the following steps are included:
Step S202 sends report frame.
ONU is by OAM data to be sent, and data in same queue, reported in the form of Report frame together to
OLT.Specific reporting format is as shown in Figure 2 a, and a Report frame supports 8 queues: queue 0, queue 1 etc..
Step S204 distributes time window.
OLT distributes corresponding Grant window size to corresponding ONU according to the report value of Report frame.
Step S206 sends OAM data.
OAM data and other data are sent collectively to OLT by the Grant window size that ONU is distributed according to OLT.Figure
2b is the transmission schematic diagram according to the OAM data of the relevant technologies, as shown in Figure 2 b, the data warp in 8 queues of Report frame
After crossing scheduling (schedule, referred to as Sche), becomes an output queue and send.
From above-mentioned transmission process as it can be seen that OAM data cannot be sent at the first time OLT.Specifically, if OAM
Data are not stored in highest-priority queue, and OAM data certainly cannot sent at the first time.If OAM data
It is stored in the queue of highest priority, when having other business datums in the same queue, ONU can first send other industry
Business data, then could send OAM data.
In addition, should guarantee the service quality of QOS during equipment work, while it is expected that OAM data can be most fast
Most send in time.But OAM data only in the related technology, is sent to 1 road LLID, and cannot be guaranteed that OAM can be preferential
Ground is transmitted.
Aiming at the problem that not can guarantee OAM data in the related technology can preferentially send, effective solution is not yet proposed at present
Certainly scheme.
Summary of the invention
The present invention provides a kind of operation management maintainance message prioritization sending methods, apparatus and system, at least to solve
State problem.
According to an aspect of the invention, there is provided a kind of operation management maintainance message prioritization sending method, comprising: will
OAM data is stored in dedicated OAM queue, and business datum is stored in service queue;According to the OAM queue and institute
It states service queue and generates report Report frame, and the Report frame is sent to optical line terminal OLT;Receive the OLT
According to the time window that the Report frame distributes, and the OAM queue is preferentially sent according to the time window.
Preferably, generating Report frame according to the OAM queue and the service queue includes: in the service queue
Select a queue as reconstruct queue;Generation is reconstructed in business datum in the OAM data and the reconstruct queue
The report value of the reconstruct queue;According to the report value generation of the report value of the reconstruct queue and other service queues
Report frame.
Preferably, it includes: the selection service queue that a queue is selected in the service queue as reconstruct queue
In highest priority transmit queue as reconstruct queue.
Preferably, preferentially sending the OAM queue according to the time window includes: preferentially to be sent out according to the time window
The OAM data in the OAM queue is sent, and after having sent the OAM data, sent described in the service queue
Business datum.
Preferably, there are multiple Logical link ID LLID, each LLID corresponding one independent described
OAM queue.
According to another aspect of the present invention, a kind of operation management maintainance message prioritization sending device is provided, comprising: storage
Module for OAM data to be stored in dedicated OAM queue, and business datum is stored in service queue;Reconstruct mould
The Report frame for generating report Report frame according to the OAM queue and the service queue, and is sent to light by block
Fine line terminal OLT;Sending module, the time window distributed for receiving the OLT according to the Report frame, and according to institute
It states time window and preferentially sends the OAM queue.
Preferably, the reconstructed module in the service queue for selecting a queue as reconstruct queue, by institute
The report value for generating the reconstruct queue is reconstructed in the business datum stated in OAM data and the reconstruct queue, and according to institute
The report value of the report value and other service queues of stating reconstruct queue generates the Report frame.
Preferably, the reconstructed module is used to select the highest priority transmit queue in the service queue as reconstruct
Queue.
Preferably, the sending module is used to preferentially send the OAM in the OAM queue according to the time window
Data, and after having sent the OAM data, send the business datum in the service queue.
Preferably, there are multiple Logical link ID LLID, each LLID corresponding one independent described
OAM queue.
According to another aspect of the present invention, a kind of operation management maintainance message prioritization transmission system is provided, comprising: light net
Network unit ONU, including operation management maintainance message prioritization sending device described in any one of above-mentioned 6th to the 10th;Light
Fine line terminal OLT, the report Report frame sent for receiving the preferential sending device of the OAM, and according to the Report
Frame is that the ONU distributes time window, and receives the OAM queue that the ONU is preferentially sent according to the time window.
Through the invention, OAM data is stored in dedicated OAM queue, and business datum is stored in service queue
In, Report frame is then generated according to OAM queue and service queue, and Report frame is sent to optical line terminal OLT, so
The time window that OLT is distributed according to the Report frame is received afterwards, and the OAM queue is preferentially sent according to the time window.Solution
It has determined and not can guarantee the problem of OAM data can preferentially be sent in the related technology, and then reached the preferential effect for sending OAM data
Fruit.
Detailed description of the invention
The drawings described herein are used to provide a further understanding of the present invention, constitutes part of this application, this hair
Bright illustrative embodiments and their description are used to explain the present invention, and are not constituted improper limitations of the present invention.In the accompanying drawings:
Fig. 1 is the flow chart that data are sent according to the ONU of the relevant technologies;
Fig. 2 is the flow chart that data are sent according to the OAM of single LLID of the relevant technologies;
Fig. 2 a is the Report content frame according to the relevant technologies;
Fig. 2 b is the transmission schematic diagram according to the OAM data of the relevant technologies;
Fig. 3 is the flow chart of the preferential sending method of OAM according to an embodiment of the present invention;
Fig. 4 is the structural block diagram of the preferential sending device of OAM according to an embodiment of the present invention;
Fig. 5 is the structural block diagram that OAM according to an embodiment of the present invention preferentially sends system;
Fig. 6 is Report content frame schematic diagram according to an embodiment of the present invention;
Fig. 7 is the flow chart of the preferential sending method of OAM data of list LLID according to an embodiment of the present invention;
Fig. 8 is the flow chart of the preferential sending method of OAM data of more LLID according to an embodiment of the present invention;
Fig. 9 is the structural block diagram of the preferential sending device of OAM data of list LLID according to an embodiment of the present invention;
Figure 10 is the structural block diagram of the preferential sending device of OAM data of more LLID according to an embodiment of the present invention.
Specific embodiment
Hereinafter, the present invention will be described in detail with reference to the accompanying drawings and in combination with Examples.It should be noted that not conflicting
In the case of, the features in the embodiments and the embodiments of the present application can be combined with each other.
Embodiment one
The embodiment of the invention provides a kind of operation management maintainance message prioritization sending method, Fig. 3 is real according to the present invention
Apply the flow chart of the preferential sending method of OAM of example, as shown in figure 3, the process the following steps are included:
OAM data is stored in dedicated OAM queue, and business datum is stored in service queue by step S302.
Step S304 generates Report frame according to OAM queue and service queue, and the Report frame is sent to OLT.
Step S306 receives the time window that OLT is distributed according to Report frame, and is preferentially sent according to the time window
OAM queue.
Through the above steps, the dedicated OAM queue of OAM data is established, and is generated according to the OAM queue and service queue
Then Report frame preferentially sends OAM queue according to the time window that OLT is distributed, change existing OAM hair in the related technology
Send mode.In the related art, OAM can only be sent together with other mix of traffic, it cannot be guaranteed that OAM can be at the first time
Ground is preferentially sent.It can guarantee that OAM data can preferentially be sent at the first time through the embodiment of the present invention.
There are many kinds of the modes that Report frame is generated according to OAM queue and service queue.It preferably, can be in service queue
It is middle to select a queue as reconstruct queue, and generation reconstruct is reconstructed in the business datum in OAM data and reconstruct queue
Then the report value of queue generates Report frame according to the report value of the report value of reconstruct queue and other service queues.Due to
In current EPON agreement, a Report frame can only support 8 queues, and in the embodiment of the present invention, due to having increased OAM newly
Original 8 service queues are added in queue, then there are 9 queues.Through the above steps, by the OAM data in OAM queue
It is reconstructed with the business datum in an optional column service queue, and generates the report value of the service queue, just solved in this way
There are 9 queues and Report frame only sends 8 queues.
Selected in service queue a queue as reconstruct queue mode there are many kinds of.Preferably, it can choose industry
The highest priority transmit queue being engaged in queue is as reconstruct queue.In 8 service queues, one of them can be used as highest
Priority query.Since OAM data is the data for needing preferentially to send, select highest-priority queue as reconstruct team
Column more meet the classification habit of data.
When preferentially sending OAM queue, the OAM data in OAM queue can be preferentially sent according to time window, and sending out
After having sent OAM data, the business datum in service queue is sent.Certainly, when not having OAM data, industry can also be directly transmitted
Business queue.
It is preferential when sending OAM data, the case where can be a LLID, the case where being also possible to multiple LLID.Exist
In the case where multiple LLID, the corresponding independent OAM queue of each LLID can support 8 LLID in this way.The present invention is real
Applying example can support the OAM of 8 road LLID preferentially to send.Since China Telecom proposes the function of 8 road LLID of support, while the EPON
Chip must support the EPON agreement of traditional single LLID, it is therefore desirable to 8 tunnels are realized on the basis of not violating EPON agreement
The processing of LLID.
Embodiment two
The embodiment of the invention provides a kind of operation management maintainance message prioritization sending device, Fig. 4 is real according to the present invention
Apply the structural block diagram of the preferential sending device of OAM of example, as shown in figure 4, the device include storage module 122, reconstructed module 124,
Sending module 126.
Business datum for OAM data to be stored in dedicated OAM queue, and is stored in business by storage module 122
In queue;
Reconstructed module 124 for generating Report frame according to OAM queue and service queue, and Report frame is sent to
Optical line terminal OLT;
Sending module 126, the time window distributed for receiving OLT according to Report frame, and it is preferential according to time window
Send the OAM queue.
Preferably, reconstructed module 124 in service queue for selecting a queue as reconstruct queue, by OAM data
With reconstruct queue in business datum be reconstructed generate the reconstruct queue report value, and according to reconstruct queue report value and
The report value of other service queues generates Report frame.
Preferably, reconstructed module 124 is used to select the highest priority transmit queue in service queue as reconstruct queue.
Preferably, sending module 126 is used to preferentially send the OAM data in OAM queue according to time window, and is sending
After complete OAM data, the business datum in service queue is sent.
Preferably, there are multiple Logical link ID LLID, the corresponding independent OAM team of each LLID
Column.
The embodiment of the invention also provides a kind of operation management maintainance message prioritizations to send system, and Fig. 5 is according to the present invention
The OAM of embodiment preferentially sends the structural block diagram of system, as shown in figure 5, the system includes ONU10 and OLT20.
ONU10, including the preferential sending device 12 of OAM provided by the present embodiment;
OLT20, the report Report frame sent for receiving the preferential sending device 12 of OAM, and be according to the Report frame
ONU10 distributes time window, and receives the OAM queue that ONU10 is preferentially sent according to time window.
Embodiment three
OAM data is individually stored in a dedicated OAM queue by the embodiment of the present invention, other business datums are according to original
First business demand is stored in original 8 service queues.The LLID of the embodiment of the present invention in this way can support 1 OAM
Queue, 8 business datum queues.But in current EPON agreement, a Report frame can only support 8 queues, and this hair
There are 9 queues for bright embodiment, so must solve the problems, such as that this violates EPON agreement.
The embodiment of the present invention the OAM data in OAM queue as the data in highest-priority queue, it is preferential with highest
Business datum in grade queue generates the report value of highest-priority queue together.Then according to highest-priority queue and its
The report value of his 7 service queues generates Report frame and is sent to OLT.There was only 8 queues in newly-generated Report frame,
The Report frame that OLT is received also only has 8 queues.Specific Report frame format as shown in fig. 6, in figure using queue 0 as
Highest-priority queue, certain highest-priority queue are also possible to any one queue in 8 service queues, new queue
0 is generated by OAM queue and the former reconstruct of queue 0, other queues remain unchanged, in this way, Report frame is still by 8 queues
It constitutes, but the data in OAM queue are reconstructed in queue 0.The requirement of the invention in this way for just not violating EPON agreement.
Report frame is that the OLT distributes time window and is sent to the OLT to OLT based on the received.
When ONU gets the time window information of OLT, which is the window size of a LLID,
Without the window size of specific queue, so can be scheduled according to 9 queues when ONU is sent.Transmission when
It waits, using strict priority scheduling mode.Specifically, sending the OAM number in OAM queue at first when having OAM data
According to.When there is no OAM data, the business datum in original 8 service queues is sent.Industry in this 8 service queues
Data of being engaged in are sent according to original scheduling mode, do not have any influence to OAM data.Specific sending method is as shown in Figure 5.
OAM data in this way is always after receiving the authorized window of OLT, so that it may send.That is, OAM data is first
What the time sent.
Fig. 7 is the flow chart of the preferential sending method of OAM data of list LLID according to an embodiment of the present invention, as shown in fig. 7,
The process the following steps are included:
OAM data is stored in dedicated OAM queue by step S702.
OAM data is stored in dedicated OAM queue, is updated according to the data in OAM queue and highest-priority queue
The report value of highest-priority queue, such Report frame is by the highest-priority queue and remaining 7 business after reconstructing
Queue is constituted, i.e., Report frame is still made of 8 queues.It, will when the Report frame that ONU acquires OLT sends license
The Report frame is sent to OLT.At this point, in Report frame highest-priority queue report value, be to have contained OAM data
Size.
Step S704 distributes time window.
OLT distributes to the corresponding LLID time window size of the ONU according to the report value of the ONU Report frame sent.?
In current agreement, without the time window size of specific queue, the total size of the time window of only entire LLID.
Step S706, the preferential OAM data sent in OAM queue.
After ONU gets the time window of OLT, 9 queue situations of LLID are checked, according to the dispatching party of strict priority
Formula (Strict Priority, abbreviation SP) sends OAM data.That is, being sent out at first if OAM queue has OAM data
Send the OAM data in OAM queue.When OAM queue has not had data, other business are sent according still further to original scheduling mode
Data.
From above-mentioned transmission process as it can be seen that OAM is always sent at the first time, while the generation of Report frame also accords with completely
Close protocol requirement.
Example IV
Fig. 8 is the flow chart of the preferential sending method of OAM data of more LLID according to an embodiment of the present invention.With single LLID's
Preferential sending device is the same, and each LLID has a dedicated OAM queue.The scheduling mode of each OAM queue and single
LLID is same, and specific implementation step is similar with list LLID, as shown in figure 8, the process includes:
Step S802 reports the Report frame of corresponding LLID to OLT.
Wherein, the size of OAM data, embodies in highest-priority queue, naturally it is also possible to be embodied in other business teams
In column.
Step S804, OLT distribute time window.
OLT can distribute to corresponding LLID time window according to the report value of the ONU Report frame sent.
Step S806, preferentially sends OAM data.
After ONU gets corresponding LLID window data, the queue situation of corresponding LLID is checked.It is preferential with single LLID
Sending method is the same, always first sends OAM data.
Step S808 judges whether there is next LLID.
If there is next LLID, S802 is thened follow the steps, this process is otherwise terminated.
Embodiment five
Fig. 9 is the structural block diagram of the preferential sending device of OAM data of list LLID according to an embodiment of the present invention, such as Fig. 9 institute
Show, which includes service queue 40, OAM queue 50, Sche60 and SP70.
Service queue 40 is for storing business datum comprising 8 queues: queue 0 to queue 7.Queue 0 is into queue 7
Data output queue is generated after Sche60.
OAM queue 50 is for storing business datum.OAM queue 50 be it is essential in the present embodiment, than others
Service queue 40 has higher priority, to ensure that OAM can sent at the first time.OAM data enters OAM
After queue 50, local Report content frame is updated.That is, when generating Report frame, OAM queue is added to business team
Column above, ensure that the embodiment of the present invention without prejudice to EPON agreement.When OLT allow send when, will be in newest Report frame
Hold report to get on.
After getting the authorized window of OLT, the output queue of OAM queue 50 and Sche60 output generates newly after SP70
Output queue, send the new output queue.In new output queue, OAM data is preferentially sent.Wherein, Sche60 and
SP70 is equivalent to the sending module 126 in Fig. 4.
Embodiment six
Figure 10 is the structural block diagram of the preferential sending device of OAM data of more LLID according to an embodiment of the present invention, such as Figure 10
Shown, which includes 8 LLID, LLID0 to LLID8.Each LLID includes service queue 40 and OAM queue 50, and business
Queue 40 includes 8 queues again.In the following, guaranteeing due to having independent OAM queue again below each LLID more LLID the case where
The OAM message of each LLID is preferentially sent.
The sending method class of the preferential sending device of OAM data of the preferential sending device of the OAM data of more LLID and list LLID
Seemingly, details are not described herein again.
It can be seen from the above description that the present invention realizes following technical effect: OAM data is always at first
Between be transmitted, and support 8 road LLID.Guarantee that Report frame can properly generate simultaneously, current EPON association will not be violated
View requires.In addition, the embodiment of the present invention does not need individually to give OAM Information independent LLID, it ensure that 8 road LLID can be simultaneously
It supports multiple business, provides most efficient QOS service.
Obviously, those skilled in the art should be understood that each module of the above invention or each step can be with general
Computing device realize that they can be concentrated on a single computing device, or be distributed in multiple computing devices and formed
Network on, optionally, they can be realized with the program code that computing device can perform, it is thus possible to which they are stored
It is performed by computing device in the storage device, and in some cases, it can be to be different from shown in sequence execution herein
Out or description the step of, perhaps they are fabricated to each integrated circuit modules or by them multiple modules or
Step is fabricated to single integrated circuit module to realize.In this way, the present invention is not limited to any specific hardware and softwares to combine.
The foregoing is only a preferred embodiment of the present invention, is not intended to restrict the invention, for the skill of this field
For art personnel, the invention may be variously modified and varied.All within the spirits and principles of the present invention, made any to repair
Change, equivalent replacement, improvement etc., should all be included in the protection scope of the present invention.