CN112751723A - Message detection method, single board and Packet Transport Network (PTN) network equipment - Google Patents

Message detection method, single board and Packet Transport Network (PTN) network equipment Download PDF

Info

Publication number
CN112751723A
CN112751723A CN201911055521.6A CN201911055521A CN112751723A CN 112751723 A CN112751723 A CN 112751723A CN 201911055521 A CN201911055521 A CN 201911055521A CN 112751723 A CN112751723 A CN 112751723A
Authority
CN
China
Prior art keywords
detection
unit
message
network
network processor
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201911055521.6A
Other languages
Chinese (zh)
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.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN201911055521.6A priority Critical patent/CN112751723A/en
Publication of CN112751723A publication Critical patent/CN112751723A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/50Testing arrangements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/04Processing captured monitoring data, e.g. for logfile generation

Abstract

The invention provides a message detection method, a single board and Packet Transport Network (PTN) network equipment, wherein a detection message is sent to a network processor through a detection unit in the single board, further, the network processor tests each unit to be tested according to the detection message, further, the detection unit collects the test result of each unit to be tested, and further, the detection unit determines whether each unit to be tested is abnormal according to the test result; the problems of a plurality of defects, low detection efficiency and high detection difficulty in a related technology through an instrument detection mode are solved. That is, the message detection method, the single board and the PTN network device provided by the present invention realize the detection of each unit to be detected through the detection unit inside the single board, reduce the dependence on the instrument, have small device test coupling, are easy to locate, have high screening efficiency, and greatly improve the device screening efficiency; meanwhile, the expenditure can be saved to a certain extent.

Description

