VLAN in CAS
#1
Hi, pals,

I just came across this "function" in about a month ago.  Being a layman to IT, please excuse for my ignorance to VLAN, and correct me if I used the terms incorrectly.   

I wonder that, in CAS,:
1) Would setting up a VLAN reduce or increase the latency of the switch/router, so to the CAS system?
2) Would that reduced port broadcasting activity be "heard"?

Anyway, so happen my ASUS router was dead in last week and I brought a CISCO RV340W router, together my previous CISCO SG350 switch.  I'm try to build some VLAN in them, to isolate streaming TV box, streaming TV set, CAS, daily use PC, and so and so.

Here is my set up. 
[Image: LPS.png]

I'll appreciate any suggestion or comment to my VLAN concern.  Thank you very much and Happy Listening.  Big Grin
Reply

#2
(06-Mar-2021, 11:40 AM)hkphantomgtr Wrote: 1) Would setting up a VLAN reduce or increase the latency of the switch/router, so to the CAS system?
Using VLAN will add an extra 4 bytes in the ethernet packet. But in the all scheme of things, this is negligible if you ask me. Let's say you have configured 2 VLANs on a layer 2 switch (Say VLAN_A and VLAN_B) and a router. If you have a device on VLAN_A that needs to talk to another device on VLAN_B, it has to go to the router first then back (i.e. switch -> router -> switch).

If you have a lot of traffic going between VLANs, the bandwidth between your switch and router is a problem. E.g. if your link between switch and router is only 1 Gbps, this can be a problem if you're transferring large amounts of data between VLANs. In cases like this, then yes, it will be an issue.

But if you plan things well, then it will actually be better. Examples of better
1. Keep noisy traffic on it's own VLAN
2. Better security. You have all your IoT devices (very talkative) on it's own VLAN and seperate from your home network

So basically to get this done well, the switch and router both has to be able to forward at full speed, on all ports. Cisco hardware usually can do this, but check the specfications just to be sure.
 
(06-Mar-2021, 11:40 AM)hkphantomgtr Wrote: 2) Would that reduced port broadcasting activity be "heard"?
It depends, but in general, yes. But you have to put some thought into the setup. e.g. disable DHCP, disable bonjour (and anything that does broadcasts), turn on IGMP snooping/querier. You can use tools like wireshark to look at the traffic that's currently running on the network.

See my example in this post.  The idea is to setup the network such that my CAS network card, only sees the NAS and my remote client and nothing else. The NAS can actually be talking to many other devices at the same time. But the traffic my CAS sees is very "clean". If your switch can do this, try to capture the data on the CAS network port and see what's transmitted to/from there. And then work backwards from there by removing unnecessary stuffs..

Turn off anything you don't need (STP, LLDP) but you have to be very extra careful and not make mistakes (e.g. STP is to prevent loops, LLDP helps you identify devices on your network. Both are good for troubleshooting).
Snakeoil Operating System - Music, your way!
[-] The following 1 user Likes agent_kith's post:
  • hkphantomgtr
Reply

#3
(07-Mar-2021, 08:37 AM)agent_kith Wrote:
(06-Mar-2021, 11:40 AM)hkphantomgtr Wrote: 1) Would setting up a VLAN reduce or increase the latency of the switch/router, so to the CAS system?
Using VLAN will add an extra 4 bytes in the ethernet packet. But in the all scheme of things, this is negligible if you ask me. Let's say you have configured 2 VLANs on a layer 2 switch (Say VLAN_A and VLAN_B) and a router. If you have a device on VLAN_A that needs to talk to another device on VLAN_B, it has to go to the router first then back (i.e. switch -> router -> switch).

If you have a lot of traffic going between VLANs, the bandwidth between your switch and router is a problem. E.g. if your link between switch and router is only 1 Gbps, this can be a problem if you're transferring large amounts of data between VLANs. In cases like this, then yes, it will be an issue.

But if you plan things well, then it will actually be better. Examples of better
1. Keep noisy traffic on it's own VLAN
2. Better security. You have all your IoT devices (very talkative) on it's own VLAN and seperate from your home network

So basically to get this done well, the switch and router both has to be able to forward at full speed, on all ports. Cisco hardware usually can do this, but check the specfications just to be sure.
 
(06-Mar-2021, 11:40 AM)hkphantomgtr Wrote: 2) Would that reduced port broadcasting activity be "heard"?
It depends, but in general, yes. But you have to put some thought into the setup. e.g. disable DHCP, disable bonjour (and anything that does broadcasts), turn on IGMP snooping/querier. You can use tools like wireshark to look at the traffic that's currently running on the network.

See my example in this post.  The idea is to setup the network such that my CAS network card, only sees the NAS and my remote client and nothing else. The NAS can actually be talking to many other devices at the same time. But the traffic my CAS sees is very "clean". If your switch can do this, try to capture the data on the CAS network port and see what's transmitted to/from there. And then work backwards from there by removing unnecessary stuffs..

Turn off anything you don't need (STP, LLDP) but you have to be very extra careful and not make mistakes (e.g. STP is to prevent loops, LLDP helps you identify devices on your network. Both are good for troubleshooting).

Thanks a lot, Agent Kith!  Let me try try.   Big Grin
[-] The following 1 user Likes hkphantomgtr's post:
  • agent_kith
Reply



Bookmarks



Users browsing this thread:
1 Guest(s)

[-]
Our Sponsors

[-]
Welcome
You have to register before you can post on our site.

Username/Email:


Password:





[-]
Latest Threads
Installation of SnakeOil OS 1.3.0 on RPi...
Last Post: agent_kith
Today 07:27 AM
» Replies: 13
» Views: 567
Dropping Measurements, Hello High-End.
Last Post: uglymusic
18-Dec-2024 12:02 AM
» Replies: 20
» Views: 708
CA Server issues
Last Post: Peter_F
16-Dec-2024 06:36 PM
» Replies: 13
» Views: 212
install Snakeoil on Audio Alchemy DMP-1 ...
Last Post: uglymusic
08-Dec-2024 08:48 PM
» Replies: 2
» Views: 214
Announcing Snakeoil Measurements 1.3.0
Last Post: hkphantomgtr
03-Dec-2024 09:55 PM
» Replies: 105
» Views: 12016
Howto setup resampling in Logitech Media...
Last Post: Coacharnold
18-Nov-2024 12:06 AM
» Replies: 7
» Views: 5999
Very happy to have Sankeoil......! mpd w...
Last Post: run51
24-Oct-2024 05:35 AM
» Replies: 9
» Views: 1804
SO no soundcard detected - RPI Pi4 snake...
Last Post: run51
21-Oct-2024 10:55 PM
» Replies: 4
» Views: 188
download
Last Post: Snoopy8
19-Oct-2024 05:52 AM
» Replies: 1
» Views: 179
Full proces to instal snakeiol 100% work...
Last Post: audioluthier
11-Oct-2024 02:32 AM
» Replies: 9
» Views: 511

[-]
SnakeoilOS Mission Statement

Our mission is to create a free to use computer OS that is easy to install, intuitive to operate and play music that will connect and engage with you emotionally.

SnakeoilOS gives you the freedom to spend more time on listening, enjoying and exploring music. Wasting time on computers is now a thing of the past! Everything is constantly evolving/improving. Please check back often for updates.

If you like this project, do show your support with a small token donation. All donations collected will be used to run this website, and for purchasing new equipment for the project.


Powered By MyBB, © 2002-2024. Theme © Melroy van den Berg.