Forum     

Go Back   Digit Technology Discussion Forum > Portables, Peripherals and Electronics > QnA (read only)
Register FAQ Calendar Mark Forums Read

QnA (read only) Mods please help transfer the contents of this forum to proper sections. :)


 
 
LinkBack Thread Tools Search this Thread Display Modes
Old 02-03-2007, 02:55 PM   #1 (permalink)
Broken In
 
tanush_89's Avatar
 
Join Date: Jul 2005
Posts: 117
Exclamation I made some calculations for IP


I made some calculations for IP and found out this :-


IP can range betwee0 0.0.0.0 to 223.255.255.255

So by permutation we get total of 4,53,49,632.

So at any instant maximum 4,53,49,632 computers and sites can only come /be online (excluding the ip's which are allocated to specific) sites.


And if we include that then the no. will reduce further.

I think only US would be using 4.5 carore ips every second.



So where am I making a mistake.


Coz the usage is much much more.
tanush_89 is offline  
Advertisements. Register and be a member of the community to get rid of them.
Advertisement

Old 02-03-2007, 03:17 PM   #2 (permalink)
Wise Old Owl
 
piyush gupta's Avatar
 
Join Date: Sep 2005
Location: never land
Posts: 1,284
Default Re: I made some calculations for IP

See this list for detail knowledge of allocation of IP addresses

http://en.wikipedia.org/wiki/IPv4#Addressing

IPv4 uses 32-bit (4-byte) addresses, which limits the address space to 4,294,967,296 possible unique addresses. However, some are reserved for special purposes such as private networks (~18 million addresses) or multicast addresses (~1 million addresses). This reduces the number of addresses that can be allocated as public Internet addresses. As the number of addresses available are consumed, an IPv4 address shortage appears to be inevitable.
This limitation has helped stimulate the push towards IPv6, which is currently in the early stages of deployment and is currently the only contender to replace IPv4.
__________
IPv4 uses 32-bit (4-byte) addresses, which limits the address space to 4,294,967,296 possible unique addresses. However, some are reserved for special purposes such as private networks (~18 million addresses) or multicast addresses (~1 million addresses). This reduces the number of addresses that can be allocated as public Internet addresses. As the number of addresses available are consumed, an IPv4 address shortage appears to be inevitable.

This limitation has helped stimulate the push towards IPv6, which is currently in the early stages of deployment and is currently the only contender to replace IPv4.

Last edited by piyush gupta; 02-03-2007 at 03:17 PM. Reason: Automerged Doublepost
piyush gupta is offline  
Old 02-03-2007, 03:31 PM   #3 (permalink)
eWebGuru
 
ahref's Avatar
 
Join Date: Mar 2006
Location: Dehradun
Posts: 427
Default Re: I made some calculations for IP

There are many people who use same ip to connect to internet, example small offices, cybercafe etc.
__________________
Windows and linux hosting at http://www.ewebguru.com
Get $50 per blog post PM me for details.
ahref is offline  
Old 02-03-2007, 04:19 PM   #4 (permalink)
18 Till I Die............
 
Join Date: Jul 2004
Location: India, Mumbai, Marine Lines
Posts: 5,792
Default Re: I made some calculations for IP

Search wikipedia for NAT and dynamic IP, that will answer your question.
__________________
http://www.bash.org/?258908
mehulved is offline  
Old 02-03-2007, 04:19 PM   #5 (permalink)
Google Bot
 
Pathik's Avatar
 
Join Date: Aug 2005
Posts: 9,772
Default Re: I made some calculations for IP

yup ... not evy user has a static ip... and many broadband users hav the same ip... and ipv6 is also gonna be implemented...
Pathik is offline  
Old 02-03-2007, 09:24 PM   #6 (permalink)
Wahahaha~!
 
Faun's Avatar
 
Join Date: Dec 2006
Location: Pune/there
Posts: 7,680
Default Re: I made some calculations for IP

NAT
__________________
Blog | Flickr | Battlelog
Spoiler:
Asus Z68 V-Pro|i5 2500k|TRUE Black|Ripjaws X|U2311H|N560GTX|D7000|XONAR STX|RE272|RE0|CC51|XE200PRO Walnut| TD II V2| Ultraphile|N5800

Mono
Faun is offline  
Old 03-03-2007, 05:08 PM   #7 (permalink)
TooR
 
alok4best's Avatar
 
Join Date: Dec 2006
Location: 192.168.1.100
Posts: 519
Default Re: I made some calculations for IP

u'll understand when u'll learn about NAT..NAT allows multiple nodes to connect to Internet using same public IP,,this Network Address Translation(NAT) is done by your subnet...subnet is used at college campuses,offices etc etc..
__________________
I wish !!
alok4best is offline  
Old 03-03-2007, 05:13 PM   #8 (permalink)
Debian Rocks!
 
freebird's Avatar
 
Join Date: Feb 2007
Location: Coimbattore
Posts: 528
Smile Re: I made some calculations for IP

but if ipv6 got implemented?then how do you read it a loong confusing line?
I Love IPV4
__________________
"The day windows users wake up to reality, it will be doomsday for Microsoft."UNIX like OS are more secure.get urself out 4m M$ http://whylinuxisbetter.net http://tinyurl.com/2amjjc http://fsf.org
freebird is offline  
Old 03-03-2007, 05:20 PM   #9 (permalink)
Google Bot
 
Pathik's Avatar
 
Join Date: Aug 2005
Posts: 9,772
Default Re: I made some calculations for IP

do u remember ips of all the sites u visit!?? Wat r domain names for??
Pathik is offline  
Old 03-03-2007, 05:24 PM   #10 (permalink)
Debian Rocks!
 
freebird's Avatar
 
Join Date: Feb 2007
Location: Coimbattore
Posts: 528
Default Re: I made some calculations for IP

Yaar!just joking...ya while trying setting up lan i do try to remember IP addresses.
__________________
"The day windows users wake up to reality, it will be doomsday for Microsoft."UNIX like OS are more secure.get urself out 4m M$ http://whylinuxisbetter.net http://tinyurl.com/2amjjc http://fsf.org
freebird is offline  
Old 03-03-2007, 06:25 PM   #11 (permalink)
In The Zone
 
lalam's Avatar
 
Join Date: Nov 2006
Location: Guwahati
Posts: 358
Default Re: I made some calculations for IP

Alright here's another question i was confused as to how you derived the n value for the formula 2n-2 .I know the 8 bit stuff but whats beyond that has confused me a hell lot so any simple way that someone may make me understand?
lalam is offline  
Old 05-03-2007, 02:28 AM   #12 (permalink)
TooR
 
alok4best's Avatar
 
Join Date: Dec 2006
Location: 192.168.1.100
Posts: 519
Default Re: I made some calculations for IP

I'll tell u thw whole behind IPV4...there are 4 fields..each 8bit.seperated by dots.
so each field can have 2^8 values..now if u convert a decimal IP to binary u'll get stream of 1s and zeros.now the rule is that it shud be a formation in which a stream of 1s iz followed by zeros..for example say 11111100 is valid entry while 11011111 is not..i told a 8 bit example.but the rule applies to the whole 32 bit.

so if ur subnet is 255.255.255.0 u will have its binary equivalent as
11111111.11111111.11111111.00000000..
now if u want to calculate how many hosts this subnet can hold..u just have to count the number of zeros..which is in this case 8..so total number of hosts that this subnet can handle will be 2^8.
__________
now the nexy example which u can verify..open ur network connections and go to properties and there to TCP/IP...enter say 192.168.1.1 as ur IP. now as soon as u click in the subnet field u'll get an automatic value of 255.255.255.255.
U must be wondering why it happened even when u didnt enter anything here.The simple answer is 255.255.255.255 is equivalent to 11111111.11111111.11111111.11111111. now as I told earlier count the number of zeroes..how many..NONE...so 2^0=1...since only your computer(1 host) is connected on that subnet u got no zeros..the same thing happens in Universities,Organizations..there they have different value for subnet masks..and thus using Network Address Translation they can operate multiple nodes using single public IP..I hope I was able to make it clear for you..


The Best Way to Thank Someone is Giving Him a Positive Reputation
__________________
I wish !!

Last edited by alok4best; 05-03-2007 at 02:28 AM. Reason: Automerged Doublepost
alok4best is offline  
Old 05-03-2007, 02:32 AM   #13 (permalink)
Right Off the Assembly Line
 
anand.expert's Avatar
 
Join Date: Feb 2007
Location: 27.18° N 78.02° E
Posts: 14
Default Re: I made some calculations for IP

Quote:
Originally Posted by tanush_89
I made some calculations for IP and found out this :-


IP can range betwee0 0.0.0.0 to 223.255.255.255

So by permutation we get total of 4,53,49,632.

So at any instant maximum 4,53,49,632 computers and sites can only come /be online (excluding the ip's which are allocated to specific) sites.


And if we include that then the no. will reduce further.

I think only US would be using 4.5 carore ips every second.



So where am I making a mistake.


Coz the usage is much much more.
The main reason is that the ip which is generally in use is the IP which has been provided by the Virtual Private Network (VPN).Like(192.168.x.x) or
(10.x.x.x)

Moreover there is a concept of Subneting which is used to effectively use the IP without any waste of it.
__________________
God is real... unless declared an integer.
Home Of Techies
www.techiehome.org
anand.expert is offline  
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


 
Latest Threads
- by clmlbx
- by abhidev
- by Sarath
- by ico
- by clinton

Advertisement




All times are GMT +5.5. The time now is 02:34 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.

Search Engine Optimization by vBSEO 3.3.2