CN117896279A - Flow traction result determining method and device based on loopback detection - Google Patents

Flow traction result determining method and device based on loopback detection Download PDF

Info

Publication number
CN117896279A
CN117896279A CN202311690717.9A CN202311690717A CN117896279A CN 117896279 A CN117896279 A CN 117896279A CN 202311690717 A CN202311690717 A CN 202311690717A CN 117896279 A CN117896279 A CN 117896279A
Authority
CN
China
Prior art keywords
message
loopback detection
garp
equipment
detection message
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.)
Pending
Application number
CN202311690717.9A
Other languages
Chinese (zh)
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.)
Tianyi Cloud Technology Co Ltd
Original Assignee
Tianyi Cloud Technology 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 Tianyi Cloud Technology Co Ltd filed Critical Tianyi Cloud Technology Co Ltd
Priority to CN202311690717.9A priority Critical patent/CN117896279A/en
Publication of CN117896279A publication Critical patent/CN117896279A/en
Pending legal-status Critical Current

Links

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/50Reducing energy consumption in communication networks in wire-line communication networks, e.g. low power modes or reduced link rate

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The application relates to the technical field of network security, and particularly discloses a flow traction result determining method and device based on loop-back detection. Constructing a registration protocol GARP message based on an EIP-GARP module of the master device, and transmitting the GARP message to the upstream forwarding device; after the successful sending of the GARP message is detected, a loopback detection message is constructed based on the main equipment, and the loopback detection message is sent to the upstream forwarding equipment; and when detecting that the main equipment receives the loopback detection message sent by the upstream forwarding equipment, determining that the flow traction result is finished. According to the method and the device, the loopback detection message is sent to the upstream forwarding device through construction of the loopback detection message, whether the main device receives the loopback detection message returned by the upstream forwarding device or not is detected, if the main device receives the loopback detection message returned by the upstream forwarding device, the flow traction result is determined to be finished, the flow traction result can be effectively determined, and the problems occurring in the flow traction process of the upstream forwarding device are monitored.

Description

Flow traction result determining method and device based on loopback detection
Technical Field
The present disclosure relates to the field of network security technologies, and in particular, to a method, an apparatus, a computer device, and a storage medium for determining a flow traction result based on loopback detection.
Background
Under a cloud network scene, under the condition that an underlay is a three-layer networking architecture, a public network gateway carrying north-south traffic generally carries out traffic traction through bgp; under the condition that the underlay is a two-layer network architecture (the number of nodes is less than 500), the public network gateway generally performs flow traction through a GARP mechanism, but the GARP is a unidirectional announcement message, cannot confirm whether the opposite terminal equipment has received and effectively processes the message, cannot perform effective monitoring and alarming, cannot determine a flow traction result, cannot perform problem monitoring and alarming, and therefore, how to confirm the flow traction result of the opposite terminal equipment, and effectively discover problems and monitor and alarm become the problems to be solved urgently.
Disclosure of Invention
The application provides a flow traction result determining method, a flow traction result determining device, a flow traction result determining computer device and a flow traction result storing medium based on loop detection, so that flow traction results of opposite-end equipment are confirmed, problems are effectively found, and monitoring and alarming are effectively carried out.
In a first aspect, the present application provides a method for determining a flow traction result based on loop back detection, where the method includes:
constructing a registration protocol GARP message based on an EIP-GARP module of a main device, and transmitting the GARP message to an upstream forwarding device;
after the successful sending of the GARP message is detected, a loopback detection message is constructed based on the main equipment, and the loopback detection message is sent to the upstream forwarding equipment;
and when the main equipment is detected to receive the loopback detection message sent by the upstream forwarding equipment, determining that the flow traction result is finished.
Further, the loopback detection message is a message that both the source IP address and the destination IP address are elastic public network IP address EIP of the master device.
Further, when the master device is detected to receive the loopback detection message sent by the upstream forwarding device, before determining that the traffic traction result is completed, the method further includes:
learning the GARP message based on the upstream forwarding equipment to obtain an Address Resolution Protocol (ARP) table entry;
and when the ARP table entry is an effective table entry, forwarding public network traffic to the main equipment based on the ARP table entry, and returning the loopback detection message to the main equipment.
Further, after the learning of the GARP message by the upstream forwarding device and the obtaining of the address resolution protocol ARP entry, the method further includes:
and when the ARP table entry is an invalid table entry, discarding the loopback detection message or forwarding the loopback detection message to other devices which are not the main device.
Further, after detecting that the GARP message is successfully sent, constructing a loopback probe message based on the master device, and sending the loopback probe message to the upstream forwarding device, the method further includes:
and when the fact that the master equipment does not receive the loopback detection message sent by the upstream forwarding equipment is detected, continuously sending the GARP message to the upstream forwarding equipment based on the master equipment so as to drive the upstream forwarding equipment to learn the GARP message, and recording the times that the master equipment does not receive the loopback detection message.
Further, after the master device continues to send the GARP message to the upstream forwarding device to drive the upstream forwarding device to learn the GARP message and record the times that the master device does not receive the loopback probe message, the method further includes:
acquiring the times that the main equipment does not receive the loopback detection message;
comparing a preset frequency threshold with the frequency of the main equipment not receiving the loopback detection message;
and when the number of times that the main equipment does not receive the loopback detection message is not smaller than the preset number of times threshold, reporting that the EIP has connectivity problem to an alarm system, and reminding operation and maintenance personnel to maintain based on the alarm system.
Further, the sending the loopback probe message to the upstream forwarding device includes:
and periodically sending and receiving the loopback detection message based on the master equipment.
In a second aspect, the present application further provides a flow traction result determining device based on loop-back detection, where the device includes:
the GARP message sending module is used for constructing a registration protocol GARP message based on the EIP-GARP module of the main equipment and sending the GARP message to the upstream forwarding equipment;
the loopback detection message sending module is used for constructing a loopback detection message based on the main equipment after the successful sending of the GARP message is detected, and sending the loopback detection message to the upstream forwarding equipment;
and the flow traction result determining module is used for determining that the flow traction result is finished when the main equipment is detected to receive the loopback detection message sent by the upstream forwarding equipment.
In a third aspect, the present application also provides a computer device comprising a memory and a processor; the memory is used for storing a computer program; the processor is used for executing the computer program and realizing the flow traction result determining method based on loop back detection when executing the computer program.
In a fourth aspect, the present application further provides a computer readable storage medium storing a computer program, where the computer program when executed by a processor causes the processor to implement a method for determining a flow traction result based on loop back detection as described above.
The application discloses a flow traction result determining method, a device, a computer device and a storage medium based on loopback detection, wherein a registration protocol GARP message is constructed based on an EIP-GARP module of a main device, and the GARP message is sent to an upstream forwarding device; after the successful sending of the GARP message is detected, a loopback detection message is constructed based on the main equipment, and the loopback detection message is sent to the upstream forwarding equipment; and when the main equipment is detected to receive the loopback detection message sent by the upstream forwarding equipment, determining that the flow traction result is finished. According to the method and the device, the loopback detection message is sent to the upstream forwarding device through construction of the loopback detection message, whether the main device receives the loopback detection message returned by the upstream forwarding device or not is detected, if the main device receives the loopback detection message returned by the upstream forwarding device, the flow traction result is determined to be finished, the flow traction result can be effectively determined, and the problems occurring in the flow traction process of the upstream forwarding device are monitored.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings needed in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present application, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flow chart illustrating a first embodiment of a method for determining flow traction results based on loop back detection provided by embodiments of the present application;
FIG. 2 is a schematic flow pulling diagram of a method for determining flow pulling results based on loopback detection according to an embodiment of the present application;
fig. 3 is a schematic diagram of a format of a loopback detection message according to a method for determining a flow traction result based on loopback detection according to an embodiment of the present application;
fig. 4 is a schematic message interaction diagram of a main device and an upstream forwarding device according to a method for determining a flow traction result based on loopback detection according to an embodiment of the present application;
FIG. 5 is a flow chart illustrating a second embodiment of a method for determining flow traction results based on loop back detection provided by an embodiment of the present application;
FIG. 6 is a flow chart illustrating a third embodiment of a method for determining flow traction results based on loop back detection provided by an embodiment of the present application;
FIG. 7 is a schematic block diagram of a flow traction result determining device based on loopback detection according to an embodiment of the present application;
fig. 8 is a schematic block diagram of a computer device according to an embodiment of the present application.
Detailed Description
The following description of the embodiments of the present application will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are some, but not all, of the embodiments of the present application. All other embodiments, which can be made by one of ordinary skill in the art without undue burden from the present disclosure, are within the scope of the present disclosure.
The flow diagrams depicted in the figures are merely illustrative and not necessarily all of the elements and operations/steps are included or performed in the order described. For example, some operations/steps may be further divided, combined, or partially combined, so that the order of actual execution may be changed according to actual situations.
It is to be understood that the terminology used in the description of the present application is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in this specification and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It should also be understood that the term "and/or" as used in this specification and the appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes such combinations.
The embodiment of the application provides a flow traction result determining method and device based on loop back detection, computer equipment and a storage medium. The flow traction result determining method based on the loopback detection can be applied to a server, effectively determines the flow traction result through the loopback detection message, and monitors problems occurring in the flow traction process of the upstream forwarding equipment. The server may be an independent server or a server cluster.
Some embodiments of the present application are described in detail below with reference to the accompanying drawings. The following embodiments and features of the embodiments may be combined with each other without conflict.
Referring to fig. 1, fig. 1 is a schematic flowchart of a flow traction result determining method based on loop back detection according to an embodiment of the present application. The flow traction result determining method based on the loopback detection can be applied to a server, and is used for effectively determining the flow traction result through the loopback detection message and monitoring the problems in the flow traction process of the upstream forwarding equipment.
As shown in fig. 1, the flow traction result determining method based on loop back detection specifically includes steps S101 to S103.
S101, constructing a registration protocol GARP message based on an EIP-GARP module of the master device, and transmitting the GARP message to an upstream forwarding device.
In one embodiment, as shown in fig. 2, when a cloud HOST accesses a public network, traffic is first tunneled by a VM-HOST (virtual HOST) and then sent to a public network gateway active-standby cluster, EIP (elastic public network IP) mapping is performed by a public network gateway and then sent to a blast (egress gateway), and backhaul traffic is forwarded by the blast to a public network gateway HOST node, and then the public network gateway performs address mapping and then forwards to the cloud HOST. The EIP is an elastic public network IP, and the ali Yun Danxing public network IP (Internet Protocol Address internet address), that is, the EIP, is an independent public network IP resource.
Under the architecture of an under lay two-layer network, after an IGW (Internet Gateway) receives the configuration of an EIP, the IGW needs to send a GARP (Generic Attribute Registration Protocol, general attribute registration protocol) message of the EIP to Bleaf, so that the Bleaf can learn an ARP (Address Resolution Protocol ) of the EIP, and further generate a forwarding table item, so that the traffic coming from the public network can be forwarded to the public network Gateway main device normally through Bleaf.
Wherein, the underly is a physical basic layer network device of reality, and the data center is a network of a basic forwarding architecture.
In one embodiment, IGW is taken as the master device and Bleaf is taken as the upstream forwarding device. When the IGW is a master device, an EIP-GARP module of the IGW constructs a GARP message and sends the GARP message to Bleaf.
S102, after the successful sending of the GARP message is detected, a loopback detection message is built based on the main equipment, and the loopback detection message is sent to the upstream forwarding equipment.
In one embodiment, the loopback detection message is a message that the source IP address and the destination IP address are both elastic public network IP address EIP of the master device.
Further, the sending the loopback probe message to the upstream forwarding device includes: and periodically sending and receiving the loopback detection message based on the master equipment.
In one embodiment, the IGW periodically builds messages of udp-echo (both source IP and destination IP are EIP) and sends the messages to Bleaf. Wherein, the udp-echo message is a loopback detection message.
In one embodiment, as shown in fig. 3, fig. 3 is a schematic diagram of a loopback detection message format of a method for determining a flow traction result based on loopback detection according to an embodiment of the present application. In the figure, the lifetime, EIP and IP-header parts are message special filling fields, and these fields are used for distinguishing the client service message.
Further, after detecting that the GARP message is successfully sent, constructing a loopback detection message based on the master device, and sending the loopback detection message to the upstream forwarding device, the method further includes: and when the fact that the master equipment does not receive the loopback detection message sent by the upstream forwarding equipment is detected, continuously sending the GARP message to the upstream forwarding equipment based on the master equipment so as to drive the upstream forwarding equipment to learn the GARP message, and recording the times that the master equipment does not receive the loopback detection message.
In one embodiment, the IGW listens to the udp-echo message (i.e. the loopback probe message), if the Bleaf does not loop back the udp-echo message sent by the IGW itself, indicating that the Bleaf does not process the GARP message correctly, continuing to send GARP-driven Bleaf learning of the problematic EIP through the IGW;
in one embodiment, the number of times that the IGW does not receive the udp-echo message is recorded, and if the number of times is still not received when the set number of times threshold is reached, alarm information is sent to the monitoring platform.
And S103, when the main equipment is detected to receive the loopback detection message sent by the upstream forwarding equipment, determining that the flow traction result is finished.
In one embodiment, the IGW listens to the udp-echo message, and if the Bleaf forwards the udp-echo message sent by the IGW itself back, it indicates that the EIP-GARP message sent by the IGW itself is effectively received and correctly processed by the Bleaf, which indicates that the traffic pulling result is completed.
In an embodiment, as shown in fig. 4, fig. 4 is a schematic message interaction diagram of a main device and an upstream forwarding device according to a method for determining a flow traction result based on loopback detection according to an embodiment of the present application. The EIP-GARP and the service message are the original interactive message types of the system. The curved arrow shows the loopback probe message proposed in the present application.
The above embodiment provides a method, a device, a computer device and a storage medium for determining a flow traction result based on loopback detection, wherein a registration protocol (GARP) message is constructed based on an EIP-GARP module of a master device, and the GARP message is sent to an upstream forwarding device; after the successful sending of the GARP message is detected, a loopback detection message is constructed based on the main equipment, and the loopback detection message is sent to the upstream forwarding equipment; and when the main equipment is detected to receive the loopback detection message sent by the upstream forwarding equipment, determining that the flow traction result is finished. According to the method and the device, the loopback detection message is constructed and sent to the upstream forwarding device, whether the main device receives the loopback detection message returned by the upstream forwarding device or not is detected, if the main device receives the loopback detection message returned by the upstream forwarding device, the flow traction result is determined to be finished, an unreliable notification mechanism of GARP is solved, the flow traction result can be effectively determined, a monitoring alarm means is provided, the problems occurring in the flow traction process of the upstream forwarding device are monitored, and the service discovery problem can be preceded.
Referring to fig. 5, fig. 5 is a schematic flowchart of a flow traction result determining method based on loop back detection according to an embodiment of the present application. The flow traction result determining method based on the loopback detection can be applied to a server, and is used for effectively determining the flow traction result through the loopback detection message and monitoring the problems in the flow traction process of the upstream forwarding equipment.
As shown in fig. 5, before the step S103 of the flow traction result determining method based on loop back detection, the method specifically further includes steps S201 to S202.
S201, learning the GARP message based on the upstream forwarding equipment to obtain an Address Resolution Protocol (ARP) table item;
s202, forwarding public network traffic to the main equipment based on the ARP table entry when the ARP table entry is an effective table entry, and returning the loopback detection message to the main equipment.
Further, after the learning of the GARP message by the upstream forwarding device and the obtaining of the address resolution protocol ARP entry, the method further includes: and when the ARP table entry is an invalid table entry, discarding the loopback detection message or forwarding the loopback detection message to other devices which are not the main device.
In one embodiment, bleaf learns to obtain ARP entries according to EIP-GARP after receiving the udp-echo message.
In one embodiment, if the ARP entry is a valid entry, message forwarding is performed based on the ARP entry, traffic traction is implemented, and the udp-echo message is returned to the IGW.
In one embodiment, if there is no ARP entry or the ARP entry is not a valid entry, bleaf may discard the udp-echo message or forward to an undesired destination address, i.e., other devices than the current IGW.
Referring to fig. 6, fig. 6 is a schematic flowchart of a flow traction result determining method based on loop back detection according to an embodiment of the present application. The flow traction result determining method based on the loopback detection can be applied to a server, and is used for effectively determining the flow traction result through the loopback detection message and monitoring the problems in the flow traction process of the upstream forwarding equipment.
As shown in fig. 6, the step of the method for determining a traffic traction result based on loopback detection is based on that the master device continues to send the GARP message to the upstream forwarding device, so as to drive the upstream forwarding device to learn the GARP message, and after recording the number of times that the master device does not receive the loopback detection message, the method specifically further includes steps S301 to S303.
S301, obtaining the times that the main equipment does not receive the loopback detection message.
S302, comparing a preset time threshold with the times that the main equipment does not receive the loopback detection message.
And S303, reporting the connectivity problem of the EIP to an alarm system when the number of times that the main equipment does not receive the loopback detection message is not less than the preset number of times threshold, and reminding operation and maintenance personnel to maintain based on the alarm system.
In one embodiment, when the number of times that the host device does not receive the udp-echo packet reaches a preset number of times threshold, the current EIP is reported to the alarm system that a connectivity problem exists, so as to remind an operation and maintenance person to access the process for maintenance.
In one embodiment, the preset times threshold can be set by the user independently according to the needs, can be set in the system in advance, and can be changed in the executing process.
In another embodiment, when the number of times that the host device does not receive the udp-echo message does not reach the preset number of times threshold, the method continues to send the GARP message to the upstream forwarding device until the host device receives the udp-echo message sent by the host device returned by the upstream forwarding device or the number of times that the host device does not receive the udp-echo message does not reach the preset number of times threshold.
Referring to fig. 7, fig. 7 is a schematic block diagram of a flow traction result determining device based on loop back detection, which is configured to execute the foregoing flow traction result determining method based on loop back detection according to an embodiment of the present application. The flow traction result determining device based on the loop-back detection can be configured on a server.
As shown in fig. 7, the flow traction result determining device 400 based on loop back detection includes:
the GARP message sending module 401 is configured to construct a registration protocol GARP message based on an EIP-GARP module of the master device, and send the GARP message to the upstream forwarding device;
a loopback detection message sending module 402, configured to construct a loopback detection message based on the master device after detecting that the GARP message is sent successfully, and send the loopback detection message to the upstream forwarding device;
and the traffic traction result determining module 403 is configured to determine that the traffic traction result is completed when it is detected that the master device receives the loopback detection message sent by the upstream forwarding device.
Further, the loopback detection message is a message that both the source IP address and the destination IP address are elastic public network IP address EIP of the master device.
Further, the flow traction result determining apparatus 400 based on loopback detection further includes a loopback detection message return module, where the loopback detection message return module includes:
an ARP entry obtaining unit, configured to learn the GARP packet based on the upstream forwarding device, and obtain an ARP entry of an address resolution protocol;
and the loopback detection message returning unit is used for forwarding the public network flow to the main equipment based on the ARP table entry when the ARP table entry is a valid table entry, and returning the loopback detection message to the main equipment.
Further, the loopback detection message return module further includes:
and the loopback detection message discarding unit is used for discarding the loopback detection message or forwarding the loopback detection message to other devices which are not the main device when the ARP table entry is an invalid table entry.
Further, the flow traction result determining device 400 based on loop back detection further includes:
and the message retransmitting module is used for continuously transmitting the GARP message to the upstream forwarding device based on the main device when the main device is detected not to receive the loopback detection message transmitted by the upstream forwarding device, so as to drive the upstream forwarding device to learn the GARP message, and recording the times that the main device does not receive the loopback detection message.
Further, the message resending module further includes:
the times acquisition unit is used for acquiring times that the main equipment does not receive the loopback detection message;
the frequency comparison unit is used for comparing a preset frequency threshold value with the frequency of the main equipment which does not receive the loopback detection message;
and the problem warning unit is used for reporting the connectivity problem of the EIP to the alarm system when the number of times that the main equipment does not receive the loopback detection message is not smaller than the preset number of times threshold value, and reminding operation and maintenance personnel to maintain based on the alarm system.
Further, the loopback probe message sending module 402 includes:
and the loopback detection message sending unit is used for periodically sending and receiving the loopback detection message based on the master equipment.
It should be noted that, for convenience and brevity of description, the specific working process of the apparatus and each module described above may refer to the corresponding process in the foregoing method embodiment, which is not described herein again.
The apparatus described above may be implemented in the form of a computer program which is executable on a computer device as shown in fig. 8.
Referring to fig. 8, fig. 8 is a schematic block diagram of a computer device according to an embodiment of the present application. The computer device may be a server.
With reference to FIG. 8, the computer device includes a processor, memory, and a network interface connected by a system bus, where the memory may include a non-volatile storage medium and an internal memory.
The non-volatile storage medium may store an operating system and a computer program. The computer program comprises program instructions that, when executed, cause the processor to perform any of a number of methods for determining flow traction results based on loop back detection.
The processor is used to provide computing and control capabilities to support the operation of the entire computer device.
The internal memory provides an environment for the execution of a computer program in the non-volatile storage medium that, when executed by the processor, causes the processor to perform any of a number of methods for determining flow traction results based on loop back detection.
The network interface is used for network communication such as transmitting assigned tasks and the like. It will be appreciated by those skilled in the art that the structure shown in fig. 8 is merely a block diagram of some of the structures associated with the present application and is not limiting of the computer device to which the present application may be applied, and that a particular computer device may include more or fewer components than shown, or may combine certain components, or have a different arrangement of components.
It should be appreciated that the processor may be a central processing unit (Central Processing Unit, CPU), but may also be other general purpose processors, digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), field-programmable gate arrays (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or the like. Wherein the general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
Wherein in one embodiment the processor is configured to run a computer program stored in the memory to implement the steps of:
constructing a registration protocol GARP message based on an EIP-GARP module of a main device, and transmitting the GARP message to an upstream forwarding device;
after the successful sending of the GARP message is detected, a loopback detection message is constructed based on the main equipment, and the loopback detection message is sent to the upstream forwarding equipment;
and when the main equipment is detected to receive the loopback detection message sent by the upstream forwarding equipment, determining that the flow traction result is finished.
In one embodiment, the loopback detection message is a message that the source IP address and the destination IP address are both elastic public network IP address EIP of the master device.
In one embodiment, when the processor is implemented to determine that the traffic traction result is completed when detecting that the master device receives the loopback probe packet sent by the upstream forwarding device, the processor is further configured to implement:
learning the GARP message based on the upstream forwarding equipment to obtain an Address Resolution Protocol (ARP) table entry;
and when the ARP table entry is an effective table entry, forwarding public network traffic to the main equipment based on the ARP table entry, and returning the loopback detection message to the main equipment.
In one embodiment, after implementing learning the GARP message based on the upstream forwarding device, the processor is further configured to implement:
and when the ARP table entry is an invalid table entry, discarding the loopback detection message or forwarding the loopback detection message to other devices which are not the main device.
In one embodiment, after detecting that the GARP message is successfully sent, the processor is further configured to, after implementing that a loopback probe message is constructed based on the master device and the loopback probe message is sent to the upstream forwarding device, implement:
and when the fact that the master equipment does not receive the loopback detection message sent by the upstream forwarding equipment is detected, continuously sending the GARP message to the upstream forwarding equipment based on the master equipment so as to drive the upstream forwarding equipment to learn the GARP message, and recording the times that the master equipment does not receive the loopback detection message.
In one embodiment, after implementing that the master device continues to send the GARP message to the upstream forwarding device to drive the upstream forwarding device to learn the GARP message and record the number of times that the master device does not receive the loopback probe message, the processor is further configured to implement:
acquiring the times that the main equipment does not receive the loopback detection message;
comparing a preset frequency threshold with the frequency of the main equipment not receiving the loopback detection message;
and when the number of times that the main equipment does not receive the loopback detection message is not smaller than the preset number of times threshold, reporting that the EIP has connectivity problem to an alarm system, and reminding operation and maintenance personnel to maintain based on the alarm system.
In one embodiment, the sending the loopback probe message to the upstream forwarding device includes:
and periodically sending and receiving the loopback detection message based on the master equipment.
The embodiment of the application also provides a computer readable storage medium, wherein the computer readable storage medium stores a computer program, the computer program comprises program instructions, and the processor executes the program instructions to realize any flow traction result determining method based on loop back detection.
The computer readable storage medium may be an internal storage unit of the computer device according to the foregoing embodiment, for example, a hard disk or a memory of the computer device. The computer readable storage medium may also be an external storage device of the computer device, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), or the like, which are provided on the computer device.
While the invention has been described with reference to certain preferred embodiments, it will be understood by those skilled in the art that various changes and substitutions of equivalents may be made and equivalents will be apparent to those skilled in the art without departing from the scope of the invention. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (10)

