Yes, you can verify if packets are being successfully transmitted by capturing and inspecting network traffic using Soracom Peek or Soracom Junction.
Before capturing packets, check if Soracom has recorded data usage for your device. If no usage is recorded, there may be a local network operator issue, such as poor signal or a temporary local outage. If usage is recorded but data isn't reaching your server, there may be an issue with your server's firewall or network routing.
Using Soracom Peek
You can use the Soracom Peek service to capture traffic as it passes through Soracom. This helps identify if traffic is blocked due to firewall or routing settings, troubleshoot abnormal device behavior, or debug your network architecture.
Peek provides two methods for packet capture:
- SIM Packet Capture: Captures all IP traffic where the source or destination address matches your IoT SIM. You can initiate this via the console or the POST /sims/{sim_id}/packet_capture_sessions API.
- VPG Packet Capture: Captures all IP traffic passing through a Virtual Private Gateway (VPG).
To capture packets, your device must be connected using a Soracom IoT SIM and be online. If capturing in a VPG, the IoT SIM must belong to that VPG.
Using Soracom Junction
If your devices are connected to a VPG, you can use Soracom Junction for advanced packet handling. You can configure Junction to mirror packets or redirect packets to an AWS EC2 instance.
Once configured, you can connect to your EC2 instance via SSH and run tcpdump to view the incoming packets and verify that your traffic is routing correctly.