ProSoundWeb Community

Please login or register.

Login with username, password and session length
Advanced search  

Pages: [1] 2 3 4   Go Down

Author Topic: TCP/IP networking primer - Please Read and Add Questions and Comments  (Read 78985 times)

Scott Helmke

  • Hero Member
  • *****
  • Offline Offline
  • Posts: 2253

OK, so here's a basic primer on TCP/IP networking.  Applicable to basic computer networking, including audio devices with a TCP/IP (aka "Cat5") port and standard networking.  I'm not going to bother to explain the acronyms.  Make up a cute and memorable name for each if you like.

So the overview is that each device on the network needs a unique address.  Back in the bad old days when we ran coax around to each computer these addresses were manually assigned.  That's still what happens a lot in digital audio applications and device control, just to keep things consistent.

DHCP:  This is where you have something on the network (usually a router, even a cheap WiFi router these days usually has a DHCP server inside) which hands out addresses automatically.  This is the easiest way to go, generally.  Each device needs to be configured for DHCP instead of manual address (though you can still have some devices with manually set addresses), and the DHCP server will hand out compatible unique addresses to everybody.  Beyond that some devices can also assign themselves a generally unique address, assuming other things on the network are doing the same thing and if there's no DHCP server to be found.

Not every device can request a DHCP address, though.  Yamaha consoles, for instance.  So you'll still need to understand a little about manual addressing.

The usual type of address you see looks something like this:  192.168.1.12, with a subnet mask of 255.255.255.0.  Each of those numbers is between 0 and 255, and unless we're talking IPv6 you'll always see four of them with those periods in between.  The deal here which you should remember above all else is that each device needs a unique address, but not too far away from the other devices you want to talk to.  So with that 192.168.1.12 you might have addresses like 192.168.1.100, 192.168.1.209, etc.  The first three numbers are the same for all of those, the last is different.  Those are compatible addresses in the same subnet.

Subnets - so what is a subnet?  It's a way to make addresses more local.  When you talk about your neighbors you don't have to give the whole address, everybody knows they're on the same block so you can just give the house number and maybe the street.  Subnets work the same way, making the space smaller so that it is easier to deal with.  There are different types of subnets - class A is huge, class B is medium sized, class C is small.  That 192.168.1.x example is a class C address, where the first three numbers are always the same and the last changes.  Since the numbers are always between 0 and 255 the size of your "neighborhood" is smaller than say 254 (some addresses tend to be reserved) devices.  Almost always that'll be enough for our purposes. 

Now if you need a bigger neighborhood you can use a class B subnet, where the first two numbers are always the same and the last two need to be unique.  Now we're into the tens of thousands of possible devices.  Class A goes even further; only the first number needs to be the same between all the devices.  Class A subnets are only used by companies like Google and IBM.

Dante defaults to a class B subnet, and the default addresses.  Remember above when I said that if all else fails a device might just assign itself a random address?  This is the usual way that Dante devices find each other, assigning themselves a class B subnet with the addresses always starting with 169.254.  Dante devices can also be configured to request addresses from a DHCP server or use a manually assigned address.

Subnet mask:  I'm not even going to try to describe why this is the way it is.  Suffice it to say that for a class A subnet it'll be 255.0.0.0, for class B it'll be 255.255.0.0, and for class C it'll be 255.255.255.0. 

MAC address:  This is basically a serial number for your network device.  It's made up of a manufacturer code (assigned by the folks who admin the Internet) plus a unique number assigned by the manufacturer.  As long as everybody plays by the rules each network card, networkable device, etc. has a worldwide unique number.  It'll look something like this: "01-23-45-67-89-AB", where each digit can be 0-9 or A-F (hexadecimal, or 16 values per digit).  You don't need to worry about these - at the most, when setting up remote control of a Yamaha console, you might have to enter the MAC address from the console setup screen into the remote control application.

By the way, that 192.168.1.x example isn't random numbers.  That's the official default for "I'm just hooking some computers together" addresses.  Just about every little Wifi router found in just about every home has the address 192.168.1.1, and will hand out addresses compatible with that.  Sometimes you'll see 192.168.0.x instead, which is fine too.

If you're trying to troubleshoot networking problems with Dante network you can manually assign your computer an address in that range of 169.254.x.x.  Just pick random numbers for the last two; out of a pool of tens of thousands you're probably not going to pick one that is already being used.  Don't forget to set the subnet mask to 255.255.0.0.

