Multicast route summarization

By writing the multicast summary stream in the hardware components of the networking device, the problem of resource waste in multicast data packet processing is solved, and more efficient resource utilization and processing efficiency are achieved.

CN114124798BActive Publication Date: 2024-09-27HEWLETT PACKARD ENTERPRISE DEV LP
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202110455660.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Priority Date
2020-04-27
Filing Date
2021-04-26
Publication Date
2024-09-27
Estimated Expiration
2041-04-26

AI Technical Summary

Technical Problem

In multicast data packet processing, the hardware memory resources of networked devices are wasted by storing multiple separate streams, resulting in excessive resource usage and low processing efficiency. Especially when multiple applications search for network services at the same time, resources cannot be used. Use effectively.

Method used

By writing a multicast summary stream in the hardware component of the networking device, summarizing the individual streams determined by the multicast protocol, and using the summary stream to match multiple packets from different sources, only one summary stream is used on the hardware resources instead of multiple separate streams, saving resources and leaving room to handle other types of multicast packets.

Benefits of technology

It effectively saves hardware resources and improves the processing efficiency of multicast data packets. Especially when multiple applications search for network services, unnecessary waste of resources is avoided, and the functions of the multicast protocol remain unchanged.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114124798B_ABST
    Figure CN114124798B_ABST
Patent Text Reader

Abstract

The present disclosure relates to multicast route summarization. An example includes receiving a first multicast packet; determining a first flow for the first multicast packet based on a multicast protocol; and storing the first flow in a routing table. The first flow includes a first source and a first group, and the routing table includes a second flow having a second source and the first group. In addition, the example includes programming the first flow into a hardware memory resource, and programming a summary flow into the hardware memory resource. The hardware memory resource includes a second flow and the summary flow, the summary flow including a wildcard that matches the first source and the second source.
Need to check novelty before this filing date? Find Prior Art

Description

Background Art

[0001] Networking devices (e.g., switches, routers, etc.) can handle different types of data packets, including unicast data packets and multicast data packets. Multicast data packets can use an Internet Protocol (IP) address as a proxy for a group of devices (e.g., a group). The multicast group IP address may not correspond to a device (e.g., a physical device, a virtual device, etc.) in the network. Instead, devices in the network subscribe to the multicast group IP address and use networking devices to route data packets sent to the multicast group IP address to these devices. Therefore, networking devices can use multicast-specific procedures (multicast protocols) to process and route multicast data packets. BRIEF DESCRIPTION OF THE DRAWINGS

[0002] The following detailed description refers to the accompanying drawings, in which:

[0003] Figure 1 is a block diagram of a networked device for programming a summary stream to hardware memory resources according to some examples.

[0004] Figure 2 is a block diagram of a networked device with a hardware programming engine for programming summary streams into hardware memory resources according to some examples.

[0005] Figure 3 is a block diagram of a networked device with a hardware programming engine for programming hardware memory resources of an application specific integrated circuit (ASIC), according to some examples.

[0006] Figure 4 is a block diagram of a method of programming a summary stream into hardware memory resources according to some examples.

[0007] Figure 5 is a block diagram of a method of determining when to program a profile flow into an ASIC according to some examples. DETAILED DESCRIPTION

[0008] A multicast protocol (e.g., implemented by instructions stored on a non-transitory machine-readable storage medium, the instructions executable by a processing resource, etc.) can determine the routing of multicast data packets received by a networked device. The multicast protocol can determine which port of a networked device should be used to forward a multicast data packet so that the data packet is sent to the exact next-hop networked device on its path to the member devices in the multicast group IP. The multicast protocol can determine this information based on the following: an understanding of its neighbors (i.e., connected networked devices that also implement the same multicast protocol), which "hop" in the multicast path the networked device is, etc. The multicast protocol can update internal memory accessible only to the protocol (e.g., in a routing table) to collect these determinations (i.e., flows).

[0009] The multicast protocol may interact with other components of the networking device to "pass on" its determination. For example, the networking device may have hardware components (e.g., application specific integrated circuits (ASICs), etc.) that handle the forwarding of data packets based on directions set by the multicast protocol. The first time a data packet of a particular type is received by the networking device, the hardware component may check whether the multicast protocol has previously given directions to this particular type of data packet. Based on the current direction (e.g., in a table, etc.), the hardware component may independently (e.g., without the participation of the multicast protocol) forward the data packet according to the direction. However, if the hardware component does not have a direction for a particular type of data packet, the data packet is missed and the multicast protocol determines the routing of the data packet of this type. The multicast protocol may determine the flow of packets within the networking device and store the flow in a table. This information may also be sent to the hardware component to cause the hardware component to program the information into a hardware memory resource. Therefore, the next time a multicast data packet of a particular type is received, the hardware component knows how to route the multicast data packet. Storing the routing flow in a hardware component (such as an ASIC) allows faster processing of multicast data packets relative to processing by a multicast routing protocol.

[0010] A computing device, such as a mobile device, may have applications running on it that use services provided by another computing device on a local network. For example, these services may include TV streaming services (e.g., ChromeCast), speakers (e.g., SONOS), printing services, webcams, etc. When a computing device accesses a local network, these applications may attempt to discover services by sending multicast data packets into the network. The multicast data packets are ultimately received by a networked device in the network and routed by the networked device to the appropriate device in the network.

[0011] A computing device may have a large number of applications that rely on services on a network. Once a computing device accesses the network, the applications on the computing device may each send multicast data packets to discover services. These packets may be sent in a short period of time. In addition, at a given time, there may be a large number of devices accessing the network at the same time. This results in a large number of multicast data packets being sent to the network in a short period of time.

[0012] In order to route these multicast data packets, the networking device may have to consume a large portion of its multicast routing resources, especially when the streams are stored in the hardware components of the networking device, because the hardware components may have limited memory resources for storage. In multicast protocols, each entry in the hardware memory resource table may have various fields, including: incoming interface, source, group, and outgoing interface. Entries that vary in one of these fields compared to other entries are stored in separate entries and take up additional space on the hardware component.

