CN109005081A - A kind of packet loss automatic checkout system and method - Google Patents

A kind of packet loss automatic checkout system and method Download PDF

Info

Publication number
CN109005081A
CN109005081A CN201810706062.2A CN201810706062A CN109005081A CN 109005081 A CN109005081 A CN 109005081A CN 201810706062 A CN201810706062 A CN 201810706062A CN 109005081 A CN109005081 A CN 109005081A
Authority
CN
China
Prior art keywords
module
packet
value
message
packet loss
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
CN201810706062.2A
Other languages
Chinese (zh)
Other versions
CN109005081B (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.)
Casco Signal Ltd
Original Assignee
Casco Signal 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 Casco Signal Ltd filed Critical Casco Signal Ltd
Priority to CN201810706062.2A priority Critical patent/CN109005081B/en
Publication of CN109005081A publication Critical patent/CN109005081A/en
Application granted granted Critical
Publication of CN109005081B publication Critical patent/CN109005081B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0823Errors, e.g. transmission errors
    • H04L43/0829Packet loss
    • 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/0631Management of faults, events, alarms or notifications using root cause analysis; using analysis of correlation between notifications, alarms or events based on decision criteria, e.g. hierarchy, tree or time analysis
    • 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
    • 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/069Management of faults, events, alarms or notifications using logs of notifications; Post-processing of notifications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0823Errors, e.g. transmission errors
    • H04L43/0847Transmission error

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Environmental & Geological Engineering (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The present invention relates to a kind of packet loss automatic checkout system and methods, the system includes packet storage module, SN locating module, packet check module and logger module, the packet storage module and SN locating module be located at on the communication board of external equipment physical connection;The packet check module and logger module are located on the multiple message processing modules of logic card;After the SN locating module positions successfully, the packet check module and logger module are triggered.Compared with prior art, the present invention has many advantages, such as that automation, application range are wider.

Description

A kind of packet loss automatic checkout system and method
Technical field
The present invention relates to packet loss detection fields, more particularly, to a kind of packet loss automatic checkout system and method.
Background technique
In order to improve reusability, more and more systems use application+platform framework, and platform is to operate on it It parses, is supplied to after protocol processes by the message received from external equipment by filtering using the communication provided with external equipment Upper layer application.Pass through network, interchanger among this, the multiple hardware devices of network interface card drive, the multiple resume modules of platform software, often A link is likely to that message packet loss occurs, and in turn results in communication disruption, influences system operation.
If needing first to be confirmed whether that packet loss occurs, there is an urgent need to one kind when communication disruption really occurs in system operation Automatic method for detecting packet loss is quickly confirmed whether packet loss, packet loss link and reason.
Currently, packet loss detection is all to dispose packet capturing environment at the scene by means of packet catcher, a large amount of communication bag point is collected Analysis, in conjunction with system log, process is cumbersome, and if it is internal system packet loss, location difficulty.
Summary of the invention
It is an object of the present invention to overcome the above-mentioned drawbacks of the prior art and provide a kind of packet losses to detect automatically System and method.
The purpose of the present invention can be achieved through the following technical solutions:
A kind of packet loss automatic checkout system, the system are connect with communication board and logic card respectively, which includes that message is deposited Storage module, SN locating module, packet check module and logger module, the packet storage module and SN locating module are set With on the communication board of external equipment physical connection;It is multiple that the packet check module and logger module are located at logic card On message processing module;After the SN locating module positions successfully, the packet check module and logger module quilt Triggering.
Preferably, the action of the packet storage module includes: that the packet storage module is each from outside After channel reception to data, different spaces are stored separately, packet storage number reaches preset value and then triggers SN locating module, if The SN locating module positions failure, and the packet storage module continues to store message until being successfully found SN or surpassing When.
Preferably, the action of the SN locating module includes: traversal storing data, find meet increasing sequence and Summation is equal to the position SN of fixed value, records the position SN and current SN value, SN locator value is labeled as successfully.
Preferably, the action of the packet check module includes: that identification SN successfully learns to identify, to message SN value Continuity checked.
Preferably, the action of the logger module includes: when discovery SN value exception alarm, and by module The information such as name, channel number and sequence number are recorded convenient for fault location.
A kind of method of the packet loss automatic checkout system, comprising the following steps:
Step 1 after receiving data from some external channel, first stores data, message number reaches preset value SN positioning is carried out afterwards;
Step 2, the storing data for scanning default size from message header are bit each, if find it is bit legal, Then terminate SN study, and identify Success Flag, records the position SN and SN current value, and execute step 3;Otherwise 1 is gone to step;
If step 3, SN study are identified as success, by the SN value for the message package being successfully received and last time receive SN value into Row compares, and communications are normal if continuous;Message repeats if SN value is identical;Other situations are then out-of-order or packet loss, are turned Step 4;
Step 4: triggering log module, record detection failure information;
Step 5: no matter learn or SN detects whether success, it will will be from the stream compression that receives of outside to next mould Block processing, and finally submit to upper layer application.
Preferably, the method can also be used to externally export the message detection in process.
Preferably, the method can also be used in system communication performance test.
Preferably, the rule of the SN value is not limited to increasing sequence.
Compared with prior art, the invention has the following advantages that
1, it automates: losing, repeat in transmission process when message occurs, when random ordering even postpones, automatic alarm And misregistration information, it is convenient for malfunction elimination and analyzing and positioning.
2, application range is wider: without additional ancillary equipment, in either external transmission or system for content;Regardless of It is to be disappeared by network or serial ports, as long as CAN bus transmission meets rule and can apply;Even if not being inconsistent normally, testing In can also simulate and be responsible for the data of rule to verify the lossless transmitting of each environmental data stream of system.
Detailed description of the invention
Fig. 1 is system structure diagram of the invention;
Fig. 2 is flow chart of the method for the present invention.
Specific embodiment
Technical solution in the embodiment of the present invention is carried out below clear, is fully described by, it is clear that described implementation Example is a part of the embodiments of the present invention, rather than whole embodiments.Based on the embodiments of the present invention, ordinary skill Personnel's every other embodiment obtained without making creative work all should belong to the model that the present invention protects It encloses.
The principle of the present invention: designing according to system, and the message packet in each channel connection can include a sequence number, Every transmission a piece of news value is incremented by, and is added to maximum value from initial value, then add up again from 0.Thus determine the sequence number most The numerical value (SN) of the latter bit will appear the increasing sequence from 0 to 255.According to this rule 256 packet message packet of traversal, navigate to The position of SN and record current value.If successfully SN is arrived in study, inspection current SN value is passed through for the message packet received later With the continuity of the SN value of last time, judge whether SN value is correct:
If current SN value is being incremented by for last time SN value, including the two kinds of situations of overturning to add up with maximum value, then SN is being determined just Really, then by two message time differences determine whether communication is normal;
If the two numerical value are equal, it can determine that and receive repetition message message;
If the two values neither be incremented by relationship again unequal, decision message message loss or random ordering.
If losing it was found that message packet repeats, out-of-order, communication abnormality is then thought in delay, alarms and records key message use In fault location.It needs to collect message at external message ingress, positions SN, mark SN successfully learns mark and position, cocurrent Whether it is abnormal according to SN information come confirmation message transmission to after internal system.
As shown in Figure 1, the present invention includes communication message memory module, SN locating module, packet check module, log recording Four part of module, wherein packet storage and SN position two modules and are deployed on the communication board being physically connected to external equipment outside i.e. At portion's Data entries;In addition to communication board, packet check module and log recording are deployed in the multiple message processing modules of logic card Module, after SN is positioned successfully, the two modules can just be triggered.
As shown in Fig. 2, being applied to field failure record location, SN value rule for the message detection in external input process Then it is increasing sequence, is the method flow of the invention of embodiment:
Step 1: after receiving message packet from external equipment, the message classification of different interface channels being stored, stores number Mesh reaches 256 and then goes to step 2;If system internal message processing module then goes to step 3;
Step 2: 256 communication messages of traversal are scanned as unit of the position the Bit of data content, are looked for according to preset value It is bit regular to meeting, i.e. SN.If successfully learning to after SN, success flag is identified, the position SN goes to step 3, otherwise goes to step 1, wherein if attempting to abandon learning if repeatedly number all fails;
Step 3: if SN study is identified as success, by the SN value for the message package being successfully received and last time receive SN value into Row compares, and communications are normal if continuous;Message repeats if SN value is identical;Other situations are then out-of-order or packet loss, are turned Step 4;
Step 4: triggering log module, record detection failure information;
Step 5: no matter learn or SN detects whether success, it will will be from the stream compression that receives of outside to next mould Block processing, and finally submit to upper layer application.
The above description is merely a specific embodiment, but scope of protection of the present invention is not limited thereto, any Those familiar with the art in the technical scope disclosed by the present invention, can readily occur in various equivalent modifications or replace It changes, these modifications or substitutions should be covered by the protection scope of the present invention.Therefore, protection scope of the present invention should be with right It is required that protection scope subject to.

Claims (9)

1. a kind of packet loss automatic checkout system, the system are connect with communication board and logic card respectively, which is characterized in that the system packet Packet storage module, SN locating module, packet check module and logger module are included, the packet storage module and SN are fixed Position module be located at on the communication board of external equipment physical connection;The packet check module and logger module, which are located at, patrols It collects on the multiple message processing modules of plate;After the SN locating module positions successfully, the packet check module and log note Record module is triggered.
2. a kind of packet loss automatic checkout system according to claim 1, which is characterized in that the packet storage module Action includes: the packet storage module after external each channel reception to data, is stored separately different spaces, Packet storage number reaches preset value and then triggers SN locating module, if the SN locating module positions failure, the message Memory module continues to store message until being successfully found SN or time-out.
3. a kind of packet loss automatic checkout system according to claim 1, which is characterized in that the work of the SN locating module Include: traversal storing data as content, find and meet the position SN that increasing sequence and summation are equal to fixed value, the record position SN and SN locator value is labeled as successfully by current SN value.
4. a kind of packet loss automatic checkout system according to claim 1, which is characterized in that the packet check module Action includes: that identification SN successfully learns to identify, and is checked the continuity of message SN value.
5. a kind of packet loss automatic checkout system according to claim 1, which is characterized in that the logger module Action includes: to work as discovery SN value exception alarm, and the information such as module name, channel number and sequence number are recorded and are convenient for Fault location.
6. a kind of method using the packet loss automatic checkout system any in Claims 1 to 5, which is characterized in that including Following steps:
Step 1 after receiving data from some external channel, first stores data, it is laggard that message number reaches preset value Row SN positioning;
Step 2, the storing data for scanning default size from message header are bit each, if finding bit legal, tie Beam SN study, and Success Flag is identified, the position SN and SN current value are recorded, and execute step 3;Otherwise 1 is gone to step;
If step 3, SN study are identified as success, SN value and the last time of the message package being successfully received are received into SN value and compared Compared with communications are normal if continuous;Message repeats if SN value is identical;Other situations are then out-of-order or packet loss, are gone to step 4;
Step 4: triggering log module, record detection failure information;
Step 5: no matter learn or SN detects whether success, it will be by the stream compression received from outside to from next module Reason, and finally submit to upper layer application.
7. according to the method described in claim 6, it is characterized in that, the method can also be used to externally export disappearing in process Breath detection.
8. according to the method described in claim 6, it is characterized in that, the method can also be used in system communication performance test.
9. according to the method described in claim 6, it is characterized in that, the rule of the SN value is not limited to increasing sequence.
CN201810706062.2A 2018-06-26 2018-06-26 System and method for automatically detecting packet loss Active CN109005081B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810706062.2A CN109005081B (en) 2018-06-26 2018-06-26 System and method for automatically detecting packet loss

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810706062.2A CN109005081B (en) 2018-06-26 2018-06-26 System and method for automatically detecting packet loss

Publications (2)

Publication Number Publication Date
CN109005081A true CN109005081A (en) 2018-12-14
CN109005081B CN109005081B (en) 2022-09-23

Family

ID=64600973

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810706062.2A Active CN109005081B (en) 2018-06-26 2018-06-26 System and method for automatically detecting packet loss

Country Status (1)

Country Link
CN (1) CN109005081B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110095711A (en) * 2019-05-06 2019-08-06 盛科网络(苏州)有限公司 A kind of verification method based on test vector random ordering and discarding behavior
CN114113859A (en) * 2021-11-29 2022-03-01 一汽奔腾轿车有限公司 Electrical function testing device and testing method for automobile combination instrument
CN114338466A (en) * 2021-12-21 2022-04-12 卡斯柯信号有限公司 Self-adaptive packet loss detection method

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6350227A (en) * 1986-08-20 1988-03-03 Nippon Telegr & Teleph Corp <Ntt> Packet switching flow control system
CN1815970A (en) * 2005-02-01 2006-08-09 华为技术有限公司 Method for detecting network chain fault and positioning said fault
CN101001130A (en) * 2007-01-23 2007-07-18 华为技术有限公司 Method and device for monitoring Iub interface packet-loss rate
CN101488835A (en) * 2009-02-13 2009-07-22 华为技术有限公司 Link detection method, apparatus and communication system
CN101656747A (en) * 2009-09-25 2010-02-24 深圳创维数字技术股份有限公司 Method and system for transmitting streaming media data
CN103281212A (en) * 2013-06-21 2013-09-04 武汉烽火网络有限责任公司 Method for monitoring performance of metro Ethernet
CN103532779A (en) * 2013-10-10 2014-01-22 北京锐安科技有限公司 Method and system for rapidly positioning packet loss of distribution equipment
CN104244109A (en) * 2014-09-19 2014-12-24 浙江宇视科技有限公司 Method and device for reliably transmitting and receiving media streams
CN106330579A (en) * 2015-06-15 2017-01-11 中兴通讯股份有限公司 Packet loss statistic method and apparatus for PTN equipment
DE102016112314A1 (en) * 2016-07-05 2018-01-11 Deutsche Telekom Ag Method for determining at least one quality of service parameter of a packet-based data transmission

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6350227A (en) * 1986-08-20 1988-03-03 Nippon Telegr & Teleph Corp <Ntt> Packet switching flow control system
CN1815970A (en) * 2005-02-01 2006-08-09 华为技术有限公司 Method for detecting network chain fault and positioning said fault
CN101001130A (en) * 2007-01-23 2007-07-18 华为技术有限公司 Method and device for monitoring Iub interface packet-loss rate
CN101488835A (en) * 2009-02-13 2009-07-22 华为技术有限公司 Link detection method, apparatus and communication system
CN101656747A (en) * 2009-09-25 2010-02-24 深圳创维数字技术股份有限公司 Method and system for transmitting streaming media data
CN103281212A (en) * 2013-06-21 2013-09-04 武汉烽火网络有限责任公司 Method for monitoring performance of metro Ethernet
CN103532779A (en) * 2013-10-10 2014-01-22 北京锐安科技有限公司 Method and system for rapidly positioning packet loss of distribution equipment
CN104244109A (en) * 2014-09-19 2014-12-24 浙江宇视科技有限公司 Method and device for reliably transmitting and receiving media streams
CN106330579A (en) * 2015-06-15 2017-01-11 中兴通讯股份有限公司 Packet loss statistic method and apparatus for PTN equipment
DE102016112314A1 (en) * 2016-07-05 2018-01-11 Deutsche Telekom Ag Method for determining at least one quality of service parameter of a packet-based data transmission

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
HSU_FENG HSIAO: ""A New multimedia packet loss classification algorithm for congestion control over wired/wireless channels"", 《IEEE》 *
傅文博: ""计算机网络内部丢包节点检测仿真研究"", 《计算机仿真》 *

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110095711A (en) * 2019-05-06 2019-08-06 盛科网络(苏州)有限公司 A kind of verification method based on test vector random ordering and discarding behavior
CN110095711B (en) * 2019-05-06 2021-10-15 苏州盛科通信股份有限公司 Verification method based on test vector out-of-order and discarding behavior
CN114113859A (en) * 2021-11-29 2022-03-01 一汽奔腾轿车有限公司 Electrical function testing device and testing method for automobile combination instrument
CN114338466A (en) * 2021-12-21 2022-04-12 卡斯柯信号有限公司 Self-adaptive packet loss detection method
CN114338466B (en) * 2021-12-21 2023-10-31 卡斯柯信号有限公司 Self-adaptive packet loss detection method

Also Published As

Publication number Publication date
CN109005081B (en) 2022-09-23

Similar Documents

Publication Publication Date Title
CN109005081A (en) A kind of packet loss automatic checkout system and method
US20110270957A1 (en) Method and system for logging trace events of a network device
CN113708995B (en) Network fault diagnosis method, system, electronic equipment and storage medium
CN113038122B (en) Fault positioning system and method based on video image diagnosis data
CN102571492B (en) Method and device for detecting failure of routing equipment
CN1791007A (en) Communication equipment and its internal link fault positioning method
CN103404100A (en) Relay device, relay device control method, and network system
CN107995066A (en) A kind of method and apparatus of automatic test network interface card
CN103905219A (en) System and method for monitoring and storing communication information in service platform
CN109327337A (en) Fault information reporting method, device, terminal device and computer storage medium
CN104022905B (en) Meshed network monitoring method and device
CN111988170B (en) Terminal fault positioning method and device
CN101252477B (en) Determining method and analyzing apparatus of network fault root
CN110768871B (en) Test method and system for automatically counting data transmission correctness of DCS (distributed control system)
CN112583659A (en) Method and device for detecting network state of video network, terminal equipment and storage medium
FI104032B (en) Method for telecommunications network fault management and telecommunication system
KR100964392B1 (en) System and method for managing network failure
CN101478775B (en) Detection method, system and equipment for multi-neighbor connection state
JP2001244946A (en) Network monitoring device
CN208953929U (en) A kind of remote on-line monitoring device
CN115314362B (en) Remote dispatching terminal fault detection method and system based on telemetry network
CN114244682B (en) Equipment alarm loss and leakage repairing method and device
CN111181812B (en) Link fault detection method based on network flow
JPH08331146A (en) Lan analyzer
CN109088769B (en) Device for diagnosing MPLS-VPN data message

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
GR01 Patent grant
GR01 Patent grant