CN112866113A - Method, system, computer device and storage medium for ARP proxy in routing packet forwarding - Google Patents

Method, system, computer device and storage medium for ARP proxy in routing packet forwarding Download PDF

Info

Publication number
CN112866113A
CN112866113A CN202011591124.3A CN202011591124A CN112866113A CN 112866113 A CN112866113 A CN 112866113A CN 202011591124 A CN202011591124 A CN 202011591124A CN 112866113 A CN112866113 A CN 112866113A
Authority
CN
China
Prior art keywords
address
message
arp
equipment
network
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202011591124.3A
Other languages
Chinese (zh)
Other versions
CN112866113B (en
Inventor
吴海光
钟伟伟
刘效源
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Comba Network Systems Co Ltd
Original Assignee
Comba Network Systems Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Comba Network Systems Co Ltd filed Critical Comba Network Systems Co Ltd
Priority to CN202011591124.3A priority Critical patent/CN112866113B/en
Publication of CN112866113A publication Critical patent/CN112866113A/en
Application granted granted Critical
Publication of CN112866113B publication Critical patent/CN112866113B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/74Address processing for routing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/74Address processing for routing
    • H04L45/745Address table lookup; Address filtering
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/09Mapping addresses
    • H04L61/10Mapping addresses of different types
    • H04L61/103Mapping addresses of different types across network layers, e.g. resolution of network layer into physical layer addresses or address resolution protocol [ARP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/09Mapping addresses
    • H04L61/25Mapping addresses of the same type
    • H04L61/2503Translation of Internet protocol [IP] addresses
    • H04L61/255Maintenance or indexing of mapping tables
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/45Network directories; Name-to-address mapping
    • H04L61/4553Object oriented directories, e.g. common object request broker architecture [CORBA] name server
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L2101/00Indexing scheme associated with group H04L61/00
    • H04L2101/60Types of network addresses
    • H04L2101/618Details of network addresses
    • H04L2101/622Layer-2 addresses, e.g. medium access control [MAC] addresses

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention relates to a method, a system, computer equipment and a storage medium for ARP proxy in route packet forwarding, wherein the method comprises the following steps: forwarding the received network message to the second device; judging whether the source IP address of the network message is a local IP address or not; if not, recording the source IP address of the network message; receiving an ARP request message broadcast by the second equipment and acquiring an IP address inquired in the ARP request message; judging whether the IP address inquired in the ARP request message has a record or not; and if so, sending an ARP response message to the second equipment. The invention responds by acting on the ARP query request of the non-conventional packet IP address, eliminates the ARP query storm impact from the second equipment and purifies the network transmission environment.

Description

Method, system, computer device and storage medium for ARP proxy in routing packet forwarding
Technical Field
The present invention relates to the field of network transmission, and in particular, to a method, system, computer device, and storage medium for ARP proxy in routing packet forwarding.
Background
At present, the Internet connects a plurality of network elements in different regions, and in order to reduce the scale of the network and reduce the cost of management and maintenance, a router divides the whole network into different network segments, the network elements in the same network segment can communicate, the network elements in different network segments cannot directly communicate, but the router is required to forward Internet Protocol (IP) packets. The network elements in different network segments communicate with each other by running routing protocols, such as Internet Gateway Protocol (IGP) and Border Gateway Protocol (BGP).
However, in the process of forwarding the network packet by operating the routing protocol, the base station or other gateway devices do not perform address conversion on the network packet in order to improve the processing efficiency or for other reasons, and directly forward the network packet whose source IP address is not the IP address of the device itself to the MEC platform or other query ends through the routing of the device itself, and the MEC platform or other query ends broadcast the ARP query request after receiving the network packet forwarded by the base station or other gateway devices; however, in the existing system, the ARP (Address Resolution Protocol) query request that is not the IP of the MEC is not ignored, and no response is given, so that the MEC platform or other query end can be stimulated by a large number of strange IP addresses to generate a large number of ARP query requests under the condition that the base station or other gateway devices do not perform NAT (Network Address Translation) Translation, and the same query actions are repeated continuously, i.e. the ARP query requests are sent out continuously, so that the Network is filled with a large number of ARP query requests, resulting in ARP Network storm, and causing great influence to the Network transmission Network.
Disclosure of Invention
The present invention is directed to overcoming at least one of the above-mentioned disadvantages (shortcomings) of the prior art and providing a method, system, computer device, and storage medium for ARP proxy in routing packet forwarding, which eliminates ARP query storm impact from a second device by proxying ARP query requests for an irregular packet IP address, and thus purifies a network transmission environment.
In one aspect, the present invention provides a method for ARP proxy in routing packet forwarding, including:
forwarding the received network message to the second device;
judging whether the source IP address of the network message is a local IP address or not;
if not, recording the source IP address of the network message;
receiving an ARP request message broadcast by the second equipment and acquiring an IP address inquired in the ARP request message;
judging whether the IP address inquired in the ARP request message has a record or not;
and if so, sending an ARP response message to the second equipment.
The network message is directly forwarded to the second equipment, so that the transmission efficiency of the network message can be improved; by judging whether the source IP address of the network message is a local IP address or not and recording the source IP address of the network message which is not the local IP address, judging whether the IP address inquired in the ARP request message is recorded or not after the ARP request message broadcasted by the second equipment is received, and sending an ARP response message to the second equipment if the IP address inquired in the ARP request message is recorded, the ARP inquiry request of the unconventional network message forwarded by the equipment per se is subjected to proxy execution of ARP response, the storm impact of the ARP request message continuously rechecked by the second equipment is solved, the network transmission load is reduced, and the network environment of a local area network is purified.
Further, before sending the ARP response packet to the second device, the method further includes:
and filling the MAC address in the ARP response message as the MAC address of the ARP response message.
By filling the MAC address in the ARP response message as the MAC address of the second device, the second device can inquire according to the MAC address.
Further, the recording the source IP address of the network packet includes:
and recording the source IP address of the network message in a local maintenance record table.
The judging whether the IP address inquired in the ARP request message has a record comprises the following steps:
and judging whether the IP address inquired in the ARP request message is recorded in a local maintenance record table or not.
By recording the source IP address of the network message which is not the local IP address, when the IP address inquired in the ARP request message broadcast by the second equipment is judged to be recorded, the agent execution ARP response can be carried out, the storm impact of the ARP request message continuously rechecked by the second equipment is solved, the load of network transmission is reduced, and the network environment of the local area network is purified.
Further, the forwarding the received network packet to the second device includes:
and forwarding the network message to the second equipment through a routing packet of the network message.
And forwarding the network message to the second equipment through the routing packet of the network message, thereby realizing cross-domain transmission.
In one aspect, a method for routing an ARP proxy in packet forwarding is provided, comprising:
the first equipment forwards the received network message to the second equipment;
the first equipment judges whether the source IP address of the network message is a local IP address;
if the first equipment judges that the source IP address of the network message is not the local IP address, recording the source IP address of the network message;
the second equipment broadcasts an ARP request message after receiving the network message from the first equipment;
the first equipment receives the ARP request message and acquires an IP address inquired in the ARP request message;
the first equipment judges whether the IP address inquired in the ARP request message has a record or not;
if the first equipment judges that the IP address inquired in the ARP request message has a record, an ARP response message is sent to the second equipment;
and the second equipment receives the ARP response message and stops broadcasting.
The network message is directly forwarded to the second equipment through the first equipment, so that the transmission efficiency of the network message can be improved; the first device judges whether the source IP address of the network message is a local IP address or not and records the source IP address of the network message which is not the local IP address, after receiving the ARP request message broadcast by the second device, the first device judges whether the IP address inquired in the ARP request message is recorded or not, if so, the first device sends an ARP response message to the second device, thereby realizing that the ARP inquiry request of the unconventional network message forwarded by the device per se is subjected to proxy execution of ARP response, solving the storm impact of the ARP request message continuously rechecked by the second device, reducing the load of network transmission and purifying the network environment of the local area network.
Further, before the first device sends the ARP response packet to the second device, the method further includes:
and the first equipment fills the MAC address in the ARP response message as the MAC address of the first equipment.
The first device fills the MAC address in the ARP response message as its own MAC address, so that the second device can query according to the MAC address of the first device.
Further, the recording the source IP address of the network packet includes:
and the first equipment records the source IP address of the network message of which the source IP address is not the local IP address in a local maintenance record table.
The source IP address of the network message which is not the local IP address is recorded by the first equipment, so that when the IP address inquired in the ARP request message broadcast by the second equipment is judged to be recorded, the first equipment can perform proxy execution of ARP response, the storm impact of the ARP request message continuously rechecked by the second equipment is solved, the load of network transmission is reduced, and the network environment of a local area network is purified.
In another aspect, a system for routing an ARP proxy in packet forwarding is provided, comprising:
the message receiving module is used for receiving the network message and the ARP request message broadcast by the second equipment;
an IP address obtaining module, configured to obtain a source IP address in the network packet and an IP address queried in the ARP request packet;
the judging module is used for judging whether a source IP address in the network message is a self IP address or not and judging whether an IP address inquired in the ARP request message has a record or not;
the recording module is used for recording the source IP address in the network message when the judging module judges that the source IP address in the network message is not the IP address of the judging module;
the message generating module is used for generating an ARP response message when the judging module judges that the IP address inquired in the ARP request message has a record;
and the message sending module is used for forwarding the network message to the second equipment and sending the ARP response message to the second equipment.
The network message is directly forwarded to the second equipment through the message sending module, so that the transmission efficiency of the network message can be improved; the source IP address of the network message which is not the local IP address is judged by the judging module and is judged to be the local IP address by the recording module, after the message receiving module receives the ARP request message broadcasted by the second equipment, the judging module judges whether the IP address inquired in the ARP request message is recorded, if the judging module judges that the record is recorded, the message generating module generates an ARP response message and sends the ARP response message to the second equipment by the message sending module, thereby realizing that the ARP inquiry request of the unconventional network message forwarded by the self equipment carries out ARP response by proxy, solving the storm impact of the ARP request message which is continuously reexamined by the second equipment, reducing the load of network transmission and purifying the network environment of the local area network.
In one aspect, a computer device is provided, comprising a memory storing a computer program and a processor implementing the method of ARP proxying in routing packet forwarding as described above when the processor executes the computer program.
In one aspect, a computer readable storage medium is provided, having stored thereon a computer program which, when executed by a processor, implements a method of routing an ARP proxy in packet forwarding as described above.
Compared with the prior art, the invention has the advantages that the transmission efficiency of the network message can be improved by directly forwarding the network message to the second equipment; by judging whether the source IP address of the network message is a local IP address or not and recording the source IP address of the network message which is not the local IP address, judging whether the IP address inquired in the ARP request message is recorded or not after the ARP request message broadcasted by the second equipment is received, and sending an ARP response message to the second equipment if the IP address inquired in the ARP request message is recorded, the ARP inquiry request of the unconventional network message forwarded by the equipment per se is subjected to proxy execution of ARP response, the storm impact of the ARP request message continuously rechecked by the second equipment is solved, the network transmission load is reduced, and the network environment of a local area network is purified.
Drawings
Fig. 1 is a flowchart of a method for ARP proxying in routing packet forwarding according to an embodiment of the present invention.
Fig. 2 is a flowchart of a method for ARP proxying in routing packet forwarding according to an embodiment of the present invention.
Fig. 3 is a block diagram of a system for ARP proxying in routing packet forwarding, in accordance with one embodiment of the present invention.
Detailed Description
The drawings are only for purposes of illustration and are not to be construed as limiting the invention. For a better understanding of the following embodiments, certain features of the drawings may be omitted, enlarged or reduced, and do not represent the size of an actual product; it will be understood by those skilled in the art that certain well-known structures in the drawings and descriptions thereof may be omitted.
The method, the system, the computer equipment and the storage medium for ARP proxy in routing packet forwarding aim at solving the problem that in the prior art, in order to improve processing efficiency or not perform address conversion on a network message for other reasons, a network message with a source IP address not being a local IP address of own equipment is directly forwarded to second equipment, so that the second equipment is stimulated by a large number of strange IP addresses to generate a large number of storm impacts of ARP request responses.
In an embodiment, a method for routing an ARP proxy in packet forwarding is provided, and in this embodiment, a first device is taken as an example for explanation, and as shown in fig. 1, a flowchart of the method for routing the ARP proxy in packet forwarding in this embodiment is provided, where the method includes:
s101, forwarding the received network message to second equipment;
s201, judging whether a source IP address of the network message is a local IP address;
s301, if not, recording the source IP address of the network message;
s401, receiving an ARP request message broadcasted by the second equipment and acquiring an IP address inquired in the ARP request message;
s501, judging whether the IP address inquired in the ARP request message has a record or not;
and S601, if yes, sending an ARP response message to the second equipment.
Specifically, the network packet may be from a terminal or other electronic devices, the terminal or referred to as a user equipment, and may be but is not limited to various mobile phones, smart terminals, multimedia devices, streaming media devices, and the like; the method can be applied to 4G communication systems, 5G communication systems, Long Term Evolution (LET) systems and other communication systems; the first device of the execution main body may be a base station, such as an eNB and a gNB, or may be a gateway device, such as an LTE gateway; the second device can be an MEC platform server, and can also be other devices with similar working principles with the MEC platform server; the first device directly forwards the received network message from the terminal to the second device, judges whether the source IP address of the network message is a local IP address, and records the source IP address of the message if the source IP address of the network message is judged to be a local IP address of the device other than the first device, specifically, the source IP address of the message can be recorded in the device, including but not limited to a local database, a local maintenance record table and a local cache; if the local IP address of the self equipment is judged, no processing is carried out.
Specifically, after receiving the network packet, the second device determines whether a source IP address of the network packet is already recorded in an ARP cache of the second device, and if not, the second device broadcasts an ARP request packet, where the ARP request packet includes the source IP address to be queried; the first device receives an ARP request message broadcasted by the second device, acquires an IP address inquired in the ARP request message, and judges whether a source IP address of the ARP request message is recorded, specifically, the first device can search whether the source IP address is recorded in the self device, for example, but not limited to, whether the source IP address is recorded in a local database, a local maintenance record table and a local cache; if the record exists, an ARP response message is sent to the second equipment; if no record is determined, no processing is performed.
The network message is directly forwarded to the second equipment, so that the transmission efficiency of the network message can be improved; by judging whether the source IP address of the network message is a local IP address or not and recording the source IP address of the network message which is not the local IP address, judging whether the IP address inquired in the ARP request message is recorded or not after the ARP request message broadcasted by the second equipment is received, and sending an ARP response message to the second equipment if the IP address inquired in the ARP request message is recorded, the ARP inquiry request of the unconventional network message forwarded by the equipment per se is subjected to proxy execution of ARP response, the storm impact of the ARP request message continuously rechecked by the second equipment is solved, the network transmission load is reduced, and the network environment of a local area network is purified.
In one embodiment, before sending the ARP response packet to the second device, the method further includes:
s502, filling the MAC address in the ARP response message as the MAC address of the ARP response message.
Specifically, a column of an MAC address to be inquired in the ARP request message is filled as an MCE address of the ARP request message, and then an ARP response message is generated; by filling the MAC address in the ARP response message as the MAC address of the second device, the second device can inquire according to the MAC address.
In one embodiment, the recording the source IP address of the network packet includes:
and recording the source IP address of the network message in a local maintenance record table.
The judging whether the IP address inquired in the ARP request message has a record comprises the following steps:
and judging whether the IP address inquired in the ARP request message is recorded in a local maintenance record table or not.
By recording the source IP address of the network message which is not the local IP address, when the IP address inquired in the ARP request message broadcast by the second equipment is judged to be recorded, the agent execution ARP response can be carried out, the storm impact of the ARP request message continuously rechecked by the second equipment is solved, the load of network transmission is reduced, and the network environment of the local area network is purified.
In one embodiment, the forwarding the received network packet to the second device includes:
and forwarding the network message to the second equipment through a routing packet of the network message.
Specifically, in order to implement cross-domain transmission, the network packet is directly forwarded to the second device in a packet manner through a three-layer route of the network packet without performing NAT conversion.
In yet another embodiment, a method of routing an ARP proxy in packet forwarding is provided, as shown in fig. 2, which is a flow chart of the method comprising:
A101. the first equipment forwards the received network message to the second equipment;
A201. the first equipment judges whether the source IP address of the network message is a local IP address;
A301. if the first equipment judges that the source IP address of the network message is not the local IP address, recording the source IP address of the network message;
A401. the second equipment broadcasts an ARP request message after receiving the network message from the first equipment;
A501. the first equipment receives the ARP request message and acquires an IP address inquired in the ARP request message;
A601. the first equipment judges whether the IP address inquired in the ARP request message has a record or not;
A701. if the first equipment judges that the IP address inquired in the ARP request message has a record, an ARP response message is sent to the second equipment;
A801. and the second equipment receives the ARP response message and stops broadcasting.
Specifically, the network packet may be from a terminal or other electronic devices, the terminal or referred to as a user equipment, and may be but is not limited to various mobile phones, smart terminals, multimedia devices, streaming media devices, and the like; the method can be applied to 4G communication systems, 5G communication systems, long term evolution systems and other such communication systems; the first device of the execution main body may be a base station, such as an eNB and a gNB, or may be a gateway device, such as an LTE gateway; the second device can be an MEC platform server, and can also be other devices with similar working principles with the MEC platform server; the first equipment directly forwards the received network message from the terminal to the second equipment and judges whether the source IP address of the network message is a local IP address or not; if the first device determines that the local IP address of the first device is not the local IP address of the first device, the source IP address of the packet is recorded, and specifically, the first device may record the source IP address in the first device, including but not limited to recording in a local database, recording in a local maintenance record table, and recording in a local cache; and if the first equipment determines that the local IP address of the equipment is the local IP address of the equipment, the first equipment does not process the local IP address.
Specifically, after receiving the network packet, the second device may determine whether the source IP address of the network packet is already recorded in an ARP cache of the second device, and if not, the second device broadcasts an ARP request packet, where the ARP request packet includes the queried source IP address; the first device receives an ARP request message broadcasted by the second device, acquires an IP address queried in the ARP request message, and determines whether a source IP address of the ARP request message is recorded, specifically, the first device may search whether its own device records the source IP address, for example, but not limited to, search in a local database, a local maintenance record table, and a local cache, whether the source IP address is recorded; if the first equipment judges that the record exists, an ARP response message is sent to the second equipment; the second equipment stops broadcasting the ARP request message after receiving the ARP response message; if the first equipment judges that no record exists, the first equipment does not process the record, and the second equipment continues to broadcast the ARP request message.
The network message is directly forwarded to the second equipment through the first equipment, so that the transmission efficiency of the network message can be improved; the first device judges whether the source IP address of the network message is a local IP address or not and records the source IP address of the network message which is not the local IP address, after receiving the ARP request message broadcast by the second device, the first device judges whether the IP address inquired in the ARP request message is recorded or not, if so, the first device sends an ARP response message to the second device, thereby realizing that the ARP inquiry request of the unconventional network message forwarded by the device per se is subjected to proxy execution of ARP response, solving the storm impact of the ARP request message continuously rechecked by the second device, reducing the load of network transmission and purifying the network environment of the local area network.
In one embodiment, before the first device sends the ARP response packet to the second device, the method further includes:
A702. and the first equipment fills the MAC address in the ARP response message as the MAC address of the first equipment.
Specifically, the first device fills a column of the MAC address to be queried in the ARP request message as its MCE address according to the ARP request message, and then generates an ARP response message.
The first device fills the MAC address in the ARP response message as its own MAC address, so that the second device can query according to the MAC address of the first device.
In another embodiment, the recording the source IP address of the network packet includes:
and the first equipment records the source IP address of the network message of which the source IP address is not the local IP address in a local maintenance record table.
The source IP address of the network message which is not the local IP address is recorded by the first equipment, so that when the IP address inquired in the ARP request message broadcast by the second equipment is judged to be recorded, the first equipment can perform proxy execution of ARP response, the storm impact of the ARP request message continuously rechecked by the second equipment is solved, the load of network transmission is reduced, and the network environment of a local area network is purified.
In one embodiment, a system for routing an ARP proxy in packet forwarding is provided, as shown in fig. 3, which is a system block diagram of the system, the system comprising:
the message receiving module is used for receiving the network message and the ARP request message broadcast by the second equipment;
an IP address obtaining module, configured to obtain a source IP address in the network packet and an IP address queried in the ARP request packet;
the judging module is used for judging whether a source IP address in the network message is a self IP address or not and judging whether an IP address inquired in the ARP request message has a record or not;
the recording module is used for recording the source IP address in the network message when the judging module judges that the source IP address in the network message is not the IP address of the judging module;
the message generating module is used for generating an ARP response message when the judging module judges that the IP address inquired in the ARP request message has a record;
and the message sending module is used for forwarding the network message to the second equipment and sending the ARP response message to the second equipment.
Specifically, the system is applied to a first device, which may be a base station, such as an eNB and a gNB, or a gateway device, such as an LTE gateway; the second device can be an MEC platform server, and can also be other devices with similar working principles with the MEC platform server; the network message may come from a terminal or other electronic devices, the terminal or referred to as a user equipment, and may be but is not limited to various mobile phones, intelligent terminals, multimedia devices, streaming media devices, and the like; the environment in which the system is applied may be, for example, a 4G communication system, a 5G communication system, a Long Term Evolution (LET) system, and other such communication systems. The message receiving module receives the network message and then sends the network message to the second device through the message sending module, specifically, the network message may be from a terminal or other electronic devices, the terminal or referred to as user equipment, and may be but not limited to various mobile phones, intelligent terminals, multimedia devices, streaming media devices, and the like; an IP address acquisition module acquires a source IP address in the network message and then transfers the source IP address to a judgment module to judge whether the source IP address in the network message is the IP address of the first device; when the judging module judges that the source IP address in the network message is not the own IP address of the first device, the recording module records the source IP address in the network message which is not the own IP address of the first device, and specifically, the recording module may record the source IP address of the network message in the first device, including but not limited to recording in a local database of the first device, recording in a local maintenance record table of the first device, and recording in a local cache of the first device; when the judging module judges that the source IP address in the network message is the IP address of the first device, the judging module does not process the source IP address; in a specific implementation process, the recording module records the source IP address of the network packet in a local maintenance record table of the first device.
Specifically, after receiving the network packet, the second device may determine whether the source IP address of the network packet is already recorded in an ARP cache of the second device, and if not, the second device broadcasts an ARP request packet, where the ARP request packet includes the queried source IP address; after the message receiving module receives an ARP request message broadcasted by the second device, the IP address obtaining module obtains an IP address queried in the ARP request message, and then the determining module determines whether the IP address queried in the ARP request message has a record, specifically, the determining module may search whether the first device has a record of the source IP address, where the searching includes but is not limited to searching in a local database, a local maintenance record table, and a local cache of the first device whether the source IP address has a record, and if the IP address queried in the ARP request message is searched in the first device, it is determined that the first device has a record; if the judging module judges that the IP address inquired in the ARP request message is not recorded, the processing is not carried out; in a specific implementation process, the determining module searches whether a source IP address of the network packet exists in a local maintenance record table of the first device.
Specifically, when the judging module judges that the IP address inquired in the ARP request message has a record, the message generating module generates an ARP response message and delivers the ARP response message to the message sending module to be sent to the second device; in a specific implementation process, a message generation module fills a column of an MAC address to be inquired in the ARP request message as an MCE address of the message generation module and then generates an ARP response message.
The network message is directly forwarded to the second equipment through the message sending module, so that the transmission efficiency of the network message can be improved; the source IP address of the network message which is not the local IP address is judged by the judging module and is judged to be the local IP address by the recording module, after the message receiving module receives the ARP request message broadcasted by the second equipment, the judging module judges whether the IP address inquired in the ARP request message is recorded, if the judging module judges that the record is recorded, the message generating module generates an ARP response message and sends the ARP response message to the second equipment by the message sending module, thereby realizing that the ARP inquiry request of the unconventional network message forwarded by the self equipment carries out ARP response by proxy, solving the storm impact of the ARP request message which is continuously reexamined by the second equipment, reducing the load of network transmission and purifying the network environment of the local area network.
In one embodiment, a computer device is provided comprising a memory storing a computer program and a processor implementing the method of routing an ARP proxy in packet forwarding as described above when the processor executes the computer program.
In one embodiment, a computer readable storage medium is provided, having stored thereon a computer program which, when executed by a processor, implements a method of routing an ARP proxy in packet forwarding as described above.
It should be understood that the above-mentioned embodiments of the present invention are only examples for clearly illustrating the technical solutions of the present invention, and are not intended to limit the specific embodiments of the present invention. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present invention claims should be included in the protection scope of the present invention claims.

Claims (10)

1. A method of routing an ARP proxy in packet forwarding, comprising:
forwarding the received network message to the second device;
judging whether the source IP address of the network message is a local IP address or not;
if not, recording the source IP address of the network message;
receiving an ARP request message broadcast by the second equipment and acquiring an IP address inquired in the ARP request message;
judging whether the IP address inquired in the ARP request message has a record or not;
and if so, sending an ARP response message to the second equipment.
2. The method of routing an ARP proxy in packet forwarding according to claim 1, wherein sending an ARP response packet to said second device is preceded by:
and filling the MAC address in the ARP response message as the MAC address of the ARP response message.
3. The method of routing an ARP proxy in packet forwarding according to claim 1, wherein said recording the source IP address of the network packet comprises:
and recording the source IP address of the network message in a local maintenance record table.
The judging whether the IP address inquired in the ARP request message has a record comprises the following steps:
and judging whether the IP address inquired in the ARP request message is recorded in a local maintenance record table or not.
4. The method of routing an ARP proxy in packet forwarding according to claim 1, wherein forwarding the received network packet to the second device comprises:
and forwarding the network message to the second equipment through a routing packet of the network message.
5. A method of routing an ARP proxy in packet forwarding, comprising:
the first equipment forwards the received network message to the second equipment;
the first equipment judges whether the source IP address of the network message is a local IP address;
if the first equipment judges that the source IP address of the network message is not the local IP address, recording the source IP address of the network message;
the second equipment broadcasts an ARP request message after receiving the network message from the first equipment;
the first equipment receives the ARP request message and acquires an IP address inquired in the ARP request message;
the first equipment judges whether the IP address inquired in the ARP request message has a record or not;
if the first equipment judges that the IP address inquired in the ARP request message has a record, an ARP response message is sent to the second equipment;
and the second equipment receives the ARP response message and stops broadcasting.
6. The method for ARP proxy in routing packet forwarding of claim 5, wherein before sending the ARP response message from the first device to the second device, further comprising:
and the first equipment fills the MAC address in the ARP response message as the MAC address of the first equipment.
7. The method of routing an ARP proxy in packet forwarding according to claim 5, wherein said recording the source IP address of the network packet comprises:
and the first equipment records the source IP address of the network message of which the source IP address is not the local IP address in a local maintenance record table.
8. A system for routing an ARP proxy in packet forwarding, comprising:
the message receiving module is used for receiving the network message and the ARP request message broadcast by the second equipment;
an IP address obtaining module, configured to obtain a source IP address in the network packet and an IP address queried in the ARP request packet;
the judging module is used for judging whether a source IP address in the network message is a self IP address or not and judging whether an IP address inquired in the ARP request message has a record or not;
the recording module is used for recording the source IP address in the network message when the judging module judges that the source IP address in the network message is not the IP address of the judging module;
the message generating module is used for generating an ARP response message when the judging module judges that the IP address inquired in the ARP request message has a record;
and the message sending module is used for forwarding the network message to the second equipment and sending the ARP response message to the second equipment.
9. A computer device comprising a memory and a processor, the memory storing a computer program, wherein the processor when executing the computer program implements the method of ARP proxying in routing packet forwarding of any of claims 1 to 7.
10. A computer-readable storage medium having stored thereon a computer program, wherein the computer program, when executed by a processor, implements the method of routing an ARP proxy in packet forwarding according to any of claims 1 to 7.
CN202011591124.3A 2020-12-29 2020-12-29 Method, system, computer device and storage medium for ARP proxy in routing packet forwarding Active CN112866113B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011591124.3A CN112866113B (en) 2020-12-29 2020-12-29 Method, system, computer device and storage medium for ARP proxy in routing packet forwarding

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011591124.3A CN112866113B (en) 2020-12-29 2020-12-29 Method, system, computer device and storage medium for ARP proxy in routing packet forwarding

Publications (2)

Publication Number Publication Date
CN112866113A true CN112866113A (en) 2021-05-28
CN112866113B CN112866113B (en) 2022-11-01

Family

ID=75998102

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011591124.3A Active CN112866113B (en) 2020-12-29 2020-12-29 Method, system, computer device and storage medium for ARP proxy in routing packet forwarding

Country Status (1)

Country Link
CN (1) CN112866113B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114205189A (en) * 2021-08-25 2022-03-18 四川长虹电器股份有限公司 Method for batch burning of equipment information based on secondary gateway
CN115567603A (en) * 2022-08-17 2023-01-03 海南凤凰木科技有限公司 Proxy route forwarding method, device, intelligent terminal and storage medium

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101465889A (en) * 2008-12-03 2009-06-24 北京星网锐捷网络技术有限公司 Network address translation equipment and request method of response address analysis protocol
CN101883119A (en) * 2010-07-09 2010-11-10 潘薇 Method for preventing routing gateway equipment from being attacked by APR virus via novel NAT
WO2010139238A1 (en) * 2009-06-03 2010-12-09 中兴通讯股份有限公司 Method and device for implementing mac-forced forwarding
CN102355417A (en) * 2011-10-08 2012-02-15 杭州华三通信技术有限公司 Data center two-layer interconnection method and device
CN103095858A (en) * 2011-10-28 2013-05-08 中兴通讯股份有限公司 Method, network equipment and system of processing messages of address resolution protocol (ARP)
CN105591922A (en) * 2015-10-13 2016-05-18 杭州华三通信技术有限公司 Message transmission method and device
CN107124364A (en) * 2017-06-30 2017-09-01 广州市品高软件股份有限公司 The complete Proxy Methods of network A RP and system based on software defined network controller
CN108900657A (en) * 2018-08-23 2018-11-27 福建三元达网络技术有限公司 LTE terminal data routing method and system under a kind of PGW pond networking
CN110062064A (en) * 2019-05-30 2019-07-26 新华三信息安全技术有限公司 A kind of Address Resolution Protocol ARP request message response method and device
CN111130981A (en) * 2019-12-24 2020-05-08 锐捷网络股份有限公司 Proxy response method and device for MAC address
CN111835764A (en) * 2020-07-13 2020-10-27 中国联合网络通信集团有限公司 ARP anti-spoofing method, tunnel endpoint and electronic equipment

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101465889A (en) * 2008-12-03 2009-06-24 北京星网锐捷网络技术有限公司 Network address translation equipment and request method of response address analysis protocol
WO2010139238A1 (en) * 2009-06-03 2010-12-09 中兴通讯股份有限公司 Method and device for implementing mac-forced forwarding
CN101883119A (en) * 2010-07-09 2010-11-10 潘薇 Method for preventing routing gateway equipment from being attacked by APR virus via novel NAT
CN102355417A (en) * 2011-10-08 2012-02-15 杭州华三通信技术有限公司 Data center two-layer interconnection method and device
CN103095858A (en) * 2011-10-28 2013-05-08 中兴通讯股份有限公司 Method, network equipment and system of processing messages of address resolution protocol (ARP)
CN105591922A (en) * 2015-10-13 2016-05-18 杭州华三通信技术有限公司 Message transmission method and device
CN107124364A (en) * 2017-06-30 2017-09-01 广州市品高软件股份有限公司 The complete Proxy Methods of network A RP and system based on software defined network controller
CN108900657A (en) * 2018-08-23 2018-11-27 福建三元达网络技术有限公司 LTE terminal data routing method and system under a kind of PGW pond networking
CN110062064A (en) * 2019-05-30 2019-07-26 新华三信息安全技术有限公司 A kind of Address Resolution Protocol ARP request message response method and device
CN111130981A (en) * 2019-12-24 2020-05-08 锐捷网络股份有限公司 Proxy response method and device for MAC address
CN111835764A (en) * 2020-07-13 2020-10-27 中国联合网络通信集团有限公司 ARP anti-spoofing method, tunnel endpoint and electronic equipment

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114205189A (en) * 2021-08-25 2022-03-18 四川长虹电器股份有限公司 Method for batch burning of equipment information based on secondary gateway
CN114205189B (en) * 2021-08-25 2023-03-24 四川长虹电器股份有限公司 Method for batch burning of equipment information based on secondary gateway
CN115567603A (en) * 2022-08-17 2023-01-03 海南凤凰木科技有限公司 Proxy route forwarding method, device, intelligent terminal and storage medium

Also Published As

Publication number Publication date
CN112866113B (en) 2022-11-01

Similar Documents

Publication Publication Date Title
EP3993347A1 (en) Method and device for application migration
CN102299969B (en) Web accessing method, layer seven switching equipment and service network
CN112866113B (en) Method, system, computer device and storage medium for ARP proxy in routing packet forwarding
CN102611763A (en) DNS (Domain Name Server) inquiring method and equipment
EP1875760B1 (en) Caching content at a cell site
CN107800625B (en) Message forwarding method and device
JP6371592B2 (en) Node communication method in content-centric network and the node
KR20140133917A (en) Method and apparatus for identifying an application associated with an ip flow using dns data
US20190089648A1 (en) Resource subscription method, resource subscription apparatus, and resource subscription system
EP3334095B1 (en) Method for establishing data connection, server side, and mobile terminal
CN102625287A (en) Method for downloading mobile phone application software
CN109891929A (en) Data cached acquisition methods, relevant device and communication system
CN102547553B (en) Method, system and device for accessing service based on wireless application protocol (WAP)
CN104081749A (en) DAD-NS triggered address resolution for dos attack protection
CN103581361A (en) Domain name resolution proxy method, device and system
CN102970387A (en) Domain name resolution method, device and system
KR20150100926A (en) Offload method, device and system
TW202333534A (en) System of transferring data in mobile edge computing, method and computer readable medium thereof
CN101938427B (en) Re-directing method and device in global load balance
CN111600929B (en) Transmission line detection method, routing strategy generation method and proxy server
CN1612550A (en) Methods and apparatus for processing message in wireless communication network
CN115118700B (en) Communication method and communication system
CN116781732A (en) Routing method, system and node
CN114079637B (en) Service processing method and system based on mobile edge calculation
CN115118593B (en) Method and system for optimizing flow rate during network sharing of multiple devices

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant