ARP Cache


 
Thread Tools Search this Thread
Operating Systems Solaris ARP Cache
# 1  
Old 06-29-2007
ARP Cache

Dear all,

We are testing two of our servers for mq series connectivity. The scenario is, when one machine is shutting down it's services there are some scripts that do a dns update, which removes the ip address and relates it to the ip address of the other node on our dns server, and the update happens properly, now comes the real issue:
Solaris 8 node does not clear the ipaddress from the arp cache
Solaris 10 node does not seem to check the cache; it directly looks up from the dns

We are really puzzled. Can you put in some thought?

TIA
# 2  
Old 06-29-2007
Quote:
Originally Posted by earlysame55
Solaris 8 node does not clear the ipaddress from the arp cache
Solaris 10 node does not seem to check the cache; it directly looks up from the dns
You are talking apples and oranges.

The ARP cache translates IP address to MAC addresses (eg ethernet node addresses) and only refers to the same subnet/network segment.

DNS does name resolving, translating a name to an IP address.

DNS knows nothing about MAC addresses.
# 3  
Old 06-30-2007
Quote:
Originally Posted by porter
You are talking apples and oranges.

The ARP cache translates IP address to MAC addresses (eg ethernet node addresses) and only refers to the same subnet/network segment.

DNS does name resolving, translating a name to an IP address.

DNS knows nothing about MAC addresses.
Hi porter,

Thanks for the reply. When a name lookup has been done and initial connectivity is established dosn't it be there in the cache ?
# 4  
Old 06-30-2007
Quote:
Originally Posted by earlysame55
Hi porter,

Thanks for the reply. When a name lookup has been done and initial connectivity is established dosn't it be there in the cache ?
No, not necessarily.

DNS mappings happen when a name is queried againt the DNS system and an IP address is returned (or the reverse, and established in the DNS cache).

An ARP cache entry occurs when a IP packet is in a router LAN segment after a broadcast to determine the IEEE 802 MAC address.

As porter says, DNS and ARP are totally different systems. DNS maps names to IP address. ARP maps IP addresses to MAC address. These mapping are used very differently.
# 5  
Old 06-30-2007
Quote:
Originally Posted by Neo
No, not necessarily.

DNS mappings happen when a name is queried againt the DNS system and an IP address is returned (or the reverse, and established in the DNS cache).

An ARP cache entry occurs when a IP packet is in a router LAN segment after a broadcast to determine the IEEE 802 MAC address.

As porter says, DNS and ARP are totally different systems. DNS maps names to IP address. ARP maps IP addresses to MAC address. These mapping are used very differently.
Thanks Neo,
So when i lookup the dns, get the ip. Meaning when the application runs a gethostbyname(), it updates the dns cache. How and when is the server's arp cache get updated. I thought it's after the ipaddress is returned and when a transmission happens to that ip, it's stored in the arp cache(after the llokup procedure for the mac address). Correct me if i'm wrong.

TIA
# 6  
Old 06-30-2007
Quote:
Originally Posted by earlysame55
Correct me if i'm wrong.
That is indeed correct, however

1. deregistering a DNS name does not cause arp caches to get flushed.

2. deregistering a DNS name at a server does not affect client caches where the name is still considered valid for the timeout that the DNS server previously reported.

3. arp caches can be added to and deleted manually and dynamic entries typically have a relatively short timeout.
# 7  
Old 06-30-2007
Quote:
Originally Posted by earlysame55
Thanks Neo,
So when i lookup the dns, get the ip. Meaning when the application runs a gethostbyname(), it updates the dns cache. How and when is the server's arp cache get updated. I thought it's after the ipaddress is returned and when a transmission happens to that ip, it's stored in the arp cache(after the llokup procedure for the mac address). Correct me if i'm wrong.

TIA

No, that is not actually correct.

If the IP address of the destination is on the same LAN segment as the origin, then when you send the first packet to that designation, the ARP tables on that LAN segment will update.

