Source address verification method and device and network equipment

The source address verification table is generated by performing two-way reachability detection on the database, which solves the low-overhead and low-latency problems of source address verification in the existing technology, achieves accurate verification of the source address, and avoids the burden of false filtering and manual configuration. .

CN118803759APending Publication Date: 2024-10-18CHINA MOBILE COMM LTD RES INST +1
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202311514159.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-11-14
Publication Date
2024-10-18

AI Technical Summary

Technical Problem

Existing source address verification technology has shortcomings in terms of low overhead and low latency, especially in large-scale networks, leading to source address forgery and false filtering of legitimate traffic. In addition, SAV-based ACL technology has heavy manual configuration burden and Limited scalability issues.

Method used

By performing two-way reachability testing on the first database, establishing a source address verification table, recording the correspondence between the device's prefix and the incoming interface, and generating the first verification table for source address verification, this avoids sending detection packets and reduces Computational overhead and latency.

Benefits of technology

It achieves accurate verification of source addresses with low overhead and low latency, avoids false negative and false positive problems, and reduces the risk of manual configuration and limited scalability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118803759A_ABST
    Figure CN118803759A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a source address verification method, a source address verification device and network equipment. The method comprises the following steps: according to a first database, detecting a prefix carried by a second device reachable by an incoming interface of a first device, and / or detecting a prefix not carried by the second device reachable by the incoming interface of the first device; the first database records reachability information among the plurality of devices and prefixes of the plurality of devices; the first equipment and the second equipment are respectively one of the multiple pieces of equipment; under the condition that it is determined that the second device carries the prefix according to the first database, first relation information is recorded in a first verification table; the first relation information records the corresponding relation between the prefix of the second equipment and the incoming interface. By adopting the method, the connectivity detection is performed on the first database, the second equipment carrying the prefix is obtained, and the corresponding first relation information is established, so that the source address verification table can be obtained in a low-overhead and low-delay manner, and the accurate verification of the source address is ensured.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of wireless transmission technology, and in particular to a source address verification method, device and network equipment. Background Art

[0002] Currently, the most commonly used source address verification technologies within autonomous systems include Unicast Reverse Path Forwarding (uRPF) technology, static Access Control List (ACL) based on Source Address Validation (SAV), and Source Address Validation in Networks (SAVNET) scheme that uses Border Gateway Protocol (BGP) probe messages to generate source address verification tables. Among them, uRPF technology includes loose uRPF technology and strict uRPF technology.

[0003] Among the above-mentioned source address verification technologies, the source address verification mechanism of the loose uRPF technology is too loose, which may lead to the misplacement of forged packets from the source address of the valid network address, resulting in serious false negatives. In the scenario where the round-trip traffic path is asymmetric, the use of strict uRPF technology may mistakenly filter legitimate traffic, resulting in false positives. The SAV-based ACL technology manually configures filtering rules on the device and defines a legitimate source prefix list, which is burdensome and error-prone, and is greatly limited in scalability. The SAVNET solution that uses BGP detection packets has the problem of generating large packet and path calculation overhead and causing large delays when used in large-scale networks.

[0004] Therefore, there is no technology currently available that can obtain the source address verification table in a low-overhead, low-latency manner to achieve accurate verification of the source address. Summary of the invention

[0005] The technical solution of the present invention aims to provide a source address verification method, device and network equipment, which are used to obtain a source address verification table in a low-overhead and low-latency manner, and the source address can be accurately verified by using the source address verification table.

[0006] An embodiment of the present invention provides a source address verification method, wherein the method is performed by a first device and includes:

[0007] According to the first database, a second device that is reachable by the input interface of the first device and carries a prefix is ​​detected, and / or a second device that is reachable by the input interface of the first device and does not carry a prefix is ​​detected; wherein the first database records the reachability information between multiple devices and the prefixes of multiple devices; the first device and the second device are respectively one of the multiple devices;

[0008] When it is detected according to the first database that the second device carries a prefix, first relationship information is recorded in the first verification table; the first relationship information records the correspondence between the prefix of the second device and the input interface.

[0009] Optionally, in the source address verification method, the second device includes a device that is connected to the input interface of the first device and is located at a different connectivity level.

[0010] Optionally, the source address verification method further comprises:

[0011] Detecting whether a source address verification function is enabled on the first device, and / or detecting whether the source address verification function is not enabled on the first device;

[0012] Among them, according to the first database, detecting that a second device that is reachable by the inbound interface of the first device carries a prefix, and / or detecting that a second device that is reachable by the inbound interface of the first device does not carry a prefix, includes:

[0013] When it is detected that the source address verification function is enabled on the first device, a second device reachable through the input interface of the first device is detected to carry a prefix, and / or a second device reachable through the input interface of the first device is detected to not carry a prefix.

[0014] Optionally, in the source address verification method, the first relationship information includes prefix information of the second device, and the prefix information includes all prefixes corresponding to the second device recorded in the first database.

[0015] Optionally, in the source address verification method, the first relationship information includes prefix information of the second device, and the prefix information includes the prefix carrying the first flag bit corresponding to the second device recorded in the first database.

[0016] Optionally, the source address verification method further comprises:

[0017] The prefix in the first database is obtained according to the first messages sent by the plurality of devices; wherein the prefix of the first message carries the first flag bit.

[0018] Optionally, in the source address verification method, the first flag bit is recorded in one or more of the following fields of the first message:

[0019] The extension of the IS-IS protocol can reach the TLV field;

[0020] OSPFv2 Extended Prefix TLV field;

[0021] OSPFv3 prefix attribute flag field.

[0022] Optionally, the source address verification method further comprises:

[0023] The prefix in the first database configured statically is obtained.

[0024] Optionally, in the source address verification method, in the first database, the prefix includes a first label, wherein the first label is used to indicate an access subnet of the device.

[0025] Optionally, in the source address verification method, in the first database, at least two prefixes belonging to the same access subnet include the same first label.

[0026] Optionally, the source address verification method further comprises:

[0027] The prefix in the first database is obtained according to the second messages sent by the plurality of devices; wherein the prefix of the second message carries the first label.

[0028] Optionally, in the source address verification method, the first label is indicated by a routing identifier or a management identifier in the prefix.

[0029] Optionally, in the source address verification method, the first label is recorded in one or more of the following fields of the second message:

