CN107220181A - A kind of abnormal process localization method, apparatus and system - Google Patents

A kind of abnormal process localization method, apparatus and system Download PDF

Info

Publication number
CN107220181A
CN107220181A CN201710456528.3A CN201710456528A CN107220181A CN 107220181 A CN107220181 A CN 107220181A CN 201710456528 A CN201710456528 A CN 201710456528A CN 107220181 A CN107220181 A CN 107220181A
Authority
CN
China
Prior art keywords
onu
abnormal
internal memory
type
olt
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
CN201710456528.3A
Other languages
Chinese (zh)
Other versions
CN107220181B (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.)
Raisecom Technology Co Ltd
Original Assignee
Raisecom 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 Raisecom Technology Co Ltd filed Critical Raisecom Technology Co Ltd
Priority to CN201710456528.3A priority Critical patent/CN107220181B/en
Publication of CN107220181A publication Critical patent/CN107220181A/en
Application granted granted Critical
Publication of CN107220181B publication Critical patent/CN107220181B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • 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/06Management of faults, events, alarms or notifications
    • H04L41/0677Localisation of faults

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Debugging And Monitoring (AREA)
  • Computer And Data Communications (AREA)

Abstract

The invention discloses a kind of abnormal process localization method, apparatus and system, methods described includes:According to the ONU of acquisition memory usage information, determine whether ONU internal memory use is abnormal;When it is determined that ONU internal memory is using exception, internal memory is determined using abnormal type, and indicates that each process that ONU detects that the ONU is currently run whether there is internal memory use abnormal information corresponding with the type;The internal memory use abnormal information for each process that the ONU included in the detection daily record that ONU according to receiving is reported is currently run, it is determined that whether each process is abnormal.Due in embodiments of the present invention, OLT indicates that each process that ONU detections are currently run whether there is with internal memory using the corresponding internal memory use abnormal information of abnormal type, and according to the internal memory use abnormal information of each process, it is determined that whether each process is abnormal.Abnormal process location efficiency is improved, manpower and materials have been saved, the experience of user is improved.

Description