Message detection method, single board and Packet Transport Network (PTN) network equipment
Technical Field
The present invention relates to the field of wireless communication technologies, and in particular, to a packet detection method, a board, and a Packet Transport Network (PTN) Network device.
Background
With the development of communication networks and transmission technologies, PTN network devices have been widely used. With the continuous increase of the number and scale of services on the network, new application scenarios are continuously generated, and new requirements are also put forward on the service quality of the network, such as low delay and large capacity of transmission, and seamless switching is particularly prominent in a 5G network, which will greatly improve the technical requirements of various aspects of the PTN and play an important role in the field of transmission of 5G network services.
In order to ensure the stable reliability of the market equipment, a large amount of test verification is required before the equipment is sent to the market. The test verification method generally adopted at present is to serially connect one or more service single boards of equipment through instrument flow distribution snake-shaped serial connection, and carry out a large amount of networking tests to meet the test requirements, but the test method has the defects that:
firstly, when a network element carries out a long-time missing and copying machine packet rate test, the dependence on an instrument is large;
secondly, the port configuration services of the test single board need to be associated;
thirdly, because the service configuration is simple, the meter flow can only detect the Random Access Memory (RAM) of a certain path of the configured service flow, and cannot perform comprehensive detection on other RAM storage spaces related to the single board;
fourthly, the coupling between the test devices connected in series is large, and if one of the test devices has abnormal packet loss, the modules of all the test devices need to be positioned and analyzed;
fifthly, the service port, the single board and the switch inside the tandem test equipment are coupled with each other in a large manner, and if one single board or an internal module has abnormal packet loss, the problem of powerful positioning is also needed, so that the detection efficiency of the whole equipment is affected.
Therefore, the method for detecting through the instrument in the related technology has many defects, low detection efficiency and high detection difficulty.
Disclosure of Invention
The message detection method, the single board and the Packet Transport Network (PTN) network equipment provided by the embodiment of the invention mainly solve the technical problems that in the related technology, a plurality of defects exist in a mode of instrument detection, the detection efficiency is low and the detection difficulty is large.
To solve the above technical problem, an embodiment of the present invention provides a packet detection method, which is applied to a packet transport network PTN network device, and includes:
a detection unit inside the single board sends a detection message to a network processor;
the network processor tests each unit to be tested according to the detection message;
the detection unit acquires the test result of each unit to be tested;
and the detection unit determines whether each unit to be tested is abnormal or not according to the test result.
The embodiment of the invention also provides a single board, which comprises a detection unit and a network processor;
the detection unit sends a detection message to the network processor;
the network processor is used for testing each unit to be tested according to the detection message;
the detection unit is used for collecting the test result of each unit to be tested and determining whether each unit to be tested is abnormal or not according to the test result.
The embodiment of the invention also provides Packet Transport Network (PTN) network equipment, which comprises at least one single board.
The invention has the beneficial effects that:
the message detection method, the single board and the Packet Transport Network (PTN) network device provided by the embodiment of the invention send the detection message to the network processor through the detection unit in the single board, further, the network processor tests each unit to be tested according to the detection message, further, the detection unit collects the test result of each unit to be tested, and further, the detection unit determines whether each unit to be tested is abnormal according to the test result; the problems of a plurality of defects, low detection efficiency and high detection difficulty in a related technology through an instrument detection mode are solved. That is, the packet detection method, the board and the packet transport network PTN network device provided in the embodiment of the present invention implement detection of each unit to be detected by the detection unit inside the board, and have at least the following advantages compared with the related art:
first, there is no need to rely on instrumentation;
secondly, the port configuration services of the test single board do not need to be associated;
thirdly, the comprehensive detection of each unit to be detected is realized;
fourthly, the coupling among the test devices is small, if one of the test devices has abnormal packet loss, the detection unit in each test device can be directly positioned and analyzed according to the test result, and the positioning analysis of all the modules of the test devices is not needed;
fifthly, the coupling among the service ports, the single boards and the exchanges in each test device is small, if one single board or an internal module has abnormal packet loss, the detection unit in each test device can be directly positioned and analyzed according to the test result, the problem of excessive time positioning is not needed, and the detection efficiency of the whole device is improved to a great extent.
Additional features and corresponding advantages of the invention will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention.
Drawings
The invention will be further described with reference to the accompanying drawings and examples, in which:
fig. 1 is a schematic diagram of a basic flow of a message detection method according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of a single board according to a second embodiment of the present invention;
fig. 3 is a schematic structural diagram of a 1GE service single board message detection method provided in the third embodiment of the present invention;
fig. 4 is a schematic structural diagram of a 10GE service single board message detection method according to a fourth embodiment of the present invention;
fig. 5 is a first schematic structural diagram of a PTN network device according to a fifth embodiment of the present invention;
fig. 6 is a schematic structural diagram ii of a PTN network device according to a fifth embodiment of the present invention;
fig. 7 is a schematic structural diagram three of a PTN network device according to a fifth embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, embodiments of the present invention are described in detail below with reference to the accompanying drawings. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
The first embodiment is as follows:
in order to solve the problems of various defects, low detection efficiency and high detection difficulty in a related technology through an instrument detection mode, the embodiment of the invention provides a message detection method, a detection message is sent to a network processor through a detection unit in a single board, further, the network processor tests each unit to be detected according to the detection message, further, the detection unit collects the test result of each unit to be detected, and further, the detection unit determines whether each unit to be detected is abnormal or not according to the test result; referring to fig. 1, fig. 1 is a schematic diagram of a basic flow of a message detection method provided in this embodiment.
S101: the detection unit in the single board sends a detection message to the network processor.
In the embodiment of the invention, the detection unit is firstly configured in the single board, wherein the detection unit can issue the relevant detection function configuration attribute to the network processor and each unit to be detected, so that when a tester issues a test instruction, the detection unit in the single board starts detection.
S102: and the network processor tests each unit to be tested according to the detection message.
Optionally, the unit under test in the embodiment of the present invention includes, but is not limited to, a port, a random access memory, and a switching network, where the unit under test may include any one or any combination of the port, the random access memory, and the switching network. It should be noted that, only a few common units under test are listed here, in practical applications, the units under test can be flexibly adjusted according to specific application scenarios, and the present invention is not limited to these units under test.
Optionally, in the embodiment of the present invention, when the unit to be tested includes the port, the random access memory, and the switching network, the network processor sequentially tests the port, the random access memory, and the switching network according to the detection packet and according to the sequence of the port, the random access memory, and the switching network.
Optionally, before the network processor tests each unit to be tested according to the detection packet in the embodiment of the present invention, the method further includes at least the following steps:
the network processor compares whether the key field of the detection message is consistent with the key field of the pre-stored detection message;
if not, discarding the detection message and recording the reason of packet loss;
and if so, sending the detection message to the port.
It should be understood that, since the above description describes that the network processor tests the port, the random access memory and the switching network in sequence according to the sequence of the port, the random access memory and the switching network according to the detection message, the next unit to be tested refers to the port.
Optionally, the network processor in the embodiment of the present invention tests the port, including at least the following steps:
a port receives a detection message sent by a network processor;
the port forwards the detection message to a network processor;
the network processor compares whether the key field of the detection message sent to the port is consistent with the key field of the detection message received from the port;
if not, discarding the detection message and recording the reason of packet loss;
and if so, sending the detection message to the random access memory through the port.
It should be understood that, this can complete the testing of the port, and after the testing of the port is passed, it sends the detection message to the next unit under test, and similarly, since the above description says that the network processor tests the port, the random access memory and the switching network in sequence according to the detection message, the next unit under test is referred to as the random access memory.
Optionally, the testing of the random access memory by the network processor in the embodiment of the present invention includes at least the following steps:
the network processor takes a value corresponding to a preset position in the detection message as a keyword, and searches table item contents of different types of random access memories according to the keyword;
the network processor compares whether the value searched from the table entry content is consistent with the pre-written value;
if not, discarding the detection message and recording the reason of packet loss;
and if so, sending the detection message to the switching network.
It should be understood that, this completes the testing of the ram, and after the testing of the ram passes, it sends the detection message to the next unit to be tested, and similarly, since the above description says that the network processor tests the port, the ram and the switching network in sequence according to the sequence of the port, the ram and the switching network according to the detection message, the next unit to be tested is referred to as the switching network.
Optionally, the testing of the switching network by the network processor in the embodiment of the present invention includes at least the following steps:
the switching network receives a detection message sent by the random access memory;
the switching network forwards the detection message to a network processor;
the network processor compares whether the key field of the detection message sent to the switching network is consistent with the key field of the detection message sent from the switching network;
if not, discarding the detection message and recording the reason of packet loss;
and if so, sending the detection message to the detection unit.
It should be appreciated that this may be done to test the switching network, which sends a detection message back to the detection unit after the switching network test has passed.
S103: the detection unit collects the test results of each unit to be tested.
Optionally, in the embodiment of the present invention, the detection unit may collect the test result of each unit to be tested every preset time period, so that the workload of the detection unit may be reduced to a certain extent; of course, the detection unit can also continuously collect the test results of each unit to be tested so as to collect the test results of each unit to be tested as much as possible, thereby ensuring the accuracy of determining whether each unit to be tested is abnormal according to the test results.
Optionally, in the embodiment of the present invention, the detecting unit acquires the test result of each unit to be tested as each packet loss reason recorded by the network processor acquired by the detecting unit, that is, the detecting unit acquires the packet loss reason of each unit to be tested recorded by the network processor, for example, the packet loss reason of the port, the packet loss reason of the random access memory, the packet loss reason of the switching network, and the like.
S104: and the detection unit determines whether each unit to be tested is abnormal or not according to the test result.
Optionally, in the embodiment of the present invention, the detecting unit determines whether each unit to be detected is abnormal according to the acquired packet loss reason of each unit to be detected recorded by the network processor, for example, when the detecting unit acquires the packet loss reason of the network processor, it may be determined that the current network processor is abnormal; when the detection unit acquires the reason for the packet loss of the port, the current port is determined to be abnormal; when the detection unit acquires the packet loss reason of the random access memory, the current random access memory can be determined to be abnormal; when the detection unit acquires the reason for packet loss of the switching network, the abnormality of the current switching network can be determined.
Optionally, in the embodiment of the present invention, the detecting unit further receives a detection message sent from the network processor, further performs Cyclic Redundancy Check (CRC) on the detection message to obtain a Check result, and further determines whether each unit to be detected is abnormal according to the Check result and the collected reason for each packet loss.
In the message detection method provided by the embodiment of the invention, the detection message is sent to the network processor through the detection unit in the single board, further, the network processor tests each unit to be tested according to the detection message, further, the detection unit acquires the test result of each unit to be tested, and further, the detection unit determines whether each unit to be tested is abnormal according to the test result; the problems of a plurality of defects, low detection efficiency and high detection difficulty in a related technology through an instrument detection mode are solved. That is, the message detection method provided in the embodiment of the present invention realizes the detection of each unit to be detected through the detection unit inside the board, and has at least the following advantages:
first, there is no need to rely on instrumentation;
secondly, the port configuration services of the test single board do not need to be associated;
thirdly, the comprehensive detection of each unit to be detected is realized;
fourthly, the coupling among the test devices is small, if one of the test devices has abnormal packet loss, the detection unit in each test device can be directly positioned and analyzed according to the test result, and the positioning analysis of all the modules of the test devices is not needed;
fifthly, the coupling among the service ports, the single boards and the exchanges in each test device is small, if one single board or an internal module has abnormal packet loss, the detection unit in each test device can be directly positioned and analyzed according to the test result, the problem of excessive time positioning is not needed, and the detection efficiency of the whole device is improved to a great extent.
Example two:
in order to solve the problems of various defects, low detection efficiency and high detection difficulty in a meter detection manner in the related art, please refer to fig. 2, which provides a single board in an embodiment of the present invention, including a detection unit 201 and a network processor 202; wherein:
the detection unit 201 sends a detection message to the network processor 202;
the network processor 202 is configured to test each unit to be tested according to the detection message;
the detecting unit 201 is configured to collect a test result of each unit to be tested, and determine whether each unit to be tested is abnormal according to the test result.
Optionally, the unit under test in the embodiment of the present invention includes, but is not limited to, a port, a random access memory, and a switching network, where the unit under test may include any one or any combination of the port, the random access memory, and the switching network. It should be noted that, only a few common units under test are listed here, in practical applications, the units under test can be flexibly adjusted according to specific application scenarios, and the present invention is not limited to these units under test.
Optionally, in the embodiment of the present invention, when the unit to be tested includes the port, the random access memory, and the switching network, the network processor sequentially tests the port, the random access memory, and the switching network according to the detection packet and according to the sequence of the port, the random access memory, and the switching network.
Optionally, before the network processor 202 tests each unit to be tested according to the detection packet in the embodiment of the present invention, the method further includes:
comparing whether the key field of the detection message is consistent with the key field of the pre-stored detection message;
if not, discarding the detection message and recording the reason of packet loss;
and if so, sending the detection message to the port.
It should be understood that, since the above description describes that the network processor tests the port, the random access memory and the switching network in sequence according to the sequence of the port, the random access memory and the switching network according to the detection message, the next unit to be tested refers to the port.
Optionally, the testing of the port by the network processor 202 in the embodiment of the present invention includes:
a port receives a detection message sent by a network processor;
the port forwards the detection message to a network processor;
the network processor compares whether the key field of the detection message sent to the port is consistent with the key field of the detection message received from the port;
if not, discarding the detection message and recording the reason of packet loss;
and if so, sending the detection message to the random access memory through the port.
It should be understood that, this can complete the testing of the port, and after the testing of the port is passed, it sends the detection message to the next unit under test, and similarly, since the above description says that the network processor tests the port, the random access memory and the switching network in sequence according to the detection message, the next unit under test is referred to as the random access memory.
Optionally, the testing of the random access memory by the network processor 202 in the embodiment of the present invention includes:
the network processor takes a value corresponding to a preset position in the detection message as a keyword, and searches table item contents of different types of random access memories according to the keyword;
the network processor compares whether the value searched from the table entry content is consistent with the pre-written value;
if not, discarding the detection message and recording the reason of packet loss;
and if so, sending the detection message to the switching network.
It should be understood that, this completes the testing of the ram, and after the testing of the ram passes, it sends the detection message to the next unit to be tested, and similarly, since the above description says that the network processor tests the port, the ram and the switching network in sequence according to the sequence of the port, the ram and the switching network according to the detection message, the next unit to be tested is referred to as the switching network.
Optionally, the testing of the switching network by the network processor 202 in the embodiment of the present invention includes:
the switching network receives a detection message sent by the random access memory;
the switching network forwards the detection message to a network processor;
the network processor compares whether the key field of the detection message sent to the switching network is consistent with the key field of the detection message sent from the switching network;
if not, discarding the detection message and recording the reason of packet loss;
and if so, sending the detection message to the detection unit.
It should be appreciated that this may be done to test the switching network, which sends a detection message back to the detection unit after the switching network test has passed.
Optionally, in the embodiment of the present invention, the detecting unit 201 may collect the test result of each unit to be tested at intervals of a preset time period, so that the workload of the detecting unit may be reduced to a certain extent; of course, the detecting unit 201 may also continuously collect the test results of each unit to be tested to collect the test results of each unit to be tested as much as possible, thereby ensuring the accuracy of determining whether each unit to be tested is abnormal according to the test results.
Optionally, in the embodiment of the present invention, the detecting unit 201 acquires the test result of each unit to be tested, that is, the detecting unit 201 acquires the packet loss reason of each unit to be tested, which is recorded by the network processor, such as the packet loss reason of the port, the packet loss reason of the random access memory, the packet loss reason of the switching network, and the like.
Optionally, in the embodiment of the present invention, the detecting unit 201 determines whether each unit to be detected is abnormal according to the acquired packet loss reason of each unit to be detected recorded by the network processor, for example, when the detecting unit acquires the packet loss reason of the network processor, it may determine that the current network processor is abnormal; when the detection unit acquires the reason for the packet loss of the port, the current port is determined to be abnormal; when the detection unit acquires the packet loss reason of the random access memory, the current random access memory can be determined to be abnormal; when the detection unit acquires the reason for packet loss of the switching network, the abnormality of the current switching network can be determined.
Optionally, in the embodiment of the present invention, the detecting unit 201 further receives a detection message sent from the network processor, further performs Cyclic Redundancy Check (CRC) on the detection message to obtain a Check result, and further determines whether each unit to be detected is abnormal according to the Check result and the collected reason for each packet loss.
In the board provided in the embodiment of the present invention, the detection unit 201 inside the board sends the detection message to the network processor 202, further, the network processor 202 tests each unit to be tested according to the detection message, further, the detection unit 201 collects the test result of each unit to be tested, and further, the detection unit 201 determines whether each unit to be tested is abnormal according to the test result; the problems of a plurality of defects, low detection efficiency and high detection difficulty in a related technology through an instrument detection mode are solved. That is, the single board provided by the embodiment of the present invention realizes the detection of each unit to be detected through the detection unit inside the single board, reduces the dependence on the instrument, has comprehensive RAM screening, small equipment test coupling, is easy to position, has high screening efficiency, and greatly improves the equipment screening efficiency; meanwhile, the expenditure can be saved to a certain extent.
Example three:
the embodiment of the invention is exemplified by a 1ge (gigabit ethernet) service single board related to application scenario 1 on the basis of the first embodiment and the second embodiment.
It should be understood that, in the entire PTN network device, there are many GE service boards involved, and the processing procedure of each GE service board is similar, and in the embodiment of the present invention, a certain GE service board is selected for description, and the port with m slot position 1 is used for example description.
The PTN network equipment starts a self-flow test mode, and issues the configuration attribute related to the self-flow to each module to be tested, wherein the flow rate of the flow is 800Mbit/s, and because the type of the currently detected service single board is a 1GE port type, the flow of the issued detection message meets the port detection level, internal circulating loopback processing is not needed; the detection flow includes the following steps, and please refer to fig. 3, which is a schematic structural diagram of the method for detecting a 1GE service single board message according to the embodiment of the present invention:
the method comprises the following steps: the detection unit starts to send a packet, detects that the message carries fixed target MAC, source MAC, ETYPE and random payload content, additionally detects the slot position m and the port number 1 where the single board is located, sends the message to the network processor by a protocol channel specific to the detected message, and jumps to the second step;
step two: after receiving the detection message, the network processor judges whether a spontaneous flow detection mode is started or not, if not, the network processor discards the message and finishes the process; if yes, jumping to the third step;
step three: the network processor performs first verification on the received detection message according to the pre-stored detection message, namely, performs comparison and judgment on key fields (such as a destination MAC address, a source MAC address and an Ethernet type), and optionally, judges whether the BIT of the key fields is modified; if some BITs are turned over and modified, discarding and recording the reason of packet loss, and jumping to the step eleven; if the detected message is normal, jumping to the fourth step;
step four: after the network processor detects the network processor, searching a corresponding port information table 1 through the information of the slot position m and the port number 1 carried by the detection message to obtain a downstream id in the outflow direction, then sending the detection message to the port 1, and jumping to the fifth step;
step five: the port 1 sends the detection message to the network processor, and as the port is provided with the optical fiber self-loop, the detection message continuously loops back to the single-board service detection from the optical port, and the operation is skipped to the step six;
step six: after the detection message loops back to the single-board service, the detection message is processed by the network processor again, the network processor performs a second check on the received detection message, that is, performs a comparison and judgment on key fields (such as a destination MAC address, a source MAC address, and an ethertype), and optionally, judges whether BIT BITs of the key fields are modified; if some BITs are turned over and modified, discarding and recording the reason of packet loss, and jumping to the step eleven; if the detected message is normal, jumping to the seventh step;
step seven: after the network processor detects the port, the random value of the preset position in the detection message is used as a key to search the table entry contents of the random access memories of different types, wherein the key is related to the size of the table entry distribution space stored in the different random access memories, and in order to meet the requirement that all the random access memory spaces can be detected, the matching between the number of bits of the key and the total number of address entries of the table entry needs to be ensured; after table lookup, judging whether a return value (namely a value searched from the table item content) is consistent with a certain specific value written in advance, if not, discarding abnormally and recording the reason of packet loss, and jumping to the step eleven; if yes, jumping to the step eight;
step eight: after the network processor detects the random access memory, the corresponding port information table 2 is searched through the slot position m and the port number 1 carried by the detection message to obtain the upstream id sent to the switching network, the detection message is sent to the switching network, and the step nine is skipped;
step nine: after the detection message returns to the network processor through the switching network, the network processor performs third verification on the received detection message, namely, performs comparison and judgment on key fields (such as a destination MAC address, a source MAC address and an Ethernet type), optionally, judges whether BIT BITs of the key fields are modified, discards and records the reason of packet loss if some BIT BITs are modified by overturning, and jumps to the eleventh step; if the detection message is normal, jumping to the step ten;
step ten: the network processor sends the detection message to the detection unit;
step eleven: the detection unit acquires the reasons of all packet loss recorded by the network processor;
it is noted that step eleven may be performed in parallel with steps three through ten.
Step twelve: the detection unit carries out Cyclic Redundancy Check (CRC) on the detection message according to the received detection message sent by the network processor to obtain a check result;
step thirteen: and the detection unit determines whether each unit to be detected is abnormal or not according to the verification result and the acquired reasons of each packet loss.
Optionally, the detection unit performs CRC on the detection packet, and performs statistics on the collected reasons of each packet loss, for example, records the number of error packets, the slot number of the source board, and the like, thereby completing detection on each module through which the GE port service type board passes.
Example four:
the embodiment of the invention is exemplified by a single board port of an application scenario 2 related to 10ge (gigabit ethernet) service on the basis of the first embodiment and the second embodiment.
It should be understood that, there are many 10GE service boards involved in the whole PTN network device, and the processing procedure of each 10GE service board is similar, and in the embodiment of the present invention, a certain GE service board is selected for description, and is exemplified by the port of slot n 1 therein.
The PTN network equipment starts a self-flow test mode, and issues the configuration attribute related to self-flow to each module to be tested, wherein the flow rate of the flow is 800Mbit/s, and because the type of the currently detected service single board is 10GE port type, the flow rate of the issued detection message 800M cannot meet the port detection level, and internal circulation loopback processing is needed; according to the condition that 10G/800M is more than 12 times, the cycle number Q is 12, and 12 × 800Mbit/s is 9.6G, so that the verification requirement is met; when the detection unit starts to send the detection message, the cycle number Q carried by the detection message is 12; the detection flow includes the following steps, and please refer to fig. 4, which is a schematic structural diagram of the method for detecting a 10GE service single board message according to the embodiment of the present invention:
the method comprises the following steps: the detection unit starts to send a packet, detects that the message carries fixed target MAC, source MAC, ETYPE and random payload content, in addition, the slot position n and the port number 1 where the single board is to be detected are located, a specific protocol channel of the detected message sends the message to the network processor, and the step two is skipped;
step two: after receiving the detection message, the network processor judges whether the spontaneous flow mode detection is started or not, if not, the network processor discards the message and finishes the process; if yes, jumping to the third step;
step three: the network processor performs first verification on the received detection message according to the pre-stored detection message, namely, performs comparison and judgment on key fields (such as a destination MAC address, a source MAC address and an Ethernet type), and optionally, judges whether the BIT of the key fields is modified; if some BITs are turned over and modified, discarding and recording the reason of packet loss, and jumping to the step thirteen; if the detected message is normal, jumping to the fourth step;
step four: after the network processor detects the network processor, searching a corresponding port information table 1 through information of a slot position n and a port number 1 carried by a detection message to obtain a downstream id in the outflow direction, then sending the detection message to the port 1, and jumping to the fifth step for processing;
step five: the port 1 sends the detection message to the network processor, and as the port is provided with the optical fiber self-loop, the detection message continuously loops back to the single-board service detection from the optical port, and the operation is skipped to the step six;
step six: after the detection message loops back to the single-board service, the detection message is processed by the network processor again, the network processor performs a second check on the received detection message, that is, performs a comparison and judgment on key fields (such as a destination MAC address, a source MAC address, and an ethertype), and optionally, judges whether BIT BITs of the key fields are modified; if some BITs are turned over and modified, discarding and recording the reason of packet loss, and jumping to the step thirteen; if the detected message is normal, jumping to the seventh step;
step seven: the network processor takes the random value of the preset position in the detection message as a key to search the table entry contents of the random access memories of different types, wherein the key is related to the size of the table entry distribution space stored in the different RAMs, and in order to meet the requirement that all the random access memory spaces can be detected, the bit number of the key is required to be matched with the total address entry number of the table entries; after table lookup, judging whether the returned value (i.e. the value searched from the table entry content) is consistent with a certain pre-written specific value, if not, discarding the exception and recording the reason of packet loss, and jumping to step thirteen; if yes, jumping to the step eight;
step eight: after the network processor detects the random access memory, the corresponding port information table 2 is searched to obtain the upstream id sent to the exchange by detecting the slot position n and the port number 1 carried by the message, the detection message is sent to the exchange network, and the step nine is skipped;
step nine: the network processor judges whether the flow circulation times Q is 0, if not, the circulation times Q are decreased by 1, then the detection message is sent to the switching network through the acquired uplink flow id, and the circulation processing is continued (namely, the circulation execution steps four to eight); if the number is equal to 0, the detection message carries a special destination port number x value, then the detection message is sent to a switching network, and the step ten is skipped;
step ten: after the detection message returns to the network processor through the switching network and goes downstream, the network processor performs a third check on the received detection message, i.e., performs a comparison and judgment on key fields (such as a destination MAC address, a source MAC address, and an ethertype), and optionally, judges whether BIT BITs of the key fields are modified; if some BITs are turned over and modified, discarding and recording the reason of packet loss, and jumping to the step thirteen; if the detected message is normal, jumping to the eleventh step;
step eleven: when the cycle times Q are decreased to be not 0, the detection message is switched to the downlink from the common channel, and when the cycle times Q are decreased to be 0, the detection message is switched to the downlink from the special channel y; if the detection message comes from a common channel, jumping to the fourth step, and if the detection message comes from a special channel y (x and y have a specific mapping relation), indicating that the detection process of the detection message meets the detection purpose, jumping to the twelfth step;
step twelve: the network processor sends the detection message to the detection unit;
step thirteen: the detection unit acquires the reasons of all packet loss recorded by the network processor;
it is noted that step thirteen may be performed in parallel with steps three through twelve.
Fourteen steps: the detection unit carries out Cyclic Redundancy Check (CRC) on the detection message according to the received detection message sent by the network processor to obtain a check result;
step fifteen: and the detection unit determines whether each unit to be detected is abnormal or not according to the verification result and the acquired reasons of each packet loss.
Optionally, the detection unit performs CRC on the detection packet, and performs statistics on the collected reasons of each packet loss, for example, records the number of error packets, the slot number of the source board, and the like, so as to complete detection on each module passed by the 10GE interface service type board.
It should be noted that, in the embodiment of the present invention, the example that the cycle number Q takes the value of 12 is used for illustration, and in practical application, flexible adjustment needs to be performed according to a specific application scenario.
Example five:
in order to solve the problems of various defects, low detection efficiency and high detection difficulty in a meter detection manner in the related art, an embodiment of the present invention provides a packet transport network PTN network device, which includes at least one board as described in the second embodiment, and as shown in fig. 5, the packet transport network PTN network device includes K boards, where K is an integer greater than or equal to 1.
Please refer to fig. 6, which shows a PTN network device of a packet transport network including m slot boards according to the third embodiment, where each slot board has r ports, and m and r are integers greater than or equal to 1;
please refer to fig. 7, which shows a PTN network device of a packet transport network including n slot boards according to the fourth embodiment, where each slot board has r ports, and n and r are integers greater than or equal to 1;
it should be noted that, in practical applications, the values of m, n, and r can be flexibly adjusted according to specific application scenarios.
It is also worth noting that, in order to avoid redundant description, all of the examples in the second to fourth embodiments are not fully set forth in the present embodiment, and it should be clear that all of the examples in the second to fourth embodiments are applicable to the present embodiment.
The packet transport network PTN network device provided in the embodiment of the present invention includes at least one board as described in the second to fourth embodiments, where the detection unit inside the board sends a detection message to the network processor, and further the network processor tests each unit to be tested according to the detection message, and further the detection unit collects test results of each unit to be tested, and further the detection unit determines whether each unit to be tested is abnormal according to the test results; the problems of a plurality of defects, low detection efficiency and high detection difficulty in a related technology through an instrument detection mode are solved. That is, the packet transport network PTN network device provided in the embodiment of the present invention implements detection of each unit to be detected by the detection unit inside the board included in the PTN network device, reduces dependence on instruments, has comprehensive RAM screening, small device test coupling, is easy to locate, has high screening efficiency, and greatly improves device screening efficiency; meanwhile, the expenditure is saved to a certain extent.
Example six:
embodiments of the present invention further provide a computer-readable storage medium, where one or more programs are stored, and the one or more programs are executable by one or more processors to implement the steps of the message detection method in the first embodiment.
The computer-readable storage media include volatile or nonvolatile, removable or non-removable media implemented in any method or technology for storage of information such as computer-readable instructions, data structures, computer program modules or other data. Computer-readable storage media include, but are not limited to, RAM (Random Access Memory), ROM (Read-Only Memory), EEPROM (Electrically Erasable Programmable Read-Only Memory), flash Memory or other Memory technology, CD-ROM (Compact disk Read-Only Memory), Digital Versatile Disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other medium which can be used to store the desired information and which can be accessed by a computer.
It will be apparent to those skilled in the art that all or some of the steps of the methods, systems, functional modules/units in the devices disclosed above may be implemented as software (which may be implemented in program code executable by a computing device), firmware, hardware, and suitable combinations thereof. In a hardware implementation, the division between functional modules/units mentioned in the above description does not necessarily correspond to the division of physical components; for example, one physical component may have multiple functions, or one function or step may be performed by several physical components in cooperation. Some or all of the physical components may be implemented as software executed by a processor, such as a central processing unit, digital signal processor, or microprocessor, or as hardware, or as an integrated circuit, such as an application specific integrated circuit. Such software may be distributed over computer-readable media, which may include computer storage media (or non-transitory media) and communication media (or transitory media), executed by a computing device, and in some cases may perform the steps shown or described in a different order than here. The term computer storage media includes volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storage of information such as computer readable instructions, data structures, program modules or other data, as is well known to those of ordinary skill in the art.
In addition, communication media typically embodies computer readable instructions, data structures, program modules or other data in a modulated data signal such as a carrier wave or other transport mechanism and includes any information delivery media as known to those skilled in the art. Thus, the present invention is not limited to any specific combination of hardware and software.
The foregoing is a more detailed description of embodiments of the present invention, and the present invention is not to be considered limited to such descriptions. For those skilled in the art to which the invention pertains, several simple deductions or substitutions can be made without departing from the spirit of the invention, and all shall be considered as belonging to the protection scope of the invention.

Claims (10)

1. A message detection method is applied to Packet Transport Network (PTN) network equipment and comprises the following steps:
a detection unit inside the single board sends a detection message to a network processor;
the network processor tests each unit to be tested according to the detection message;
the detection unit acquires the test result of each unit to be tested;
and the detection unit determines whether each unit to be tested is abnormal or not according to the test result.
2. The message detection method of claim 1, wherein the unit under test comprises at least one of a port, a random access memory, and a switching network.
3. The message detection method according to claim 2, wherein when the unit under test includes a port, a random access memory, and a switching network, the network processor sequentially tests the port, the random access memory, and the switching network in the order of the port, the random access memory, and the switching network according to the detection message.
4. The message detection method of claim 3, wherein before the network processor tests each unit under test according to the detection message, the method further comprises:
the network processor compares whether the key field of the detection message is consistent with the key field of the pre-stored detection message;
if not, discarding the detection message and recording the reason of packet loss;
and if so, sending the detection message to the port.
5. The packet detection method of claim 4, wherein the network processor testing the port comprises:
the port receives a detection message sent by the network processor;
the port forwards the detection message to the network processor;
the network processor compares whether the key field of the detection message sent to the port is consistent with the key field of the detection message received from the port;
if not, discarding the detection message and recording the reason of packet loss;
and if so, sending the detection message to the random access memory through the port.
6. The message detection method of claim 4, wherein the network processor testing the random access memory comprises:
the network processor takes a value corresponding to a preset position in the detection message as a keyword, and searches table item contents of random access memories of different types according to the keyword;
the network processor compares whether the value found from the entry content is consistent with a pre-written value;
if not, discarding the detection message and recording the reason of packet loss;
and if so, sending the detection message to the switching network.
7. The message detection method of claim 4, wherein the network processor testing the switching network comprises:
the switching network receives a detection message sent by the random access memory;
the switching network forwards the detection message to the network processor;
the network processor compares whether the key field of the detection message sent to the switching network is consistent with the key field of the detection message sent from the switching network;
if not, discarding the detection message and recording the reason of packet loss;
and if so, sending the detection message to the detection unit.
8. The message detection method according to any of claims 4-7, wherein the collecting, by the detection unit, the test results of the units under test comprises:
the detection unit acquires the reasons of all packet loss recorded by the network processor;
the detecting unit determines whether each unit to be tested is abnormal according to the test result, and the method comprises the following steps:
the detection unit carries out Cyclic Redundancy Check (CRC) on the detection message according to the received detection message sent by the network processor to obtain a check result;
and the detection unit determines whether each unit to be detected is abnormal or not according to the verification result and the acquired reason for each packet loss.
9. A single board, wherein the single board comprises a detection unit and a network processor;
the detection unit sends a detection message to the network processor;
the network processor is used for testing each unit to be tested according to the detection message;
the detection unit is used for collecting the test result of each unit to be tested and determining whether each unit to be tested is abnormal or not according to the test result.
10. A packet transport network, PTN, network device, characterized in that it comprises at least one board according to claim 9.
CN201911055521.6A 2019-10-31 2019-10-31 Message detection method, single board and Packet Transport Network (PTN) network equipment Pending CN112751723A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911055521.6A CN112751723A (en) 2019-10-31 2019-10-31 Message detection method, single board and Packet Transport Network (PTN) network equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911055521.6A CN112751723A (en) 2019-10-31 2019-10-31 Message detection method, single board and Packet Transport Network (PTN) network equipment

