Data structure associated with interface of network device

By using data structures associated with specific IP addresses in network devices to control business forwarding, the problem of authorized access control for services provided by server devices is solved, automated and efficient resource management is achieved, and unauthorized access and manual configuration are reduced. mistake.

CN118740800APending Publication Date: 2024-10-01HEWLETT PACKARD ENTERPRISE DEV LP
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310620752.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Priority Date
2023-03-28
Filing Date
2023-05-30
Publication Date
2024-10-01

Smart Images

  • Figure CN118740800A_ABST
    Figure CN118740800A_ABST
Patent Text Reader

Abstract

Embodiments of the present disclosure relate to a data structure associated with an interface of a network device. In some implementations, a network device may receive traffic via an interface of the network device. A network device may determine an Internet Protocol (IP) address of traffic. The network device may identify an interface of the network device based on determining the IP address of the traffic. The network device may identify a data structure associated with the interface. The network device may determine whether an entry in the data structure is associated with an IP address. The network device may selectively forward traffic based on a determination that an entry in the data structure is associated with the IP address, or block forwarding traffic based on a determination that no entry in the data structure is associated with the IP address.
Need to check novelty before this filing date? Find Prior Art

Description

Background Art

[0001] The server device can provide services (e.g., cloud services) to endpoint devices (e.g., endpoint devices subscribing to services) via network devices (e.g., router devices). Each service can be associated with a specific destination address of the server device, such as a specific Internet Protocol (IP) address. Summary of the invention

[0002] In some implementations, a method includes: receiving, by a network device, a service via an interface of the network device; determining, by the network device, an IP address of the service; identifying, by the network device and based on determining the IP address of the service, the interface of the network device; identifying, by the network device, a data structure associated with the interface; determining, by the network device, whether an entry in the data structure is associated with the IP address; and selectively: forwarding, by the network device, the service based on determining that the entry in the data structure is associated with the IP address, or preventing the network device from forwarding the service based on determining that no entry in the data structure is associated with the IP address.

[0003] In some implementations, a network device includes one or more memories; and one or more processors for: determining an IP address of a service received via an interface of the network device; identifying a data structure associated with the interface based on determining the IP address of the service; determining whether an entry in the data structure is associated with the IP address; and selectively: forwarding the service based on determining that the entry in the data structure is associated with the IP address, or preventing forwarding of the service based on determining that no entry in the data structure is associated with the IP address.

[0004] In some implementations, a non-transitory computer-readable medium storing a set of instructions includes one or more instructions that, when executed by one or more processors of a network device, cause the network device to: receive a notification associated with a specific IP address; determine that the network device will forward the notification to another device via an interface of the network device; based on determining that the network device will forward the notification to another device via the interface, identify a data structure associated with the interface; and, based on the notification, cause the data structure to include a specific entry associated with the specific IP address.

[0005] One aspect of the present disclosure relates to a method, comprising: receiving a service by a network device via an interface of the network device; determining, by the network device, an Internet Protocol (IP) address of the service; identifying, by the network device, the interface of the network device based on determining the IP address of the service; identifying, by the network device, a data structure associated with the interface; determining, by the network device, whether an entry in the data structure is associated with the IP address; and, selectively: forwarding the service by the network device based on determining that an entry in the data structure is associated with the IP address, or preventing forwarding of the service by the network device based on determining that no entry in the data structure is associated with the IP address.

[0006] According to one or more embodiments of the present disclosure, wherein the network device includes another data structure that is not associated with the interface of the network device, the method further includes: receiving other services via another interface of the network device; determining another IP address of the other services; identifying the other interface of the network device based on determining the other IP address of the other services; determining that the other interface is not associated with the data structure; determining whether the other data structure includes an entry associated with the other IP address based on determining that the other interface is not associated with the data structure; and selectively: forwarding the other services based on determining that the other data structure includes an entry associated with the other IP address, or preventing forwarding of the other services based on determining that the other data structure does not include any entry associated with the other IP address.

[0007] According to one or more embodiments of the present disclosure, wherein the network device includes another data structure associated with another interface of the network device and not associated with the interface of the network device, the method further includes: receiving other services via the another interface of the network device; determining another IP address of the other services; identifying the another interface of the network device based on determining the another IP address of the other services; identifying the another data structure associated with the other interface; determining whether an entry in the another data structure is associated with the another IP address; and selectively: forwarding the other services based on determining that the entry in the another data structure is associated with the another IP address, or preventing forwarding of the other services based on determining that no entry in the another data structure is associated with the other IP address.

[0008] According to one or more embodiments of the present disclosure, it also includes: before receiving the service, receiving a notification associated with the IP address; determining that the network device will forward the notification to another device via the interface; based on determining that the network device will forward the notification to the other device via the interface, identifying the data structure associated with the interface; and based on the notification, causing the data structure to include the entry associated with the IP address.

[0009] According to one or more embodiments of the present disclosure, the IP address is associated with a service of the server device.

[0010] According to one or more embodiments of the present disclosure, the IP address is a unicast IP address or an anycast IP address.

[0011] According to one or more embodiments of the present disclosure, the data structure is associated with the interface and one or more other interfaces of the network device, and the data structure is a forwarding context for a corresponding service received from other devices via the interface and the one or more other interfaces.

[0012] Another aspect of the present disclosure relates to a network device, comprising: one or more memories; and one or more processors, for: determining an Internet Protocol IP address of a service received via an interface of the network device; identifying a data structure associated with the interface based on determining the IP address of the service; determining whether an entry in the data structure is associated with the IP address; and selectively: forwarding the service based on determining that the entry in the data structure is associated with the IP address, or preventing forwarding of the service based on determining that no entry in the data structure is associated with the IP address.

[0013] According to one or more embodiments of the present disclosure, the network device includes another data structure that is not associated with the interface, and the other data structure is used by the network device to facilitate forwarding of traffic received via another interface of the network device.

[0014] According to one or more embodiments of the present disclosure, wherein the network device includes another data structure that is not associated with the interface of the network device, the one or more processors are further used to: determine another IP address of other services received via another interface of the network device; determine that the other interface is not associated with the data structure based on determining the other IP address of the other services; determine whether the other data structure includes an entry associated with the other IP address based on determining that the other interface is not associated with the data structure; and selectively: forward the other services based on determining that the data structure includes an entry associated with the other IP address, or prevent forwarding the other services based on determining that the data structure does not include any entry associated with the other IP address.

[0015] According to one or more embodiments of the present disclosure, the one or more processors are also used to: receive other services via the other interface of the network device; determine another IP address of the other services received via the other interface of the network device; identify another data structure associated with the other interface based on determining the other IP address of the other services; determine whether an entry in the other data structure is associated with the other IP address; and selectively: forward the other services based on determining that the entry in the other data structure is associated with the other IP address, or prevent forwarding the other services based on determining that no entry in the other data structure is associated with the other IP address.

[0016] According to one or more embodiments of the present disclosure: the data structure is not associated with the other interface; and the other data structure is not associated with the interface.

[0017] According to one or more embodiments of the present disclosure, the one or more processors are also used to: identify a data structure associated with the interface based on a notification associated with the IP address to be forwarded to another device via the interface before receiving the service; and based on the notification, cause the data structure to include the entry associated with the IP address.

[0018] According to one or more embodiments of the present disclosure, the IP address is associated with a service.

[0019] According to one or more embodiments of the present disclosure, the IP address is a unicast IP address or an anycast IP address.

[0020] Yet another aspect of the present disclosure provides a non-transitory computer-readable medium storing an instruction set, the instruction set comprising: one or more instructions, which, when executed by one or more processors of a network device, cause the network device to: receive a notification associated with a specific Internet Protocol (IP) address; determine that the network device is to forward the notification to another device via an interface of the network device; identify a data structure associated with the interface based on determining that the network device is to forward the notification to the other device via the interface; and, based on the notification, cause the data structure to include a specific entry associated with the specific IP address.

[0021] According to one or more embodiments of the present disclosure, the one or more instructions further cause the network device to: after causing the data structure to include the specific entry associated with the specific IP address, receive a service via the interface of the network device; determine the IP address of the service; based on determining the IP address of the service, identify that the service is received via the interface of the network device; based on identifying that the service is received via the interface of the network device, identify the data structure associated with the interface; determine whether an entry in the data structure is associated with the IP address; and selectively: forward the service based on determining that the entry in the data structure is associated with the IP address, or prevent forwarding the service based on determining that no entry in the data structure is associated with the IP address.

[0022] According to one or more embodiments of the present disclosure, the one or more instructions further cause the network device to: after causing the data structure to include the specific entry associated with the specific IP address, receive other services via another interface of the network device; determine the IP address of the service; based on determining the IP address of the service, identify that the service is received via the other interface of the network device; determine that the other interface is not associated with the data structure; based on determining that the other interface is not associated with the data structure, determine whether another data structure includes an entry associated with the IP address; and selectively: forward the service based on determining that the other data structure includes an entry associated with the IP address, or prevent forwarding the other service based on determining that the other data structure does not include any entry associated with the IP address.

[0023] According to one or more embodiments of the present disclosure, the one or more instructions further cause the network device to: after causing the data structure to include the specific entry associated with the specific IP address, receive other services via another interface of the network device; determine the IP address of the service; based on determining the IP address of the service, identify that the service is received via the other interface of the network device; identify another data structure associated with the other interface; determine whether an entry in the other data structure is associated with the IP address; and selectively: forward the service based on determining that the entry in the other data structure is associated with the IP address, or prevent forwarding the service based on determining that no entry in the other data structure is associated with the IP address.

[0024] According to one or more embodiments of the present disclosure, the specific IP address is a unicast IP address or an anycast IP address. BRIEF DESCRIPTION OF THE DRAWINGS

[0025] Figure 1A-1E is an illustration of one or more example implementations described herein.

[0026] Figure 2 is an illustration of an example environment in which the systems and / or methods described herein may be implemented.

[0027] Figure 3 is an illustration of example components of a device associated with some implementations described herein.

[0028] Figure 4 is an illustration of example components of a device associated with some implementations described herein.

[0029] Figure 5-6 is a flow diagram of an example process associated with using a data structure associated with an interface to facilitate forwarding of traffic received via an interface of a network device. DETAILED DESCRIPTION

[0030] The following detailed description of example implementations refers to the accompanying drawings.The same reference numbers in different drawings may identify the same or similar elements.

[0031] As described above, a server device may provide services to an endpoint device that subscribes to a service via a network device. Typically, the server device provides a destination address (e.g., a destination IP address) for each service provided by the server device. Therefore, a first destination address of the server device associated with a service to which the endpoint device subscribes is provided to the endpoint device (e.g., via a communication protocol, such as via an external border gateway protocol (eBGP)), while a second destination address of the server device associated with a service to which the endpoint device does not subscribe is not provided to it. Therefore, the endpoint device may send a packet to the first destination address via the network device to obtain the service to which the endpoint device subscribes from the server device. However, in some cases, the endpoint device may be configured (e.g., manually configured) to access a second destination address for a service, and may therefore send a packet to the second destination address via the network device to obtain the service to which the endpoint device does not subscribe from the server device.

[0032] This may result in unauthorized use of services by the endpoint device, and thus may cause the server device, network device, and endpoint device to waste computing resources (e.g., processing resources, memory resources, communication resources, and / or power resources, etc.) to provide unauthorized services to the endpoint device. Furthermore, in some cases, the endpoint device is able to access services to which the endpoint device is not subscribed by paying only for the services to which the endpoint device is subscribed, which results in monetary losses for the organization associated with the services provided by the server device.

[0033] In some cases, a firewall or other filter of a network device may be configured to control traffic to and from each destination address associated with a server device. However, such configuration is typically a manual process that is cumbersome, time-consuming, and prone to errors and delays, especially when there are a large number of endpoint devices with different service subscription profiles. This is impractical at scale (e.g., when there are hundreds, thousands, or more endpoint devices). Furthermore, each time the service subscription profile of an endpoint device changes, the firewall or other filter needs to be manually updated, which increases the potential for more errors and delays.

[0034] Some implementations described herein provide a network device that provides service filtering based on an IP address of a service and an interface of the network device via which the service is received (e.g., from an endpoint device). The network device may include a data structure associated with the interface (e.g., a forwarding table or a similar data structure), and the network device may use the data structure to determine whether to forward or not forward services received via the interface. For example, the data structure may include multiple entries, wherein the entry indicates an IP address (or a prefix of an IP address) (e.g., associated with a service such as provided by a server device) and a forwarding action (e.g., forward or not forward) for services associated with the IP address. In some implementations, the data structure may be associated with a specific interface of the network device (e.g., a subset of the interfaces of the network device), such as an interface associated with an endpoint device that subscribes to a specific service. Therefore, the data structure may have an entry associated with an IP address of a specific service, and the network device may use the data structure to determine whether to forward services received from a specific endpoint device via a specific interface. In this way, the data structure only needs to include entries associated with a specific service (e.g., an IP address associated with a specific service), without including entries associated with other services or other networked applications.

[0035] In this way, the network device facilitates authorized access to services provided by the server device and reduces the likelihood of unauthorized access to services provided by the server device. For example, a data structure associated with a service can be used to facilitate access only to endpoint devices that have authorized access to the service, and any endpoint device that is not associated with an interface of the network device associated with the service cannot forward its traffic to request the service. This reduces the use of unauthorized services by endpoint devices, and thus reduces the waste of computing resources (e.g., processing resources, memory resources, communication resources, and / or power resources, etc.) by server devices, network devices, and endpoint devices providing unauthorized services to endpoint devices.

[0036] Furthermore, because each data structure can be used to facilitate access to a corresponding service set, rather than to a general data structure (e.g., a general forwarding table), each data structure can have a reduced number of entries (e.g., compared to the general data structure). This reduces the amount of computing resources that the network device needs to use (e.g., searching the data structure and finding the relevant entry) to make forwarding determinations for traffic associated with the service set.

[0037] Furthermore, in some implementations, the server device provides to the network device advertisements associated with destination addresses associated with services provided by the server device. The network device uses the advertisements to automatically update entries in associated data structures, thereby eliminating the need to manually configure firewalls or other filters. Thus, errors and delays associated with configuring and updating data structures are minimized compared to using manually configurable firewalls.

[0038] Figure 1A-1E is an illustration of one or more example implementations 100 described herein. Figure 1A-1E As shown, (multiple) example implementations 100 may include a server device, a network device, and a plurality of endpoint devices. Figure 2-4 The server device, network device, and multiple endpoint devices are described in more detail.

