Dev Shed Lounge
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsOtherDev Shed Lounge

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Be the architects of evolution and help create the mobile internet future. It’s your move---enter to win here!
  #1  
Old April 23rd, 2003, 08:22 AM
Matthew Doucette Matthew Doucette is offline
matthewdoucette.com
Dev Shed Novice (500 - 999 posts)
 
Join Date: May 2002
Posts: 635 Matthew Doucette User rank is Private First Class (20 - 50 Reputation Level)Matthew Doucette User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 9 h 59 m 37 sec
Reputation Power: 7
Question IP specifications

Are IPs always in the format { 0..255 , period , 0..255 , period , 0..255 , period , 0..255 } ?

I have heard that class A addresses are split 7 bits - 25 bits (may not be true). Do these IPs still follow the format I displayed above?

Reply With Quote
  #2  
Old April 23rd, 2003, 04:06 PM
Scorpions4ever's Avatar
Scorpions4ever Scorpions4ever is online now
Banned ;)
Dev Shed God 5th Plane (7000 - 7499 posts)
 
Join Date: Nov 2001
Location: Glendale, Los Angeles County, California, USA
Posts: 7,442 Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level) 
Time spent in forums: 1 Month 1 h 50 m 28 sec
Reputation Power: 797
1. Yes for IP version 4 (IPv4 for short) only, which has 4 octets to specify an IP address. IPv6 is different (see http://www.ipv6.org/ if you're interested in IPv6).

2. The original definition for class A addresses was for all addresses where the first octet is 00000000 - 10000000 (in binary, of course). Class B is for addresses where the first octet is 10000001 - 11000000, Class C is 11000001 - 11100000, you can see where the pattern is heading. In decimal, this would mean the first octet could range as follows:
Class A - 0...127 (0, 10 and 127 are reserved though)
Class B - 128...191 (172 is reserved for internal networks)
Class C - 192...223 (192.168 is reserved for internal networks)
Class D - 224...247 (there are multicast addresses)
Class E - 248...255 (these are experimental)

This was the original Internet scheme developed in the 70s. These days, with subnetting, these definitions have become largely meaningless.

Reply With Quote
  #3  
Old April 23rd, 2003, 08:40 PM
Matthew Doucette Matthew Doucette is offline
matthewdoucette.com
Dev Shed Novice (500 - 999 posts)
 
Join Date: May 2002
Posts: 635 Matthew Doucette User rank is Private First Class (20 - 50 Reputation Level)Matthew Doucette User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 9 h 59 m 37 sec
Reputation Power: 7
Thanks for the info. I have a few more simple but interesting questions:

1) It seems IPs always contain 4 bytes values (range 0..255) split up by 3 periods... is this true? In other words, is an IP always 4 octets split with periods?

2a) 123.31.32.012 <------- Do IPs ever have leading zeros, like this?

2b) If so, would the base of the number assumed to be 8 (octal)?

3) When zeros exist in an IP, like 127.0.0.1, what do they mean? Is there ever an octet that never contains a zero. I believe that the right-most octet is a network if it is a zero, but I am not sure about the others.

Last edited by Doucette : April 24th, 2003 at 11:58 AM.

Reply With Quote
  #4  
Old April 24th, 2003, 04:08 PM
Scorpions4ever's Avatar
Scorpions4ever Scorpions4ever is online now
Banned ;)
Dev Shed God 5th Plane (7000 - 7499 posts)
 
Join Date: Nov 2001
Location: Glendale, Los Angeles County, California, USA
Posts: 7,442 Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level) 
Time spent in forums: 1 Month 1 h 50 m 28 sec
Reputation Power: 797
1. Yes, for IPv4 only. IPv4 addresses always contain 4 octets (i.e. 32 bits). Not true for IPv6, which uses 128 bit addresses.

2a. Never seen it represented like that -- but I guess you could, if you want to represent numbers in octal. . For the record, I've only seen the numbers represented in decimal, never in hex, oct or any other base.

2b. Note that the leading 0 is used to represent octal numbers in C and C-influenced programming languages. I don't think Visual Basic treats numbers starting with 0 as octal numbers, neither does Pascal, and there are other languages as well. Your average beginning programmer, who hasn't programmed in a C influenced language, would probably assume that the number is in decimal format rather than octal.

3. 0 and 255 are special values in any octet. 0 is reserved for machines that don't know their own address. For example, a host could know that its host address is 42, but not its network address. So it could temporarily assign itself 0.0.0.42 and broadcast a message asking for the network address. Another server could tell it the network address (say 12.34.56.), and then it would assign itself 12.34.56.42. Similarly, 255 is a special address that indicates that this message is broadcast to all hosts within that network. So a message going to 12.34.56.255 will be received by all hosts within the 12.34.56.xx network. Sending to 12.34.255.255 will send to all hosts within 12.34.xx.xx network.

As to whether or not, there are any addresses that DON'T contain a 0, there are plenty around. As a matter of fact, your own website (www.matthewdoucette.com) has an IP address that doesn't contain a 0 in it .

Hope this helps.

Last edited by Scorpions4ever : April 24th, 2003 at 04:27 PM.

Reply With Quote
  #5  
Old April 25th, 2003, 09:04 AM
Matthew Doucette Matthew Doucette is offline
matthewdoucette.com
Dev Shed Novice (500 - 999 posts)
 
Join Date: May 2002
Posts: 635 Matthew Doucette User rank is Private First Class (20 - 50 Reputation Level)Matthew Doucette User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 9 h 59 m 37 sec
Reputation Power: 7
Thanks again!

Quote:
Originally posted by Scorpions4ever
1. Yes, for IPv4 only. IPv4 addresses always contain 4 octets (i.e. 32 bits). Not true for IPv6, which uses 128 bit addresses.
Are the 32 bits always split up in octets (4x8bits)?

Quote:
Originally posted by Scorpions4ever
As to whether or not, there are any addresses that DON'T contain a 0, there are plenty around. As a matter of fact, your own website (www.matthewdoucette.com) has an IP address that doesn't contain a 0 in it .
Actually what I meant to ask are their any octets, in general, that never contain a zero. Are there any octets where it would be against IP specifications if they did contain a zero? I had this feeling that an IP where the first octet is a zero is an illegitimate IP. I think you answered my question already anyways! Thanks!

Reply With Quote
  #6  
Old April 25th, 2003, 01:27 PM
Scorpions4ever's Avatar
Scorpions4ever Scorpions4ever is online now
Banned ;)
Dev Shed God 5th Plane (7000 - 7499 posts)
 
Join Date: Nov 2001
Location: Glendale, Los Angeles County, California, USA
Posts: 7,442 Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level)Scorpions4ever User rank is Major General (70000 - 90000 Reputation Level) 
Time spent in forums: 1 Month 1 h 50 m 28 sec
Reputation Power: 797
>> Are the 32 bits always split up in octets (4x8bits)?
Yes, it is always 4 octets of 8 bits each, for IPv4.

Reply With Quote
Reply

Viewing: Dev Shed ForumsOtherDev Shed Lounge > IP specifications


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway