CN109617767A - A kind of real-time adjustment method and device of the loop back processing being of message in the chips - Google Patents

A kind of real-time adjustment method and device of the loop back processing being of message in the chips Download PDF

Info

Publication number
CN109617767A
CN109617767A CN201910131616.5A CN201910131616A CN109617767A CN 109617767 A CN109617767 A CN 109617767A CN 201910131616 A CN201910131616 A CN 201910131616A CN 109617767 A CN109617767 A CN 109617767A
Authority
CN
China
Prior art keywords
message
debugging
identification information
loop back
module
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
CN201910131616.5A
Other languages
Chinese (zh)
Other versions
CN109617767B (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.)
Centec Networks Suzhou Co Ltd
Original Assignee
Centec Networks Suzhou 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 Centec Networks Suzhou Co Ltd filed Critical Centec Networks Suzhou Co Ltd
Priority to CN201910131616.5A priority Critical patent/CN109617767B/en
Publication of CN109617767A publication Critical patent/CN109617767A/en
Application granted granted Critical
Publication of CN109617767B publication Critical patent/CN109617767B/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/50Testing arrangements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/74Address processing for routing
    • H04L45/745Address table lookup; Address filtering
    • H04L45/74591Address table lookup; Address filtering using content-addressable memories [CAM]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Debugging And Monitoring (AREA)

Abstract

Present invention discloses the real-time adjustment methods and device of a kind of message loop back processing being in the chips, which comprises the loopback number that is pre-configured with the identification information of debugging message in the chips and will debug;Message is sent, judges whether message is debugging message according to the identification information and transmitted message identification information that are pre-configured with debugging message, if so, it is the debugging identification information for debugging message that identification message is arranged in message identification information;Judge whether identification message is debugs whether message and actual rings round trip number are equal to the loopback number that is pre-configured with and will debug to debugging identification information, if being, saves the processing information of message in the chip into debugging register.The present invention realizes the real-time debugging to message loop back processing being, and the difficulty of chip message loop back processing being debugging greatly reduces, and greatly improves debugging efficiency when chip message loop back processing being, shortens the chip development period.

Description

