NAME

        SV_RFC2181_4_2_port_selection - Port number selection


VERIFICATION POINTS

        Verify that a NUT selects the correct Port number.


TARGET

        Authoritative Server


SYNOPSIS

	SV_RFC2181_4_2_port_selection.seq [-tooloption ...]: KOI tool option
	See also DNSConfig.pm


INITIALIZATION


TEST PROCEDURE

        This test sequence is following.
    DNS Client1 (TN)                       DNS Server1 (NUT)
        |                                      |
        |------------------------------------->|
        |   1. Send standard query             |
        |   *Source Port=2000                  |
        |       QNAME=A.example.com            |
        |       QTYPE=A                        |
        |                                      |
        |<-------------------------------------|
        |   2. Standard query response         |
        |   *Destination Port=2000             |
        |       A=192.168.1.10                 |
        |                                      |
        |------------------------------------->|
        |   3. Send standard query             |
        |   *Source Port=2001                  |
        |       QNAME=A.example.com            |
        |       QTYPE=A                        |
        |                                      |
        |<-------------------------------------|
        |   4. Standard query response         |
        |   *Destination Port=2001             |
        |       A=192.168.1.10                 |
        |                                      |
        |                                      |
        v                                      v
        1. TN send standard query QNAME=A.example.com, QTYPE=A to NUT that source port=2000.
        2. NUT reply query response w/ A=192.168.1.10 to TN that destination port=2000 (Judgment *2)
        3. TN send standard query QNAME=A.example.com, QTYPE=A to NUT that source port=2001.
        4. NUT reply query response w/ A=192.168.1.10 to TN that destination port=2001 (Judgment *4)


JUDGMENT

        2. Received standard query response w/ A=192.168.1.10 that destination port=2000.
        3. Received standard query response w/ A=192.168.1.10 that destination port=2001.


TERMINATION

        None


REFERENCE

        RFC2181 Clarifications to the DNS Specification
        4.2. Port Number Selection