Publications (1)

Publication Number Publication Date
CN112751723A true CN112751723A (en) 2021-05-04

Family

ID=75645637

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911055521.6A Pending CN112751723A (en) 2019-10-31 2019-10-31 Message detection method, single board and Packet Transport Network (PTN) network equipment

Country Status (1)

Country Link
CN (1) CN112751723A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112995811A (en) * 2021-05-19 2021-06-18 武汉长光科技有限公司 Service fulfillment detection method and device and computer readable storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101924659A (en) * 2009-06-12 2010-12-22 中兴通讯股份有限公司 Network equipment and method for detecting links of physical ports of same
CN102143014A (en) * 2010-11-03 2011-08-03 华为数字技术有限公司 Single board failure detection method, single board and router
CN103138996A (en) * 2011-11-25 2013-06-05 中兴通讯股份有限公司 State detecting method of distributed system and distributed system
WO2016082425A1 (en) * 2014-11-24 2016-06-02 中兴通讯股份有限公司 Memory detecting method and network processor
CN105656708A (en) * 2014-11-19 2016-06-08 中兴通讯股份有限公司 Single-board testing method and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101924659A (en) * 2009-06-12 2010-12-22 中兴通讯股份有限公司 Network equipment and method for detecting links of physical ports of same
CN102143014A (en) * 2010-11-03 2011-08-03 华为数字技术有限公司 Single board failure detection method, single board and router
CN103138996A (en) * 2011-11-25 2013-06-05 中兴通讯股份有限公司 State detecting method of distributed system and distributed system
CN105656708A (en) * 2014-11-19 2016-06-08 中兴通讯股份有限公司 Single-board testing method and device
WO2016082425A1 (en) * 2014-11-24 2016-06-02 中兴通讯股份有限公司 Memory detecting method and network processor

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
吕守业, 龙腾, 李方慧, 闫肃: "基于FPGA的机载合成孔径雷达数字信号处理机接口板卡的设计与实现", 电子技术应用, no. 11 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112995811A (en) * 2021-05-19 2021-06-18 武汉长光科技有限公司 Service fulfillment detection method and device and computer readable storage medium
CN112995811B (en) * 2021-05-19 2021-07-30 武汉长光科技有限公司 Service fulfillment detection method and device and computer readable storage medium

Similar Documents

Publication Publication Date Title
US9680720B1 (en) Operations, administration, and maintenance (OAM) engine
US7881221B2 (en) Hardware implementation of network testing and performance monitoring in a network device
US7280486B2 (en) Detection of forwarding problems for external prefixes
US10567123B2 (en) Methods, systems and computer readable media for evaluating link or component quality using synthetic forward error correction (FEC)
US7855952B2 (en) Silent failure identification and trouble diagnosis
WO2002103520A1 (en) System and method for rapid fault isolation in a storage network by counting erronoeus packets
EP3528434B1 (en) Method and device for measuring delay
CN102571492B (en) Method and device for detecting failure of routing equipment
US20100165849A1 (en) Failure Detection in IP Networks Using Long Packets
US20180091405A1 (en) Software method to detect and prevent silent datapath ip route lookup failures
EP3232620B1 (en) Data center based fault analysis method and device
CN113708995A (en) Network fault diagnosis method, system, electronic equipment and storage medium
CN107516547A (en) The processing method and processing device of internal memory hard error
CN108449228A (en) Message processing method and the network equipment
CN110784373A (en) Virtual network convergence method and device
CN111200544B (en) Network port flow testing method and device
CN112751723A (en) Message detection method, single board and Packet Transport Network (PTN) network equipment
CA3103276A1 (en) Application-aware links
CA2529599C (en) Method and apparatus for providing tandem connection, performance monitoring, and protection architectures over ethernet protocols
US20140298148A1 (en) Trend-analysis scheme for reliably reading data values from memory
CN102308524B (en) Dynamic tunnel fault diagnosis method and device and system
US20150089047A1 (en) Cut-through packet management
CN111835641B (en) Fault detection method, server and acquisition equipment
US8619627B2 (en) Automatic determination of groupings of communications interfaces
EP3585001A1 (en) A method for resetting a packet processing component to an operational state

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