Awesome q2a theme
Ask us anything
Email or Username
I forgot my password
Self doubt on loopback address
Why is 127.x.x.x range reserved for loopback address? Why can't we just put source address and destination address same? Won't it have the same effect? Then why waste an entire IP range for LOOPBACK ADDRESS?
Nov 11, 2019
I think it is a convention which has been followed .and never changed.
See what would have happened if we would have put the destination and the source address to be the same .to send to the same computer the packet has to go to the default router in the network only to be sent back to the same computer and all the extra work has to be done.
But using loopback address we would not do anything the system will never send a packet with loopback address as it's destination in the network.so the cost assoociated is less.
This may be one reason
Nov 12, 2019
You are right, I thought of the same reason, but then, my thought was, convention is to use 127.0.0.1, then why reserve entire IP range of 127? Isn't that wastage?
Also, if our host can have added circuit to detect loopback, why can't it have a comparator to just check if source address and destination address match or not? Isn't that a better option?
Nov 12, 2019
to add a comment.
to answer this question.
Quick search syntax
Welcome to GATE CSE Doubts, where you can ask questions and receive answers from other members of the community.