Overview of UDP Helper
This section describes the background and functions of UDP Helper.
Background
Hosts on a network may need to obtain the network configuration or resolve host names by sending UDP broadcast packets to the server. If the hosts and server are located in different broadcast domains, broadcast packets cannot reach the server and the hosts cannot obtain the required information from the server.
The router provides the UDP helper function to solve this problem. UDP helper can relay the UDP broadcast packets with specified destination ports. It converts the broadcast packets into unicast packets and sends the unicast packets to the specified destination servers.
As shown in Figure 6-1, HostA uses a host name to access HostB, and the NetBIOS Name Service (NetBIOS-NS) server resolves the host name of HostB. The NetBIOS-NS server and HostA are in different broadcast domains, so the UDP broadcast packet with destination port UDP 137 sent by HostA cannot reach the NetBIOS-NS server. After UDP helper is enabled on the Router, the Router can forward the packet with destination port UDP 137 to the NetBIOS-NS server through unicast so that the NetBIOS-NS server can resolve the host name of HostB.
Packets Forwarded by UDP Helper
- The destination MAC address is the broadcast MAC address (ffff-ffff-ffff).
- The destination IP address is the broadcast IP address (255.255.255.255) or a subnet broadcast IP address (for example, 192.168.255.255).
- The Time-to-Live (TTL) is larger than 1.
- The protocol type is UDP.
- The destination port is a specified UDP port.
UDP Helper Ports
After UDP helper is enabled on the router, the router relays the UDP packets with six specified destination ports by default. Manual configuration is required if the router needs to relay the UDP packets with other destination ports. In addition to the six default ports, another 10 destination ports can be specified.
Protocol |
UDP Port Number |
---|---|
Trivial File Transfer Protocol (TFTP) |
69 |
Domain Name System (DNS) |
53 |
Time Service |
37 |
NetBIOS Name Service (NetBIOS-NS) |
137 |
NetBIOS Datagram Service (NetBIOS-DS) |
138 |
Terminal Access Controller Access Control System (TACACS) |
49 |
UDP helper does not relay DHCP packets. That is, the destination port number cannot be 67 or 68. To relay DHCP packets, enable the DHCP relay function on the router. For details about DHCP relay, see Configuring a DHCP Relay Agent.