[0013] For example, one packet may come from a different source than another packet, but may come from the same incoming interface, subscribe to the same group and go to the same outgoing interface as another packet. These packets can be routed by the hardware component in a similar manner, but the streams for the packets are stored in two separate table entries, thereby taking up more space in the memory resources of the hardware component. In an environment where there may be a large number of sources using the interface and subscribing to the same group, multicast resources may be unnecessarily used up to store streams that are similarly processed by the hardware. This represents an unnecessary waste of memory resources, and limited packet processing benefits.

[0014] By writing a multicast summary flow in the memory resources of the hardware components (e.g., ASIC, etc.) of the networking device, the examples disclosed herein solve these technical problems. The summary flow summarizes the individual multicast flows determined by the multicast protocol. Each individual flow captured by the summary flow is used to process packets incoming to the networking device at the same incoming interface, packets subscribing to the same group, and packets outgoing from the same outgoing interface. However, Each flow is used to process packets from different sources. Therefore, the summary flow can "match" several different sources and allow the networking device to process packets from many different sources but processed in a similar manner by the hardware components. The examples disclosed herein also include deleting individual flows from the hardware components. Therefore, the hardware resources can process these packets using only one summary flow instead of multiple individual flows. This saves hardware resources and allows those resources to be deployed when processing other types of multicast data packets. This is especially true when multiple applications search for network services. Using one flow for these types of multicast packets can leave space on the memory resources of the hardware components for other types of multicast packets.

[0015] In some examples, a computing device is provided with a non-transitory machine-readable storage medium. The computing device is provided with a non-transitory machine-readable storage medium including instructions that, when executed, receive a first multicast packet and determine a first stream for the first multicast packet based on a multicast protocol. The first stream may include a first source and a first group. The storage medium may include instructions that, when executed, store the first stream in a routing table including a second stream, program the first stream into a hardware memory resource, and program the summary stream into the hardware memory resource. The second stream may include a second stream and the first group, and is also stored in the hardware memory resource. The summary stream includes a wildcard that matches the first source and the second source.

[0016] In some examples, a networked device is provided with a multicast protocol engine, a hardware memory resource, and a hardware programming engine. The multicast protocol engine will receive a first multicast packet, determine a first flow for the first multicast packet, and store the first flow in a routing table. The first flow may include a first group, and the routing table may already include a second flow with the first group. The hardware programming engine will determine that the first flow and the second flow belong to a summary flow, and write the summary flow to the hardware memory resource.

[0017] In some examples, the method includes receiving a first multicast packet, determining a first flow for the first multicast packet based on a multicast protocol, and storing the first flow in a routing table. The first flow includes an incoming interface, a first source, and a first group. The method also includes programming the first flow in a hardware memory resource, determining that the incoming interface of the first flow matches the incoming interface of the second flow, determining that a first group of the first flow matches a group of the second flow, programming a summary flow into the hardware memory resource, and deleting the first flow from the hardware memory resource. The summary flow includes the incoming interface of the first flow and the first group.

[0018] Now referring to the accompanying drawings, Figure 1 1 is a block diagram of a networking device 100 programming a summary flow into a hardware memory resource. As used herein, a networking device may be a device in a network for the transmission of packets to the network (e.g., from an external network), from a network (e.g., to an external network), and / or in a network (from one device in the network to another device in the network). Non-limiting examples of networking devices include routers, switches, etc. The networking device 100 may be connected to other computing devices, chipsets, desktop computers, workstations, mobile phones, tablet computers, e-readers, or any other processing device or equipment.

[0019] Networked device 100 includes processing resources 101 and machine-readable storage medium 110. Machine-readable storage medium 110 may be in the form of a non-transitory machine-readable storage medium, such as a suitable electronic, magnetic, optical or other physical storage device to contain or store information, such as data related to instructions 111, 112, 113, 114, 115, etc.

[0020] As used herein, a "machine-readable storage medium" may include a storage drive (e.g., a hard drive), flash memory, random access memory (RAM), any type of storage disk (e.g., a CD-ROM, any type of optical disk, DVD, etc.), etc., or a combination thereof. In some examples, a storage medium may correspond to a memory, including a primary memory (e.g., a random access memory, where the software may reside at run time), and a secondary memory. For example, the secondary memory may include a non-volatile memory, where a copy of the software or other data is stored.

[0021] exist Figure 1 In the example of FIG. 1 , instructions 111, 112, 113, 114, and 115 are stored (encoded) in storage medium 110 and executed by processing resource 101 to implement the functions described herein in connection with FIG. 1 . In some examples, storage medium 110 may include additional instructions, for example, to implement the functions described in connection with FIG. Figure 2 The networked device 200 or Figure 3 Instructions for some functions related to the switch 300 in the storage medium 110. In some examples, the functions of any instructions of the storage medium 110 can be implemented in the form of electronic circuits, encoded in the form of executable instructions on a machine-readable storage medium, or a combination thereof.

[0022] For example, processing resource 101 can be in the form of a central processing unit (CPU), a semiconductor-based microprocessor, a digital signal processor (DSP) such as a digital image processing unit, other hardware devices, or a processing element that appropriately retrieves and executes instructions stored on a storage medium, or a suitable combination thereof. For example, processing resources can include a single-core or multi-core chip, a multi-core across multiple chips, a multi-core across multiple devices, or a suitable combination thereof. Processing resources can be used to obtain, decode, and execute instructions 111, 112, 113, 114, and 115 described herein.