[0039] Figure 1A An example configuration of a server device, a network device, and multiple endpoint devices is shown. In some implementations, the network device may include multiple data structures. For example, Figure 1A As shown, the network device may include a general data structure, a first data structure, a second data structure, etc. Each data structure may be a forwarding data structure (e.g., a forwarding information base (FIB), a forwarding table, a forwarding context, and / or a similar data structure). That is, each data structure may include one or more entries, wherein the entry indicates a forwarding action for a service associated with an IP address (or IP address prefix) received by the network device. For example, an entry may indicate that the service associated with the IP address will be forwarded (e.g., to the next hop), or alternatively, will not be forwarded (e.g., discarded or otherwise prevented from being forwarded).

[0040] Each data structure can be associated with one or more interfaces of a network device. For example, a general data structure can be associated with one or more general interfaces of a network device, a first data structure can be associated with one or more first interfaces of a network device, a second data structure can be associated with one or more second interfaces of a network device, and so on. The data structure associated with an interface indicates that the network device uses the data structure to check the service (e.g., IP service) received by the network device via the interface (e.g., to facilitate the forwarding of the service or prevent the forwarding of the service). The general data structure can be a "default" or "general" data structure and therefore cannot be explicitly associated with any one interface. For example, a general data structure can be associated with one or more general interfaces because the one or more general interfaces are not associated with any other data structure (e.g., any of the first data structure, the second data structure, etc.).

[0041] like Figure 1AAs shown, each set of one or more interfaces of a network device can be associated with one or more endpoint devices of a plurality of endpoint devices (e.g., by connecting the network device to the one or more endpoint devices, respectively). For example, one or more general interfaces of a network device can be associated with one or more endpoint devices A, one or more first interfaces of a network device can be associated with one or more endpoint devices B, one or more second interfaces of a network device can be associated with one or more endpoint devices C, and so on. Therefore, each data structure of a network device can be associated with one or more endpoint devices, one or more endpoint devices can be associated with one or more interfaces, and one or more interfaces can be associated with the data structure. For example, a general data structure can be associated with one or more endpoint devices A, a first data structure can be associated with one or more endpoint devices B, a second data structure can be associated with one or more endpoint devices C, and so on. Therefore, the network device can use the general data structure to check traffic received from one or more endpoint devices A via one or more general interfaces, can use the first data structure to check traffic received from one or more endpoint devices B via one or more first interfaces, can use the second data structure to check traffic received from one or more endpoint devices C via one or more second interfaces, and so on. In this way, a network device can use a specific data structure to check traffic from a specific endpoint device based on the interface on which the network device receives traffic, as further described herein.

[0042] The server device may provide one or more services, such as one or more cloud application services. Each service may be associated with an IP address (e.g., a unicast IP address or an anycast IP address), such as an IP version 4 (IPv4) address or an IP version 6 (IPv6) address, which is associated with the server device. Thus, as further described herein, an endpoint device may send traffic to an IP address associated with a server device via a network device to request that the server device provide the service associated with the IP address to the endpoint device.

[0043] like Figure 1BAs shown, and by reference numeral 102, a network device may receive an advertisement. For example, a server device may generate and provide an advertisement to a network device (e.g., to an interface of the network device that is not associated with an endpoint device), and the network device may receive the advertisement (e.g., via the interface of the network device). This is also referred to as an "advertisement" advertisement (e.g., in accordance with a protocol such as the Border Gateway Protocol (BGP) or the Interior Gateway Protocol (IGP)). The advertisement may be associated with an IP address (e.g., an IPv4 address or an IPv6 address), such as an IP address of a service provided by the server device (e.g., a unicast IP address or an anycast IP address). For example, the advertisement may include a route indicating an IP address (or a prefix of an IP address) of a service provided by the server device.

[0044] As indicated at reference numeral 104, the network device may determine that the network device is to forward the advertisement (e.g., to at least one endpoint device). The network device may determine (e.g., based on a protocol such as BGP or IGP) that the network device is to forward the advertisement to the endpoint device via an interface of the network device (e.g., to a "peer" device connected to the network device via an interface of the network device). For example, referring to Figure 1B , the network device may determine that the network device will forward the advertisement to a specific endpoint device B of the one or more endpoint devices B via a first interface of the one or more first interfaces.

[0045] As indicated at reference numeral 106, the network device may identify a data structure associated with an interface of the network device (e.g., based on determining that the network device will forward the advertisement to the endpoint device via the interface of the network device). Figure 1B , the network device can identify the first data structure (eg, because the first data structure is associated with the first interface).

[0046] Therefore, as shown at 108, the network device may cause the data structure to include an entry associated with the IP address. Figure 1B , the network device may make an entry including at least some of the information included in the announcement. The entry may indicate, for example, that traffic associated with the IP address (or a prefix of the IP address) will be forwarded (eg, to a next hop, such as a server device).

[0047] As shown at reference numeral 110, the network device may forward the advertisement to the endpoint device, for example, via an interface of the network device. Figure 1B , the network device can forward the announcement to endpoint device B via the first interface.

[0048] although Figure 1BOne or more examples are directed to a network device associated with updating a first data structure to include an entry associated with an IP address, but additional examples are also contemplated. For example, the network device may determine that the network device will forward a notification to endpoint device C of one or more endpoint devices C via a second interface of one or more second interfaces, and thereby may identify a second data structure (e.g., which is associated with the second interface) and cause the second data structure to include an entry associated with the IP address. As a different example, the network device may determine that the network device will forward a notification to endpoint device A of one or more endpoint devices A via a general interface of one or more general interfaces, and thereby may identify a general data structure (e.g., which is associated with the general interface) and cause the general data structure to include an entry associated with the IP address.

[0049] like Figure 1C As shown, and by reference numeral 112, the network device can receive traffic via an interface of the network device. Figure 1C , an endpoint device B of one or more network devices B may provide a service to the network device, and the network device may receive the service via a first interface of one or more first interfaces of the network device. The service may include an IP address (e.g., an IPv4 address or an IPv6 address), such as an IP address (e.g., a unicast IP address or an anycast IP address) of a service provided by a server device (e.g., as a destination of the service), for example in one or more headers of the service. Thus, the endpoint device B may send the service to request the service provided by the server device.

[0050] As shown at reference numeral 114, the network device may determine the IP address of the service. For example, the network device may process (e.g., parse and / or read) the service to determine the IP address of the service. Figure 1C , the network device can determine the IP address of the service received by the network device from the endpoint device B via the first interface.

[0051] As shown at reference numeral 116, the network device may identify (e.g., based on determining the IP address of the traffic) the interface via which the network device receives the traffic. That is, the network device may identify the interface based on determining that the traffic includes an IP address (and the network device is therefore able to process the traffic to determine the IP address). For example, referring to Figure 1C , the network device may identify a first interface of the one or more first interfaces as an interface via which the network device receives traffic from endpoint device B (eg, based on determining an IP address of the traffic).

[0052] As shown at reference numeral 118, the network device may identify a data structure associated with the interface (eg, based on the interface identified by the network device). Figure 1C , the network device can identify the first data structure because the first data structure is associated with the first interface (eg, the network device identifies the first interface as the interface via which the network device receives traffic from endpoint device B).

[0053] As shown at 120, the network device may determine whether an entry in the data structure is associated with an IP address (e.g., of traffic received by the network device). In some implementations, the network device may search the data structure based on the IP address to find an entry associated with the IP address. For example, referring to Figure 1C , the network device can determine whether an entry in the first data structure is associated with the IP address (e.g., whether an IP address prefix included in the entry matches the prefix of the IP address and / or is the longest IP address prefix that matches the prefix of the IP address in one or more entries of the data structure).

[0054] When the network device determines that an entry in the data structure is associated with an IP address, the network device may process (e.g., read and / or parse) the entry to determine whether to forward the traffic. In some implementations, the network device may determine to forward the traffic when the entry indicates that the network device is to forward the traffic (e.g., to the next hop). Thus, as shown by reference numeral 122, the network device may forward the traffic (e.g., based on the entry in the data structure). For example, referring to Figure 1C , the network device may forward the traffic (eg, based on the entry in the first data structure).

[0055] Alternatively, when the entry indicates that the network device does not forward the service (e.g., discards the service), the network device may determine to prevent forwarding the service. Therefore, as shown by reference numeral 124, the network device may prevent forwarding the service (e.g., by discarding the service). Figure 1C , the network device may prevent forwarding the traffic (eg, based on an entry in the first data structure). In some implementations, the network device may determine not to forward the traffic when the network device determines that the data structure does not include an entry associated with the IP address.

[0056] like Figure 1D As shown and indicated by reference numeral 126, the network device can communicate with the network device via an interface of the network device (e.g., different from the interface described herein). Figure 1C The interface described in this document) receives services (for example, different from the Figure 1C For example, refer to Figure 1D , the endpoint device C in the one or more endpoint devices C can provide services to the network device, and the network device can receive the services via the second interface in the one or more second interfaces of the network device. The services may include the IP address of the service of the server device (for example, the IP address of the service provided by the server device in the present invention). Figure 1C The IP address described may be the same or different), for example, in one or more headers of the service. Thus, the endpoint device C may send a service to request a service provided by the server device.

[0057] As shown at 128, the network device may determine the IP address of the service (eg, as described herein with reference to Figure 1C and in a similar manner as described with reference numeral 114). For example, referring to Figure 1D , the network device can determine the IP address of the service received by the network device from the endpoint device C via the second interface.

[0058] As shown at reference numeral 130, the network device may identify (e.g., based on determining the IP address of the traffic) the interface via which the network device receives the traffic. That is, the network device may identify the interface based on determining that the traffic includes an IP address (and the network device is therefore able to process the traffic to determine the IP address). For example, referring to Figure 1D , the network device may identify a second interface of the one or more second interfaces as an interface via which the network device receives traffic from endpoint device C (eg, based on determining an IP address of the traffic).

[0059] As shown at reference numeral 132, the network device may identify a data structure associated with the interface (e.g., based on the interface identified by the network device). Figure 1D , the network device can identify the second data structure because the second data structure is associated with the second interface (eg, the network device identifies the second interface as the interface via which the network device receives traffic from endpoint device C).

[0060] As indicated at reference numeral 134, the network device may determine whether an entry in the data structure is associated with an IP address (eg, an IP address of a traffic received by the network device), such as described herein with respect to Figure 1C In a similar manner as described with reference numeral 120. For example, referring to Figure 1D , the network device can determine whether the entry in the second data structure is associated with the IP address.

[0061] When the network device determines that an entry in the data structure is associated with an IP address, the network device may process (e.g., read and / or parse) the entry to determine whether to forward the traffic. In some implementations, the network device may determine to forward the traffic when the entry indicates that the network device is to forward the traffic (e.g., to the next hop). Thus, as shown by reference numeral 136, the network device may forward the traffic (e.g., based on the entry in the data structure). For example, referring to Figure 1D , the network device may forward the traffic (eg, based on the entries in the second data structure).

[0062] Alternatively, when the entry indicates that the network device will not forward the traffic (e.g., discard the traffic), the network device may determine to prevent forwarding the traffic. Therefore, as shown by reference numeral 138, the network device may prevent forwarding the traffic (e.g., by discarding the traffic). Figure 1D , the network device may block forwarding traffic (eg, based on an entry in the second data structure). In some implementations, the network device may determine to block forwarding traffic when the network device determines that the data structure does not include an entry associated with the IP address.

[0063] like Figure 1E As shown and indicated by reference numeral 140, the network device may communicate with the network device via an interface of the network device (e.g., different from the interface described herein). Figure 1C The interface described in this article is about Figure 1D The interface described in this document) receives services (for example, different from the Figure 1C The business described and this article is about Figure 1D For example, refer to Figure 1E , endpoint device A of one or more endpoint devices A can provide services to the network device, and the network device can receive the services via a universal interface of one or more universal interfaces of the network device. That is, the network device can receive services via an interface that is not associated with the first data structure, the second data structure, etc., so (e.g., by default) the interface is a universal interface. The services may include the IP address of the service of the server device (e.g., the IP address of the service associated with the server device described herein). Figure 1C The IP addresses and / or this article describes Figure 1D The IP addresses described may be the same or different), for example in one or more headers of the service.

[0064] As shown at 142, the network device may determine the IP address of the service (e.g., in the manner described herein). Figure 1C and in a similar manner as described with reference numeral 116). For example, referring to Figure 1E , the network device can determine the IP address of the service received by the network device from the endpoint device A via the universal interface.

[0065] As shown at reference numeral 144, the network device may identify (e.g., based on determining the IP address of the traffic) the interface via which the network device receives the traffic. That is, the network device may identify the interface based on determining that the traffic includes an IP address (and the network device is therefore able to process the traffic to determine the IP address). For example, referring to Figure 1E , the network device may identify a generic interface of the one or more generic interfaces as the interface via which the network device receives traffic from endpoint device A (eg, based on determining an IP address of the traffic).

[0066] As shown at reference numeral 146, the network device may determine that the interface is not associated with a particular data structure. Figure 1E , the network device may determine that the generic interface is not associated with the first data structure, the second data structure, etc. Thus, the network device may determine that the interface is associated with the generic data structure (eg, based on determining that the interface is not associated with a particular data structure).

[0067] As indicated at reference numeral 148, the network device may determine whether an entry in the generic data structure is associated with an IP address (eg, an IP address of a traffic received by the network device), such as described herein with respect to Figure 1C In a similar manner as described with reference numeral 120. For example, referring to Figure 1E , the network device can determine whether an entry in the general data structure is associated with an IP address.

[0068] When the network device determines that an entry in the general data structure is associated with an IP address, the network device may process (e.g., read and / or parse) the entry to determine whether to forward the traffic. In some implementations, the network device may determine to forward the traffic when the entry indicates that the network device is to forward the traffic (e.g., to the next hop). Thus, as shown by reference numeral 150, the network device may forward the traffic (e.g., based on the entry in the general data structure). For example, referring to Figure 1E , the network device can forward traffic (eg, based on entries in the common data structure).

[0069] Alternatively, when the entry indicates that the network device will not forward the traffic (e.g., discard the traffic), the network device may determine to prevent forwarding the traffic. Therefore, as shown by reference numeral 152, the network device may prevent forwarding the traffic (e.g., by discarding the traffic). For example, referring to Figure 1E , the network device may prevent forwarding traffic (eg, based on an entry in the general data structure). In some implementations, the network device may determine to prevent forwarding traffic when the network device determines that the general data structure does not include an entry associated with the IP address.