1. The flow traction result determining method based on loop back detection is characterized by comprising the following steps of:
constructing a registration protocol GARP message based on an EIP-GARP module of a main device, and transmitting the GARP message to an upstream forwarding device;
after the successful sending of the GARP message is detected, a loopback detection message is constructed based on the main equipment, and the loopback detection message is sent to the upstream forwarding equipment;
and when the main equipment is detected to receive the loopback detection message sent by the upstream forwarding equipment, determining that the flow traction result is finished.
2. The method for determining traffic traction results based on loopback detection according to claim 1, wherein the loopback detection message is a message in which both a source IP address and a destination IP address are elastic public network IP address EIP of the master device.
3. The method for determining a traffic traction result based on loopback detection according to claim 1, wherein when detecting that the master device receives a loopback detection message sent by the upstream forwarding device, determining that the traffic traction result is completed, further comprises:
learning the GARP message based on the upstream forwarding equipment to obtain an Address Resolution Protocol (ARP) table entry;
and when the ARP table entry is an effective table entry, forwarding public network traffic to the main equipment based on the ARP table entry, and returning the loopback detection message to the main equipment.
4. The method for determining traffic traction result based on loopback detection according to claim 3, wherein after the upstream forwarding device learns the GARP message and obtains an address resolution protocol ARP table entry, further comprising:
and when the ARP table entry is an invalid table entry, discarding the loopback detection message or forwarding the loopback detection message to other devices which are not the main device.
5. The method for determining a traffic traction result based on loopback detection according to claim 1, wherein after detecting that the GARP message is successfully sent, the method further comprises, after constructing a loopback detection message based on the master device and sending the loopback detection message to the upstream forwarding device:
and when the fact that the master equipment does not receive the loopback detection message sent by the upstream forwarding equipment is detected, continuously sending the GARP message to the upstream forwarding equipment based on the master equipment so as to drive the upstream forwarding equipment to learn the GARP message, and recording the times that the master equipment does not receive the loopback detection message.
6. The method for determining traffic traction result based on loopback detection according to claim 5, wherein after the master device continues to send the GARP message to the upstream forwarding device to drive the upstream forwarding device to learn the GARP message and record the number of times that the master device does not receive the loopback detection message, further comprising:
acquiring the times that the main equipment does not receive the loopback detection message;
comparing a preset frequency threshold with the frequency of the main equipment not receiving the loopback detection message;
and when the number of times that the main equipment does not receive the loopback detection message is not smaller than the preset number of times threshold, reporting that the EIP has connectivity problem to an alarm system, and reminding operation and maintenance personnel to maintain based on the alarm system.
7. The method for determining a traffic traction result based on loopback detection according to any one of claims 1 to 6, wherein the sending the loopback detection message to the upstream forwarding device comprises:
and periodically sending and receiving the loopback detection message based on the master equipment.
8. A flow traction result determining device based on loop back detection, comprising:
the GARP message sending module is used for constructing a registration protocol GARP message based on the EIP-GARP module of the main equipment and sending the GARP message to the upstream forwarding equipment;
the loopback detection message sending module is used for constructing a loopback detection message based on the main equipment after the successful sending of the GARP message is detected, and sending the loopback detection message to the upstream forwarding equipment;
and the flow traction result determining module is used for determining that the flow traction result is finished when the main equipment is detected to receive the loopback detection message sent by the upstream forwarding equipment.
9. A computer device, the computer device comprising a memory and a processor;
the memory is used for storing a computer program;
the processor is configured to execute the computer program and implement the flow traction result determination method based on loop back detection as claimed in any one of claims 1 to 7 when the computer program is executed.
10. A computer readable storage medium, characterized in that the computer readable storage medium stores a computer program, which when executed by a processor causes the processor to implement the flow traction result determination method based on loop back detection according to any one of claims 1 to 7.
CN202311690717.9A 2023-12-11 2023-12-11 Flow traction result determining method and device based on loopback detection Pending CN117896279A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311690717.9A CN117896279A (en) 2023-12-11 2023-12-11 Flow traction result determining method and device based on loopback detection

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311690717.9A CN117896279A (en) 2023-12-11 2023-12-11 Flow traction result determining method and device based on loopback detection

