Communication apparatus, traffic control method, and program
Patent Information
- Application Number
- JP2025509248
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Filing Date
- 2023-03-24
- Publication Date
- 2024-10-03
AI Technical Summary
In data center environments, high traffic volumes lead to increased communication delays and packet discards due to buffer overflow and retransmissions, especially when using PCIe-based communication methods within and between data centers.
A communication device with an estimation unit that predicts future transmission amounts based on received messages and a control unit that executes traffic control to prevent buffer overflow, dynamically managing packet transmission to reduce packet discards and delays by implementing time division multiplexing during high loads.
This approach reduces packet discards and maximizes buffer delay reduction, ensuring lossless communication and improved bandwidth usage efficiency by controlling packet transmission to prevent buffer overflow.
Abstract
Description
Communication device, traffic control method, and program
[0001] The present invention relates to the technical field of traffic control in packet communications.
[0002] In recent years, data centers have been moving towards micro data centers, where small data centers are distributed over short distances, in order to make efficient use of power, accommodate low-latency applications, and allow for flexible floor designs. In such an environment, it is expected that communications between micro data centers will increase and be mixed with communications within the data center. In addition, reducing communication latency between data centers will be important.
[0003] One way to reduce communication latency is to use ExpEther (registered trademark) and ultra-low latency packet transmission, which are methods for PCIe (registered trademark) communication between distant servers. Within a data center, multiple switches connect each server, and certain switches are connected to transmission devices such as WDM (Wavelength Division Multiplexing) systems, and the network between data centers is configured with a WDM system. Alternatively, internal bus signals within the server can be directly converted to optical signals and transmitted between data centers.
[0004] Toshiya Matsuda, Kota Nishiyama, Kana Masumoto, Masahiro Nakagawa, and Takashi Miyamura, "Ultra-Low Latency Short Packet Transmission Experiments with Optical Bus Platform Based on PCIe," OFC 2022."IEEE Standard for Local and metropolitan area networks-Media Access Control (MAC) Bridges and Virtual Bridged Local Area Networks-Amendment 17: Priority-based Flow Control (IEEE Std 802.1QbbTM-2011)," Sep.30, 2011."IEEE Standard for Local and metropolitan area networks-Bridges and Bridged Networks Amendment 25: Enhancements for Scheduled Traffic (IEEE Std 802.1QbvTM-2015)," Mar.18, 2016."PCI Express Base Specification Revision 1.0," Apr.29, 2002.
[0005] As mentioned above, when a WDM system is used within a data center or between data centers, multiple frame conversions are required, which increases latency. On the other hand, when the bus signals inside the server are directly converted to optical signals and transmitted, the frame conversion latency is reduced, and the traffic volume between data centers is generally smaller than that within a data center, so the probability of packet discarding is extremely low.
[0006] However, even if the bus signals inside the server are directly converted to optical signals and transmitted, there is a high probability that packets will be discarded when connecting to a data center network with heavy traffic, which could increase delays due to retransmissions, etc.
[0007] The present invention has been made in consideration of the above points, and aims to provide a technology that enables a base station equipped with multiple communication devices to reduce packet discard in communication devices connected to other base stations.
[0008] According to the disclosed technology, there is provided a communication device used as a first communication device at a base station having a first communication device that connects to other base stations and a plurality of second communication devices that connect devices, the communication device comprising: an estimation unit that estimates future transmission volume at a transmission port of the communication device based on a message received from a second communication device; and a control unit that executes traffic control for the second communication device or the communication device based on the transmission volume estimated by the estimation unit.
[0009] The disclosed technology provides a technology that enables a base station having a plurality of communication devices to reduce packet discards in a communication device that connects to other base stations.
[0010] 1 is a diagram illustrating a basic NW configuration connecting two DCs. FIG. 2 is a diagram illustrating an example of a NW configuration within a DC. FIG. 3 is a diagram for explaining an assumed communication method. FIG. 4 is a diagram for explaining an assumed communication method. FIG. 5 is a diagram illustrating an example of a system configuration in an embodiment of the present invention. FIG. 6 is a flowchart for explaining an overview of system operation. FIG. 7 is a diagram for explaining traffic control patterns. FIG. 8 is a diagram for explaining a specific example of a counting method. FIG. 9 is a flowchart showing a transmission permission determination process. FIG. 10 is a configuration diagram of a route SW 10 in Example 1. FIG. 11 is a configuration diagram of an SW 20 in Example 1. FIG. 12 is a flowchart showing an overall flow of processing by the route SW 10 in Example 1. FIG. 13 is a flowchart showing a processing procedure for traffic estimation processing 1. FIG. 14 is a flowchart showing a procedure for forwarding processing in each SW 20. FIG. 15 is a diagram illustrating an example of a sequence in Example 1. FIG. 16 is a diagram illustrating an example of a sequence in Example 1. FIG. 17 is a diagram illustrating a configuration diagram of a route SW 10 in Example 2. FIG. 18 is a flowchart showing an overall flow of processing by the route SW 10 in Example 2. FIG. 19 is a flowchart showing a processing procedure for traffic estimation processing 2. FIG. 19 is a diagram illustrating an example of a sequence in Example 2. FIG. 19 is a diagram illustrating an example of a sequence in Example 2. FIG. 19 is a diagram illustrating a configuration diagram of a communication device 100. FIG. 20 is a diagram illustrating an example of a hardware configuration of the communication device 100.
[0011] Hereinafter, an embodiment of the present invention will be described with reference to the drawings. The embodiment described below is merely an example, and the embodiment to which the present invention is applied is not limited to the following embodiment.
[0012] In the example described below, communication related to a DC (data center) will be described, but the technology according to this embodiment can be applied to bases other than DCs.
[0013] In the following, first, the problems with the technology according to the present embodiment will be described, and then the technology according to the present embodiment will be described. Note that, although the switches (SW) and devices themselves shown in the following description of the problems are publicly known technologies, the description of the problems (such as an analysis of the problem) is not publicly known technologies.
[0014] (About the Issues) Figure 1 shows the basic network (NW) configuration connecting two DCs. Figure 1 shows the network configuration between DCs (1) labeled "global" and the network configuration within DCs (2) labeled "local." Both (1) between DCs and (2) within DCs have a hierarchical structure. Ultra-low latency packet transmission technology can be applied as is only between DCs. However, when it comes to networks that extend into the DCs, there are issues such as packet discard (packet loss) as mentioned above.
[0015] As an example, assume that PCIe (registered trademark) is used in the DC. More specifically, the above-mentioned problem is that the increase in delay and the decrease in throughput due to packet loss caused by flow control of PCIe (registered trademark) in the DC are problems.
[0016] In other words, in the conventional general use of PCIe (registered trademark), communication is based on P2P (between GPU and host memory, etc.), so the issues described above within the DC do not arise, and flow control and congestion control are implemented in the higher-level TCP / IP / Ethernet (registered trademark).
[0017] On the other hand, in the expected future environment where a large number of PCIe (registered trademark) devices will be connected via switches, oversubscription will be unavoidable, resulting in issues such as increased latency due to flow control and packet loss due to buffer overflow.
[0018] An example of a network configuration based on the above assumption is shown in Fig. 2. Fig. 2 shows an example of a network configuration within one DC among a plurality of DCs that perform inter-DC communication.
[0019] In the configuration example shown in Figure 2, there are multiple optical bus devices equipped with SWs (switches), and servers equipped with SWs and devices are connected to the optical bus devices. Each SW and device has PCIe (registered trademark) functionality. Note that Compute Express Link (CXL) may be used instead of PCIe (registered trademark). As shown in Figure 2, there is a possibility that inter-DC communication may be discarded due to buffer overflow, or that a specific device may be unable to communicate for a long period of time due to PCIe (registered trademark) flow control.
[0020] The configuration and operation of a system / device for solving the above-mentioned problems will be described below. Examples 1 and 2 will be described as specific examples, but first, matters common to Examples 1 and 2 will be described. After describing matters common to Examples 1 and 2, Examples 1 and 2 will be described separately.
[0021] (Communication Method Assumed in This Embodiment) First, the communication method assumed in this embodiment will be described. In this embodiment, it is assumed that communication is performed between devices equipped with PCIe (registered trademark) functions using the communication methods shown in Figs. 3 and 4. Note that these communication methods are representative communication methods for PCIe (registered trademark). In Figs. 3 and 4, one or more SWs exist between device A and device B, but the SWs are not shown in Figs. 3 and 4.
[0022] In the case shown in Fig. 3, first, device A sends a Read Request to device B. The Read Request includes the amount of data to be read from device B (request size, requested data amount) as a Length value. The Read Request may also be called a Read Request message. Device A that sends the Read Request may also be called a Requester.
[0023] Device B, which has received the Read Request, returns a Completion Message (hereinafter referred to as Completion Msg.) to device A. The Completion Msg. for the Read Request contains the size of data requested in the Read Request. The Completion Msg. may also be called a response message or a completion notification.
[0024] In the case of Fig. 4, device A sends a Write Request to device B. The Write Request includes the data that device A wants to write to device B. The Write Request also includes the amount of data (requested size) as a Length value. The Write Request may also be called a Write Request message. Device A that sends the Write Request may also be called a Requester.
[0025] In this embodiment, it is assumed that the PCIe (registered trademark) communication method is used as an example, as described above, but the technology according to the present invention is not limited to PCIe (registered trademark). The technology can be applied to any communication method as long as the communication method uses messages such as read requests / write requests similar to Read Request / Write Request.
[0026] (System Configuration Example) Fig. 5 shows a system configuration example (network configuration example) according to this embodiment. Fig. 5 shows an example of the configuration within a DC. The configuration shown in Fig. 5 is a configuration common to Examples 1 and 2 described below.
[0027] In the following description, the numbers constituting the device name (such as SW1) may be written in parentheses to make it easier to distinguish between them and the symbols written in the drawings. Also, in operation explanations, etc., the symbols may be written without parentheses to avoid the notation becoming complicated. Furthermore, when SWs other than the root SW are collectively referred to (when no distinction is made between SW1, 2, etc.), they will be written as SW20. Similarly, Dev will be written as Dev30.
[0028] 5, SW1 (20-1) and SW2 (20-2) are connected under the root SW 10. Dev1 (30-1) and Dev2 (30-2) are connected to SW1 (20-1), and Dev3 (30-3) and Dev4 (30-4) are connected to SW2 (20-2).
[0029] The root SW 10 is a SW that connects DCs together. Each Dev 30 is a device that has, for example, a PCIe (registered trademark) function.
[0030] Each SW including the root SW 10 may be called a bus switch. In particular, the root SW 10 may be called a root bus switch.
[0031] Each SW (bus switch) may be, for example, a PCIe (registered trademark) switch, a CXL switch, ExpEther (registered trademark), or an optical bus device. Note that an optical bus device is a device that directly converts frames (e.g., PCIe (registered trademark) frames) for ultra-low latency packet transmission into optical signals and switches them.
[0032] In this embodiment, in order to explain the operation in an easy-to-understand manner, a configuration is used in which one stage of SW20 is connected under the root SW10, as shown in Figure 5. However, even if more SW20 are connected in multiple stages, the basic operation is the same as the operation described below based on the configuration of Figure 5.
[0033] Furthermore, the technology according to the present invention can be applied to devices other than SW. SW and "devices other than SW" may be collectively referred to as communication devices. "Devices other than SW" include devices that operate in the same way as SW but are not called SW.
[0034] The root SW 10 and each SW 20 each have ports for connecting to other SWs or devices. Packets can be sent and received to and from other SWs or devices via the ports. In Figure 5, ports 11 and 12 of the root SW 10 are shown as examples.
[0035] A port may be called an input / output interface (IF) unit. A functional unit that performs transmission in a port may be called a transmission port, and a functional unit that performs reception in a port may be called a reception port.
[0036] A transmit port has a buffer that stores data (packets) to be transmitted. This buffer may be called a transmit buffer or a transmit queue. The transmit buffer may be external to the port. In other words, the transmit buffer may be connected to the port.
[0037] (Operation Overview) Next, an overview of the system operation will be described. In this embodiment, the route SW 10 estimates the amount of traffic that will occur in the future from a received message (such as a Read Request), and controls the subordinate SW 20 so that the transmission buffer of the route SW 10 for the destination SW 20 does not overflow with transmission data. Alternatively, the route SW 10 controls the transmission (transfer) of the received packet. An overview of the processing procedure will be described with reference to the flowchart in FIG. 6.
[0038] In S1, the route SW 10 estimates, from the received message, the traffic volume for each transmission buffer of the port for each destination SW 20 of the route SW 10. In S2, the route SW 10 performs a transmission permission determination process in accordance with the calculated traffic estimation volume and the transmission permission policy.
[0039] If the transmission is permitted, the root SW 10 notifies the control target SW (e.g., subordinate SW) of the transmission permission in S3. In S4, each SW 20 performs transmission according to the transmission permission conditions. Note that if the control target SW is the root SW 10 itself, the root SW 10 may perform transmission in S4 after determining to permit transmission in S2.
[0040] By performing the above-described processing, in the system according to this embodiment, it is possible to estimate the number of tracks that will be generated in the future from Read / Write Request messages, etc., and, for example, to dynamically perform time-division multiplexing communication during high loads based on the estimated value, thereby achieving lossless operation and reducing maximum buffer delay. In this embodiment, control is performed between SW, so it is possible to improve bandwidth utilization efficiency while guaranteeing lossless operation and maximum delay transparently from the device.
[0041] (Traffic Volume Estimation Method) Next, a traffic volume estimation method will be described. In this embodiment, there are two methods for estimating traffic volume: (1) a method for estimating traffic volume from read / write requests, and (2) a method for estimating traffic volume from read requests only.
[0042] More specifically, in any of the above methods, the length value of the packet header is used to estimate the traffic volume.
[0043] As described above, in the communication method assumed in this embodiment, the headers of each Read Request and Write Request have a Length field, and the traffic volume transmitted and received between devices can be estimated from the value of this field.
[0044] In the existing PCIe (registered trademark), packet loss is suppressed by notifying buffer amounts between endpoints, but in the technology according to this embodiment, packet transmission at each SW10 / 20 is controlled so that the traffic amount estimated by the root SW10 does not exceed the buffer of the port addressed to SW20, thereby reducing packet discards and the resulting delays due to retransmission.
[0045] (Traffic Control Patterns) In this embodiment, as shown in Fig. 7, there are two traffic control patterns: Pattern 1 and Pattern 2. Details will be explained in Example 1 (corresponding to Pattern 1) and Example 2 (corresponding to Pattern 2), but an overview will be given here.
[0046] Pattern 1 corresponds to the case of "(1) estimating the traffic volume from read / write requests", and pattern 2 corresponds to the case of "estimating the traffic volume from read requests only".
[0047] In pattern 1, as a control method for Write Request traffic and Completion Msg. traffic shown in "A," when each SW 20 receives a packet from Dev 30, it temporarily buffers the packet. If the traffic volume estimated from the headers of the Read Request and Write Request, etc., is an amount that will not overflow the transmission buffer of the root SW 10 for the destination SW, the route SW 10 notifies each SW 20 of permission to transmit. If the amount is an overflow amount, time-division transmission is instructed between the SWs 20 requesting transmission to the relevant SW 20.
[0048] In pattern 2, as a control method for Read Request traffic shown in "B", the root SW 10 temporarily holds (buffers) the received Read Request, and if the Completion Msg size estimated from the Read Request does not cause the buffer to overflow, it sends the Read Request to the destination SW 20.
[0049] In Pattern 2, the control method for the traffic of the Write Request shown in "C" is as follows: The Write Request is immediately sent to SW20 and the root SW10, and if the amount of free buffer space in the sending port (sending queue) from the root SW10 to the destination SW20 is sufficiently small compared with the estimated amount of traffic due to the Read Request (i.e., the estimated amount of traffic of the Completion Msg.), the Write Request is immediately discarded on the SW20 and root SW10 side, and a NAK is returned to the requesting Dev30.
[0050] (Traffic Counting Method and Transmission Permission Determination) Next, a traffic counting method and transmission permission determination will be described. The counting methods in this embodiment include the following Counting Method 1 and Counting Method 2. Either Counting Method 1 or Counting Method 2 may be used.
[0051] Counting method 1: Count traffic for each pair of transmitting and receiving Devs 30.
[0052] Counting method 2: Count traffic for each downstream transmission buffer to the SW 20 to which the requester is connected.
[0053] In this embodiment, it is assumed that one counter is used regardless of the message type, but it is also possible to use separate counters for each message type. The transmission permission decision is as follows.
[0054] In the case of counting method 1, whether to permit transmission is evaluated by comparing the total counter value for each transmit / receive pair included in the port of the root SW 10 for the destination SW 20 with the buffer capacity of the transmit port. When determining whether to permit transmission, the condition may be that traffic for each transmit / receive pair is sent equally, or each transmit / receive pair may be weighted for transmission.
[0055] In the case of counting method 2, the transmission permission information is created in the order counted by the counter (first come, first served).
[0056] A specific example of the counting method will be described with reference to Fig. 8. Fig. 8 is a diagram illustrating the flow of packet transmission and reception in addition to Fig. 5. In the example shown in Fig. 8, Dev3 and Dev4 each send a Read Request packet to Dev1. Also, in Fig. 8, B1 and B2 respectively show images of transmission buffers.
[0057] In this case, the counting methods 1 and 2 are as follows:
[0058] Counting method 1: The route SW 10 counts using separate counters for each send / receive pair (Dev1 and Dev3, Dev1 and Dev4). That is, the route SW 10 counts the traffic generated by the Completion Msg from Dev1 to Dev3 and the traffic generated by the Completion Msg from Dev1 to Dev4 using separate counters.
[0059] Counting method 2: The route SW 10 counts the traffic associated with the downstream transmission buffer B2 destined for the SW2 connected to the requesters Dev3 and Dev4 using a single counter. In other words, the route SW 10 counts the traffic generated by the completion messages destined for Dev3 and Dev4 using the same counter.
[0060] (Transmission Permission Determination Processing in Route SW 10) Next, the transmission permission determination processing in the route SW 10 will be described with reference to the flowchart in Fig. 9. As described above, in this embodiment, there are two traffic control patterns, pattern 1 and pattern 2, and the flow shown in Fig. 9 is common to pattern 1 and pattern 2. In the case of pattern 1, the SW to be controlled is SW 20 under the route SW 10, and in the case of pattern 2, the route SW 10 itself is the SW to be controlled.
[0061] 9, the route SW 10 determines whether the estimated traffic volume for the destination SW exceeds a certain amount of the destination transmission buffer of the route SW 20. "Exceeding a certain amount of the transmission buffer" means, for example, "assuming the total storage capacity of the transmission buffer is 100%, when the estimated traffic volume is added to the current storage volume of the transmission buffer, the storage volume of the transmission buffer exceeds X%." X is a predetermined number.
[0062] If it exceeds (Yes), the process proceeds to S1002, and if it does not exceed (No), the process proceeds to S1003.
[0063] In S1002, the root SW 10 calculates the conditions under which traffic can be transmitted without overflowing the buffer (for example, time sharing among SWs), and creates a transmission permission for the SW to be controlled.
[0064] In S1003, the root SW 10 generates a transmission permission for all packets buffered by the control target SW.
[0065] 9, in a pattern requiring transmission adjustment, the adjustment is performed only once, but notification may be made each time the transmission permission amount or time changes based on a predetermined scheduling algorithm. For example, if packets remain in the buffer of each SW after the first transmission permission, the transmission permission determination may be performed again after a certain time has elapsed.
[0066] The following describes Example 1 and Example 2. Example 1 is an example using pattern 1 of traffic control, and Example 2 is an example using pattern 2 of traffic control.
[0067] First Embodiment First, a first embodiment using pattern 1 will be described. The traffic volume estimation method and traffic control method in the first embodiment are as follows.
[0068] <Embodiment 1: Traffic volume estimation method> Write Request: Each SW 20 counts the amount of Write Requests for each destination from memory information of TLP (Transaction Layer Packet) and information on the entire PCIe (registered trademark) memory address, and notifies the root SW 10 periodically or sequentially. Alternatively, only header information of Write Requests received by each SW may be transmitted to the root SW 10, and the root SW 10 may estimate the traffic volume from the header information.
[0069] Completion Msg: The route SW 10 utilizes the Length field of the Read Request to estimate the traffic volume of the Completion Msg that is sent as a reply to the Requester.
[0070] <Embodiment 1: Traffic Control Method> Control for Read Request: There is no new traffic control, and each device sends data in a non-blocking manner.
[0071] Control for Write Request: There is no new traffic control for transmission from Dev 30 to SW 20.
[0072] When transmitting from SW 20 to root SW 10, SW 20 can transmit only when it is notified of transmission permission by root SW 10. If there is no transmission permission from root SW 10, the data is buffered in a transmission queue (transmission buffer) within SW 20. Root SW 10 transmits transmission permission according to the following policy.
[0073] For each transmission port of the route SW 10 for the destination SW 20, transmission is permitted if the estimated traffic volume is small and no buffer overflow occurs (the estimated traffic volume does not exceed a certain value for the transmission buffer). In other words, transmission is permitted as long as the size of the Write Request does not cause buffer overflow.
[0074] For each transmission port of the root SW 10 for the destination SW 20, if the estimated traffic volume is large and buffer overflow is likely to occur (the estimated traffic volume exceeds a certain value for the transmission buffer), transmission permission is given in a time-divided manner among the SWs 20 requesting transmission to the relevant SW 20. Furthermore, transmission permission may be given to the SW 20 to be controlled for each certain amount of transmission data.
[0075] Control for Completion Msg: No new traffic control is performed for transmission from Dev 30 to SW 20.
[0076] Transmission from SW 20 to root SW 10 is permitted only when root SW 10 grants permission for transmission. If there is no permission for transmission from root SW 10, the data is buffered in a transmission queue within SW 20. The root SW 10 sends permission for transmission according to the following policy.
[0077] For each port of the root switch 10 for the destination switch 20, all transmissions are permitted if the estimated traffic volume is small and no buffer overflow occurs (the estimated traffic volume does not exceed a certain value for the transmission buffer). In other words, if the size of the Completion Msg to the Requester does not cause a buffer overflow, transmission is permitted.
[0078] For each port of the root SW 10 for the destination SW 20, if the estimated traffic volume is large and buffer overflow is likely to occur (the estimated traffic volume exceeds a certain value for the transmission buffer), transmission permission is given in a time-divided manner among the SWs 20 requesting transmission to the relevant SW 20. Furthermore, transmission permission may be given to the SW 20 to be controlled for each certain amount of transmission data.
[0079] <First Embodiment: Configuration of Root SW 10> Fig. 10 shows an example of the functional configuration of the root SW 10. Fig. 10 mainly shows the configuration related to the processing in the first embodiment, and does not show other functions provided in a general SW.
[0080] As shown in FIG. 10, the route SW 10 includes an input / output IF unit 11 , a traffic volume estimating unit 12 , a transmission permission determining unit 13 , a transmission permission transmitting unit 14 , and a transfer processing unit 15 .
[0081] The input / output IF unit 11 inputs and outputs information from and to the outside. The traffic volume estimation unit 12 estimates the traffic volume generated for each destination SW 20 from received messages (e.g., header information of a Read Request, Completion Msg., or Write Request, or traffic estimation information). The traffic volume estimation unit 12 has a counter for traffic volume estimation.
[0082] The transmission possibility determination unit 13 compares the buffer volume of the transmission port for each destination SW 20 with the traffic volume estimated by the traffic volume estimation unit 12, and determines whether or not the ``Completion Msg. and / or Write Request'' buffered by the subordinate SW 20 can be transmitted.
[0083] If it is determined that transmission is permitted, the transmission permission transmitter 14 notifies the SW 20 of information indicating that transmission is permitted and the amount of data that can be transmitted. The transfer processor 15 performs processing such as transferring the packet.
[0084] <Embodiment 1: Configuration of SW 20> Fig. 11 shows an example of the functional configuration of the SW 20. Fig. 11 mainly shows the configuration related to the processing in embodiment 1, and does not show other functions that a general SW has. As shown in Fig. 11, the SW 20 has an input / output IF unit 21, a traffic estimation information notification unit 22, a transmission permission receiving unit 23, a packet buffer unit 24, and a forwarding processing unit 25.
[0085] The input / output IF unit 21 inputs and outputs information to and from the outside. The traffic estimation information notification unit 22 generates traffic estimation information including header information extracted from a received packet (e.g., Write Request) or traffic estimation information including length information stored in the header information, and notifies the route SW 10 of the traffic estimation information.
[0086] The transmission permission receiving unit 23 receives the transmission permission notified from the route SW 10, and according to the transmission permission conditions, retrieves the packet stored in the packet buffer unit 24 and transmits it to the route SW 10 or Dev 30 via the transfer processing unit 25.
[0087] The packet buffer unit 24 buffers packets (for example, Completion Msg., Write Request) received from the Dev 30 until transmission permission is issued from the route SW 10. The transfer processing unit 25 performs processing such as transferring packets.
[0088] <Overall Processing Flow of the Route SW 10 in the First Embodiment> The overall processing flow of the route SW 10 in the first embodiment will be described with reference to the flowchart of FIG.
[0089] In S10, the input / output IF unit 11 receives the message. The message is passed to the traffic volume estimation unit 12.
[0090] In S11, the traffic volume estimator 12 performs traffic estimation processing 1. The traffic estimation processing 1 will be described later. In S12, if the type of the received message is a "Read Request, Write Request header, or traffic estimation volume," the process proceeds to S13, and if the type of the received message is a "Write Request or Completion Msg.", the process proceeds to S15.
[0091] In S13, the transmission permission determining unit 13 performs a transmission permission determining process. In S14, the transmission permission transmitting unit 14 notifies each SW 20 that transmission is permitted of transmission permission.
[0092] In S15, if the type of the received message is "Write Request or Completion Msg.", the transfer processing unit 15 transfers the packet to the destination.
[0093] <Traffic Estimation Process 1 in Route SW 10> Fig. 13 is a flowchart showing the processing procedure of traffic estimation process 1 in the route SW 10. The processing procedure of traffic estimation process 1 in the route SW 10 will be described with reference to Fig. 13 .
[0094] In S11-1, the traffic volume estimator 12 determines the type of the received message. If the type is "Read Request," the process proceeds to S11-2. If the type is "Completion Msg. or Write Request," the process proceeds to S11-3. If the type is "Write Request header or traffic estimation volume," the process proceeds to S11-4.
[0095] In S11-2, the traffic volume estimator 12 adds the size of the Completion Msg acquired from the Length in the header of the received Read Request to the traffic estimation counter.
[0096] In S11-3, the traffic volume estimating unit 12 subtracts the size of the received Completion Msg. or Write Request from the traffic estimation counter.
[0097] In S11-4, the traffic volume estimator 12 adds the size of the Length in the received Write Request header or the size of the received estimated traffic volume to the traffic estimation counter.
[0098] 14 is a flowchart showing the procedure of the transfer process in each SW 20 under the root SW 10. The transfer process in each SW 20 will be described with reference to FIG.
[0099] In S20, the transfer processing unit 25 determines whether the received packet has been transferred from the route SW 10 or has been sent from the Dev 30. If the received packet has been transferred from the route SW 10, the process proceeds to S27, and if the received packet has been sent from the Dev 30, the process proceeds to S21.
[0100] In S21, the transfer processing unit 25 determines the type of the message received from Dev 30. If the type is "Read Request," the process proceeds to S25, if the type is "Write Request," the process proceeds to S22, and if the type is "Completion Msg.", the process proceeds to S26.
[0101] If the message type is "Write Request", in S22 the packet buffer unit 24 temporarily buffers the packet. In S23, the traffic estimation information notification unit 22 notifies the route SW 10 of the transmission amount of the Write Request. Alternatively, the traffic estimation information notification unit 22 may transfer only the header of the received Write Request to the route SW 10. Then, the process proceeds to S24.
[0102] If the message type is "Completion Msg.", the packet buffer unit 24 temporarily buffers the packet in S26, and the process proceeds to S24.
[0103] In S24, the transmission permission receiving unit 23 determines whether or not transmission permission has been received from the route SW 10, and if so, the process proceeds to S25. In S25, the forwarding processing unit 25 forwards the packet to the destination.
[0104] In addition, in S27, which is the case when the received packet is forwarded from the route SW 10, the forwarding processing unit 25 forwards the packet to the destination Dev 30.
[0105] <Example of Sequence in First Embodiment (Operations from Read Request to Completion Msg.)> With reference to FIG. 15, an example of a sequence when a Read Request is sent from Dev1 to Dev3 will be described.
[0106] In S101, Dev1 sends a Read Request to SW1. In S102, SW1 forwards the Read Request to root SW10. In S103, root SW10 executes traffic volume estimation process 1, and in S104 forwards the Read Request to SW2. In S105, SW2 forwards the Read Request to Dev3. In S107, Dev3 sends a Completion Msg. to SW2, and in S108, SW2 buffers the Completion Msg.
[0107] Meanwhile, in S106, the route SW 10 performs a transmission permission determination process. If it is determined that transmission is permitted for SW2, in S109 the route SW 10 transmits a transmission permission notification to SW2. In S110, SW2 transmits a Completion Msg. to the route SW 10. In S111, the route SW 10 performs traffic volume estimation process 1, and in S112 transfers the Completion Msg. to SW1. In S113, SW1 transfers the Completion Msg. to Dev1.
[0108] <Example of Sequence in First Embodiment (Example of Write Request Control)> With reference to FIG. 16, an example of a sequence when a Write Request is sent from Dev3 to Dev1 will be described.
[0109] In S201, Dev3 transmits a Write Request to SW2. In S202, SW2 buffers the Write Request. In S203, SW2 notifies the root SW 10 of the estimated traffic volume or the Write Request header information.
[0110] The route SW 10 performs traffic volume estimation processing 1 in S204, and performs transmission permission determination processing in S205.
[0111] If transmission from SW2 is permitted, then in S206, the root SW 10 transmits a transmission permission notification to SW2. In S207, SW2 transmits a Write Request to the root SW 10. In S208, the root SW 10 transfers the Write Request to SW1, and in S209, SW1 transfers the Write Request to Dev1. In S210, the root SW 10 performs traffic volume estimation process 1.
[0112] <Other Examples> In the example of traffic control described above in the first embodiment, transmission stop is set as the default, and when transmission is permitted, the route SW 10 notifies permission / stop (or transmission amount), but this is just one example. In traffic control, transmission permission may be set as the default, and when transmission is not permitted, the route SW 10 may notify stop / resume. Furthermore, the amount of data that can be transmitted (in units of bytes or DW (4 bytes)) may be managed, as in flow control of PCIe (registered trademark), and the route SW 10 may update the amount of data.
[0113] (Embodiment 2) Next, a description will be given of embodiment 2 using traffic control pattern 2. The traffic volume estimation method and traffic control method in embodiment 2 are as follows.
[0114] <Second embodiment: Traffic volume estimation method> Write Request: In the second embodiment, traffic volume estimation for Write Request is not performed.
[0115] Completion Msg: The route SW 10 uses the Length field of the Read Request to estimate the amount of data in the Completion Msg that will be sent to the Requester as a reply.
[0116] <Example 2: Traffic control method> Control of Read Request: The Read Request is temporarily buffered in the route SW10, and transmission control of the Read Request is performed according to the following scheduling policy based on the estimated traffic volume calculated above and the free space in the downstream transmission buffer addressed to the SW20 to which the Requester is connected.
[0117] For each transmission port of the route SW 10 for the destination SW 20, transmission is permitted if the estimated traffic volume is small and no buffer overflow will occur (the estimated traffic volume does not exceed a certain value for the transmission buffer). In other words, transmission is permitted as long as the size of the Completion Msg. does not cause buffer overflow.
[0118] For each transmission port of the root SW 10 for the destination SW 20, if the estimated traffic volume is large and buffer overflow is possible (the estimated traffic volume exceeds a certain value for the transmission buffer), transmission permission is given in a time-division manner among the SWs 20 requesting transmission to the relevant SW 20. Also, transmission permission may be given to the controlled SW for each certain amount of transmission data. For example, time division may be performed by allocating transmission permission timing for each "(packet size / transfer rate) + RTT time." The above transfer rate is, for example, the transfer rate of PCIe (registered trademark).
[0119] Control over Write Requests: Write Requests can be sent immediately to SW20 and root SW10, but if the amount of free buffer space in the transmission queue (transmission buffer) from root SW10 to destination SW20 is sufficiently small compared to the estimated traffic volume of the Completion Msg. estimated from the Read Request, SW20 and root SW10 will immediately discard the Write Request and return a NAK to the requesting Dev30 (prompting retransmission).
[0120] Control for Completion Msg: No new traffic control is performed. <Embodiment 2: Configuration of Route SW 10> In embodiment 2, the SW 20 under the control of the route SW 10 can be one having normal functions.
[0121] Fig. 17 shows an example of the functional configuration of the root SW 10 in the embodiment 2. Fig. 17 mainly shows the configuration related to the processing in the embodiment 2, and does not show other functions provided in a general SW.
[0122] As shown in FIG. 17, the route SW 10 includes an input / output IF unit 11 , a transfer processing unit 15 , a Write Request transmission permission determination unit 16 , a traffic volume estimation unit 17 , a transmission permission determination unit 18 , and a packet buffer unit 19 .
[0123] The input / output IF unit 11 inputs and outputs information from and to the outside. The transfer processing unit 15 performs packet transfer processing, etc. The Write Req. transmission permission determination unit 16 determines whether a received Write Request message can be transmitted. The traffic volume estimation unit 17 estimates the traffic volume generated for each destination SW 20 from received messages (e.g., Read Request, Completion Msg.).
[0124] The transmission permission determination unit 18 compares the buffer volume of the transmission port with the traffic volume estimated by the traffic volume estimation unit 17 for each destination SW 20, and determines whether or not the Read Request being buffered by itself can be transmitted. The packet buffer unit 19 buffers the received packet (Read Request) until transmission permission is granted by the transmission permission determination unit 18.
[0125] <Overall Processing Flow of the Route SW 10 in the Second Embodiment> The overall processing flow of the route SW 10 will be described with reference to the flowchart of FIG.
[0126] The transfer processing unit 15 receives a message in S31 and determines the type of the received message in S32. If the type of the received message is a "Read Request or Completion Msg.", the process proceeds to S33, and if the type of the received message is a "Write Request," the process proceeds to S38.
[0127] In S33, the traffic estimation unit 17 performs traffic estimation processing 2. In S34, if the type of the received message is "Read Request", the process proceeds to S35, and if the type of the received message is "Completion Msg.", the process proceeds to S37.
[0128] In S35, the transmission permission determining unit 18 performs a transmission permission determining process. If transmission is permitted (Yes in S36), the forwarding processing unit 15 forwards the packet to the destination SW 20 in S37.
[0129] In S38, when the received message type is a Write Request, the transmission possibility determination unit 18 proceeds to S40 if the free space in the transmission buffer of the transmission queue toward the destination SW 20 is sufficiently small compared to the estimated traffic volume of the Completion Msg. estimated from the Read Request (Yes in S38), and proceeds to S39 if it is not sufficiently small (No in S38).
[0130] In S39, the transfer processing unit 15 transfers the received Write Request packet to the destination SW 20. In S40, the transfer processing unit 15 discards the received Write Request packet and transmits a NAK to the source Dev 30.
[0131] <Traffic Estimation Process 2 in Route SW 10> Fig. 19 is a flowchart showing the processing procedure of traffic estimation process 2 in the route SW 10. The processing procedure of traffic estimation process 2 in the route SW 10 will be described with reference to Fig. 19 .
[0132] In S33-1, the traffic volume estimating unit 17 determines the type of the received message. If the type is "Read Request," the process proceeds to S33-3, and if the type is "Completion Msg.", the process proceeds to S33-2.
[0133] In S33-3, the traffic volume estimator 17 adds the size of the Completion Msg acquired from the Length in the header of the received Read Request to the traffic estimation counter.
[0134] In S33-2, the traffic volume estimator 17 subtracts the size of the received Completion Msg. from the traffic estimation counter.
[0135] <Example of Sequence in Second Embodiment (Operation when a Read Request is Received)> With reference to FIG. 20, an example of a sequence when a Read Request is transmitted from Dev1 to Dev3 will be described.
[0136] In S301, Dev1 transmits a Read Request to SW1. In S302, SW1 transfers the Read Request to the root SW 10. The root SW 10 buffers the Read Request in S303, performs traffic volume estimation processing 2 in S304, and performs transmission permission determination processing in S305.
[0137] In S306, the root SW 10 transfers the Read Request to SW 2. In S307, SW 2 transfers the Read Request to Dev 3. In S308, Dev 3 sends a Completion Msg. to SW 2, and in S309, SW 2 transfers the Completion Msg. to the root SW 10.
[0138] In S310, the route SW 10 transfers the Completion Msg. to SW1, and in S311, SW1 transfers the Completion Msg. to Dev1. In S312, the traffic estimation unit 17 executes the traffic estimation process 2.
[0139] <Sequence Example of Example 2 (Operation when a Write Request is Received)> An example sequence when a Write Request is sent from Dev3 to Dev1 will be described with reference to Fig. 21. This sequence example shows the flow when a Write Request is received, and the estimated traffic volume is compared with the available buffers, resulting in a determination that transmission is not possible. Note that if transmission is determined to be possible, the route SW 10 forwards the received packet to the destination.
[0140] In S401, Dev3 sends a Write Request to SW2. In S402, SW2 transfers the Write Request to the root SW 10. In S403, the transmission permission determination unit 18 of the root SW 10 performs the transmission permission determination process, determines that the transmission is not permitted as described above, discards the Write Request, and returns a NAK to SW2 in S404. In S405, SW2 returns a NAK to Dev3.
[0141] 22 shows a configuration example of a communication device 100 including a function of estimating traffic volume and performing traffic control in the route SW 10. The communication device 100 shown in Fig. 22 may be the route SW 10 itself, or may be an external device in the case where the function of estimating traffic volume and performing traffic control in the route SW 10 is provided outside the switching function.
[0142] 22 , the communication device 100 includes an estimation unit 110 and a control unit 120. The communication device 100 corresponds to a communication device used as a first communication device in a base that includes a first communication device that connects to other bases and a plurality of second communication devices that connect devices.
[0143] Based on a message received from a second communication device, the estimation unit 110 estimates the future transmission volume (traffic volume) at the transmission port of the communication device 100. Based on the transmission volume estimated by the estimation unit 110, the control unit 120 executes traffic control for the second communication device or the communication device 100.
[0144] (Hardware Configuration Example) The communication device 100 can be realized, for example, by causing a computer to execute a program. This computer may be a physical computer or a virtual machine on the cloud.
[0145] That is, communication device 100 can be realized by executing a program corresponding to the processing performed by the device using hardware resources such as a CPU and memory built into a computer. The program can be recorded on a computer-readable recording medium (such as a portable memory) and stored or distributed. The program can also be provided via a network such as the Internet or email.
[0146] Fig. 23 is a diagram showing an example of the hardware configuration of the computer. The computer in Fig. 23 includes a drive device 1000, an auxiliary storage device 1002, a memory device 1003, a CPU 1004, an interface device 1005, a display device 1006, an input device 1007, an output device 1008, and the like, all of which are interconnected by a bus BS. The computer may further include a GPU.
[0147] The program that realizes the processing on the computer is provided by a recording medium 1001, such as a CD-ROM or a memory card. When the recording medium 1001 storing the program is set in the drive device 1000, the program is installed from the recording medium 1001 to the auxiliary storage device 1002 via the drive device 1000. However, the program does not necessarily have to be installed from the recording medium 1001, but may be downloaded from another computer via a network. The auxiliary storage device 1002 stores the installed program as well as necessary files, data, etc.
[0148] The memory device 1003 reads and stores a program from the auxiliary storage device 1002 when an instruction to start the program is received. The CPU 1004 realizes functions related to the communication device 100 in accordance with the program stored in the memory device 1003. The interface device 1005 is used as an interface for connecting to a network, etc. The display device 1006 displays a GUI (Graphical User Interface) or the like according to the program. The input device 1007 is composed of a keyboard, mouse, buttons, a touch panel, etc., and is used to input various operation instructions. The output device 1008 outputs the results of calculations.
[0149] (Effects of the embodiment) As described above, the technology described in this embodiment controls the root SW 10 and the subordinate SW 20 so that the transmission buffer of the root SW 10 does not overflow, thereby making it possible to reduce packet discards even when there is a large amount of traffic, such as in intra-DC communications.
[0150] The following additional notes are provided regarding the above-described embodiments.
[0151] <Additional Notes> (Additional Item 1) A communication device used as a first communication device at a base including a first communication device that connects to other bases and a plurality of second communication devices that connect devices, the communication device comprising: an estimation unit that estimates a future transmission volume at a transmission port of the communication device based on a message received from a second communication device; and a control unit that executes traffic control for the second communication device or the communication device based on the transmission volume estimated by the estimation unit. (Additional Item 2) The communication device according to Additional Item 1, wherein the message is a read request message, and the estimation unit estimates a transmission volume of traffic toward a sender of the read request message based on a requested data volume of the read request message. (Additional Item 3) The communication device according to Additional Item 1, wherein the message is a message including a requested data volume acquired from a write request message, and the estimation unit estimates a transmission volume of traffic toward a destination of the write request message based on the requested data volume. (Supplementary Item 4) The communication device according to Supplementary Item 1, wherein the control unit controls transmission of a response message to a read request message or transmission of a write request message to a second communication device. (Supplementary Item 5) The communication device according to Supplementary Item 1, wherein the message is a read request message, and the control unit controls transmission of the read request message based on the transmission volume of response messages to the read request message estimated by the estimation unit. (Supplementary Item 6) The communication device according to Supplementary Item 1, wherein the control unit controls transmission of a write request message received by the communication device based on the amount of free buffer space in a transmission port. (Supplementary Item 7) A traffic control method executed by a communication device used as a first communication device at a base having a first communication device that connects to other bases and a plurality of second communication devices that connect devices, the traffic control method comprising: an estimation step of estimating future transmission volume at a transmission port of the communication device based on a message received from a second communication device; and a control step of executing traffic control for the second communication device or the communication device based on the transmission volume estimated by the estimation step.(Supplementary Item 8) A non-transitory storage medium storing a program for causing a computer to function as each unit in the communication device according to any one of Supplementary Items 1 to 6.
[0152] Although the present embodiment has been described above, the present invention is not limited to such a specific embodiment, and various modifications and changes are possible within the scope of the gist of the present invention described in the claims.
[0153] REFERENCE SIGNS LIST 10 Route SW 11 Input / Output IF unit 12 Traffic volume estimation unit 13 Transmission permission / prohibition determination unit 14 Transmission permission transmission unit 15 Transfer processing unit 1 16 Write Req. transmission permission / prohibition determination unit 17 Traffic volume estimation unit 18 Transmission permission / prohibition determination unit 19 Packet buffer unit 20 SW 21 Input / Output IF unit 22 Traffic estimation information notification unit 23 Transmission permission reception unit 24 Packet buffer unit 25 Transfer processing unit 30 Dev 1000 Drive device 1001 Recording medium 1002 Auxiliary storage device 1003 Memory device 1004 CPU 1005 Interface device 1006 Display device 1007 Input device 1008 Output device
Claims
1. A communication device used as a first communication device at a base station having a first communication device that connects to other base stations and a plurality of second communication devices that connect devices, the communication device comprising: an estimation unit that estimates future transmission volume at a transmission port of the communication device based on a message received from a second communication device; and a control unit that performs traffic control for the second communication device or the communication device based on the transmission volume estimated by the estimation unit.
2. The communication device according to claim 1, wherein the message is a read request message, and the estimation unit estimates the amount of traffic sent toward a sender of the read request message based on the amount of requested data in the read request message.
3. The communication device of claim 1, wherein the message is a message including a requested data amount obtained from a write request message, and the estimation unit estimates the transmission amount of traffic toward the destination of the write request message based on the requested data amount.
4. The communication device according to claim 1, wherein the control unit controls transmission of a response message to a read request message or transmission of a write request message to the second communication device.
5. The communication device according to claim 1, wherein the message is a read request message, and the control unit executes transmission control of the read request message based on the amount of response messages to be transmitted in response to the read request message estimated by the estimation unit.
6. The communication device according to claim 1, wherein the control unit controls transmission of a write request message received by the communication device based on the amount of free buffer space in a transmission port.
7. A traffic control method executed by a communication device used as a first communication device at a base having a first communication device that connects to other bases and a plurality of second communication devices that connect devices, the traffic control method comprising: an estimation step of estimating future transmission volume at a transmission port of the communication device based on a message received from a second communication device; and a control step of executing traffic control for the second communication device or the communication device based on the transmission volume estimated by the estimation step.
8. A program for causing a computer to function as each unit in the communication device according to any one of claims 1 to 6.
