CN104283892A - Passive optical network protocol stack value passing method - Google Patents
Passive optical network protocol stack value passing method Download PDFInfo
- Publication number
- CN104283892A CN104283892A CN201410585586.2A CN201410585586A CN104283892A CN 104283892 A CN104283892 A CN 104283892A CN 201410585586 A CN201410585586 A CN 201410585586A CN 104283892 A CN104283892 A CN 104283892A
- Authority
- CN
- China
- Prior art keywords
- protocol stack
- bottom layer
- layer driving
- oam protocol
- message
- 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.)
- Pending
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/02—Standardisation; Integration
- H04L41/0213—Standardised network management protocols, e.g. simple network management protocol [SNMP]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L69/00—Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
- H04L69/30—Definitions, standards or architectural aspects of layered protocol stacks
- H04L69/32—Architecture of open systems interconnection [OSI] 7-layer type protocol stacks, e.g. the interfaces between the data link level and the physical level
- H04L69/322—Intralayer communication protocols among peer entities or protocol data unit [PDU] definitions
- H04L69/324—Intralayer communication protocols among peer entities or protocol data unit [PDU] definitions in the data link layer [OSI layer 2], e.g. HDLC
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04Q—SELECTING
- H04Q11/00—Selecting arrangements for multiplex systems
- H04Q11/0001—Selecting arrangements for multiplex systems using optical switching
- H04Q11/0062—Network aspects
- H04Q11/0067—Provisions for optical access or distribution networks, e.g. Gigabit Ethernet Passive Optical Network (GE-PON), ATM-based Passive Optical Network (A-PON), PON-Ring
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Security & Cryptography (AREA)
- Computer And Data Communications (AREA)
Abstract
The invention provides a passive optical network protocol stack value passing method. The method includes the steps that a bottom layer driver directly calls data required by an upper layer OAM protocol stack through a hook function of a corresponding interface of the bottom layer driver, packages the data into a data message and directly sends the data message to the OAM protocol stack instead of forwarding the data message through an SUBSYSTEM or an HAL layer between the bottom layer driver and the OAM protocol stack. According to a message head analysis part of the OAM protocol stack, the bottom layer driver or the HAL layer analyzes the message head in the message sent by the OAM protocol stack and acquires the corresponding interface, on the bottom layer driver, of the required data, and therefore the hook function is set conveniently. After reading and processing the data message, the OAM protocol stack can directly send a reply message to the bottom layer driver. According to the passive optical network protocol stack value passing method, the processing position of the data message can be flexibly switched and efficiency is higher.
Description
Technical field
The present invention relates to network field, particularly a kind of value transfer of passive optical network protocol stack.
Background technology
The protocol stack of general webmaster class is often in order to manage ONU(optical network unit) equipment sets up, this protocol stack generally takes slow protocol, adopt simultaneously be based in ioctrl(and device driver to the function that equipment I/O passage manages) information access method.
But PON(passive optical-fiber network) the technology of protocol stack distinguish to some extent, the location of PON protocol stack is no doubt the protocol stack of webmaster class, but also contains the control to PON module equally, in order to maintain the Continued communication of PON link.Can say that PON protocol stack is not only the administration module of the clear data on a upper strata, his existence further comprises the management of many hardware aspects, is a critical protocol stack.
The pattern of this kind of data of current process, often by OAM(operation management maintain) and OMCI(ONT management control interface, wherein ONT is Optical Network Terminal) protocol stack, as the application on a pure upper strata independent of whole system, and then load when needing, utilize message to forward after concrete data are abstract by middle HAL layer (hardware abstraction layer).
The model of above-mentioned existing processing mode no doubt has very high advantage in the definition of structure, can by modularization and the program construction completely of working, but comparatively speaking, the shortcoming of this model is that adaptability is not strong, if it is inconsistent to be used for the mode of acquisition module between bottom layer driving and upper layer application, the value transfer of so traditional ioctl will opposite end mutually unreachable, data transmission procedure will be interrupted.
In order to maintain the information bottom layer driving of PON link and the unimpeded of pass data, a message mechanism must be kept between bottom layer driving and upper layer application, so under existing model, protocol stack is per second all has at least a data message can enter HAL layer after bottom layer driving obtains, again through HAL layer and SUBSYSTEM(connector parameter, be used to specify the entrance function of program) forwarding of system, transfer to the OAM protocol stack of the superiors, after processing, Zai Anyuan road returns.
But in fact, traditional ioctrl mechanism is generally all packaged, and only at outer setting interface, upper strata OAM protocol stack sends a message to bottom layer driving, after bottom layer driving receives such message, calls corresponding interface and obtains hardware parameter.Such method for bottom layer driving be not by ioctrl biography value in, just meet bottleneck: first need different physical layer interfaces to write in a structure, then such a structure is encapsulated, send a message to again in ioctrl, so just carried out three layers of transmission.And in the data for PON message itself, some data is do not need to read on upper strata, such as link maintenance, or the data of hardware vendor oneself definition, if also carry out overall package to it, repeat to read, by the efficiency of greatly loss system operation, waste a large amount of system resource.
Suppose the main control chip using some more powerful, then this phenomenon gives no cause for anxiety at all, and its powerful disposal ability enough completes the expense of these resources; But along with great amount of cost reduces the appearance of demand, the disposal ability of chip is more and more weak, if do not take some more efficient algorithms, cannot bear such resource overhead.
Summary of the invention
The object of the present invention is to provide a kind of value transfer of passive optical network protocol stack, solve the light essential information of certainly bottom layer driving and the interaction problems of upper layer application acquisition, improve and run treatment effeciency.
In order to achieve the above object, first technical scheme of the present invention is to provide a kind of value transfer of passive optical network protocol stack, wherein, adds hook function at the corresponding interface place of bottom layer driving;
When sending message to upper strata OAM protocol stack, bottom layer driving calls described hook function to obtain the data needed for the OAM protocol stack of described upper strata, and sends to described OAM protocol stack after the data encapsulation got is become data message.
Preferably, described value transfer also comprises: add the step of hook function at the corresponding interface place of bottom layer driving before, part is resolved according to the header of OAM protocol stack by described bottom layer driving, to OAM protocol stack the header sent in message resolve, know the interface that desired data is corresponding in bottom layer driving.
Preferably, described value transfer also comprises: add the step of hook function at the corresponding interface place of bottom layer driving before, part is resolved according to the header of OAM protocol stack by described HAL layer, to OAM protocol stack the header sent in message resolve, know desired data corresponding interface inform bottom layer driving in bottom layer driving.
Preferably, described value transfer also comprises: described OAM protocol stack sends a reply information to bottom layer driving after processing the data message read.
Second technical scheme of the present invention is to provide a kind of value transfer of passive optical network protocol stack, wherein comprises following steps:
S1, the header of OAM protocol stack is resolved partial replication portion be sent to bottom layer driving;
S2, OAM protocol stack sends message to bottom layer driving, to require to obtain desired data;
S3, bottom layer driving receipt message resolving header wherein, know desired data corresponding interface in bottom layer driving;
S4, add hook function at the corresponding interface place of bottom layer driving;
S5, bottom layer driving are called hook function and are obtained data needed for OAM protocol stack from the corresponding interface;
S6, bottom layer driving form data message after encapsulating the data obtained, and are sent to described OAM protocol stack.
Preferably, described OAM protocol stack, after processing the data message read, sends a reply information to bottom layer driving.
3rd technical scheme of the present invention is to provide a kind of value transfer of passive optical network protocol stack, wherein comprises following steps:
S1 ', the header of OAM protocol stack is resolved partial replication portion be sent to HAL layer;
S2 ', OAM protocol stack send message to HAL layer, require to obtain desired data from bottom layer driving;
S3 ', HAL layer receipt message resolving header wherein, know that desired data informs bottom layer driving after corresponding interface in bottom layer driving;
S4, add hook function at the corresponding interface place of bottom layer driving;
S5, bottom layer driving are called hook function and are obtained data needed for OAM protocol stack from the corresponding interface;
S6, bottom layer driving form data message after encapsulating the data obtained, and are directly sent to described OAM protocol stack.
Preferably, described OAM protocol stack, after processing the data message read, sends a reply information to bottom layer driving.
The value transfer of passive optical network protocol stack of the present invention, in equipment bottom layer driving or in HAL layer, data message is done and once slightly resolves, use hook function, in bottom layer driving, selectively call required interface, only need once to encapsulate, forming one can the performance data message of complete independently, so just need not forward, be read by upper layer application, directly reply.
Compared with existing best technique, the invention has the advantages that:
Efficiency of the present invention is higher, and can the process position of switch data message flexibly, does not affect design logic far away, does not need data to be processed for upper strata, initiatively abandon, will not read, can not make mistakes.
Accompanying drawing explanation
Fig. 1 is the system architecture schematic diagram of the value transfer being applicable to passive optical network protocol stack of the present invention;
Fig. 2, Fig. 3 are the flow chart of value transfer two embodiments of passive optical network protocol stack of the present invention respectively.
Embodiment
Below in conjunction with accompanying drawing, the specific embodiment of the present invention is described.
As shown in Figure 1, the value transfer of passive optical network protocol stack of the present invention, is applicable to following system architecture, wherein has successively: as the OAM protocol stack of upper layer application, SUBSYSTEM system, HAL layer, bottom layer driving.
As shown in Figure 2, described value transfer of the present invention, comprises following steps:
S1, the header of OAM protocol stack is resolved partial replication portion be sent to bottom layer driving;
S2, OAM protocol stack sends message to bottom layer driving, requires to obtain a certain or some data;
After S3, bottom layer driving receipt message, its header is resolved, know the interface that desired data is corresponding;
S4, add hook(hook at the corresponding interface place of bottom layer driving) function;
S5, needs to upper strata send message time, bottom layer driving calls hook function, directly calls desired data from the interface of correspondence; And data to be processed are not needed for upper strata, bottom layer driving is initiatively abandoned, and will not read;
Form data message after the desired data that S6, bottom layer driving obtain once encapsulates, do not need to forward and directly can be sent to the OAM protocol stack on upper strata by bottom layer driving.The OAM protocol stack on upper strata reads after data message processes, and directly can reply bottom layer driving.
As shown in Figure 3, the value transfer that the present invention is described in another embodiment, comprises following steps:
S1 ', the header of OAM protocol stack is resolved partial replication portion be sent to HAL layer;
S2 ', OAM protocol stack send message to HAL layer, require that bottom layer driving obtains a certain or some data;
After S3 ', HAL layer receipt message, its header is resolved, after knowing the interface that desired data is corresponding, inform bottom layer driving;
S4, add hook function at the corresponding interface place of bottom layer driving;
S5, needs to upper strata send message time, bottom layer driving calls hook function, directly calls desired data from the interface of correspondence;
The desired data that S6, bottom layer driving obtain once encapsulates the data message of rear formation, is directly sent to the OAM protocol stack on upper strata.
In one example, only need the linking status obtaining PON protocol stack, then wherein comprise:
Hook function was added before this at the corresponding interface of bottom layer driving:
void?ponReg_hook(void?*phook)
{
PonReg_hook?=?(PPonReg)?phook;
printk("PonReg_hook?=?%X\r\n",(unsigned?int)PonReg_hook);
}
Then, when sending message, bottom layer driving calls this hook function, the Link State value required for acquisition:
event?=?ponReg_hook(board_send_msg_handler);
Finally, bottom layer driving sends to upper layer application getting parameter value:
g_ponStatus?=?event;
It should be noted that, above-mentioned example not limits the parameter that can obtain in the present invention.In practical application, can also can transform by method of the present invention the protocol stack of self complete independently function for GPON module and other existence.
In sum, value transfer of the present invention, utilizes bottom layer driving to add hook function and slightly resolves message, and then directly obtaining needs the parameter called in upper layer application, just can reduce unnecessary message transmission in a large number, to promote the operating efficiency of OAM data.
Although content of the present invention has done detailed introduction by above preferred embodiment, will be appreciated that above-mentioned description should not be considered to limitation of the present invention.After those skilled in the art have read foregoing, for multiple amendment of the present invention and substitute will be all apparent.Therefore, protection scope of the present invention should be limited to the appended claims.
Claims (8)
1. a value transfer for passive optical network protocol stack, is characterized in that,
Hook function is added at the corresponding interface place of bottom layer driving;
When sending message to upper strata OAM protocol stack, bottom layer driving calls described hook function to obtain the data needed for the OAM protocol stack of described upper strata, and sends to described OAM protocol stack after the data encapsulation got is become data message.
2. value transfer as claimed in claim 1, it is characterized in that, also comprise: add the step of hook function at the corresponding interface place of bottom layer driving before, part is resolved according to the header of OAM protocol stack by described bottom layer driving, to OAM protocol stack the header sent in message resolve, know the interface that desired data is corresponding in bottom layer driving.
3. value transfer as claimed in claim 1, it is characterized in that, also comprise: add the step of hook function at the corresponding interface place of bottom layer driving before, part is resolved according to the header of OAM protocol stack by described HAL layer, to OAM protocol stack the header sent in message resolve, know desired data corresponding interface inform bottom layer driving in bottom layer driving.
4. value transfer as claimed in claim 1, is characterized in that, also comprise: described OAM protocol stack sends a reply information to bottom layer driving after processing the data message read.
5. a value transfer for passive optical network protocol stack, is characterized in that, comprises following steps:
S1, the header of OAM protocol stack is resolved partial replication portion be sent to bottom layer driving;
S2, OAM protocol stack sends message to bottom layer driving, to require to obtain desired data;
S3, bottom layer driving receipt message resolving header wherein, know desired data corresponding interface in bottom layer driving;
S4, add hook function at the corresponding interface place of bottom layer driving;
S5, bottom layer driving are called hook function and are obtained data needed for OAM protocol stack from the corresponding interface;
S6, bottom layer driving form data message after encapsulating the data obtained, and are sent to described OAM protocol stack.
6. value transfer as claimed in claim 5, is characterized in that,
Described OAM protocol stack, after processing the data message read, sends a reply information to bottom layer driving.
7. a value transfer for passive optical network protocol stack, is characterized in that, comprises following steps:
S1 ', the header of OAM protocol stack is resolved partial replication portion be sent to HAL layer;
S2 ', OAM protocol stack send message to HAL layer, require to obtain desired data from bottom layer driving;
S3 ', HAL layer receipt message resolving header wherein, know that desired data informs bottom layer driving after corresponding interface in bottom layer driving;
S4, add hook function at the corresponding interface place of bottom layer driving;
S5, bottom layer driving are called hook function and are obtained data needed for OAM protocol stack from the corresponding interface;
S6, bottom layer driving form data message after encapsulating the data obtained, and are directly sent to described OAM protocol stack.
8. value transfer as claimed in claim 7, is characterized in that,
Described OAM protocol stack, after processing the data message read, sends a reply information to bottom layer driving.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410585586.2A CN104283892A (en) | 2014-10-28 | 2014-10-28 | Passive optical network protocol stack value passing method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410585586.2A CN104283892A (en) | 2014-10-28 | 2014-10-28 | Passive optical network protocol stack value passing method |
Publications (1)
Publication Number | Publication Date |
---|---|
CN104283892A true CN104283892A (en) | 2015-01-14 |
Family
ID=52258374
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410585586.2A Pending CN104283892A (en) | 2014-10-28 | 2014-10-28 | Passive optical network protocol stack value passing method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104283892A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2021208834A1 (en) * | 2020-04-16 | 2021-10-21 | 长鑫存储技术有限公司 | Bottom layer drive forwarding method and multi-core system based on uefi |
CN115174442A (en) * | 2022-06-24 | 2022-10-11 | 硕橙(厦门)科技有限公司 | Multi-mode process data transmission method and device |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20090290868A1 (en) * | 2007-08-28 | 2009-11-26 | Huawei Technologies Co., Ltd. | Method, apparatus, and system for transmitting test data |
CN102664833A (en) * | 2012-05-03 | 2012-09-12 | 烽火通信科技股份有限公司 | Home gateway and method for analyzing user online behavior and monitoring network quality |
CN102790717A (en) * | 2012-06-01 | 2012-11-21 | 上海斐讯数据通信技术有限公司 | Method and system for obtaining control information in Ethernet data packets |
CN103716185A (en) * | 2013-12-17 | 2014-04-09 | 上海斐讯数据通信技术有限公司 | Passive optical network protocol stack accelerated processing method |
-
2014
- 2014-10-28 CN CN201410585586.2A patent/CN104283892A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20090290868A1 (en) * | 2007-08-28 | 2009-11-26 | Huawei Technologies Co., Ltd. | Method, apparatus, and system for transmitting test data |
CN102664833A (en) * | 2012-05-03 | 2012-09-12 | 烽火通信科技股份有限公司 | Home gateway and method for analyzing user online behavior and monitoring network quality |
CN102790717A (en) * | 2012-06-01 | 2012-11-21 | 上海斐讯数据通信技术有限公司 | Method and system for obtaining control information in Ethernet data packets |
CN103716185A (en) * | 2013-12-17 | 2014-04-09 | 上海斐讯数据通信技术有限公司 | Passive optical network protocol stack accelerated processing method |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2021208834A1 (en) * | 2020-04-16 | 2021-10-21 | 长鑫存储技术有限公司 | Bottom layer drive forwarding method and multi-core system based on uefi |
US11868783B2 (en) | 2020-04-16 | 2024-01-09 | Changxin Memory Technologies, Inc. | Method of underlying drive forwarding and multi-core system implemented based on UEFI |
CN115174442A (en) * | 2022-06-24 | 2022-10-11 | 硕橙(厦门)科技有限公司 | Multi-mode process data transmission method and device |
CN115174442B (en) * | 2022-06-24 | 2024-04-05 | 硕橙(厦门)科技有限公司 | Multi-mode process data transmission method and device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102902537B (en) | Based on the embedded type WEB MVC Development Framework of FastCGI and html template | |
CN100512194C (en) | Sending and receiving method and system for link aggregation method, device and MAC frame | |
CN102857505B (en) | A kind of Internet of Things data bus middleware system | |
CN102480335B (en) | A kind of sending method of business datum and system | |
CN104283817A (en) | Method for achieving communication of switching line card and logic line card and packet transmitting equipment | |
CN104333475A (en) | Network topology discovery method and system based on SDN | |
CN103023702A (en) | Method for processing batched management information bases (MIB) | |
CN111954100B (en) | Interface upgrading method and device and optical network unit management method and device | |
CN103595712B (en) | A kind of Web authentication method, apparatus and system | |
US20130325994A1 (en) | Ethernet communication system and method based on mmc/sd interface | |
CN104243198B (en) | A kind of network management and system based on network configuration protocol | |
CN104243298A (en) | Message control method and device | |
CN102546669B (en) | Data transmission method and device | |
CN104283892A (en) | Passive optical network protocol stack value passing method | |
CN1972276B (en) | A management method and system for protocol access | |
CN105306276A (en) | Software defined network based OAM protocol encapsulation method and system, and Ethernet passive optical network (EPON) access network | |
CN103533017A (en) | Service invoking method and system | |
CN101621528B (en) | Conversation system based on Ethernet switch cluster management and method for realizing conversation passage | |
WO2023208116A1 (en) | Management and control method and apparatus, communication device, and computer storage medium | |
CN103716185A (en) | Passive optical network protocol stack accelerated processing method | |
CN104378303A (en) | Method and system for forwarding multicast service, ONU and OLT | |
CN105763448A (en) | Message transmission method and device | |
EP3300384A1 (en) | Onu template generating method and device | |
CN112351355B (en) | Management method and system of ONU channel based on gPC | |
CN116418544A (en) | High-speed encryption and decryption engine and encryption and decryption implementation method |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20150114 |
|
WD01 | Invention patent application deemed withdrawn after publication |