Differences between gateways and Routers

Source: Internet
Author: User

Gateway and router ):

Gateway and router are also an important part of nodes. Their main tasks are as follows:

· Translation of two different domains (networks;

· Create a route.

Just now, we know that in the same network, information can be directly communicated between two IP addresses. What if it is not in the same network? For example, if the above icon shows that the IP address of pC1 is 192.168.0.1 and that of Pc2 is 192.168.1.1, there is no communication protocol between the two, when we only use TCP/IP for communication, because the bit is in different CIDR blocks, "the two cannot be directly connected" under normal conditions 』, at this time, you must use the router help! In fact, this interpreter is not only capable of translating the communication protocols of different operating systems, but here we only briefly discuss one of his functions, the router is responsible for communicating two or more packets connected to different network segments! Therefore, if your network is broken down, the host and the router must be in the same domain, at this time, many routers are required to connect different networks. Otherwise, how can different networks be connected ~? Linux can also be used as a router currently! This will be explained later when we mention router!

Well, let's talk about what is "routing" outside of the network? The route is "Let your data packets find the next IP address through the route table 』. The network architecture of our system is simple. If the IP address of my work machine is 140.116.44.125, if my package is to be sent to 140.116.44.202, because we are a C Class domain, 125 <--> 202 can be passed directly! But what if my data package is sent to tw.yahoo.com (202.1.237.21? At this time, my 125 will first judge my route table to see which computer the preset gateway is, then he will send the data packet to the gateway host, and the gateway host will determine where the next node of the data packet will be transmitted by judging his route table !? After this is passed in, we can reach tw.yahoo.com!

Therefore, route table is very important, and your gateway is very important! Because all your non-network packets are sent out through the gateway. If you set a Gateway error, hey! Naturally, your data packets cannot be properly transmitted! This is the easiest way to set network parameters.ArticleInput: Talent responsible editor: Talent

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.