[0023] Instruction 111 can be executed by processing resource 101 to receive a first multicast packet. The packet can be sent from a computing device of a network to which the accessed networked device 100 is connected. In some examples, the computing device can be a laptop and the data in the packet can originate from a program running on the laptop. For example, an application may be determining a print service available on a local network. When accessing the network, the application may cause the computing device to send a multicast packet for network service discovery. The multicast packet can be routed to a networked device, which may then route the packet appropriately based on the information in the multicast packet. As used herein, "first" and "second" are used to distinguish one multicast packet from another. "First", "second", etc. may be consistent with the order of the multicast packets received by the networked device, or may not be consistent. For example, the "first" multicast packet may be the 3rd or 30th multicast packet received by the networked device 100.

[0024] Instructions 112 may be executed by processing resource 101 to determine a first flow for a first multicast packet based on a multicast protocol. Networking device 100 may include programmable hardware resources, such as an application integrated circuit (ASIC), programmed to forward data packets received by the networking device. The ASIC may have hardware memory resources separate from storage medium 110. In some examples, the hardware memory resource is a machine-readable storage medium that is optimized to provide faster storage speeds than other types of memory. Examples of such hardware memory resources include TCAM. Because the hardware memory resource is provided on a programmable hardware resource, the space on the hardware memory resource may be limited.

[0025] When a data packet type is determined to take a certain path based on the multicast protocol, the programmable hardware resource can be programmed accordingly, and the same type of data packets received by the networking device in the future can be processed (e.g., routed) by the data plane using the same path. This allows for faster processing of packets. The flow can be maintained in a table (e.g., a forwarding table) on a hardware memory resource of the programmable hardware resource.

[0026] However, when a type of multicast data is first received, the hardware memory resources of the programmable hardware resources may not have entries in their forwarding tables that match this type of multicast packets. Therefore, those packets are missed and the multicast protocol can determine how they should be routed.

[0027] Thus, in some examples, at networked device 100, the first multicast packet may not have a matching entry in the hardware memory resource, and instructions 112 may determine a first flow for the first multicast packet based on a multicast protocol. Some non-limiting examples of multicast protocols include Simple Service Discovery Protocol (SSDP), Protocol Independent Multicast (PIM), etc.

[0028] In some examples, a stream may include an incoming interface (an interface of a networked device from which a packet enters), a source (the address of a device from which a packet originates), a group (an IP address of a multicast group subscribed to this stream), and (multiple) outgoing interfaces ((multiple) interfaces of networked device 100 from which packets are sent from the networked device). The incoming interface, source, group, and outgoing interface for a first stream of a first multicast packet may all be characterized as "first". Thus, a first stream may include a first incoming interface, a first source, and a first outgoing interface. Depending on the multicast protocol, an outgoing interface may include one or more interfaces. Thus, the outgoing interfaces associated with a first stream may be characterized as a first list of outgoing interfaces, where the list may include one outgoing interface, two outgoing interfaces, and so on.

[0029] Instruction 113 can be executable by processing resource 101, and first stream is stored in routing table.This routing table is maintained by multicast protocol, and is different from the table stored in programmable hardware resource.Routing table may have contained other multicast streams determined by multicast protocol.These other streams can be characterized as second stream, third stream, etc., to be distinguished from first stream.In some examples, the stream (for example, second stream) stored can include the same incoming interface as first stream, the same group as first stream, and the same outgoing interface as first stream.However, this second stream can have different sources from the first source.As discussed below, it can be considered that the second stream is the match for the first stream.

[0030] Instruction 114 can be executable by processing resource 101, and the first stream determined by the multicast protocol is programmed into the hardware memory resource of the programmable hardware resource. As used herein, "programming" the stream into the hardware memory resource includes writing the stream into the hardware memory resource so that it is accessible for packet forwarding processing. For example, it may include writing to the egress interface of the ASIC of the networking device 100. As discussed above, the programmable hardware resource can store these streams in a table. In some examples, the table can be referred to as a forwarding table. The table of the programmable hardware resource may have stored therein a second stream. The second stream includes a first group, a first outgoing interface, and a first incoming interface, but has a second source (i.e., the source of the second stream is different from the source of the first stream). Therefore, after the programmable hardware resource is programmed with the first stream, it can receive a multicast packet arriving at the networking device at the first interface, subscribe to the first group, and initiate from the first source. The multicast packet will be processed in the direction of the first stream, which means that it will leave the network device 100 from the first outgoing interface. In addition, the networking device can receive a multicast packet arriving at the networking device at the first interface, subscribe to the first group, and initiate the second source from the direction of the second stream. This also means that it will leave the networking device from the first outgoing interface. Therefore, these packets require two flow entries, but follow the same path in the networking device.

[0031] Instructions 115 can be executed by processing resource 101 to program the summary flow into the hardware resources of the programmable hardware resources. The summary flow is not a new flow determined by the multicast protocol based on the received new multicast packet. Instead, the summary flow can represent at least two flows that have been determined by the multicast protocol. The flow represented by the summary flow has been programmed into the programmable hardware resources. In some examples, the flow represented by the summary flow has a matching incoming interface, a matching group, and a matching outgoing interface. The source of the represented flow does not have to match.

[0032] For example, as discussed above, a programmable hardware resource may be programmed with a first stream and a second stream. The first stream may have a first incoming interface, a first group, a first source, and a first outgoing interface. The second stream may include an incoming interface that is the same as the first incoming interface, a group that is the same as the first group, and an outgoing interface that is the same as the first outgoing interface. However, the second stream may include a second source that is different from the first source. Therefore, a summary stream may represent the first stream and the second stream. The summary stream includes a first incoming interface, a first group, and a first outgoing interface. For its source, the summary stream may include a wildcard that allows the programmable hardware resource to match any source, including the first source and the second source. In other words, the summary stream is agnostic to the source of the multicast packet. Therefore, a third multicast packet received by the networking device 100, entering the networking device 100 from a third source through the first incoming interface, and subscribing to the first group will "match" the summary stream, and will be processed by the rules of the summary stream without the need for a new stream for the third source.

[0033] In some examples, instruction 115 is composed of instructions executable by processing resource 100 to determine whether the flow entries in the routing table filled by the multicast protocol match each other. These instructions can be realized by finding a flow with the same group and the same incoming interface. These results can be stored in a source table, which associates the number of matching flows with a pair of incoming interfaces and groups. For example, when a new flow is determined by a multicast protocol, the source table can be searched to determine whether there is an entry for a specific pair of incoming interfaces and groups. On the basis of determining that there are entries in the source table, the count of the number of sources can be incremented. In some examples, a specific source can also be stored so that the source table can track the source of the pair attached to a specific incoming interface and group. In some examples, the summary flow is programmed based on determining that the number of sources associated with a specific pair and the incoming interface reaches a predetermined threshold. The predetermined threshold can be based on the resources of the networked device. For example, in a system on a programmable hardware resource with a larger storage medium, the threshold may be higher, and in a system on a programmable hardware resource with a smaller storage medium, the threshold may be lower.

[0034] In some examples, instructions 115 may consist of instructions executable by processing resource 101 to delete the flow represented by the summary flow from the hardware memory resources of the programmable hardware resources. In the examples of the first and second flows discussed above, these flows are deleted from the programmable hardware resources.

[0035] Tables 1-4 provide examples of forwarding tables stored on a hardware memory resource of a programmable hardware resource. Table 1 includes 5 flows. Each flow includes an incoming interface, a source, a group, and at least one outgoing interface.

[0036] Table 1

[0037] flow Incoming interface source Group Outgoing interface 1 vlan 10 10.10.10.1 239.1.1.1 vlan20,vlan30,vlan40 2 vlan 50 20.20.20.1 239.1.1.1 vlan20,vlan30,vlan40 3 vlan 60 10.10.10.1 239.1.1.2 vlan20,vlan30 4 vlan 10 20.20.30.2 239.1.1.1 vlan20,vlan30,vlan40 5 vlan 60 50.50.50.1 239.1.1.2 vlan20,vlan30

[0038] Networking device 100 may receive a multicast packet, which may be described as a "first" multicast packet. The flow (the "first" flow) is determined by a multicast protocol, is entered in the routing table of the multicast protocol, and is programmed into the forwarding table of the programmable hardware resources of networking device 100. Thus, Table 1 becomes Table 2, with flow 6 (the "first" flow) shown below. Flow 6 has an incoming interface of vlan10 (characterized as the first incoming interface), a source of 30.30.30.1 (characterized as the first source), a group of 239.1.1.1 (characterized as the first group), and outgoing interfaces of vlan20, vlan30, and vlan40 (characterized as a list of first outgoing interfaces). Flow 6 has a matching incoming interface, a matching group, and an outgoing interface that matches flows 1 and 4. Flow 6, flow 1, and flow 4 each have different sources. If flow 1 is characterized as a "second" flow, its source may be characterized as the second source (10.10.10.1). If flow 4 is characterized as a "third" flow, its source can be characterized as the third source (20.20.30.2). Flow 6 does not match flow 2 because it has a different incoming interface (even though flow 6 has the same group as flow 2). The incoming interface of flow 2 can be characterized as the "second" incoming interface to distinguish it from the incoming interface of flow 6.

[0039] Table 2

[0040] flow Incoming interface source Group Outgoing interface 1 vlan 10 10.10.10.1 239.1.1.1 vlan20,vlan30,vlan40 2 vlan 50 20.20.20.1 239.1.1.1 vlan20,vlan30,vlan40 3 vlan 60 10.10.10.1 239.1.1.2 vlan20,vlan30 4 vlan 10 20.20.30.2 239.1.1.1 vlan20,vlan30,vlan40 5 vlan 60 50.50.50.1 239.1.1.2 vlan20,vlan30 6 vlan 10 30.30.30.1 239.1.1.1 vlan20,vlan30,vlan40

[0041] Based on determining that the predetermined threshold of the flow is matched (in this example, the predetermined threshold is 3), the summary flow can be programmed into the programmable hardware resources so that Table 2 becomes Table 3.

[0042] Table 3

[0043] flow Incoming interface source Group Outgoing interface 1 vlan 10 10.10.10.1 239.1.1.1 vlan20,vlan30,vlan40 2 vlan 50 20.20.20.1 239.1.1.1 vlan20,vlan30,vlan40 3 vlan 60 10.10.10.1 239.1.1.2 vlan20,vlan30 4 vlan 10 20.20.30.2 239.1.1.1 vlan20,vlan30,vlan40 5 vlan 60 50.50.50.1 239.1.1.2 vlan20,vlan30 6 vlan 10 30.30.30.1 239.1.1.1 vlan20,vlan30,vlan40 7 vlan 10 * 239.1.1.1 vlan20,vlan30,vlan40

[0044] A summary flow, such as flow 7 shown in Table 3, has an incoming interface of flow 6 (first incoming interface), a group of flow 6 (first group), and an output interface of flow 6 (list of first outgoing interfaces). The source of a summary flow is a wildcard that matches multiple sources, such as the sources of flow 1, flow 4, and flow 6.

[0045] Flow 1, Flow 4, and Flow 6 can be deleted from the forwarding table, so that Table 3 becomes Table 4. Table 4 shows the new number of the flow with the old number of the flow in parentheses. In the case of deleting Flow 1, Flow 4, and Flow 6 from Table 3, in Table 4, the summary flow (Flow 7 from Table 3) becomes Flow 4.

[0046] Table 4

[0047] flow Incoming interface source Group Outgoing interface 1(2) vlan 50 20.20.20.1 239.1.1.1 vlan20,vlan30,vlan40 2(3) vlan 60 10.10.10.1 239.1.1.2 vlan20,vlan30 3(5) vlan 60 50.50.50.1 239.1.1.2 vlan20,vlan30 4(7) vlan 10 * 239.1.1.1 vlan20,vlan30,vlan40

[0048] Utilizing flow 4 in the forwarding table of the programmable hardware resources, the networking device 100 can process multicast packets that were previously processed by flow 1 (in table 3), flow 4 (in table 3), and flow 6 (in table 3). For example, a new multicast packet received by the networking device 100 that enters through the incoming interface vlan10 has a source from 10.10.10.1, and for the group 239.1.1.1 will be processed by the summary flow (flow 4) of table 4. The networking device 100 can also process multicast packets that match the incoming interface and group of the summary flow (flow 4). For example, the new multicast packet comes from the incoming interface vlan10, has a group of 239.1.1.1, and a source that is not in flow 1, flow 4, or flow 6 in table 3. This new multicast packet will also be processed by the hardware programmed device without the involvement of the multicast protocol because it will match the summary flow (flow 4 in table 4).

[0049] In Table 4, flows 2 and 3 also match each other (because they have matching incoming interfaces and groups). However, in this example, they are not represented by a summary flow because the predetermined number of flows (3) is not met. In other examples, where the predetermined number of flows is lower, flows 2 and 3 can be represented by another summary flow and then deleted from the forwarding table.

[0050] The examples herein discuss summary flows that represent a first stream and a second stream. This does not exclude summary flows that represent additional streams (e.g., a third stream, a fourth stream, etc.) that have similar incoming interfaces, similar groups, and outgoing interfaces as the first stream. This means that a wildcard can match a first source, a second source, and a third source, etc. In some examples, summary flows that represent a greater number of separate streams allow for greater protection of hardware memory resources than summary flows that represent a smaller number of separate streams.

[0051] Therefore, this allows saving space on hardware memory resources of programmable hardware resources without removing packet processing functionality. This is because packets that should have been processed by the first flow or the second flow are processed by the summary flow. In some examples, the flows represented in the summary flow are not deleted from the routing table. This allows the functionality of the multicast protocol to remain unchanged.

[0052] Figure 1 The networked device 100, which is described in terms of a processor and a machine-readable storage medium, may include Figure 2 Networked device 200 or Figure 3One or more structural or functional aspects of switch 300 are described in terms of an engine comprising hardware and software.

[0053] Figure 2 2 is a block diagram of a networking device 200 for programming hardware memory resources with profile flows. The networking device 200 includes a multicast protocol engine 201, a hardware programming engine 202, a hardware packet processing engine 203, and a hardware memory resource 213. Other engines may be added to the networking device 200 for additional or alternative functions. The hardware programming engine 202 may interface with the hardware packet processing engine 203 and the hardware memory resource 203 to program the hardware memory resource. The hardware memory resource 213 may include a high-performance storage medium (e.g., a TCAM) physically located near the hardware packet processing engine 203. In some examples, the hardware memory resource 213 may be located on the hardware packet processing engine 203. In some examples, the hardware memory resource 213 may store forwarding information that allows the hardware packet processing engine 203 to process packets without the participation of the multicast protocol engine 201.

[0054] Networked device 200 may be connected to network 250. Network 250 may include other computing devices, including networked device 200, that are similar to networked device 200.

[0055] Each engine 201, 202 and 203 can be any combination of hardware (e.g., a processor such as an integrated circuit or other circuit) and software (e.g., machine or processor executable instructions, commands, or code, such as firmware, programming or object code) to implement the functionality of the corresponding engine. This combination of hardware and software can be implemented in a number of different ways. The combination of hardware and software can include hardware (e.g., hardware elements without software elements), software hosted on hardware (e.g., software stored in a memory and executed or interpreted on a processor), or hardware and software hosted on hardware. In addition, as used herein, the singular forms "one" and "the" include plural references unless the context clearly dictates otherwise. Thus, for example, the term "engine" is intended to mean at least one engine or a combination of engines. In some examples, however, the hardware packet processing engine 203 includes an integrated circuit, such as an ASIC, a field programmable gate array (FPGA) designed for packet processing, and the like.

[0056] Each engine of the network 200 may include at least one machine-readable storage medium (e.g., more than one) and at least one computing computer processor (e.g., more than one). For example, software that provides engine functionality in a networked device may be stored on a memory of the networked device 200 to be executed by a processor of the networked device 200. Compared to the storage medium associated with the multicast protocol engine 201 or the hardware programming engine 202, the hardware memory resources 213 may be more limited in space and faster.

[0057] The multicast protocol engine 201 includes a combination of hardware and software that allows the networked device 200 to receive a first multicast packet. In some examples, the multicast engine 201 can be an SSDP engine. SSDP can be used for network service discovery as well as network service broadcasting. For example, an application on a computing device can send an M-search message when it accesses a network in an attempt to discover services available on the network. In some examples, the advertisement message can also be a multicast packet.

[0058] The multicast protocol engine 201 also allows the networking device 200 to determine a first flow for the first multicast packet. The multicast protocol engine 201 determines the flow for the first multicast packet if no flow programmed in the hardware memory resources 213 matches the first multicast packet. As discussed above, the first flow may include fields such as an incoming interface, a source, a group, and at least one outgoing interface.

[0059] The multicast protocol engine 201 also allows the networking device 200 to store the first flow in a routing table. The routing table is stored on a storage medium accessible to the multicast protocol engine 201, which is different and separate from the hardware memory resource 213. The routing table includes a path that has been determined by the multicast protocol engine 201, including a second flow similar to the first flow. The second flow may include an incoming interface, a source, a group, and at least one outgoing interface. Because its incoming interface matches the incoming interface of the first flow, it can be characterized as a first incoming interface. Similarly, because its group matches the group of the first flow, the second flow can be characterized as including the first group. And, because its outgoing interface matches the outgoing interface of the first flow, the second flow can be characterized as including the first outgoing interface. The source of the second flow is different from the source of the first flow, so the second flow is characterized as including the second source. The multicast protocol engine 201 can interface with the hardware programming engine 202 so that its flow determination is communicated to the hardware programming engine 202.

[0060] Thus, the hardware programming engine 202 includes a combination of hardware and software that allows the networking device 200 to program the first flow into the hardware memory resource 213. For example, the hardware programming engine 202 may interact with the hardware memory resource 213 or an egress interface of the hardware packet processing engine 203. At the time of programming, the second flow has already been programmed into the hardware memory resource 213. Thus, after programming the first flow, the hardware memory resource 213 will have the first flow and the second flow programmed thereon.

[0061] The hardware programming engine 202 also allows the networking device 200 to track the number of flows having the same incoming interface and the same group determined by the multicast protocol engine 201. In other words, the hardware programming engine 202 can determine that the first flow and the second flow have the same incoming interface and the same group, and therefore can be represented by the summary flow.

[0062] As discussed above, in some examples, this can be accomplished by tracking the specific source associated with the incoming interface and group in the source table and the number of sources. When the multicast protocol engine 201 deletes the first stream, the hardware programming engine 202 can query the source table to determine whether there is a stream with a specific pairing of the incoming interface and group. On the basis of determining that there is an entry in the source table, the count of the source can then be incremented by one, and / or tracking a new source. On the basis of determining that there is no pairing, a new entry is then created in the source table to track the stream with the specific pairing of the incoming interface and group. The source table is not stored in the hardware memory resource 213, but is stored on a storage medium accessible to the hardware programming engine 202. In some examples, it is determined that the first stream and the second stream can be represented by a summary stream based on the first stream and the second stream having the same incoming interface, the same group and the same outgoing interface. In these examples, the source table tracks the number and source of the sources associated with a specific combination of the group, the incoming interface and the outgoing interface.

[0063] The hardware programming engine 202 can program the summary flow into the hardware memory resource 213. The summary flow can include a first incoming interface, a first group, and a first outgoing interface. The summary flow can also include a wildcard that matches at least the first source and the second source. In some examples, the wildcard can match any source (i.e., the summary flow is source agnostic).

[0064] The hardware programming engine 202 can delete the first flow and the second flow from the hardware memory resource 213. In some examples, the deletion is completed after the summary flow is programmed into the hardware memory resource. The hardware programming engine 202 can also determine that other flows programmed into the hardware memory resource 213 match the summary flow and delete those flows from the hardware memory resource 213.

[0065] Hardware packet processing engine 203 includes a combination of hardware and software that allows networking device 200 to efficiently process received multicast packets without involving multicast protocol engine 201. In some examples, hardware packet processing engine 203 includes an ASIC.

[0066] When a new multicast packet arrives, the hardware packet processing engine 203 can determine whether the multicast packet can be processed by the stream programmed into the hardware memory resources 213. Based on the determination that the new multicast packet can be processed by the stream, the packet will be processed by the stream without involving the multicast protocol engine 201. For example, the networking device 200 can receive a new multicast packet subscribing to the first group from the first incoming interface. The hardware packet processing engine 203 determines that the new multicast packet matches the summary stream programmed into the hardware memory resources 213, and processes the multicast packet based on the summary stream. Because the summary stream has a wildcard that matches any source, the source of the new multicast packet does not enter into the determination of whether the new multicast packet matches the summary stream. Therefore, the new multicast packet is processed by the summary stream and leaves the networking device through the first outgoing interface.

[0067] Figure 2 The networked device 200, which is described in terms of an engine comprising hardware and software, may include Figure 1 A networked device 100, or Figure 3 One or more structural or functional aspects of switch 300.

[0068] Figure 3 3 is a block diagram of a switch 300. The switch 300 conceptually includes a management plane 310, a control plane 320, and a data plane 330. The switch 300 can be connected to a network ( Figure 3 Management plane 310 may be used by a network administrator to manage switch 300, including setting configuration, using a command line interface (CLI), a graphical user interface (GUI), or the like.

[0069] The control plane 320 includes components for determining the flow of packets through the switch 300. The control plane 320 may include a multicast protocol engine 321 and a hardware programming engine 323.

[0070] The multicast protocol engine 321 is similar to the multicast protocol engine 201 and includes a routing table 322. The routing table 322 can store flows for multicast packets, which are determined by the multicast protocol engine 321 based on the multicast protocol engine's understanding of its networking environment (e.g., its neighbors, network conditions, etc.). These flows can be programmed into the data plane 330 on the ASIC 341 so that the next time a similar packet is received, the packet can be processed without involving the multicast protocol engine 321.

[0071] Hardware programming engine 323 is similar to hardware programming engine 202 and includes a source table 324. Source table 324 can track how many sources are associated with a particular pair of incoming interface and group. In some examples, when there are a predetermined number of sources associated with a particular pair of incoming interface and group, hardware programming engine 323 can program summary flows representing those flows into data plane 330 and delete those flows from data plane 330, leaving additional space on ASIC 341 for different flows.

[0072] The data plane 330 may include an ASIC 341, which may include hardware memory resources ( Figure 3 The summary flow is not shown in Figure 3 and is used to store flows in a forwarding table. Future data packets of the same type received by the switch 300 can be processed (e.g., routed) by the data plane using the same path. This allows components in the control plane to focus on other processing matters. In addition, packets that match the summary flow will be processed by the summary flow. The matching of packets to the summary flow includes matching the incoming interface and group of the packet to the summary flow. The summary flow includes a wildcard for the source field so that any source can be captured by the summary flow.

[0073] Switch 300, which is described in terms of an engine comprising hardware and software, may include Figure 1 100 or more networked devices Figure 2 One or more structural or functional aspects of the networking device 200.

[0074] Figure 4 4. A flow chart of a method 400 for determining that a flow belongs to a summary flow is shown. Although the execution of the method 400 is described with reference to the networked device 200, other suitable devices may be used for the execution of the method 400 (eg, Figure 1 100 networked devices, Figure 3 switch 300, etc.).

[0075] In step 410, the multicast protocol engine 201 receives a first multicast packet. In some examples, the multicast packet may be an M-search packet of SSDP.

[0076] At step 420, the multicast protocol engine 201 determines a first flow for the first multicast packet based on the multicast protocol. In some examples, the multicast protocol may be SSDP. The first flow may include a first incoming interface, a first source, a first group, and a first outgoing interface. At step 430, the multicast protocol engine 201 stores the first flow in a routing table of the multicast protocol engine 201. The routing table may already contain other flows previously determined by the multicast protocol engine 201. One of the flows may be a second flow. The second flow includes an incoming interface, a source, a group, and at least one outgoing interface.

[0077] At step 430, the hardware programming engine 202 programs the first stream into the hardware memory resource 213. The hardware memory resource 213 is already programmed with the second stream. At step 440, the hardware programming engine 202 determines that the first incoming interface of the first stream matches the incoming interface of the second stream. In other words, the incoming interface of the second stream is the same as the incoming interface of the first stream. At step 450, the hardware programming engine 202 determines that the first group of the first stream matches the group of the second stream. In other words, the group of the second stream is the same as the first group of the first stream. In some examples, the hardware programming engine 202 also determines that the list of outgoing interfaces of the first stream is the same as the list of outgoing interfaces of the second stream. Based on these three matches, the hardware programming engine 202 can determine that the first stream and the second stream can be represented by summary streams.

[0078] In step 470, the hardware programming engine 202 programs the summary flow into the hardware memory resource 213. The hardware programming engine 202 may determine the incoming interface of the summary flow by using the matching first incoming interface of the first flow and the second flow. The hardware programming engine 202 may determine the group of the summary flow by using the matching group of the first flow and the second flow. The hardware programming engine 202 may determine the outgoing interface by using the matching outgoing interface of the first flow and the second flow. Therefore, the summary flow includes the incoming interface, the group, and the outgoing interface of the first flow. The hardware programming engine 202 uses a wildcard for the source field of the summary flow.

[0079] At step 480, the hardware programming engine 202 deletes the first stream from the hardware memory resource 213. In some examples, the hardware programming engine 202 deletes the second stream from the hardware memory resource 213. In some examples, the deletion is performed after programming the summary stream into the hardware memory resource 213. In some examples, the first stream and the second stream are not changed in the routing table of the multicast protocol engine 201.

[0080] Although, Figure 4 The flowchart of the method 400 shows a specific order of performance of certain functions, and the method 400 is not limited to this order. For example, some functions displayed in succession can be performed in a different order, can be performed concurrently or partially concurrently, or a combination thereof. In some examples, the functions described herein are Figure 4 Related functionality may be provided to combine any of the Figure 1-3 Functions related to 5.

[0081] Figure 5 Flowchart of method 500 for determining when a summary flow is programmed into a programmable hardware resource. Although the execution of method 500 is described with reference to switch 300 below, other suitable devices may be used for execution of method 400 (e.g., Figure 1 100 networked devices, Figure 2 networking device 200, etc.).

[0082] At step 510, the multicast protocol engine 321 receives a multicast packet. This can be characterized as a first multicast packet. At step 520, the multicast protocol engine 321 determines a first flow for the first multicast packet based on the multicast protocol. The flow includes a first incoming interface, a first source, a first group, and a first list of outgoing interfaces. At step 530, the multicast packet engine 321 stores the first flow in the routing table 322. The routing table 322 may already contain other flows previously determined by the multicast protocol engine 321, including flows with fields that match the fields of the first flow. One of the matching flows can be characterized as a second flow. The second flow can include an incoming interface that is the same as the first incoming interface, a group that is the same as the first group, and a list of outgoing interfaces that is the same as the first list of outgoing interfaces. Therefore, the second flow can be characterized as including the first incoming interface, the first group, and the first list of outgoing interfaces. The second flow can include a source that is different from the first source. Therefore, the second flow can be characterized as including a second source.

[0083] At step 540, the hardware programming engine 323 may program the first flow into the ASIC 341 including the hardware memory resources. The hardware memory resources may be programmed with the second flow.

[0084] Step 551, the hardware programming engine 323 can store the association of the first source to the first group and the first incoming interface in the source table 324. The source table 324 can track which sources are associated with which groups and incoming interface pairs. For example, the source table 324 may have stored a second source associated with the first group and the first incoming interface, because this relationship is dictated by the second flow, and the second flow is determined by the multicast protocol engine before determining the first flow. In some examples. The source table can also track the outgoing interface. In some examples, the association will be the association of the first source to the triplet (the first group, the first incoming interface, and the first list of outgoing interfaces). In these examples, the first flow must match the second flow in the incoming interface, group, and (multiple) outgoing interface to be considered a match.

[0085] At step 552, the hardware programming engine 323 determines whether the number of sources associated with the (group, incoming interface) pair exceeds a certain pre-set threshold. Based on determining that the number of sources is at or below a certain pre-set threshold, the method 500 moves to 590. At step 590, the hardware programming engine 323 maintains the first flow and the second flow in the hardware memory resources of the ASIC 341. This is because there are not enough flows for the summary flow to be programmed.

[0086] Based on determining that the number of sources is above a certain pre-set threshold, method 500 moves to 560. At step 560, hardware programming engine 323 programs a summary flow into ASIC 341. The summary flow includes a first incoming interface, a first group, and a first list of outgoing interfaces. The summary flow includes a wildcard character that matches a certain number of sources previously associated at step 552.

[0087] In step 570, the hardware programming engine deletes the first flow and the second flow from the ASIC 341. In step 580, the multicast protocol engine 231 maintains the first flow and the second flow in the routing table 322. In other words, by summarizing the flows in the ASIC 341, the function of the multicast protocol engine is not changed.

[0088] Although, Figure 5 The flowchart of the method 500 shows a specific ordering of the performance of a certain function, and the method 500 is not limited to this ordering. For example, some functions displayed in succession can be performed in a different order, can be performed concurrently or partially concurrently, or a combination thereof. In some examples, the functions described herein are Figure 5 Related functionality may be provided to combine any of the Figure 1-4 Related functions. Method 500 may also include additional steps not shown.

[0089] All features disclosed in this specification (including any accompanying claims, abstract and drawings) and / or all elements of any disclosed method or process may be combined in any combination, unless at least some of the features and / or elements in the combination are mutually exclusive.

Claims

1. A non-transitory machine-readable storage medium comprising instructions that, when executed, cause a processing resource to: receiving a first multicast packet; determining a first flow for the first multicast packet based on a multicast protocol, wherein the first flow includes a first source and a first group; storing the first flow in a routing table, wherein the routing table includes a second flow, the second flow including a second source and the first group; programming the first stream into a hardware memory resource, wherein the hardware memory resource includes the second stream; programming a summary flow into the hardware memory resource based on determining that a number of flows in a forwarding table on the hardware memory resource that include a match for the first flow reaches a predetermined threshold, wherein the summary flow includes a wildcard that matches the first source and the second source, and the flows in the forwarding table that include a match for the first flow include a same group and a same incoming interface as the first flow; receiving a second multicast data packet; determining that the second multicast data packet matches the summary flow in the hardware memory resource; and The second multicast data packets are processed according to the summary flow.

2. The non-transitory machine-readable storage medium of claim 1 , comprising instructions that, when executed, cause the processing resource to: The first stream is deleted from the hardware memory resource.

3. The non-transitory machine-readable storage medium of claim 2, comprising instructions that, when executed, cause the processing resource to: Maintaining the first flow in the routing table. The non-transitory machine-readable storage medium of claim 1 , wherein the summary stream comprises the first group. 5 . The non-transitory machine-readable storage medium of claim 1 , wherein the first flow comprises a first incoming interface and the second flow comprises the first incoming interface. The non-transitory machine-readable storage medium of claim 5 , wherein the summary flow comprises the first incoming interface. 7 . The non-transitory machine-readable storage medium of claim 1 , wherein the first flow comprises an outgoing interface, the second flow comprises the outgoing interface, and the summary flow comprises the outgoing interface.

8. A networked device comprising: Multicast protocol engine for: receiving a first multicast packet; determining a first flow for the first multicast packet, wherein the first flow includes a first group; as well as storing the first flow in a routing table, wherein the routing table includes a second flow, the second flow including the first group; Hardware memory resources; as well as Hardware programming engine for: programming the first stream into the hardware memory resource; determining a summary flow for the first flow and the second flow; programming the summary flow to the hardware memory resource based on determining that a number of flows in a forwarding table on the hardware memory resource that include a match for the first flow reaches a predetermined threshold, wherein the flows in the forwarding table that include a match for the first flow include a same group and a same incoming interface as the first flow; as well as After programming the summary stream into the hardware memory resource, the first stream is deleted in the hardware memory resource.

9. The networking device of claim 8, wherein the hardware programming engine deletes the second flow from the hardware memory resource after programming the summary flow into the hardware memory resource.

10. The networking device according to claim 8, wherein the first stream comprises a first source; wherein the second stream comprises a second source; and The summary flow includes a wildcard representing the first source and the second source.

11. The networking device of claim 8, wherein the first stream is not programmed in the hardware memory resource before the first multicast packet is received.

12. The networking device of claim 8, comprising a hardware packet processing engine, wherein the multicast protocol engine is to receive a second multicast data packet; and The hardware packet processing engine will: determining that the second multicast data packet matches the summary flow in the hardware memory resource; and The second multicast data packets are processed according to the summary flow.

13. The networking device according to claim 8, wherein the first flow includes an incoming interface and an outgoing interface; wherein the second flow includes the incoming interface and the outgoing interface; and The summary flow includes the incoming interface and the outgoing interface.

14. A method comprising: receiving a first multicast packet; determining a first flow for the first multicast packet based on a multicast protocol, wherein the first flow includes an incoming interface, a first source, and a first group; storing the first flow in a routing table, wherein the routing table includes a second flow; programming the first stream into hardware memory resources; determining that the incoming interface of the first flow matches the incoming interface of the second flow; determining that the first group of the first stream matches a group of the second stream; programming a summary flow into the hardware memory resource based on determining that the number of flows that include a match for the first flow in a forwarding table on the hardware memory resource reaches a predetermined threshold, wherein the summary flow includes the incoming interface and the first group for the first flow, and the flows that include a match for the first flow in the forwarding table include the incoming interface and the first group for the first flow; as well as After programming the summary stream to the hardware memory resource, the first stream is deleted from the hardware memory resource.

15. The method according to claim 14, comprising: The first flow is maintained in the routing table.

16. The method of claim 14, wherein the programming of the summary flows into the hardware memory resources is based on a number of flows in the routing table reaching a predetermined threshold.

17. The method according to claim 14, comprising: receiving a second multicast packet; determining that the second multicast packet matches the summary flow; as well as The second multicast packet is processed according to the summary flow.

18. The method of claim 14, wherein the multicast protocol is Simple Service Discovery Protocol (SSDP).

Citation Information

Patent Citations

  • Patch method supporting multi-broadcasting video ordering system interactivity

    CN1296358A

  • Flow record restriction apparatus and the method

    US20100070647A1

  • Source rooted multicast (SRM)

    US20130343384A1

  • Hybrid virtual load balancer

    US20170126790A1

  • Flow Entry Aggregation Method and Related Network System

    US20180198719A1