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
ZimaBoard 2x NIC, 2x SATA, 2x USB, 1x PC...
Last Post: agent_kith
26-Mar-2024 12:04 PM
» Replies: 13
» Views: 612
LMS Upgrade ?
Last Post: uglymusic
15-Mar-2024 09:14 PM
» Replies: 7
» Views: 149
Squeezebox shutdown
Last Post: TripleX
13-Mar-2024 07:34 AM
» Replies: 4
» Views: 70
MP3 Not Playing
Last Post: Coacharnold
10-Mar-2024 10:25 AM
» Replies: 3
» Views: 52
Fail to install myMPD
Last Post: hkphantomgtr
03-Mar-2024 08:45 PM
» Replies: 9
» Views: 195
Intel HFI Driver Can "Save Tons Of CPU C...
Last Post: hkphantomgtr
28-Feb-2024 09:15 PM
» Replies: 0
» Views: 41
Announcing Snakeoil Measurements 1.3.0
Last Post: agent_kith
26-Feb-2024 10:02 PM
» Replies: 94
» Views: 4137
More Problems with Squeezelite in 1.3
Last Post: Coacharnold
17-Feb-2024 09:47 PM
» Replies: 2
» Views: 69
Snakeoil Music server & Snakeoil its own...
Last Post: Snoopy8
17-Feb-2024 11:20 AM
» Replies: 8
» Views: 365
RoonBridge (64 bit only)
Last Post: scrarfussi
15-Feb-2024 08:26 PM
» Replies: 3
» Views: 4124

[-]
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.