asp.net - How messages flows between computers connected with Internet or LAN? -


I have been programming on the Net for the last two years. Now I am going into web programming so that I got stuck in understanding the basic principles of web programming, after Googling I came to StackOverflow to learn from all your great people.

My confusion is how is the message flowing between the systems in a distributed environment? I believe that if I want to send a message "Hello" to the system connected to the LAN or Internet, then what steps will be taken to send the message.

The other thing is to assume that my system is "A" and I send "b" to send the message to the system , How does the message run on the wire, and how does system "b" read it from the wire?

Please tell a person to me in general terms.

Thank you all in advance.

Here is the brief interpretation of common man. You can search any highlighted word to read more about a particular layer in the entire stack.

  • Your browser creates a HTTP packet containing GET request details for the page.
  • It then asks the OS networking stack to distribute that package in the target machine on the TCP / IP protocol.
  • If the browser has given the network stack domain name (i.e.), then network stack can resolve the domain from its DNS server Requests the name of the IP address (i.e., 74.125.155.99).
    The DNS server may need to contact other DNS servers, if it does not cache the information locally
  • Once the DNS server has set the IP address and it has OS networking Back to the stack, or if the HTTP request is addressed directly from the IP address, then the networking stack will create a TCP / IP packet for that IP address and give it to the network card driver.
  • Network card drivers will wrap the TCP / IP packet in an ethernet frame packet.
  • If the IP address is on the local network, then the network card driver will try to decide what is the target machine MAC address in the ARP table . If it succeeds, it will send the Ethernet frame packet directly to the network's viral to the mac address of that virus.
  • If the IP address is not on the local network, then the network card will send the ethernet frame packet to the MAC address of the local network gateway machine.
  • On the gateway machine, the network card driver will open the TCP / IP packet and the machine will hand over the TCP / IP stack.
  • Gateway machines will see the TCP / IP stacks destination IP address and repeat the above mentioned steps to route the packet to the target machine or the next machine.

Comments

Popular posts from this blog

windows - Heroku throws SQLITE3 Read only exception -

lex - Building a lexical Analyzer in Java -

python - rename keys in a dictionary -