CN100403688C - Business data packet tracing realizing method - Google Patents

Business data packet tracing realizing method Download PDF

Info

Publication number
CN100403688C
CN100403688C CNB2005100631334A CN200510063133A CN100403688C CN 100403688 C CN100403688 C CN 100403688C CN B2005100631334 A CNB2005100631334 A CN B2005100631334A CN 200510063133 A CN200510063133 A CN 200510063133A CN 100403688 C CN100403688 C CN 100403688C
Authority
CN
China
Prior art keywords
message
trace routine
stake
tracking
host program
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.)
Expired - Fee Related
Application number
CNB2005100631334A
Other languages
Chinese (zh)
Other versions
CN1848752A (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.)
Shenzhen Tinno Wireless Technology Co Ltd
Original Assignee
Huawei Technologies 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CNB2005100631334A priority Critical patent/CN100403688C/en
Publication of CN1848752A publication Critical patent/CN1848752A/en
Application granted granted Critical
Publication of CN100403688C publication Critical patent/CN100403688C/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Computer And Data Communications (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The present invention discloses a realizing method for tracking service data packets. In the method, a tracked host program loads a tracking stub; after a tracking program is started, the tracking program receives a communication address of the host program and transmits a tracking request to the host program; the tracking stub detects the host program according to the request and transmits the associated information of an interactive message to the tracking program when detecting that the host program transmits the interactive message; the tracking program collects the associated information of the interactive message. Through the present invention, the function of tracking real-time data of applications based on network communication interaction can be realized.

Description

A kind of business data packet tracing implementation method
Technical field
The present invention relates to the communications field, relate to a kind of business data packet tracing implementation method or rather.
Background technology
In the mutual software systems of message bag Network Based are used, between application program and the application program by communications protocol Network Based, message bag interaction data as transmission control protocol/procotol TCP/IP (TransmissionControl Protocol/Internet Protocol) agreement, existing IP network agreement packet catcher can only be followed the tracks of in the mode of IP network protocol data bag, does not have ripe business data flow tracking mode.
Summary of the invention
In view of this, main purpose of the present invention is to provide a kind of business data packet tracing implementation method, with the function that realizes that the mutual application program real time data of communication Network Based is followed the tracks of.
For reaching above purpose, technical scheme of the present invention is achieved in that
The method of the invention comprises the steps:
A, load by tracked host program and to follow the tracks of stake, the described target program of stake of following the tracks of in described host program, loading;
B, start trace routine, receive the address of described host program, and send the request of tracking to host program by this trace routine;
Tracking stake in C, the described host program is according to this request detection host program, and sends the relevant information of this interaction message when detecting host program and send interaction message to trace routine;
D, if described trace routine has been accepted the customization request that the user sends, then this trace routine is collected the relevant information of described interaction message, and asks to handle according to this customization.
Load the tracking stake by providing source code encapsulation class to carry out the integrated mode of source code level; Perhaps, by dynamic link library is provided, loads in the mode of dynamic link library and to follow the tracks of stake.
The address of described host program comprises the IP address and the PORT COM of host program.
Host program is present on the different physical locations with the tracking stake, carries out communication with Transmission Control Protocol between the two.
Described trace routine is also accepted the customization request that the user sends, and handles according to this customization request after collecting the relevant information of described interaction message.
Described customization request is the explanation of operational data structure, trace routine is accepted to be converted into discernible binary system Dat file after this customization request, and the structure exhibition information of explaining by described binary system Dat file after collecting the relevant information of described interaction message.
Described trace routine is also accepted the customization request of user's transmission and sends it to follow the tracks of stake, follows the tracks of stake and asks the relevant information of interaction message is carried out sending to trace routine after the preliminary treatment by this customization.
Described customization request comprises caller, called, controll block, program internal module, business agent's job number or message number filtercondition, or comprises these condition combination in any.
Described method further comprises: the user sends to trace routine and comprises the customization request of following the tracks of the time started and following the tracks of duration, and trace routine is accepted this customization mode with timed task of asking and started and close trace flow.
Trace routine also is provided with the filtercondition of server end message and is sent to and follows the tracks of stake, follows the tracks of stake and accepts to detect the interaction message that host program sends according to the condition of describing in the message that is provided with is set after this is provided with message, and be sent to trace routine after it is filtered.
Described interaction message comprises network interaction message, the inner interaction message of host program or log information.
It is mutual by the inside that the output interface that is arranged on host program inside detects host program to follow the tracks of stake, receives inner interaction message or log information, and its copy is sent to trace routine.
After described tracking request is accepted in described tracking stake, keep network communication to be connected by handshake mechanism and trace routine.
Comprise further behind the step D that trace routine stops tracking message to following the tracks of the stake transmission, after this message is accepted in the tracking stake, disconnects the connection with trace routine.
Following the tracks of stake accepts also to consult version and message byte preface and press the syllable sequence of determining with trace routine to send the interaction message relevant information after the described tracking request; Described trace routine is then distinguished different operating system message byte prefaces according to the version information of consulting, and the relevant information of described interaction message is converted to unified syllable sequence.
The relevant information of described interaction message is meant the copy of this interaction message or a certain field information of this interaction message.
Described tracked host program is a plurality of, and described trace routine comes the mutual sequential of acknowledge message according to the relevant information of a plurality of relevant host program interaction message of collecting.
The present invention sends to tracking server based on Transmission Control Protocol with business data packet then by the tracking stake that provides with dynamic base or source code mode is provided in host program.Host program may reside on the different physical locations with the tracking stake, can carry out communication with Transmission Control Protocol between the two, and then make the packet of tracking can be sent to the far-end tracking server, to realize the remote tracing of network interaction message.Tracking server also can be explained also mutual track of display message and message internal information according to the service logic of customization, thereby has reduced the workload of analyzing IP packet.Trace routine also can be explained structure according to customization, and internet message is showed the user intuitively, makes things convenient for the analysis of service message.Tracking server can be according to artificial appointment real-time tracking simultaneously, and tracking server can customize the host and send the filtered data bag, thereby reduces network traffics.Tracking server also can carry out timing according to user's instruction to be followed the tracks of.Under the situation that tracking server is not followed the tracks of, home server can not send any message logging message, thereby does not influence the performance of home server.This method also provides cross-platform characteristic simultaneously, follow the tracks of stake and the message bag of Unix, two kinds of different syllable sequences of Windows can be sent to trace routine,, confirm different syllable sequences, and show analysis according to following the tracks of the defined version information of stake by trace routine at same showing interface window.Described keeping track of content is not limited to network interaction message, and inner interaction message of program and log information also can be tracked.
Description of drawings
Fig. 1 is the networking schematic diagram of the method for the invention;
Fig. 2 is the schematic flow sheet of the method for the invention;
Fig. 3 is for following the tracks of handshake mechanism schematic flow sheet between stake and the trace routine.
Embodiment
The networking of business data packet tracing implementation method of the present invention as shown in Figure 1, wherein, host program is meant and requires tracked target program that this target program carries out interacting message based on mode and other programs of communications protocol.In host program, load and follow the tracks of stake, described tracking stake is meant the target program that loads in host program, be used to receive the trace command of trace routine, the network communication of keep following the tracks of between stake and the trace routine connects, and the network communication message of host program is sent to the far-end trace routine.This target program can be that the source code form also can be the form of dynamic link library.Trace routine issues trace command to following the tracks of stake, and will follow the tracks of a service message stream of beaming back and preserve displaying.
Core concept of the present invention comprises the steps: as shown in Figure 2
A, loading tracking stake in host program;
B, startup trace routine, described trace routine receives the address of tracked host program, and sends the request of tracking to host program;
Described request is accepted in C, tracking stake, when detecting host program transmission interaction message, sends the relevant information of this interaction message to trace routine according to described request;
D, trace routine are collected the relevant information of described interaction message.
As the described business data packet tracing implementation method of the first embodiment of the present invention, specifically comprise the steps:
A, loading messages tracking stake in host program;
Can load by providing source code encapsulation class to carry out the integrated mode of source code level, also can be by dynamic link library be provided, load in the mode of dynamic link library.Host program may reside on the different physical locations with the tracking stake, can carry out communication with Transmission Control Protocol between the two.
B, start trace routine, receive the IP address and the PORT COM information of tracked host program.
C, trace routine send the information order that request is followed the tracks of to host program, and described information order is accepted in the tracking stake and trace routine carries out communication initialization and other configuration initialization.
Maintenance network communication between D, tracking stake and the trace routine connects, and when the tracking stake detects host program transmission network communication message, sends the copy of this network communication message to trace routine.
E, trace routine are preserved after collecting message copying.
Follow the tracks of between stake and the trace routine and can keep network communication to connect by handshake mechanism, as shown in Figure 3:
After following the tracks of an information order that the request of accepting the trace routine transmission is followed the tracks of, follow the tracks of stake and connect message to connect to the trace routine transmission.After connection was set up, the tracking stake sent heartbeat request to trace routine, and trace routine is accepted to feed back a heartbeat response message to the tracking stake after the described heartbeat request.
As the second embodiment of the present invention, trace routine is showed the message copying that traces into according to the operational data structure of customization.The user sends the customization request to trace routine, described customization request is the explanation of operational data structure, comprise message structure definition and two files of message number definition, trace routine is accepted this customization request, is that trace routine can be discerned binary system Dat file by the message conversion program with user-defined file conversion.Trace routine is showed described message copying according to the structure of described binary system Dat file explanation after collecting message copying.
As the third embodiment of the present invention, the user sends the customization request to trace routine, and described customization request comprises to be followed the tracks of the time started and follow the tracks of duration.After trace routine is accepted described customization request, start and close trace flow in the mode of timed task.When trace routine adopts the plug-in unit mode, for trace routine increases a plug-in unit dynamic base, after accepting the customization request, trace routine only need be provided with the time that needs tracking and stop to follow the tracks of according to user's request in this plug-in unit, promptly can start and close trace flow in the mode of timed task.
As the fourth embodiment of the present invention, trace routine is provided with the service end filtercondition, determines which message bag sends to trace routine.This filtercondition is provided with message sends to corresponding tracking stake, follow the tracks of stake and accept the described message that is provided with, check the message bag of each network communication message that host program sends according to the condition of describing in the message that is provided with is set, it is filtered, the message bag after filtering is sent to trace routine.Trace routine is collected behind the message bag after the described filtration its preservation.
As the fifth embodiment of the present invention, trace routine also can be accepted user's message screening customization request, trace routine should customize request and be sent to the tracking stake, follow the tracks of stake and ask the message bag of each network communication message that host program is sent to carry out filtration treatment according to this customization, pretreated relevant information is sent to trace routine preserves.Trace routine also can oneself be accepted user's message screening customization request, and the message of collecting is carried out preserving or displaying after the filtration treatment according to this request.Described user's message screening customization request comprises the various filterconditions that the user is provided with, as caller, called, controll block, program internal module, business agent's job number, message number etc., or the flexible combination of these conditions.
As the sixth embodiment of the present invention, keeping track of content is not limited to network interaction message, and inner interaction message of host program and log information also can be tracked.In host program inside output interface is set, it is inner mutual by this output interface detection host program to follow the tracks of stake, receives this inside interaction message and log information, sends the copy of inner interaction message and log information to trace routine.
As the seventh embodiment of the present invention, trace routine can be followed the tracks of a plurality of tracking stakes simultaneously, and can be by following the tracks of stake and trace routine local zone time separately, the message that tracking is obtained sorts, and realizes the message time sequence trace analysis of multi-process, many equipment with this.Trace routine receives the address of a plurality of tracked host programs, and sends the request of tracking to a plurality of host programs; Described request is accepted in tracking stake in the described host program, according to this request detection host program, when detecting host program transmission interaction message, sends the relevant information of this interaction message to trace routine; Trace routine comes the mutual sequential of acknowledge message according to the relevant information of the interaction message of a plurality of relevant host programs of collecting.
Business data packet tracing implementation method of the present invention has cross-platform characteristic.Trace routine sends the information order that request is followed the tracks of to host program, and described information order is accepted in the tracking stake and trace routine carries out communication initialization and other configuration initialization, finishes determining of version, message byte preface with this.Follow the tracks of stake and the message bag of Unix, two kinds of different syllable sequences of Windows can be sent to trace routine, by trace routine according to following the tracks of the defined version information of stake, distinguish different operating system message byte prefaces, transforming message is unified syllable sequence and shows the user then.
When trace routine adopts the plug-in unit mode, when needs increase client functionality newly, only need according to the plug-in unit template that has defined corresponding expanded function dynamic base be set in client, can in trace routine, increase function corresponding by registering functional.

Claims (16)

1. a business data packet tracing implementation method is characterized in that, comprises the steps:
A, load by tracked host program and to follow the tracks of stake, the described target program of stake of following the tracks of in described host program, loading;
B, start trace routine, receive the address of described host program, and send the request of tracking to host program by this trace routine;
Tracking stake in C, the described host program is according to this request detection host program, and sends the relevant information of this interaction message when detecting host program and send interaction message to trace routine;
D, if described trace routine has been accepted the customization request that the user sends, then this trace routine is collected the relevant information of described interaction message, and asks to handle according to this customization.
2. the method for claim 1 is characterized in that, loads the tracking stake by providing source code encapsulation class to carry out the integrated mode of source code level; Perhaps, by dynamic link library is provided, loads in the mode of dynamic link library and to follow the tracks of stake.
3. the method for claim 1 is characterized in that, the address of described host program comprises the IP address and the PORT COM of host program.
4. the method for claim 1 is characterized in that, host program is present on the different physical locations with the tracking stake, carries out communication with Transmission Control Protocol between the two.
5. the method for claim 1, it is characterized in that, described customization request is the explanation of operational data structure, trace routine is accepted to be converted into discernible binary system Dat file after this customization request, and the structure exhibition information of explaining by described binary system Dat file after collecting the relevant information of described interaction message.
6. the method for claim 1 is characterized in that, described trace routine is also accepted the customization request of user's transmission and send it to follow the tracks of stake, follows the tracks of stake and asks the relevant information of interaction message is carried out sending to trace routine after the preliminary treatment by this customization.
7. method as claimed in claim 6 is characterized in that, described customization request comprises caller, called, controll block, program internal module, business agent's job number or message number filtercondition, or comprises these condition combination in any.
8. the method for claim 1, it is characterized in that, described method further comprises: the user sends to trace routine and comprises the customization request of following the tracks of the time started and following the tracks of duration, and trace routine is accepted this customization mode with timed task of asking and started and close trace flow.
9. the method for claim 1, it is characterized in that, trace routine also is provided with the filtercondition of server end message and is sent to and follows the tracks of stake, follow the tracks of stake and accept to detect the interaction message that host program sends according to the condition of describing in the message that is provided with is set after this is provided with message, and to being sent to trace routine after its filtration.
10. the method for claim 1 is characterized in that, described interaction message comprises network interaction message, the inner interaction message of host program or log information.
11. method as claimed in claim 10 is characterized in that, it is mutual by the inside that the output interface that is arranged on host program inside detects host program to follow the tracks of stake, receives inner interaction message or log information, and its copy is sent to trace routine.
12. as each described method in the claim 1 to 11, it is characterized in that, after described tracking request is accepted in described tracking stake, keep network communication to be connected by handshake mechanism and trace routine.
13. method as claimed in claim 12 is characterized in that, further comprises behind the step D, trace routine stops tracking message to following the tracks of the stake transmission, after this message is accepted in the tracking stake, disconnects the connection with trace routine.
14. the method for claim 1 is characterized in that, follows the tracks of stake and accepts also to consult version and message byte preface and press the syllable sequence of determining with trace routine to send the interaction message relevant information after the described tracking request; Described trace routine is then distinguished different operating system message byte prefaces according to the version information of consulting, and the relevant information of described interaction message is converted to unified syllable sequence.
15. the method for claim 1 is characterized in that, the relevant information of described interaction message is meant the copy of this interaction message or a certain field information of this interaction message.
16. the method for claim 1 is characterized in that, described tracked host program is a plurality of, and described trace routine comes the mutual sequential of acknowledge message according to the relevant information of a plurality of relevant host program interaction message of collecting.
CNB2005100631334A 2005-04-04 2005-04-04 Business data packet tracing realizing method Expired - Fee Related CN100403688C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2005100631334A CN100403688C (en) 2005-04-04 2005-04-04 Business data packet tracing realizing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2005100631334A CN100403688C (en) 2005-04-04 2005-04-04 Business data packet tracing realizing method

Publications (2)

Publication Number Publication Date
CN1848752A CN1848752A (en) 2006-10-18
CN100403688C true CN100403688C (en) 2008-07-16

Family

ID=37078131

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2005100631334A Expired - Fee Related CN100403688C (en) 2005-04-04 2005-04-04 Business data packet tracing realizing method

Country Status (1)

Country Link
CN (1) CN100403688C (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101345658B (en) * 2008-08-19 2011-05-11 中兴通讯股份有限公司 Improved failure viewing apparatus and method
CN101577714A (en) * 2009-06-02 2009-11-11 中兴通讯股份有限公司 Realization method, client side, server side and system for displaying communication data packets

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH06131212A (en) * 1992-05-07 1994-05-13 Internatl Business Mach Corp <Ibm> Computer controlling method for tracking execution of target program with regard to calling of target program with other program
US20020056126A1 (en) * 2000-04-08 2002-05-09 Geetha Srikantan Streaming a single media track to multiple clients
CN1523852A (en) * 2003-02-17 2004-08-25 三星电子株式会社 Method for automatically tracing interface for exchange and access network
CN1553714A (en) * 2003-05-28 2004-12-08 吴 坚 Tracking method and system for wireless network based on position

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH06131212A (en) * 1992-05-07 1994-05-13 Internatl Business Mach Corp <Ibm> Computer controlling method for tracking execution of target program with regard to calling of target program with other program
US20020056126A1 (en) * 2000-04-08 2002-05-09 Geetha Srikantan Streaming a single media track to multiple clients
CN1523852A (en) * 2003-02-17 2004-08-25 三星电子株式会社 Method for automatically tracing interface for exchange and access network
CN1553714A (en) * 2003-05-28 2004-12-08 吴 坚 Tracking method and system for wireless network based on position

Also Published As

Publication number Publication date
CN1848752A (en) 2006-10-18

Similar Documents

Publication Publication Date Title
CN102377814B (en) Remote assistance service method aiming at embedded operation system
CN108363662A (en) A kind of applied program testing method, storage medium and terminal device
CN101291343B (en) Remote controlling method and system based on transparent proxy equipment
EP3809222B1 (en) Vehicle remote diagnosis method and system
CN110677432A (en) Network protocol internal proxy forwarding method, device, medium and terminal equipment
CN106209503A (en) RPC interface test method and system
CN101094234A (en) Method and system of accurate recognition in P2P protocol based on behavior characteristics
US8156250B2 (en) Arrangements for a 3270 compatible terminal with browser capability
CN103220188B (en) A kind of HTTP data acquisition equipment
CN100403688C (en) Business data packet tracing realizing method
CN107846609B (en) Real-time transmission method, device and system for control room data
CN103368783B (en) Method, system and equipment for network communication process monitoring
CN101707622A (en) Method for realizing remote data monitoring
CN109284319A (en) A kind of auditing system based on big data visualization technique
CN105323128A (en) Method, device and system for connecting front-end device to server
CN110995538B (en) Network data acquisition method, device, system, equipment and storage medium
US8725901B2 (en) Analysis tool for intra-node application messaging
CN112702430A (en) Data transmission system and method based on cloud edge mode and Web technology and application thereof
CN106331051B (en) Document transmission method and system and reception file device send file device
WO2016091141A1 (en) Method and apparatus for information collection
CN101155177B (en) Data channel sharing system and method based on shared protocol
CN112463083B (en) Remote collection method and system for information of substrate control manager
CN109446086A (en) A kind of method of App inside packet capturing
CN111245880A (en) Behavior trajectory reconstruction-based user experience monitoring method and device
CN107181701A (en) The collection method and device of CGI data

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
ASS Succession or assignment of patent right

Owner name: SHENZHEN TINNO WIRELESS TECHNOLOGY CO., LTD.

Free format text: FORMER OWNER: HUAWEI TECHNOLOGY CO., LTD.

Effective date: 20140530

C41 Transfer of patent application or patent right or utility model
COR Change of bibliographic data

Free format text: CORRECT: ADDRESS; FROM: 518129 SHENZHEN, GUANGDONG PROVINCE TO: 518053 SHENZHEN, GUANGDONG PROVINCE

TR01 Transfer of patent right

Effective date of registration: 20140530

Address after: 4, A, building 518053, building H-3, East China Town, 1, Xiangshan East Street, Shenzhen, Guangdong, Nanshan District

Patentee after: Shenzhen Tinno Wireless Technology Co., Ltd.

Address before: 518129 Bantian HUAWEI headquarters office building, Longgang District, Guangdong, Shenzhen

Patentee before: Huawei Technologies Co., Ltd.

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

Granted publication date: 20080716

Termination date: 20190404

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