SONIC SwSS Newbie

597 views
Skip to first unread message

Ahmed Selim

unread,
Aug 12, 2022, 3:26:20 PM8/12/22
to sonicproject
Hi All,
I am a newbie to SONiC (SwSS).
I have looked at the architecture and began by tracing the code like any C++ project, from main function at orchagent(main.cpp), and here is what I came up with so far (see file attached).

I am currently working with the 202111 release on Ubuntu Server 18 VMWare.

# My questions:
1. Correct me if I am wrong or misunderstood something.
2. I need some references/documentation/videos about sonic for newbies to have a solid ground to understand the workflow better.
3. I have basic knowledge about Networking, How far should I know to work with SONiC?
4. Is there a better way to debug my work or trace the code in sonic, other than SWSS_LOG_DEBUG(...)?
5. It would be great if I found others who can peer program, to facilitate learning and work closely together.

Thanks
SONiC SwSS.jpg

Prince Sunny

unread,
Aug 12, 2022, 7:09:59 PM8/12/22
to Ahmed Selim, sonicproject

Hi Ahmed,

 

You’ve captured the flow pretty well in the diagram. Please find some feedback

 

  1. CLI/RestAPIs writes to DB and portmgrd subscribes from config_DB.
  2. Portmgrd/portsyncd is recently changed and all incremental updates to PORT Table is handled *only* by portmgrd.
  3. You can refer this page for the Sonic Architecture - Architecture · sonic-net/SONiC Wiki (github.com). Sonic wiki also has references to CLI and other useful components
  4. Logging is the best option although you can also use ‘gdb’.

 

..Prince

 

From: sonicp...@googlegroups.com <sonicp...@googlegroups.com> On Behalf Of Ahmed Selim
Sent: Friday, August 12, 2022 12:26
To: sonicproject <sonicp...@googlegroups.com>
Subject: [EXTERNAL] [SONiC] SONIC SwSS Newbie

 

You don't often get email from sci.ahm...@gmail.com. Learn why this is important

--
You received this message because you are subscribed to the Google Groups "sonicproject" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sonicproject...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sonicproject/62cbd5ce-fce4-4ef4-83c7-37498d7ffafdn%40googlegroups.com.

Ahmed Selim

unread,
Aug 13, 2022, 6:15:13 AM8/13/22
to sonicproject
Hi Mr.Prince,

Many thanks for your feedback, It makes things much clear.

Ahmed

Reply all
Reply to author
Forward
0 new messages