Number one network troubleshooting tool is "ping", which you can run from the Terminal application on a Mac or from the Command Prompt application on Windows.  "ping 192.168.1.32" will send a "tell me if you're there, dude" request to a device at that address.  If it's there and working it should send back a "hey man, I'm here" message.  Try this if you're not getting the control software to talk to something, and if it works (gets a response) then your problem is not with the network.
« Last Edit: April 03, 2013, 11:53:34 AM by Mac Kerr »
Logged

Mac Kerr

  • Old enough to know better
  • Administrator
  • Hero Member
  • *****
  • Offline Offline
  • Posts: 7551
  • Audio Plumber
Re: TCP/IP networking primer
« Reply #1 on: January 20, 2013, 09:58:35 PM »

I am going to make this a sticky. Please add to it. When there are enough posts we will edit it into a single document and distribute it to the contributors for editing and suggestions. At that point it will be reposted as a FAQ.

If we can put together a good FAQ that is not already spread around the Internet we will look into the possibility of getting it published as a magazine article.

Mac
« Last Edit: January 20, 2013, 10:07:34 PM by Mac Kerr »
Logged

Scott Helmke

  • Hero Member
  • *****
  • Offline Offline
  • Posts: 2253
Re: TCP/IP networking primer
« Reply #2 on: January 21, 2013, 01:37:37 PM »

Ideally it'll get shorter, not longer.  Something that can be printed on a cocktail napkin would be the most useful.
Logged

Tim McCulloch

  • SR Forums
  • Hero Member
  • *
  • Offline Offline
  • Posts: 23743
  • Wichita, Kansas USA
Re: TCP/IP networking primer
« Reply #3 on: January 21, 2013, 02:03:27 PM »

Ideally it'll get shorter, not longer.  Something that can be printed on a cocktail napkin would be the most useful.

Networks so small you can drown them in a bath tub.... ;)
Logged
"If you're passing on your way, from Palm Springs to L.A., Give a wave to good ol' Dave, Say hello to progress and goodbye to the Moonlight Motor Inn." - Steve Spurgin, Moonlight Motor Inn

Chris Johnson [UK]

  • Sr. Member
  • ****
  • Offline Offline
  • Posts: 446
Re: TCP/IP networking primer
« Reply #4 on: January 22, 2013, 05:44:03 PM »

Can I propose a couple of clarifications:

1) Ethernet refers to a group of networking technologies . Cat5/Cat5e/Cat6/Cat7 are cable types. RJ45 is the connector type that is typically used with the aforementioned cables for ethernet use. TCP/IP is a specific communications protocol. These things are not mutually exclusive. You can have ethernet without TCP/IP, you can have cat5 without ethernet, and you can have RJ45 connectors on other types of cable...

2) IP addresses are owned, like internet domains. However, back in the day, the powers that be decided they would reserve some IP addresses for private use. There are 4 such IP address blocks:
- 10.x.x.x
- 169.254.x.x
- 172.16.x.x
- 192.168.x.x
All other addresses are either reserved for special purposes, or owned by companies and used on the internet.

3) As an expansion on the use of 'ping':
If you find yourself in a situation where you need to connect to a device that has an address that is, say, 192.168.1.x, but you cant remember what exact address, you can set your IP address to an address in the same range (say 192.168.1.100) and ping 192.168.1.255. Then any device with an IP address that is 192.168.x.x will respond, allowing you to see the addresses of other devices on the network.

Equally, if you have no idea what the address is, you can connect your computer to the same LAN, and give it any IP address and then ping the address 224.0.0.1 and any device on the LAN with any address will respond.

Feel free to ignore if you like :)

But remember, todays engineer has to be part IT engineer!
Logged
Riedel Communications

Jerome Malsack

  • Hero Member
  • *****
  • Offline Offline
  • Posts: 1402
Re: TCP/IP networking primer
« Reply #5 on: January 24, 2013, 12:16:28 PM »

2) IP addresses are owned, like internet domains. However, back in the day, the powers that be decided they would reserve some IP addresses for private use. There are 4 such IP address blocks:
- 10.x.x.x
- 169.254.x.x
- 172.16.x.x
- 192.168.x.x
All other addresses are either reserved for special purposes, or owned by companies and used on the internet.

These addresses are not routed onto the internet and they should be translated by the router to an address that can be.  With IPV6 there will be no equivalent and all addresses will be addressable on the internet. 
« Last Edit: January 24, 2013, 01:50:43 PM by Mac Kerr »
Logged

Scott Wagner

  • Hero Member
  • *****
  • Offline Offline
  • Posts: 1020
  • Richmond, VA
Re: TCP/IP networking primer
« Reply #6 on: January 31, 2013, 12:34:01 PM »

