Networking Forums

Networking Forums > Computer Networking > Linux Networking > IP address.

Reply
 
 
khan
Guest
Posts: n/a

 
      06-19-2006, 10:46 AM
From: "khan" <(E-Mail Removed)>
Newsgroups: comp.os.ms-windows.networking.tcp-ip
Subject: IP address.
Date: Mon, 19 Jun 2006 03:45:21 -0700

I wanted to clarify, how the IP address is matched and forwarded.
This is my understanding.
Let us consider your working on a machine "X" with IP address is
192.168.1.220, a IP packet is received with destination IP as
192.168.1.220(i.e machine "X" itself is the destination).Let the
subnet mask be 255.255.255.0.With this subnetmask, network id will be
192.168.1 and host id will be 220.

Now there are two possibilities according to me.

1. Check the routing table & match the entire IP address if it matches
completely and is the local IP address, pass the packectto transport
layer of local machine.or else just forwards the packet to next
appropriate router or to the host machine. or

2.First the network part is compared and if matches, the host part is
compared If matches,passes packet to the transport layer of local
machine.

 
Reply With Quote
 
 
 
 
Robert Harris
Guest
Posts: n/a

 
      06-19-2006, 02:16 PM
khan wrote:
> From: "khan" <(E-Mail Removed)>
> Newsgroups: comp.os.ms-windows.networking.tcp-ip
> Subject: IP address.
> Date: Mon, 19 Jun 2006 03:45:21 -0700
>
> I wanted to clarify, how the IP address is matched and forwarded.
> This is my understanding.
> Let us consider your working on a machine "X" with IP address is
> 192.168.1.220, a IP packet is received with destination IP as
> 192.168.1.220(i.e machine "X" itself is the destination).Let the
> subnet mask be 255.255.255.0.With this subnetmask, network id will be
> 192.168.1 and host id will be 220.
>
> Now there are two possibilities according to me.
>
> 1. Check the routing table & match the entire IP address if it matches
> completely and is the local IP address, pass the packectto transport
> layer of local machine.or else just forwards the packet to next
> appropriate router or to the host machine. or
>
> 2.First the network part is compared and if matches, the host part is
> compared If matches,passes packet to the transport layer of local
> machine.


The kernel routing table decides where to send an IP packet. If you type:

netstat -rn

you get a list of destinations and interfaces. Then when a packet is to
be sent, the kernel behaves as if it did a linear search down the table
(matching the destination IP address against (destination and genmask)
in the table.

Linux doesn't seem to display a localhost entry.

Robert
 
Reply With Quote
Reply

Thread Tools
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 Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Pipex Address: Post Office wont sent registered letter as they say the address is invalid! W Broadband 16 05-13-2008 09:30 PM
Coffee shop wifi will not give me IP address, but gives everyone else IP address. But static IP works! Jennifer R Wireless Internet 5 09-30-2007 06:12 AM
access violation at address 004075e5 module WUSB54G4.exe of address 00000368 Houndog Wireless Internet 10 02-13-2006 06:56 PM
"access violation at address 004075e5 module WUSB54G4.exe of address 00000368 Houndog Windows Networking 0 02-12-2006 09:40 PM
When Linux PC boots, Does it sends RARP packet to get its IP address by embedding its Hardware address? santa19992000@yahoo.com Linux Networking 2 10-16-2005 10:40 PM



1 2 3 4 5 6 7 8 9 10 11