IP Library Granted Patent US 11,876,773
Granted Patent B2
US 11,876,773 · App. 17/788,403 · Granted Jan 16, 2024

Learning method of a correspondence relationship between an IP address and a MAC address and node device

Inventors: Haiming Jiang (Shenzhen, CN); Mingjun Gu (Shenzhen, CN)
Assignee: XI'AN ZHONGXING NEW SOFTWARE CO., LTD.
H04L61/103
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 11,876,773
App. No.
17/788,403
Granted
Jan 16, 2024
Kind
B2
Abstract

Provided is an Address Resolution Protocol (ARP) learning method, which includes: determining, by a forwarding chip, an IP address of a target device; when an MAC address corresponding to the IP address of the target device is not stored in an ARP forwarding table, generating and broadcasting, by the forwarding chip, an ARP request message, wherein the ARP request message includes the IP address of the target device; receiving, by the forwarding chip, an ARP response message fed back by the target device, wherein the ARP response message includes an MAC address of the target device; and writing, by the forwarding chip, the IP address of the target device and the MAC address corresponding to the IP address into the ARP forwarding table. The present disclosure also provides a node device and a computer-readable medium.

Claims (37)

1. An Address Resolution Protocol (ARP) learning method, comprising:

determining, by a forwarding chip, an IP address of a target device;

when an MAC address corresponding to the IP address of the target device is not stored in an ARP forwarding table, generating and broadcasting, by the forwarding chip, an ARP request message, wherein the ARP request message comprises the IP address of the target device;

receiving, by the forwarding chip, an ARP response message fed back by the target device, wherein the ARP response message comprises an MAC address of the target device; and

writing, by the forwarding chip, the IP address of the target device and the MAC address corresponding to the IP address into an ARP forwarding table.

2. The method according to claim 1 , wherein before determining, by the forwarding chip, an IP address of a target device, the method further comprises:

receiving, by the forwarding chip, a data message, wherein the data message comprises an IP address of a destination device;

determining, by the forwarding chip, an IP address of a target device, which comprises:

determining, by the forwarding chip, whether the destination device is a direct routing device of the device to which the forwarding chip belongs;

when the destination device is a direct routing device of the device to which the forwarding chip belongs, taking, by the forwarding chip, the IP address of the destination device as the IP address of the target device; and

when the destination device is not a direct routing device of the device to which the forwarding chip belongs, querying, by the forwarding chip, a pre-stored routing table according to the IP address of the destination device, so as to obtain an IP address of a device corresponding to a next-hop node, and taking the obtained IP address of the device corresponding to the next-hop node as the IP address of the target device.

3. A forwarding chip, which stores a computer program, wherein when the computer program, is executed to make the forwarding chip to implement the method as claimed in claim 2 .

4. A non-transitory computer-readable medium, which stores a computer program, wherein when the computer program is executed by a processor to implement the method as claimed in claim 2 .

5. The method according to claim 1 , wherein after writing, by the forwarding chip, the IP address of the target device and the MAC address corresponding to the IP address into the ARP forwarding table, the method further comprises:

writing, by the forwarding chip, the IP address of the target device and the MAC address corresponding to the IP address into an ARP cache table;

monitoring, by the forwarding chip, whether the number of ARP entries in the ARP cache table reaches a preset threshold; and

when the number of ARP entries in the ARP cache table reaches the preset threshold, sending, by the forwarding chip, a cache completion notification to a Central Processing Unit (CPU), so that the CPU reads the ARP entries in the ARP cache table after receiving the cache completion notification.

6. A forwarding chip, which stores a computer program, wherein when the computer program, is executed to make the forwarding chip to implement the method as claimed in claim 5 .

7. A non-transitory computer-readable medium, which stores a computer program, wherein when the computer program is executed by a processor to implement the method as claimed in claim 5 .

8. The method according to claim 1 , wherein before writing, by the forwarding chip, the IP address of the target device and the MAC address corresponding to the IP address into the ARP forwarding table, the method further comprises:

querying, by the forwarding chip, whether an MAC address corresponding to the IP address of the target device has been stored in the ARP forwarding table according to the IP address of the target device; and

when no MAC address corresponding to the IP address of the target device is stored in the ARP forwarding table, writing, by the forwarding chip, the IP address of the target device and the MAC address corresponding to the IP address into the ARP forwarding table.

9. A forwarding chip, which stores a computer program, wherein when the computer program, is executed to make the forwarding chip to implement the method as claimed in claim 8 .

10. A non-transitory computer-readable medium, which stores a computer program, wherein when the computer program is executed by a processor to implement the method as claimed in claim 8 .

11. The method according to claim 1 , wherein when an MAC address corresponding to the IP address of the target device is stored in the ARP forwarding table, the forwarding chip sends the data message to the target device according to the MAC address corresponding to the IP address of the target device.

12. A forwarding chip, which stores a computer program, wherein when the computer program, is executed to make the forwarding chip to implement the method as claimed in claim 11 .

13. A non-transitory computer-readable medium, which stores a computer program, wherein when the computer program is executed by a processor to implement the method as claimed in claim 11 .

14. A non-transitory computer-readable medium, which stores a computer program, wherein when the computer program is executed by a processor to implement the method as claimed claim 1 .

15. An ARP learning method, comprising:

receiving, by a forwarding chip, an ARP request message, wherein the ARP request message comprises an IP address of a target device;

when an IP address of a device to which the forwarding chip belongs is the IP address of the target device, generating, by the forwarding chip, an ARP response message, wherein the ARP response message comprises an MAC address of the device to which the forwarding chip belongs; and

feeding back, by the forwarding chip, the response message to a source sending device of the ARP request message.

16. The method according to claim 15 , wherein when the IP address of the device to which the forwarding chip belongs is not the IP address of the target device, forwarding, by the forwarding chip, the ARP request message to a forwarding chip of a neighboring node.

17. A forwarding chip, which stores a computer program, wherein when the computer program, is executed to make the forwarding chip to implement the method as claimed in claim 16 .

18. A forwarding chip, which stores a computer program, wherein when the computer program, is executed to make the forwarding chip to implement the method as claimed in claim 15 .

19. A forwarding chip, which stores a computer program, wherein when the computer program, is executed to make the forwarding chip to implement the method as claimed in claim 1 .

20. A node device, comprising the forwarding chip and the CPU as claimed in claim 19 .

Assignments (2)
NUNC PRO TUNC ASSIGNMENT Recorded Dec 4, 2023
From: ZTE CORPORATION
To: XI'AN ZHONGXING NEW SOFTWARE CO., LTD.
Reel/Frame 065745/0160 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Jun 23, 2022
From: GU, MINGJUN; JIANG, HAIMING
To: ZTE CORPORATION
Reel/Frame 060288/0601 →
Priority Claims (1)
CN 201911348106.X · Dec 24, 2019 · national
Continuity (1)
Related Publication 20230021517A1 · Jan 26, 2023
Cited By (2)
US 12,309,226 US 12,706,866