[0070] Figure 2 2 is an illustration of an example environment 200 in which the systems and / or methods described herein may be implemented. Figure 2 As shown, environment 200 may include a plurality of endpoint devices 210, network devices, network 230, and server devices 240. The devices of environment 200 may be interconnected via wired connections, wireless connections, or a combination of wired and wireless connections.

[0071] Endpoint device 210 includes one or more devices capable of receiving, generating, storing, processing, and / or providing information, such as the information described herein. For example, endpoint device 210 may include a mobile phone (e.g., a smartphone or wireless phone), a set-top box, a laptop computer, a tablet computer, a desktop computer, a handheld computer, a gaming device, a wearable communication device (e.g., a smart watch, smart glasses, a heart rate monitor, a fitness tracker, smart clothing, smart jewelry, or a head-mounted display), a network device (e.g., a router, a residential gateway, etc.), or a similar type of device. In some implementations, endpoint device 210 may send traffic to network device 220 in an attempt to access one or more services provided by server device 240, as described herein.

[0072] The network device 220 includes one or more devices that can receive, process, store, route and / or provide services in the manner described herein. For example, the network device 220 may include a router, such as a label switching router (LSR), a label edge router (LER), an entry router, an exit router, a provider router (e.g., a provider edge router or a provider core router), a virtual router, a route reflector, a regional border router, or another type of router. Additionally or alternatively, the network device 220 may include a gateway, a switch, a firewall, a hub, a bridge, a reverse proxy, a server (e.g., a proxy server, a cloud server or a data center server), a load balancer and / or similar devices. The network device 220 may be a consumer edge (CE) network device, a provider edge (PE) network device, a provider (P) network device and / or another type of network device. In some implementations, the network device 220 may be a physical device implemented in a housing, such as a chassis. In some implementations, the network device 220 may be a virtual device implemented by one or more computer devices in a cloud computing environment or a data center. In some implementations, network device 220 may include one or more interfaces and may receive and forward traffic or refrain from forwarding traffic as described herein.

[0073] The network 230 includes one or more wired and / or wireless networks. For example, the network 230 may include a packet-switched network, a cellular network (e.g., a fifth generation (5G) network, a fourth generation (4G) network such as a long term evolution (LTE) network, and / or a third generation (3G) network), a code division multiple access (CDMA) network, a public land mobile network (PLMN), a local area network (LAN), a wide area network (WAN), a metropolitan area network (MAN), a telephone network (e.g., a public switched telephone network (PSTN)), a private network, an ad hoc network, an intranet, the Internet, a fiber-optic-based network, a cloud computing network, etc., and / or a combination of these or other types of networks.

[0074] The server device 240 may include one or more devices capable of receiving, generating, storing, processing, providing and / or information, such as the information described herein. The server device 240 may include a communication device and / or a computing device. For example, the server device 240 may include a server, such as an application server, a client server, a web server, a database server, a host server, a proxy server, a virtual server (e.g., executed on computing hardware) or a server in a cloud computing system. In some implementations, the server device 240 may include computing hardware used in a cloud computing environment. In some implementations, the server device may be configured to provide one or more services to the endpoint device 210 via the network device 220, as described herein.

[0075] Figure 2 The number and arrangement of devices and networks shown in are provided as examples. Figure 2 There may be additional devices and / or networks, fewer devices and / or networks, different devices and / or networks, or differently arranged devices and / or networks than those shown in . In addition, Figure 2 Two or more of the devices shown in may be implemented in a single device, or Figure 2 The single device shown in can be implemented as multiple distributed devices. Additionally or alternatively, a set of devices (eg, one or more devices) of environment 200 can perform one or more functions described as being performed by another set of devices of environment 200.

[0076] Figure 3 300 is an illustration of example components of a device 300 associated with some implementations described herein. The device 300 may correspond to the endpoint device 210, the network device 220, and / or the server device 240. In some implementations, the endpoint device 210, the network device 220, and / or the server device 240 may include one or more of the devices 300 and / or one or more components of the device 300. Figure 3 As shown, device 300 may include a bus 310 , a processor 320 , a memory 330 , an input component 340 , an output component 350 , and a communication component 360 .

[0077] The bus 310 may include one or more components that enable wired and / or wireless communications between components of the device 300. The bus 310 may connect components of the device 300 to each other, such as via an operational coupling, a communicative coupling, an electronic coupling, and / or an electrical coupling. Figure 3Two or more components of a computer system are coupled together. For example, bus 310 may include electrical connections (e.g., wires, traces, and / or conductors) and / or wireless buses. Processor 320 may include a central processing unit, a graphics processing unit, a microprocessor, a controller, a microcontroller, a digital signal processor, a field programmable gate array, an application specific integrated circuit, and / or another type of processing component. Processor 320 may be implemented in hardware, firmware, or a combination of hardware and software. In some implementations, processor 320 may include one or more processors that can be programmed to perform one or more operations or processes described elsewhere herein.

[0078] The memory 330 may include volatile and / or non-volatile memory. For example, the memory 330 may include a random access memory (RAM), a read-only memory (ROM), a hard drive, and / or another type of memory (e.g., flash memory, magnetic memory, and / or optical memory). The memory 330 may include internal memory (e.g., RAM, ROM, or hard drive) and / or removable memory (e.g., removable via a universal serial bus connection). The memory 330 may be a non-transient computer-readable medium. The memory 330 may store information, one or more instructions, and / or software (e.g., one or more software applications) related to the operation of the device 300. In some implementations, the memory 330 may include one or more memories coupled (e.g., communicatively coupled) to one or more processors (e.g., processor 320), such as via bus 310. The communicatively coupled between the processor 320 and the memory 330 may enable the processor 320 to read and / or process information stored in the memory 330 and / or store information in the memory 330.

[0079] Input component 340 can enable device 300 to receive input, such as user input and / or sensor input. For example, input component 340 can include touch screen, keyboard, keypad, mouse, button, microphone, switch, sensor, global positioning system sensor, accelerometer, gyroscope and / or actuator. Output component 350 can enable device 300 to provide output, such as via display, speaker and / or light emitting diode. Communication component 360 can enable device 300 to communicate with other devices via wired connection and / or wireless connection. For example, communication component 360 can include receiver, transmitter, transceiver, modem, network interface card and / or antenna.

[0080] The device 300 may perform one or more operations or processes described herein. For example, a non-transient computer-readable medium (e.g., memory 330) may store an instruction set (e.g., one or more instructions or codes) for execution by the processor 320. The processor 320 may execute the instruction set to perform one or more operations or processes described herein. In some implementations, execution of the instruction set by one or more processors 320 causes one or more processors 320 and / or the device 300 to perform one or more operations or processes described herein. In some implementations, hard-wired circuits may be used to replace or combine instructions to perform one or more operations or processes described herein. Additionally or alternatively, the processor 320 may be configured to perform one or more operations or processes described herein. Therefore, the implementation described herein is not limited to any particular combination of hardware circuits and software.

[0081] Figure 3 The number and arrangement of components shown are provided as examples. Figure 3 Compared to those shown in , device 300 may include additional components, fewer components, different components, or components arranged differently. Additionally or alternatively, a component set (e.g., one or more components) of device 300 may perform one or more functions described as being performed by another component set of device 300.

[0082] Figure 4 4 is an illustration of example components of a device 400 associated with some implementations described herein. The device 400 may correspond to the endpoint device 210, the network device 220, and / or the server device 240. In some implementations, the endpoint device 210, the network device 220, and / or the server device 240 may include one or more of the devices 400 and / or one or more components of the devices 400. Figure 4 As shown, the device 400 may include one or more input components 410-1 to 410-B (B≥1) (hereinafter collectively referred to as input component 410, and individually referred to as input component 410), a switching component 420, one or more output components 430-1 to 430-C (C≥1) (hereinafter collectively referred to as output component 430, and individually referred to as output component 430), and a controller 440.

[0083] The input component 410 may be one or more attachment points for a physical link and may be one or more entry points for incoming traffic such as packets. The input component 410 may process incoming traffic such as by performing data link layer encapsulation or decapsulation. In some implementations, the input component 410 may send and / or receive packets. In some implementations, the input component 410 may include an input line card that includes one or more packet processing components (e.g., in the form of an integrated circuit), such as one or more interface cards (IFCs), a packet forwarding component, a line card controller component, an input port, a processor, a memory, and / or an input queue. In some implementations, the device 400 may include one or more input components 410.

[0084] The switching component 420 can interconnect the input component 410 with the output component 430. In some implementations, the switching component 420 can be implemented via one or more crossbar switches, via a bus, and / or using a shared memory. The shared memory can be used as a temporary buffer to store packets from the input component 410 before they are ultimately scheduled to be delivered to the output component 430. In some implementations, the switching component 420 can enable the input component 410, the output component 430, and / or the controller 440 to communicate with each other.

[0085] Output component 430 can store packets and can schedule packets for transmission on an output physical link. Output component 430 can support data link layer encapsulation or decapsulation, and / or various higher-level protocols. In some implementations, output component 430 can send packets and / or receive packets. In some implementations, output component 430 may include an output line card, which includes one or more packet processing components (e.g., in the form of an integrated circuit), such as one or more IFCs, packet forwarding components, line card controller components, output ports, processors, memories, and / or output queues. In some implementations, device 400 may include one or more output components 430. In some implementations, input component 410 and output component 430 may be implemented by the same component set (e.g., an input / output component may be a combination of input component 410 and output component 430).

[0086] The controller 440 includes a processor in the form of a CPU, a graphics processing unit (GPU), an accelerated processing unit (APU), a microprocessor, a microcontroller, a digital signal processor (DSP), a field programmable gate array (FPGA), an application specific integrated circuit (ASIC), and / or another type of processor. The processor is implemented in hardware, firmware, or a combination of hardware and software. In some implementations, the controller 440 may include one or more processors that can be programmed to perform a function.

[0087] In some implementations, the controller 440 may include RAM, ROM, and / or another type of dynamic or static storage device (eg, flash memory, magnetic memory, optical memory, etc.) that stores information and / or instructions for use by the controller 440 .

[0088] In some implementations, the controller 440 can communicate with other devices, networks, and / or systems connected to the device 400 to exchange information about the network topology. The controller 440 can create a routing table based on the network topology information, can create a forwarding table based on the routing table, and can forward the forwarding table to the input component 410 and / or the output component 430. The input component 410 and / or the output component 430 can use the forwarding table to perform a route lookup for incoming and / or outgoing packets.

[0089] The controller 440 may perform one or more processes described herein. The controller 440 may perform these processes in response to executing software instructions stored by a non-transient computer readable medium. A computer readable medium is defined herein as a non-transient storage device. A memory device includes memory space within a single physical storage device or memory space distributed on multiple physical storage devices.

[0090] The software instructions may be read from another computer-readable medium or from another device via a communication interface into a memory and / or storage component associated with the controller 440. When executed, the software instructions stored in the memory and / or storage component associated with the controller 440 may cause the controller 440 to perform one or more processes described herein. Additionally or alternatively, hardwired circuitry may be used instead of or in combination with software instructions to perform one or more processes described herein. Therefore, the implementations described herein are not limited to any specific combination of hardware circuitry and software.

[0091] Figure 4 The number and arrangement of components shown are provided as examples. Figure 4 Compared to those shown in , device 400 may include additional components, fewer components, different components, or differently arranged components. Additionally or alternatively, a component set (e.g., one or more components) of device 400 may perform one or more functions described as being performed by another component set of device 400.

[0092] Figure 5 is a flow chart of an example process 500 associated with using a data structure associated with an interface to facilitate forwarding of traffic received via an interface of a network device. In some implementations, Figure 5 One or more process blocks of are performed by a network device (e.g., network device 220). In some implementations, Figure 5One or more process blocks of are performed by another device or group of devices separate from or including the network device, such as an endpoint device (e.g., endpoint device 210) and / or a server device (e.g., server device 240). Additionally or alternatively, Figure 5 One or more process blocks may be performed by: one or more components of device 300, such as processor 320, memory 330, input component 340, output component 350, and / or communication component 360; one or more components of device 400, such as input component 410, switching component 420, output component 430, and / or controller 440; and / or one or more components of another device.

[0093] like Figure 5 As shown, process 500 may include receiving traffic via an interface of a network device (block 510). For example, the network device may receive traffic via an interface of the network device, as described above.

[0094] like Figure 5 As further shown, process 500 may include determining an IP address for the service (block 520). For example, the network device may determine the IP address for the service, as described above.

[0095] like Figure 5 As further shown, process 500 may include identifying an interface of the network device (block 530). For example, the network device may identify the interface of the network device based on determining the IP address of the traffic, as described above.

[0096] like Figure 5 As further shown, process 500 may include identifying a data structure associated with an interface (block 540). For example, a network device may identify a data structure associated with an interface, as described above.

[0097] like Figure 5 As further shown, process 500 may include determining whether an entry in the data structure is associated with an IP address (block 550). For example, the network device may determine whether an entry in the data structure is associated with an IP address, as described above.

[0098] like Figure 5 As further shown, process 500 may include selectively forwarding traffic based on determining that an entry in the data structure is associated with the IP address, or preventing forwarding traffic based on determining that no entry in the data structure is associated with the IP address (block 560). For example, the network device may selectively forward traffic based on determining that an entry in the data structure is associated with the IP address, or prevent forwarding traffic based on determining that no entry in the data structure is associated with the IP address, as described above.

[0099] Process 500 may include additional implementations, such as any single implementation or any combination of implementations described below and / or in conjunction with one or more other processes described elsewhere herein.

[0100] In a first implementation, the network device includes another data structure that is not associated with an interface of the network device, and process 500 includes receiving other traffic via the other interface of the network device; determining another IP address of the other traffic; identifying another interface of the network device based on determining the other IP address of the other traffic; determining that the other interface is not associated with the data structure; determining whether the other data structure includes an entry associated with the other IP address based on determining that the other interface is not associated with the data structure; and selectively: forwarding the other traffic based on determining that the other data structure includes an entry associated with the other IP address, or preventing forwarding the other traffic based on determining that the other data structure does not include any entry associated with the other IP address.

[0101] In a second implementation, the network device includes another data structure associated with another interface of the network device and not associated with the interface of the network device, and process 500 includes receiving other business via the other interface of the network device; determining another IP address of the other business; identifying the other interface of the network device based on determining the other IP address of the other business; identifying another data structure associated with the other interface; determining whether an entry in the another data structure is associated with the other IP address; and selectively: forwarding the other business based on determining that the entry in the another data structure is associated with the other IP address, or preventing forwarding of the other business based on determining that no entry in the another data structure is associated with the other IP address.

[0102] In a third implementation, process 500 includes: receiving a notification associated with an IP address before receiving a service; determining that a network device will forward the notification to another device via an interface; based on determining that the network device will forward the notification to another device via an interface, identifying a data structure associated with the interface; and based on the notification, causing the data structure to include an entry associated with the IP address.

[0103] In a fourth implementation, an IP address is associated with a service of a server device.

[0104] In a fifth implementation, the IP address is a unicast IP address or an anycast IP address.

[0105] In a sixth implementation, a data structure is associated with an interface of a network device and one or more other interfaces, and wherein the data structure is a forwarding context for respective traffic received from other devices via the interface and the one or more other interfaces.

[0106] although Figure 5An example block diagram of process 500 is shown, but in some implementations, process 500 includes Figure 5 More blocks, fewer blocks, different blocks, or blocks arranged in a different manner than those depicted in. Additionally or alternatively, two or more blocks of process 500 may be executed in parallel.

[0107] Figure 6 is a flow chart of an example process 600 associated with using a data structure associated with an interface to facilitate forwarding of traffic received via an interface of a network device. In some implementations, a process 600 is performed by a network device (e.g., network device 220). Figure 6 In some implementations, Figure 6 One or more process blocks of are performed by another device or group of devices separate from or including the network device, such as an endpoint device (e.g., endpoint device 210) and / or a server device (e.g., server device 240). Additionally or alternatively, Figure 6 One or more process blocks may be performed by: one or more components of device 300, such as processor 320, memory 330, input component 340, output component 350, and / or communication component 360; one or more components of device 400, such as input component 410, switch component 420, output component 430, and / or controller 440; and / or one or more components of another device.

[0108] like Figure 6 As shown, process 600 may include receiving an advertisement associated with a particular IP address (block 610). For example, a network device may receive an advertisement associated with a particular IP address, as described above.

[0109] like Figure 6 As further shown, process 600 may include determining that the network device will forward the advertisement to another device via an interface of the network device (block 620). For example, the network device may determine that the network device will forward the advertisement to another device via an interface of the network device, as described above.

[0110] like Figure 6 As further shown, process 600 may include identifying a data structure associated with an interface (block 630). For example, based on determining that the network device will forward an advertisement to another device via an interface, the network device may identify a data structure associated with the interface, as described above.

[0111] like Figure 6 As further shown, process 600 may include causing the data structure to include a specific entry associated with the specific IP address (block 640). For example, the network device may cause the data structure to include a specific entry associated with the specific IP address based on the advertisement, as described above.

[0112] Process 600 may include additional implementations, such as any single implementation or any combination of implementations described below and / or in conjunction with one or more other processes described elsewhere herein.

[0113] In a first implementation, process 600 includes: receiving a service via an interface of a network device after causing a data structure to include a specific entry associated with a specific IP address; determining an IP address of the service, and based on determining the IP address of the service, identifying that the service is received via the interface of the network device; based on identifying that the service is received via the interface of the network device, identifying a data structure associated with the interface; determining whether an entry in the data structure is associated with the IP address; and selectively: forwarding the service based on determining that the entry in the data structure is associated with the IP address, or preventing forwarding of the service based on determining that no entry in the data structure is associated with the IP address.

[0114] In a second implementation, process 600 includes: after causing the data structure to include a specific entry associated with a specific IP address, receiving other business via another interface of the network device; determining the IP address of the business; based on determining the IP address of the business, identifying that the business is received via another interface of the network device; determining that the other interface is not associated with the data structure; based on determining that the other interface is not associated with the data structure, determining whether another data structure includes an entry associated with the IP address; and selectively: forwarding the business based on determining that the other data structure includes an entry associated with the IP address, or suppressing forwarding of the other business based on determining that the other data structure does not include any entry associated with the IP address.

[0115] In a third implementation, process 600 includes: after causing the data structure to include a specific entry associated with a specific IP address, receiving other services via another interface of the network device; determining the IP address of the service; based on determining the IP address of the service, identifying that the service is received via another interface of the network device; identifying another data structure associated with the other interface; determining whether an entry in the other data structure is associated with the IP address; and selectively: forwarding the service based on determining that the entry in the other data structure is associated with the IP address, or preventing forwarding of the service based on determining that no entry in the other data structure is associated with the IP address.

[0116] In a fourth implementation, the specific IP address is a unicast IP address or an anycast IP address.

[0117] although Figure 6 An example block diagram of process 600 is shown, but in some implementations, process 600 includes Figure 6More blocks, fewer blocks, different blocks, or blocks arranged in a different manner than those depicted in . Additionally or alternatively, two or more blocks of process 600 may be executed in parallel.

[0118] The foregoing disclosure provides illustration and description, but is not intended to be exhaustive or to limit implementations to the precise forms disclosed. Modifications and variations may be made in light of the above disclosure or may be acquired from practice of implementations.

[0119] As used herein, a service or content may include a collection of packets. A packet may refer to a communication structure for transmitting information, such as a protocol data unit (PDU), a service data unit (SDU), a network packet, a datagram, a segment, a message, a block, a frame (e.g., an Ethernet frame), a portion of any of the above data, and / or another type of formatted or unformatted data unit capable of being transmitted via a network.

[0120] As used herein, the term "component" is intended to be broadly interpreted as hardware, firmware, or a combination of hardware and software. Obviously, the systems and / or methods described herein can be implemented in different forms of hardware, firmware, and / or a combination of hardware and software. The actual dedicated control hardware or software code used to implement these systems and / or methods is not a limitation of the implementation. Therefore, the operation and behavior of the systems and / or methods are described herein without reference to specific software code-it should be understood that based on the description herein, the systems and / or methods can be implemented using software and hardware.

[0121] Although specific combinations of features are recorded in the claims and / or disclosed in the specification, these combinations are not intended to limit the disclosure of various implementations. In fact, many of these features can be combined in ways that are not specifically recorded in the claims and / or disclosed in the specification. Although each dependent claim listed below may only directly depend on one claim, the disclosure of various implementations includes each dependent claim in combination with each other claim in the claim set. As used herein, the phrase "at least one" in a list of reference items refers to any combination of these items, including single members. As an example, "at least one of the following: a, b, or c" is intended to cover a, b, c, ab, ac, bc, and abc, as well as any combination with multiple identical items.

[0122] Unless explicitly described, any element, behavior or instruction used in this article should not be interpreted as critical or necessary. In addition, as used herein, the articles "one" and "an" are intended to include one or more projects, and can be used interchangeably with "one or more". In addition, as used herein, the article "the" is intended to include one or more projects quoted in conjunction with the article "the", and can be used interchangeably with "the one or more". In addition, as used herein, the term "set" is intended to include one or more projects (for example, a combination of related projects, unrelated projects, or related and unrelated projects), and can be used interchangeably with "one or more". If only one project is intended, the phrase "only one" or similar language is used. In addition, as used herein, the terms "have", "have", "contain" etc. are intended to be open terms. In addition, the phrase "based on" is intended to mean "at least partially based on", unless otherwise clearly stated. In addition, as used herein, when used in a series, the term "or" is intended to be inclusive, and can be used interchangeably with "and / or", unless otherwise clearly stated (for example, if used in combination with "any one" or "only one").

Claims

1. A method comprising: Receiving, by a network device, a service via an interface of the network device; Determining, by the network device, an Internet Protocol IP address of the service; The network device identifies the interface of the network device based on the IP address of the service; identifying, by the network device, a data structure associated with the interface; determining, by the network device, whether an entry in the data structure is associated with the IP address; as well as Optionally: forwarding the traffic by the network device based on determining that the entry in the data structure is associated with the IP address, or Forwarding of the traffic is prevented, by the network device, based on a determination that no entry in the data structure is associated with the IP address.

2. The method of claim 1 , wherein the network device includes another data structure not associated with the interface of the network device, the method further comprising: receiving other services via another interface of the network device; Determine another IP address of the other service; Based on determining the other IP address of the other service, identifying the other interface of the network device; determining that the another interface is not associated with the data structure; Based on determining that the other interface is not associated with the data structure, determining whether the other data structure includes an entry associated with the other IP address; and Optionally: forwarding the other traffic based on determining that the other data structure includes an entry associated with the other IP address, or The other traffic is prevented from being forwarded based on a determination that the other data structure does not include any entry associated with the other IP address.

3. The method of claim 1 , wherein the network device includes another data structure associated with another interface of the network device and not associated with the interface of the network device, the method further comprising: receiving other services via the other interface of the network device; Determine another IP address of the other service; Based on determining the other IP address of the other service, identifying the other interface of the network device; identifying the other data structure associated with the other interface; determining whether an entry in the another data structure is associated with the another IP address; as well as Optionally: forwarding the other traffic based on determining that the entry in the other data structure is associated with the other IP address, or The other traffic is prevented from being forwarded based on a determination that no entry in the other data structure is associated with the other IP address.

4. The method according to claim 1, further comprising: Prior to receiving the service, receiving a notification associated with the IP address; determining that the network device is to forward the advertisement to another device via the interface; Based on determining that the network device is to forward the advertisement to the other device via the interface, identifying the data structure associated with the interface; and Based on the notification, the data structure is caused to include the entry associated with the IP address. The method of claim 1 , wherein the IP address is associated with a service of a server device. The method of claim 1 , wherein the IP address is a unicast IP address or an anycast IP address.

7. The method of claim 1 , wherein the data structure is associated with the interface and one or more other interfaces of the network device, and The data structure is a forwarding context for a corresponding service received from other devices via the interface and the one or more other interfaces.

8. A network device comprising: one or more memories; as well as One or more processors for: determining an Internet Protocol (IP) address of traffic received via an interface of the network device; Based on determining the IP address of the service, identifying a data structure associated with the interface; determining whether an entry in the data structure is associated with the IP address; as well as Optionally: forwarding the traffic based on determining that the entry in the data structure is associated with the IP address, or Forwarding the traffic is prevented based on determining that no entry in the data structure is associated with the IP address.

9. The network device of claim 8, wherein the network device comprises another data structure not associated with the interface and the another data structure is used by the network device to facilitate forwarding of traffic received via another interface of the network device.

10. The network device of claim 8, wherein the network device comprises another data structure not associated with the interface of the network device, the one or more processors further configured to: Determining another IP address of other services received via another interface of the network device; Based on determining the other IP address of the other service, determining that the other interface is not associated with the data structure; Based on determining that the other interface is not associated with the data structure, determining whether another data structure includes an entry associated with the other IP address; and Optionally: forwarding the other traffic based on determining that the data structure includes an entry associated with the other IP address, or The other traffic is prevented from being forwarded based on a determination that the data structure does not include any entry associated with the other IP address.

11. The network device of claim 8, wherein the one or more processors are further configured to: receiving other services via the other interface of the network device; Determining another IP address of other services received via another interface of the network device; Based on determining the other IP address of the other service, identifying another data structure associated with the another interface; determining whether an entry in the another data structure is associated with the another IP address; as well as Optionally: forwarding the other traffic based on determining that the entry in the other data structure is associated with the other IP address, or The other traffic is prevented from being forwarded based on a determination that no entry in the other data structure is associated with the other IP address.

12. The network device according to claim 11: The data structure is not associated with the other interface; and The another data structure is not associated with the interface.

13. The network device of claim 8, wherein the one or more processors are further configured to: identifying a data structure associated with the interface based on a notification associated with the IP address to be forwarded to another device via the interface prior to receiving the traffic; and Based on the notification, the data structure is caused to include the entry associated with the IP address.

14. The network device of claim 8, wherein the IP address is associated with a service.

15. The network device according to claim 8, wherein the IP address is a unicast IP address or an anycast IP address.

16. A non-transitory computer readable medium storing a set of instructions, the set of instructions comprising: One or more instructions that, when executed by one or more processors of a network device, cause the network device to: receiving notifications associated with a particular Internet Protocol (IP) address; determining that the network device is to forward the advertisement to another device via an interface of the network device; Based on determining that the network device is to forward the advertisement to the other device via the interface, identifying a data structure associated with the interface; and Based on the notification, the data structure is caused to include a specific entry associated with the specific IP address.

17. The non-transitory computer readable medium of claim 16, wherein the one or more instructions further cause the network device to: receiving traffic via the interface of the network device after causing the data structure to include the particular entry associated with the particular IP address; Determine the IP address of the service; Based on determining the IP address of the service, identifying that the service is received via the interface of the network device; Based on identifying that the service is received via the interface of the network device, identifying the data structure associated with the interface; determining whether an entry in the data structure is associated with the IP address; as well as Optionally: forwarding the traffic based on determining that the entry in the data structure is associated with the IP address, or Forwarding the traffic is prevented based on determining that no entry in the data structure is associated with the IP address.

18. The non-transitory computer readable medium of claim 16, wherein the one or more instructions further cause the network device to: receiving other traffic via another interface of the network device after causing the data structure to include the particular entry associated with the particular IP address; Determine the IP address of the service; Based on determining the IP address of the service, identifying that the service is received via the other interface of the network device; determining that the another interface is not associated with the data structure; Based on determining that the other interface is not associated with the data structure, determining whether another data structure includes an entry associated with the IP address; and Optionally: forwarding the traffic based on determining that the other data structure includes an entry associated with the IP address, or The other traffic is prevented from being forwarded based on a determination that the other data structure does not include any entry associated with the IP address.

19. The non-transitory computer readable medium of claim 16, wherein the one or more instructions further cause the network device to: receiving other traffic via another interface of the network device after causing the data structure to include the particular entry associated with the particular IP address; Determine the IP address of the service; Based on determining the IP address of the service, identifying that the service is received via the other interface of the network device; identifying another data structure associated with the another interface; determining whether an entry in the other data structure is associated with the IP address; as well as Optionally: forwarding the traffic based on determining that the entry in the other data structure is associated with the IP address, or Forwarding the traffic is prevented based on determining that no entry in the other data structure is associated with the IP address.

20. The non-transitory computer-readable medium of claim 16, wherein the specific IP address is a unicast IP address or an anycast IP address.