CN103731332B - Master-slave communication method and OLT system - Google Patents
Master-slave communication method and OLT system Download PDFInfo
- Publication number
- CN103731332B CN103731332B CN201210388687.1A CN201210388687A CN103731332B CN 103731332 B CN103731332 B CN 103731332B CN 201210388687 A CN201210388687 A CN 201210388687A CN 103731332 B CN103731332 B CN 103731332B
- Authority
- CN
- China
- Prior art keywords
- master
- data
- service board
- main control
- control unit
- 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.)
- Active
Links
Landscapes
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The invention discloses a kind of master-slave communication method and OLT systems.The master-slave communication method is comprising steps of S1, the OLT system main control unit a configuration data is encapsulated with TLV format in a data packet;S2, the main control unit send the data packet to a service board;S3, the service board configuration data is removed from the data packet.The present invention also provides a kind of OLT systems using the master-slave communication method.The configuration data of TLV format is added in master-slave communication method and OLT system of the invention by using the data content in message so that group packet mode flexibly, it is simple and convenient for extension.
Description
Technical field
The present invention relates to a kind of master-slave communication method and use the OLT system of the master-slave communication method.
Background technique
Privately owned communication protocol is needed to configure between the main control unit and service board of EPON rack OLT system, it can by the agreement
To realize control and management of the main control unit to service board, guarantee the reliable and stable operation of distributed EPON system.
Therefore the realization of the privately owned communication protocol of most of EPON system at present, substantially using privately owned association, respective producer
View group packet mode.And the common practice of privately owned communication protocol described in the prior art is some configurations ginseng for generating main control unit
Number is fixed to certain field in privately owned communication protocol message, for example is configured with 3 parameters: Data1, Data2, Data3, these three
Parameter is to need specific position of the agreement into message, and stipulated that specific length in advance.And use agreement message certain bits
The group packet mode set, can make group packet mode excessively complicated, be unfavorable for understanding and promote.
Summary of the invention
The technical problem to be solved by the present invention is in order to overcome in the prior art OLT system group between main control unit and service board
Packet mode is excessively complicated, is unfavorable for the defect for understanding and promoting, and provides a kind of master-slave communication method and OLT system, by using
The configuration data that TLV format is added in the data content of message make group packet mode flexibly, it is simple and convenient for extension.
The present invention is to solve above-mentioned technical problem by following technical proposals:
The present invention provides a kind of master-slave communication methods, are used for OLT(optical line terminal) system, its main feature is that, the master
From communication means the following steps are included:
S1, the OLT system main control unit a configuration data is encapsulated with TLV format in a data packet;
S2, the main control unit send the data packet to a service board;
S3, the service board configuration data is removed from the data packet.
The main control unit of the OLT system is responsible for saving all configuration informations in OLT system and is responsible for all communication datas
Convergence, the service board of the OLT system is responsible for the access of communication data, and converts optical signals into the transmission of ether data message
To main control unit, while and responsible channel management.
The TLV format is one kind of BER Basic Encoding Rules, full name Tag(label), Length(length) and Value
(value).In the routing protocol of IS-IS(Intermediate System-to-Intermediate System) in data communication field, the T field in TLV format
Indicate that type of message, L field indicate that message length, V field are often used to store the content of message.
Preferably, the step S1Are as follows:
The main control unit of the OLT system encapsulates the configuration data in the data portion of the data packet.
Since additional transmitted configuration data will be needed to encapsulate as the filling of the data content of data packet to described in the present invention
Data packet, so as to avoid the storage part for redefining configuration data in the packet.So also simplifying the knot of data packet
Structure.
Preferably, the step S2Are as follows:
The main control unit passes through socket(socket) data packet is sent to the service board.
In addition to this, the present invention in be not intended to limit can be used between main control unit and service board data transmission interface or
Agreement, as long as those skilled in the art can be used arbitrarily so can be realized the data interaction between main control unit and service board
Data transmission interface or agreement.
Preferably, the step S3It is further comprising the steps of afterwards:
Configuration based on service board described in the configuration data management.I.e. heretofore described service board is parsing data
After configuration data in packet, so that it may realize the configuration management of the specific business of service board.
Preferably, the step S3It is further comprising the steps of afterwards:
The service board sends a feedback data packet to the main control unit.
Heretofore described service board can pass through the shapes such as data packet after the configuration management that success or failure realizes business
Formula informs the success or failure of main control unit configuration concrete configuration, consequently facilitating further management of the main control unit to service board.
Preferably, the data packet is UDP(User Datagram Protocol) data message.
Preferably, the UDP message message includes in Cmd ID, Session ID, Ack ID, Option ID and data
Hold.
The Cmd ID, Session ID, Ack ID, Option ID and data content are that the UDP message message of composition is each
The structure of a content, the UDP message message is the well-known technique of those skilled in the art, so being no longer described in detail here.
Preferably, the step S1Are as follows:
A TLV Number parameter is added in the main control unit of the OLT system in the data content of the UDP message message
With multiple TLV contents including the configuration data.
Wherein the TLV Number parameter is used to identify the number of TLV content in the data content, thus service board
When parsing the data content portion, the quantity of the TLV content can be known.
The TLV content contains specific configuration data, due to including Tag, Length and Value in TLV.So industry
Business disk can form a prompt judgement out specific business content configuration and management.
Preferably, the step S3Are as follows:
The service board is read based on the TLV Number parameter of the UDP message message comprising described in configuration data
TLV content.
Preferably, the step S3After further comprise the steps of:
Based on the configuration of service board described in the configuration data management, the service board sends a feedback UDP message message
To the main control unit.
The present invention provides a kind of OLT system, the OLT system includes a main control unit and one or more service boards,
Feature is that master-slave communication method as described above is used between the main control unit and the service board.
Preferably, service board is EPON(ethernet passive optical network) disk or GPON(Gigabit Passive Optical Network) disk.
On the basis of common knowledge of the art, above-mentioned each optimum condition, can any combination to get each preferable reality of the present invention
Example.
The positive effect of the present invention is that:
The configuration data of TLV format is added master-slave communication method of the invention by using the data content in message.I.e.
For one type of parameter definition of each configuration data, then added using the mode of triple mode (Type, Length, Data)
It is added in message, without providing some parameter to specific position.So that group packet mode flexibly, it is simple and be convenient for
Extension.
Detailed description of the invention
Fig. 1 is that the present invention is preferably communication flow diagram between the main control unit and service board of embodiment.
Specific embodiment
The present invention is further illustrated below by the mode of embodiment, but does not therefore limit the present invention to the reality
It applies among a range.
It include a main control unit and a service board in the OLT system of the present embodiment, wherein the service board can be OLT system
Related EPON disk or GPON disk.The EPON disk and GPON disk are each responsible for the access of EPON and GPON communication data, and
Convert optical signals into ether data message and send main control unit to, while and responsible OLT system in ONU(optical node) channel
Management.
And according to the type of business of actual use or it can also need to increase service board in the OLT system of the present embodiment
Quantity.
Configuration data is filled into message by main control unit described in the present embodiment by the format of TLV, with realization group packet
Flexibly and extend.The lattice of one layer of TLV are encapsulated i.e. in the present embodiment in the data content of the UDP message packet of the main control unit group packet
Configuration data is sent UDP number of the format by configuration data for encapsulating TLV by formula by socket between main control unit and service board
It is in communication with each other according to message to realize, service board, which receives, will configure number for the format for separating TLV after the UDP message message of opposite end
According to by parsing configuration data content, to realize the configuration management of specific business.
Below by the communication process shown in Fig. 1, illustrated between the embodiment of the present invention main control unit and service board.
Step 1, the OLT system main control unit TLV Number is added in the data content of the UDP message message
Parameter and TLV content including the configuration data.
Wherein the UDP datagram text includes Cmd ID, Session ID, Ack ID, Option ID and data content.
CMD ID is order ID, and each business configuration has a unique order ID, and system can be accurate according to the ID
Identify the order.
Order ID described in the present embodiment is in BM(Board Manage, panel management) module definition, other business modules
It can quote.Following definition format can be used:
The Session ID is session id, in the present embodiment for be BM module be every order temporarily generate it is unique
Mark needs one session id of dynamic generation when BM module group packet is sent, and then passes through MSC(master-slave communication) it is sent to business
Disk need to receive response packet, according to the session id responded in packet with the session id, the BM module when service board has handled response
Confirm the state of transmitting order to lower levels.
The ACK ID of the present embodiment is response ID, which is used to carry the return value of response message, is transported under main control unit
When setting, service board is handled according to the configuration issued, is filled into the field for the result of processing, is returned to main control unit,
The case where main control unit knows configuration according to the field and result.
The field of the embodiment of the present invention Option ID is Option Field, for indicating the type of the message, defines generation
Code is as follows:
The TLV Number parameter is used to identify the number of TLV content in the data content, so that service board is solving
When analysing the data content portion, the quantity of the TLV content can be known.T field in TLV format indicates type of message, L
Field indicates that message length, V field are often used to store the content of message.
I.e. the parameter field of TLV Number described in the present embodiment is for indicating the number of TLV parameter in message, according to this
Field can be convenient the content for parsing TLV field
The TLV content contains specific configuration data, due to including Tag, Length and Value in TLV.So industry
Business disk can form a prompt judgement out specific business content configuration and management.
The code configuration of TLV content described in the present embodiment is as follows:
Step 2, the main control unit sends the data packet to the service board by socket.
Step 3, the service board is read based on the TLV Number parameter of the UDP message message comprising configuration data
The TLV content.
Step 4, the configuration based on service board described in the configuration data management, the service board send a feedback UDP number
According to message to the main control unit.
Although specific embodiments of the present invention have been described above, it will be appreciated by those of skill in the art that these
It is merely illustrative of, protection scope of the present invention is defined by the appended claims.Those skilled in the art is not carrying on the back
Under the premise of from the principle and substance of the present invention, many changes and modifications may be made, but these are changed
Protection scope of the present invention is each fallen with modification.
Claims (8)
1. a kind of master-slave communication method, be used for OLT system, which is characterized in that the master-slave communication method the following steps are included:
S1, the OLT system main control unit a configuration data is encapsulated with TLV format in a data packet;
S2, the main control unit send the data packet to a service board;
S3, the service board configuration data is removed from the data packet;
The data packet is UDP message message;
The UDP message message includes data content;The step S1Are as follows:
TLVNumber parameter and multiple packets is added in the main control unit of the OLT system in the data content of the UDP message message
The TLV content of the configuration data is included, the TLV Number parameter is used to identify of TLV content in the data content
Number, so that service board when parsing the data content portion, can know the quantity of the TLV content;
The service board is read in the TLV comprising configuration data based on the TLV Number parameter of the UDP message message
Hold.
2. master-slave communication method as described in claim 1, which is characterized in that the step S1Are as follows:
The main control unit of the OLT system encapsulates the configuration data in the data portion of the data packet.
3. master-slave communication method as described in claim 1, which is characterized in that the step S2Are as follows:
The main control unit sends the data packet to the service board by socket.
4. master-slave communication method as described in claim 1, which is characterized in that the step S3It is further comprising the steps of afterwards:
Configuration based on service board described in the configuration data management.
5. master-slave communication method as claimed in claim 4, which is characterized in that the step S3It is further comprising the steps of afterwards:
The service board sends a feedback data packet to the main control unit.
6. master-slave communication method as described in claim 1, which is characterized in that the UDP message message further include Cmd ID,
Session ID、Ack ID、Option ID。
7. master-slave communication method as described in claim 1, which is characterized in that the step S3After further comprise the steps of: based on described
The configuration of service board described in configuration data management, the service board send a feedback UDP message message to the main control unit.
8. a kind of OLT system, the OLT system includes a main control unit and one or more service boards, which is characterized in that the master
It manipulates stock quotations between the service board using such as master-slave communication method of any of claims 1-7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210388687.1A CN103731332B (en) | 2012-10-12 | 2012-10-12 | Master-slave communication method and OLT system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210388687.1A CN103731332B (en) | 2012-10-12 | 2012-10-12 | Master-slave communication method and OLT system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103731332A CN103731332A (en) | 2014-04-16 |
CN103731332B true CN103731332B (en) | 2019-07-19 |
Family
ID=50455267
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201210388687.1A Active CN103731332B (en) | 2012-10-12 | 2012-10-12 | Master-slave communication method and OLT system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103731332B (en) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109121026B (en) * | 2018-06-28 | 2021-03-02 | 烽火通信科技股份有限公司 | Method and system for realizing VOLT (Voice over Internet protocol) based on logic port |
CN109245985B (en) * | 2018-08-24 | 2020-12-29 | 烽火通信科技股份有限公司 | Communication method and system between single disks in equipment |
CN109067919A (en) * | 2018-09-26 | 2018-12-21 | 杭州斯凯网络科技有限公司 | The method of fast network request is realized under 2G network state |
CN113556404A (en) * | 2021-08-03 | 2021-10-26 | 广东九博科技股份有限公司 | Communication method and system between single disks in equipment |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1897497A (en) * | 2006-05-16 | 2007-01-17 | 中国电信股份有限公司 | Expand operation managing maintenance-ability discovery in Ethernet non-light source network |
CN101516047A (en) * | 2009-04-03 | 2009-08-26 | 烽火通信科技股份有限公司 | ONU automatic upgrading method in EPON access system |
CN101621399A (en) * | 2008-06-30 | 2010-01-06 | 华为技术有限公司 | Management method and system of passive optical network as well as optical line terminal |
WO2010003363A1 (en) * | 2008-07-07 | 2010-01-14 | Huawei Technologies Co., Ltd. | Ethernet media access control organization specific extension |
CN101841747A (en) * | 2010-05-12 | 2010-09-22 | 烽火通信科技股份有限公司 | Plugboard type FTTB (Fiber To The Building) type ONU (Optical Network Unit) and method for realizing voice service |
-
2012
- 2012-10-12 CN CN201210388687.1A patent/CN103731332B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1897497A (en) * | 2006-05-16 | 2007-01-17 | 中国电信股份有限公司 | Expand operation managing maintenance-ability discovery in Ethernet non-light source network |
CN101621399A (en) * | 2008-06-30 | 2010-01-06 | 华为技术有限公司 | Management method and system of passive optical network as well as optical line terminal |
WO2010003363A1 (en) * | 2008-07-07 | 2010-01-14 | Huawei Technologies Co., Ltd. | Ethernet media access control organization specific extension |
CN101516047A (en) * | 2009-04-03 | 2009-08-26 | 烽火通信科技股份有限公司 | ONU automatic upgrading method in EPON access system |
CN101841747A (en) * | 2010-05-12 | 2010-09-22 | 烽火通信科技股份有限公司 | Plugboard type FTTB (Fiber To The Building) type ONU (Optical Network Unit) and method for realizing voice service |
Also Published As
Publication number | Publication date |
---|---|
CN103731332A (en) | 2014-04-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103731332B (en) | Master-slave communication method and OLT system | |
CN106134133B (en) | Tunneling time critical messages between substations over WAN | |
CN104937896B (en) | The processing method and transponder of address resolution protocol message, controller | |
WO2018210225A1 (en) | Method and device for automatically implementing ioam encapsulation, and storage medium | |
CN112492409B (en) | Service configuration method and device | |
CN104010049A (en) | Ethernet IP message packaging method based on SDN and network isolation and DHCP implementing method based on SDN | |
CN102891803B (en) | Congestion processing method and network device | |
CN109005557A (en) | A kind of time delay symmetry measurement method, device and system | |
US9473832B2 (en) | GCC0 tunneling over an OTN transport network | |
CN103828310A (en) | Method, system and equipment for finding link | |
CN104092790B (en) | Base station master-slave communication method and system | |
CN110381071A (en) | A kind of message transmitting method, device and send method, apparatus | |
CN110213756A (en) | A kind of data transmission method, device and its relevant device | |
US20130336129A1 (en) | Multipurpose Use of Delay Measurement Message Buffer for Software Processing of Delay Measurement Response | |
US20120163799A1 (en) | Method for Transmitting OAM Message and Processing Error in PON System | |
CN102647432A (en) | Authentication information transmission method, device and authentication middleware | |
CN106657377B (en) | A kind of WIA-PA/ interconnects manufacture network information service adapter and implementation method entirely | |
CN103748842A (en) | Method, device and route device for forwarding data packages | |
US10250477B2 (en) | Method and controller for announcing bandwidth of cluster system | |
CN111131213B (en) | Method for realizing R-GOOSE electric power message | |
WO2017193711A1 (en) | Data transmission method and device | |
CN102740170B (en) | Uplink and downlink transmission method of broadband optical access data | |
CN107343229A (en) | A kind of method of POTN service management | |
CN105763435A (en) | Multifunctional internet-of-thing gateway equipment | |
DE602007000835D1 (en) | On-chip system for connecting external function blocks with a single parameterizable communication protocol |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
EXSB | Decision made by sipo to initiate substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
TR01 | Transfer of patent right | ||
TR01 | Transfer of patent right |
Effective date of registration: 20201113 Address after: 221700 4-1-110-shop, Nanyuan new town, Fengxian County, Xuzhou City, Jiangsu Province Patentee after: Song Yixiao Address before: Songjiang District shihudong Town Tower Road 201617 min 579 Lane Shanghai No. -26 Patentee before: Phicomm (Shanghai) Co.,Ltd. |