Publications (1)

Publication Number Publication Date
CN117896279A true CN117896279A (en) 2024-04-16

Family

ID=90641689

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311690717.9A Pending CN117896279A (en) 2023-12-11 2023-12-11 Flow traction result determining method and device based on loopback detection

Country Status (1)

Country Link
CN (1) CN117896279A (en)

Similar Documents

Publication Publication Date Title
US7995574B2 (en) Detection of forwarding problems for external prefixes
US20080195733A1 (en) Tunnel availability detection with reduced control plane overhead
CN109995746B (en) Packet loss detection for User Data Protocol (UDP) traffic
US11075856B2 (en) Switch device and communication control method
US10862735B2 (en) Method and apparatus for implementing operation, administration, and maintenance function
CN110659109A (en) Openstack cluster virtual machine monitoring system and method
EP4089958A1 (en) Detecting sources of computer network failures
JP4861293B2 (en) COMMUNICATION DEVICE, COMMUNICATION METHOD, AND COMMUNICATION PROGRAM
CN111614505A (en) Message processing method and gateway equipment
EP4167530A1 (en) Network monitoring method, electronic device and storage medium
US9893979B2 (en) Network topology discovery by resolving loops
CN110855566B (en) Method and device for dragging upstream flow
CN117896279A (en) Flow traction result determining method and device based on loopback detection
WO2021106446A1 (en) Detection device, vehicle, detection method, and detection program
CN109361781B (en) Message forwarding method, device, server, system and storage medium
CN112825501A (en) Signal degradation processing method, device and system
JP4413539B2 (en) ROUTING CONTROL METHOD, DATA COLLECTING DEVICE, AND ROUTING CONTROL SYSTEM
JP2011166466A (en) Network system, method of identifying loop generating switch , network management device, and switch device
CN110912997B (en) Method and device for checking Loopback interface of triangular networking
CN111107006B (en) Routing management method and device
JP6313897B1 (en) COMMUNICATION CONTROL DEVICE, COMMUNICATION CONTROL METHOD, AND PROGRAM
JPH09247146A (en) Network management system
CN117082653A (en) Network communication optimization method and system based on retransmission mechanism
CN114244468A (en) Method, storage medium and equipment for rapidly positioning fault point of OTN link
JP2022109205A (en) Detection device, detection method, and detection program

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