Background technology
ONU (Optical Network Unit, optical network unit) belong to PON (Passive Optical Network,
Passive optical network) system the person of being managed.ONU is the implementor of PON system data service configuration;User is in the network management software
Or OLT (Optical Line Terminal, optical line terminal) order line, the configuration to ONU is issued, ONU parses these and matches somebody with somebody
Put, and it is come into force on software and hardware.Data service configuration refers to that the data service to user is done according to special key words
Definition, classification, and the data to meeting this classification make corresponding modification, the configuration of forwarding strategy;Such as vlan 100, port
1 bag, will allow it to pass through with limit priority.Data service configuration includes the configuration to software channel and hardware corridor,
Wherein, after software channel refers to that data packet reaches ONU, CPU is trapped, by the processing driving processing of operating system network bag, then
ONU physical ports are sent to, this passage sent from ONU.Hardware corridor refers to that data packet reaches ONU receiving ports,
The rule of data packet matched ONU network processing units, after being handled according to rule, without CPU, is directly forwarded by related port
The passage gone out.
At present, usual software data configuration and hardware data configuration are not same interfaces;This causes for a user
It is the configuration of a function, two functional configuration is corresponding with inside ONU, data definition confusion causes interface chaotic, whole system
Interface of uniting is unintelligible.Software data business configuration is often arbitrarily interted in code at the same time, is arbitrarily changed by programmer, and configuration comes
Source is parsed by user configuration.Although this makes upper layer software (applications) (refer in ONU software systems, belong to configuration management agreement
This layer of software, such as management agreement OAM, TR069, OMCI of international standard etc.) logic is simpler.But also cause software
Passage and hardware corridor are likely to occur confusion and mistake inconsistent, and then that trigger actual data traffic in data service configuration
Disposition.
In consideration of it, how to ensure that the uniformity of software channel and hardware corridor in data service configuration becomes this area
Technical staff's urgent problem to be solved.
The content of the invention
In view of the foregoing deficiencies of prior art, it is an object of the invention to provide a kind of data service collocation method,
System and ONU equipment, for solving in the prior art since software channel and hardware corridor may go out in data service configuration
It is existing inconsistent and trigger actual data traffic chaotic and the problem of error handle.
In order to achieve the above objects and other related objects, the present invention provides a kind of data service collocation method, applied to ONU
In equipment, the data service collocation method includes:The configuration of data service is set by a default business configuration interface
Information;Realize that the data service is matched somebody with somebody in software channel and hardware corridor at the same time according to the configuration information of the data service
Put.
Alternatively, the configuration information of the data service include processing type, it is described processing type include create, change with
And delete.
Alternatively, the configuration information of the data service further includes source port, handles type, input data parameter, output
One kind in data parameters, and destination interface or destination queue.
Alternatively, the number is realized in software channel and hardware corridor according to the configuration information of the data service at the same time
Include according to the specific implementation of business configuration:Corresponding interface function is called according to different processing types, the interface function is real
The now data service configuration to software channel and hardware corridor.
Alternatively, the interface function is realized in hardware abstraction layer.
The present invention provides a kind of data service configuration system, and applied in ONU equipment, the data service configures system bag
Include:Data service configuration module, for setting the configuration information of data service by a default business configuration interface;Business
Module is realized in configuration, is connected with the data service configuration module, is existed at the same time for the configuration information according to the data service
Software channel and hardware corridor realize the data service configuration.
Alternatively, the configuration information of the data service include processing type, it is described processing type include create, change with
And delete.
Alternatively, the configuration information of the data service further includes source port, handles type, input data parameter, output
One kind in data parameters, and destination interface or destination queue.
Alternatively, the number is realized in software channel and hardware corridor according to the configuration information of the data service at the same time
Include according to the specific implementation of business configuration:Corresponding interface function is called according to different processing types, the interface function is real
The now data service configuration to software channel and hardware corridor.
Alternatively, the interface function is realized in hardware abstraction layer.
The present invention also provides a kind of ONU equipment, the ONU equipment includes data service as described above configuration system.
As described above, a kind of data service collocation method, system and the ONU equipment of the present invention, have the advantages that:
It can solve in the prior art since software channel and hardware corridor are likely to occur inconsistent in data service configuration and trigger
The problem of actual data traffic confusion and error handle, ensure that software channel and hardware corridor have one in data service configuration
Cause property, avoids the confusion and error handling scenarios of actual data traffic.
Embodiment
Illustrate embodiments of the present invention below by way of specific instantiation, those skilled in the art can be by this specification
Disclosed content understands other advantages and effect of the present invention easily.The present invention can also pass through in addition different specific realities
The mode of applying is embodied or practiced, the various details in this specification can also be based on different viewpoints with application, without departing from
Various modifications or alterations are carried out under the spirit of the present invention.
It should be noted that the diagram provided in the present embodiment only illustrates the basic conception of the present invention in a schematic way,
Then in schema only display with it is of the invention in related component rather than component count, shape and size during according to actual implementation paint
System, kenel, quantity and the ratio of each component can be a kind of random change during its actual implementation, and its assembly layout kenel also may be used
Can be increasingly complex.
The present invention provides a kind of data service collocation method, applied in ONU equipment.In one embodiment, such as Fig. 1 institutes
Show, the data service collocation method includes:
Step S1, the configuration information of data service is set by a default business configuration interface.In one embodiment
In, the configuration information of the data service includes processing type, and the processing type includes establishment, modification and deletes.It is described
The configuration information of data service further includes source port, handles type, input data parameter, output data parameter, and destination
One kind in mouth or destination queue.The configuration information of the data service is set according to the configuration requirement of user.The data industry
The configuration information of business can pass through data structure definition and transmission.Shown in one of the data structure is defined as follows:
{
Source port;
Input parameter (2 layer data parameters, 3 layer data parameters);
Handle type (modification, abandons);
Output parameter (2 layer data parameters, 3 layer data parameters);
Purpose (port, queue);
}CDATA;
Step S2, the number is realized according to the configuration information of the data service in software channel and hardware corridor at the same time
According to business configuration.Specifically, institute is realized in software channel and hardware corridor according to the configuration information of the data service at the same time
Stating the specific implementation of data service configuration includes:Corresponding interface function, the interface letter are called according to different processing types
Number realizes the data service configuration to software channel and hardware corridor.In one embodiment, the interface function exists
Hardware abstraction layer is realized.Interface function is positioned at hardware abstraction layer (HAL), concrete function can be allowed to come into force in hardware corridor also
It is transparent to configuration interface layer in software channel, when upper-layer configured interface layer need not be concerned about that function is on hardware corridor or soft
Realized on part software, it is only necessary to by calling HAL layer interfaces, data configuration is issued.In one embodiment, the place
Managing type includes creating, change and deleting.The interface function corresponds to different processing types and includes:Create data channel
Interface, modification data channel interface and deleting data path interface.Shown in one of the interface function is defined as follows:
HAL_createDataChannel(CDATA*):Create data channel interface
HAL_modifyDataChannel(CDATA*):Change data channel interface
HAL_deleteDataChannel(CDATA*):Deleting data path interface
In one embodiment, as shown in Fig. 2, user issues data channel configuration, shown business by business configuration layer
Configuration layer provides default business configuration interface, and the data channel configuration issued includes the configuration information of data service.
Data (i.e. the configuration information of data service) renewal is arrived hardware channel unit by system, and institute's registration is realized by hardware channel unit
According to service configuration information hardware configuration database renewal.System arrives data (i.e. the configuration information of data service) renewal soft
Part channel unit, by data service configuration information shown in the realization of software channel unit in the renewal of software configurations database.This
Method can first update hardware corridor with renewal software channel configuration is postponed, and it is hard with renewal is postponed can also first to update software channel
Part passage configures.
In one embodiment, the specific example one of the data service collocation method is as follows:User data service configures
It is required that it is:All data packet transparent transmissions on port 1;This method will create a hardware rule, make 1 all data packets of port saturating
Pass;At the same time in software channel processing, the bag all to port 1, does not make an amendment, forwarding of remaining untouched.The data service is matched somebody with somebody
The specific example two for putting method is as follows:Data service customers configuration requirement is:The data packet of vlan 100 on port 2, conversion
For vlan 200, the highest-priority queue of data feedback channel 0 is mapped to;This method will create a hardware rule, on port 2
All vlan are 100 data packets, and regular action is that modification vlan is 200, and the highest for being mapped to data feedback channel 0 is excellent
First level queue.At the same time in software channel processing, vlan is revised as by the data packet that is 100 to vlan all on port 2
200, and it is sent to the highest-priority queue of data feedback channel 0.
The present invention provides a kind of data service configuration system, applied in ONU equipment.In one embodiment, such as Fig. 3 institutes
To show, the data service configuration system 1 includes data service configuration module 11 and business configuration realizes module 12, wherein:
Data service configuration module 11 is used to match somebody with somebody confidence by what a default business configuration interface set data service
Breath.In one embodiment, the configuration information of the data service includes processing type, and the processing type includes creating, repaiies
Change and delete.The configuration information of the data service further includes source port, handles type, input data parameter, output data
One kind in parameter, and destination interface or destination queue.The configuration information of the data service is according to the configuration requirement of user
Set.The configuration information of the data service can pass through data structure definition and transmission.One of the data structure is specific
Shown in being defined as follows:
{
Source port;
Input parameter (2 layer data parameters, 3 layer data parameters);
Handle type (modification, abandons);
Output parameter (2 layer data parameters, 3 layer data parameters);
Purpose (port, queue);
}CDATA;
Business configuration realizes that module 12 is connected with the data service configuration module 11, for according to the data service
Configuration information realizes the data service configuration in software channel and hardware corridor at the same time.Specifically, according to the data industry
The specific implementation that the configuration information of business realizes the data service configuration in software channel and hardware corridor at the same time includes:According to
Different processing types calls corresponding interface function, and the interface function is realized to described in software channel and hardware corridor
Data service configures.In one embodiment, the interface function is realized in hardware abstraction layer.Interface function is positioned at hardware
Level of abstraction (HAL), can allow concrete function to come into force transparent to configuration interface layer on hardware corridor or software channel, upper strata is matched somebody with somebody
Function need not be concerned about when putting interface layer to be realized on hardware corridor or on software, it is only necessary to is connect by calling HAL layers
Mouthful, data configuration is issued.In one embodiment, the processing type includes creating, change and deleting.It is described to connect
Mouth function corresponds to different processing types and includes:Create data channel interface, modification data channel interface and delete data
Channel interface.Shown in one of the interface function is defined as follows:
HAL_createDataChannel(CDATA*):Create data channel interface
HAL_modifyDataChannel(CDATA*):Change data channel interface
HAL_deleteDataChannel(CDATA*):Deleting data path interface
In one embodiment, as shown in figure 4, the configuration interface module (i.e. data service configuration module 11) sets number
According to the configuration information (Data) of business, the configuration information (Data) of data service is passed into business configuration and realizes module 12.Industry
Business configuration realizes that module 12 includes the unified interface positioned at hardware abstraction layer, and the interface function provided by the unified interface is realized
The data service configuration is realized in software channel and hardware corridor, i.e., passes the configuration information (Data) of data service respectively
Pass hardware channel unit and software channel unit.By data service configuration information shown in the realization of software channel unit soft
The renewal of part configuration database;By hardware channel unit realize shown in data service configuration information in hardware configuration database
Renewal.
The present invention also provides a kind of ONU equipment, the ONU equipment includes data service as described above configuration system 1.
In one embodiment, the ONU equipment can be the configuration data of hardware corridor and software channel passing through unified interface
Keep complete synchronous.So that data message is come according to consistent rule
Processing.In one embodiment, the ONU equipment configures the HAL layer interfaces and data knot of the offer of system 1 by data service
Structure, HAL layer interfaces are realized, configuration data are distributed respectively in hardware corridor and software channel, to keep the fully synchronized of data.
In conclusion a kind of data service collocation method, system and ONU equipment provided by the invention can solve existing skill
Since software channel and hardware corridor are likely to occur inconsistent in data service configuration and trigger actual data traffic to mix in art
The problem of random and error handle, ensure software and hardware passage, has uniformity in data service configuration, avoids real data
The confusion and error handling scenarios of business.So the present invention effectively overcomes various shortcoming of the prior art and has height and produce
Industry utility value.
The above-described embodiments merely illustrate the principles and effects of the present invention, not for the limitation present invention.It is any ripe
Know the personage of this technology all can carry out modifications and changes under the spirit and scope without prejudice to the present invention to above-described embodiment.Cause
This, those of ordinary skill in the art is complete without departing from disclosed spirit and institute under technological thought such as
Into all equivalent modifications or change, should by the present invention claim be covered.