What about computer networks 1

Source: Internet
Author: User
  1. Several images show the development of the Network


650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M00/3D/2E/wKiom1PD7PaBYIP1AABho5RTQfY309.jpg "Title =" Linux Network 0.png" alt = "wkiom1pd7pabyip1aabho5rtqfy309.jpg"/>

Because the four hosts A, B, C, and D share a channel, if a communicates with B, the I channel will be occupied, making other hosts unable to communicate. To solve this problem, a bridge emerged.



650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M00/3D/2E/wKioL1PD7YuhAlrUAABwPz_kPa4764.jpg "Title =" Linux Network 1.png" alt = "wkiol1pd7yuhalruaabwpz_kpa4764.jpg"/>

A bridge, as its name implies, is a bridge connecting two networks. Obviously, communication between A and B does not affect communication between C and D through the bridge. In the early stage, there were only two interfaces on the bridge, and then multiple interfaces were developed.



650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M01/3D/2F/wKioL1PD7oDzhOfKAAB2z9WUoPs719.jpg "Title =" Linux Network 2.png" alt = "wkiol1pd7odzhofkaab2z9wuops719.jpg"/>

A bridge with multiple interfaces is a switch. In this case, the host actually only conflicts with the interfaces on the switch. That is to say, B cannot send signals when a sends a signal to B. In fact, it is a half-duplex state. If two interfaces of the host are connected to the switch, one is used for sending and the other is used for receiving, the full duplex is realized. If a sends a signal to B, the switch will broadcast after it receives it. Imagine that if there are many hosts on the switch, such broadcast will be a waste of resources.




650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M00/3D/30/wKiom1PD8AOgB7MUAADJTntcfG4554.jpg "Title =" Linux Network 3.png" alt = "wkiom1pd8aogb7muaadjtnt00004554.jpg"/>

Introduce a vro to isolate local communication. Use multiple vswitches and connect them to the vro. A vro is used to connect different networks. The interface R1 and R2 on the router are gateways. For example, the R1 gateway is in the same network as A, B, C, and D, and the R2 gateway is in the same network as E and F.



2. Communication Process Analysis

Analyze figure 4.


For local network communication, such as communication between A and B.

Assume that the logical address of a is 1.1, and the logical address of B is 1.2. A wants to send a signal to B, but a does not know the physical address of B, that is, Mac-B. As a result, a initiates a broadcast signal to find B. After receiving the signal, B informs a of its MAC address. So a knows the physical address of B. It can be found that the broadcast process is to convert the Logical Address to the physical address. For local communications, routers are isolated, and E and F do not receive broadcast signals.



Cross-network communication, for example, communication between A and E.

Assume that the logical address of a is 1.1, the logical address of E is 2.1, and a wants to send a signal to E. First, intuitively, we can know that A and E are not in the same network, that is, not local network communication.

First, how do computers Know and recognize that they are not a network?

Second, how does a router forward routes across networks?

Third, if the message is finally delivered to E, which application on E will process the message?



This is actually the case:


First, the logical address should be divided into two segments, indicating the network segment and the host segment respectively. [Logical address. To put it bluntly, it is an IP address]


Second, the subnet mask is used to obtain the network segment of the Logical Address.

[Set the IP address and subnet mask to the same phase]

For example:

The logical address of a is

0000 0001. 0000 0001

And subnet mask phase

1111 1111. 0000 0000

[Note that 1 and any phase is itself; 0 and any phase is 0]

After calculation, you can obtain the network segment.


Third, whether it is dynamic learning or manual maintenance, there is a route table in the router:

Network Segment forwarding Interface

X. y. Z. W r1

A. B .c.d r2

......


Similarly, there should also be a Mac table in the vswitch:

Host MAC address

A MAC-A

B MAC-B

......



Third, in summary, we can say that the IP address enables communication between the host and the host, the Mac implements local network communication, and the port enables communication between different processes on the same host.




This article is from the blog "I want to surpass myself", please be sure to keep this source http://zhangfengzhe.blog.51cto.com/8855103/1438163

Related Article

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.