perfsonar-user - Re: [perfsonar-user] using a hostname instead of IP address in bwctl tests
Subject: perfSONAR User Q&A and Other Discussion
List archive
- From: John-Paul Robinson <>
- To: "Garnizov, Ivan" <>, "" <>
- Subject: Re: [perfsonar-user] using a hostname instead of IP address in bwctl tests
- Date: Thu, 10 Jul 2014 08:00:11 -0400
Hi Ivan, Let me see if I can clarify. Node1 and node2 both use private IP addresses but are on different networks. Additionally node1 sits behind a firewall that maps its behind-the-firewall IP to an infront-of-the-firewall address that node2 can reach. Node1 gets its IP via DCHP and hostname via reverse-DNS. Here is the discover_external_address.log: 2014/06/26 12:57:16 (1236) INFO> discover_external_address:147 main:: - 172.21.1.3 is ipv4 2014/06/26 12:57:16 (1236) INFO> discover_external_address:149 main:: - 172.21.1.3 has a DNS name: perfsonar-cloud.uabgrid.uab.edu 2014/06/26 12:57:16 (1236) INFO> discover_external_address:151 main:: - 172.21.1.3 isn't private or we're okay with private addresses 2014/06/26 12:57:16 (1236) INFO> discover_external_address:249 main:: - Selected eth0/perfsonar-cloud.uabgrid.uab.edu as the primary address 2014/06/26 12:57:16 (1236) INFO> discover_external_address:256 main:: - Selected eth0/perfsonar-cloud.uabgrid.uab.edu as the primary ipv4 address 2014/06/26 12:57:16 (1236) INFO> discover_external_address:267 main:: - No primary ipv6 address found Node2 is statically assigned and doesn't have a DNS entry. Here is its discover_external_address.log: 2014/07/09 17:29:53 (1817) INFO> discover_external_address:147 main:: - 172.20.0.41 is ipv4 2014/07/09 17:29:53 (1817) INFO> discover_external_address:204 main:: - 172.20.0.41 is IPv4 2014/07/09 17:29:53 (1817) INFO> discover_external_address:206 main:: - 172.20.0.41 isn't private or we're okay with private addresses 2014/07/09 17:29:53 (1817) INFO> discover_external_address:249 main:: - Selected em1/172.20.0.41 as the primary address 2014/07/09 17:29:53 (1817) INFO> discover_external_address:256 main:: - Selected em1/172.20.0.41 as the primary ipv4 address 2014/07/09 17:29:53 (1817) INFO> discover_external_address:267 main:: - No primary ipv6 address found Node2 is able to resolve node1's "public" ip address via an entry in node2's /etc/hosts file. [root@localhost ~]# ping -c 3 perfsonar-cloud.uabgrid.uab.edu PING perfsonar-cloud.uabgrid.uab.edu (172.22.128.35) 56(84) bytes of data. 64 bytes from perfsonar-cloud.uabgrid.uab.edu (172.22.128.35): icmp_seq=1 ttl=62 time=0.775 ms 64 bytes from perfsonar-cloud.uabgrid.uab.edu (172.22.128.35): icmp_seq=2 ttl=62 time=0.759 ms 64 bytes from perfsonar-cloud.uabgrid.uab.edu (172.22.128.35): icmp_seq=3 ttl=62 time=0.706 ms --- perfsonar-cloud.uabgrid.uab.edu ping statistics --- 3 packets transmitted, 3 received, 0% packet loss, time 2001ms rtt min/avg/max/mdev = 0.706/0.746/0.775/0.043 ms I have a scheduled throughput test registered on node1 that measures throughput to node2. Node2 is listed as a test member using it's IP address. This test is producing throughput results for iperf tests from node1 to node2. However, when the node2 to node1 iperf test is run by node2, I see this error in the node2 messages log: Jul 10 06:49:13 localhost bwctld[12025]: FILE=sapi.c, LINE=353, Connection to (172.20.0.41:4823) from (perfsonar-cloud.uabgrid.uab.edu:58029) Jul 10 06:49:13 localhost bwctld[12025]: FILE=sapi.c, LINE=510, ControlSession([172.20.0.41]:4823) accepted from userid(nil):([perfsonar-cloud .uabgrid.uab.edu]:58029) Jul 10 06:49:13 localhost bwctld[7855]: FILE=bwctld.c, LINE=791, Test Reservation Information: Current Time: 1404992953, Fuzz: 2.521484, Reser vation Start: 1404992957, Reservation End: 1404992983, Test Start Time: 1404992960 Jul 10 06:49:13 localhost bwctld[7855]: FILE=bwctld.c, LINE=442, Reservation Status: time=1404992953 action="new" sender=172.21.1.3 receiver=172 .20.0.41 tool=iperf res_start=1404992957 res_end=1404992982 test_start=1404992960 Jul 10 06:49:13 localhost bwctld[7855]: FILE=bwctld.c, LINE=822, Time Slots Jul 10 06:49:13 localhost bwctld[7855]: FILE=bwctld.c, LINE=827, Time Slot 1: 1404992957 to 1404992983: 1 reservations Jul 10 06:49:13 localhost bwctld[12026]: FILE=endpoint.c, LINE=886, Connect from unknown addr, assuming NAT Jul 10 06:49:13 localhost bwctld[12026]: FILE=sapi.c, LINE=353, Connection to (172.20.0.41:6093) from (perfsonar-cloud.uabgrid.uab.edu:40420) Jul 10 06:49:13 localhost bwctld[12026]: FILE=sapi.c, LINE=510, ControlSession([172.20.0.41]:6093) accepted from userid(nil):([perfsonar-cloud.uabgrid.uab.edu]:40420) Jul 10 06:49:42 localhost bwctld[7855]: FILE=bwctld.c, LINE=442, Reservation Status: time=1404992982 action="remove" sender=172.21.1.3 receiver=172.20.0.41 tool=iperf res_start=1404992957 res_end=1404992982 test_start=1404992960 Jul 10 06:50:13 localhost bwctld[12063]: FILE=sapi.c, LINE=353, Connection to (172.20.0.41:4823) from (perfsonar-cloud.uabgrid.uab.edu:40296) Jul 10 06:50:13 localhost bwctld[12063]: FILE=sapi.c, LINE=510, ControlSession([172.20.0.41]:4823) accepted from userid(nil):([perfsonar-cloud.uabgrid.uab.edu]:40296) Jul 10 06:50:13 localhost bwctld[7855]: FILE=bwctld.c, LINE=791, Test Reservation Information: Current Time: 1404993013, Fuzz: 2.582031, Reservation Start: 1404993016, Reservation End: 1404993043, Test Start Time: 1404993019 Jul 10 06:50:13 localhost bwctld[7855]: FILE=bwctld.c, LINE=442, Reservation Status: time=1404993013 action="new" sender=172.20.0.41 receiver=172.21.1.3 tool=iperf res_start=1404993016 res_end=1404993042 test_start=1404993019 Jul 10 06:50:13 localhost bwctld[7855]: FILE=bwctld.c, LINE=822, Time Slots Jul 10 06:50:13 localhost bwctld[7855]: FILE=bwctld.c, LINE=827, Time Slot 1: 1404993016 to 1404993043: 1 reservations Jul 10 06:50:13 localhost bwctld[12064]: FILE=endpoint.c, LINE=942, Endpoint: Unable to connect to Peer([172.21.1.3]:6150): Operation now in progress Jul 10 06:50:13 localhost bwctld[7855]: FILE=bwctld.c, LINE=442, Reservation Status: time=1404993013 action="remove" sender=172.20.0.41 receiver=172.21.1.3 tool=iperf res_start=1404993016 res_end=1404993042 test_start=1404993019 Note host node2 is trying to reach node1 using it's behind-the-firewall address 172.21.1.3. This address is unreachable and the connection fails. My assumption is that node2 is being informed about node1, by the throughput test harness on node1, to find it's peer using an IP address. My preference would be for node1's throughput test harness to tell node2 to contact node1 using node1's DNS name. That way when node2 resolves node1's name, it will get an IP address that is reachable from node2. Hope this clarifies, ~jpr On 07/10/2014 04:49 AM, Garnizov, Ivan
wrote:
|
- [perfsonar-user] using a hostname instead of IP address in bwctl tests, John-Paul Robinson, 07/10/2014
- RE: [perfsonar-user] using a hostname instead of IP address in bwctl tests, Garnizov, Ivan, 07/10/2014
- Re: [perfsonar-user] using a hostname instead of IP address in bwctl tests, John-Paul Robinson, 07/10/2014
- RE: [perfsonar-user] using a hostname instead of IP address in bwctl tests, Garnizov, Ivan, 07/10/2014
- Re: [perfsonar-user] using a hostname instead of IP address in bwctl tests, John-Paul Robinson, 07/10/2014
- Re: [perfsonar-user] using a hostname instead of IP address in bwctl tests, Aaron Brown, 07/10/2014
- Re: [perfsonar-user] using a hostname instead of IP address in bwctl tests, John-Paul Robinson, 07/10/2014
- Re: [perfsonar-user] using a hostname instead of IP address in bwctl tests, John-Paul Robinson, 07/10/2014
- Re: [perfsonar-user] using a hostname instead of IP address in bwctl tests, Aaron Brown, 07/11/2014
- Re: [perfsonar-user] using a hostname instead of IP address in bwctl tests, John-Paul Robinson, 07/14/2014
- Re: [perfsonar-user] using a hostname instead of IP address in bwctl tests, John-Paul Robinson, 07/10/2014
- Re: [perfsonar-user] using a hostname instead of IP address in bwctl tests, Aaron Brown, 07/10/2014
- Re: [perfsonar-user] using a hostname instead of IP address in bwctl tests, John-Paul Robinson, 07/10/2014
- RE: [perfsonar-user] using a hostname instead of IP address in bwctl tests, Garnizov, Ivan, 07/10/2014
- Re: [perfsonar-user] using a hostname instead of IP address in bwctl tests, John-Paul Robinson, 07/10/2014
- RE: [perfsonar-user] using a hostname instead of IP address in bwctl tests, Garnizov, Ivan, 07/10/2014
Archive powered by MHonArc 2.6.16.