Hi Experts, I want to correlate multiple GoPs based on certain attribute from each PDU. How can I build a logic using MATE scenario (e.g) SIP packet which has media port information H248 packet which also has media port information I want to group SIP and H248 packet where the media port is of same value BR, sshark asked 14 Sep '15, 15:55 sshark |
One Answer:
Do you want to correlate multiple GoPs or create a new GoP which contains the SIP and H248 packets? If the former then you want to create a Group of Groups. In that example If the latter then, well, just create another GoP. answered 15 Sep '15, 06:49 JeffMorriss ♦ edited 12 Feb '16, 13:01 cmaynard ♦♦ showing 5 of 6 show 1 more comments |
I would be happy if a GoG serves my purpose. Pls refer the attached mate config example. I am having issues or confusion on how to compare two attributes
When I use this value, for some SIP packets, I get below error in wireshark when I open a capture file Expert Info (Error/Malformed): proto.c:3487: field mate.released_time is not of type FT_FLOAT
Pdu sip_pdu Proto sip Transport ip {
};
Gop sipp On sip_pdu Match (callid) {
};
Pdu megaco_pdu Proto megaco Transport sctp {
};
Gop mco On megaco_pdu Match (mgtrans) {
};
Gog tester {
};
Done;
(FYI I converted your Answer to a Comment–see the FAQ.)
For (1), yes, you’d need to put mport in both the
sipp
andmco
lines to get MATE to include only GoPs whose mport match. I’m not sure what you mean by “one for one”: if the mport is equal then the GoP will be included.For (2): that’s a bug in Wireshark. I submitted a change to have that fixed.
So, do you think - this should be a valid configuration for my purpose My actual display filter would be - mate.tester.user == xyz to filter all related SIP & H248 packets
That looks about right. I’m not sure about the “user” part in this line:
I suspect that might break things but who knows…
Ok, user is needed as I have to filter the trace based on user and not based on media port.
Above works, except the mate.released_time related error I reported before
One last question - I do have some megaco packets before the initial SIP packet, hence I could not get those megaco packets as I could not match the mport. Is it possible to process PDUs/GoPs in reverse direction or after certain PDUs are processed ?
Hmm, I thought that would be covered by the “Extra(user)” part rather than the “Member” part. But then again I’m not sure I’ve ever used a GoG in anger.
Excellent. If you pick up an automated build then that error will go away (the change was merged).
For your last question: I actually would have thought it would have worked like that today since the
mco
is matching based ontransid
notmport
. IOW themco
will contain allmegaco_pdu
s with the sametransid
regardless of themport
value and whether there’s been SIP signaling before. Thentester
will contain anmco
and asipp
.