...
There can be instances where we may require analysing analyzing the network traffic so as to find the cause of the problem. To do this we can use WireSharkWireshark.
Wireshark is a network protocol analyzer. It is "free software", you can download from
http://www.wireshark.org/download.html
Following are the steps that may be helpful in using Wireshark:
1. First select the network interface you want to listen for to the traffic.
For that either click 'Interface List' on the main window or go to Capture Select Interfaces Select Options… Select Select Interfaces Select Options… Select an appropriate network interface
2. Click 'Start' button You You will see the network traffic for that interface in the window
3. Filters can be applied so as to view only packets that are of importance.
To apply a filter write write the filter expression in the Filter Window Press Press 'Enter' or 'Apply'.
Some common filters are:-
- ‘tcp’ = for viewing TCP packets only.
- ‘udp’ = for viewing UDP packets only.
- ‘sip’ = for viewing SIP packets only.
- ‘ip.src == <ip address>’ = for viewing traffic coming from a specific ip address only.
- ‘ip.dst == <ip address>’ = for viewing traffic going to a specific ip IP address only.
4. Once we have captured the packets, we can stop listening to network traffic by pressing 'Stop' button or by going to the menu 'Capture Stop Stop'.
All the filters can be applied together with different logical operators like '&&' for 'And' operation, '||' for 'Or' operation, '!' for 'Not' operation etc.
There are many other filters that may be used. Please refer to Wireshark's help for more details.
5. To Analyse Analyze a packet Select Select the packet you want to view its its information will then be displayed in the middle pane.
You can then click on any item in the middle pane its its information will be displayed in the bottom pane.
6. To copy any data 'bytes' Right-click on that data Go Go to Copy Bytes Bytes Printable Text Only (This will copy the data in a readable text form)