[0030] The extension of the IS-IS protocol can reach the sub-TLV field of the TLV field;

[0031] Sub-TLV field of the OSPFv2 extended prefix TLV field;

[0032] Sub-TLV field of the OSPFv3 TLV field.

[0033] Optionally, the source address verification method, wherein the detecting that the second device reachable through the inbound interface of the first device carries a prefix, and / or the detecting that the second device reachable through the inbound interface of the first device does not carry a prefix, includes one or more of the following:

[0034] In the case that there is a connected first-level device at the input interface of the first device, recording the input interface of the first device, and taking the first-level device as the current second device, detecting whether the current second device carries a prefix, and / or detecting whether the current second device does not carry a prefix;

[0035] In the case that the current second device is connected to a lower-level device, the lower-level device is used as the current second device, and the current second device is detected to carry a prefix, and / or the current second device is detected to not carry a prefix;

[0036] sequentially taking the next-level devices connected to the current second device as the current second device, detecting whether the current second device carries a prefix, and / or detecting whether the current second device does not carry a prefix;

[0037] In the case that the current second device does not include a connected next-level device, the second device at the previous level of the current second device is determined as the current second device, and the first operation is performed until the first device is used as the current second device, and the current second device does not have an undetected and connected next-level device.

[0038] Optionally, in the source address verification method, the first operation includes:

[0039] Detecting whether there is an undetected and connected next-level device for the current second device, and / or detecting whether there is an undetected and connected next-level device for the current second device;

[0040] When it is detected that the current second device has an undetected and connected next-level device, the next-level device is used as the current second device, and the current second device is detected to carry a prefix, and / or the current second device is detected to not carry a prefix;

[0041] When it is detected that there is no undetected and connected lower-level device for the current second device, the upper-level second device of the current second device is determined as the current second device.

[0042] Optionally, the source address verification method further comprises:

[0043] After the first device acquires the transmitted data stream, the source address of the data stream is verified according to the first verification table.

[0044] One embodiment of the present invention further provides a source address verification device, which is applied to a first device and includes:

[0045] A detection module, configured to detect, according to a first database, whether a second device that is reachable through an inbound interface of the first device carries a prefix, and / or whether a second device that is reachable through an inbound interface of the first device does not carry a prefix; wherein the first database records reachability information between a plurality of devices and prefixes carried by the plurality of devices; and the first device and the second device are respectively one of the plurality of devices;

[0046] A recording module is used to record first relationship information in a first verification table when it is detected according to the first database that the second device carries a prefix; the first relationship information records the correspondence between the prefix of the second device and the input interface.

[0047] One embodiment of the present invention further provides a network device, which includes a processor, a memory, and a program stored in the memory and executable on the processor, wherein the program implements the source address verification method as described in any one of the above items when executed by the processor.

[0048] One embodiment of the present invention further provides a readable storage medium, wherein a program is stored on the readable storage medium, and when the program is executed by a processor, the steps in the source address verification method as described in any one of the above items are implemented.

[0049] At least one of the above technical solutions of the present invention has the following beneficial effects:

[0050] The source address verification method described in the embodiment of the present invention is adopted. By performing a bidirectional reachability check on the first database, a second device carrying a prefix is ​​obtained, and corresponding first relationship information is established to record the correspondence between the prefix of the second device and the input interface; a first verification table (source address verification table) including the first relationship information is generated in this way, which can be used to perform source address verification. The method of generating the first verification table does not require sending a detection message, so there is no need to transmit a large number of messages, resulting in large computing overhead and delay. In addition, by performing a bidirectional reachability check on the first database, the correspondence between the input interface of the first device and the prefix of the reachable second device can be accurately obtained, thereby ensuring the accurate verification of the source address. BRIEF DESCRIPTION OF THE DRAWINGS

[0051] Figure 1 A schematic diagram of the structure of a network using one of the implementation methods of the source address verification method according to an embodiment of the present invention;

[0052] Figure 2A schematic diagram of the structure of a network using one of the implementation methods of the source address verification method according to an embodiment of the present invention;

[0053] Figure 3 A schematic diagram of a flow chart of a source address verification method according to an embodiment of the present invention;

[0054] Figure 4 A schematic diagram of a flow chart of one implementation of the source address verification method according to an embodiment of the present invention;

[0055] Figure 5 A schematic diagram of a flow chart of another implementation of the source address verification method according to an embodiment of the present invention;

[0056] Figure 6 This is a schematic diagram of one implementation of the indication structure of the first label in an embodiment of the present invention;

[0057] Figure 7 This is a schematic diagram of another implementation of the indication structure of the first label in an embodiment of the present invention;

[0058] Figure 8 It is a schematic diagram of the structure of the source address verification device described in an embodiment of the present invention. DETAILED DESCRIPTION

[0059] In order to make the technical problems, technical solutions and advantages to be solved by the present invention more clear, a detailed description will be given below with reference to the accompanying drawings and specific embodiments.

[0060] like Figure 1 The diagram shows a schematic diagram of a network structure of one embodiment. Figure 2 The diagram is a structural diagram of the network form of another implementation method. For the loose uRPF technology, after receiving the transmission message, the router or node device will check the local forwarding information base (FIB), and confirm whether the source address of the received message exists according to the forwarding information base FIB. As long as the source address of the message exists in the FIB, the message will be processed normally, otherwise the message will be discarded. However, in this way, because the verification mechanism is too loose, the source address forgery from the valid network address may be mistakenly missed, resulting in a serious false negative.

[0061] For example, combining Figure 1 In the network form shown, the FIB stored in device B can be as shown in Table 1 below:

[0062] Table 1

[0063]

[0064] Combination Figure 1As shown in the figure, device C has a legitimate prefix P1, device D has a legitimate prefix P2, and device F has a legitimate prefix P3. When device D forwards traffic with a forged prefix P1 to device B, the attack traffic will be mistakenly missed because the prefix P1 is stored in the FIB of device B.

[0065] For strict uRPF technology, the router or device will search the local FIB table to obtain the inbound interface of the source address. The inbound interface through which the message is transmitted must be the outbound interface corresponding to the source address of the message in the FIB table, otherwise the message will be discarded. The use of strict uRPF technology can avoid the disadvantage of loose uRPF filtering being too loose and reduce the generation of false negatives; however, in scenarios where the round-trip traffic path is asymmetric, the use of strict uRPF technology may mistakenly filter legitimate traffic, causing false positive problems.

[0066] For example, combining Figure 2 In the network form shown, the FIB stored in device A can be as shown in Table 2 below:

[0067] Table 2

[0068]

[0069] Combination Figure 2 As shown in the figure, the multi-homed subnet Subnet has legal prefixes P1 and P2. The FIB table of device A only stores the outbound interface A2 of prefix P2. When sending a message through the legal prefix P1, the message is transmitted to the inbound interface A1 of device A. Since the outbound interface of prefix P1 is not stored in the FIB table, the message of prefix P1 will be incorrectly intercepted by the inbound interface A1 of device A.

[0070] For the SAV-based ACL technology, filtering rules are manually configured on the device to define a legal prefix list. This method is burdensome and error-prone, and its scalability is greatly limited.

[0071] For the SAVNET technology using BGP probe messages, prefix information is first exchanged through the message domain, and then the real forwarding path is accurately restored by sending BGP probe messages. The routing device that enables SAVNET will record the inbound interface it passes through and generate a source address verification table consisting of the prefix and the corresponding legal inbound interface. In this way, the source address verification table can be used at the edge and relay nodes within and between domains to provide all-round protection. However, this solution is not yet mature and will have large message and path calculation overhead and large latency problems when used in large-scale networks.

[0072] Therefore, according to the above verification methods, the loose uRPF and strict uRPF solutions will cause false negative or false positive problems in some scenarios. The SAV-based ACL method relies on static manual configuration and is difficult to use alone on a large scale. The source address verification solution that restores the forwarding path by sending BGP detection messages requires the transmission of a large number of messages, resulting in large computing overhead and latency. Each verification method has defects, and it is impossible to obtain the source address verification table in a low-overhead, low-latency manner and achieve a solution for accurate verification of the source address.

[0073] In order to solve the above technical problems, an embodiment of the present invention provides a source address verification method, which performs a bidirectional reachability check on a first database that records the reachability information between multiple devices and the prefixes of multiple devices, obtains a second device carrying a prefix, establishes corresponding first relationship information, and records the correspondence between the prefix of the second device and the input interface; the first verification table including the first relationship information is generated in this way, which can be used for source address verification. The method of generating the first verification table does not require sending a detection message, so there is no need to transmit a large number of messages, resulting in large computing overhead and delay. In addition, by performing a bidirectional reachability check on the first database, the correspondence between the input interface of the first device and the prefix of the reachable second device can be accurately obtained, thereby ensuring the accurate verification of the source address.

[0074] like Figure 3 FIG. 2 is a flow chart of the source address verification method according to an embodiment of the present invention. Figure 3 As shown, the source address verification method in this embodiment is executed by a first device, including:

[0075] S301, according to the first database, detecting that a second device that is reachable through the inbound interface of the first device carries a prefix, and / or detecting that a second device that is reachable through the inbound interface of the first device does not carry a prefix; wherein the first database records reachability information between multiple devices and prefixes of multiple devices; the first device and the second device are respectively one of the multiple devices;

[0076] S302: When it is detected according to the first database that the second device carries a prefix, first relationship information is recorded in a first verification table; the first relationship information records the correspondence between the prefix of the second device and the input interface.

[0077] It should be noted that, in an embodiment of the present invention, the first device is any routing device in the transmission network, and the first database is used to record the reachability information between multiple devices in the transmission network and the prefixes of multiple devices. The first device detects the first database, determines the second device that is reachable by the input interface of the first device according to the reachability information in the first database, and determines whether the detected second device carries a prefix according to the prefix in the first database.

[0078] It should be noted that, in an embodiment of the present invention, the first device detects in the first database whether the second device reachable by the input interface of the first device carries a prefix. It can also be described as the first device obtaining the second device reachable by the input interface of the first device by reading the first database, and determining whether the obtained second device carries a prefix by reading the first database, or detecting whether the second device reachable by the input interface of the first device carries a prefix, and / or detecting whether the second device reachable by the input interface of the first device does not carry a prefix.

[0079] Optionally, the first database may also be described as a link state database (Link State Data Base, LSDB). It should be noted that the first database is not limited to being only an LSDB, and may also be described or defined as other names in other application scenarios.

[0080] In addition, the first verification table may also be described as a source address verification table, but is not limited to being a source address verification table, and may also be described or defined as other names.

[0081] Optionally, in an embodiment of the present invention, detecting a second device that is reachable by the input interface of the first device can also be described as "detecting a second device that is network connected to the input interface of the first device", that is, the second device and the first device are connected via a direct network connection or an indirect network connection, thereby enabling signal transmission between the two devices.

[0082] Optionally, the reachability information between the multiple devices is used to record the neighbor relationship between the multiple devices. According to the reachability information, a second device that is reachable by an inbound interface of the first device or is network-connected to the first device can be obtained.

[0083] Optionally, the reachability information may also be described as connectivity information or link connectivity information, etc.

[0084] In addition, it should be noted that, in some embodiments, the prefix in the embodiments of the present invention includes but is not limited to only including the source prefix.

[0085] In the embodiment of the present invention, optionally, the second device includes a device that is connected to the input interface of the first device and is located at a different connectivity level.

[0086] In another embodiment, optionally, the method further comprises:

[0087] Detecting whether the first device has a source address verification function enabled;

[0088] The step of detecting, according to the first database, whether a second device reachable by an incoming interface of the first device carries a prefix includes:

[0089] In the case where it is detected that the first device has enabled the source address verification function, it is detected, according to the first database, whether a second device reachable through the input interface of the first device carries a prefix.

[0090] With this implementation, optionally, for a first device that has a source address verification function enabled or turned on, the second device that is reachable through connectivity is traversed in a depth-first manner according to the first database, the prefix of the second device and the input interface to the first device are obtained, and then the first relationship information is determined to generate a first verification table. Optionally, for a first device that has not had the address verification function enabled or turned on, the process is terminated, and the step of detecting whether the second device reachable through the input interface of the first device carries a prefix is ​​not performed.

[0091] Optionally, the source address verification function may also be described as a source address verification (Source Address Validation in Networks, SAVNET) technical function.

[0092] Combination Figure 4 As shown, the source address verification method according to the embodiment of the present invention is adopted, and the detection process is performed by taking the first device as the local device for example. The specific implementation process of detecting whether the second device reachable by the input interface of the first device carries a prefix may include the following steps:

