NAME

        SV_RFC1035_4_2_2_TCP_management - TCP connection management check


VERIFICATION POINTS

        Verify that a NUT supports multiple TCP connections.


TARGET

        Caching Server


SYNOPSIS

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


INITIALIZATION


TEST PROCEDURE

        This test sequence is following.
                                                                    <-------------- TN --------------->
    DNS Client1 (TN)             DNS Server1 (NUT)                  DNS Server2 DNS Server3 DNS Server4
        |                              |                                 |           |           |
        |----------------------------->|                                 |           |           |
        | 1. Send standard query       |                                 |           |           |
        |  QNAME=A.example.org         |                                 |           |           |
        |  QTYPE=A                     |                                 |           |           |
        |                              |                                 |           |           |
        |                              |-------------------------------->|           |           |
        |                              | 2. Recv standard query          |           |           |
        |                              |  QNAME=A.example.org            |           |           |
        |                              |  QTYPE=A                        |           |           |
        |                              |                                 |           |           |
        |                              |<--------------------------------|           |           |
        |                              | 3. Send standard query response |           |           |
        |                              |  QNAME=A.example.org            |           |           |
        |                              |  QTYPE=A                        |           |           |
        |                              |  AUTHORITY Name=org             |           |           |
        |                              |  AUTHORITY Name Server          |           |           |
        |                              |            =NS3.example.org     |           |           |
        |                              |  ADDITIONAL Name                |           |           |
        |                              |            =NS3.example.org     |           |           |
        |                              |  ADDITIONAL Address             |           |           |
        |                              |            =192.168.1.30        |           |           |
        |                              |                                 |           |           |
        |                              |                                 v           |           |
        |                              |                                             |           |
        |                              |-------------------------------------------->|           |
        |                              |             4. Recv standard query          |           |
        |                              |              QNAME=A.example.org            |           |
        |                              |              QTYPE=A                        |           |
        |                              |                                             |           |
        |                              |<--------------------------------------------|           |
        |                              |             5. Send standard query response |           |
        |                              |              QNAME=A.example.org            |           |
        |                              |              QTYPE=A                        |           |
        |                              |              AUTHORITY Name=example.org     |           |
        |                              |              AUTHORITY Name Server          |           |
        |                              |                     = NS4.example.org       |           |
        |                              |              ADDITIONAL Name                |           |
        |                              |                     = NS4.example.org       |           |
        |                              |              ADDITIONAL Address             |           |
        |                              |                     = 192.168.1.40          |           |
        |                              |                                             |           |
        |                              |                                             v           |
        |                              |                                                         |
        |                              |-------------------------------------------------------->|
        |                              |                          6. Send standard query         |
        |                              |                           QNAME=A.example.org           |
        |                              |                           QTYPE=A                       |
        |                              |                                                         |
        |                              |<--------------------------------------------------------|
        |                              |                          7. Send standard query response|
        |                              |                           TC bit is set                 |
        |                              |                           QNAME=A.example.org           |
        |                              |                           QTYPE=A                       |
        |                              |                           ANSWER Name=A.example.org     |
        |                              |                           ANSWER Address=192.168.1.100  |
        |                              |                                        to               |
        |                              |                                          192.168.1.129  |
        |                              |                                                         |
        |                              |-------------------------------------------------------->|
        |                              |                          8. Send standard query in TCP  |
        |                              |                           QNAME=A.example.org           |
        |                              |                           QTYPE=A                       |
        |                              |                                                         |
        |----------------------------->|                                                         |
        | 9. Send standard query in TCP|                                                         |
        |  QNAME=A.example.com         |                                                         |
        |  QTYPE=A                     |                                                         |
        |                              |                                                         |
        |<-----------------------------|                                                         |
        | 10. Standard query response  |                                                         |
        |     in TCP                   |                                                         |
        |  QNAME= A.example.com        |                                                         |
        |  QTYPE=A                     |                                                         |
        |  ANSWER Name=A.example.com   |                                                         |
        |  ANSWER Address=192.168.0.11 |                                                         |
        |                              |                                                         |
        |----------------------------->|                                                         |
        |11. Send standard query in TCP|                                                         |
        |  QNAME=B.example.org         |                                                         |
        |  QTYPE=A                     |                                                         |
        |                              |                                                         |
        |                              |-------------------------------------------------------->|
        |                              |                          12. Send standard query        |
        |                              |                           QNAME=B.example.org           |
        |                              |                           QTYPE=A                       |
        |                              |                                                         |
        |                              |<--------------------------------------------------------|
        |                              |                         13. Send standard query response|
        |                              |                           TC bit is set                 |
        |                              |                           QNAME=B.example.org           |
        |                              |                           QTYPE=A                       |
        |                              |                           ANSWER Name=A.example.org     |
        |                              |                           ANSWER Address=192.168.0.200  |
        |                              |                                        to               |
        |                              |                                          192.168.1.229  |
        |                              |                                                         |
        |                              |-------------------------------------------------------->|
        |                              |                         14. Send standard query in TCP  |
        |                              |                           QNAME=B.example.org           |
        |                              |                           QTYPE=A                       |
        |                              |                                                         |
        |                              |<--------------------------------------------------------|
        |                              |                         15. Send standard query response|
        |                              |                             in TCP                      |
        |                              |                           QNAME=B.example.org           |
        |                              |                           QTYPE=A                       |
        |                              |                           ANSWER Name=A.example.org     |
        |                              |                           ANSWER Address=192.168.0.200  |
        |                              |                                        to               |
        |                              |                                          192.168.1.230  |
        |                              |                                                         |
        |<-----------------------------|                                                         |
        | 16. Standard query response  |                                                         |
        |     in TCP                   |                                                         |
        |  QNAME= A.example.org        |                                                         |
        |  QTYPE=A                     |                                                         |
        |  ANSWER Name=A.example.org   |                                                         |
        |  ANSWER Address=192.168.0.200|                                                         |
        |               to             |                                                         |
        |                 192.168.1.230|                                                         |
        |                              |                                                         |
        |                              |<--------------------------------------------------------|
        |                              |                         17. Send standard query response|
        |                              |                             in TCP                      |
        |                              |                           QNAME=A.example.org           |
        |                              |                           QTYPE=A                       |
        |                              |                           ANSWER Name=A.example.org     |
        |                              |                           ANSWER Address=192.168.1.100  |
        |                              |                                        to               |
        |                              |                                          192.168.1.130  |
        |                              |                                                         |
        |                              |                                                         |
        |<-----------------------------|                                                         |
        | 18. Standard query response  |                                                         |
        |  TC bit is set               |                                                         |
        |  QNAME= A.example.org        |                                                         |
        |  QTYPE=A                     |                                                         |
        |  ANSWER Name=A.example.org   |                                                         |
        |  ANSWER Address=192.168.1.100|                                                         |
        |               to             |                                                         |
        |                 192.168.1.129|                                                         |
        |                              |                                                         |
        v                              v                                                         v
        1. TN send standard query QNAME=A.example.org, QTYPE=A to NUT.
        2. NUT transmits standard query to DNS Server2 (TN: root name server) (Judgment *2)
        3. TN send query response to NUT w/ AUTHORITY Name=org, AUTHORITY Name Server=NS3.example.org.
        4. NUT transmits standard query QNAME=A.example.org, QTYPE=A to DNS Server3 (TN: NS3.example.org) (Judgment *4)
        5. TN send query response to NUT w/ AUTHORITY Name=example.org, AUTHORITY Name Server=NS4.example.org.
        6. NUT transmits standard query QNAME=A.example.org, QTYPE=A to DNS Server4 (TN: NS4.example.org) (Judgment *6)
        7. TN send query response to ANSWER Name=A.example.org, ANSWER Address=192.168.1.100 - 192.168.1.129 to NUT.
        8. NUT transmits standard query QNAME=A.example.org, QTYPE=A to DNS Server4 (TN: NS4.example.org) in TCP (Judgment *8)
        9. TN send standard query QNAME=A.example.com, QTYPE=A to NUT in TCP.
        10. NUT transmits query response to DNS Client1 (TN) in TCP (Judgment *10)
        11. TN send standard query QNAME=B.example.org, QTYPE=A to NUT in TCP.
        12. NUT transmits standard query QNAME=B.example.org, QTYPE=A to DNS Server4 (TN: NS4.example.org) (Judgment *12)
        13. TN send query response to ANSWER Name=B.example.org, ANSWER Address=192.168.0.200 - 192.168.1.229 to NUT.
        14. TN send standard query QNAME=B.example.com, QTYPE=A to NUT in TCP. (Judgment *14)
        15. TN send query response to ANSWER Name=B.example.org, ANSWER Address=192.168.0.200 - 192.168.1.230 to NUT in TCP.
        16. NUT transmits query response to DNS Client1 (TN) (Judgment *16)
        17. TN send query response to ANSWER Name=A.example.org, ANSWER Address=192.168.1.100 - 192.168.1.130 to NUT in TCP.
        18. NUT transmits query response to DNS Client1 (TN) (Judgment *18)


JUDGMENT

        2. Received standard query including QNAME=A.example.org, QTYPE=A.
        4. Received standard query including QNAME=A.example.org, QTYPE=A.
        6. Received standard query including QNAME=A.example.org, QTYPE=A.
        8. Received standard query including QNAME=A.example.org in TCP.
        10. Received standard query response for QNAME=A.example.com QTYPE=A in TCP.
        12. Received standard query including QNAME=B.example.org, QTYPE=A.
        14. Received standard query including QNAME=B.example.org, QTYPE=A in TCP.
        16. Received standard query response for QNAME=B.example.org QTYPE=A in TCP.
        18. Received standard query response for QNAME=A.example.org QTYPE=A (TC bit is set).


TERMINATION

        None


REFERENCE

        RFC1035 DOMAIN NAMES - CONCEPTS AND FACILITIES
        4.2.2. TCP usage