NAME

        CL_RFC2782_SRV_weight - Weight comparing


VERIFICATION POINTS

        Verify that a NUT compares Weight of Target


TARGET

        Client


SYNOPSIS

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


INITIALIZATION


TEST PROCEDURE

        This test sequence is following.
    DNS Client1 (NUT)                        DNS Server1 (TN)       AP Server1 (TN)         AP Server2 (TN)
        |                                              |                      |                       |
        |--------------------------------------------->|                      |                       |
        |           1. Send standard query             |                      |                       |
        |              QNAME=_http._tcp.example.com.   |                      |                       |
        |              QTYPE=SRV                       |                      |                       |
        |                                              |                      |                       |
        |<---------------------------------------------|                      |                       |
        |           2. Standard query response         |                      |                       |
        |              QNAME=_http._tcp.example.com.   |                      |                       |
        |              QTYPE=SRV                       |                      |                       |
        |              ANSWER                          |                      |                       |
        |                Priority = 1                  |                      |                       |
        |                Weight = 1                    |                      |                       |
        |                Port = 80                     |                      |                       |
        |                Target = B.example.com.       |                      |                       |
        |              ANSWER                          |                      |                       |
        |                Priority = 1                  |                      |                       |
        |                Weight = 2                    |                      |                       |
        |                Port = 80                     |                      |                       |
        |                Target = C.example.com.       |                      |                       |
        |              ADDITIONAL Name                 |                      |                       |
        |                = B.example.com.              |                      |                       |
        |              ADDITIONAL Address              |                      |                       |
        |                = 192.168.1.60                |                      |                       |
        |              ADDITIONAL Name                 |                      |                       |
        |                = C.example.com.              |                      |                       |
        |              ADDITIONAL Address              |                      |                       |
        |                = 192.168.1.70                |                      |                       |
        |                                              |                      |                       |
        |-------------------------------------------------------------------------------------------->|
        |           3. start TCP communication (SYN)   |                      |                       |
        |                                              |                      |                       |
        |<--------------------------------------------------------------------------------------------|
        |           4. port unreachable (ACK-RST)      |                      |                       |
        |                                              |                      |                       |
        |-------------------------------------------------------------------------------------------->|
        |           5. start TCP communication (SYN)   |                      |                       |
        |                                              |                      |                       |
        |<--------------------------------------------------------------------------------------------|
        |           6. port unreachable (ACK-RST)      |                      |                       |
        |                                              |                      |                       |
        |-------------------------------------------------------------------->|                       |
        |           7. start TCP communication (SYN)   |                      |                       |
        |                                              |                      |                       |
        v                                              v                      v                       v
        1. NUT send standard query to DNS Server1(TN).
                Judgment (Check *1)
        2. TN send standard query response to NUT.
        3. NUT start TCP communication (SYN) to AP Server2(TN).
                Judgment (Check *3)
        4. TN send port unreachable (ACK-RST) to NUT.
        5. NUT start TCP communication (SYN) to AP Server2(TN).
                Judgment (Check *5)
        6. TN send port unreachable (ACK-RST) to NUT.
        7. NUT start TCP communication (SYN) to AP Server1(TN).
                Judgment (Check *7)


JUDGMENT

        1. Received standard query QNAME=_http._tcp.example.com. from NUT.
        3. Received TCP packet (SYN) from NUT.
        5. Received TCP packet (SYN) from NUT.
        7. Received TCP packet (SYN) from NUT.


TERMINATION

        If NUT has cache function, clear the cache.


REFERENCE

	RFC1035 DOMAIN NAMES - CONCEPTS AND FACILITIES
	5.2.1. Typical functions	RFC2782 DNS SRV RR