LabVIEW Time Sensitive Networking (TSN)

Reply
This is an open group. Sign in and click the "Join Group" button to become a group member and start posting.
Highlighted
Solved! Go to solution

Optimal settings for trunk port between two IE4000 Switches

I'm having difficulty getting a trunk port to behave transparently between two IE4000s (each with a single cRIO 9035 connected, and one connected to my PC running the CNC). CNC discovery works on both switches when no trunk connected, but with a trunk connected the topology import fails with the errors below (despite discovering all network components). I've tried many different combinations of settings but haven't been able to get it working successfully. Any advice is appreciated.


Capture2.PNG

 

Capture.PNG

0 Kudos
Message 1 of 16
(683 Views)
15 REPLIES

Re: Optimal settings for trunk port between two IE4000 Switches

Hello,

 

can you share with us the IE4000 interface level configuration?    in both cases, when it worked, and when it doesn't work?

 

this is an example of an IE4000 in mylab with a working switch to switch link interface configuration

TSN_Volt1#show cdp n
Capability Codes: R - Router, T - Trans Bridge, B - Source Route Bridge
                  S - Switch, H - Host, I - IGMP, r - Repeater, P - Phone,
                  D - Remote, C - CVTA, M - Two-port Mac Relay

Device ID        Local Intrfce     Holdtme    Capability  Platform  Port ID
IE4000_GMC_      Gig 1/4           132              S I   IE-4000-1 Gig 1/4
C3750E-TOR       Gig 1/17          146             R S I  WS-C3750E Gig 1/0/6

Total cdp entries displayed : 2
TSN_Volt1#
TSN_Volt1#show run int gi1/4
Building configuration...

Current configuration : 173 bytes
!
interface GigabitEthernet1/4
 switchport trunk native vlan 28
 switchport mode trunk
 load-interval 30
 ptp sync limit 5000
 service-policy output pol-tsn-priority-2
end

0 Kudos
Message 2 of 16
(661 Views)

Re: Optimal settings for trunk port between two IE4000 Switches

Below are my port settings for connection to my workstation (PC), cRIO (01CD5E74) and the trunk to the other switch (which also has a cRIO connected). I'm not familiar with the Cisco CLI so I've been configuring everything via the web portal up to this point.

 

Capture.PNGCapture2.PNGCapture3.PNGCapture4.PNG

0 Kudos
Message 3 of 16
(656 Views)

Re: Optimal settings for trunk port between two IE4000 Switches

based on the screen shots I cannot see anything wrong.

 

you may have to bite the bullet and telnet into the IE4000 to assist with the debugging of this.

 

using a tool like 'Putty', can you telnet or SSH into the IE4000?   whichever you are setup to use? 

in the IE4000 GUI if you go to Admin->Access Managment  you can enable Telnet.  the Cisco CNC uses telnet in some cases to access the switch.    if you followed the setup instructions, then you probably have user/pass = admin/admin confgured on teh IE4000.  you can use that to telnet into the IE4000.

 

Also, from the PC can you ping everything in the network? 

 

please Telnet into the IE4000

 

telnet 2.1.28.6
Trying 2.1.28.6...
Connected to 2.1.28.6.
Escape character is '^]'.


User Access Verification

Password:     <<<<  "admin"
TSN_Volt1>  enable
Password:      <<<<  "admin" or whatever was configured as 'enable' password.
TSN_Volt1#

TSN_Volt1# show lldp neighbors
Capability codes:            
    (R) Router, (B) Bridge, (T) Telephone, (C) DOCSIS Cable Device
    (W) WLAN Access Point, (P) Repeater, (S) Station, (O) Other   

Device ID           Local Intf     Hold-time  Capability      Port ID
IE4000_GMC_         Gi1/4          120        B               port-004
C3750E-TOR          Gi1/17         120        B,R             Gi1/0/6

Total entries displayed: 2

TSN_Volt1# show ptp clock
 PTP CLOCK INFO
  PTP Device Type: 802.1AS - Time Aware Bridge
  PTP Device Profile: 802.1AS Profile
  Clock Identity: 0x54:A2:74:FF:FE:98:65:80
  Clock Domain: 0
  Number of PTP ports: 20
  Time Transfer: Feedforward
  Priority1: 246
  Priority2: 248
  Clock Quality:
        Class: 248
        Accuracy: Unknown
        Offset (log variance): 16640
  Offset From Master(ns): 0
  Mean Path Delay(ns): 6
  Steps Removed: 1
  Neighbor Propagation Delay Threshold(ns): 800
  Local clock time: 22:53:08 UTC Apr 27 2000

TSN_Volt1#show ptp par
TSN_Volt1#show ptp parent
 PTP PARENT PROPERTIES
  Parent Clock:
  Parent Clock Identity: 0xD8:B1:90:FF:FE:AB:3C:80
  Parent Port Number: 4
  Observed Parent Offset (log variance): 16640
  Observed Parent Clock Phase Change Rate: N/A

  Grandmaster Clock:
  Grandmaster Clock Identity: 0xD8:B1:90:FF:FE:AB:3C:80
  Grandmaster Clock Quality:
        Class: 248
        Accuracy: Unknown
        Offset (log variance): 16640
        Priority1: 100
        Priority2: 248

  Clock Identity Path Trace:
  Clock Identity 0: 0xD8:B1:90:FF:FE:AB:3C:80

TSN_Volt1#

TSN_Volt1#show ip int brief | exc una
Interface              IP-Address      OK? Method Status           Protocol
Vlan28                 2.1.28.6        YES NVRAM  up                    up
TSN_Volt1#

 

TSN_Volt1# show tsn cnc
CNC Connection Status
----------------------------------------------------------------------
Device name:               TSN_Volt1
CNC server:                2.1.28.16:4569
Last CNC Contact:          19:21:05  Mon Apr 30 2018
Last Good CNC Connection:  19:21:07  Mon Apr 30 2018
Current Schedule ID:       1523579567 - 0x5ACFFAAF
----------------------------------------------------------------------

TSN_Volt1#show tsn ?
  be_stats       BE traffic statistics
  cnc            Current CNC server connection status
  flow           TSN flows
  fpga           FPGA file information
  license-on-SD  Information for tsn license in sdflash
  schedule       schedule
  shadow         Current shadow information

TSN_Volt1# show tsn schedule
Device   ID: TSN_Volt1
Schedule ID: 1523579567 - 0x5ACFFAAF
Status     : TSN schedule has been programmed successfully

 

 

 

 

0 Kudos
Message 4 of 16
(652 Views)

Re: Optimal settings for trunk port between two IE4000 Switches

I've telnet'ed into both switches, and all the commands you gave showed the expected results. Also everything is pingable. Again, the CNC is picking up everything on the network, it just is hitting some java error when trying to import it it seems. Adding everything manually also doesn't seem to do the trick, as I looked at the CNC log while trying to compute the schedule and it was saying:

"decnc-get-compute-results init

decnc-get-compute-results action"

 

over and over for over half an hour.

0 Kudos
Message 5 of 16
(647 Views)

Re: Optimal settings for trunk port between two IE4000 Switches

Hmmm.

 

the error is strange. it looks like kind of internal error.

 

a couple of things to try

1) Restart the CNC and try again.  least destructive.

2) delete the CNC database, restart CNC and then rediscover.

 

From the Linux command line

Stop the CNC

$ cd /home/<user>
$ source ~/ncs-3.3.2/ncsrc
$ ncs --stop

Start the CNC

$ source ~/ncs-3.3.2/ncsrc
$ cd ~/de/cnc/
$ ncs --with-package-reload

0 Kudos
Message 6 of 16
(643 Views)

Re: Optimal settings for trunk port between two IE4000 Switches

Restarting the CNC had no effect. Where can I find the CNC database to delete it?

0 Kudos
Message 7 of 16
(640 Views)

Re: Optimal settings for trunk port between two IE4000 Switches

to start over

1) in Home page of the CNC with "physical topology" highlighted

Clear -> Clear Physical Topology and Flows

Topological Discovery -> Clear topology discovery Cache

'Save' in top left corner

2) in left hand side menu click on 'devices'.  brings up table of IE4000 devices

highlight all rows with IE4000, then click on delete

'Save' in top left corner

 

Try disovery again.

 

 

0 Kudos
Message 8 of 16
(635 Views)

Re: Optimal settings for trunk port between two IE4000 Switches

Ah, I've actually clearing the topology/flows/cache doing that periodically every time I make a change. Hasn't helped I'm afraid. My current settings work for each switch individually, but connecting the truck is what throws the Java error. Manually imputing the devices also fails when computing. 

0 Kudos
Message 9 of 16
(631 Views)

Re: Optimal settings for trunk port between two IE4000 Switches

can you discover each switch individually?    if you move the PC connnection from one IE4000's to the other can they be discovered by themselves? 

 

Im wondering if both IE4000's have the correct credentials.  I assume they would because it works in non-trunk mode.

 

did you do the device delete from the left hand side  as well?

0 Kudos
Message 10 of 16
(628 Views)
Reply
This is an open group. Sign in and click the "Join Group" button to become a group member and start posting.