A kind of real-time adjustment method and device of the loop back processing being of message in the chips
Technical field
The present invention relates to a kind of message debugging techniques, more particularly, to a kind of real-time tune of message loop back processing being in the chips Method for testing and device.
Background technique
In complicated network chip design, to adapt to a variety of different network protocols, various types of messages are from difference Chip network entrance enter after chip processing and be sent to the outlet of each chip network again, during this message be frequently necessary to by Loop back processing being, and loopback number is indefinite.
When traditional message is debugged, the message with debugging identification information can be sent by CPU, make chip in the processing message When can store message debugging identification information to register, to identify the message when entrance message is handled, and store The Debugging message of the message, and then be used to analyze debugging.
But since register is once written over, which can only be primary by storage, i.e., can only store and be sent into core for the first time The message information of piece can not debug the message of loop back processing being.As shown in Figure 1.The technology can only be sent out in debugging using CPU Send the special message with debugging identification information, and the message that chip network interface cannot be used to send, because of chip network Interface can not directly transmit the message with debugging identification information.Simultaneously the technology can only stored messages entrance message processing when Message information this time, for the message of loop back processing being can not stored messages effective information debug.
Summary of the invention
It is an object of the invention to overcome the deficiencies of existing technologies, a kind of the real-time of message loop back processing being in the chips is provided Adjustment method and device.
To achieve the above object, the following technical solutions are proposed: the real-time debugging of message loop back processing being in the chips by the present invention Method, comprising:
S1, is pre-configured with Debugging message and a counting memory in the chips, and the Debugging message includes debugging message Message identification information and the first loopback number, the counting memory are used for the second loopback number of recorded message;
S2 sends message, judges whether the message is debugging report according to the message identification information in the Debugging message Text, if so, it is the debugging identification information for debugging message that identification message is arranged in the message identification information;
S3, judge the debugging identification information whether identification message for debugging message and the second loopback number whether etc. In the first loopback number, if being, the processing information of the message in the chip is saved into debugging register.
Preferably, in S1, count is incremented in a message loop back processing being of every process for the counting memory.
Preferably, in S2, message is sent from chip network interface or CPU.
Preferably, in S2, if the message identification information in message is consistent with preconfigured message identification information, judge Message is debugging message.
Preferably, in S2, by the debugging home position 1 in message identification information, it is denoted as the debugging identification information.
Preferably, the debugging identification information continues to be fed into the subsequent module of chip with message.
Preferably, in the S3, if the second loopback number is not equal to the first loopback number, message continues at loopback Reason, until the second loopback number is equal to the first loopback number.
Present invention further teaches another technical solutions: a kind of real-time debugging dress of message loop back processing being in the chips It sets, comprising:
The Debugging message processing module being set to before the entrance message processing module of chip, the Debugging message handle mould Block includes Debugging message presetting module, loopback number statistical module and information preservation module,
The Debugging message presetting module includes the report for debugging message for being pre-configured with Debugging message, the Debugging message Literary identification information and the first loopback number, and for judging that the message is according to the message identification information in the Debugging message No is debugging message, if so, it is the debugging identification information for debugging message that identification message is arranged in the message identification information;
The loopback number statistical module is used for the second loopback number of recorded message, and for judging second loopback Whether number is equal to the first loopback number;
The information preservation module is used in the debugging identification information be debugging message and the second loopback number etc. When the first loopback number, the processing information of the message in the chip is saved into debugging register.
Preferably, described device further includes CPU and chip network interface, sends report from the CPU or chip network interface Text gives Debugging message processing module.
Preferably, the debugging identification information continues to be fed into the subsequent module of chip with message, the subsequent module packet Include the entrance message processing module being connected with Debugging message processing module, the message being connected with entrance message processing module letter Cease memory module, and with message information memory module and the outlet message processing module (MPM) being connected with Debugging message processing module.
The beneficial effects of the present invention are: the present invention sends special debugging message independent of CPU, chip network is connect The common message that mouth is sent can also be debugged, and can store accurately specified loopback number simultaneously for the message of loop back processing being Message information, realize real-time debugging to message loop back processing being, the difficulty of chip message loop back processing being debugging greatly reduce Degree greatly improves debugging efficiency when chip message loop back processing being, shortens the chip development period.
Detailed description of the invention
Fig. 1 is the functional block diagram of existing message debugging;
Fig. 2 is the functional block diagram of message debugging apparatus of the present invention;
Fig. 3 is the flow diagram of message adjustment method of the present invention.
Specific embodiment
Below in conjunction with attached drawing of the invention, clear, complete description is carried out to the technical solution of the embodiment of the present invention.
The real-time adjustment method and device of a kind of disclosed message loop back processing being in the chips, by entrance Before message processing module (MPM), Debugging message processing module is added, message loop back processing being number is counted, is preset simultaneously The identification information of message will be debugged and the message information after loopback how many times will be debugged, realized in specified loopback After number, the purpose that message information at this time carries out Commissioning Analysis is recorded.
In conjunction with shown in Fig. 2 and Fig. 3, a kind of real-time debugging side of disclosed message loop back processing being in the chips Method, comprising:
S1, is pre-configured with Debugging message and a counting memory in the chips, and the Debugging message includes debugging message Message identification information and the first loopback number, the counting memory are used for the second loopback number of recorded message.
Specifically, the present invention increases a Debugging message processing module, module tool before entrance message processing module Body includes a Debugging message presetting module, loopback number statistical module and information preservation module, wherein Debugging message presetting module The first loopback number checkCnt for presetting the message identification information that will debug message He will debug message, In, whether message identification information is debugging message for match cognization message, when implementation, may include type of message, message Source address etc.;First loopback number is used to identify the loopback number of debugging message.Debugging message presetting module can adopt when implementing With CAM (Content Addressable Memory, content adressable memory).
Include a counting memory in loopback number statistical module, unites for the second loopback number to debugging message Meter, is denoted as loopCnt, and when implementation, it is 0 that its initial value, which is arranged, and message is every to pass through a loop back processing being, and loopCnt adds 1.
S2 sends message, judges whether the message is debugging report according to the message identification information in the Debugging message Text, if so, it is the debugging identification information for debugging message that identification message is arranged in the message identification information.
Specifically, due to increasing the Debugging message processing module of configuration message identification information, so message is can be by CPU or chip network interface are sent, and message initially enters the Debugging message presetting module of Debugging message processing module, Debugging message Presetting module judges whether the message is debugging message according to the message identification information configured in it: specifically judging in the message Whether message identification information matches with preset message identification information, if matching, which is debugging message, and It is the debugging identification information for debugging message that identification message is arranged in message identification information, specifically by message identification in the present embodiment Debugging marker in information, which is drawn high, sets 1, is denoted as isDebugPkt, i.e., when debugging marker is 1, is identified as debugging message. The debugging identification information can continue together to be sent to message subsequent module, and (message information memory module i.e. shown in Fig. 2 goes out Mouth message processing module (MPM), and it is looped back to Debugging message processing module) in.If not debugging message, the then message identification of the message Information is then mismatched with message identification information preset in CAM.
S3, judge the debugging identification information whether identification message for debugging message and the second loopback number whether etc. In the first loopback number, if being, the processing information of the message in the chip is saved into debugging register.
It specifically, whether is debugging message according to above-mentioned debugging identification information judgment, even above-mentioned isDebugPkt is 1, Then it is identified as debugging message.
Judge whether the second loopback number is equal to the first loopback number, specifically, is sent into debugging for the first time in message When message processing module, loopCnt is 0, at this time if the message identification information received and preset message identification in CAM Debugging marker in message identification information is then drawn high and sets 1, is denoted as isDebugPkt by information matches, the debugging identification information It can continue to be sent in subsequent module together with message.Subsequent packet is every to pass through a loop back processing being, and loopCnt adds 1, if judgement IsDebugPkt be 1 and first loopback number checkCnt be equal to the second loopback number loopCnt, then save message at this time The relevant information of portion's processing is into debugging register in the chip, and otherwise message continues loop back processing being, until the second loopback number LoopCnt is equal to the first loopback number checkCnt, then saves the relevant information of message at this time portion's processing in the chip to tune It tries in register.
If the first loopback number checkCnt is 0 in CAM, i.e., the message information that will be debugged is not by loopback The initial message of reason, then the message information saved is exactly initial message information;If the first loopback number checkCnt be greater than etc. In 1, i.e., the message information that will be debugged is the message that have passed through loop back processing being at least once, and step S3 is particularly critical at this time, this When message identification information compared initial message identification information and be varied, it is only necessary to judge the identification information that message carries Whether isDebugPkt is 1, rather than compares whether the identification information prestored in message identification information and CAM at this time matches, Then until loopCnt is equal to checkCnt, the message relevant information that portion is handled in the chip stored at this time can be used to adjust Examination analysis.
The solution of the present invention is illustrated with a specific embodiment below:
By taking the real-time debugging for realizing the message P for needing loop back processing being 5 times as an example, the identification information of the message includes message class Type, message source address etc., it is assumed that be converted into 2 binary informations and be recorded as 0xA500005A, and key identification information be high 8bit and Low 8bit, i.e. 0xA55A.Assuming that the information of message P of the storage after 2 loop back processing beings will be debugged, i.e. checkCnt is 2。
The first step configures CAM.Presetting message key identification information is 0xA55A, and will be debugged at storage loopback The loopback number checkCnt for managing message information is 2;
Second step sends message.Send message from chip network interface or CPU, the message key identification information with 0xA55A matches;
Third step, according to CAM configuration information, when message is sent into Debugging message processing module for the first time, the message P that receives Key identification information and preset message identification information matches in CAM, by the debugging marker in the identification information of message P It draws high and sets 1, be denoted as isDebugPkt, which can continue to be sent in subsequent module together with message P;
4th step, the identification information isDebugPkt of message P is set to 1 in the third step, but in first time processing report LoopCnt is 0 when literary P, is not equal to checkCnt, therefore does not save this message information, and message enters loop back processing being process.Together Reason, loopCnt is 1 after 1 loop back processing being, is still not equal to checkCnt, therefore does not save this message information, message Go successively to loop back processing being process.After loop back processing being 2 times, loopCnt 2 is equal to checkCnt, that is, can be reserved for report at this time Literary information is used to Commissioning Analysis.
The present invention program is effective for all types of messages, it is only necessary to according to different type message, corresponding message be arranged Identification information makes itself and identification information match corresponding in CAM, further according to the loopback number of setting, can be realized to all kinds of reports Message information record after the corresponding number of literary loop back processing being process loopback, achievees the purpose that debug in real time.
The present invention can store use for the corresponding message information of loopback number specified during message loop back processing being Carry out Commissioning Analysis, can greatly shorten the Commissioning Analysis time of message loop back processing being, the debugging for reducing message loop back processing being is difficult Degree, and then shorten the chip development period, reduce cost.And the present invention can also be deposited by the depth and debugging for increasing CAM The number of device, the loopback Debugging message of the multiple specified loopback number of record support in primary debugging.
Technology contents and technical characteristic of the invention have revealed that as above, however those skilled in the art still may base Make various replacements and modification without departing substantially from spirit of that invention, therefore, the scope of the present invention in teachings of the present invention and announcement It should be not limited to the revealed content of embodiment, and should include various without departing substantially from replacement and modification of the invention, and be this patent Shen Please claim covered.

