CN105162634A - Processing method for receiving and transmitting OAM (Operation Administration and Maintenance) protocol packets in same thread - Google Patents

Processing method for receiving and transmitting OAM (Operation Administration and Maintenance) protocol packets in same thread Download PDF

Info

Publication number
CN105162634A
CN105162634A CN201510612577.2A CN201510612577A CN105162634A CN 105162634 A CN105162634 A CN 105162634A CN 201510612577 A CN201510612577 A CN 201510612577A CN 105162634 A CN105162634 A CN 105162634A
Authority
CN
China
Prior art keywords
oam protocol
protocol package
message
oam
request 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.)
Granted
Application number
CN201510612577.2A
Other languages
Chinese (zh)
Other versions
CN105162634B (en
Inventor
马丰玺
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Chengdu Guangda Hengji Communication Technology Co., Ltd
Original Assignee
Chengdu Guangda New Network Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Chengdu Guangda New Network Technology Co Ltd filed Critical Chengdu Guangda New Network Technology Co Ltd
Priority to CN201510612577.2A priority Critical patent/CN105162634B/en
Publication of CN105162634A publication Critical patent/CN105162634A/en
Application granted granted Critical
Publication of CN105162634B publication Critical patent/CN105162634B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/02Standardisation; Integration
    • H04L41/0213Standardised network management protocols, e.g. simple network management protocol [SNMP]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Communication Control (AREA)

Abstract

The invention relates to the field of configuration management of terminal equipment ONUs (Optical Network Units) by optical line terminals (OLTs), in particular to a processing method for receiving and transmitting OAM (Operation Administration and Maintenance) protocol packets in the same thread. According to the processing method for receiving and transmitting the OAM protocol packets in the same thread, all the OAM protocol packets are processed in the same thread. The method comprises the following steps: constructing the OAM protocol packets; transmitting the constructed OAM protocol packets; and resolving the received OAM protocol packets, wherein resolution processing of the received OAM protocol packets takes priority over construction of the transmitted OAM protocol packets and the like. According to the method, an OAM protocol packet processing thread, a message sending queue and a message receiving queue are created, and the OAM protocol packet processing thread is awakened through a signal transmission interface. In the OAM protocol packet processing thread, the OAM protocol packets are created and transmitted or received and resolved according to a request message in the message sending queue or the message receiving queue.

Description

The processing method of OAM protocol package is received and dispatched in same thread
Technical field
The present invention relates to the configuration management field of local side apparatus OLT to terminal equipment ONU, especially a kind of processing method of receiving and dispatching OAM protocol package in same thread.
Background technology
Local side apparatus OLT configuration management terminal equipment ONU is realized by mutual OAM protocol package.The path that transmission OAM protocol package and reception OAM protocol package are walked and direction are all different.So existing processing method is exactly the structure of process transmission OAM protocol package respectively in different threads and the parsing of reception OAM protocol massages.
In different threads, carry out processing the competition or conflict that just exist resource access.Synchronous and Exclusive resource is used for addressing this problem just to need to increase.Also the consumption of cpu resource will be increased.Add the complexity of process simultaneously, reduce the degree of controllability of risk.
Have stronger causalnexus between the OAM protocol package that local side apparatus OLT sends and the OAM protocol package received, the buffering receiving OAM protocol package always has size to limit.Destroying this causalnexus when carrying out asynchronism and concurrency process in different threads, may causing because exceeding buffer size, the OAM protocol package that should receive is lost.Increase and retransmit probability and more multiple resource consumption, efficiency reduces.Hidden danger increases, and risk increases.
Fig. 1 is to the schematic diagram that OAM protocol package processes respectively in two different threads.The structure of OAM protocol package and send the bag that thread is responsible for processing the structure of OAM protocol package when OLT device carries out acquisition of information or configuration management to ONU equipment relevant and deal with the work.The bag work for the treatment of that the Context resolution that OAM protocol package parsing thread is responsible for processing the OAM protocol package from ONU equipment that OLT device receives is correlated with.Can see from schematic diagram.These two threads are all independent operatings, participate in all separately obtaining CPU and run chance.Their operational relation is that asynchronism and concurrency runs.The order that they run and completely impartial operation chance can not be ensured.The OAM protocol package of these two thread process is all about administration configuration ONU.So probably there is the competition to shared resource shown in Fig. 1, need to increase the problem that synchronization and mutex mechanism solves competition.This adds increased the consumption of system resource.When dealing with improperly, also likely introduce potential unknown problem.Increase potential risks.
Summary of the invention
Technical problem to be solved by this invention is: for prior art Problems existing, a kind of processing method of receiving and dispatching OAM protocol package in same thread is provided, it processes all OAM protocol package in same OAM protocol package processing threads, comprise building and send OAM protocol package and resolve the OAM protocol package received, and the process of resolving the OAM protocol package received preferentially sends the structure etc. of OAM protocol package.
The technical solution used in the present invention is as follows:
The processing method of receiving and dispatching OAM protocol package in same thread comprises:
Step 1: create block type signal and can wake thread up, as OAM protocol package processing threads; Create and send message queue and receipt message queue, be respectively used to reception and send a request message and receive request message;
Step 2: request message is first put into corresponding message queue by message request thread, then sends signal to OAM protocol package processing threads, wakes OAM protocol package processing threads up.OAM protocol package processing threads is according to request message, carry out OAM protocol package create transmission or receive parsing, wherein request message refers to the message sent in message queue, for building OAM protocol package and sending to the message in ONU equipment or receipt message queue, they issue the OAM protocol package of OLT device for ONU equipment, and request OLT device carries out dissection process.
In described step 3, OAM protocol package processing threads carries out OAM protocol package establishment transmission or receives to resolve specifically comprising according to request message:
Step 21: when the process of OAM protocol package processing threads sends the request message of message queue, first judge whether there is the OAM protocol package received from ONU equipment in receipt message queue; If have, then perform step 22; Otherwise OAM protocol package processing threads creates and sends OAM protocol package to corresponding ONU equipment; When the request message of OAM protocol package processing threads process receipt message queue, then perform step 22; The request message wherein sending message queue is by the message sending information interface generation; The request message of receipt message queue is when sending OAM data bag to OLT device by ONU equipment, the message that OLT device bottom layer driving and interface produce;
Step 22:OAM protocol package processing threads resolves all OAM protocol package received.
The transmission information interface that described generation sends a request message is client.
In sum, owing to have employed technique scheme, the invention has the beneficial effects as follows:
Process transmitting-receiving OAM protocol package in same thread, eliminates the problem of competition to resource and access conflict.Eliminate the use of synchronization and mutex resource, also reduce the loss of cpu resource, the efficiency of system resource can be improved.Causalnexus according to the transmitting-receiving of OAM protocol package wraps the sequence arrangement and guarantee that process to transmitting-receiving, the OAM protocol package that can reduce greatly because receiving loses the re-transmission probability caused.Thus improve utilance and the efficiency of system resource.Lessen the hidden dangers, increase risk controllability.
Fig. 2 is to the schematic diagram that OAM protocol package processes in same thread.Because the process of transmitting-receiving OAM bag is all in same thread, just there is not the situation of two thread asynchronism and concurrencies process, the problem of the competition to resource can not being there is, also just need not use the synchronization and mutex resource of system, also eliminating the cpu resource because using these resource consumptions.Thus resource utilization and the efficiency of system can be improved to a certain extent.The order processing dissimilar OAM bag process just can be ensured: the OAM protocol package received has precedence over the process sending OAM protocol package in a thread.The arrangement of this processing sequence is the causalnexus according to existing between transmitting-receiving OAM protocol package, sends an OAM protocol package, will receive a corresponding response OAM protocol package.Suppress to send OAM protocol package excessive velocities, the problem that the OAM protocol package number that reduction receives exceeds buffering maximum and loses.Improve utilance and the efficiency of reliability and system resource.
Accompanying drawing explanation
Examples of the present invention will be described by way of reference to the accompanying drawings, wherein:
Fig. 1 is to the schematic diagram that OAM protocol package processes respectively in two different threads.
OAM protocol package process schematic diagram when Fig. 2 is an OLT device correspondence ONU equipment in a thread.
Embodiment
All features disclosed in this specification, or the step in disclosed all methods or process, except mutually exclusive feature and/or step, all can combine by any way.
Arbitrary feature disclosed in this specification (comprising any accessory claim, summary and accompanying drawing), unless specifically stated otherwise, all can be replaced by other equivalences or the alternative features with similar object.That is, unless specifically stated otherwise, each feature is an example in a series of equivalence or similar characteristics.
Bottom layer driving and interface refer to bsp driver and hardware interface etc.OAM protocol package processing threads sends to the ONU equipment received in the OAM protocol package of ONU equipment and receipt message queue to send to the OAM protocol package of OLT device, and being all needs the bottom layer driving interface of OLT device to participate in.
During a multiple ONU equipment of OLT device correspondence, OAM protocol package processing procedure is identical.
Operation principle:
1, create block type signal and can wake thread up, as OAM protocol package processing threads.In this thread, adopt the process of reception OAM protocol package always to have precedence over the processing policy sending OAM protocol massages carry out Message processing.
2, creating transmission signaling interface, for sending signal to OAM protocol package processing threads, waking this thread up.
3, create transmission message queue and receipt message queue, be respectively used to reception and send a request message and receive request message.Process OAM protocol package thread obtains message from these two message queues, then carries out corresponding process.
4, request message is first put into corresponding message queue by message request thread, then calls transmission signaling interface and wakes OAM protocol package processing threads up.
Specific embodiment:
Step 1: create block type signal and can wake thread up, as OAM protocol package processing threads; Creating and send signaling interface, for sending signal to OAM protocol package processing threads, waking this thread up; Create and send message queue and receipt message queue, be respectively used to reception and send a request message and receive request message;
Step 2: request message is first put into corresponding message queue by message request thread, then calls transmission signaling interface and wakes OAM protocol package processing threads up;
Step 3: when OAM protocol package processing threads receives the request message sending message queue, first judge whether there is the OAM protocol package received from ONU equipment in receipt message queue; If have, then OAM protocol package processing threads resolves all OAM protocol package received; Otherwise OAM protocol package processing threads creates and sends OAM protocol package to corresponding ONU equipment; When the request message of OAM protocol package processing threads process receipt message queue, then OAM protocol package processing threads resolves all OAM protocol package received.
Wherein OAM protocol package processing threads detects in receipt message queue the OAM data bag having multiple ONU equipment to send, then all OAM data bags received all are processed, then according to request to create message, create corresponding OAM protocol package, and this protocol package is issued corresponding ONU equipment.
The present invention is not limited to aforesaid embodiment.The present invention expands to any new feature of disclosing in this manual or any combination newly, and the step of the arbitrary new method disclosed or process or any combination newly.

Claims (3)

1. in same thread, receive and dispatch a processing method for OAM protocol package, it is characterized in that comprising:
Step 1: create block type signal and can wake thread up, as OAM protocol package processing threads; Create and send message queue and receipt message queue, be respectively used to reception and send a request message and receive request message;
Step 2: request message is first put into corresponding message queue by message request thread, then sends signal to OAM protocol package processing threads, wakes OAM protocol package processing threads up;
OAM protocol package processing threads is according to request message, carry out OAM protocol package create transmission or receive parsing, wherein request message refers to the message sent in message queue, it is for building OAM protocol package and sending to the message in ONU equipment or receipt message queue, and it issues the OAM protocol package of OLT device for ONU equipment;
Request OLT device carries out dissection process.
2. processing method of receiving and dispatching OAM protocol package in same thread according to claim 1, is characterized in that in described step 2, OAM protocol package processing threads carries out OAM protocol package establishment transmission or receive to resolve specifically comprising according to request message:
Step 21: when the process of OAM protocol package processing threads sends the request message of message queue, first judge whether there is the OAM protocol package received from ONU equipment in receipt message queue; If have, then perform step 22; Otherwise OAM protocol package processing threads creates and sends OAM protocol package to corresponding ONU equipment; When the request message of OAM protocol package processing threads process receipt message queue, then perform step 22; The request message wherein sending message queue is by the message sending information interface generation; The request message of receipt message queue is when sending OAM data bag to OLT device by ONU equipment, the message that OLT device bottom layer driving and interface produce;
Step 22:OAM protocol package processing threads resolves all OAM protocol package received.
3. processing method of receiving and dispatching OAM protocol package in same thread according to claim 1, is characterized in that the transmission information interface that described generation sends a request message is client.
CN201510612577.2A 2015-09-24 2015-09-24 The processing method of OAM protocol packages is received and dispatched in same thread Expired - Fee Related CN105162634B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510612577.2A CN105162634B (en) 2015-09-24 2015-09-24 The processing method of OAM protocol packages is received and dispatched in same thread

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510612577.2A CN105162634B (en) 2015-09-24 2015-09-24 The processing method of OAM protocol packages is received and dispatched in same thread

Publications (2)

Publication Number Publication Date
CN105162634A true CN105162634A (en) 2015-12-16
CN105162634B CN105162634B (en) 2018-05-15

Family

ID=54803396

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510612577.2A Expired - Fee Related CN105162634B (en) 2015-09-24 2015-09-24 The processing method of OAM protocol packages is received and dispatched in same thread

Country Status (1)

Country Link
CN (1) CN105162634B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106790632A (en) * 2017-01-03 2017-05-31 北京奇虎科技有限公司 The concurrent transmission method and device of a kind of flow data

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102098197A (en) * 2010-12-15 2011-06-15 杭州万隆光电设备有限公司 Signal access device for connecting optical network with coaxial network
CN201986096U (en) * 2010-12-21 2011-09-21 四川九州电子科技股份有限公司 Terminal equipment ONU for EPON system
CN103517164A (en) * 2013-10-25 2014-01-15 和记奥普泰通信技术有限公司 Data configuring and controlling method for optical network unit

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102098197A (en) * 2010-12-15 2011-06-15 杭州万隆光电设备有限公司 Signal access device for connecting optical network with coaxial network
CN201986096U (en) * 2010-12-21 2011-09-21 四川九州电子科技股份有限公司 Terminal equipment ONU for EPON system
CN103517164A (en) * 2013-10-25 2014-01-15 和记奥普泰通信技术有限公司 Data configuring and controlling method for optical network unit

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106790632A (en) * 2017-01-03 2017-05-31 北京奇虎科技有限公司 The concurrent transmission method and device of a kind of flow data
CN106790632B (en) * 2017-01-03 2020-07-14 北京奇虎科技有限公司 Streaming data concurrent transmission method and device

Also Published As

Publication number Publication date
CN105162634B (en) 2018-05-15

Similar Documents

Publication Publication Date Title
US9596187B2 (en) Time-triggered Ethernet-based data transmission method and node device
JP5463165B2 (en) Recovery method from ONU sleep state in PON system that can save power
CN105528254B (en) A kind of method for processing business and device
WO2012097758A3 (en) Data transmission method and system, electrical gateway and master station
EP2928108B1 (en) System, method and apparatus for multi-lane auto-negotiation over reduced lane media
CN103746959B (en) The implementation method of the communication mechanism of Java modules and C modules under OSGi environment
CN104662845A (en) Optical wireless access system
EP3223465A1 (en) Optical-wireless access system
MX2017014535A (en) A terminal device, network device and data transmission method.
WO2012165809A3 (en) Device and method for simultaneous data transmission service in heterogeneous network
CN103607302A (en) Fault information report method, monitoring equipment and management equipment
US9350612B2 (en) Method, network device, and system for synchronization between network devices
GB201209266D0 (en) Method and system for communicating between devices
EP3537673A1 (en) Data sending and receiving method and device, onu, and olt
CN105162634A (en) Processing method for receiving and transmitting OAM (Operation Administration and Maintenance) protocol packets in same thread
CN101854563A (en) Processing method of discovery process in EPON (Ethernet Passive Optical Network)
CN105656994B (en) A kind of business acceleration method and device
WO2015074275A1 (en) Optical line terminal, distribution point unit, system and data stream scheduling method
CN108462650A (en) A kind of output unit based on TTE interchangers
CN102694727A (en) Method and device for realizing transmission acceleration of network data packets
WO2020248980A1 (en) Bandwidth assignment method and apparatus, and bandwidth check method and apparatus
CN103607242A (en) Access method and device for RRU
CN107465536B (en) Network management message automatic routing method and system based on multiplexing equipment
CN104768226B (en) A kind of baseband pool DEU data exchange unit and method
CN103391488B (en) In a kind of EPON, intelligence discharges the method for bandwidth

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into 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: 20200803

Address after: Floor 2, No.16, Gaopeng Avenue, high tech Zone, Chengdu, Sichuan 610000

Patentee after: Chengdu Guangda Hengji Communication Technology Co., Ltd

Address before: 610041 building four, building two, Shiyang Industrial Park, five village, Shiyang village, fifty-five village, Chengdu hi tech Zone, Sichuan, Qingyun

Patentee before: CHENGDU GUANGDA NEW NETWORK TECHNOLOGY Co.,Ltd.

CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20180515

Termination date: 20200924