Packet Transfering at Datalink Layer
Posted on 2004-04-21
Hello Everyone, This is my first post.
Iam doing a new project which will transfer the data from one LAN to another LAN. These LAN's are connected by using routers(Linux Machines).
Iam capturing the packets at Datalink Layer of Router1, and Iam modifing the MAC ID's of the Packet and retransferring to the other Router2. From Router2 the packet will be send to the Corresponding LAN2 Machine. A Reply will be send back by the Router2 to Router1 which again will be send as acknowledgement to the LAN1 Machine.
The Problem is that Iam able to get only few acknowledgements, as for every 100 packets send Iam getting reply for only 40 packets. And for remaining Iam getting "Request Timmed Out".
How can i get 100% reply. What kind of socket options i have to use?