Relay device

The relay device synchronizes communication connection tables only at the expiration of SPI timer values, using dedicated hardware and management units, reducing CPU load and ensuring secure, efficient packet transfer even with many connections.

JP2024121051AActive Publication Date: 2024-09-06OKI ELECTRIC INDUSTRY CO LTD
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
JP2023027917
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Filing Date
2023-02-27
Publication Date
2024-09-06
Estimated Expiration
2043-02-27

AI Technical Summary

Technical Problem

Conventional relay devices with both SPI and fast path forwarding functions face increased computational processing load when synchronizing communication connection tables at fixed cycles, particularly with numerous connections, risking packet loss and security breaches.

Method used

A relay device that manages communication connections by synchronizing only at the timing when the SPI timer value for slow path transfer expires, using separate storage and management units for slow and fast path transfers, with dedicated hardware for fast path processing, and updating timer values based on specific equations to reduce CPU load.

Benefits of technology

This approach reduces computational processing load and ensures accurate synchronization of communication connections, minimizing packet loss and enhancing security by filtering unauthorized access effectively.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 2024121051000001
    Figure 2024121051000001
Patent Text Reader

Abstract

To obtain a relay device that reduces the load of calculation processing related to communication connection management.SOLUTION: A relay device includes: a slow path transfer processing unit that performs transfer processing; a first storage unit that stores slow path entry information and a timeout value; a first management unit that manages the slow path entry information; a fast path transfer processing unit that performs transfer processing faster than the slow path transfer processing unit; a second storage unit that stores fast path entry information and a timeout value; and a second management unit that manages the fast path entry information. When the timer value of the slow path entry information expires, the first management unit updates the timer value of the slow path entry information on the basis of the timer value of the fast path entry information, the slow path timeout value, and the fast path timeout value corresponding to the connection whose timer value has expired.SELECTED DRAWING: Figure 1
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates to a relay device that relays communication between two communication networks. [Background technology]

[0002] Conventionally, relay devices equipped with a function called SPI (Stateful Packet Inspection) are known as a filtering function that prevents packets from being discarded due to changes in encryption keys. A relay device equipped with the SPI function manages and monitors the state of communication connections higher than the IP (Internet Protocol) layer, and controls whether or not to permit packet transfer. SPI is one of the functions that dynamically determines whether or not a packet can pass through.

[0003] The function of SPI will be specifically explained in the case of a relay device that relays communication between a LAN (Local Area Network) and a WAN (Wide Area Network). In response to packet communication from a communication device such as a PC on the LAN side to the WAN side, the relay device opens a port on the WAN side and starts packet transfer. After that, when the communication device on the LAN side finishes receiving data from the WAN side, or when the timer value from the last communication exceeds the SPI timeout value set inside, the relay device automatically closes the WAN side port. When the WAN side port of the relay device is closed, if no external access is being made by the communication device on the LAN side, all ports are filtered, preventing unauthorized access to the LAN from the outside.

[0004] In SPI, each time a packet is sent or received, the communication connection is identified, the state of the corresponding communication connection and the SPI timer information are updated, and then it is determined whether or not each packet can be forwarded. Therefore, it is necessary to manage all communication connections.

[0005] Meanwhile, as a relay device having a fast-path forwarding function for packets, a gateway device has been proposed that enables fast-path forwarding by performing hardware forwarding processing for packet forwarding (see, for example, Patent Document 1).

[0006] The gateway device disclosed in Patent Document 1 registers a new entry in the fast path entry data when a received packet is to be forwarded by hardware when registering a new entry in the slow path entry data. After that, packets registered in the fast path entry data are forwarded at high speed by hardware. With this configuration, forwarding processing by hardware is realized. Hereinafter, the slow path entry data is referred to as a communication connection table for slow path forwarding, and the fast path entry data is referred to as a communication connection table for fast path forwarding.

[0007] In a relay device having a fast path transfer function, when SPI is realized, it is necessary to manage a communication connection table for slow path transfer and a communication connection table for fast path transfer. Specifically, the relay device needs to synchronize the same connection state and SPI timer value between the communication connection table for slow path transfer and the communication connection table for fast path transfer. If the SPI timer value is not synchronized, packets may not be transferred when the SPI timer value has not expired, resulting in packet loss. Also, if the SPI timer value is not synchronized, packets may not be filtered when the SPI timer has expired, resulting in security not being ensured.

[0008] As a countermeasure to this problem, a method of synchronizing a communication connection table for slow path transfer with a communication connection table for fast path transfer for each packet can be considered. However, this countermeasure imposes a large computational load on the CPU (Central Processing Unit). For this reason, some conventional relay devices synchronize the above two tables at a fixed cycle rather than synchronizing them for each packet. [Prior art documents] [Patent documents]

[0009] [Patent Document 1] Patent No. 6447138 Summary of the Invention [Problem to be solved by the invention]

[0010] However, in a conventional relay device, even if the communication connection table for slow path transfer and the communication connection table for fast path transfer are synchronized at a fixed period, the load on the CPU may become high. Specifically, when there are many communication connections, if all communication connections are synchronized, the load on the CPU may temporarily become high.

[0011] The present invention has been made to solve the above-mentioned problems, and provides a relay device that reduces the load of calculation processing related to communication connection management. [Means for solving the problem]

[0012] The relay device according to the present invention is a relay device that relays communications between a first communication network and a second communication network, and includes a slow path forwarding processing unit that performs forwarding processing of communications between the first communication network and the second communication network, a first memory unit that stores slow path entry information, which is entry information in which connection information and timer values ​​are associated with each other for communications that are the subject of processing by the slow path forwarding processing unit, and a timeout value for slow path forwarding, a first management unit that manages the slow path entry information, a fast path forwarding processing unit that performs forwarding processing of communications between the first communication network and the second communication network at a speed faster than that of the slow path forwarding processing unit, and a fast path forwarding processing unit that performs forwarding processing of communications between the first communication network and the second communication network at a speed faster than that of the slow path forwarding processing unit, The communication device is equipped with a second memory unit that stores fast path entry information, which is entry information in which connection information and a timer value correspond to each other for the communication to be processed by the transfer processing unit, and a timeout value of the fast path transfer, and a second management unit that manages the fast path entry information, and when the timer value of the slow path entry information expires, the first management unit updates the timer value of the slow path entry information based on the timer value of the fast path entry information corresponding to the connection information for which the timer value has expired, the timeout value of the slow path transfer, and the timeout value of the fast path transfer. Effect of the Invention

[0013] According to the present invention, when the timer value of the communication connection for slow path transfer expires, the process of synchronizing the management information for only the entries with the communication connection is performed. Therefore, when there are many communication connections, the load of the calculation process can be reduced compared to the case where the communication connection table for slow path transfer and the communication connection table for fast path transfer are synchronized at a fixed period. [Brief description of the drawings]

[0014] [Figure 1] 1 is a block diagram showing a configuration example of a relay device according to a first embodiment. [Diagram 2]11 is a table showing an example of setting values ​​of SPI timeout values ​​for slow path transfer stored in a first storage unit 13. [Diagram 3] 13 is a diagram showing an example of a setting value of a SPI timeout value for fast path transfer stored in the second storage unit 23. FIG. [Figure 4] 11 is a diagram showing an example of entry information for each communication connection managed in a communication connection table. FIG. [Diagram 5] 4 is a flow diagram showing an operational procedure of slow path forwarding by the relay device according to the first embodiment. FIG. [Figure 6] 11 is a flowchart showing an operation procedure of a process of monitoring an SPI timer value by the relay device according to the first embodiment. [Figure 7] 11 is a flowchart showing an operation procedure of a process of monitoring an SPI timer value by the relay device according to the first embodiment. [Figure 8] 11 is a sequence diagram showing the operation of managing an SPI timeout value during UDP one-way communication by the relay device according to the first embodiment. FIG. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0015] The present invention relates to a packet relay device having a fast path forwarding function, which efficiently manages communication connections. In particular, the relay device of the present invention is suitable for use in a communication device that must manage a large number of communication connections. In the following, an embodiment of the relay device of the present invention will be described, in which the relay device relays packet communication.

[0016] Embodiment 1 The configuration of a relay device according to the first embodiment will be described. FIG. 1 is a block diagram showing an example of the configuration of a relay device according to the first embodiment. Relay device 1 is connected between a WAN 4, which is a first communication network, and a LAN 5, which is a second communication network. WAN 4 is, for example, the Internet. A PC (Personal Computer) 8 used by a user is connected to LAN 5. Relay device 1 has a slow path transfer unit 2 and a fast path transfer unit 3.

