From: janssen@parc.xerox.com (Bill Janssen) Subject: Re: Monitoring & Diagnosis of corba client/server interactions Date: 13 Apr 1999 00:00:00 GMT Message-ID: References: <7ege4i$ltg$1@nnrp1.dejanews.com> Organization: parc.xerox.com Newsgroups: comp.object.corba Prashant, I've modified 'tcpdump', a standard unix network monitoring tool, to interpret IIOP streams. I find it to be quite useful for non-invasive monitoring of CORBA communications. It's available in source form as ftp://ftp.parc.xerox.com/transient/janssen/tcpdump-3.4a6-rpc.tar.Z. Here's a sample dump of the Orbix cubit example running between an ILU client on 'watson' and an ILU server on 'insight'. For each IIOP 'packet' it sees (a packet is a fragment in IIOP 1.1, or a message in IIOP 1.0), it prints out a header d(bytes=N,[push,],version=MAJOR.MINOR,ENDIANNESS) It then optionally dumps the bytes of the packet, then prints out an interpretation of the GIOP message contained in the packet: where MTYPE is "i" for a request (invocation), "r" for reply, or "c" for a control message (all others). MPARMS vary depending on the message type; for a request, you get vers=MAJOR.MINOR,[context=CONTEXT,...],sn=SERIAL-NUMBER, method=METHOD-NAME,disc=KEY-OF-DISCRIMINANT)> For a reply, vers=MAJOR.MINOR,[context=CONTEXT,...],sn=SERIAL-NUMBER, REPLY-STATUS For various control messages, the data associated with those messages. watson : 40 % ./tcpdump -P -T iiop -M giop -N host insight and tcp and port 33217 17:29:18.592580 watson.41876 > insight.33217: S 1452944633:1452944633(0) win 8760 (DF) 17:29:18.592988 insight.33217 > watson.41876: S 865185575:865185575(0) ack 1452944634 win 8760 (DF) 17:29:18.593062 watson.41876 > insight.33217: . ack 1 win 8760 (DF) 17:29:18.594927 watson.41876 > insight.33217: P 1:122(121) ack 1 win 8760 > (DF) 17:29:18.595507 insight.33217 > watson.41876: . ack 122 win 8760 (DF) 17:29:18.596882 insight.33217 > watson.41876: P 1:46(45) ack 122 win 8760 > (DF) 17:29:18.611555 watson.41876 > insight.33217: P 122:224(102) ack 46 win 8760 > (DF) 17:29:18.612939 insight.33217 > watson.41876: P 46:72(26) ack 224 win 8760 > (DF) 17:29:18.621370 watson.41876 > insight.33217: P 224:328(104) ack 72 win 8760 > (DF) 17:29:18.622713 insight.33217 > watson.41876: P 72:100(28) ack 328 win 8760 > (DF) 17:29:18.631867 watson.41876 > insight.33217: P 328:438(110) ack 100 win 8760 > (DF) 17:29:18.634089 insight.33217 > watson.41876: P 100:134(34) ack 438 win 8760 > (DF) 17:29:18.649260 watson.41876 > insight.33217: F 438:438(0) ack 134 win 8760 (DF) 17:29:18.649526 insight.33217 > watson.41876: . ack 439 win 8760 (DF) 17:29:18.649834 insight.33217 > watson.41876: F 134:134(0) ack 439 win 8760 (DF) 17:29:18.649908 watson.41876 > insight.33217: . ack 135 win 8760 (DF) watson : 41 % -- Bill Janssen (650) 812-4763 FAX: (650) 812-4777 Xerox Palo Alto Research Center, 3333 Coyote Hill Rd, Palo Alto, CA 94304 URL: ftp://ftp.parc.xerox.com/pub/ilu/misc/janssen.html