802.1CB can not work on LS1028

cancel
Showing results for 
Search instead for 
Did you mean: 

802.1CB can not work on LS1028

Jump to solution
816 Views
xu
Contributor II

I have 2 board with a LS1028, LSDKUG_Rev20.04_290520

the top is 8.8.1.4.7 Seamless redundancy test case on LSDKUG_Rev21.08.pdf

A swp3 ----TEST center

B swp2-----test center

A swp0---- B swp0

A swp1-----B swp1

1.enable rstp on board A,board B,use https://github.com/mstpd/mstpd to enable the rstp

2. On board A, run the commands:
tsntool> cbstreamidset --device swp0 --nullstreamid --nulldmac 0x7EA88C9B41DD --nullvid 1 --
streamhandle 1
tsntool> cbgen --device swp0 --index 1 --iport_mask 0x08 --split_mask 0x07 --seq_len 16 --
seq_num 2048
3. On board B, run the following commands:
tsntool> cbstreamidset --device swp2 --nullstreamid --nulldmac 0x7EA88C9B41DD --nullvid 1 --
streamhandle 1
tsntool> cbrec --device swp0 --index 1 --seq_len 16 --his_len 31 --rtag_pop_en

4.send the stream with the dmac 7EA88C9B41DD,vlan id 1 from board A swp3,

on board B I can watch both swp0 swp1 can receive the packet,but the packet received on swp1 is drop_local

5.then I plug out the network cable on board B swp0,the stream will reduce to 0 then to the 10Mbps/s(I send only 10Mbps/s traffic only),can not achieve seamless redundancy, will lost 1000+ packets

can you help me to resove this problem?

is there any config is not right for the testing CB?

how can I check the packet recover on board B,how can I debug to find where is the key point for the issue?

thank you

 

Tags (2)
0 Kudos
1 Solution
760 Views
yipingwang
NXP TechSupport
NXP TechSupport

Yes, there is bug in the LSDK version. When you unplug the swp0 port, since swp0 port is configured you can see  cbstreamidset command set. The whole 8021cb forward ports will lost frames.

 

One method to fix:

  This is fixed in Real-time Edge 2.1 version. You could follow the steps chapter 4.1.2.4.7:

https://www.nxp.com.cn/docs/en/user-guide/REALTIMEEDGEUG.pdf

and update the kernel:

https://github.com/real-time-edge-sw/real-time-edge-linux

View solution in original post

9 Replies
761 Views
yipingwang
NXP TechSupport
NXP TechSupport

Yes, there is bug in the LSDK version. When you unplug the swp0 port, since swp0 port is configured you can see  cbstreamidset command set. The whole 8021cb forward ports will lost frames.

 

One method to fix:

  This is fixed in Real-time Edge 2.1 version. You could follow the steps chapter 4.1.2.4.7:

https://www.nxp.com.cn/docs/en/user-guide/REALTIMEEDGEUG.pdf

and update the kernel:

https://github.com/real-time-edge-sw/real-time-edge-linux

707 Views
xu
Contributor II

Hi yiping

1.I can not find chapter 4.1.2.4.7 on the pdf,is the chapter you gived is right? the max is 4.1.2.4.2 Remote configuration on this pdf.

2.and another question,how can I  update the kernel to my LSDKUG_Rev20.04_290520 code? is there any steps or ways to follow?

3. or can I just update the ocelot_seq_gen_set,ocelot_seq_rec_set these 2 functions in ocelot_tsn.c  according to the felix_seq_gen_set,felix_seq_rec_set in  felix_tsn.c , will fix the bug?

Thank you

0 Kudos
668 Views
yipingwang
NXP TechSupport
NXP TechSupport
  1. Sorry, 4.1.4.2.7.  in https://www.nxp.com.cn/docs/en/user-guide/REALTIMEEDGEUG_Rev2.1.pdf
  2. Real-time edge is for a industrial release sdk.  Refer the document:

https://www.nxp.com.cn/docs/en/user-guide/RTEDGEYOCTOUG_Rev2.1.pdf

to update the whole images.

  1. That is not enough.
0 Kudos
641 Views
xu
Contributor II

thank you,we will have a try.

0 Kudos
385 Views
Hegel
Contributor I

Hello ,

Have you solved this problem? We also have this problem .I updated the kernel to Real-time Edge 2.1 version,But it still can not work.So can you give me some suggestions? And is there any detailed steps to update the kernel? Thank you  very much.

0 Kudos
44 Views
xu
Contributor II

seems worked on the kernel Real-time Edge 2.1 version,but the opposite direction stream is losted,the issue is on the link:

https://community.nxp.com/t5/i-MX-Processors/802-1CB-will-cause-the-ping-lost-packet-on-LS1028/m-p/1...

 

0 Kudos
665 Views
yipingwang
NXP TechSupport
NXP TechSupport

The real-time edge 2.1 is base on the kernel:

https://github.com/real-time-edge-sw/real-time-edge-linux.git

Maybe you can try to get the repo and compile the kernel to update your current kernel.

0 Kudos
710 Views
xu
Contributor II

thank you very much,we will have a look about this.

0 Kudos
783 Views
xu
Contributor II

hi anyone can give me some suggestions?thanks

0 Kudos