[0093] S401, detecting whether the source address verification function is enabled on the first device; if the detection result is yes, continuing to step S402; if the detection result is no, ending the process and executing step S413;

[0094] S402, according to the first database, detect whether there is a first-level device dev[i] that is bidirectionally reachable and has not been detected in the first device; if the detection result is yes, execute step S403; otherwise, end the process and execute step S413;

[0095] S403, record the input interface inf[i] connecting the first device to the first-level device dev[i];

[0096] S404, using the first-level device dev[i] as the current second device;

[0097] S405, detecting whether the current second device carries a prefix according to the first database; if it is detected that the current second device carries the prefix, executing the following step S406, otherwise, executing step S407;

[0098] S406, generating first relationship information, recording the correspondence between the inbound interface inf[i] and the prefix of the current second device; that is, the prefix generates the first relationship information on the inbound interface inf[i], forming one of the table entries in the first verification table;

[0099] S407, according to the first database, detecting whether the current second device has a lower-level device that is bidirectionally reachable and has not been detected, if the determination result is yes, executing step S408, if the detection result is no, returning to executing step S402;

[0100] S408, taking the next level device dev[j] as the current second device;

[0101] S409, detecting whether the current second device carries a prefix according to the first database; if it is detected that the current second device carries the prefix, executing the following step S410, otherwise, executing step S411;

[0102] S410, generating first relationship information, recording the correspondence between the inbound interface inf[i] and the prefix of the current second device (the next-level device dev[j]); that is, the prefix generates the first relationship information on the inbound interface inf[i], forming one of the table entries in the first verification table;

[0103] S411, according to the first database, detecting whether the current second device has a lower-level device that is bidirectionally reachable and has not been detected, if the judgment result is yes, returning to step S408; if the judgment result is no, executing step S412;

[0104] S412, taking the upper level device as the current second device, and returning to step S411;

[0105] S413, end.

[0106] In the above process, when the upper-level device is taken as the current second device, and the current second device is the first device, and it is determined that the current second device does not have a lower-level device that is bidirectionally reachable and has not been detected, step S413 is executed and the process ends.

[0107] Using the above implementation process, detecting that a second device reachable by the inbound interface of the first device carries a prefix, and / or detecting that a second device reachable by the inbound interface of the first device does not carry a prefix, includes one or more of the following:

[0108] In the case that there is a connected first-level device at the input interface of the first device, recording the input interface of the first device, and taking the first-level device as the current second device, detecting whether the current second device carries a prefix, and / or detecting whether the current second device does not carry a prefix;

[0109] In the case that the current second device is connected to a lower-level device, the lower-level device is used as the current second device, and the current second device is detected to carry a prefix, and / or the current second device is detected to not carry a prefix;

[0110] sequentially taking the next-level devices connected to the current second device as the current second device, detecting whether the current second device carries a prefix, and / or detecting whether the current second device does not carry a prefix;

[0111] In the case that the current second device does not include a connected next-level device, the second device at the previous level of the current second device is determined as the current second device, and the first operation is performed until the first device is used as the current second device, and the current second device does not have an undetected and connected next-level device.

[0112] Optionally, the first operation includes:

[0113] Detecting whether there is an undetected and connected next-level device for the current second device, and / or detecting whether there is an undetected and connected next-level device for the current second device;

[0114] When it is detected that the current second device has an undetected and connected next-level device, the next-level device is used as the current second device, and the current second device is detected to carry a prefix, and / or the current second device is detected to not carry a prefix;

[0115] When it is detected that the current second device does not have an undetected and connected lower-level device, the upper-level second device of the current second device is determined as the current second device. Specifically, the above process can be summarized as the following steps:

[0116] Step 1: Check the remaining neighbor devices dev[i] that have not been detected by the local device (first device). If they exist, record the interface inf[i] connecting the local device and the neighbor device dev[i], and regard the device dev[i] as the current device (the current second device); otherwise, the process ends;

[0117] Step 2: Check whether the current device has a prefix. If so, the prefix generates first relationship information on the interface inf[i].

[0118] Step 3: Check whether there are any remaining bidirectionally reachable neighbor devices of the current device. If so, treat the neighbor device as the current device and proceed to step 2. Otherwise, return to the upper layer device and treat it as the current device again and proceed to step 4.

[0119] Step 4: If the current device is a local device, execute step 1; otherwise, execute step 3.

[0120] Combination Figure 1 As shown, in the source address verification method according to the embodiment of the present invention, the specific implementation process of detecting whether the second device reachable by the input interface of the first device carries a prefix includes the following steps:

[0121] For local device A with source address verification enabled, detect the remaining neighboring devices of device A.

[0122] According to the first database, it is detected that device A has a neighbor device B, that is, A is connected to B, or A and B are bidirectionally reachable, such as AB, and the input interface A1 is recorded, and it is detected that device B does not have a prefix;

[0123] According to the first database, the next-level neighbor device connected to device B is continuously detected, and device BC is detected, that is, device C exists, and prefix P1 exists in device C, and a SAV rule <prefix P1, inbound interface A1> is generated on the local device A;

[0124] According to the first database, it is detected that there is no remaining bidirectionally reachable next-level neighbor device for device C, so it falls back to the upper-layer device B, and the remaining connected device D of device B other than devices A and C, that is, BD, is detected, and the prefix P2 is detected for device D, and a SAV rule <prefix P2, inbound interface A1> is generated on device A;

[0125] Device D has no remaining bidirectionally reachable neighbor devices, so it falls back to the neighbor device at the upper layer.

[0126] Device B no longer has any remaining bidirectionally reachable neighbor devices, so it falls back to the local device A on the upper layer.

[0127] Detect the remaining connected devices E of device A, record the inbound interface A2, repeat the similar process, and generate the rule <prefix P3, inbound interface A2>;

[0128] Until all neighboring devices connected to the local device A are traversed.

[0129] Optionally, the SAV agent of device A generates a complete first verification table, as shown in Table 3 below:

[0130] Table 3

[0131]

[0132] In the same manner as above, a complete first verification table generated by the SAV agent of device B can be obtained, as shown in Table 4 below:

[0133] Table 4

[0134]

[0135] In the same manner as above, a complete first verification table generated by the SAV agent of device C can be obtained, as shown in Table 5 below:

[0136] Table 5