Claims (10)

1. a kind of real-time adjustment method of message loop back processing being in the chips characterized by comprising
S1, is pre-configured with Debugging message and a counting memory in the chips, and the Debugging message includes the message for debugging message Identification information and the first loopback number, the counting memory are used to record the second loopback number of the message that will be debugged;
S2 sends message, judges whether the message is debugging message according to the message identification information in the Debugging message, if It is that it is the debugging identification information for debugging message that identification message is then arranged in the message identification information;
S3 judges whether identification message for debugging message and the second loopback number is equal to the to the debugging identification information One loopback number saves the processing information of the message in the chip into debugging register if being.
2. the real-time adjustment method of the loop back processing being of message in the chips according to claim 1, which is characterized in that in S1, Count is incremented in a message loop back processing being of every process for the counting memory.
3. the real-time adjustment method of the loop back processing being of message in the chips according to claim 1, which is characterized in that in S2, Message is sent from chip network interface or CPU.
4. the real-time adjustment method of the loop back processing being of message in the chips according to claim 1, which is characterized in that in S2, If the message identification information in message is consistent with preconfigured message identification information, message is judged to debug message.
5. the real-time adjustment method of the loop back processing being of message in the chips according to claim 1, which is characterized in that in S2, By the debugging home position 1 in message identification information, it is denoted as the debugging identification information.
6. the real-time adjustment method of message loop back processing being in the chips according to claim 1 or 5, which is characterized in that institute Debugging identification information is stated to continue to be fed into the subsequent module of chip with message.
7. the real-time adjustment method of the loop back processing being of message in the chips according to claim 1, which is characterized in that the S3 In, if the second loopback number is not equal to the first loopback number, message continues loop back processing being, until second loopback number etc. In the first loopback number.
8. a kind of real time debugging device of message loop back processing being in the chips characterized by comprising
The Debugging message processing module being set to before the entrance message processing module of chip, the Debugging message processing module packet Debugging message presetting module, loopback number statistical module and information preservation module are included,
The Debugging message presetting module includes the message mark for debugging message for being pre-configured with Debugging message, the Debugging message Know information and the first loopback number, and for according to the message identification information in the Debugging message judge the message whether be Message is debugged, if so, it is the debugging identification information for debugging message that identification message is arranged in the message identification information;
The loopback number statistical module is used for the second loopback number of recorded message, and for judging the second loopback number Whether the first loopback number is equal to;
The information preservation module is used in the debugging identification information be debugging message and the second loopback number equal to the When one loopback number, the processing information of the message in the chip is saved into debugging register.
9. the real time debugging device of the loop back processing being of message in the chips according to claim 8, which is characterized in that the dress Setting further includes CPU and chip network interface, sends message from the CPU or chip network interface and gives Debugging message processing module.
10. the real time debugging device of the loop back processing being of message in the chips according to claim 8, which is characterized in that described Debugging identification information continues to be fed into the subsequent module of chip with message, and the subsequent module includes and Debugging message processing module The connected entrance message processing module, the message information memory module being connected with entrance message processing module, and and message Information storage module and the outlet message processing module (MPM) being connected with Debugging message processing module.
CN201910131616.5A 2019-02-22 2019-02-22 Real-time debugging method and device for message loopback processing in chip Active CN109617767B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910131616.5A CN109617767B (en) 2019-02-22 2019-02-22 Real-time debugging method and device for message loopback processing in chip

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910131616.5A CN109617767B (en) 2019-02-22 2019-02-22 Real-time debugging method and device for message loopback processing in chip

