Host routing table entry generating method and device
A technology for generating devices and routes, applied in the network field, can solve problems such as multi-processing resources and consumption, and achieve the effect of reducing interaction, reducing processing process, and improving performance
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0042] Such as image 3 As shown, it is a schematic diagram of steps of a method for generating a host routing entry in Embodiment 1 of the present invention, and the method mainly includes the following steps:
[0043] Step 101: the switch obtains the ARP request message sent by the terminal.
[0044] The concrete realization mode of this step 101 is:
[0045] When the source terminal needs to send a data packet to the destination terminal, the source terminal finds that there is no MAC address corresponding to the IP address of the destination terminal by searching the ARP entry stored by itself, and then sends an ARP request message to the switch, and the ARP request message It contains the source IP address (that is, the IP address of the source terminal, for example, it can be assumed as IP_PC1), the source MAC address (that is, the MAC address of the source terminal, for example, it can be assumed as MAC_PC1), and the VLAN identification number of the VLAN where the sou...
Embodiment 2
[0070] Based on the host routing table entries generated by the method described in the first embodiment, the solution in the embodiment of the present invention can respond to the ARP request message sent by the terminal. Such as Figure 4 As shown, it is a schematic diagram of the steps of responding to the ARP request message in Embodiment 2 of the present invention, which mainly includes the following steps:
[0071] Step 201: the switch searches the destination IP address in the ARP request message obtained in step 101 from other host routing table items included in the stored routing table except the host routing table item containing the IP address of the switch, and searches for the IP address containing the IP address of the switch. If the host routing table entry of the destination IP address is found, then go to step 202; if the host routing table entry including the destination IP address cannot be found, then go to step 203.
[0072] It should be noted that, in t...
Embodiment 3
[0081] Embodiment 3 is a device for generating host routing table entries that belongs to the same inventive concept as Embodiment 1 and Embodiment 2, such as Figure 5 As shown, the device mainly includes: an obtaining module 11 , a judging module 12 and a host routing entry generating module 13 .
[0082] Wherein, the obtaining module 11 is used for obtaining the ARP request message sent by the terminal.
[0083] The judging module 12 is configured to judge whether the host routing entry generation device stores authentication information including the source IP address according to the source IP address in the ARP request message.
[0084] The host routing table entry generation module 13 is used to, when the judging result of the judging module 12 is that the authentication information containing the source IP address is stored, according to the source IP address, MAC address, and VLAN identification number included in the authentication information, and a port number, ge...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