[0017] The slow path forwarding unit 2 has a slow path forwarding processing unit 11, a first management unit 12, and a first memory unit 13. The fast path forwarding unit 3 has a fast path forwarding processing unit 21, a second management unit 22, and a second memory unit 23. The slow path forwarding processing unit 11 and the fast path forwarding processing unit 21 are connected to a WAN host 6 on the WAN 4 side via a WAN port 9. The slow path forwarding processing unit 11 and the fast path forwarding processing unit 21 are connected to a LAN host 7 on the LAN 5 side via a LAN port 10. The WAN host 6 and the LAN host 7 are, for example, communication devices such as routers.

[0018] The slow path forwarding processor 11 performs forwarding processing of communication by packets transmitted and received between the WAN 4 and the LAN 5. The fast path forwarding processor 21 performs forwarding processing of communication between the WAN 4 and the LAN 5 at a speed faster than that of the slow path forwarding processor 11.

[0019] The first storage unit 13 stores information for managing communication connections of slow path forwarding. Specifically, the first storage unit 13 manages an SPI timeout value for slow path forwarding and a communication connection table. In the communication connection table, slow path entry information, which is entry information of a communication to be forwarded by the slow path forwarding processing unit 11, is registered for each entry.

[0020] The second storage unit 23 stores information for managing communication connections of fast path transfer. Specifically, the second storage unit 23 manages an SPI timeout value and a communication connection table for fast path transfer. In the communication connection table, fast path entry information, which is entry information of communication to be transferred by the fast path transfer processing unit 21, is registered for each entry.

[0021] Fig. 2 is a table showing an example of the setting values ​​of the SPI timeout value for slow path transfer stored in the first storage unit 13. Fig. 3 is a diagram showing an example of the setting values ​​of the SPI timeout value for fast path transfer stored in the second storage unit 23.

[0022] As shown in Figures 2 and 3, an SPI timeout value is set for each communication protocol such as TCP and UDP. For example, for a packet to be forwarded via fast path, Figure 3 shows that a UDP UNREPLIED timeout value, a UDP ASSURED timeout value, and a TCP ESTABLISHED timeout value can be set. The UDP UNREPLIED timeout value is the timeout value for basic UDP one-way communication. The UDP ASSURED timeout value is the timeout value for basic UDP two-way communication. The TCP ESTABLISHED timeout value is the timeout value for TCP two-way communication.

[0023] In this first embodiment, a case will be described in which the SPI timeout value for slow path transfer is set as shown in Fig. 2, and the SPI timeout value for fast path transfer is set as shown in Fig. 3. In this first embodiment, as shown in Fig. 3, the SPI timeout value for fast path transfer is set to 300 seconds regardless of the type of communication protocol.

[0024] Fig. 4 is a diagram showing an example of entry information for each communication connection managed in the communication connection table. Fig. 4 shows the case of slow path entry information. Fast path entry information is the same as the content shown in Fig. 4, so it is omitted from the figure.

[0025] Entry information is created for each communication connection entry. The entry information is recorded in association with the connection information and the SPI timer value. The connection information is information for identifying and managing the communication connection entry. The connection information is, for example, information such as the layer 3 protocol, source IP address, and source port number shown in FIG. 4. The SPI timer value indicates the remaining time until the SPI timeout value expires.

[0026] When new slow path entry information is created, the SPI timer value is set to the SPI timeout value shown in Fig. 2 by the first management unit 12. The SPI timer value of the slow path entry information is sequentially rewritten over time by the first management unit 12. When a packet is slow path forwarded during update of packet forwarding, the SPI timer value of the slow path entry information is reset by the first management unit 12 to the SPI timeout value for the corresponding slow path forwarding.

[0027] When new fast path entry information is created, the SPI timer value is set to the SPI timeout value shown in Fig. 3 by the second management unit 22. The SPI timer value of the fast path entry information is sequentially rewritten by the second management unit 22 as time passes. When updating at the time of packet transfer, if a packet is fast path transferred, the SPI timer value of the fast path entry information is reset by the second management unit 22 to the SPI timeout value for the corresponding fast path transfer. If the SPI timeout value elapses without any packet transfer, the SPI timer value expires.