[0137]

[0138] In the embodiment of the present invention, optionally, in the first database, a prefix of at least one of the devices includes a first tag, wherein the first tag is used to indicate an access subnet of the device.

[0139] Optionally, at least two prefixes belonging to the same access subnet include the same first label.

[0140] Using this implementation, for multi-homing access scenarios, prefixes of the same access subnet can be assigned the same first label to indicate that the prefixes belong to the same access subnet. The first label will also be synchronized to the first database for reading and detection by the first device, so that the first device can determine that the prefixes with the same first label belong to the same access subnet based on the read prefixes.

[0141] In this way, prefixes with the same first label are also legal at the other party's legal interface. When the SAV agent detects prefix P, if it finds that the first label carried by prefix P is the same as the first label carried by prefix P' stored in the first verification table, it will also add the legal input interface of prefix P' to prefix P, and add the legal input interface of prefix P to prefix P', and generate the corresponding first relationship information.

[0142] Combination Figure 2 In the network form of the embodiment shown, prefixes P1 and P2 belong to the same access subnet and will be assigned the same first label. Prefix P1 is legal on the inbound interface C1, so P2 is also legal on the inbound interface C1, generating a first relationship information <prefix P1, prefix P2, inbound interface C1>. Prefix P2 is legal on the inbound interface C2, so P1 is also legal on the inbound interface C2, generating a first relationship information <prefix P1, prefix P2, inbound interface C2>.

[0143] According to the above method, combined with Figure 2 As shown, a complete first verification table generated by the SAV agent of device C can be obtained, as shown in the following Table 6:

[0144] Table 6

[0145]

[0146] Similarly, the above method can be used to obtain the complete first verification table generated by the SAV agent of device A and device B, as shown in Table 7 and Table 8 below respectively:

[0147] Table 7

[0148]

[0149] Table 8

[0150]

[0151] In the source address verification method described in the embodiment of the present invention, optionally, the method further includes:

[0152] After the first device acquires the transmitted data stream, the source address of the data stream is verified according to the first verification table.

[0153] By adopting the source address verification method described in the embodiment of the present invention, application scenarios within the autonomous system domain can be realized, including interception of attack traffic at access points within the domain, interception of attack traffic outside the domain, and interception of attack traffic in subnet access scenarios.

[0154] Specifically, application scenario 1: intercepting attack traffic at access points within the domain

[0155] When the lowest-level node in the domain spoofs traffic from other source addresses, the method described in the embodiment of the present invention can be used to intercept traffic from the node at the upper layer. Figure 1 As shown, the connection link from device C to device A is CBA, the connection link from device D to device A is DBA, and the connection link from device F to device A is FEA.

[0156] The reachability information of the above-mentioned connected links can be recorded in the first database. Device B determines, based on the reachability information, that the input interface of prefix P1 of device C, the source of data traffic, is B1, and that the input interface of prefix P2 of device D, the source of data traffic, is B2; device E determines, based on the reachability information, that the input interface of prefix P3 of device F, the source of data traffic, is E1; device A determines, based on the reachability information, that the input interfaces of prefix P1 of device C, the source of data traffic, and prefix P2 of device D are both A1, and that the input interface of prefix P3 of device F is A2.

[0157] The first verification table generated by device A, device B, and device E may be as shown in Tables 3 to 5 above. For the attack traffic with the forged prefix P1 transmitted from the inbound interface of device B2, according to the first verification table generated by device B, prefix P1 does not flow in from the legitimate inbound interface B1, and the attack traffic is intercepted at device B. Therefore, the forged source address attack generated in this domain and going from the outbound egress to other domains will be intercepted in this domain.

[0158] Application scenario 2: Intercepting out-of-domain attack traffic

[0159] By adopting the method described in the embodiment of the present invention, interception protection can be implemented when an attack message with a forged domain source address is received from an out-of-domain egress.

[0160] Combination Figure 1 As shown, for the attack traffic with the forged prefix P1 transmitted at the outbound egress, according to the first verification table generated by device A, the prefix P1 does not flow in from the legal inbound interface A1, and the attack traffic can be intercepted at device A.

[0161] Application scenario three: intercepting attack traffic in subnet access scenario

[0162] By adding the same first label to the prefixes of the same subnet, a legitimate first verification table is generated on the corresponding interfaces of the prefixes with the same first label. By adopting the method described in the embodiment of the present invention, forged attack traffic can be intercepted on the connected device, and the false negative and false positive problems of other source address verification methods in the multi-homing access subnet scenario can be solved through legitimate traffic.

[0163] like Figure 2 As shown, the connection link from device A to device C is ABC, and the connection link from device D to device C is DC. The same first label is assigned to the prefix of the subnet. Device A and device D know the inbound interfaces A1 and D1 of the subnet prefixes P1 and P2 according to the first label of the prefix; device B and device C determine the inbound interfaces C1 and C2 of the subnet prefixes P1 and P2 according to the link reachability information and the first label in the prefix.

[0164] By adopting the method described in the embodiment of the present invention, a first verification table with the structure shown in Tables 6 to 8 is generated according to the reachability information in the above first database and the first label in the prefix. According to the first verification tables generated by device C and device D respectively, the traffic transmitted by prefix P2 will not be erroneously intercepted by the input interface A1 of device A and the input interface C1 of device C.

[0165] Therefore, the source address verification method described in the embodiment of the present invention is adopted. By performing a bidirectional reachability check on the first database, a second device including a prefix is ​​obtained, corresponding first relationship information is established, the correspondence between the prefix of the second device and the input interface is recorded, a first verification table is generated, and the source address verification is performed using the generated first verification table. This can avoid the problem that the source address verification mechanism of the loose uRPF is too loose, resulting in the mistaken passing of source address forgeries from valid network addresses, resulting in false negative problems. In addition, since at least the prefix of the same access subnet includes the same first label, the use of strict uRPF technology may also avoid the problem of mistakenly filtering legitimate traffic and causing false positive problems. Furthermore, since the generation of the first verification table does not need to use the method of sending BGP detection messages to restore the real forwarding path, it can avoid the need to transmit a large number of messages, resulting in large computing overhead and delay problems.

[0166] Therefore, by adopting the source address verification method described in the embodiment of the present invention, a source address verification table can be obtained in a low-overhead and low-latency manner, and accurate verification of the source address can be achieved.

[0167] In the embodiment of the present invention, optionally, the first relationship information includes prefix information of the second device, and the prefix information includes all prefixes corresponding to the second device recorded in the first database.

[0168] In this way, when generating the first verification table, there is no need to extend the IGP protocol, and all prefixes corresponding to the second device recorded in the first database are used to generate the first verification table for source address verification. With this implementation, since there is no need to extend the IGP protocol, the potential risks of modifying the IGP protocol and the problem that old devices cannot support IGP extension can be avoided, ensuring incremental / local deployment.

[0169] In another implementation manner, optionally, the first relationship information includes prefix information of the second device, and the prefix information includes a prefix carrying a first flag bit corresponding to the second device recorded in the first database.

[0170] Optionally, the method further comprises:

[0171] The prefix in the first database is obtained according to the first messages sent by the plurality of devices; wherein the prefix of the first message carries the first flag bit.

[0172] Optionally, the first message is an IGP message. Using this implementation, the IGP protocol is extended and the range and type of the prefix used for source address verification are indicated by the first flag bit carried in the prefix in the first message. For example, the prefix corresponding to intra-regional, inter-regional or external routing can be specified.

[0173] In the embodiment of the present invention, optionally, the first flag bit is recorded in one or more of the following fields of the first message:

[0174] The extension of the IS-IS protocol can reach the TLV field;

[0175] OSPFv2 Extended Prefix TLV field;

[0176] OSPFv3 prefix attribute flag field.

[0177] In one implementation mode, optionally, a new flag bit can be extended in the IPv4 / IPv6 extended reachable TLV field of the IS-IS protocol to be used as the first flag bit. For example, the first flag bit is represented as S-Flag, and when enabled, it indicates that the prefix is ​​used for source address verification of the data plane.

[0178] In one implementation mode, optionally, a new flag bit of the OSPFv2 Extended Prefix TLV field may be defined to be used as the first flag bit, which, when enabled, indicates that the prefix is ​​used for source address verification of the data plane.

[0179] In one implementation mode, optionally, a new indicator bit may be defined in the OSPFv3 prefix attribute flags field to be used as the first flag bit, which, when enabled, indicates that the prefix is ​​used for source address verification of the data plane.

[0180] In another implementation of the embodiment of the present invention, optionally, the method further includes:

[0181] The prefix in the first database configured statically is obtained.

[0182] By adopting this implementation mode, for a device that does not support IGP protocol extension, the prefixes in the first database can be configured by static configuration.

[0183] Optionally, the configured prefix may be a specified prefix among the prefixes of the device.

[0184] Combination Figure 5As shown, the verification information generation method described in the embodiment of the present invention is adopted, wherein in one implementation mode, the IGP protocol is extended, and the prefix in the first message transmitted carries the first flag bit to obtain the first database; or, in another implementation mode, the IGP protocol is not extended, and the first database is obtained through static configuration; or, in another implementation mode, for a device that does not support the IGP protocol, part of the data of the first database is obtained through static configuration; for a device that supports the IGP protocol, the IGP protocol is extended, and the prefix of the device carries the first flag bit to obtain part of the data of the first database, and the two parts of data are combined to form the first database.

[0185] Based on any of the above implementations, after obtaining the first database, the second device reachable by the input interface of the first device is detected according to the reachability information and prefix in the first database, and it is determined whether the detected second device carries the prefix. When it is determined according to the first database that the second device carries the prefix, the first relationship information is recorded in the first verification table to generate a first verification table.

[0186] The source address verification method described in the embodiment of the present invention may optionally further include:

[0187] The prefix in the first database is obtained according to the second messages sent by the plurality of devices; wherein the prefix of the second message carries the first label.

[0188] According to the above, specifically, the first tag is used to indicate the access subnet of the device.

[0189] In one embodiment, optionally, the first label is indicated by a routing identifier or an administrative identifier in the prefix. In one embodiment, the first label is indicated by a routing identifier in the prefix, such as an OSPFv2 routing identifier Route tag, or an OSPFv3 Route tag. In one embodiment, the first label is indicated by an administrative identifier, such as an Administrative Tag sub-TLV of an IS-IS TLV, and the IS-IS TLV may include one or more of TLV135, TLV 235, TLV 236, and TLV 237.

[0190] With this implementation, the first label can be indicated by an existing label in the IGP protocol to reduce changes to the IGP protocol, and can be applicable to a solution that does not extend the IGP protocol.

[0191] In another implementation manner, optionally, the first label is recorded in one or more of the following fields of the second message:

[0192] The extension of the IS-IS protocol can reach the sub-TLV field of the TLV field;

[0193] Sub-TLV field of the OSPFv2 extended prefix TLV field;

[0194] Sub-TLV field of the OSPFv3 TLV field.

[0195] Optionally, in one embodiment, the first label is recorded in the sub-TLV field of the extended reachable TLV field of the IS-IS protocol, that is, in this embodiment, the first label is defined by the sub-TLV field of the extended reachable TLV field of the IS-IS protocol. For example, the first label is called a SAVNET access interface tag. Optionally, the sub-TLV field is applicable to TLV135, TLV235, TLV236 and TLV237, etc., and the format can be as follows: Figure 6 shown.

[0196] The type of the sub-TLV field may be TBD, and the length may be 4 octets.

[0197] In another implementation, optionally, the first label is recorded in the sub-TLV field of the OSPFv2 extended prefix TLV field, that is, in this implementation, the first label is defined by the sub-TLV of the OSPFv2 Extended Prefix TLV, and the sub-TLV can only appear once in the parent TLV field, such as Figure 7 As shown, the type of the sub-TLV field may be TBD, and the length may be 4 octets.

[0198] In another embodiment, optionally, the first label is recorded in the sub-TLV field of the OSPFv3 TLV field, that is, in this embodiment, the first label adopts the SAVNET access interface tag sub-TLV definition as a sub-TLV of an OSPFv3 TLVs (intra-domain prefix TLV, inter-domain prefix TLV or external prefix TLV), and the sub-TLV can only appear once in the parent TLV field, and the format can also be as follows: Figure 7 As shown, the type of the sub-TLV field may be TBD, and the length may be 4 octets.