However, if your destination is 2 hops away, then there will be no ARP entry for the destination address.

ARP is for mapping IP address to MAC addresses for LAN traffic, not for IP routing.

Just doing a DNS lookup will not update an ARP table.

For example, right now you sit down and you want to visit www.unix.com .
There is no ARP entry on your server for www.unix.com because your computer is not on the same LAN segment as www.unix.com.

Is this clear now?
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. War Stories

What arp -s is good for

A customer appears to have drastically misunderstood our instructions for connecting to our WAN. He set his PC IP address to the same as one of the bridges. :mad: :wall: This caused much confusion on the network, to put it mildly. He called to complain about the poor performance of the network... (13 Replies)
Discussion started by: Corona688
13 Replies

2. IP Networking

necessary ARP request?

Hello, I have 2 clients with Unix installed. host1: eth0 (192.168.5.10) & eth1 (192.168.10.10) host2: eth0 (192.168.10.20) I've connected host1-eth1 to host2-eth0. host1-eth0 isn't connected. I started 'tcpdump' on wonder that host2 got ARP requests for 192.168.5.10. Any idea why host1... (2 Replies)
Discussion started by: daWonderer
2 Replies

3. UNIX for Advanced & Expert Users

arp questions

Can someone please explain this output to me. Why doesn't ifconfig show the same info? ~ $ arp -a ? (10.71.0.1) at 00:1b:21:2b:eb:0c on eth0 (4 Replies)
Discussion started by: cokedude
4 Replies

4. Linux

File cache /Page cache Linux

Hi All, could any one point out any open source test-suites for "File cache" testing and as well as performance test suites for the same. Currently my system is up with Linux/ext4. Regards Manish (0 Replies)
Discussion started by: hmanish
0 Replies

5. Linux

getting info on Cache Size, Data Cache etc..

Hi all I saw in Microsoft web site www.SysInternals.com a tool called CoreInfo from able to print out on screen the size of the Data and Instruction caches of your processor, the Locigal to Physical Processor mapping, the number of the CPU sockets. etc.. Do you know if in Linux is available a... (2 Replies)
Discussion started by: manustone
2 Replies

6. Programming

Manipulate the Linux ARP Cache in C

Hello, I need help on how to "access" or manipulate the Linux ARP Cache in C, here is the description of the project i'm working in: There are a lot of tools that analize ARP frames and send an e-mail to the sysadmin, that's easy. What i want to do is to inspect every ARP frame that arrives... (18 Replies)
Discussion started by: semash!
18 Replies

7. Red Hat

Arp Problem

Dear All i have a linux proxy server which has RHEL-5 64 bit, it has two interfaces, it has the following details eth0=10.200.14.42 eth3=10.201.14.42 default gateway=10.201.14.254 one static route=192.168.0.0/24 gw 10.200.14.254 i am facing a problem when i ping 10.201.14.42 from... (2 Replies)
Discussion started by: surfer24
2 Replies

8. HP-UX

HW Address and arp

I was checking nettl output for a unstable telnet to my server. this is part of output: ### ***********************************STREAMS/UX*******************************@#% Timestamp : Sun Jun 22 EETDST 2008 22:14:47.492899 Process ID : Subsystem ... (4 Replies)
Discussion started by: xramm
4 Replies

9. IP Networking

how can we spoof ethernet by ARP cache poisoning on unix through a program

how can we spoof ethernet by ARP cache poisoning on unix through a program... can anyone post the source code to achieve this... (1 Reply)
Discussion started by: ud4u
1 Replies

10. UNIX for Advanced & Expert Users

UBC cache vs. Metadata cache

hi, What is the difference between UBC cache and Metadata cache ? where can i find UBC cache Hits and Metadata cache Hits in hp-ux? Advanced thanx for the help. (2 Replies)
Discussion started by: sushaga
2 Replies
Login or Register to Ask a Question