[0028] The first management unit 12 manages the communication connection of the slow path transfer by updating the information stored in the first memory unit 13 as described above. The second management unit 22 manages the communication connection of the fast path transfer by updating the information stored in the second memory unit 23 as described above. The first management unit 12 and the second management unit 22 mutually refer to, write, and rewrite the information stored in the first memory unit 13 and the second memory unit 23.

[0029] Conventionally, the SPI timeout value for slow path transfer and the SPI timeout value for fast path transfer were set to the same value, and the communication connection table for slow path transfer and the communication connection table for fast path transfer were synchronized at a fixed period.

[0030] In the relay device 1 of the first embodiment, a setting value is set by the user for the SPI timer value of the slow path entry information so as to become a criterion for determining whether or not each packet can be forwarded. The SPI timeout value for fast path forwarding is set to be equal to or greater than the SPI timeout value for slow path forwarding. The first management unit 12 obtains the allowable time of no communication for packet forwarding of the communication connection based on the difference between the SPI timeout setting value for fast path forwarding and the SPI timer value which is the remaining time of the communication connection of the entry for fast path forwarding.

[0031] A specific example will be described in which, when the SPI timer value of the slow path entry information expires, the first management unit 12 updates the SPI timer value of the slow path entry information, thereby updating the communication time of the packet transfer.

[0032] The SPI timeout value for the slow path transfer is SPO, and the SPI timeout value for the fast path transfer is FPO. The SPI timer value of the fast path entry information is FTc. The SPI timer value of the slow path entry information is STc, and the provisional update value of the SPI timer value of the slow path entry information is STn. In this case, the first management unit 12 calculates the provisional update value STn using formula (1). Provisional updated value STn = SPO - (FPO - FTc) (1)

[0033] If the provisional update value STn is equal to or less than 0, the first management unit 12 deletes the corresponding entry information from the first storage unit 13 and the second storage unit 23. If the provisional update value STn is equal to or less than the SPI timeout value SPO, the first management unit 12 updates the SPI timer value STc of the slow path entry information to the provisional update value STn. If the provisional update value is greater than the SPI timeout value SPO, the first management unit 12 updates the SPI timer value STc of the slow path entry information to the SPI timeout value SPO.

[0034] Here, an example of the hardware configuration of the slow path transfer unit 2 and the fast path transfer unit 3 will be described. The fast path transfer unit 3 is configured with a dedicated circuit such as an ASIC (Application Specific Integrated Circuit). For example, each of the fast path transfer processing unit 21 and the second management unit 22 is configured with an ASIC, and the second storage unit 23 is configured with a memory such as a flash memory. The slow path transfer unit 2 has a memory that stores a program and a CPU that executes processing according to the program.

[0035] Next, an operation of the relay device 1 according to the first embodiment will be described. First, an operation of the relay device 1 for registering entry information will be described. Fig. 5 is a flow diagram showing an operation procedure of slow path forwarding by the relay device according to the first embodiment.

[0036] In step S1, when relay device 1 receives a packet, first management unit 12 judges whether or not there is a communication connection corresponding to the received packet. If the result of the judgment in step S1 is that an entry for the communication connection of the received packet is not registered (step S1: No), first management unit 12 newly registers slow path entry information as entry information for the communication connection in first storage unit 13 (step S2).

[0037] In step S3, the second management unit 22 judges whether the newly registered entry is a target packet for fast path forwarding. If the result of the judgment in step S3 is that the newly registered entry is not a target packet for fast path forwarding (step S3: No), the slow path forwarding processing unit 11 forwards the packet (step S5).

[0038] If the result of the determination in step S3 is that the newly registered entry is a target packet for fast path forwarding (step S3: Yes), the second management unit 22 newly registers the fast path entry information as entry information for the communication connection in the second storage unit 23 (step S4). On the other hand, if the result of the determination in step S1 is that there is a communication connection corresponding to the received packet (step S1: Yes), the second management unit 22 updates the SPI timer value of the fast path entry information for the communication connection (step S6). After steps S4 and S6, the fast path forwarding processing unit 21 forwards the packet (step S5).

[0039] An entry for a communication connection for fast path transfer is registered when a packet is received in the packet transfer process for slow path transfer, a communication connection for the corresponding packet does not exist, and it is determined that the communication connection is a new communication connection.

[0040] Next, an operation of the relay device 1 for monitoring the SPI timer value will be described. Fig. 6 and Fig. 7 are flow charts showing an operation procedure of the SPI timer value monitoring process by the relay device according to the embodiment 1. The relay device 1 executes the processes of steps S12 to S23 for each entry of the communication connection (steps S11 and S24).

[0041] In step S12, when the relay device 1 receives a packet, the first management unit 12 refers to the SPI timer value of the slow path entry information corresponding to the received packet and judges whether or not the SPI timeout value has expired. If the result of the judgment in step S12 is that the SPI timer value STc of the slow path entry information has expired the SPI timeout value SPO, the first management unit 12 judges whether or not there is a corresponding entry in the fast path entry information (step S13). If there is no corresponding entry in the fast path entry information, the slow path entry information of the corresponding communication connection is deleted (step S14).

[0042] On the other hand, if the result of the determination in step S13 indicates that there is a corresponding entry in the fast path entry information, the first management unit 12 refers to the information in the first storage unit 13 and acquires the SPI timeout value SPO of the corresponding protocol and state from the first storage unit 13 (step S15). Next, the first management unit 12 refers to the information in the second storage unit 23 and acquires the SPI timeout value FPO of the corresponding protocol and state from the second storage unit 23 (step S16). Furthermore, the first management unit 12 acquires the SPI timer value FTc of the corresponding fast path transfer connection from the second storage unit 23 (step S17).

[0043] In step S18, the first management unit 12 calculates the provisional update value STn by using formula (1), where STn is the provisional update value of the SPI timer value of the slow path entry information of the corresponding entry. In step S19, the first management unit 12 determines whether the provisional update value STn is equal to or less than 0. If it is determined in step S19 that the provisional update value STn is equal to or less than 0, the first management unit 12 deletes the corresponding entry information from the first storage unit 13 and the second storage unit 23 (step S20).

[0044] On the other hand, if the result of the judgment in step S19 is that the provisional update value STn is greater than 0, the first management unit 12 judges whether or not the provisional update value STn is equal to or less than the SPI timeout value SPO (step S21). If the result of the judgment in step S21 is that the provisional update value STn is equal to or less than the SPI timeout value SPO, the first management unit 12 updates the SPI timer value STc of the slow path entry information to the provisional update value STn (step S22). If the result of the judgment in step S21 is that the provisional update value is greater than the SPI timeout value SPO, the first management unit 12 updates the SPI timer value STc of the slow path entry information to the SPI timeout value SPO (step S23). After the processes of steps S20, S22, and S23, the relay device 1 proceeds to the process of step S24.

[0045] In step S24, when the relay device 1 finishes the process of monitoring the SPI timer value of the slow path entry information for one entry, the relay device 1 returns to the process of step S12. On the other hand, when the relay device 1 finishes the process of monitoring the SPI timer value of the slow path entry information for all entries, the relay device 1 waits for one second (step S25) and then returns to the process of step S11. Note that the wait time in step S25 is not limited to one second.

[0046] Next, a specific example of the process of monitoring the SPI timer value will be described. Fig. 8 is a sequence diagram showing the operation of managing the SPI timeout value during UDP one-way communication by the relay device according to the first embodiment. Fig. 8 shows the operation procedure of managing the SPI timeout value when a one-way communication packet of a UDP packet is transferred in the operation flow shown in Figs. 5 to 7.

[0047] 8, the SPI timer value of the entry information for slow path transfer is indicated by a solid line frame, and the SPI timer value of the entry information for fast path transfer is indicated by a dashed line frame. The unit of the numerical value written in each frame is [seconds]. In the relay device 1, the SPI timeout value SPO of UDP UNREPLIED (one-way) for low path transfer is set to 60 seconds, and the SPI timeout value FPO of UDP UNREPLIED (one-way) for fast path transfer is set to 300 seconds.

[0048] The initial UDP packet Pk1 is sent from the LAN host 7 to the WAN host 6. When the relay device 1 receives the packet Pk1, it processes the initial packet Pk1 using slow path forwarding. When the relay device 1 slow path forwards the packet Pk1, it creates new slow path entry information. At that time, the SPI timer value is set to the SPI timeout value SPO of 60 seconds.

[0049] Since UDP packet Pk1 is a packet subject to fast path forwarding, relay device 1 also creates new fast path entry information. At that time, the SPI timer value is set to 300 seconds, which is the SPI timeout value FPO. Since fast path entry information exists for subsequent packets Pk2(1) to Pk2(3), relay device 1 processes them using fast path forwarding. The SPI timer value of the fast path entry information is reset to 300 seconds each time relay device 1 receives each of packets Pk2(1) to Pk2(3).

[0050] Thereafter, when 60 seconds have elapsed since relay device 1 received packet Pk1, the SPI timer value of the slow path entry information expires. When first management unit 12 detects that the SPI timer value of the slow path entry information has expired, it checks whether there is fast path entry information for the entry whose SPI timer value has expired. Since the fast path entry information remains, first management unit 12 calculates a provisional update value STn using equation (1) to check whether the SPI timer value STc of the slow path entry information should be updated.

[0051] 8, the SPI timer value Ftc of the fast path entry information is 280 seconds. Therefore, the provisional update value STn is STn=SPO-(FPO-FTc)=60 seconds-(300 seconds-280 seconds)=40 seconds. Since the provisional update value STn is 40 seconds, which is less than the SPI timeout value SPO for slow path transfer=60 seconds, the first management unit 12 updates the SPI timer value STc of the slow path entry information to 40 seconds.

[0052] After that, when 50 seconds have passed since the forwarding process of the packet Pk2(3) last received by the relay device 1, the UDP packet Pk3 is transmitted from the LAN host 7 to the WAN host 6. The relay device 1 processes the packet Pk3 by fast path forwarding and resets the SPI timer value of the fast path entry information to 300 seconds. After that, when the updated SPI timer value of the slow path entry information of 40 seconds has passed, the SPI timer value of the slow path entry information expires. The relay device 1 confirms, as described above, that there is fast path entry information for the entry whose SPI timer value has expired. Then, the first management unit 12 updates the SPI timer value of the slow path entry information to 50 seconds based on the formula (1), as shown in FIG. 8.

[0053] After that, the relay device 1 repeats the above-mentioned judgment and reset processing. When there is an entry whose SPI timer value of the slow path entry information has expired, the first management unit 12 judges whether to update the SPI timer value based on the formula (1). When the provisional update value STn becomes 0 or less, the first management unit 12 deletes the corresponding slow path entry information and fast path entry information from the first storage unit 13 and the second storage unit 23. In this way, the SPI timer value STc of the slow path entry information is updated sequentially, and an entry with a long period of no communication is removed from the management target. When the relay device 1 receives a UDP packet Pk5 from the WAN host 6 to the LAN host 7 60 seconds after the packet transfer processing of the packet Pk4 shown in FIG. 8, it judges it to be an unauthorized access from the outside and performs a filtering process.

[0054] As described above, when the SPI timer value of the communication connection of the slow path transfer expires, the relay device 1 updates the SPI timer value of the communication connection of the slow path transfer based on the SPI timeout value for the slow path transfer, the SPI timeout value for the fast path transfer, and the SPI timer value which is the remaining time of the communication connection of the fast path transfer. In this way, the allowed time of no communication in the packet transfer is updated.

[0055] In the first embodiment, the method for managing communication connection information has been described as being applied to SPI, but the method for managing communication connection information of the first embodiment is not limited to being applied to SPI.

[0056] The relay device 1 of the first embodiment includes a slow path forwarding processor 11 that performs forwarding processing of communication between the WAN 4 and the LAN 5, a first storage unit 13, a first management unit 12, a fast path forwarding processor 21 that performs forwarding processing faster than that of the slow path forwarding processor 11, a second storage unit 23, and a second management unit 22. The first storage unit 13 stores slow path entry information of communication to be processed by the slow path forwarding processor 11 and a timeout value of the slow path forwarding. The slow path entry information is entry information in which connection information related to communication to be processed by the slow path forwarding processor and a timer value are associated with each other. The first management unit 12 manages the slow path entry information. The second storage unit 23 stores fast path entry information of communication to be processed by the fast path forwarding processor and a timeout value of the fast path forwarding. The fast path entry information is entry information in which connection information related to communication to be processed by the fast path forwarding processor and a timer value are associated with each other. The second management unit 22 manages the fast path entry information. When the timer value of the slow path entry information expires, the first management unit 12 updates the timer value of the slow path entry information based on the timer value of the fast path entry information corresponding to the connection information whose timer value has expired, the timeout value of the slow path transfer, and the timeout value of the fast path transfer.

[0057] Conventional relay devices update the states and SPI timer values ​​of all communication connection entries in the communication connection table on the slow path side and the communication connection table for fast path transfer at a fixed cycle. In contrast, in the first embodiment, when the SPI timer value of the communication connection for slow path transfer expires, a process is performed to synchronize management information only for entries with communication connections. Therefore, when there are many communication connections, the load of the CPU's calculation processing can be reduced compared to the case where the communication connection table on the slow path side and the communication connection table for fast path transfer are synchronized at a fixed cycle.

[0058] In addition, in conventional relay devices, the period for synchronizing the table is fixed, so that the SPI timer value cannot be managed accurately, and when the SPI timer value has expired, unauthorized access from the outside is not filtered, and security may not be ensured. In contrast, in the first embodiment, when the SPI timer value of the communication connection for slow path forwarding expires, it is determined whether communication is still taking place, and if it is determined that no communication is taking place, the entry information is deleted. Therefore, a highly secure SPI can be realized.

[0059] (Explanation of usage form) In the first embodiment, the case of UDP UNREPLIED (one-way) communication has been described, but it can also be applied to the case of UDP ASSURED (two-way) communication. In the case of UDP ASSURED (two-way) communication, when the SPI timer value expires and a provisional update value is obtained, the UDP ASSURED timeout setting value is referred to as the SPI timeout value for slow path transfer, and the UDP ASSURED timeout setting value is referred to as the SPI timeout value for fast path transfer.

[0060] In the first embodiment, the communication protocol is UDP, but the type of protocol is not limited. The first embodiment may be applied to a communication protocol other than UDP and TCP. [Explanation of symbols]

[0061] 1. Relay device 2 Slowpath Transfer Section 3 Fastpath Transfer Section 4. WAN 5 LAN 6 WAN Host 7 LAN Host 8 PC 9 WAN Port 10 LAN ports 11 Slow path forwarding processing unit 12 First Management Division 13 First memory unit 21 Fastpath transfer processing unit 22 Second Management Department 23 Second memory section

Claims

1. A relay device that relays communication between a first communication network and a second communication network, a slow path forwarding processing unit that performs forwarding processing of communications between the first communication network and the second communication network; a first storage unit that stores slow path entry information, which is entry information in which connection information and a timer value are associated with each other, for a communication to be processed by the slow path forwarding processing unit, and a timeout value for slow path forwarding; a first management unit that manages the slow path entry information; a fast path forwarding processor that performs forwarding processing of communications between the first communication network and the second communication network at a speed faster than that of the slow path forwarding processor; a second storage unit that stores fast path entry information, which is entry information in which connection information and a timer value are associated with each other, and a timeout value of fast path transfer, for a communication to be processed by the fast path transfer processing unit; A second management unit that manages the fast path entry information; Equipped with The first management unit is When the timer value of the slow path entry information expires, the timer value of the slow path entry information is updated based on the timer value of the fast path entry information corresponding to the connection information whose timer value has expired, a timeout value of the slow path transfer, and a timeout value of the fast path transfer. Relay device.

2. Let the timer value of the fast path entry information be FTc, the timeout value of the slow path transfer be SPO, the timeout value of the fast path transfer be FPO, and the provisional update value of the timer value of the slow path entry information be STn. The first management unit is The provisional update value STn is calculated using the formula STn=SPO-(FPO-FTc), When the provisional update value STn is equal to or less than 0, the slow path entry information and the fast path entry information corresponding to the connection information whose timer value has expired are deleted; If the provisional update value STn is equal to or less than the timeout value SPO, the timer value of the slow path entry information is updated to the provisional update value STn; If the provisional update value is greater than the timeout value SPO, the timer value of the slow path entry information is updated to the timeout value SPO. The relay device according to claim 1 .

Citation Information

Patent Citations

  • Device and method for controlling passage of packet

    JP2007221240A

  • Transfer processing apparatus

    JP2013110509A

  • Gateway device

    JP2016127446A

  • Gateway device and transmission / reception amount acquisition method

    JP2017130710A

  • Network system, controller and packet authenticating method

    US20160337372A1