Use Wireshark to identify diameter messages

Source: Internet
Author: User

Recently, a pcrf system was developed, and the GX interface was used between pcef and pcrf Based on the Diameter protocol. Some problems occurred during the debugging process, I wanted to convert the message into XML format, but it was too troublesome. So I thought of Wireshark and checked whether it could support the Diameter protocol.

First, use tcpdump to capture packets on the server:

Sudo
Tcpdump-S 0-vvv-I lo TCP and host 127.0.0.1 and/(Port 6868 or
Port 5868/)-w gx. Cap

The GX port used by pcrf is 5868, And the 6868 port used by pcef is input to GX. in the CAP file. after the file is stored locally, it is opened with Wireshark. It is found that it can only be parsed to the transport layer protocol and cannot see the diameter format I want.

It is estimated that none of the ports I use are diameter's standard ports, so I cannot identify my packets as diameter messages.


Select a diameter packet, then select analyze from the wireshark menu, and select decode
As, the following dialog box is displayed:

Select the Diameter protocol on the right side and the target port is 6868. In this way, Wireshark can successfully identify the diameter message. It is nice to see AVP directly.

 

 

 

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.