I never knew I could type http://3232235777


 
Thread Tools Search this Thread
Special Forums IP Networking I never knew I could type http://3232235777
# 1  
Old 11-19-2006
I never knew I could type http://3232235777

I know IPv4 is a 32 bit address space, and we write it as 4 octets. But does IP interpret the address as 4 octets or full 32 bit value?

Example:
Dotted decimal = 192.168.1.1
4 octet binary = 11000000.10101000.00000001.00000001
full binary = 11000000101010000000000100000001
Full decimal = 3232235777

On my browser, I discovered today that I could type http://3232235777 instead of http://192.168.1.1.

Does IP ever compute with the full binary value? In other words, does IP only look at the 4 octet binary value...

11000000.10101000.00000001.00000001

...or does it ever look at a "full value" without any octet boundaries...

11000000101010000000000100000001

Suppose I have address 192.192.0.192/24, and write out in binary with no octet boundaries...

IP = 11000000110000000000000011000000 decimal = 3233808576
netmask = 11111111111111111111111100000000 decimal = 4294967040
network = 11000000110000001100000000000000 decimal = 3233857536

Do the values 3233808576 and 3233857536 have any meaning? I'm not asking if IP computes in decimal or if the decimal numbers are used in the IP software, I'm asking if the numerical values themselves (without any octet boundaries) have any meaning.

Sometimes the network address is > IP, sometimes the IP > network address.

Such as 192.192.192.192/24
IP = 11000000110000001100000011000000 decimal = 3233857728
network = 11000000110000001100000000000000 decimal = 3233857536
Here, the IP > network.

I'm guessing IP doesn't really operate with the full values, and the only arithmetic it does is with the octets, masks and logical AND, OR, NOT operations.

I wonder with VLSM, this matters. However, IP is a hierarchical system, so the masks and the networks have meaning.
# 2  
Old 12-05-2006
Quote:
Originally Posted by yoda9999
I know IPv4 is a 32 bit address space, and we write it as 4 octets. But does IP interpret the address as 4 octets or full 32 bit value?
The octets are what the value represents, not a physical "thing". Bits are bits as far as a computer's concerned.
Quote:
Do the values 3233808576 and 3233857536 have any meaning?
No, just the bits they represent.
Quote:
I'm guessing IP doesn't really operate with the full values, and the only arithmetic it does is with the octets, masks and logical AND, OR, NOT operations.
Tell me, what's the difference between
Code:
    0 0 0 0
AND 1 1 1 1
=   0 0 0 0

vs
    0000
AND 1111
=   0000

Logically nothing. No reason to break the bits, or even the octets apart to do simple logical operations like AND/OR/XOR/NOT. It can do everything in one operation. They didn't just happen to use masks instead of some other concept, they wanted something easy to build in hardware.
Quote:
However, IP is a hierarchical system, so the masks and the networks have meaning.
They're designed in such a way that the meanings translate into machine concepts very well. You don't have to care whether a netmask is 32 bits or 4 octets when doing masking and comparison.
Login or Register to Ask a Question

Previous Thread | Next Thread

5 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

awk script to find time difference between HTTP PUT and HTTP DELETE requests in access.log

Hi, I'm trying to write a script to determine the time gap between HTTP PUT and HTTP DELETE requests in the HTTP Servers access log. Normally client will do HTTP PUT to push content e.g. file_1.txt and 21 seconds later it will do HTTP DELETE, but sometimes the time varies causing some issues... (3 Replies)
Discussion started by: Juha
3 Replies

2. Web Development

HTTP Headers Reference: HTTP Status-Codes

Hypertext Transfer Protocol -- HTTP/1.1 for Reference - HTTP Headers 10 Status Code Definitions Each Status-Code is described below, including a description of which method(s) it can follow and any metainformation required in the response. (1 Reply)
Discussion started by: Neo
1 Replies

3. UNIX for Dummies Questions & Answers

5 Unix things you wish you knew as a beginner...

I am trying to get better at UNIX, and I wanted to post a question so I can take some advice from more experienced programmers. What are some things that you wished you knew (while you were learning UNIX) that you think every beginner should know? (2 Replies)
Discussion started by: statichazard
2 Replies

4. Shell Programming and Scripting

sending http url through http socket programming..

hi am senthil am developing a software to send and receive SMS using HTTP connection first of all am forming a URL and sending that URL to a remote server using my Client Program i send that url through Socket(using Send() Function) if i send more than one URL one by one using the same... (4 Replies)
Discussion started by: senkerth
4 Replies

5. Programming

sending http url through http socket programming..

hi am senthil am developing a software to send and receive SMS using HTTP connection first of all am forming a URL and sending that URL to a remote server using my Client Program i send that url through Socket(using Send() Function) if i send more than one URL one by one using the same... (0 Replies)
Discussion started by: senkerth
0 Replies
Login or Register to Ask a Question