Publications (2)

Publication Number Publication Date
CN109617767A true CN109617767A (en) 2019-04-12
CN109617767B CN109617767B (en) 2022-09-23

Family

ID=66019922

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910131616.5A Active CN109617767B (en) 2019-02-22 2019-02-22 Real-time debugging method and device for message loopback processing in chip

Country Status (1)

Country Link
CN (1) CN109617767B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112148537A (en) * 2019-06-28 2020-12-29 深圳市中兴微电子技术有限公司 Bus monitoring device and method, storage medium, and electronic device

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20020015087A (en) * 2000-08-21 2002-02-27 서평원 Method for loopback test using specific pattern on LAPD chip
CN1859235A (en) * 2006-01-17 2006-11-08 华为技术有限公司 Communication device and its detecting method
US20090161565A1 (en) * 2006-04-25 2009-06-25 Tektronix International Sales Gmbh System and Method of Remote Testing in Loopback Mode Using MGCP/NCS
CN101485162A (en) * 2006-07-05 2009-07-15 Nxp股份有限公司 Electronic device, system on chip and method for monitoring data traffic
CN104158716A (en) * 2013-05-13 2014-11-19 中兴通讯股份有限公司 Method for processing message and cascading chip
CN104539561A (en) * 2014-12-29 2015-04-22 盛科网络(苏州)有限公司 Chip debugging method and device based on message processing information
CN105743807A (en) * 2014-12-11 2016-07-06 中兴通讯股份有限公司 IP network node message processing method and apparatus

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20020015087A (en) * 2000-08-21 2002-02-27 서평원 Method for loopback test using specific pattern on LAPD chip
CN1859235A (en) * 2006-01-17 2006-11-08 华为技术有限公司 Communication device and its detecting method
US20090161565A1 (en) * 2006-04-25 2009-06-25 Tektronix International Sales Gmbh System and Method of Remote Testing in Loopback Mode Using MGCP/NCS
CN101485162A (en) * 2006-07-05 2009-07-15 Nxp股份有限公司 Electronic device, system on chip and method for monitoring data traffic
CN104158716A (en) * 2013-05-13 2014-11-19 中兴通讯股份有限公司 Method for processing message and cascading chip
CN105743807A (en) * 2014-12-11 2016-07-06 中兴通讯股份有限公司 IP network node message processing method and apparatus
CN104539561A (en) * 2014-12-29 2015-04-22 盛科网络(苏州)有限公司 Chip debugging method and device based on message processing information

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
梁科等: "一种高性能网络控制器芯片的设计与应用", 《南开大学学报(自然科学版)》 *

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112148537A (en) * 2019-06-28 2020-12-29 深圳市中兴微电子技术有限公司 Bus monitoring device and method, storage medium, and electronic device
WO2020259339A1 (en) * 2019-06-28 2020-12-30 深圳市中兴微电子技术有限公司 Bus monitoring device and method, storage medium, and electronic device
JP2022534210A (en) * 2019-06-28 2022-07-28 中興通訊股▲ふん▼有限公司 Bus monitoring method, storage medium and electronic device
CN112148537B (en) * 2019-06-28 2023-10-27 深圳市中兴微电子技术有限公司 Bus monitoring device and method, storage medium and electronic device
JP7383053B2 (en) 2019-06-28 2023-11-17 セインチップス テクノロジー カンパニーリミテッド Bus monitoring methods, storage media and electronic devices

