1/7/2024 0 Comments Movieshare .sh![]() In other cases, the network interface corresponding to the longest matching route is Internet connectionof advanced settingsThe binding priority in the decision is as follows: If the response packet is sent, and the source IP address of the packet is the IP address of the interface of the longest matching route, then the longest matching route is selected If there are multiple longest matching routes, then the selection has Minimum hop countRouting entry if there are multiple longest matching routes with the lowest hop count, then: Longest matching route(The network mask has the most " 1"The routing entry of the bit" to communicate with this destination IP address. If the phased result matches the network address of the corresponding routing entry, the routing entry is recorded.Īfter all the routing entries in the routing table are calculated, TCP/IP selects the routing entries in the routing entries. The TCP/IP uses the destination IP address to be communicated and the network mask of each routing entry in the routing table to perform phase-to-phase calculation. When TCP/IP needs to initiate communication to an IP address, it evaluates the routing table to determine how to send the packet. When there are multiple routing entries that reach the same destination network, TCP/IP selects routing entries with lower hops. The higher the number of hops, the higher the cost of routing. The lower the number of hops, the lower the cost of routing. Usually, it represents the number of hops that need to pass to reach the destination address. The gateway must be on the same subnet as the interface (except the default gateway)Otherwise, other routing items need to be called when using this routing item, which may lead to routing deadlock.Ĥ、 Hop number( Metric): The hop count is used to indicate the cost of the route. ![]() But at this time, the interface must be consistent with the gateway.In the case of a remote network or default route, the gateway is typically a server or router on the network to which the local computer is connected.ģ、 interface( Interface): The interface defines the network interface that the local computer uses to send packets for a specific network destination address. If it is a network to which the local computer is directly connected, the gateway is usually the network interface corresponding to the local computer. When adding a route, Windows requires that the entered network address and netmask must be equal to the network address.Otherwise the route addition will fail.Ģ、 Gateway( Gateway,Also known as Next hop server): When sending an IP packet, the gateway defines the next hop server to which the packet is sent for a specific network destination address. Network address the network address of a particular network, 2, 3, 8 in the above table ĭefault route all network addresses not specified in the routing table, as 1 in the above table, which will be described in detail later Subnet address, the network address of a specific subnet, 4, 5 in the above table Host address the network address of a specific host, the network mask is 255.255.255.255, as in the above table 6, 7, 9 Generally, the network destination address range includes the following four types: Realtek RTL8139/810x Family Fast Ethernet NICĮach routing entry in the routing table has five attributes, and I divide them into four parts here:ġ、 website address( Network Destination)、 Network mask( Netmask): The result of the network address and network mask is used to define the range of network destination addresses that the local computer can reach. You can run route print or netstat -r to display the routing table on the local machine, as shown in the following figure:Ĭ:/Documents and Settings/administrator> route printĠx1. The routing table is the basis for TCP/IP communication, and any TCP/IP communication on the local computer is controlled by the routing table. Every Windows system has IP routing tableIt stores the range of network destination addresses that the local computer can reach and how to reach the routing information.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |