Network switch, control program and control method
The network switch design addresses performance issues by using an FPGA for packet transfer and a processor for statistical management, preventing wasteful flush processing and maintaining active flows, thereby enhancing network switch performance.
Patent Information
- Application Number
- JP2020132584
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2020-08-04
- Publication Date
- 2024-09-26
- Estimated Expiration
- 2040-08-04
AI Technical Summary
Offloading the packet transfer function to an FPGA in a virtual network switch results in difficulties in collecting statistical information and leads to performance degradation due to unnecessary flush processing and flow deletions, as the FPGA cannot manage idle times and MAC addresses effectively.
A network switch design that includes an FPGA and a processor, where the FPGA handles packet transfer based on transfer definition information, while a processor manages statistical information and updates the transfer definition information using a copy of the packet, preventing wasteful flush processing and maintaining active flows in the FIB.
This approach prevents performance degradation by managing statistical information and maintaining active flows, ensuring high-speed packet transfer without regular age-out deletions, thus improving overall network switch performance.
Smart Images

Figure 0007556227000010 
Figure 0007556227000002 
Figure 0007556227000007
Abstract
Description
[Technical field]
[0001] The present invention relates to a network switch, a control program, and a control method. [Background technology]
[0002] In recent years, virtual network switches that realize the function of a switch in a network by software have become known. A virtual network switch may also be called a software switch.
[0003] A virtual network switch forms a virtual switch in, for example, a hypervisor-type virtualization environment or a container environment, and realizes communication paths for physical switches, virtual machines (VMs), containers, and the like. The computer then executes a program for implementing the virtual network switch, thereby implementing the functions of the virtual network switch.
[0004] For example, Open vSwitch (registered trademark) is known as a program for implementing a virtual network switch. Open vSwitch implements a virtual network switch compatible with Open Flow, an OSS (Open Source Software). Hereinafter, a processing unit that implements the function of a virtual network switch on a computer may be referred to as a virtual network switch processing unit.
[0005] In a virtual network switch, a packet received at a physical port is forwarded to, for example, a virtual port of a virtual machine that is the destination of the packet by referring to a Forwarding Information Base (FIB). The FIB is used as routing information for controlling packet forwarding.
[0006] The FIB is configured, for example, as a table having a plurality of entries, and each entry has a rule and an action. An entry in the FIB may be called a flow. The FIB is set by the virtual network switch processing unit.
[0007] When processing multiple packets related to one flow, the virtual network switch processing unit sets the destination resolution result in the FIB when processing the first packet. Then, for subsequent packets, it refers to the FIB and executes the action associated with the flow rule set in the FIB.
[0008] It is also known that virtual network switches have a function for collecting statistical information for each flow, such as idle time indicating the time elapsed since the last use, and the number of transmitted / received bytes.
[0009] In recent years, processors have been appearing that integrate a CPU (Central Processing Unit) with an FPGA (Field Programmable Gate Array). In such processors that integrate an FPGA, it is possible to share consistent data between the CPU and FPGA via memory (main memory) with low latency.
[0010] When a computer equipped with a processor integrated with such an FPGA is made to function as a virtual network switch, it can achieve performance on a par with that of a physical switch by having the FPGA perform packet forwarding. In other words, by offloading the packet forwarding function, which is one of the functions realized by the virtual network switch control unit, to the FPGA, it is possible to speed up packet forwarding.
[0011] For example, when transferring a packet, if the flow of that packet is registered in the FIB, the FPGA can refer to this FIB and transfer the packet by itself, thereby enabling packet transfers to be processed at high speed. [Prior art documents] [Patent documents]
[0012] [Patent Document 1] JP 2018-117193 A [Patent Document 2] JP 2017-174301 A Summary of the Invention [Problem to be solved by the invention]
[0013] However, when the packet forwarding function is offloaded to an FPGA, it is difficult to collect statistical information. In theory, when the packet forwarding function is offloaded to an FPGA, it is possible to collect statistical information by, for example, adding an area for statistical information to the FIB in the main memory.
[0014] However, in this case, the FIB needs to be updated every time a packet is processed, which increases the bandwidth used to access the FIB from the FPGA and reduces throughput.
[0015] It is also possible to store the FIB in the FPGA memory. However, even if the data size of the statistical information is 1 bit, the number of entries in the flow table is 2,000,000, so the data size of the statistical information is huge at 2,000,000 bits. Therefore, due to the limitations of the circuit scale of the FPGA, it is not possible to store the FIB in the FPGA memory.
[0016] If statistical information cannot be collected in the virtual network switch, a drawback occurs in that unnecessary flows cannot be efficiently deleted from the FIB.
[0017] In the FIB, for example, it is necessary to delete flows for which forwarding processing has been completed. In conventional virtual network switches, flows are deleted based on idle time.
[0018] However, in a virtual network switch implemented by a computer equipped with a processor integrated with an FPGA, the packet forwarding function is offloaded to the FPGA, so the virtual network switch software cannot obtain idle time.
[0019] Therefore, instead of using idle time, it is possible to utilize the MAC (Media Access Control) address aging-out function and perform a flush process to delete the flow from the FIB when there is no communication with the source or destination MAC address of the flow for a specified period of time (e.g., 300 seconds) (aging-out).
[0020] However, when the packet forwarding function is offloaded to the FPGA, packets do not reach the virtual network switch software. On the other hand, MAC address management is performed by the virtual network switch software, but since packets do not reach this software, the validity period of the MAC address is not updated. Therefore, aging out occurs every predetermined time (e.g., 300 seconds) for all flows, and the associated flush process causes even active flows that are not idle to be deleted from the FIB.
[0021] This means that even non-idle, active flows cannot be offloaded to the FPGA, resulting in fragmented performance degradation. If a packet matching the flow arrives again, the FIB is reconfigured and the flow is offloaded again, but the packet itself is processed by the virtual network switch software, resulting in performance degradation. In one aspect, the present invention has an object to prevent unnecessary flushing and transfer definition information resetting processes from occurring, thereby avoiding a decrease in performance. [Means for solving the problem]
[0022] Therefore, in this network switch having an FPGA (Field Programmable Gate Array) and a processor, the FPGA functions as a first packet forwarding control unit that forwards a packet to be processed to a destination based on forwarding definition information, and a second packet forwarding control unit that forwards a copy of the packet to be processed to the processor, and the processor functions as a first update processing unit that deletes an entry of the forwarding definition information based on forwarding performance information, and a second update processing unit that updates the forwarding performance information based on the copy of the packet to be processed. Furthermore, when a request for immediate deletion of an entry in the forwarding definition information has not been issued for a source or destination for which a packet no-forwarding time is equal to or greater than a threshold in the forwarding history information, the processor sets a virtual port of the first update processing unit as a forwarding destination of the packet to be processed in the forwarding definition information, thereby causing the second packet forwarding control unit to forward a copy of the packet to be processed, the second update processing unit updates the forwarding history information based on the forwarded copy of the packet to be processed, the second update processing unit discards the copy of the packet to be processed after updating the forwarding history information, the processor deletes the virtual port of the first update processing unit that was set as the forwarding destination of the packet to be processed from the forwarding definition information, thereby causing the second packet forwarding control unit to cancel forwarding of the copy of the packet to be processed, and the first packet forwarding control unit forwards the packet to be processed to the destination based on the forwarding definition information. Effect of the Invention
[0023] According to one embodiment, it is possible to prevent unnecessary flushing and unnecessary transfer definition information resetting, thereby avoiding a decrease in performance. [Brief description of the drawings]
[0024] [Figure 1] FIG. 1 is a diagram illustrating a hardware configuration of a network switch according to an embodiment; [Diagram 2] FIG. 2 is a diagram illustrating an example of a functional configuration of a network switch according to an embodiment; [Diagram 3] 1 is a diagram illustrating an example of a MAC learning table in a network switch as an example of an embodiment; [Figure 4] 1 is a flowchart illustrating packet processing in a network switch as an example of an embodiment. [Diagram 5] 1 is a flowchart illustrating an overview of a flow deletion process in a network switch as an example of an embodiment. [Figure 6] 11 is a flowchart illustrating a GC process in a network switch as an example of an embodiment. [Figure 7] FIG. 11 is a sequence diagram illustrating a process of deleting an active flow in a network switch according to an embodiment. [Figure 8] 11 is a sequence diagram illustrating a process of deleting an idle flow in a network switch according to an embodiment; FIG. [Figure 9] FIG. 1 illustrates a packet forwarding process when aging out occurs in a conventional network switch. [Figure 10] FIG. 1 illustrates a packet forwarding process in a network switch according to an embodiment; DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0025] Hereinafter, an embodiment of the present network switch, control program, and control method will be described with reference to the drawings. However, the embodiment shown below is merely an example, and there is no intention to exclude the application of various modified examples and techniques not explicitly stated in the embodiment. In other words, this embodiment can be implemented with various modifications within the scope of its purpose. Furthermore, each figure is not intended to include only the components shown in the figure, but can include other functions, etc.
[0026] (A) Configuration FIG. 1 is a diagram illustrating a hardware configuration of a network switch 1 according to an embodiment.
[0027] The network switch 1 is an information processing device (computer) and includes, for example, an FPGA integrated processor 11, a memory unit 12, a storage device 13, a graphics processing device 14, an input interface 15, an optical drive device 16, a device connection interface 17, and a network interface 18 as components. These components 11 to 18 are configured to be able to communicate with each other via a bus 19.
[0028] The FPGA integrated processor (processing unit) 11 controls the entire network switch 1. The FPGA integrated processor 11 is configured by integrating a CPU (processor) 11a and an FPGA 11b. For example, Intel's Xeon Gold 6138P is known as an FPGA integrated processor in which a CPU and an FPGA are integrated.
[0029] The CPU 11a may be a multiprocessor. The CPU 11a may be, for example, any one of a micro processing unit (MPU), a digital signal processor (DSP), an application specific integrated circuit (ASIC), and a programmable logic device (PLD). The CPU 11a may also be a combination of two or more of the following elements: a CPU, an MPU, a DSP, an ASIC, and a PLD.
[0030] The CPU 11a executes a control program (not shown) for the network switch 1, thereby realizing functions as a virtual network switch control unit 103 and a virtual machine (VM) 106, which will be described later with reference to FIG.
[0031] The network switch 1 realizes the functions of the virtual network switch control unit 103 and the virtual machine 106 by executing programs (control programs, OS programs) recorded on, for example, a computer-readable non-transitory recording medium.
[0032] The program describing the processing to be executed by the network switch 1 can be recorded on various recording media. For example, the program to be executed by the network switch 1 can be stored in the storage device 13. The CPU 11a loads at least a part of the program in the storage device 13 into a RAM (Random Access Memory) of the memory unit 12, which will be described later, and executes the loaded program.
[0033] The programs to be executed by the network switch 1 (CPU 11a) may also be recorded in a non-transitory portable recording medium such as an optical disk 16a, a memory device 17a, or a memory card 17c. The programs stored in the portable recording medium are installed in the storage device 13 under the control of the CPU 11a, for example, and then become executable. The CPU 11a may also directly read and execute the programs from the portable recording medium.
[0034] The FPGA11b is a device that can electrically change the circuit design of a digital circuit. The FPGA11b is an LSI (Large Scale Integration circuit) that has a large number of logic gates. The FPGA11b functions as a predetermined logic circuit by writing configuration data that describes the logical relationships and connection relationships between the logic gates to a configuration RAM (not shown) provided in the FPGA11b. In the present network switch 1, the FPGA 11b realizes the functions of a transfer control unit 101 and a packet transfer unit 102, which will be described later with reference to FIG.
[0035] The memory unit 12 is a storage memory including a ROM (Read Only Memory) and a RAM. The memory unit 12 is used as a main storage device of the network switch 1. The RAM temporarily stores at least a part of the program to be executed by the CPU 11a. The memory unit 12 also stores various data required for processing by the CPU 11a and the FPGA 11b. The RAM of the memory unit 12 may also store information constituting an FIB 104 and a MAC learning table 105, which will be described later.
[0036] The storage device 13 is a storage device such as a hard disk drive (HDD), a solid state drive (SSD), a storage class memory (SCM), etc., and stores various data. The storage device 13 stores an OS program, a control program, and various data.
[0037] As the auxiliary storage device, a semiconductor storage device such as an SCM or a flash memory can also be used. Furthermore, a plurality of storage devices 13 may be used to configure a RAID (Redundant Arrays of Inexpensive Disks).
[0038] A monitor 14a is connected to the graphics processing device 14. The graphics processing device 14 displays an image on the screen of the monitor 14a in accordance with an instruction from the CPU 11a. Examples of the monitor 14a include a display device using a CRT (Cathode Ray Tube) and a liquid crystal display device.
[0039] A keyboard 15a and a mouse 15b are connected to the input interface 15. The input interface 15 transmits signals sent from the keyboard 15a and the mouse 15b to the FPGA integrated processor 11. The mouse 15b is an example of a pointing device, and other pointing devices can also be used. Examples of other pointing devices include a touch panel, a tablet, a touch pad, and a trackball.
[0040] The optical drive device 16 uses a laser beam or the like to read data recorded on an optical disk 16a. The optical disk 16a is a portable, non-transient recording medium on which data is recorded so that it can be read by the reflection of light. Examples of the optical disk 16a include a DVD (Digital Versatile Disk), a DVD-RAM, a CD-ROM (Compact Disc Read Only Memory), and a CD-R (Recordable) / RW (ReWritable).
[0041] The device connection interface 17 is a communication interface for connecting peripheral devices to the network switch 1. For example, a memory device 17a or a memory reader / writer 17b can be connected to the device connection interface 17. The memory device 17a is a non-transitory recording medium equipped with a communication function with the device connection interface 17, such as a Universal Serial Bus (USB) memory. The memory reader / writer 17b writes data to a memory card 17c or reads data from the memory card 17c. The memory card 17c is a card-type non-transitory recording medium.
[0042] The network interface 18 is connected to a network. The network interface 18 transmits and receives data via the network. Other information processing devices, communication devices, etc. may be connected to the network.
[0043] FIG. 2 is a diagram illustrating a functional configuration of the network switch 1 as an example of an embodiment. As shown in FIG. 2, the network switch 1 includes a transfer control unit 101, a packet transfer unit 102, a virtual network switch control unit 103, and functions as a virtual machine 106.
[0044] As described above, the functions of the transfer control unit 101 and the packet transfer unit 102 are realized by the FPGA 11b. Moreover, the functions of the virtual network switch control unit 103 and the virtual machine 106 are realized by the CPU 11a. The number of virtual machines 106 is not limited to one, and can be changed as appropriate.
[0045] --Virtual Machine 106-- The virtual machine 106 is, for example, a virtual computer created on an application program such as a hypervisor. The virtual machine 106 executes various processes in the same manner as a computer realized by physical hardware. For example, the virtual machine 106 executes various OSs (guest OSs) and application programs that run on these guest OSs. The virtual machine 106 can be realized by a known method, and a description thereof will be omitted. Also, instead of the virtual machine 106, other virtualization infrastructure technologies such as containers may be used, and can be implemented with appropriate modifications.
[0046] The virtual machine 106 has a virtual port 108, and transmits and receives packets via this virtual port 108. A packet forwarding unit 102, which will be described later, transmits packets with this virtual port 108 as the destination.
[0047] --Transfer control unit 101-- The transfer control unit 101 controls the transfer of packets by the packet transfer unit 102. When the physical port 107 receives a packet, the transfer control unit 101 refers to the FIB 104 based on the flow of the packet, and checks whether the corresponding flow is set in the FIB 104. If the corresponding flow is set in the FIB 104, the transfer control unit 101 controls the packet transfer in accordance with the rules and actions of the corresponding flow. Sending Department 10 2 For example, the transfer control unit 101 determines a destination to which the packet is to be transferred by the packet transfer unit 102, and notifies the packet transfer unit 102 of the destination.
[0048] The FIB 104 is configured, for example, as a table with multiple entries, and each entry has a rule and an action. An entry in the FIB may be called a flow. The FIB is a virtual network switch (VNS). control Department 103 The FIB 104 is used as routing information for controlling packet forwarding, and corresponds to forwarding definition information.
[0049] Furthermore, if the corresponding flow is not set in the FIB 104, the transfer control unit 101 causes the packet transfer unit 102 to transmit the packet to the virtual network switch control unit 103. When the virtual network switch control unit 103 performs destination resolution for the packet and sets the flow of the packet in the FIB 104, the transfer control unit 101 causes the packet transfer unit 102 to process the packet according to the set flow.
[0050] --Packet forwarding unit 102-- The packet forwarding unit 102 forwards packets between the physical port 107 and the virtual port 108 of the virtual machine 106 in the network switch 1. For example, the packet forwarding unit 102 forwards (transmits) a packet received by the physical port 107 to a destination (the virtual port 108 of the virtual machine 106) determined by the forwarding control unit 101. That is, the packet forwarding unit 102 functions as a first packet forwarding control unit that forwards the processing target packet to the forwarding destination based on the FIB (forwarding definition information) 104.
[0051] Furthermore, the packet forwarding unit 102 forwards the packet to the destination port (virtual port 108) as well as to the virtual network switch control unit 103. That is, the packet forwarding unit 102 transmits the packet to the original destination port and to the virtual network switch control unit 103.
[0052] That is, the packet forwarding unit 102 functions as a second packet forwarding control unit that forwards a copy (mirror forwarded packet) of the packet to be processed to the virtual network switch control unit 103 (CPU 11a).
[0053] Hereinafter, the packet forwarding unit 102 may refer to a temporary mirror forwarding when it forwards a copy of a packet to the virtual network switch control unit 103 separately from its original destination port. Also, a packet forwarded to the virtual network switch control unit 103 by this temporary mirror forwarding may be referred to as a temporary mirror forwarded packet. Also, a flow to which this temporary mirror forwarded packet belongs may be referred to as a temporary mirror forwarding flow.
[0054] The packet forwarding unit 102 sets a tag (identification information) indicating that the packet is a temporary mirror transfer packet. This tagging may be performed, for example, by setting a flag in a specific area of the packet header.
[0055] The virtual network switch control unit 103 can detect that the received packet is a temporary mirror transfer packet by referring to the header of the packet.
[0056] In this network switch 1, packet transfer by the transfer control unit 101 and the packet transfer unit 102 in the FPGA 11b is sometimes referred to as offloading.
[0057] --Virtual network switch control unit 103-- The virtual network switch control unit 103 performs control to realize a function as a virtual network switch in the network switch 1. The virtual network switch realizes a software defined network (SDN). The virtual network switch control unit 103 may be realized by, for example, a function of Open vSwitch.
[0058] The virtual network switch control unit 103 uses the MAC learning table 105 to manage the idle time (time without packet transfer) of communication with the MAC address of the source or destination of the flow. FIG. 3 is a diagram illustrating an example of the MAC learning table 105 in the network switch 1 according to an embodiment.
[0059] 3 associates idle time with the MAC address of the source or destination of a flow. By referring to this MAC learning table 105, it is possible to detect the MAC address of the source or destination of a flow whose idle time has exceeded a predetermined threshold.
[0060] When the virtual network switch control unit 103 receives a temporary mirror forwarded packet from the packet forwarding unit 102, which will be described later, it updates the MAC learning table 105. That is, it sets (resets) the idle time corresponding to the MAC address of the flow in the MAC learning table 105 to 0.
[0061] Furthermore, the virtual network switch control unit 103 excludes the virtual network switch control unit 103 from the transfer destination of the flow. Furthermore, the virtual network switch control unit 103 discards the received temporary mirror transfer packet. This makes it possible to prevent duplicate transfer of the temporary mirror transfer packet and to reduce unnecessary mirror processing.
[0062] Then, at the same time as updating the MAC learning table 105, excluding the virtual network switch control unit 103 from the flow forwarding destinations, and discarding the temporary mirror forwarding packets, the forwarding control unit 101 and packet forwarding unit 102 of FPGA 11b perform forwarding processing based on FIB 104 in the above processing. In this way, when a packet arrives for a flow corresponding to temporary mirror setting, updating the MAC learning table 105, excluding the virtual network switch control unit 103 from the flow forwarding destinations, discarding the temporary mirror forwarding packets, and forwarding processing based on FIB 104 are performed.
[0063] The virtual network switch control unit 103 performs a separate GC (Garbage Collection) for flows whose idle time in the MAC learning table 105 has exceeded a predetermined threshold (for example, 600 seconds), and deletes them from the FIB 104. The threshold of 600 seconds shown here is set on the assumption that it takes 300 seconds for a temporary mirror setting to be made, and another 300 seconds for GC to run. In other words, the idle time when GC operates after the flow is first set in the FIB 104 (i.e., the idle time of the corresponding entry in the MAC learning table 105 is set to 0) is set to 600 seconds.
[0064] A flow that is a target of GC is a flow whose destination port has been added with virtual port 108 of virtual network switch control unit 103. Virtual network switch control unit 103 performs forwarding settings to virtual network switch control unit 103, and deletes from FIB 104 flows whose packets have not arrived even after a threshold value (for example, 600 seconds) has elapsed.
[0065] Furthermore, when the usage rate of the FIB 104 exceeds a certain percentage (for example, 80%), the virtual network switch control unit 103 also deletes flows that are subject to GC in order of oldest registration in the MAC learning table 105.
[0066] The virtual network switch control unit 103 executes GC for the corresponding flow when either of the following conditions is met: a packet does not arrive even after a predetermined threshold (e.g., 600 seconds) has elapsed since forwarding settings were made to the virtual network switch control unit 103, or the usage rate of the FIB 104 exceeds a certain percentage (e.g., 80%). These two conditions are sometimes called GC conditions. The virtual network switch control unit 103 executes GC processing when at least one of the GC conditions is satisfied.
[0067] Furthermore, the virtual network switch control unit 103 resolves the destination of a packet for which no flow is set in the FIB 104 and which has been transmitted by the transfer control unit 101. This destination resolution can be realized by a known method, and the description thereof will be omitted. The virtual network switch control unit 103 sets the flow of the packet for which destination resolution has been performed in the FIB 104 as a new entry.
[0068] (B) Operation Packet processing in the network switch 1 as one example of an embodiment configured as described above will be described with reference to the flowchart (steps A1 to A9) shown in FIG.
[0069] In step A1, the FPGA 11b receives a packet transferred from the physical port 107. Hereinafter, the packet transferred by the packet transfer unit 102 may be referred to as a packet to be processed.
[0070] In step A2, the transfer control unit 101 refers to the FIB 104 to check whether the flow of the packet to be processed exists as an entry in the FIB 104. If the flow of the packet to be processed does not exist as an entry in the FIB 104 (see the NO route in step A2), the transfer control unit 101 proceeds to step A3.
[0071] In step A3, the FPGA 11b transfers the packet to be processed to the virtual network switch control unit 103. The virtual network switch control unit 103 performs destination resolution of the packet to be processed, and sets the flow of the packet to be processed in the FIB 104 as an entry.
[0072] In step A4, the virtual network switch control unit 103 transfers the packet to be processed to the FPGA 11b (packet transfer). After that, the process returns to step A1.
[0073] Also, if the result of the check in step A2 is that the flow of the packet to be processed exists as an entry in the FIB 104 (see the YES route in step A2), the process proceeds to step A5.
[0074] In step A5, the transfer control unit 101 refers to the header of the packet to be processed and checks whether the packet to be processed is a temporary mirror transfer packet. That is, it is checked whether the packet to be processed is related to the temporary mirror transfer flow. As a result of the check, if the packet to be processed is a temporary mirror forwarded packet (see the YES route from step A5), the process proceeds to step A6.
[0075] In step A6, the transfer control unit 101 refers to the FIB 104, acquires the rule and action of the flow, and acquires information on the transfer destination of the packet to be processed. The packet transfer unit 102 transfers the packet to its original destination (for example, the virtual port 108 of the virtual machine 106). The packet transfer unit 102 also transfers the packet to be processed to the virtual network switch control unit 103 as a mirror transfer packet.
[0076] In step A7, the virtual network switch control unit 103 updates the MAC learning table 105 based on the received mirror forwarded packet. In addition, the virtual network switch control unit 103 may perform various known processes associated with packet forwarding, such as updating statistical information.
[0077] In step A8, the virtual network switch control unit 103 discards the mirror transfer packet. Also, the virtual network switch control unit 103 cancels the setting of temporary mirror transfer to the virtual network switch control unit 103 for the flow set in the FIB 104. Then, the process ends.
[0078] If the result of the check in step A5 is that the packet to be processed is not a temporary mirror transfer packet (see NO route in step A5), the process proceeds to step A9.
[0079] In step A9, the transfer control unit 101 refers to the FIB 104, acquires the rule and action of the flow, and acquires information on the transfer destination of the packet to be processed. The packet transfer unit 102 transfers the packet to its original destination (for example, the virtual port 108 of the virtual machine 106). Then, the process ends. Next, an overview of a flow deletion process in the network switch 1 as an example of an embodiment will be described with reference to the flowchart (steps B1 to B3) shown in FIG.
[0080] For example, when the virtual network switch control unit 103 detects that the MAC address of the source or destination of a flow has aged out, the following process is executed.
[0081] In step B1, the virtual network switch control unit 103 judges whether the flow needs to be immediately deleted. For example, if an instruction to execute a flush process has been issued or an instruction to delete the flow has been issued by the user, it is judged that the flow needs to be immediately executed.
[0082] If it is necessary to immediately delete the flow (see the YES route in step B1), in step B2, the virtual network switch control unit 103 deletes the flow from the FIB 104. For example, in an entry registered in the FIB 104, a flow whose idle time is equal to or longer than a threshold may be deleted. Then, the process ends.
[0083] Furthermore, if the result of the check in step B1 indicates that immediate deletion of the flow is not necessary (see the NO route in step B1), then in step B3, the virtual network switch control unit 103 adds the virtual port 108 of the virtual network switch control unit 103 as the transfer destination to the action of an entry in the FIB 104 whose source or destination MAC address matches the aged-out MAC address. This sets a temporary mirror transfer flow. Then, the process ends. Next, the GC process in the network switch 1 as an example of an embodiment will be described with reference to the flowchart (steps C1 to C3) shown in FIG. In step C1, the virtual network switch control unit 103 checks whether the flow is a temporary mirror transfer flow.
[0084] If the flow is a temporary mirror transfer flow (see the YES route of step C1), the process proceeds to step C2. In step C2, the virtual network switch control unit 103 checks whether the GC condition is satisfied.
[0085] If the GC condition is satisfied (see the YES route in step C2), in step C3, the flow is deleted from the FIB 104. After that, the process is terminated.
[0086] Also, if the flow is not a temporary mirror transfer flow in step C1 (see the NO route in step C1), and if the GC condition is not satisfied in step C2 (see the NO route in step C2), the process is terminated. Next, a process for deleting an active flow in the network switch 1 according to an example of an embodiment will be described with reference to a sequence diagram shown in FIG.
[0087] During offloading, a packet received at the physical port 107 is delivered to the packet forwarding unit 102 (see symbol S1). The packet forwarding unit 102 confirms the forwarding destination with the forwarding control unit 101 (symbol S2), and the forwarding control unit 101 refers to the FIB 104 (symbol S3) and acquires the processing method (rule and action) for the flow (symbol S4). The forwarding control unit 101 instructs the packet forwarding unit 102 of the forwarding destination, etc. (symbol S5), and the packet forwarding unit 102 transfers the packet to the virtual port 108 of the destination virtual machine 106 in accordance with this instruction (symbol S6).
[0088] Here, the virtual network switch control unit 103 detects that the idle time has reached a predetermined threshold (300 seconds in this embodiment) and that the MAC address of the source or destination of the flow has aged out (reference number S7).
[0089] The virtual network switch control unit 103 sets a destination (forwarding setting) for each flow in the FIB 104 so that the packet is also forwarded to the virtual network switch control unit 103 (reference number S8). That is, a setting is made to add the virtual port 108 of the virtual network switch control unit 103 as a packet forwarding destination to each entry of the FIB 104.
[0090] Thereafter, when the physical port 107 receives a packet, the same process as during offloading is executed. That is, the packet received at the physical port 107 is delivered to the packet forwarding unit 102 (see reference symbol S9). The packet forwarding unit 102 confirms the forwarding destination with the forwarding control unit 101 (reference symbol S10), and the forwarding control unit 101 refers to the FIB 104 (reference symbol S11) and acquires the processing method (rule and action) of the flow (reference symbol S12). The forwarding control unit 101 instructs the packet forwarding unit 102 of the forwarding destination, etc. (reference symbol S13), and the packet forwarding unit 102 transfers the packet to the virtual port 108 of the destination virtual machine 106 according to this instruction (reference symbol S14).
[0091] The packet forwarding unit 102 also forwards the packet (temporary mirror forwarded packet) to the virtual port 108 of the virtual network switch control unit 103 (reference S15). The virtual network switch control unit 103 updates the MAC learning table 105 based on the received temporary mirror forwarded packet (reference S16). Thereafter, the virtual network switch control unit 103 cancels the temporary mirror forwarding for the virtual network switch control unit 103 (reference S17). That is, the virtual port 108 of the virtual network switch control unit 103 set as the destination in the entry for the flow is deleted from the FIB 104. As a result, the temporary mirror forwarding is canceled, and only the original destination (for example, the virtual port 108 of the virtual machine 106) is set in the FIB 104 as the forwarding destination of each packet. Thereafter, the process ends.
[0092] Next, a process of deleting an idle flow in the network switch 1 according to an example of an embodiment will be described with reference to a sequence diagram shown in FIG. During offloading, a packet received at the physical port 107 is delivered to the packet forwarding unit 102 (see symbol T1). The packet forwarding unit 102 confirms the forwarding destination with the forwarding control unit 101 (symbol T2), and the forwarding control unit 101 refers to the FIB 104 (symbol T3) and acquires the processing method (rule and action) for the flow (symbol T4). The forwarding control unit 101 instructs the packet forwarding unit 102 of the forwarding destination, etc. (symbol T5), and the packet forwarding unit 102 forwards the packet to the virtual port 108 of the destination virtual machine 106 in accordance with this instruction (symbol T6).
[0093] Here, the virtual network switch control unit 103 detects that the idle time has reached a predetermined threshold (300 seconds in this embodiment) and that the MAC address of the source or destination of the flow has aged out (reference number T7).
[0094] The virtual network switch control unit 103 sets a destination (forwarding setting) for each flow in the FIB 104 so that the packet is also forwarded to the virtual network switch control unit 103 (symbol T8). That is, a setting is made to add the virtual port 108 of the virtual network switch control unit 103 as a packet forwarding destination to each entry of the FIB 104.
[0095] Thereafter, when the physical port 107 goes into an idle state where it does not receive packets (symbol T9) and the GC condition is satisfied, the virtual network switch control unit 103 deletes the flow from the FIB 104 (symbol T10).
[0096] (C) Effects In this way, according to the network switch 1 as an example of the embodiment, the functions of the transfer control unit 101 and the packet transfer unit 102 are offloaded to the FPGA 11b, thereby making it possible to improve the packet transfer performance.
[0097] Furthermore, the packet forwarding unit 102 forwards the packet received at the physical port 107 to the destination, and also forwards the mirror forwarded packet to the virtual network switch control unit 103 .
[0098] The virtual network switch control unit 103 uses the received mirror forwarded packets to update the MAC learning table 105. The virtual network switch control unit 103 can also manage statistical information using the received mirror forwarded packets. This allows the virtual network switch control unit 103 to manage statistical information even if the packet forwarding function is offloaded to the FPGA 11b.
[0099] In the present network switch 1, there is no need to delete FIB entries at regular aging out times (e.g., every 300 seconds) as in the conventional method, and active flow entries are not deleted from the FIB 104. As a result, the virtual network switch control unit 103 does not need to perform processes such as destination resolution for active flows, and high-speed packet transfer can be achieved by the FPGA 11b (transfer control unit 101, packet transfer unit 102).
[0100] FIG. 9 is a diagram showing a packet forwarding process when an aging-out occurs in a conventional network switch, and FIG. 10 is a diagram showing a packet forwarding process in the network switch 1 as an example of an embodiment. In the conventional network switch illustrated in FIG. 9, the transfer control function and the packet transfer function are offloaded to the FPGA. 9 and 10, the flow of processing that occurs with packet transfer is indicated by thick dashed lines.
[0101] As shown in Fig. 9, in a conventional network switch, when aging out occurs, the flow entry is deleted from the FIB. As a result, even if the forwarding control function refers to the FIB, there is no corresponding flow (P1), so the packet forwarding function forwards the packet to the virtual network switch control function (P2). The virtual network switch control function performs destination resolution for the received packet and sets the flow in the FIB (P3).
[0102] Thereafter, the forwarding control function refers to the FIB again (P4), obtains the rule and action for the corresponding flow, and causes the packet forwarding function to forward the packet to the destination (Web service) virtual machine (P5).
[0103] That is, in the conventional network switch shown in Fig. 9, when aging out occurs, the flow entry is deleted from the FIB, which causes processing by the virtual network switch control function, resulting in a decrease in processing speed. Users experience processing delays such as stuttering when using web services.
[0104] In contrast, in the present network switch 1, there is no need to delete the entry of an active flow from the FIB when aging out occurs. As a result, when forwarding a packet of an active flow, the forwarding control function refers to the FIB 104 as shown in Fig. 10, and finds that a corresponding flow exists (symbol P11), and is able to obtain the rule and action of the corresponding flow (symbol P12). The packet forwarding unit 102 uses the information obtained by the forwarding control unit 101 to forward the packet to the destination (Web service) virtual machine (symbol P13).
[0105] In this way, the packet transfer required for the user to use the Web service can be processed within the FPGA 11b, and the packet transfer can be processed at high speed, so that the user does not feel any processing delay when using the Web service.
[0106] On the other hand, the packet forwarding unit 102 transmits the mirror forwarded packet to the virtual network switch control unit 103 (reference symbol P14), which enables the virtual network switch control unit 103 to update the MAC learning table 105 and record statistical information in the FIB 104 on the memory unit 12. The mirror forwarded packet transmitted to the virtual network switch control unit 103 is ultimately discarded by the virtual network switch control unit 103 (reference symbol P15).
[0107] In the present network switch 1, since it is not necessary to delete the entry of an active flow from the FIB when aging out occurs, it is possible to prevent intermittent performance degradation due to aging out for active flows.
[0108] (D) Other The disclosed technology is not limited to the above-described embodiment, and may be modified in various ways without departing from the spirit of the present embodiment. Each configuration and each process of the present embodiment may be selected as necessary, or may be combined as appropriate.
[0109] For example, in the above-described embodiment, the network switch 1 includes the FPGA integrated processor 11 in which the CPU 11a and the FPGA 11b are integrated, but the present invention is not limited to this. The CPU 11a and the FPGA 11b may be configured as separate entities, and various modifications can be made. Furthermore, the above disclosure enables a person skilled in the art to implement and manufacture the present embodiment.
[0110] (E) Notes Regarding the above embodiment, the following supplementary notes are further disclosed. (Appendix 1) In a network switch having an FPGA (Field Programmable Gate Array) and a processor, The FPGA, a first packet forwarding control unit that forwards the processing target packet to a forwarding destination based on forwarding definition information; a second packet transfer control unit that transfers a copy of the processing target packet to the processor; It functions as The processor, A first update processing unit that deletes an entry of the transfer definition information based on transfer record information; a second update processing unit that updates the transfer record information based on a copy of the processing target packet; Functions as A network switch comprising:
[0111] (Appendix 2) The processor, A virtual port of the first update processing unit is set as a transfer destination of the packet to be processed in the transfer definition information, thereby causing the second packet transfer control unit to transfer a copy of the packet to be processed. 2. The network switch according to claim 1 .
[0112] (Appendix 3) The processor, When an immediate deletion request for an entry in the transfer definition information is not issued for a source or destination for which a packet non-transfer time is equal to or longer than a threshold in the transfer history information, a virtual port of the first update processing unit is set in the transfer definition information as a transfer destination of the processing target packet. 3. The network switch according to claim 2,
[0113] (Appendix 4) The second packet transfer control unit sets, in the copy of the processing target packet, identification information indicating that it is a copy. 4. The network switch according to claim 1, wherein the first and second electrodes are arranged in a first direction.
[0114] (Appendix 5) After the second update processing unit updates the transfer record information, the second update processing unit discards the copy of the processing target packet. 5. The network switch according to claim 1, wherein the first and second electrodes are arranged in a first direction.
[0115] (Appendix 6) A network switch including a processor, a first packet forwarding control unit that forwards a packet to be processed to a forwarding destination based on forwarding definition information, and an FPGA (Field Programmable Gate Array) that functions as a second packet forwarding control unit that forwards a copy of the packet to be processed to the processor, The processor, Delete the entry of the transfer definition information based on the transfer record information; The transfer record information is updated based on a copy of the processing target packet. A control program that executes processing.
[0116] (Appendix 7) The processor, A copy of the packet to be processed is transferred by setting, in the transfer definition information, a virtual port of a processing unit that deletes the entry of the transfer definition information as a transfer destination of the packet to be processed. 7. The control program according to claim 6, further comprising:
[0117] (Appendix 8) The processor, When an immediate deletion request for an entry in the transfer definition information is not issued for a source or destination in which a packet non-transfer time is equal to or longer than a threshold in the transfer history information, a virtual port of the processing unit is set in the transfer definition information as a transfer destination of the packet to be processed. 8. The control program according to claim 7,
[0118] (Appendix 9) The processor, By referring to identification information that is set in the copy of the processing target packet and indicates that the packet is a copy, the processing target packet is identified as a copy. 9. The control program according to any one of claims 6 to 8, which causes a process to be executed.
[0119] (Appendix 10) The processor, After updating the transfer record information, the copy of the packet to be processed is discarded. 10. The control program according to any one of claims 6 to 9, which causes a process to be executed.
[0120] (Appendix 11) In a network switch having an FPGA (Field Programmable Gate Array) and a processor, The FPGA, A process of forwarding the processing target packet to a forwarding destination based on the forwarding definition information; transferring a copy of the processing target packet to the processor; Run The processor, A process of deleting an entry of the transfer definition information based on the transfer record information; updating the transfer record information based on a copy of the processing target packet; Run A control method comprising:
[0121] (Appendix 12) The processor, A process of transferring a copy of the packet to be processed by setting, in the transfer definition information, a virtual port of a processing unit that deletes the entry of the transfer definition information as a transfer destination of the packet to be processed. 12. The control method according to claim 11, characterized by executing the following.
[0122] (Appendix 13) The processor, A process of setting a virtual port of the processing unit as a transfer destination of the processing target packet in the transfer definition information when an immediate deletion request for an entry in the transfer definition information has not been issued for a source or destination for which a packet non-transfer time is equal to or longer than a threshold in the transfer history information. 13. The control method according to claim 12, further comprising:
[0123] (Appendix 14) The processor, A process of determining whether the packet to be processed is a copy by referring to identification information set in the copy of the packet to be processed, the identification information indicating that the packet is a copy. 14. The control method according to any one of claims 11 to 13, characterized by carrying out the following.
[0124] (Appendix 15) The processor, A process of discarding a copy of the processing target packet after updating the transfer record information. 15. The control method according to any one of claims 11 to 14, characterized by carrying out the following. [Explanation of symbols]
[0125] 1 Network Switch 11 FPGA Integrated Processor 11a CPU 11b FPGA 12 Memory section 13 HDD 14 Graphics Processing Unit 14a Monitor 15 Input Interface 15a Keyboard 15b Mouse 16 Optical drive device 16a Optical disc 17 Device connection interface 17a Memory Device 17b Memory Reader / Writer 17c Memory Card 18 Network Interface 18a Network 19 Bus 101 Transfer control section 102 Packet forwarding unit 103 Virtual network switch control unit 104 FIB 105 MAC Learning Table 106 Virtual Machines 107 Physical Ports 108 Virtual Ports
Claims
1. A network system equipped with an FPGA (Field Programmable Gate Array) and a processor In Itch, The FPGA, a first packet forwarding control unit that forwards the processing target packet to a forwarding destination based on forwarding definition information; a second packet transfer control unit that transfers a copy of the processing target packet to the processor; It functions as The processor, A first update processing unit that deletes an entry of the transfer definition information based on transfer record information; a second update processing unit that updates the transfer record information based on a copy of the processing target packet; It functions as In the forwarding history information, in relation to a source or destination for which the packet non-forwarding time is equal to or longer than a threshold, if an immediate deletion request for an entry in the forwarding definition information has not been issued, the processor causes the second packet forwarding control unit to forward a copy of the packet to be processed by setting a virtual port of the first update processing unit as a forwarding destination of the packet to be processed in the forwarding definition information; the second update processing unit updates the transfer history information based on a copy of the transferred processing target packet; the second update processing unit discards a copy of the processing target packet after updating the transfer record information; the processor cancels the forwarding of the copy of the packet to be processed by the second packet forwarding control unit by deleting the virtual port of the first update processing unit, which has been set as the forwarding destination of the packet to be processed, from the forwarding definition information; the first packet forwarding control unit forwards the processing target packet to the forwarding destination based on the forwarding definition information; A network switch comprising:
2. The second packet transfer control unit sets, in the copy of the processing target packet, identification information indicating that it is a copy.
2. The network switch according to claim 1, wherein:
3. a processor; a first packet forwarding control unit that forwards a packet to be processed to a forwarding destination based on forwarding definition information; and a second packet forwarding control unit that forwards a copy of the packet to be processed to the processor. In a network switch that can The processor, In the forwarding performance information, in relation to a source or destination for which the packet non-forwarding time is equal to or longer than a threshold, if a request for immediate deletion of an entry in the forwarding definition information has not been issued, a virtual port of a processing unit that deletes the entry of the forwarding definition information is set as a forwarding destination of the packet to be processed in the forwarding definition information, thereby causing the second packet forwarding control unit to forward a copy of the packet to be processed; updating the transfer record information based on a copy of the transferred processing target packet; After updating the transfer record information, discarding a copy of the processing target packet; canceling the transfer of the copy of the processing target packet by deleting the virtual port of the processing unit set as the transfer destination of the processing target packet from the transfer definition information; causing the first packet forwarding control unit to forward the processing target packet to the forwarding destination based on the forwarding definition information; A control program that executes processing.
4. A network system equipped with an FPGA (Field Programmable Gate Array) and a processor In Itch, The FPGA, A process of forwarding the processing target packet to a forwarding destination based on the forwarding definition information; transferring a copy of the processing target packet to the processor; Run The processor, A process of deleting an entry of the transfer definition information based on the transfer record information; updating the transfer record information based on a copy of the processing target packet; Run When a request for immediate deletion of an entry in the transfer definition information is not issued for a source or destination in which a packet non-transfer time is equal to or longer than a threshold in the transfer history information, the processor sets, in the transfer definition information, a virtual port of a processing unit that deletes the entry of the transfer definition information as a transfer destination of the packet to be processed, thereby causing a copy of the packet to be processed to be transferred to the processor; The processor updates the transfer history information based on a copy of the transferred processing target packet; the processor discards a copy of the processing target packet after updating the transfer record information; the processor cancels the transfer of the copy of the processing target packet by deleting the virtual port of the processing unit set as the transfer destination of the processing target packet from the transfer definition information; The FPGA transfers the processing target packet to the transfer destination based on the transfer definition information. A control method comprising:
Citation Information
Patent Citations
Packet transfer apparatus provided with statistics collection apparatus and statistics collection method
JP2005051736A
Switch system and centralized monitoring management method
JP2014171226A
Communication systems, control devices, communication equipment, billing servers, communication methods, and programs
JP2015515153A
Communication device, control device and communication system
JP2017028539A
Virtual machine arrangement device, virtual machine arrangement method and virtual machine arrangement program
JP2017174301A