Also Published As

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

Similar Documents

Publication Publication Date Title
CN109361562B (en) Automatic testing method based on associated network equipment access
CN111030876B (en) NB-IoT terminal fault positioning method and device based on DPI
US20190324078A1 (en) Method and Device for Calculating Household Appliance Faults
CN110175165A (en) Transaction account checking method, device, computer equipment and storage medium
WO2020253740A1 (en) Manual client status check method and device for sample verification
CN109617767A (en) A kind of real-time adjustment method and device of the loop back processing being of message in the chips
CN106953902A (en) The method and apparatus of electric energy meter firmware upgrade
CN110536323B (en) WiFi intelligent equipment acceptance detection method
CN103248547B (en) The method of Modbus RTU slave station fast Acquisition data and slave station
CN109633415B (en) Abnormal chip identification method and equipment
CN102882723B (en) Method and device for processing alarm time-sequence mismatch in communication network
CN104539348B (en) PON system link loopback detection method and device
CN106790130B (en) Message matching method and device
CN106257257B (en) A kind of method, apparatus and virtual vector analyzer detecting optical module planisphere
CN113645052B (en) Firmware debugging method and related equipment
CN109828889A (en) Method, apparatus, computer equipment and the storage medium in monitoring data library
CN105357066B (en) Remove the method and device of distal end statistical information automatically in packet loss rate measurement
CN111831496B (en) System and method for presetting factory measurement parameters of direct broadcast satellite equipment
CN109347671B (en) System and method for realizing in-band OAM Metadata editing in chip
CN107707492B (en) Method and device for reporting and issuing message
CN111401763A (en) Farm resource intelligent management method and device
CN112422360A (en) Message sampling method, device, equipment and medium
CN101137167B (en) Method and apparatus for obtaining CDMA terminal information
CN109242348A (en) Quality problems acquisition method, device and processing equipment
CN107707484A (en) A kind of message load sharing structure and method based on differentiation link identification

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

Address after: 215000 unit 13 / 16, 4th floor, building B, No.5 Xinghan street, Suzhou Industrial Park, Jiangsu Province

Applicant after: Suzhou Shengke Communication Co.,Ltd.

Address before: 215000 unit 13 / 16, 4th floor, building B, No.5 Xinghan street, Suzhou Industrial Park, Jiangsu Province

Applicant before: CENTEC NETWORKS (SUZHOU) Co.,Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant