LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

SSH Over Xnet

Hello Together

 

 

Need support on a topic - TO Implement ssh over XNET api.

 

Currently toolkit's are available which uses IP stack over dotnet framework. In my case, IP stack is created over XNET and need to communicate over ssh. Basically the Layers 1 to 4 are implemented over XNet, need support on creating Layers 5 to 7. 

 

Any ideas or best approach for this? 

 

 

Regards

0 Kudos
Message 1 of 11
(915 Views)

This question is best to be posted at the Automotive and Embedded Networks board

 

To answer your question, you can use IP Stack Proxy. See shipping example at Help >> Find Examples >> Hardware Input and Output >> Automotive Ethernet >> IP Stack >> NI-XNET IP Stack TCP Proxy.lvproj

-------------------------------------------------------
Control Lead | Intelline Inc
0 Kudos
Message 2 of 11
(875 Views)

For this I need parallel windows adaptors? Could you elaborate a little?

0 Kudos
Message 3 of 11
(868 Views)

Have you explored the example?

The example has provided an adequate explanation of the working principle.

ZYOng_0-1699366968828.png

 

 

-------------------------------------------------------
Control Lead | Intelline Inc
0 Kudos
Message 4 of 11
(862 Views)

Yes I have explored it. Its mentioned that for the outbund connection, localhost is the proxy. Incase I need to connect from multiple ssh , coming via multiple VLAN. is it possible to connect? because the TCP port for ssh is the same. Please correct me if I am wrong

0 Kudos
Message 5 of 11
(817 Views)

@NI_Follower wrote:

Yes I have explored it. Its mentioned that for the outbund connection, localhost is the proxy. Incase I need to connect from multiple ssh , coming via multiple VLAN. is it possible to connect? because the TCP port for ssh is the same. Please correct me if I am wrong


I am not sure, but could you run multiple SSH instances on different ports such that the proxy from different VLAN can connect to different SSH port?

I would recommend you reach out to NI Technical Support for confirmation.

-------------------------------------------------------
Control Lead | Intelline Inc
0 Kudos
Message 6 of 11
(798 Views)

One more question regarding Proxy. If I assign a proxy in the IP stack configuration, which interface will be used to communicate with the external client or server? If I need to trace the communication, which interface I can monitor the packets? 

 

For egs. I have one NI 8523 card - I can see 4 adapters in windows network configuration. Once I start the IP stack from XNET, corresponding  adapter will show it as disconnected. 

In the case I use Proxy, then which adapter i can use to trace in Wireshark? 

May In know what exactly wil happen in backend after activating proxy?

 

Thanks 

0 Kudos
Message 7 of 11
(785 Views)

I would recommend reading and understanding Using Ethernet

In short, the TCP/IP can go through either XNET IP Stack (via XNET Endpoint) or OS Stack (via Intel i210 adapter). The XNET IP Stack and OS Stack Can Not Be Used Simultaneously on the Same Ethernet Port - NI

ZYOng_0-1699545003842.png

 

When using OS stack, you have plenty of libraries available for OS stack. Whatever libraries that run on regular ethernet adapter will work on OS stack. However, because of the network configuration limitation of operating systems, you cannot have same MAC address or VLAN. On the other hand, XNET Endpoint implements its own OSI layers and bypasses the OS restriction but the caveat is that all libraries designed for OS stack won't work and you have to create your own application layer using XNET API. 

This is where the proxy feature comes. It allows the transportation service to be carried out by XNET Endpoint and the application layer libraries running on the OS stack to be forwarded to the XNET endpoint.

NI-XNET provides a plugin which allows Wireshark capturing on the XNET endpoint. See Monitoring NI-XNET Automotive Ethernet Traffic Using Wireshark

-------------------------------------------------------
Control Lead | Intelline Inc
0 Kudos
Message 8 of 11
(780 Views)

Thank you very much for your detailed explanation. I have understood most of the things. 

One more question in the usage of multiplestaks over the same physical interface. In that case proxy can be assigned I f I use diferent IP ranges and the windows adapter is configured for one IP range, or incase we add all additional IP in the advanced TCP configuration in windows adaptor will it work? 

 

How can I assign the IP that has to be monitored from each of this IP stacks? I saw in the example its mentioned  - localhost will be the default incase of outbound configuration

 

 

0 Kudos
Message 9 of 11
(766 Views)

.

0 Kudos
Message 10 of 11
(756 Views)