This is a static, read-only archive of Wireshark Q&A. Older questions and answers from October 2017 and earlier can be found at osqa-ask.wireshark.org.
0

Monitoring UDP data on wireshark shows ARP packet

asked Nov 27 '17

updated Nov 27 '17

Hello Everyone ,

I am trying to send UDP packet to my server 192.168.1.5 with port number 50001. I have implemented UDP client on PC and when i send data using sendto API , at the same time i monitor data on wireshark wireshark shows it as an ARP packet.

18967   5440.858646 PcsCompu_ef:b4:89   Broadcast   ARP 42  Who has 192.168.1.5? Tell 192.168.1.70

192.168.1.70 is my machine ip where UDP client is running.

I am not sure how UDP packet is getting converted into ARP packet ?

Any inputs are highly appreciated. Thanks in advance.

1 Answer

0

answered Nov 27 '17

To send a unicast (non-broadcast) packet over an Ethernet network requires the host to know the MAC address of the next hop and this is achieved with an ARP request.

If there is a host at the target address it will respond, providing its MAC address for the sending host to use.

If there is no host at the target address, there will not be an ARP response and the UDP packet will not be sent.

Comments

Thanks for your response.

Yes, That´s correct.

In my case MAC of Target is already known , How can i provide this MAC so it directly starts UDP communicaton.

Target is camera device which will not be responding for such ARP request. So is there any way i directly provide MAC for target in my UDP client application ?

I appreciate your help.

User 83392 ( Nov 27 '17 )

Most UN*X systems, and Windows, have an arp command, which you might be able to use to add the MAC address for the camera device to the local ARP table.

However, if the camera device doesn't respond to an ARP request, and it supports IPv4, it should probably be fixed to respond to an ARP request, so that it can be used from other machines whose users don't know about the arp command or don't know the MAC address of the camera.

User 87485 ( Nov 28 '17 )
cc-by-sa Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.