[0199] The source address verification method described in the embodiment of the present invention can achieve accurate protection for more scenarios such as asymmetric routing, multi-homing asymmetric access of users within the domain, etc., compared with the loose uRPF and strict uRPF technologies in the prior art, and solve the false negative and false positive problems caused by the uRPF solution; in addition, the generation method of the first verification table does not require continuous manual operation and maintenance investment, can achieve adaptive protection and application in large-scale networks, and can save additional message overhead and complex path calculation overhead, thereby achieving the effect of reducing latency and ensuring incremental / local deployment.

[0200] One embodiment of the present invention further provides a source address verification device, which is applied to a first device, such as Figure 8 As shown, the device comprises:

[0201] The detection module 810 is used to detect, according to a first database, whether a second device that is reachable by an inbound interface of the first device carries a prefix, and / or whether a second device that is reachable by an inbound interface of the first device does not carry a prefix; wherein the first database records reachability information between multiple devices and prefixes carried by multiple devices; the first device and the second device are respectively one of the multiple devices;

[0202] The recording module 820 is used to record first relationship information in a first verification table when it is detected according to the first database that the second device carries a prefix; the first relationship information records the correspondence between the prefix of the second device and the input interface.

[0203] Optionally, in the source address verification apparatus, the second device comprises a device connected to an input interface of the first device and located at a different connectivity level.

[0204] Optionally, in the source address verification device, the detection module 810 is further configured to:

[0205] Detecting whether a source address verification function is enabled on the first device, and / or detecting whether the source address verification function is not enabled on the first device;

[0206] The detection module 810 detects that a second device that is reachable through the inbound interface of the first device carries a prefix, and / or detects that a second device that is reachable through the inbound interface of the first device does not carry a prefix, including:

[0207] When it is detected that the source address verification function is enabled on the first device, a second device reachable through the input interface of the first device is detected to carry a prefix, and / or a second device reachable through the input interface of the first device is detected to not carry a prefix.

[0208] Optionally, in the source address verification device, the first relationship information includes prefix information of the second device, and the prefix information includes all prefixes corresponding to the second device recorded in the first database.

[0209] Optionally, in the source address verification device, the first relationship information includes prefix information of the second device, and the prefix information includes the prefix carrying the first flag bit corresponding to the second device recorded in the first database.

[0210] Optionally, in the source address verification device, the detection module 810 is further configured to:

[0211] The prefix in the first database is obtained according to the first messages sent by the plurality of devices; wherein the prefix of the first message carries the first flag bit.

[0212] Optionally, in the source address verification device, the first flag bit is recorded in one or more of the following fields of the first message:

[0213] The extension of the IS-IS protocol can reach the TLV field;

[0214] OSPFv2 Extended Prefix TLV field;

[0215] OSPFv3 prefix attribute flag field.

[0216] Optionally, in the source address verification device, the detection module 810 is further configured to:

[0217] The prefix in the first database configured statically is obtained.

[0218] Optionally, in the source address verification device, in the first database, the prefix includes a first label, wherein the first label is used to indicate an access subnet of the device.

[0219] Optionally, in the source address verification device, in the first database, at least two prefixes belonging to the same access subnet include the same first label.

[0220] Optionally, in the source address verification device, the detection module 810 is further configured to:

[0221] The prefix in the first database is obtained according to the second messages sent by the plurality of devices; wherein the prefix of the second message carries the first label.

[0222] Optionally, in the source address verification device, the first label is indicated by a routing identifier or a management identifier in the prefix.

[0223] Optionally, in the source address verification device, the first label is recorded in one or more of the following fields of the second message:

[0224] The extension of the IS-IS protocol can reach the sub-TLV field of the TLV field;

[0225] Sub-TLV field of the OSPFv2 extended prefix TLV field;

[0226] Sub-TLV field of the OSPFv3 TLV field.

[0227] Optionally, the source address verification device, wherein the detection module 810 detects that a second device reachable by the inbound interface of the first device carries a prefix, and / or detects that a second device reachable by the inbound interface of the first device does not carry a prefix, includes one or more of the following:

[0228] In the case that there is a connected first-level device at the input interface of the first device, recording the input interface of the first device, and taking the first-level device as the current second device, detecting whether the current second device carries a prefix, and / or detecting whether the current second device does not carry a prefix;

[0229] In the case that the current second device is connected to a lower-level device, the lower-level device is used as the current second device, and the current second device is detected to carry a prefix, and / or the current second device is detected to not carry a prefix;

[0230] sequentially taking the next-level devices connected to the current second device as the current second device, detecting whether the current second device carries a prefix, and / or detecting whether the current second device does not carry a prefix;

[0231] In the case that the current second device does not include a connected next-level device, the second device at the previous level of the current second device is determined as the current second device, and the first operation is performed until the first device is used as the current second device, and the current second device does not have an undetected and connected next-level device.

[0232] Optionally, in the source address verification device, the first operation includes:

[0233] Detecting whether there is an undetected and connected next-level device for the current second device, and / or detecting whether there is an undetected and connected next-level device for the current second device;

[0234] When it is detected that the current second device has an undetected and connected next-level device, the next-level device is used as the current second device, and the current second device is detected to carry a prefix, and / or the current second device is detected to not carry a prefix;

[0235] When it is detected that there is no undetected and connected lower-level device for the current second device, the upper-level second device of the current second device is determined as the current second device.

[0236] Optionally, the source address verification device further comprises a verification module 830, which is used to:

[0237] After the first device acquires the transmitted data stream, the source address of the data stream is verified according to the first verification table.

[0238] One embodiment of the present invention further provides a network device, which includes a processor, a memory, and a program stored in the memory and executable on the processor, wherein the program implements the source address verification method as described in any one of the above items when executed by the processor.

[0239] Among them, the specific implementation method of executing the source address verification method by the program running on the processor of the network device can refer to the detailed description when the source address verification method is applied to the first device, and will not be repeated here.

[0240] In addition, a specific embodiment of the present invention further provides a readable storage medium having a computer program stored thereon, wherein when the program is executed by a processor, the steps in the source address verification method described in any one of the above items are implemented.

[0241] Specifically, the readable storage medium is applied to the first device mentioned above. When applied to the first device, the execution steps in the corresponding source address verification method are as described in detail above and will not be repeated here.

[0242] In the several embodiments provided in the present application, it should be understood that the disclosed methods and devices can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0243] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may be physically included separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of hardware plus software functional units.

