© 2014 Firstsoft Technologies (P) Limited. login
Hi 'Guest'
Home SiteMap Contact Us Disclaimer
enggedu
Quick Links
Easy Studies

Home Lab Exercise Network Lab Exercise Programs Simulation of ARP/RARP ▼

Simulation of ARP/RARP

Algorithm Steps:

Server:

1. Start

2. Create a shared memory segment and get its id using shmget() ;

3. Create a shared memory painter and attach it to the shared memory using shmat().

4. A table containing machine address and its equivalent IP address is created and it is shared in the shared memory segment.

5. Display contents of shared memory using its pointer.

6. Detach pointer from the shared memory using shmdt().

7. stop.

Client

1. Start.

2. Create the shared memory pointer which refers to the same memory segment that server has created using shmget() .

3. Create options to find ARP, RARP and exit.

4. If ARP is requested, then compare the given IP address in the shared memory segment and print the machine address.

5. If RARP is requested, then compare the given machine address in the ARP table and display the equivalent IP address.

6. Repeat step 4 and 5 depending upon the user's choice.

7. Exit.

C Program To Simulate ARP/RARP

 
SLogix Student Projects
bottom