In the audio world, it's best to keep networks as simple as possible.  While the subnet classes have been deprecated thanks to variable length subnet masking, they are still useful in that they are much easier for a novice to understand.  24 bit (or class C 255.255.255.0) subnet masks are probably the best choice for audio networks, since it is extremely rare to need more than 254 unique addresses (in each subnet) in an audio environment.  Keep in mind that the first address in a subnet (192.168.1.0 in a class C subnet for example) is the network itself, and the last address in a subnet (192.168.1.255 in a class C subnet) is the broadcast address (ie: all devices on that subnet will accept the packet).  That would leave a range of addresses available (192.168.1.[1-254]) for addressing each device.

Given the constraint that class C subnet masking will be used, the best choice for addressing would be to use the 192.168.[0-255].[1-254] private address space.  The first two octets (since they are 8 bits in length) are defined by RFC1918 as a private 16 bit (class B) address space that is easily configurable into 256 class C subnets.  The third octet (192.168.x) would define the network, and the fourth octet (192.168.[0-255].x) defines each device.  Traditionally, routers are assigned addresses at the beginning or end of the address space (192.168.1.1 or 192.168.1.254 for example), but there are no requirements to do so other than tradition.

To summarize the TCP/IP Networking for Audio Dummies:
1.  Use the 192.168.[0-255].[1-254] address space
2.  Use 255.255.255.0 for all subnet masks
3.  Pick a number for the third octet to define your network (192.168.1 is a standard choice).
4.  Pick a number for the fourth octete to define each device (192.168.1.[1-254]).
5.  The "default gateway address" is whatever address you've assigned to your router (or 0.0.0.0 if you don't have a router).
6.  Remember that most audio networks are switched (instead of routed), since it's best to isolate production networks from the rest of the world.
7.  When deploying wireless, always enable the security to keep the punters out of your production network.

If you stick to these simple constraints, anyone can easily configure networks without ever having to understand binary (base2) mathmatics.
Logged
Scott Wagner
Big Nickel Audio

Tim Padrick

  • Hero Member
  • *****
  • Offline Offline
  • Posts: 927
  • Indianapolis
    • T.P. Audio
Re: TCP/IP networking primer
« Reply #7 on: February 19, 2013, 10:23:58 PM »

Quote from: Chris Johnson [UK
ss, you can set your IP address to an address in the same range (say 192.168.1.100) and ping 192.168.1.255. Then any device with an IP address that is 192.168.x.x will respond, allowing you to see the addresses of other devices on the network.

Equally, if you have no idea what the address is, you can connect your computer to the same LAN, and give it any IP address and then ping the address 224.0.0.1 and any device on the LAN with any address will respond.

192.168.1.255 works on my network.  224.0.0.1 does not.
Logged

Scott Wagner

  • Hero Member
  • *****
  • Offline Offline
  • Posts: 1020
  • Richmond, VA
Re: TCP/IP networking primer
« Reply #8 on: February 20, 2013, 09:28:45 AM »

In another discussion someone mentioned using MAC Filtering for alternative or additional security.  A MAC address is an unique identifier assigned by the manufacturer to each network device.  Enabling MAC Filtering would block anything with the exception of that specific device.  This is a good step to keep unwanted devices off of your network; however, if you replace that device (even with the exact same model) you will have to change your filtering rules since the new device will have a different MAC address.

Imagine a simple network consisting of a digital mixer, router (or WAP), and a single computer.  If MAC Filtering were enabled and only these three devices were added to the MAC filtering allow list, you could be in for some trouble.  If you computer dies and you have to replace it, now you can't get into the router (or WAP) to change the MAC Filtering rules.  At that point it's time for a hard reset of the router (or WAP) and starting over with the configuration from scratch.  I recommend having an additional computer allowed on your MAC list to avoid this situation.  We all know that computers never die, right?
Logged
Scott Wagner
Big Nickel Audio

David Sturzenbecher

  • Hero Member
  • *****
  • Offline Offline
  • Posts: 1966
  • So. Dak.
    • Sturz Audio
Re: TCP/IP networking primer
« Reply #9 on: February 20, 2013, 11:03:51 AM »

This may be a new thread but...

Are there any best practices for adding wireless to systems with digital snakes. 

I would really like to know the best way to add a wireless router to my I-tech System without taking the Cobranet down...
Logged
Audio Systems Design Engineer
Daktronics, Inc.
CTS-D, CTS-I
AES Full Member

ProSoundWeb Community

Re: TCP/IP networking primer
« Reply #9 on: February 20, 2013, 11:03:51 AM »


Pages: [1] 2 3 4   Go Up
 



Site Hosted By Ashdown Technologies, Inc.

Page created in 0.034 seconds with 23 queries.