[0244] The above-mentioned integrated unit implemented in the form of a software functional unit can be stored in a computer-readable storage medium. The above-mentioned software functional unit is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform some steps of the sending and receiving methods described in various embodiments of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, referred to as ROM), random access memory (Random Access Memory, referred to as RAM), disk or optical disk and other media that can store program codes.

[0245] The above is a preferred embodiment of the present invention. It should be pointed out that for ordinary personnel in this technical field, several improvements and modifications can be made without departing from the principles of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.

Claims

1. A source address verification method, It is characterized in that Executed by a first device, the method includes: According to the first database, a second device that is reachable by the input interface of the first device and carries a prefix is ​​detected, and / or a second device that is reachable by the input interface of the first device and does not carry a prefix is ​​detected; wherein the first database records the reachability information between multiple devices and the prefixes of multiple devices; the first device and the second device are respectively one of the multiple devices; When it is detected according to the first database that the second device carries a prefix, first relationship information is recorded in the first verification table; the first relationship information records the correspondence between the prefix of the second device and the input interface.

2. The source address verification method according to claim 1, It is characterized in that The second device includes a device that is connected to the input interface of the first device and is located at a different connection level.

3. The source address verification method according to claim 1, It is characterized in that The method further comprises: Detecting whether a source address verification function is enabled on the first device, and / or detecting whether the source address verification function is not enabled on the first device; Among them, according to the first database, detecting that a second device that is reachable by the inbound interface of the first device carries a prefix, and / or detecting that a second device that is reachable by the inbound interface of the first device does not carry a prefix, includes: When it is detected that the source address verification function is enabled on the first device, a second device reachable through the input interface of the first device is detected to carry a prefix, and / or a second device reachable through the input interface of the first device is detected to not carry a prefix.

4. The source address verification method according to claim 1, It is characterized in that The first relationship information includes prefix information of the second device, and the prefix information includes all prefixes corresponding to the second device recorded in the first database.

5. The source address verification method according to claim 1, It is characterized in that The first relationship information includes prefix information of the second device, and the prefix information includes a prefix carrying a first flag bit corresponding to the second device and recorded in the first database.

6. The source address verification method according to claim 5, It is characterized in that The method further comprises: The prefix in the first database is obtained according to the first messages sent by the plurality of devices; wherein the prefix of the first message carries the first flag bit.

7. The source address verification method according to claim 6, It is characterized in that The first flag bit is recorded in one or more of the following fields of the first message: The extension of the IS-IS protocol can reach the TLV field; OSPFv2 Extended Prefix TLV field; OSPFv3 prefix attribute flag field.

8. The source address verification method according to claim 1, It is characterized in that The method further comprises: The prefix in the first database configured statically is obtained.

9. The source address verification method according to claim 1, It is characterized in that In the first database, the prefix includes a first tag, wherein the first tag is used to indicate an access subnet of the device.

10. The source address verification method according to claim 9, It is characterized in that In the first database, at least two prefixes belonging to the same access subnet include the same first label.

11. The source address verification method according to claim 9, It is characterized in that The method further comprises: The prefix in the first database is obtained according to the second messages sent by the plurality of devices; wherein the prefix of the second message carries the first label.

12. The source address verification method according to claim 11, It is characterized in that The first label is indicated by a routing identifier or a management identifier in the prefix.

13. The source address verification method according to claim 11, It is characterized in that The first label is recorded in one or more of the following fields of the second message: The extension of the IS-IS protocol can reach the sub-TLV field of the TLV field; Sub-TLV field of the OSPFv2 extended prefix TLV field; Sub-TLV field of the OSPFv3 TLV field.

14. The source address verification method according to claim 1 or 2, It is characterized in that The detecting that a second device that is reachable through the inbound interface of the first device carries a prefix, and / or the detecting that a second device that is reachable through the inbound interface of the first device does not carry a prefix, includes one or more of the following: In the case that there is a connected first-level device at the input interface of the first device, recording the input interface of the first device, and taking the first-level device as the current second device, detecting whether the current second device carries a prefix, and / or detecting whether the current second device does not carry a prefix; In the case that the current second device is connected to a lower-level device, the lower-level device is used as the current second device, and the current second device is detected to carry a prefix, and / or the current second device is detected to not carry a prefix; sequentially taking the next-level devices connected to the current second device as the current second device, detecting whether the current second device carries a prefix, and / or detecting whether the current second device does not carry a prefix; In the case that the current second device does not include a connected next-level device, the second device at the previous level of the current second device is determined as the current second device, and the first operation is performed until the first device is used as the current second device, and the current second device does not have an undetected and connected next-level device.

15. The source address verification method according to claim 14, It is characterized in that The first operation includes: Detecting whether there is an undetected and connected next-level device for the current second device, and / or detecting whether there is an undetected and connected next-level device for the current second device; When it is detected that the current second device has an undetected and connected next-level device, the next-level device is used as the current second device, and the current second device is detected to carry a prefix, and / or the current second device is detected to not carry a prefix; When it is detected that there is no undetected and connected lower-level device for the current second device, the upper-level second device of the current second device is determined as the current second device.

16. The source address verification method according to claim 1, It is characterized in that The method further comprises: After the first device acquires the transmitted data stream, the source address of the data stream is verified according to the first verification table.

17. A source address verification device, It is characterized in that Applied to a first device, the apparatus comprises: A detection module, configured to detect, according to a first database, whether a second device that is reachable through an inbound interface of the first device carries a prefix, and / or whether a second device that is reachable through an inbound interface of the first device does not carry a prefix; wherein the first database records reachability information between a plurality of devices and prefixes carried by the plurality of devices; and the first device and the second device are respectively one of the plurality of devices; A recording module is used to record first relationship information in a first verification table when it is detected according to the first database that the second device carries a prefix; the first relationship information records the correspondence between the prefix of the second device and the input interface.

18. A network device, It is characterized in that It includes a processor, a memory, and a program stored in the memory and executable on the processor, wherein when the program is executed by the processor, the source address verification method according to any one of claims 1 to 16 is implemented.

19. A readable storage medium, It is characterized in that The readable storage medium stores a program, and when the program is executed by the processor, the steps in the source address verification method according to any one of claims 1 to 16 are implemented.

Citation Information

Cited By

  • Event-driven OSPFv3 protocol real source prefix learning method and system

    CN119697081A

  • Source address validation method and apparatus, and network device

    WO2025103384A1