Start networking and exchanging professional insights

Register now or log in to join your professional community.

Follow

How can any packet travel from your computer to a specific server and return , does the packet save all stages routers IPs inside of it ?

user-image
Question added by Deleted user
Date Posted: 2014/03/06
Zia Meer
by Zia Meer , IT Director , Exceed Solutions

When a computer sends data over the network, it first needs to find which route it must take. Will the packet stay on the network or does it need to leave the network. The computer first determines this by comparing the subnet mask to the destination ip address.Once this destination is known, Address Resolution Protocol (ARP) is used to find the next hop on the network. ARP's job is to basically discover and associate IP addresses to the physical MAC.

 

For a packet that has a destination on another network, ARP is used to find the MAC of the gateway router. An ARP packet is sent to the gateway router asking for it's MAC. The router reply's back to the computer with it's mac address. The computer will then forward the packet directly to the mac address of the gateway router.When the gateway router receives the packet it will remove it's mac address as the destination and replace it with the mac address of the next hop router. It will also replace the source computer's mac address with it's own mac address. This happens at each route along the way until the packet reaches it's destination.

mohammed akram
by mohammed akram , Network Enginee , Digital Oasis Information Technology company

packet travel from system to server by following their rules in osi layer it has7 layers

 

physical layer

data layer

network layer

transport layer

session layer

presentaion layer

application layer

through which the data  travelling across the network

transport layer  : takes the responsibility of end to end data transfer.and check the error detection

session layer: create a session for transfering data, maintaining the session

data layer: check the packet sequence

like wise all layer take part in that to travel data from one end to another end .

 

Hassan Zohaib
by Hassan Zohaib , Senior Support Engineer , TDM Group

No, it doesn't save all the router IP addresses inside of it.

It only has the Source and the Destination IP address and nothing else. Lets say that the packet needs to travel from Router A through Router B and arrive at Router C. At Router C, the source IP address is going to be that of Router A, the source MAC address is going to be of Router B and destination IP address is going to be of Router C.

Imtiyaz Shaikh
by Imtiyaz Shaikh , Sr Technical Support Specialist , Infosys Bpm

In networking once packet sent from computer to server they use7 OSI layer to travel packets.

 

First it goes to switch it checks source and destination IP address once done it check the destination address and reply to that particular address if it is from outside the network than it has to go through routers. Network Layer plays the role to sent the packet to destination because network layer on TCP/IP.

 

Ali Raza Syed
by Ali Raza Syed , Senior Administrator & IT support , ShadBagh Virtual Resource Center

We are no discusing the layers here the question is quite different

Sir packet not having IP scheme at all if repeatidly data travels from one to another system may be from server to client or etc if in header there is a section of flag where IP bits are saved to move forward

 

More Questions Like This

Do you need help in adding the right keywords to your CV? Let our CV writing experts help you.