เครือข่าย TCP/IP สำหรับงานภาคสนาม

IP subnets, TCP/UDP, Wi-Fi and ground-station network configuration

Last updated:

Overview

A small network appears every time a ground-station table is set up in the field. A laptop joins a Wi-Fi router, the companion computer streams telemetry, an observer's tablet watches live video, and results may go to a command centre over 4G. One wrong setting, such as addresses on different subnets or a mismatched port, and the devices cannot see each other. This unit covers the TCP/IP ideas you actually use in the field: addresses and subnets, DHCP, ports with TCP and UDP, packet size, and Wi-Fi planning.

TCP/IP is the protocol suite behind the internet and almost every local network. It works in layers: application (MAVLink, MQTT, HTTP), transport (TCP or UDP), network (IP) and link (Wi-Fi, Ethernet, 4G). Each layer wraps the data in its own header before it leaves, like a letter placed in an envelope and then in a parcel box.

IP addresses, subnets and gateways

An IPv4 address is 32 bits long, written as four numbers such as 192.168.20.30. It has a network part and a host part. The length of the network part is written in CIDR form, such as /24, or as a subnet mask, 255.255.255.0. Hosts with the same network part are on the same subnet and talk directly. Traffic for anywhere else goes to the default gateway, usually the router, which forwards it.

Field networks should use the private ranges of RFC 1918: 10.0.0.0/8, 172.16.0.0/12 and 192.168.0.0/16, which are never routed on the internet. When traffic must reach the internet, the router rewrites private addresses to its own public one, called NAT (network address translation). As a result, outside machines cannot open a connection to the drone unless extra configuration is added. That is both a security benefit and a limitation to plan for.

DHCP or static addresses

DHCP (Dynamic Host Configuration Protocol), RFC 2131, hands a newly joined host its IP address, subnet mask, gateway and DNS servers automatically. Most Wi-Fi routers include a DHCP server. It is convenient, but an address can change when a device reconnects.

The field rule: devices that others must send data to, such as the companion computer, IP cameras and the ground station, get static addresses or DHCP reservations; viewers' tablets use ordinary DHCP. Keep the static range separate from the DHCP pool, or two devices may end up with the same address. An address starting with 169.254 means the host found no DHCP server.

DNS turns names such as broker.field.lan into IP addresses. At a site with no internet, software configured with a host name fails if there is no local DNS. Use IP addresses directly or run a local DNS.

Ports, TCP and UDP

A port is a 16-bit number that identifies which program on a host receives the data. QGroundControl listens for MAVLink on UDP port 14550, and MQTT over TLS uses port 8883. The IP address names the building; the port names the room.

  • TCP (RFC 9293) opens a connection with a three-way handshake and guarantees complete, in-order delivery, retransmitting lost packets. It suits log downloads, mission files and web pages.
  • UDP (RFC 768) sends independent datagrams with no acknowledgement and an 8-byte header. It suits telemetry and live video, where fresh data matters more than lost data.

Computer firewalls often block inbound ports. If the link and addresses are right but no data appears, check the firewall next.

Packet size and MTU

The MTU (maximum transmission unit) is the largest IP packet a link carries in one frame. A common value on Ethernet and Wi-Fi is 1,500 bytes. After the 20-byte IPv4 header and the 8-byte UDP header, application data per datagram should stay at or below 1,472 bytes. Larger datagrams are split into fragments, and if any fragment is lost the whole datagram is useless. Video senders therefore cut their stream into MTU-sized packets from the start.

Example: planning a field network and its data budget

Assume the team uses 192.168.20.0/24, divided into four /26 blocks of 62 hosts each.

BlockUsable addressesUsed for
192.168.20.0/26.1 to .62Router and ground stations (static)
192.168.20.64/26.65 to .126Companion computers and cameras (static)
192.168.20.128/26.129 to .190Viewer devices (DHCP)
192.168.20.192/26.193 to .254Spare

Here the blocks are used as tidy ranges inside one /24. Making them real separate subnets would need a router between them.

The drone streams 8 Mbit/s of video (assumed) over UDP with 1,472 bytes of data per datagram, plus 50-byte MAVLink telemetry 10 times a second.

  1. Video datagrams: 8,000,000 ÷ 8 ÷ 1,472 ≈ 679 packets per second.
  2. Adding 28 bytes of IP and UDP header per packet raises the video rate to about 8.15 Mbit/s (headers about 1.9%).
  3. Telemetry with headers: 8 × (50 + 28) × 10 = 6,240 bit/s.
  4. Total about 8.16 Mbit/s. If the field Wi-Fi link actually delivers 20 Mbit/s (assumed; measure it on site), about 41% is used.

The remaining margin absorbs signal fades, Wi-Fi retransmissions and other users on the same channel. Above roughly 70 to 80% of measured capacity, video starts to stutter as soon as the signal weakens a little.

Wi-Fi in the field

Wi-Fi under IEEE 802.11 uses the 2.4, 5 and 6 GHz bands; the newest published generation is Wi-Fi 7 (IEEE 802.11be); Wi-Fi 8 (IEEE 802.11bn) is still a draft standard. The 2.4 GHz band reaches further and passes obstacles better, but it is crowded and has few non-overlapping channels. The 5 GHz band has more channels and more bandwidth but shorter range at the same power. Before work starts, scan for other networks, pick a clear channel, use WPA2 or WPA3, and change the router's factory admin password. Frequencies and transmit power allowed in Thailand must follow the latest NBTC notifications.

When the ground station cannot see the drone, work from the bottom layer up: is the link up, are both hosts on the same subnet (ping), are the port and firewall right, and only then inspect the traffic with a packet analyser.

Common pitfalls

  • Static addresses inside the DHCP pool, causing duplicate addresses and intermittent drop-outs.
  • Mismatched subnet masks, so one host thinks the other is local and the other disagrees.
  • Host names at a site with no DNS.
  • Datagrams larger than the MTU, which fragment and are lost whole.
  • TCP for live video or telemetry on a lossy link, where retransmissions build up delay.
  • Planning with the router's datasheet rate instead of throughput measured on site.
  • Factory router passwords or open Wi-Fi.

Continue in the lessons

Key references

  1. Kurose, J. F., & Ross, K. W. (2025). Computer networking: A top-down approach (9th ed.). Pearson. link
  2. Postel, J. (1981). Internet Protocol (RFC 791). RFC Editor. link
  3. Eddy, W. (Ed.). (2022). Transmission Control Protocol (TCP) (RFC 9293). RFC Editor. link
  4. Rekhter, Y., Moskowitz, B., Karrenberg, D., de Groot, G. J., & Lear, E. (1996). Address allocation for private internets (RFC 1918). RFC Editor. link
  5. Droms, R. (1997). Dynamic host configuration protocol (RFC 2131). RFC Editor. link
  6. IEEE. (2025). IEEE Std 802.11be-2024: Amendment 2, enhancements for extremely high throughput (EHT). link

Used in courses

How to cite this page

Drone Institute, Rangsit University. (2026). เครือข่าย TCP/IP สำหรับงานภาคสนาม. In UAS Technology Knowledge Hub (B.Tech.). https://rsu-uat.pk-research.work/en/kb/new/net-tcpip/