Unable to connect to a service hosted on a certain port

29 views
Skip to first unread message

Anju Gopinath

unread,
Jun 4, 2024, 5:25:58 PMJun 4
to cloudlab-users
Hi,

I am unable to connect to a service hosted on a certain port.
Detailed scenario:

Node A is on cluster A
Node B is on cluster B

Node B runs a service on port 7777.
Node A is not able to connect to port 7777 .
Node A is able to connect to the same service on a different server (not in cloudlab).

Mike Hibler

unread,
Jun 4, 2024, 6:44:44 PMJun 4
to cloudla...@googlegroups.com
Can you point us to the status page of an experiment where you are having
this problem?
> --
> You received this message because you are subscribed to the Google Groups
> "cloudlab-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an email
> to cloudlab-user...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/
> cloudlab-users/f2bebbd4-efcc-4e82-a712-37852d8f5d0an%40googlegroups.com.

Anju Gopinath

unread,
Jun 4, 2024, 7:02:45 PMJun 4
to cloudlab-users

Mike Hibler

unread,
Jun 4, 2024, 8:05:26 PMJun 4
to cloudla...@googlegroups.com
Try a different port. You might be running into an internal proxy service
that runs on the VM host and uses port 7777.
> cloudlab-users/7348a732-e6a7-4b29-b5ea-6cedafd8032bn%40googlegroups.com.

Anju Gopinath

unread,
Jun 5, 2024, 2:24:31 PM (13 days ago) Jun 5
to cloudlab-users
That did not work either.

Mike Hibler

unread,
Jun 5, 2024, 2:48:20 PM (13 days ago) Jun 5
to cloudla...@googlegroups.com
Need a URL for the experiment status page.
> > cloudlab-users/7348a732-e6a7-4b29-b5ea-6cedafd8032bn%40googlegroups.com.
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "cloudlab-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an email
> to cloudlab-user...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/
> cloudlab-users/3e93b0f5-3858-4e87-b897-271e0a6fa8e2n%40googlegroups.com.

Anju Gopinath

unread,
Jun 5, 2024, 3:06:47 PM (13 days ago) Jun 5
to cloudlab-users
Server -----------------------------------------------
Service I am trying to connect to is on :  
node : pcvm431-1

Client-------------------------------------------------------
Node from where I am trying to connect:
node :  aptvm163-1
command I execute : nohup sudo ./client -c 10000000 -p 7777 172.19.31.1 & ( here, 172.19.31.1  is what I get when I execute ifconfig on pcvm431-1 (node mentioned above under 'Server'))
error  I get : 172.19.31.1(port 7777) failed 

I have checked that traceroute on the ip 172.19.31.1 gives results.
Should I add a specific path ? because telnet command from the client fails

"
anjug@node-0-0:~$ telnet 172.19.31.1 7777
Trying 172.19.31.1...
telnet: Unable to connect to remote host: No route to host

Anju Gopinath

unread,
Jun 5, 2024, 3:08:17 PM (13 days ago) Jun 5
to cloudlab-users
Actually, traceroute also has issues:
anjug@node-0-0:~$ traceroute 172.19.31.1
traceroute to 172.19.31.1 (172.19.31.1), 30 hops max, 60 byte packets
 1  apt163.apt.emulab.net (128.110.96.163)  0.315 ms  0.262 ms  0.133 ms
 2  apt163.apt.emulab.net (128.110.96.163)  3063.397 ms !H  3063.280 ms !H  3063.166 ms !H

Mike Hibler

unread,
Jun 5, 2024, 4:24:38 PM (13 days ago) Jun 5
to cloudla...@googlegroups.com
Oh, didn't know you were trying to communicate between VMs on different
clusters. That is not going to work. If you are using the default "private"
(172.16.x.x) control net addresses, those are only routed within a cluster.
You would have to use routable IPs on your VMs (see
https://www.cloudlab.us/p/PortalProfiles/routable-ip
for an example), but each cluster has a very limited number of these dynamic
IPs (less than 100 typically) so you are not going to achieve any scale.

What are you trying to achieve by doing this cross-cluster? Large scale?
> > cloudlab-users/3e93b0f5-3858-4e87-b897-271e0a6fa8e2n%
> 40googlegroups.com.
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "cloudlab-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an email
> to cloudlab-user...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/
> cloudlab-users/b943d2e2-2889-4f4a-a357-efc17676d71dn%40googlegroups.com.

Anju Gopinath

unread,
Jun 5, 2024, 4:28:42 PM (13 days ago) Jun 5
to cloudlab-users
We want a few VMs or even pcs to act as a server (even one VM or node will do). So, we just need very few ips (one ip address if we only get one server).

Then, we want to sent and receive TCP packets from this server VMs. (say from clients)
I want these clients to be on VMs on different clusters for geographical diversity since that is a requirement for our experiments.

I did try it with the profile you mentioned (routable-ip) and also single-pc. And I opted for routable ip in the advanced settings (when you try to instantiate the profile).
I got the same error there also - connect to port 7777 failed.

Anju Gopinath

unread,
Jun 5, 2024, 4:29:23 PM (13 days ago) Jun 5
to cloudlab-users
So, 1 server and several clients (say 400 clients - or 400 VMs)

Anju Gopinath

unread,
Jun 5, 2024, 4:35:41 PM (13 days ago) Jun 5
to cloudlab-users
So, earlier, I have been able to send and receive TCP packets from Cloudlab clients/VMs when connected to an external pc acting as a server.
I am facing the issue when trying to set up a server also on a Cloudlab VM/pc. 
I am not sure what I am missing. 

Mike Hibler

unread,
Jun 5, 2024, 5:06:24 PM (13 days ago) Jun 5
to cloudla...@googlegroups.com
Okay, I kinda confused things there. The physical VM host machines will NAT
for their VMs (I had forgotten that). So you should be able to initiate
traffic from the VMs to a server that has a routable IP address. But you
cannot initiate a connection to a server VM with an unroutable IP address...
unless that server VM is on the same cluster. Confusing, yes.

What should work is to have your server always be a VM with a routable IP
or have it be a physical host (which do all have routable IPs). You still
won't be able to initiate connections from the server back to the clients,
it can just reply to client requests that have NATed addresses/ports.

There are still going to be ports, like 7777, that are used for VM/host
communication and won't work.
> cloudlab-users/4b1ba773-35bb-4a98-8feb-2d744ed59238n%40googlegroups.com.

Reply all
Reply to author
Forward
0 new messages