A kind of abnormal process localization method, apparatus and system
Technical field
The present invention relates to communication technical field, more particularly to a kind of abnormal process localization method, apparatus and system.
Background technology
Ethernet passive optical network (Ethernet Passive Optical Network, EPON), the light by office side Road terminal (Optical Line Terminal, OLT), optical splitter and optical network unit (Optical Network Unit, ONU) it is formed by connecting by optical fiber, is a kind of single fiber bi-directional Optical Access Network using point-to-multipoint structure, with cost is low, the longevity The advantages of life length, long transmission distance and high bandwidth, extensive accreditation is received, development at full speed is obtained in recent years.In EPON Middle ONU is connected to provide broadband service to connected user with user terminal, therefore the accurate of ONU failures is known, right ONU failure is excluded in time, and the experience for improving user is most important.
But in the prior art, in EPON runnings, the internal memory that OLT can only obtain ONU uses parameter information, example Such as:ONU memory usage, or receive ONU send internal memory use abnormality alarming information, can not specifically know be by ONU internal memories are using exception caused by which process that ONU is run, and when running into ONU internal memories using exception, operation maintenance personnel can only Take a long time and the ONU processes run are investigated one by one, so as to orient abnormal process, cause manpower and materials Waste, also reduce the experience of user.
The content of the invention
The invention provides a kind of abnormal process localization method, apparatus and system, to solve in the prior art when running into When ONU internal memories are using exception, abnormal process can only be positioned using manual type, wasting manpower and material resources, influence Consumer's Experience Problem.
The invention discloses a kind of abnormal process localization method, applied to optical line terminal OLT, methods described includes:
According to the memory usage information of the optical network unit ONU of acquisition, determine whether the internal memory use of the ONU is abnormal;
When it is determined that the internal memory of the ONU is using exception, internal memory is determined using abnormal type, and indicates the ONU inspections Survey each process that the ONU currently runs and whether there is internal memory use abnormal information corresponding with the type;
Each process that the ONU included in the detection daily record that the ONU according to receiving is reported is currently run Internal memory use abnormal information, it is determined that whether each process is abnormal.
Further, the memory usage information of the optical network unit ONU according to acquisition, determines the internal memory of the ONU Using whether exception includes:
If receiving the core dumped warning information of ONU transmissions, determine that the ONU internal memories are used abnormal;
If receiving the storage allocation failure warning information of ONU transmissions, determine that the ONU internal memories are used abnormal;
If reading the memory usage of the ONU current periods, memory usage and the preservation of current period are judged The ONU upper cycles memory usage difference whether be more than setting threshold value, if it is, determining that the ONU's is interior Deposit using abnormal.
Further, each process for indicating that the ONU detects that the ONU is currently run whether there is and the class The corresponding internal memory use abnormal information of type includes:
The detection plug-in unit for the type that the OLT is preserved is issued to the ONU, makes the ONU according to the type Plug-in unit is detected, detects that each process that the ONU is currently run is believed with the presence or absence of internal memory corresponding with the type using abnormal Breath.
Further, after the type for determining internal memory using exception, indicate that the ONU detects that the ONU is currently transported Capable each process whether there is before internal memory use abnormal information corresponding with the type, and methods described also includes:
Indicate the time that the ONU is detected.
Further, if there is abnormal process, methods described also includes:
Whether recognize the abnormal process is the critical processes set;
If it is, judging that whether the current memory utilization rate of the ONU is more than the first given threshold, and judge the type Whether it is setting Exception Type;
If at least one judged result is yes, indicate that the ONU starts Standby image.
Further, if the abnormal process is the critical processes of non-setting, methods described also includes:
Judge whether the current memory utilization rate of the ONU is more than the second given threshold, wherein second given threshold Less than first given threshold;
If it is, indicating that the ONU closes the abnormal process.
The invention discloses a kind of abnormal process localization method, applied to optical network unit ONU, methods described includes:
The each process currently run according to the instruction detection of optical line terminal OLT is with the presence or absence of corresponding with specified type Internal memory use abnormal information, the specified type is type of the current memory using exception, wherein the internal memory uses exception Type is what the OLT was determined according to the ONU of acquisition memory usage information;
By the internal memory use abnormal information record of each process of the current operation detected in detection daily record;
The detection daily record is reported to the OLT, makes OLT according to the internal memory use abnormal information of each process, it is determined that often Whether individual process is abnormal.
Further, each process for currently running of instruction detection according to optical line terminal OLT whether there is with The corresponding internal memory use abnormal information of specified type includes:
The plug-in unit for the specified type that OLT is issued is received, the plug-in unit of the specified type is called, it is each that detection is currently run Process whether there is internal memory use abnormal information corresponding with specified type.
Further, if the specified type is that core dumped is abnormal, the corresponding internal memory of the specified type uses abnormal Information includes:The multiple release of internal memory, EMS memory error release, internal memory overflow;
If the specified type is that storage allocation is abnormal, the corresponding internal memory use abnormal information bag of the specified type Include:Unaligned data, the memory fragmentation of preservation;
If the specified type is that memory usage is abnormal, the corresponding internal memory use abnormal information bag of the specified type Include:Internal memory is not released.
Further, methods described also includes:
When receiving the first instruction of the startup Standby image that the OLT is sent, start the Standby image of itself;Or,
When receiving the second instruction of the closing abnormal process that the OLT is sent, included in being indicated according to described second The identification information of abnormal process, closes the process of the identification information.
The invention discloses a kind of abnormal process positioner, applied to optical line terminal OLT, described device includes:
First determining module, for the memory usage information of the optical network unit ONU according to acquisition, determines the ONU's Whether internal memory uses abnormal;
Detection module, for when it is determined that the internal memory of the ONU is using exception, determining internal memory using abnormal type, and Indicate that each process that the ONU detects that the ONU is currently run uses exception with the presence or absence of internal memory corresponding with the type Information;
Second determining module, the ONU included in the detection daily record that the ONU received for basis is reported is current The internal memory use abnormal information of each process of operation, it is determined that whether each process is abnormal.
Further, first determining module, if the core dumped warning information specifically for receiving ONU transmissions, Determine that the ONU internal memories are used abnormal;If receiving the storage allocation failure warning information of ONU transmissions, determine in the ONU Deposit using abnormal;If reading the memory usage of the ONU current periods, memory usage and the guarantor of current period are judged Whether the difference of the memory usage in the ONU upper cycles deposited is more than the threshold value of setting, if it is, determining the ONU's Internal memory uses abnormal.
Further, the detection module, the inspection specifically for issuing the type that the OLT is preserved to the ONU Plug-in unit is surveyed, makes the ONU according to the detection plug-in unit of the type, detects that each process that the ONU is currently run whether there is Internal memory use abnormal information corresponding with the type.
Further, the detection module, is additionally operable to indicate the time that the ONU is detected.
Further, described device also includes:
Exception processing module, for if there is abnormal process, recognizing whether the abnormal process is that the key set is entered Journey;If it is, judging that whether the current memory utilization rate of the ONU is more than the first given threshold, and whether judge the type For setting Exception Type;If at least one judged result is yes, indicate that the ONU starts Standby image.
Further, the exception processing module, if being additionally operable to the critical processes that the abnormal process is non-setting, sentences Whether the current memory utilization rate of the ONU of breaking is more than the second given threshold, wherein second given threshold is less than described the One given threshold;If it is, indicating that the ONU closes the abnormal process.
The invention discloses a kind of abnormal process positioner, applied to optical network unit ONU, described device includes:
Detection module, for according to each process for currently running of instruction detection of optical line terminal OLT whether there is with The corresponding internal memory use abnormal information of specified type, the specified type is type of the current memory using exception, wherein described Internal memory is determined using abnormal type for the OLT according to the ONU of acquisition memory usage information;
Logging modle, for the internal memory use abnormal information record of each process of the current operation detected to be detected In daily record;
Sending module, for reporting the detection daily record to the OLT, makes OLT be used according to the internal memory of each process different Normal information, it is determined that whether each process is abnormal.
Further, the detection module, the plug-in unit specifically for receiving the specified type that OLT is issued, calls the finger Determine the plug-in unit of type, detect that each process currently run whether there is internal memory use abnormal information corresponding with specified type.
Further, described device also includes:
Exception processing module, when being indicated for receiving the first of the startup Standby image that the OLT is sent, starts itself Standby image;Or, when receiving the second instruction of the closing abnormal process that the OLT is sent, in being indicated according to described second Comprising abnormal process identification information, close the process of the identification information.
The invention discloses a kind of abnormal process alignment system, the abnormal process alignment system includes should based on above-mentioned For the abnormal process positioner of optical line terminal OLT, and based on the above-mentioned abnormal process applied to optical network unit ONU Positioner.
The invention discloses a kind of abnormal process localization method, apparatus and system, methods described includes:OLT is according to acquisition Optical network unit ONU memory usage information, determine whether the internal memory of the ONU is used abnormal;It is determined that in the ONU Deposit using it is abnormal when, determine internal memory using abnormal type, and indicate that the ONU detects that what the ONU currently ran each enters Journey whether there is internal memory use abnormal information corresponding with the type;The detection daily record that the ONU according to receiving is reported In the internal memory use abnormal information of each process currently run of the ONU that includes, it is determined that whether each process abnormal.Due to In embodiments of the present invention, when it is determined that ONU internal memory is using exception, internal memory is determined using abnormal type, and is indicated described ONU detects that each process that the ONU is currently run whether there is internal memory use abnormal information corresponding with the type, and root The internal memory for each process that the ONU included in the detection daily record reported according to the ONU received is currently run is believed using abnormal Breath, it is determined that whether each process is abnormal, improves abnormal process location efficiency, has saved manpower and materials, improve the body of user Test.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing There is the accompanying drawing used required in technology description to be briefly described, it should be apparent that, drawings in the following description are only this Some embodiments of invention, for those of ordinary skill in the art, on the premise of not paying creative work, can be with Other accompanying drawings are obtained according to these accompanying drawings.
Fig. 1 is a kind of abnormal process position fixing process schematic diagram that the embodiment of the present invention 1 is provided;
Fig. 2 is a kind of message structure schematic diagram that the embodiment of the present invention 3 is provided;
Fig. 3 is a kind of message content schematic diagram that the embodiment of the present invention 3 is provided;
Fig. 4 is that one kind that the embodiment of the present invention 3 is provided issues plug-in unit process schematic;
Fig. 5 is a kind of abnormal process position fixing process schematic diagram that the embodiment of the present invention 5 is provided;
Fig. 6 is a kind of message structure schematic diagram that the embodiment of the present invention 5 is provided;
Fig. 7 is a kind of message content schematic diagram that the embodiment of the present invention 5 is provided;
Fig. 8 is a kind of daily record upload procedure schematic diagram that the embodiment of the present invention 5 is provided;
Fig. 9 is a kind of abnormal process positioning device structure schematic diagram that the embodiment of the present invention 7 is provided;
Figure 10 is a kind of abnormal process positioning device structure schematic diagram that the embodiment of the present invention 8 is provided;
Figure 11 is a kind of abnormal process positioning system structure schematic diagram that the embodiment of the present invention 9 is provided.
Embodiment
In order that the object, technical solutions and advantages of the present invention are clearer, below in conjunction with accompanying drawing the present invention is made into One step it is described in detail, it is clear that described embodiment is only embodiment of the invention a part of, rather than whole implementation Example.Based on the embodiment in the present invention, what those of ordinary skill in the art were obtained under the premise of creative work is not made All other embodiment, belongs to the scope of protection of the invention.
Embodiment 1:
Fig. 1 is a kind of abnormal process position fixing process schematic diagram provided in an embodiment of the present invention, and the process includes:
S101:According to the memory usage information of the optical network unit ONU of acquisition, determine the internal memory of the ONU using whether It is abnormal.
Abnormal process localization method provided in an embodiment of the present invention is applied to OLT, and the memory usage information includes internal memory Using parameter information, for example:Memory usage, internal memory usage amount etc., in addition to internal memory use warning information, for example:Core dumped Warning information etc..
Specifically, memory usage informations of the OLT according to the optical network unit ONU of acquisition, determines that the internal memory of the ONU is used It is whether abnormal.For example:The memory usage that OLT gets ONU is 90%, more than default memory usage threshold value 70%, really The internal memory for determining ONU uses exception;OLT is connected to the core dumped warning information that ONU is reported, and determines that ONU internal memories are used abnormal.
S102:When it is determined that the internal memory of the ONU is using exception, internal memory is determined using abnormal type, and is indicated described ONU detects that each process that the ONU is currently run whether there is internal memory use abnormal information corresponding with the type.
In embodiments of the present invention, type of the internal memory using exception is pre-saved in the olt, for example:Core dumped exception, Storage allocation is abnormal, memory usage is abnormal etc., and has pre-saved the type pair using abnormal type for every kind of internal memory The internal memory answered is using memory usage information during exception, when OLT determines ONU internal memory using exception, according in determination ONU Deposit using abnormal memory usage information, determine that internal memory uses abnormal type.For example:Pre-saved extremely for core dumped The extremely corresponding internal memory of core dumped uses the core dumped warning information that memory usage information during exception is that ONU is reported.OLT is received The core dumped warning information reported to ONU, determines that ONU internal memory is used after exception, exception is used according to the internal memory for determining ONU The core dumped warning information that ONU is reported, determines that ONU internal memory is abnormal for core dumped using abnormal type.
In addition, preserving the corresponding internal memory of the type using abnormal type for every kind of internal memory in the olt uses exception Information, for example:Included for the internal memory that core dumped is preserved extremely using abnormal information:The multiple release of internal memory, EMS memory error Release, internal memory overflow;Included for the internal memory that storage allocation is preserved extremely using abnormal information:The unaligned data of preservation, Memory fragmentation;Included for the internal memory that memory usage is preserved extremely using abnormal information:Internal memory is not released.
What the instruction ONU detections ONU was currently run after OLT determines ONU internal memory using abnormal type each enters Journey whether there is internal memory use abnormal information corresponding with the type.For example:OLT determines that ONU has internal memory and uses exception Type is that core dumped is abnormal, and it is extremely corresponding with core dumped that OLT indicates that each process that ONU detections ONU is currently run whether there is Internal memory it is multiple release, EMS memory error release, internal memory overflow;If OLT determines ONU while existing in core dumped exception and distribution Abnormal two kinds of internal memories are deposited using abnormal type, OLT indicates that each process that ONU detections ONU is currently run whether there is and section The multiple release of the extremely corresponding internal memory of mistake, EMS memory error release, internal memory overflow and with the presence or absence of extremely corresponding with storage allocation Preservation data be not aligned, memory fragmentation.
S103:What the ONU included in the detection daily record that the ONU according to receiving is reported was currently run each enters The internal memory use abnormal information of journey, it is determined that whether each process is abnormal.
Specifically, each process that ONU itself is currently run according to OLT instruction detection is with the presence or absence of corresponding with the type Internal memory use abnormal information after, by the internal memory use abnormal information of each process of the current operation detected record in detection In daily record;The operations of the ONU included in the detection daily record that OLT is reported according to the ONU received currently each enter Journey whether there is internal memory use abnormal information, it is determined that whether each process is abnormal.
For example:Detect and process 1, process 2, process 3 are included in daily record, wherein being used for the internal memory that process 1 is recorded abnormal Information is to be overflowed in the absence of the multiple release of internal memory, in the absence of EMS memory error release, in the absence of internal memory, in the record of process 2 It is to be overflowed in the absence of the multiple release of internal memory, in the absence of EMS memory error release, in the absence of internal memory to deposit use abnormal information, for process The internal memory use abnormal information of 3 records is in the absence of the multiple release of internal memory, in the absence of EMS memory error release, there is internal memory spilling, The multiple release of internal memory is not present according to the internal memory use abnormal information of process 1, overflow in the absence of EMS memory error release, in the absence of internal memory Go out, determine that process 1 is not abnormal, the multiple release of internal memory is not present, in the absence of internal memory mistake according to the internal memory use abnormal information of process 2 Discharge, overflowed in the absence of internal memory by mistake, determine that process 2 is not abnormal, internal memory spilling is had according to the memory usage information of process 3, really Determine process 3 abnormal.
Due in embodiments of the present invention, when it is determined that ONU internal memory is using exception, determining that internal memory uses abnormal class Type, and indicate that each process that the ONU detects that the ONU is currently run is used with the presence or absence of internal memory corresponding with the type In each process that the ONU included in abnormal information, and the detection daily record reported according to the ONU received is currently run Use abnormal information is deposited, it is determined that whether each process is abnormal.Abnormal process location efficiency is improved, manpower and materials have been saved, carried The high experience of user.
Embodiment 2:
In order to improve the accuracy of abnormal process positioning, on the basis of the various embodiments described above, in embodiments of the present invention, The memory usage information of the optical network unit ONU according to acquisition, determines the internal memory of the ONU using whether exception includes:
If receiving the core dumped warning information of ONU transmissions, determine that the ONU internal memories are used abnormal;
If receiving the storage allocation failure warning information of ONU transmissions, determine that the ONU internal memories are used abnormal;
If reading the memory usage of the ONU current periods, memory usage and the preservation of current period are judged The ONU upper cycles memory usage difference whether be more than setting threshold value, if it is, determining that the ONU's is interior Deposit using abnormal.
In present invention implementation, the internal memory that OLT can actively read ONU uses parameter information, and receives the internal memory that ONU is reported Use warning information.
If specifically, receiving the core dumped warning information of ONU transmissions, determining that ONU internal memories are used abnormal;If received The storage allocation failure warning information sent to ONU, determines that the ONU internal memories are used abnormal;If it is current to read the ONU The memory usage in cycle, judged the memory usage and the memory usage in the ONU upper cycles preserved of current period Difference whether be more than the threshold value of setting, if it is, determine the internal memory of the ONU using abnormal, wherein the threshold value set can be with For 5%, 10% etc.;Preferably, memory usage that can also be according to where the memory usage of current period is interval, it is determined that setting The size of fixed threshold value, for example:Memory usage interval where the memory usage of current period is 0%-50%, it is determined that setting Fixed threshold value is 10%, and the memory usage interval where the memory usage of current period is 51%-70%, it is determined that setting Threshold value is 7%, and the memory usage interval where the memory usage of current period is 71%-90%, it is determined that the threshold value of setting For 5%, the memory usage interval where the memory usage of current period is 91%-100%, it is determined that the threshold value set as 2%.In addition, using the abnormal accuracy determined to ONU internal memories to further improve, if it is determined that current period ONU's is interior Use exception is deposited, whether the cycle corresponding ONU internal memories use of the setting quantity before can also continue to judge current period is equal For exception, determine that ONU internal memory uses abnormal result if it is, exporting.
Specifically, OLT can issue query message to ONU, ONU memory usage information, the specific inquiry report are inquired about Text is used for the memory usage for obtaining ONU.Table 1 inquires about ONU memory usage information for a kind of OLT provided in an embodiment of the present invention Message format.
Skew Size Field name Description
0x0008 2 Command code 0xEEEE represents to carry out internal memory testing mechanism
0x000A 1 Configuration operation 0x00 (inquiry ONU memory usage information)
0x000B 1 Length 0x02 (2 byte)
0x000C 2 Data 0
Table 1
Message shown in table 1 includes the fields such as command code, configuration operation, length, data, and each field is corresponding to offset difference For 0x0008,0x000A, 0x000B, 0x000C, the byte-sized that each field takes is respectively 2 bytes, 1 byte, 1 byte, 2 The corresponding value of byte, wherein opcode field is that 0xEEEE represents to carry out internal memory testing mechanism, the corresponding value of configuration operation field For 0x00, inquiry ONU memory usage information is represented, the corresponding value of length field is 0x02, and the effective length for representing data is 2 Byte, the corresponding value of data field is 0, represents no data.
ONU is received after the query message that OLT is issued, and the memory usage information of itself is reported to OLT, in addition, if ONU After internal memory is detected using alarm, also memory usage information actively can be reported to OLT, table 2 is provided in an embodiment of the present invention one Plant the message format that ONU reports memory usage information to OLT.
Table 2
Message shown in table 2 includes the fields such as command code, configuration operation, length, data, and each field is corresponding to offset difference For 0x0008,0x000A, 0x000B, 0x000C, the byte-sized that each field takes is respectively 2 bytes, 1 byte, 1 byte, 2 The corresponding value of byte, wherein opcode field is 0xEEEE, represents to carry out internal memory testing mechanism, the corresponding value of configuration operation field For 0x00, inquiry ONU memory usage information is represented, the corresponding value of length field is 0x02, and the effective length for representing data is 2 Byte.
If ONU is received after the query message of OLT transmissions, when the memory usage information of itself is reported to OLT, data word The corresponding value of section is the size (size) that the ONU internal memories are used, that is, the internal memory used accounts for the percentage of total memory size;Certainly , after U detects internal memory using alarm if on, when actively reporting memory usage information to OLT, the corresponding value of data field The mark of warning information is used for internal memory.
After it is determined that ONU internal memories use exception, it can believe according to determining that ONU internal memories are used using abnormal ONU internal memory Breath, determines that internal memory uses abnormal type.Specifically, if receiving the core dumped warning information of ONU transmissions, determining ONU Internal memory is using exception, and the core dumped warning information sent according to the ONU received, determines that internal memory uses abnormal type It is abnormal for core dumped;If receiving the storage allocation failure warning information of ONU transmissions, the ONU internal memories are determined using exception, And the storage allocation failure warning information sent according to the ONU received, it is distribution using abnormal type to determine internal memory Memory abnormal;If reading the memory usage of the ONU current periods, determine ONU current periods memory usage and Preserve the ONU upper cycles memory usage difference be more than setting threshold value, determine the ONU internal memory use it is different Often, and according to the memory usage for reading the ONU current periods, determine that internal memory is made using abnormal type for internal memory It is abnormal with rate.
Embodiment 3:
It is described in embodiments of the present invention to indicate on the basis of the various embodiments described above in order to save ONU storage resource The ONU detects that each process that the ONU is currently run whether there is internal memory use abnormal information corresponding with the type Including:
The detection plug-in unit for the type that the OLT is preserved is issued to the ONU, makes the ONU according to the type Plug-in unit is detected, detects that each process that the ONU is currently run is believed with the presence or absence of internal memory corresponding with the type using abnormal Breath.
In embodiments of the present invention, every kind of internal memory can be stored in ONU using the abnormal corresponding detection plug-in unit of type, OLT can also be stored in, but because ONU memory source is smaller, in order to save ONU memory source, every kind of internal memory is made Preserved in the olt with the abnormal corresponding detection plug-in unit of type.
Specifically, having pre-saved in the olt for each type of detection plug-in unit, OLT determines that internal memory uses exception After type, the detection plug-in unit of the type of itself preservation is issued to the ONU, makes the ONU according to the detection of the type Plug-in unit, detects that each process that the ONU is currently run whether there is internal memory use abnormal information corresponding with the type.Example Such as:OLT determines that internal memory is abnormal for storage allocation using abnormal type, and the storage allocation for issuing itself preservation to the ONU is different Normal detection plug-in unit, makes the ONU according to the abnormal detection plug-in unit of the storage allocation, detects that the ONU is currently run every Individual process whether there is internal memory use abnormal information extremely corresponding with the storage allocation.Table 3 provides for the embodiment of the present invention Pin function information.
Table 3
According to table 3, plug-in unit A is the abnormal plug-in unit of memory usage, and the condition that issues is memory usage exception, main work( Can be to detect whether to have internal memory use abnormal information extremely corresponding with memory usage, such as:Internal memory is not released, note The information recorded in daily record (Log) includes the essential information of operation process:Row in the corresponding filename of process, respective file Number, the process number of process, the size of course allocation internal memory, and process are not released with the presence or absence of internal memory.
Plug-in unit B is the abnormal plug-in unit of core dumped, and the condition that issues is core dumped exception, and major function is to detect whether exist and section The extremely corresponding internal memory use abnormal information of mistake, for example:The multiple release of internal memory, EMS memory error release, internal memory spilling etc., record Information in Log includes the essential information of process:The corresponding filename of process, the line number in respective file, the process of process Number, and with the presence or absence of EMS memory error release, with the presence or absence of the dual release of internal memory, with the presence or absence of internal memory spilling etc..
Plug-in unit C is the abnormal plug-in unit of storage allocation, and the condition that issues is storage allocation exception, and major function is to detect whether exist Internal memory use abnormal information extremely corresponding with storage allocation, for example:Unaligned data, memory fragmentation of preservation etc., record exist Information in Log includes the essential information of process:The corresponding filename of process, the line number in respective file, the process number of process, And be not aligned with the presence or absence of the data of preservation, if there is memory fragmentation etc..
In addition, the internal memory for each process that the ONU included in the detection daily record that OLT is reported according to ONU is currently run Use abnormal information, it is determined that whether each process is after exception, for the abnormal process of determination, user can also be directed to by checking The abnormal process records the information in Log, determines the abnormal concrete reason of the abnormal process, and such as abnormal process has internal memory Mistake discharges, can also be by the corresponding essential information of the abnormal process, the row in the corresponding filename of such as process, respective file Number, determines the line number in the corresponding filename of the abnormal process, respective file, is easy to user to abnormal process correspondence code Search and modification.
In embodiments of the present invention, each type of plug-in unit is made up of multiple messages, and the structure of specific each message is such as Shown in Fig. 2, message includes:Command code, operational label, data (data), frame check sequence (frame check sequence, The information such as FCS), the wherein corresponding value of command code is 0xEEEE, and the corresponding value of operational label is 0x02, and expression issues plug-in unit, its Middle data includes data type (Data_Tpye) and value (Value).Specifically, the particular content of each message as shown in figure 3, Wherein Data_Type is that data type, Length are that length, Check_Num are that total message number, WinLen that request is uploaded are every The length of individual message, Total_Len be message total length, Endflag be end mark, DataLen be send data length, Start is that to start to send message, Response be that the split reply for originating text of delivering newspaper, Sent File Data are to send message number It is that to send next message, EndRequest be that ending request, EndResponse are to reply ending request according to, GetNext.
Fig. 4 is that one kind provided in an embodiment of the present invention issues plug-in unit process schematic, and OLT initiates loading (load) to ONU Total bag number comprising the plug-in unit, total length, the length each wrapped in the request of plug-in unit, the wherein request of load plug-in units, wherein always The length of bag number and the length each wrapped, as total message number and each message, ONU receives the request of load plug-in units, replys The request of load plug-in units, OLT receives the request of the reply load plug-in units of ONU transmissions, sends first message, wherein send The heading of first message includes the information that the sequence number of message, the length of the message, mark are not last messages, ONU receives first message, continues to obtain next message, OLT sends second message, wherein second message sent Heading includes the information that the sequence number of message, the length of the message, mark are not last messages, until OLT is sent Last message, wherein the heading of last message sent includes the sequence number of message, the length of the message, mark Note is the information of last message, and ONU receives last message of OLT transmissions, the number of checking prediction message, total length, That is verification ONU receives the total quantity and the total length of message of the message of OLT transmissions, and replys check results to OLT, sends knot The request of beam, OLT replys ending request to ONU, completes issuing for plug-in unit.
In addition, because in embodiments of the present invention in order to save ONU memory source, only each type of detection plug-in unit is protected Deposit in the olt, detection plug-in unit is preserved not in ONU, OLT is issued after detection plug-in unit to ONU, also need to issue opening detection to ONU The instruction detected is switched, the detection plug-in unit for making ONU call OLT to issue detects that each process that the ONU is currently run is It is no to there is internal memory use abnormal information corresponding with the type of the plug-in unit, specifically, OLT can be by issuing instruction to ONU The message of detection plug-in unit is called, is issued to ONU and opens the instruction that detection switch is detected.
Table 4 indicates the message format that ONU calls detection plug-in unit to be detected for a kind of OLT provided in an embodiment of the present invention.
Skew Size Field name Description
0x0008 2 Command code 0xEEEE represents to carry out internal memory testing mechanism
0x000A 1 Configuration operation 0x01 (switch for opening internal memory detection)
0x000B 1 Length 0x01 (1 byte)
0x000C 1 Data 0x01:Internal memory detection switch is opened
Table 4
Message shown in table 4 includes the fields such as command code, configuration operation, length, data, and each field is corresponding to offset difference For 0x0008,0x000A, 0x000B, 0x000C, the byte-sized that each field takes is respectively 2 bytes, 1 byte, 1 byte, 1 The corresponding value of byte, wherein opcode field is 0xEEEE, represents to carry out internal memory testing mechanism, the corresponding value of configuration operation field For 0x01, represent to open internal memory detection switch, the corresponding value of length field is 0x01, and the effective length for representing data is 1 byte, The corresponding value of data field is 0x01, represents that internal memory detection is opened and carries out internal memory detection, if the corresponding value of data field in addition For 0x00, represent that internal memory detection is closed and detected without internal memory.
Further, in order to improve the efficiency of abnormal process positioning, when OLT can also be according to detection for being pre-configured with Between, the detection time that ONU calls detection plug-in unit to be detected is indicated, specific OLT can call inspection by issuing instruction to ONU The message for the detection time that plug-in unit is detected is surveyed, the detection time that ONU calls detection plug-in unit to be detected is indicated, table 5 is this A kind of ONU that inventive embodiments are provided indicates the message format for the detection time that ONU calls detection plug-in unit to be detected.
Skew Size Field name Description
0x0008 2 Command code 0xEEEE represents to carry out internal memory testing mechanism
0x000A 1 Configuration operation 0x03 (time of configuration internal memory detection)
0x000B 1 Length 0x02 (2 byte)
0x000C 2 Data Time
Table 5
Message shown in table 5 includes the fields such as command code, configuration operation, length, data, and each field is corresponding to offset difference For 0x0008,0x000A, 0x000B, 0x000C, the byte-sized that each field takes is respectively 2 bytes, 1 byte, 1 byte, 2 The corresponding value of byte, wherein opcode field is 0xEEEE, represents to carry out internal memory testing mechanism, the corresponding value of configuration operation field For 0x03, the time of configuration internal memory detection is represented, the corresponding value of length field is 0x02, and the effective length for representing data is 2 words Section, the corresponding value of data field is the time detected.
Embodiment 4:
In order to ensure ONU normal operation, on the basis of the various embodiments described above, in the present invention is implemented, if there is Abnormal process, methods described also includes:
Whether recognize the abnormal process is the critical processes set;
If it is, judging that whether the current memory utilization rate of the ONU is more than the first given threshold, and judge the type Whether it is setting Exception Type;
If at least one judged result is yes, indicate that the ONU starts Standby image.
In embodiments of the present invention, the process that the critical processes set must be run when being run as ONU, in the olt in advance The information of critical processes is preserved, the process number of such as critical processes, can be by judging the exception if there is abnormal process Whether the process number of process is identical with the process number of the critical processes of preservation, and whether judge the abnormal process is critical processes.Separately When the outer internal memory because of ONU is that core dumped is abnormal using abnormal type, corresponding abnormal process can not be run, real in the present invention Apply the Exception Type set described in example abnormal as core dumped.
If the abnormal process is critical processes, illustrates that ONU system file is damaged, judge the ONU Current memory utilization rate whether be more than the first given threshold, and judge the type whether be setting Exception Type, if extremely A few judged result be it is yes, the damage that ONU system file occurs can cause ONU can not normal work, the instruction ONU opens Dynamic Standby image, wherein the Standby image, is the system file of ONU backups.
If the abnormal process is the critical processes of non-setting, methods described also includes:
Judge whether the current memory utilization rate of the ONU is more than the second given threshold, wherein second given threshold Less than first given threshold;
If it is, indicating that the ONU closes the abnormal process.
In addition, if the abnormal process is not critical processes, then illustrate that ONU system file is normal, and the exception The closing of process will not cause the ONU can not normal work, judge the ONU current memory utilization rate whether be more than second Given threshold, wherein second given threshold is less than first given threshold;For example:First given threshold is 70%, the second given threshold is 50, if the current memory utilization rate of the ONU is more than the second given threshold, illustrates described Abnormal process can influence ONU operational efficiency, indicate that the ONU closes the abnormal process.
Embodiment 5:
Fig. 5 is a kind of abnormal process position fixing process schematic diagram provided in an embodiment of the present invention, and the process includes:
S501:It whether there is and specified type according to each process that the instruction detection of optical line terminal OLT is currently run Corresponding internal memory use abnormal information, the specified type is type of the current memory using exception, wherein the internal memory is used What abnormal type determined for the OLT according to the ONU of acquisition memory usage information.
Abnormal process localization method provided in an embodiment of the present invention is applied to ONU, and the memory usage information includes internal memory Using parameter information, for example:Memory usage, internal memory usage amount etc., in addition to internal memory use warning information, for example:Core dumped Warning information etc..
Specifically, memory usage informations of the OLT according to the ONU of acquisition, determines that the internal memory of the ONU uses exception, and root According to memory usage information of the determination ONU internal memories using abnormal ONU, after determining internal memory using abnormal type, institute is indicated State each process that ONU detects that the ONU is currently run and whether there is internal memory use abnormal information corresponding with the type. Each process that ONU is currently run according to OLT instruction detection is believed with the presence or absence of internal memory corresponding with specified type using abnormal Breath, wherein, the specified type is that ONU current memories use abnormal type.
For example:OLT gets the core dumped warning information that ONU is reported, and determines ONU internal memory using exception, and determine interior Deposit using abnormal type as after core dumped exception, the instruction ONU detects whether each process that the ONU is currently run deposits Overflowed in the multiple release of internal memory extremely corresponding with core dumped, EMS memory error release, internal memory, ONU works as according to OLT instruction detection Each process of preceding operation is overflowed with the presence or absence of the multiple release of internal memory extremely corresponding with core dumped, EMS memory error release, internal memory.
Meanwhile, in order to improve detection efficiency, save ONU process resource, ONU can also obtain OLT pass through it is as shown in table 5 Message, obtain OLT and indicate times for being detected of ONU, the time that ONU is detected according to OLT progresss indicated, detection is currently transported Capable each process whether there is internal memory use abnormal information corresponding with specified type.
S502:By the internal memory use abnormal information record of each process of the current operation detected in detection daily record.
Specifically, the internal memory use abnormal information record of each process of the current operation detected is being detected day by ONU In will.For example:Process 1 is not present the multiple release of internal memory, overflowed in the absence of EMS memory error release, in the absence of internal memory, and process 2 is not deposited Overflowed in the multiple release of internal memory, in the absence of EMS memory error release, in the absence of internal memory, process 3 is not present the multiple release of internal memory, do not deposited In EMS memory error release, there is internal memory spilling.Internal memory use abnormal information for the record of process 1 in detection daily record is not deposit Overflow, used for the internal memory that process 2 is recorded abnormal in the multiple release of internal memory, in the absence of EMS memory error release, in the absence of internal memory Information is to be overflowed in the absence of the multiple release of internal memory, in the absence of EMS memory error release, in the absence of internal memory, in the record of process 3 Use abnormal information is deposited to be in the absence of the multiple release of internal memory, in the absence of EMS memory error release, there is internal memory spilling.
S503:The detection daily record is reported to the OLT, makes OLT according to the internal memory use abnormal information of each process, really Whether fixed each process is abnormal.
ONU reports detection daily record to the OLT, OLT is received after detection daily record, is used according to the internal memory of each process Abnormal information, it is determined that whether each process is abnormal.For example:OLT receive in the detection daily records that report of ONU comprising process 1, process 2, Process 3, wherein being in the absence of the multiple release of internal memory, in the absence of EMS memory error for the internal memory use abnormal information that process 1 is recorded Discharge, overflowed in the absence of internal memory, the internal memory use abnormal information for the record of process 2 is in the absence of the multiple release of internal memory, do not deposited Overflowed in EMS memory error release, in the absence of internal memory, be multiple in the absence of internal memory for the internal memory use abnormal information that process 3 is recorded Discharge, discharged in the absence of EMS memory error, there is internal memory spilling;Internal memory is not present according to the internal memory use abnormal information of process 1 many Discharge, overflowed in the absence of EMS memory error release, in the absence of internal memory again, determine that process 1 is not abnormal, used according to the internal memory of process 2 Abnormal information is not present the multiple release of internal memory, overflowed in the absence of EMS memory error release, in the absence of internal memory, determines that process 2 is not abnormal, Internal memory spilling is had according to the memory usage information of process 3, determines that process 3 is abnormal.
In embodiments of the present invention, Log by multiple data packet groups into the structure of, specific each packet as shown in fig. 6, Packet includes the information such as command code, operational label, data, FCS, and the wherein corresponding value of command code is 0xEEEE, operational label Corresponding value is 0x04, represents to upload log, wherein data includes Data_Tpye and Value.Specifically, the tool of each packet Hold in vivo as shown in fig. 7, wherein Data_Type is data type, Length be length, Check_Num be request upload it is total Number-of-packet, WinLen be the length of each packet, Total_Len be total length of data packets, Endflag be end mark, DataLen be send data length, Start be obtain Log requests, Start Response be reply obtain Log request, Request is that to obtain the request of packet, Sent Log Data be that to send daily record data, GetNext be to send next data Bag, EndRequest are that ending request, EndResponse are to reply ending request.
Fig. 8 is a kind of daily record upload procedure schematic diagram provided in an embodiment of the present invention, and OLT initiates to obtain Log to the ONU Request, ONU replys the corresponding total data bag number of daily record, the length of each packet, total length, and OLT starts to obtain first Packet, ONU sends first packet to OLT, and the sequence number comprising the packet, mark are not most wherein in data packet head Latter packet, OLT obtains second packet, and the sequence number comprising the packet, mark are not wherein in data packet head Last packet, until sending last packet, wherein includes the sequence number of the packet in data packet head, mark It is last packet, OLT is received after last packet, OLT verification data bags number, total length, and replied to ONU Check results, upload the request terminated, and ONU replys upload to OLT and terminated, and completes the upload of daily record.
Due in embodiments of the present invention, each process that ONU is currently run according to OLT instruction detection whether there is with The corresponding internal memory use abnormal information of specified type, by the internal memory use abnormal information of each process of the current operation detected Record is in detection daily record;The detection daily record is reported to the OLT, OLT is believed according to the internal memory of each process using abnormal Breath, it is determined that whether each process is abnormal.Abnormal process location efficiency is improved, manpower and materials have been saved, the body of user is improved Test.
Embodiment 5:
In order to save ONU storage resource, on the basis of the various embodiments described above, in embodiments of the present invention, described According to the instruction of optical line terminal OLT, detect that each process currently run is used with the presence or absence of internal memory corresponding with specified type Abnormal information includes:
The plug-in unit for the specified type that OLT is issued is received, the plug-in unit of the specified type is called, it is each that detection is currently run Process whether there is internal memory use abnormal information corresponding with specified type.
In embodiments of the present invention, every kind of internal memory can be stored in ONU using the abnormal corresponding detection plug-in unit of type, OLT can also be stored in, but because ONU memory source is smaller, in order to save ONU memory source, every kind of internal memory is made Preserved in the olt with the abnormal corresponding detection plug-in unit of type.
The plug-in unit that internal memory uses abnormality detection is carried out specifically, not preserved in ONU, if ONU is received under OLT The plug-in unit of the specified type of hair, calls the plug-in unit of the specified type, detects that each process currently run whether there is and finger Determine the corresponding internal memory use abnormal information of type.
If the specified type is that core dumped is abnormal, the corresponding internal memory use abnormal information of the specified type includes: The multiple release of internal memory, EMS memory error release, internal memory overflow;
If the specified type is that storage allocation is abnormal, the corresponding internal memory use abnormal information bag of the specified type Include:Unaligned data, the memory fragmentation of preservation;
If the specified type is that memory usage is abnormal, the corresponding internal memory use abnormal information bag of the specified type Include:Internal memory is not released.
If specifically, the specified type is that core dumped is abnormal, ONU receives the abnormal plug-in unit of core dumped that OLT is issued, and adjusts With the abnormal plug-in unit of the core dumped, detect each process for currently running with the presence or absence of the multiple release of internal memory, EMS memory error release, Internal memory overflows;If the specified type is that storage allocation is abnormal, ONU receives the abnormal plug-in unit of storage allocation that OLT is issued, and calls The abnormal plug-in unit of the storage allocation, detects each process currently run with the presence or absence of the unaligned data, memory fragmentation preserved; If the specified type is that memory usage is abnormal, ONU receives the abnormal plug-in unit of memory usage that OLT is issued, and calls described Memory usage exception plug-in unit, detects that each process currently run is not released with the presence or absence of internal memory.In the embodiment of the present invention In, the internal memory use abnormal information for detecting each process currently run is prior art, is no longer repeated.
Embodiment 6:
In order to ensure ONU normal operation, on the basis of the various embodiments described above, in embodiments of the present invention, the side Method also includes:
When receiving the first instruction of the startup Standby image that the OLT is sent, start the Standby image of itself;Or
When receiving the second instruction of the closing abnormal process that the OLT is sent, included in being indicated according to described second The identification information of abnormal process, closes the process of the identification information.
Specifically, when ONU receives the first instruction of the startup Standby image that the OLT is sent, specification exception process is Critical processes, the damage of ONU system file generation, can influence ONU normal operation, start Standby image, wherein described standby It is the system file of ONU backups with mirror image;When ONU receives the second instruction of the closing abnormal process that the OLT is sent, say Bright abnormal process is non-critical processes, but the abnormal process can influence ONU operational efficiency, is wrapped in being indicated according to described second The identification information of the abnormal process contained, closes the process of the identification information.
Embodiment 7:
Fig. 9 is a kind of abnormal process positioning device structure schematic diagram provided in an embodiment of the present invention, applied to OLT, the dress Put including:
First determining module 91, for the memory usage information of the optical network unit ONU according to acquisition, determines the ONU Internal memory use it is whether abnormal;
Detection module 92, for when it is determined that the internal memory of the ONU is using exception, determining internal memory using abnormal type, And it is different to indicate that each process that the ONU detects that the ONU is currently run is used with the presence or absence of internal memory corresponding with the type Normal information;
Second determining module 93, the ONU included in the detection daily record that the ONU received for basis is reported works as The internal memory use abnormal information of each process of preceding operation, it is determined that whether each process is abnormal.
First determining module 91, if the core dumped warning information specifically for receiving ONU transmissions, it is determined that described ONU internal memories use abnormal;If receiving the storage allocation failure warning information of ONU transmissions, determine that the ONU internal memories are used different Often;If reading the memory usage of the ONU current periods, judge current period memory usage and preserve it is described Whether the difference of the memory usage in an ONU upper cycles is more than the threshold value of setting, if it is, determining that the internal memory of the ONU is used It is abnormal.
The detection module 92, the detection plug-in unit specifically for issuing the type that the OLT is preserved to the ONU, Make the ONU according to the detection plug-in unit of the type, detect that each process that the ONU is currently run whether there is and the class The corresponding internal memory use abnormal information of type.
The detection module 92, is additionally operable to indicate the time that the ONU is detected.
Described device also includes:
Exception processing module 94, for if there is abnormal process, recognizing whether the abnormal process is the key set Process;If it is, judging that whether the current memory utilization rate of the ONU is more than the first given threshold, and judge that the type is No is setting Exception Type;If at least one judged result is yes, indicate that the ONU starts Standby image.
The exception processing module 94, if being additionally operable to the critical processes that the abnormal process is non-setting, judges described Whether ONU current memory utilization rate is more than the second given threshold, wherein second given threshold is less than the described first setting Threshold value;If it is, indicating that the ONU closes the abnormal process.
Embodiment 8:
Figure 10 is a kind of abnormal process positioning device structure schematic diagram provided in an embodiment of the present invention, applied to ONU, the dress Put including:
Detection module 101, each process for currently being run according to the instruction detection of optical line terminal OLT whether there is Internal memory use abnormal information corresponding with specified type, the specified type is that current memory uses abnormal type, wherein institute State what internal memory was determined using abnormal type for the OLT according to the ONU of acquisition memory usage information;
Logging modle 102, for the internal memory use abnormal information record of each process of the current operation detected to be existed Detect in daily record;
Sending module 103, for reporting the detection daily record to the OLT, makes OLT be used according to the internal memory of each process Abnormal information, it is determined that whether each process is abnormal.
The detection module 101, the plug-in unit specifically for receiving the specified type that OLT is issued, calls the specified type Plug-in unit, detect that each process for currently running whether there is internal memory use abnormal information corresponding with specified type.
Described device also includes:
Exception processing module 104, when being indicated for receiving the first of the startup Standby image that the OLT is sent, starts The Standby image of itself;Or, when receiving the second instruction of the closing abnormal process that the OLT is sent, refer to according to described second The identification information of the abnormal process included in showing, closes the process of the identification information.
Embodiment 9:
Figure 11 is a kind of abnormal process positioning system structure schematic diagram provided in an embodiment of the present invention, and the abnormal process is determined Position system includes the abnormal process positioner applied to optical line terminal OLT 111 as shown in Figure 9, and as shown in Figure 10 should Abnormal process positioner for optical network unit ONU 112.
The invention discloses a kind of abnormal process localization method, apparatus and system, methods described includes:OLT is according to acquisition Optical network unit ONU memory usage information, determine whether the internal memory of the ONU is used abnormal;It is determined that in the ONU Deposit using it is abnormal when, determine internal memory using abnormal type, and indicate that the ONU detects that what the ONU currently ran each enters Journey whether there is internal memory use abnormal information corresponding with the type;The detection daily record that the ONU according to receiving is reported In the internal memory use abnormal information of each process currently run of the ONU that includes, it is determined that whether each process abnormal.Due to In embodiments of the present invention, when it is determined that ONU internal memory is using exception, internal memory is determined using abnormal type, and is indicated described ONU detects that each process that the ONU is currently run whether there is internal memory use abnormal information corresponding with the type, and root The internal memory for each process that the ONU included in the detection daily record reported according to the ONU received is currently run is believed using abnormal Breath, it is determined that whether each process is abnormal, improves abnormal process location efficiency, has saved manpower and materials, improve the body of user Test.
For systems/devices embodiment, because it is substantially similar to embodiment of the method, so the comparison of description is simple Single, the relevent part can refer to the partial explaination of embodiments of method.
It should be understood by those skilled in the art that, embodiments herein can be provided as method, system or computer program Product.Therefore, the application can be using the reality in terms of complete hardware embodiment, complete software embodiment or combination software and hardware Apply the form of example.Moreover, the application can be used in one or more computers for wherein including computer usable program code The computer program production that usable storage medium is implemented on (including but is not limited to magnetic disk storage, CD-ROM, optical memory etc.) The form of product.
The application is the flow with reference to method, equipment (system) and computer program product according to the embodiment of the present application Figure and/or block diagram are described.It should be understood that can be by every first-class in computer program instructions implementation process figure and/or block diagram Journey and/or the flow in square frame and flow chart and/or block diagram and/or the combination of square frame.These computer programs can be provided The processor of all-purpose computer, special-purpose computer, Embedded Processor or other programmable data processing devices is instructed to produce A raw machine so that produced by the instruction of computer or the computing device of other programmable data processing devices for real The device for the function of being specified in present one flow of flow chart or one square frame of multiple flows and/or block diagram or multiple square frames.
These computer program instructions, which may be alternatively stored in, can guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works so that the instruction being stored in the computer-readable memory, which is produced, to be included referring to Make the manufacture of device, the command device realize in one flow of flow chart or multiple flows and/or one square frame of block diagram or The function of being specified in multiple square frames.
These computer program instructions can be also loaded into computer or other programmable data processing devices so that in meter Series of operation steps is performed on calculation machine or other programmable devices to produce computer implemented processing, thus in computer or The instruction performed on other programmable devices is provided for realizing in one flow of flow chart or multiple flows and/or block diagram one The step of function of being specified in individual square frame or multiple square frames.
Although having been described for the preferred embodiment of the application, those skilled in the art once know basic creation Property concept, then can make other change and modification to these embodiments.So, appended claims are intended to be construed to include excellent Select embodiment and fall into having altered and changing for the application scope.
Obviously, those skilled in the art can carry out the essence of various changes and modification without departing from the present invention to the present invention God and scope.So, if these modifications and variations of the present invention belong to the scope of the claims in the present invention and its equivalent technologies Within, then the present invention is also intended to comprising including these changes and modification.

Claims (20)

1. a kind of abnormal process localization method, it is characterised in that applied to optical line terminal OLT, methods described includes:
According to the memory usage information of the optical network unit ONU of acquisition, determine whether the internal memory use of the ONU is abnormal;
When it is determined that the internal memory of the ONU is using exception, internal memory is determined using abnormal type, and indicates the ONU detections institute State each process that ONU currently runs and whether there is internal memory use abnormal information corresponding with the type;
The internal memory for each process that the ONU included in the detection daily record that the ONU according to receiving is reported is currently run Use abnormal information, it is determined that whether each process is abnormal.
2. the method as described in claim 1, it is characterised in that the internal memory of the optical network unit ONU according to acquisition is used Information, determines the internal memory of the ONU using whether exception includes:
If receiving the core dumped warning information of ONU transmissions, determine that the ONU internal memories are used abnormal;
If receiving the storage allocation failure warning information of ONU transmissions, determine that the ONU internal memories are used abnormal;
If reading the memory usage of the ONU current periods, the memory usage for judging current period and the institute preserved Whether the difference for stating the memory usage in an ONU upper cycles is more than the threshold value of setting, if it is, determining the internal memory of the ONU makes With exception.
3. the method as described in claim 1, it is characterised in that it is every that the instruction ONU detects that the ONU is currently run Individual process includes with the presence or absence of internal memory use abnormal information corresponding with the type:
The detection plug-in unit for the type that the OLT is preserved is issued to the ONU, makes the ONU according to the detection of the type Plug-in unit, detects that each process that the ONU is currently run whether there is internal memory use abnormal information corresponding with the type.
4. the method as described in claim 1, it is characterised in that after the determination internal memory is using abnormal type, indicates institute State each process that ONU detects that the ONU currently runs with the presence or absence of internal memory use abnormal information corresponding with the type it Before, methods described also includes:
Indicate the time that the ONU is detected.
5. the method as described in claim 1, it is characterised in that if there is abnormal process, methods described also includes:
Whether recognize the abnormal process is the critical processes set;
If it is, judging that whether the current memory utilization rate of the ONU is more than the first given threshold, and whether judge the type For setting Exception Type;
If at least one judged result is yes, indicate that the ONU starts Standby image.
6. method as claimed in claim 5, it is characterised in that if the abnormal process is the critical processes of non-setting, institute Stating method also includes:
Judge whether the current memory utilization rate of the ONU is more than the second given threshold, wherein second given threshold is less than First given threshold;
If it is, indicating that the ONU closes the abnormal process.
7. a kind of abnormal process localization method, it is characterised in that applied to optical network unit ONU, methods described includes:
Internal memory corresponding with specified type whether there is according to each process that the instruction detection of optical line terminal OLT is currently run Use abnormal information, the specified type is type of the current memory using exception, wherein the internal memory uses abnormal type Determined for the OLT according to the ONU of acquisition memory usage information;
By the internal memory use abnormal information record of each process of the current operation detected in detection daily record;
The detection daily record is reported to the OLT, makes OLT according to the internal memory use abnormal information of each process, it is determined that each entering Whether journey is abnormal.
8. method as claimed in claim 7, it is characterised in that described according to the current fortune of the instruction of optical line terminal OLT detection Capable each process includes with the presence or absence of internal memory use abnormal information corresponding with specified type:
The plug-in unit for the specified type that OLT is issued is received, the plug-in unit of the specified type is called, each process currently run is detected With the presence or absence of internal memory use abnormal information corresponding with specified type.
9. method as claimed in claim 7 or 8, it is characterised in that described to refer to if the specified type is that core dumped is abnormal Determining the corresponding internal memory use abnormal information of type includes:The multiple release of internal memory, EMS memory error release, internal memory overflow;
If the specified type is that storage allocation is abnormal, the corresponding internal memory use abnormal information of the specified type includes:Protect Unaligned data, the memory fragmentation deposited;
If the specified type is that memory usage is abnormal, the corresponding internal memory use abnormal information of the specified type includes: Internal memory is not released.
10. method as claimed in claim 7, it is characterised in that methods described also includes:
When receiving the first instruction of the startup Standby image that the OLT is sent, start the Standby image of itself;Or,
When receiving the second instruction of the closing abnormal process that the OLT is sent, the exception included in being indicated according to described second The identification information of process, closes the process of the identification information.
11. a kind of abnormal process positioner, it is characterised in that applied to optical line terminal OLT, described device includes:
First determining module, for the memory usage information of the optical network unit ONU according to acquisition, determines the internal memory of the ONU Using whether abnormal;
Detection module, for when it is determined that the internal memory of the ONU is using exception, determining internal memory using abnormal type, and indicate The ONU detects that each process that the ONU is currently run whether there is internal memory use abnormal information corresponding with the type;
Second determining module, the ONU included in the detection daily record that the ONU received for basis is reported is currently run Each process internal memory use abnormal information, it is determined that whether each process abnormal.
12. device as claimed in claim 11, it is characterised in that first determining module, if specifically for receiving The core dumped warning information that ONU is sent, determines that the ONU internal memories are used abnormal;If the storage allocation for receiving ONU transmissions loses Warning information is lost, determines that the ONU internal memories are used abnormal;If reading the memory usage of the ONU current periods, judge Whether the difference of the memory usage of current period and the memory usage in the ONU upper cycles preserved is more than the threshold of setting Value, if it is, determining that the internal memory of the ONU uses exception.
13. device as claimed in claim 11, it is characterised in that the detection module, specifically for issuing institute to the ONU The detection plug-in unit of the type of OLT preservations is stated, makes the ONU according to the detection plug-in unit of the type, detects that the ONU is current Each process of operation whether there is internal memory use abnormal information corresponding with the type.
14. device as claimed in claim 11, it is characterised in that the detection module, is additionally operable to indicate that the ONU is examined The time of survey.
15. device as claimed in claim 11, it is characterised in that described device also includes:
Exception processing module, for if there is abnormal process, recognizing whether the abnormal process is the critical processes set;Such as Fruit is whether the current memory utilization rate for judging the ONU is more than the first given threshold, and judge whether the type is setting Exception Type;If at least one judged result is yes, indicate that the ONU starts Standby image.
16. device as claimed in claim 15, it is characterised in that the exception processing module, if being additionally operable to the exception Process is the critical processes of non-setting, judges whether the current memory utilization rate of the ONU is more than the second given threshold, wherein institute The second given threshold is stated less than first given threshold;If it is, indicating that the ONU closes the abnormal process.
17. a kind of abnormal process positioner, it is characterised in that applied to optical network unit ONU, described device includes:
Detection module, each process for currently being run according to the instruction detection of optical line terminal OLT whether there is with specifying The corresponding internal memory use abnormal information of type, the specified type is type of the current memory using exception, wherein the internal memory Determined using abnormal type for the OLT according to the ONU of acquisition memory usage information;
Logging modle, for the internal memory use abnormal information record of each process of the current operation detected to be detected into daily record In;
Sending module, for reporting the detection daily record to the OLT, makes OLT be believed according to the internal memory of each process using abnormal Breath, it is determined that whether each process is abnormal.
18. device as claimed in claim 17, it is characterised in that the detection module, specifically for receiving the finger that OLT is issued Determine the plug-in unit of type, call the plug-in unit of the specified type, detect that each process currently run whether there is and specified type Corresponding internal memory use abnormal information.
19. device as claimed in claim 17, it is characterised in that described device also includes:
Exception processing module, when being indicated for receiving the first of the startup Standby image that the OLT is sent, starts the standby of itself Use mirror image;Or, when receiving the second instruction of the closing abnormal process that the OLT is sent, included in being indicated according to described second Abnormal process identification information, close the process of the identification information.
20. a kind of abnormal process alignment system, it is characterised in that the abnormal process alignment system includes such as claim 11- The abnormal process positioner applied to optical line terminal OLT described in 16 any one, and such as any one of claim 17-19 institutes The abnormal process positioner applied to optical network unit ONU stated.
CN201710456528.3A 2017-06-16 2017-06-16 Abnormal process positioning method, device and system Active CN107220181B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710456528.3A CN107220181B (en) 2017-06-16 2017-06-16 Abnormal process positioning method, device and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710456528.3A CN107220181B (en) 2017-06-16 2017-06-16 Abnormal process positioning method, device and system

Publications (2)

Publication Number Publication Date
CN107220181A true CN107220181A (en) 2017-09-29
CN107220181B CN107220181B (en) 2020-01-14

Family

ID=59949574

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710456528.3A Active CN107220181B (en) 2017-06-16 2017-06-16 Abnormal process positioning method, device and system

Country Status (1)

Country Link
CN (1) CN107220181B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109254892A (en) * 2018-08-14 2019-01-22 北京信安世纪科技股份有限公司 A kind of method and device generating report
WO2019091244A1 (en) * 2017-11-07 2019-05-16 晶晨半导体(上海)股份有限公司 Linux kernel-based memory leakage detection method
CN110908866A (en) * 2019-11-15 2020-03-24 珠海豹趣科技有限公司 Software monitoring method and related equipment
CN114422192A (en) * 2021-12-23 2022-04-29 武汉思普崚技术有限公司 Abnormal slow flow detection method and device for network security equipment
CN114696894A (en) * 2022-05-31 2022-07-01 深圳市华迅光通信有限公司 Testing method and device of passive optical network equipment and readable storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101533370A (en) * 2009-04-09 2009-09-16 成都市华为赛门铁克科技有限公司 Memory abnormal access positioning method and device
CN104461759A (en) * 2014-11-27 2015-03-25 杭州华为企业通信技术有限公司 Method and device for processing multi-bit faults of memory
KR20150079181A (en) * 2013-12-31 2015-07-08 주식회사 케이티 Apparatus and methdo for detecting rogue unit
CN105375982A (en) * 2015-11-24 2016-03-02 国家电网公司 Ethernet passive optical network failure prejudging method of smart distribution network system
CN105912458A (en) * 2016-03-28 2016-08-31 中国电力科学研究院 Method and system for dynamically detecting C/C++ memory leak

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101533370A (en) * 2009-04-09 2009-09-16 成都市华为赛门铁克科技有限公司 Memory abnormal access positioning method and device
KR20150079181A (en) * 2013-12-31 2015-07-08 주식회사 케이티 Apparatus and methdo for detecting rogue unit
CN104461759A (en) * 2014-11-27 2015-03-25 杭州华为企业通信技术有限公司 Method and device for processing multi-bit faults of memory
CN105375982A (en) * 2015-11-24 2016-03-02 国家电网公司 Ethernet passive optical network failure prejudging method of smart distribution network system
CN105912458A (en) * 2016-03-28 2016-08-31 中国电力科学研究院 Method and system for dynamically detecting C/C++ memory leak

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
杨善红: "Linux应用程序内存错误自动化测试研究", 《中国优秀硕士学位论文全文数据库信息科技辑》 *

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019091244A1 (en) * 2017-11-07 2019-05-16 晶晨半导体(上海)股份有限公司 Linux kernel-based memory leakage detection method
US11157389B1 (en) 2017-11-07 2021-10-26 Amlogic (Shanghai) Co., Ltd. Method for detecting memory leak based on linux kernel
CN109254892A (en) * 2018-08-14 2019-01-22 北京信安世纪科技股份有限公司 A kind of method and device generating report
CN110908866A (en) * 2019-11-15 2020-03-24 珠海豹趣科技有限公司 Software monitoring method and related equipment
CN114422192A (en) * 2021-12-23 2022-04-29 武汉思普崚技术有限公司 Abnormal slow flow detection method and device for network security equipment
CN114422192B (en) * 2021-12-23 2024-03-29 武汉思普崚技术有限公司 Abnormal slow flow detection method and device for network security equipment
CN114696894A (en) * 2022-05-31 2022-07-01 深圳市华迅光通信有限公司 Testing method and device of passive optical network equipment and readable storage medium

Also Published As

Publication number Publication date
CN107220181B (en) 2020-01-14

Similar Documents

Publication Publication Date Title
CN107220181A (en) A kind of abnormal process localization method, apparatus and system
CN104202201B (en) A kind of log processing method, device and terminal
CN107766190A (en) Interface test method, device, computer equipment and storage medium
CN109635564A (en) A kind of method, apparatus, medium and equipment detecting Brute Force behavior
CN109710501A (en) A kind of detection method and system of server data transport stability
CN105743699A (en) Fault early warning method and system for virtual environment
CN109004976A (en) The remote monitoring system of cable resource
CN110532782A (en) A kind of detection method of task execution program, device and storage medium
CN109918218A (en) A kind of error data analysis method based on electrically charge
CN104780123B (en) A kind of network pack receiving and transmitting processing unit and its design method
CN105591687A (en) Information acquisition method, Information acquisition device and communication system
CN104461847B (en) Data processor detection method and device
CN109598641A (en) A kind of guarantor's powered operation managing and control system
CN108768995A (en) Substation adaptive access main website method
CN113301147B (en) Partial discharge data processing system based on data transmission
CN113824724B (en) Method and device for judging tampered sensor data of intelligent substation and storage medium
CN104678292B (en) A kind of complex programmable logic device (CPLD) test method and device
CN106447955A (en) Method and system for monitoring state of self-service terminal
CN103532937B (en) Application identification verifying method and device
CN109146689A (en) A kind of electric car data assessment method and device
CN114595761A (en) Network data intelligent distribution service system
CN104363113A (en) Business continuity detection method
CN205692170U (en) A kind of battalion auxiliary tone data pretreatment
CN108920305A (en) A kind of USB device access risk checking method and device based on distribution book keeping operation
CN108345650A (en) Electronic invoice business monitors method for early warning and system in real time

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information
CB02 Change of applicant information

Address after: 100094 First to Fifth Floors of Building 11, East Yard, No. 10 Wangdong Road, Northwest Haidian District, Beijing

Applicant after: Raisecom Technology Inc.

Address before: 100085 No. 2 Building, No. 28 Shangdi Sixth Street, Haidian District, Beijing

Applicant before: Raisecom Technology Inc.

GR01 Patent grant
GR01 Patent grant