User Datagram Protocol (UDP) Test Suite

User Datagram Protocol (UDP) Test Suite

Design engineers, quality assurance engineers and testers use the IWL UDP Test Suite to find and fix bugs in their UDP implementation. The tests help ensure that the UDP implementation is sufficiently robust so that it is not vulnerable to the wide range of attacks in today's Internet. The tests make use of the Maxwell Pro network emulation environment, so that each test sequence can intelligently impair all aspects of the UDP protocol.

The UDP Test Suite contains unique test cases that take on parameters for greater coverage. The tests ensure UDP compliance through vulnerability and robustness testing.

udp test suite example

Highlights:

  • Change the source and destination addresses to improper or unusual values such as loopback, multicast, interface-local multicast, link-local multicast, etc.

  • Set the "next header" field to a value not assigned by IANA with all of the above mentioned address variations.

  • Set the "hop count" to zero with all of the above mentioned address variations.

  • Insert a type 0 routing extension header with the next address being one of the above mentioned address variations.

  • Insert a type 0 routing extension header with inconsistent information.

  • Insert hop-by-hop extension with various router alert option values and without any message.

  • Insert hop-by-hop extension with two router alerts with various router alert option values and without any message.

  • Insert hop-by-hop extension with a router alert option with an invalid length.

  • Adjust payload so checksum is -0 and set checksum field to -0.

  • Adjust UDPv4 payload so checksum is -0 and set checksum field to +0.

  • Adjust UDPv4 payload so checksum is +1 and set checksum field to +0.

  • Adjust UDPv6 payload so checksum is -0 and set checksum field to +0.

  • Adjust UDPv6 payload so checksum is +1 and set checksum field to +0.

  • Set checksum field so it contains -1.

  • Invert the checksum field bit values.

  • Set the length field to zero.

  • Set the length field so it exceeds actual length by 8.

  • Set all the length field bits to one.

  • Truncate the datagram so it validly contains only 6 bytes.

Establishing a source of authority

The Maxwell Pro UDP Test Suite references the RFCs that correlate to each test area. These official IETF documents detail the Internet standards and best current practices that can point the user toward a better understanding of the problem.

RFCs Referenced

  • RFC 768 User Datagram Protocol

Sample test documentation

Test documentation follows the format below: 

  • Purpose of the Test:

  • Impairment Algorithm:

  • Possible Behaviors or Outcomes:

© Copyright 2020 InterWorking Labs, Inc. dba IWL.
Web: https://iwl.com
Phone: +1.831.460.7010
Email: info@iwl.com