Message processing method, device, equipment and storage medium
By sending fault channel messages to the server when the switch closes a port and reducing the retransmission cycle, the problems of slow network convergence and high latency during message retransmission are solved, thus achieving fast network convergence and timely transmission.
Patent Information
- Application Number
- CN202211522135.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-11-30
- Publication Date
- 2024-11-05
- Estimated Expiration
- 2042-11-30
AI Technical Summary
Existing technologies suffer from slow network convergence and high latency during message retransmission.
When a switch closes a port, it sends a fault channel message to the server. Based on this message, the server reduces the retransmission period of the target link used to transmit messages in the data center and retransmits the messages according to the reduced retransmission period.
It improves network convergence performance, reduces network latency, and ensures timely message transmission.
Smart Images

Figure CN115865850B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of communication technology, and in particular to a message processing method, device, equipment and storage medium. Background Art
[0002] With the rapid development of network technology, switches have become an indispensable device in data centers. They can provide exclusive electrical signal paths for any two network nodes connected to the switch. However, since the traffic that the switch needs to process is very large, it is limited by the processing capacity of the chip inside the switch and other sudden reasons, there will be problems with message loss inside the data center.
[0003] In order to solve the above problem, the method of message retransmission is currently mainly used to solve it. Specifically, after receiving multiple messages sent by the sending server, the receiving server determines whether there is a message loss. If so, it sends a retransmission message to the sending server to instruct the retransmission of the lost message. If not, it sends a confirmation message to the sending server. If the receiving server does not receive the message returned by the receiving server within a preset period, it means that all the messages sent this time are lost, and the message is resent to the receiving server.
[0004] However, the network convergence performance of the message retransmission process in the prior art is slow and the delay is high. Summary of the invention
[0005] The present application provides a message processing method, device, equipment and storage medium to solve the problems of slow network convergence performance and high latency in the message retransmission process in the prior art.
[0006] In a first aspect, an embodiment of the present application provides a message processing method, which is applied to a server in a data center, and the method includes:
[0007] Sending a message to a target server through a switch in the data center;
[0008] receiving a fault channel message sent by a switch of the data center, wherein the fault channel message is used to indicate that a port of the switch is closed and there is a packet loss problem;
[0009] According to the faulty channel message, reducing the retransmission period of the target link in the data center for transmitting the message;
[0010] According to the reduced retransmission period, the message is resent to the target server through the switch.
[0011] In a possible design of the first aspect, the fault channel message includes a server IP, a target server IP, a server layer-4 port number, and a target server layer-4 port number.
[0012] In another possible design of the first aspect, reducing the retransmission period of a target link in the data center for transmitting the message according to the faulty channel message includes:
[0013] According to the faulty channel message, the retransmission period of the target link is adjusted to a minimum value within an adjustable range.
[0014] In another possible design of the first aspect, the method further includes:
[0015] After the message is successfully sent to the target server, the retransmission period of the target link is restored.
[0016] In a second aspect, an embodiment of the present application provides a message processing method, which is applied to a switch in a data center, and the method includes:
[0017] receiving a message sent by the server to the target server through the switch;
[0018] When the port of the switch is closed, a fault channel message is sent to the server, wherein the fault channel message is used to indicate that the port of the switch is closed and there is a packet loss problem;
[0019] receiving the message resent by the server;
[0020] The message is sent to the target server.
[0021] In a possible design of the second aspect, the fault channel message includes a server IP, a target server IP, a server layer-4 port number, and a target server layer-4 port number.
[0022] In a third aspect, an embodiment of the present application provides a message processing device, which is applied to a server in a data center, and the device includes:
[0023] A sending module, used for sending a message to a target server through a switch in the data center;
[0024] A receiving module, used for receiving a fault channel message sent by a switch of the data center, wherein the fault channel message is used for indicating that a port of the switch is closed and there is a packet loss problem;
[0025] A processing module, configured to reduce a retransmission period of a target link in the data center for transmitting the message according to the faulty channel message;
[0026] The sending module is further configured to resend the message to the target server through the switch according to the reduced retransmission period.
[0027] In a possible design of the third aspect, the fault channel message includes the server IP, the target server IP, the server layer-4 port number, and the target server layer-4 port number.
[0028] In another possible design of the third aspect, the processing module is specifically configured to:
[0029] According to the faulty channel message, the retransmission period of the target link is adjusted to a minimum value within an adjustable range.
[0030] In yet another possible design of the third aspect, the processing module is further configured to:
[0031] After the message is successfully sent to the target server, the retransmission period of the target link is restored.
[0032] In a fourth aspect, the present application embodiment provides a message processing
[0033] A device is applied to a switch in a data center, the device comprising:
[0034] A receiving module, used for receiving a message sent by the server to the target server through the switch;
[0035] A sending module, used for sending a fault channel message to the server when the port of the switch is closed, wherein the fault channel message is used for indicating that the port of the switch is closed and there is a packet loss problem;
[0036] The receiving module is further used to receive the message resent by the server;
[0037] The sending module is further used to send the message to the target server.
[0038] In a possible design of the fourth aspect, the fault channel message includes the server IP, the target server IP, the server layer-4 port number, and the target server layer-4 port number.
[0039] In a fifth aspect, an embodiment of the present application provides an electronic device, comprising: a processor, a memory, a transceiver, and computer program instructions stored in the memory and executable on the processor, wherein the processor is used to implement the methods provided by the first aspect, the second aspect, and each possible design when executing the computer program instructions.
[0040] In a sixth aspect, an embodiment of the present application may provide a computer-readable storage medium, in which computer-executable instructions are stored. When the computer-executable instructions are executed by a processor, they are used to implement the methods provided by the first aspect, the second aspect, and various possible designs.
[0041] The message processing method, device, equipment and storage medium provided by the embodiment of the present application, in which the server sends a message to the target server through the switch of the data center, and the switch sends a fault channel message to the server when the port of the switch is closed. The server reduces the retransmission period of the target link used to transmit the message in the data center according to the fault channel message, and the server re-sends the message to the target server through the switch according to the reduced retransmission period, and the switch sends the message to the target server. In this technical solution, when a link fails, the redundant interaction process between the switch and the target server is reduced, and when all messages are lost, the server can retransmit the message to the target server without waiting for a retransmission period. At the same time, the server reduces the retransmission period of the faulty link, which ensures the timeliness of the target server receiving the message, improves the convergence performance of the network, and reduces the network delay. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0043] Figure 1 A schematic diagram of a network architecture provided for an embodiment of the present application;
[0044] Figure 2 Schematic diagram of the principles of TCP / IP technology and RDMA technology provided in the embodiments of the present application;
[0045] Figure 3 A schematic diagram of a first embodiment of a data center network topology provided in an embodiment of the present application;
[0046] Figure 4 A schematic diagram of a scenario of a first embodiment of routing convergence provided by the prior art;
[0047] Figure 5 A schematic diagram of a scenario of a second embodiment of routing convergence provided by the prior art;
[0048] Figure 6 A schematic diagram of a scenario of a third embodiment of routing convergence provided by the prior art;
[0049] Figure 7 A schematic diagram of a second data center network topology embodiment provided in an embodiment of the present application;
[0050] Figure 8A schematic diagram of a third data center network topology embodiment provided in an embodiment of the present application;
[0051] Fig. 9 A schematic diagram of a fourth data center network topology embodiment provided in an embodiment of the present application;
[0052] Fig.10 A flowchart of a first embodiment of a message processing method provided in an embodiment of the present application;
[0053] Fig.11 A schematic diagram of a fifth data center network topology embodiment provided in an embodiment of the present application;
[0054] Fig.12 A schematic diagram of the structure of a message processing device embodiment 1 provided in an embodiment of the present application;
[0055] Fig.13 A schematic diagram of the structure of a second embodiment of a message processing device provided in an embodiment of the present application;
[0056] Fig.14 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application.
[0057] The above drawings have shown clear embodiments of the present application, which will be described in more detail later. These drawings and text descriptions are not intended to limit the scope of the present application in any way, but to illustrate the concept of the present application to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION
[0058] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0059] Before introducing the embodiments of the present application, the application background of the embodiments of the present application is first explained:
[0060] In the 1970s, the low-cost and simple-structured Transmission Control Protocol / Internet Protocol (TCP / IP) protocol gradually became the mainstream protocol for network communications and was widely used in the Internet communications industry.
[0061] In recent years, the types of data center network services have gradually evolved into three categories, namely ordinary data center services, high-performance computing services, and storage services. Different types of services have different network requirements. Ordinary data center services require data center networks to have strong network topology scalability and low network costs; multi-node inter-process communication for high-performance computing services has very high network latency requirements; storage services have very high requirements for network communication reliability, and the network needs to achieve absolutely zero packet loss.
[0062] As network specifications expand rapidly, traditional TCP / IP protocols and Ethernet-related technologies have been unable to keep up with the times, and backward architecture design has restricted the further development of the Internet. In data center networks, traditional Ethernet can be applied to ordinary data center services, but cannot cope with high-performance computing services and storage services. Based on this, InfiniBand (IB) and optical switches came into being. IB can be applied to high-performance computing network scenarios with low latency requirements, and optical switches can provide highly reliable and zero-packet-loss Fibre Channel (FC) networks for storage services.
[0063] Figure 1 This is a schematic diagram of the network architecture provided in the embodiment of the present application. Figure 1 As shown in the figure, servers can communicate with each other through Ethernet, IB or FC. The traffic of Ethernet can reach 10 Gigabytes (GB), the traffic of IB can reach 56GB, and the traffic of FC can reach 8GB. The server is equipped with a network interface card (NIC), a host bus adapter (HBA) and a host channel adapter (HCA) to facilitate the server to access Ethernet, FC and IB.
[0064] However, IB and FC networks have expensive installation and maintenance costs. In order to protect their own profits, enterprises need to increase the research and development intensity of network communication systems to lay the foundation for subsequent network evolution.
[0065] Figure 2 This is a schematic diagram of the principles of the TCP / IP technology and the RDMA technology provided in the embodiment of the present application. Figure 2 As shown, the traditional TCP / IP technology is in the process of link establishment, that is, Figure 2The solid arrow part in the middle needs to be copied three times, which occupies a lot of server resources and memory bus bandwidth. Data needs to be copied and moved back and forth between system memory, processor cache, and network controller cache, and needs to be transferred through the central processing unit (CPU), which consumes a lot of CPU and puts a heavy burden on the CPU and memory. In particular, the serious "mismatch" between network bandwidth, processor speed, and memory bandwidth exacerbates the network delay effect, resulting in slow startup and poor throughput.
[0066] To solve this problem, network experts proposed a new communication mechanism, Remote Direct Memory Access (RDMA). In terms of implementation, RDMA is actually a remote memory direct high-speed access technology that fully optimizes the intelligent network card and software architecture. By solidifying the RDMA protocol on the hardware (i.e., the network card), it achieves its goal of high-performance remote direct data access. Figure 2 The dashed part in the figure. In RDMA technology, applications can perform data transfer directly without involving the network software stack. Data can be sent directly to the buffer or can be received directly from the buffer without being copied to the network layer.
[0067] In other words, RDMA is equivalent to a fast channel technology. During the data transmission process, it has the advantage of fast startup and maximizes the use of bandwidth. At the same time, compared with the TCP / IP protocol, RDMA only needs one copy, which can effectively reduce the kernel latency. The network card offload function makes the CPU power consumption zero, greatly reducing the network communication latency.
[0068] With the birth of TCP / IP protocol and RDMA, the foundation for the evolution of the network has been laid. However, solving the packet loss problem in the communication process of data center network equipment and reducing the impact of network packet loss have become problems that both protocols need to face. What technology network communication equipment uses to converge network and host communication failures has become a difficult problem.
[0069] Routing convergence refers to the process from re-establishing the routing table to sending, learning, and stabilizing after the network topology changes, and notifying all relevant routers in the network of the change. It is the behavior of discovering alternative routes by recalculating routes caused by network topology changes. Routing convergence can make all routers in the routing domain reach a consistent state on the current network structure and routing forwarding. Convergence time refers to the state transition process from the change of the network topology to the re-consistency of the routing tables in all routing devices in the network.
[0070] Figure 3 This is a schematic diagram of a data center network topology embodiment 1 provided in an embodiment of the present application. Figure 3 As shown in Figure 2, when a single link fails, the failed single link is Figure 3 For links marked with an "×", the External Border Gateway Protocol (EBGP) is configured on the physical port, and the port is closed (down). The Underlay EBGP neighbor is quickly down. Enable the Virtual Extensible Local Area Network (VXLAN) tunnel destination precise route status subscription function, so that the tunnel status is only open (up) when the tunnel destination Internet Protocol (IP) address is precisely routed. In this way, when the tunnel destination IP address is not precisely routed, the tunnel is quickly down. When the network protocol (tunnel) is down, the Overlay Equal Cost Multi-path (ECMP) will quickly refresh the route, and achieve rapid network convergence by refreshing the route. Among them, the servers in the value-added service area can be wide area network load balancing (Wide Area Network Linux Virtual Server, WANLVS), local area network load balancing (Local Area Network Linux Virtual Server, LANLVS), policy firewall (Policy firewall, Policy FW), network address translation firewall (Network Address Translation Firewall, NAT FW), and management firewall (managent firewall, MGT FW).
[0071] Next, explain Underlay and Overlay:
[0072] Underlay network: In the construction of traditional Internet Technology (IT), virtual layer computing runs on hardware servers. In order to connect with the virtual server, the physical network needs to be adjusted to connect with the new computing layer.
[0073] Overlay network: Overlay network, a software-defined virtual logical network is superimposed on the existing physical network.
[0074] At present, the scope of action and the algorithms used by routing protocols can be shown in Table 1. Since various routing protocols have their own algorithm characteristics and different scopes of action, their performance in routing convergence is not the same.
[0075] Table 1
[0076] Routing Protocols Scope Algorithm used RIP Overseas Distance Vector OSPF Overseas Link Status IS-IS Overseas Link Status IGP Overseas Distance Vector BGP Within the domain Distance Vector EGP Within the domain Distance Vector
[0077] In data center networks, commonly used routing protocols include BGP (iBGP, eBGP). The BGP protocol uses a distance vector algorithm, which will produce an infinite count problem of slow convergence, thereby causing inconsistency in the routing tables of each switch. Although there are many methods to determine whether the network is converged, how to make it converge, and how to solve the problem of slow convergence under the premise of convergence, there is still no method that can comprehensively solve the convergence performance problem of the network from all stages.
[0078] In addition, for the slow convergence problem, each solution only solves part of the problem, and each solution has a different focus. Therefore, most solutions are aimed at making corresponding improvements to a certain network failure condition, and cannot effectively solve the problem of fast convergence of network failures from end to end.
[0079] Next, the communication principles of TCP / IP and RDMA protocols in the prior art are illustrated through three scenarios.
[0080] Scenario 1: No packet loss scenario.
[0081] Figure 4 The following is a schematic diagram of a scenario of a first embodiment of routing convergence provided by the prior art. Figure 4 As shown, the sending server sends four messages, namely, message 1, message 2, message 3 and message 4, to the receiving server. When the receiving server receives the above four messages, it indicates that there is no packet loss, and then it replies with an ACK message to the sending server to inform the sending server that the message is received normally and subsequent data can be sent normally.
[0082] Scenario 2: Partial packet loss scenario.
[0083] Figure 5 The following is a schematic diagram of a second scenario of routing convergence embodiment provided by the prior art. Figure 5As shown, the sending server sends message 1, message 2, message 3 and message 4 to the receiving server, a total of four messages. Assume that the receiving server only receives message 1, message 2, and message 4 (the order is message 1 first, then message 2, and finally message 4), which means that message 3 is lost during the transmission process. The receiving end sends a retransmission message to indicate the resending of message 3. After receiving the retransmission message, the sending server retransmits message 3 to the receiving server.
[0084] Optionally, in the TCP protocol, retransmission of the message may be implemented through a Selective ACK (abbreviated as: sack) message; in the RDMA protocol, retransmission of the message may be implemented through a Negative Acknowledgement ACK (abbreviated as: nack).
[0085] Scenario 3: All packets are lost.
[0086] Figure 6 The following is a schematic diagram of a scenario of the third embodiment of routing convergence provided by the prior art. Figure 6 As shown, the sending server sends four messages, namely, message 1, message 2, message 3 and message 4, to the receiving server. When all the messages are lost during the network transmission, the receiving server cannot perceive whether the sending server has sent any communication messages. Therefore, when the sending server does not receive the ACK message returned by the receiving server within the time period of the recovery time object (RTO), it resends the message to the receiving server.
[0087] In summary, in the prior art, when packet loss occurs during communication, the receiving server needs to send a retransmission message to the sending server, which takes a long time to process. Moreover, in the scenario where all packets are lost, the retransmission period (that is, the above-mentioned RTO) is long, resulting in slow network convergence performance and high latency.
[0088] Based on this, the present application provides a message processing method, when the receiving end server sends a message to the receiving end server through the switch, the switch can determine the port status. When the port is closed, the switch can send a fault channel message to the server so that the sending server can reduce the retransmission time. In this way, when a network failure occurs, the sending end server can be directly notified through the switch to retransmit the message, saving the interaction time with the receiving end server. In addition, by sending the message again according to the reduced retransmission time, the fault convergence performance can be effectively improved and the network delay can be reduced.
[0089] Exemplarily, the message processing method provided in the embodiment of the present application can be applied to Figure 7 , Figure 8 as well as Fig. 9The network topology diagram shown in the figure. Figure 7 A schematic diagram of a second data center network topology embodiment provided in an embodiment of the present application. Figure 8 A schematic diagram of a third data center network topology embodiment provided in an embodiment of the present application. Fig. 9 A schematic diagram of a fourth data center network topology embodiment provided in an embodiment of the present application.
[0090] like Figure 7 , Figure 8 , Fig. 9 As shown in the figure, the core layer, aggregation layer, and access layer are all deployed with corresponding switches. For example, the core layer is deployed with Top of Rack (ToR) switches, the aggregation layer is deployed with Spine switches, and the access layer is deployed with core switches.
[0091] It should be understood that Figure 7 , Figure 8 , Fig. 9 The scenarios shown are only exemplary of three typical networking topologies. The message processing method provided in this application can also be applied to other networking topologies, and this application does not impose any specific restrictions on this.
[0092] The technical solution of the present application is described in detail below through specific embodiments.
[0093] It should be noted that the following specific embodiments may be combined with each other, and the same or similar concepts or processes may not be described in detail in some embodiments.
[0094] Fig.10 The flowchart of the first embodiment of the message processing method provided in the embodiment of the present application is as follows. Fig.10 As shown, the message processing method may include the following steps:
[0095] S1001. The server sends a message to the target server through the switch in the data center.
[0096] In this solution, the data center includes multiple servers and multiple switches. The switches are used to transmit data between different servers. That is, when a server (that is, the sending server mentioned above) sends a message to a target server (that is, the receiving server mentioned above), the server needs to send the message to the switch so that the switch forwards the message to the target server.
[0097] It should be understood that, assuming that when a server sends a message to a target server, the transmission path of the message is: server-switch 1-switch 2-switch 3-target server, then, for switch 2, its next-level device is switch 3.
[0098] Optionally, the switch may be a typical box switch or a frame switch of a data center network. Exemplarily, the switch may be a spine switch or a leaf switch.
[0099] Correspondingly, for the switch, the message sent by the server to the target server through the switch is received.
[0100] S1002. When the port of the switch is closed, the switch sends a fault channel message to the server.
[0101] In this step, before the switch transmits the message to the target server, it can determine the port status of the switch. When the port status is closed (that is, the port of the switch is down), it indicates that there is a fault in the link between the switch and the next-level device (which can be another switch or the target server), and there is packet loss. Therefore, when the port of the switch is closed, a fault channel message can be returned to the server. The fault channel message is used to indicate that the port of the switch is closed and there is a packet loss problem. When there is a problem in the network, the server can be notified in time through the switch, reducing the redundant interaction process between the switch and the target server, improving network convergence performance, and reducing network latency.
[0102] Optionally, the fault channel message may carry tuple information of the affected flow, which tuple information includes server IP (source IP), target server IP (target IP), server layer 4 port number (source layer 4 port number) and target server layer 4 port number (destination layer 4 port number).
[0103] Optionally, when the port of the switch is enabled (that is, the port of the switch is up), it means that the link between the switch and the next-level device is normal at this time, and the message is directly forwarded to the target server.
[0104] Correspondingly, for the server, the fault channel message sent by the switch of the data center is received.
[0105] S1003: The server reduces the retransmission period of the target link used for transmitting the message in the data center according to the faulty channel message.
[0106] In the prior art, the retransmission period of each link is the same, and the period value is large, resulting in slow network convergence performance and high latency in the message retransmission process. In this step, when it is determined that the target link used to transmit the message in the data center fails, resulting in packet loss, the retransmission period of the target link can be reduced so that the message can be resent to the target server according to the retransmission period, without affecting the retransmission period of other links, which can effectively improve the fault convergence performance.
[0107] Optionally, the target link can be determined based on the tuple information of the affected flow and the switch identifier. Specifically, the device at the next level of the switch used to transmit the message can be determined based on the switch identifier and the information of the server and the target server in the tuple information, thereby determining the target link between the switch and the next level device. Since the tuple information includes relevant data for the server and the target server to communicate and interact, the target link can be determined more accurately.
[0108] In a possible implementation, the retransmission period of the target link can be adjusted to the minimum value within the adjustable range according to the faulty channel message. In practical applications, the server stores the retransmission period of each link, and the retransmission periods of different links can be the same or different. After receiving the faulty channel message, the server can determine the target link according to the faulty channel message, and adjust the retransmission period of the target link from the current value to the minimum value within the adjustable range.
[0109] It should be understood that the adjustable range is a period range pre-set according to the topological structure of the data center, and can be determined according to actual conditions. The embodiments of the present application do not impose specific restrictions on this.
[0110] Exemplarily, for TCP / IP, the retransmission period of the target link can be adjusted to the rto value; for RDMA, the retransmission period of the target link can be adjusted to the timeout value.
[0111] In another possible implementation, the retransmission period of the target link can be adjusted to a first preset period value according to the fault channel message. The first preset period value is smaller than the current period value and can be pre-configured according to experimental values or experience values of relevant staff. The embodiment of the present application does not impose any specific restrictions on this.
[0112] In another possible implementation, the retransmission period of the target link can be adjusted to the difference between the current value and the second preset period value according to the fault channel message. The second preset period value is smaller than the current period value and can be pre-configured according to experimental values or the experience of relevant staff. The embodiment of the present application does not impose specific restrictions on this.
[0113] In the above manner, the target link is determined according to the faulty channel message, and the retransmission period of the target link is reduced so that the server can resend the message to the target server faster, thereby improving network convergence performance and reducing network delay.
[0114] S1004: The server resends the message to the target server through the switch according to the reduced retransmission period.
[0115] In this step, after the server reduces the retransmission period, it is necessary to resend the message to the target server through the switch according to the reduced retransmission period to ensure that the target server can obtain the message in time.
[0116] Correspondingly, the switch receives the message resent by the server.
[0117] S1005. The switch sends the message to the target server.
[0118] In this step, after the switch receives the message resent by the server, it needs to re-determine the port status of the switch. If the port of the switch is open at this time, the message is sent to the target server; if the port of the switch is closed at this time, it is still necessary to return the fault channel message to the server, that is, execute S1002 again.
[0119] The message processing method provided by the embodiment of the present application is that the server sends a message to the target server through the switch of the data center. When the port of the switch is closed, the switch sends a fault channel message to the server. According to the fault channel message, the server reduces the retransmission period of the target link used to transmit the message in the data center, and the server re-sends the message to the target server through the switch according to the reduced retransmission period, and the switch sends the message to the target server. In this technical solution, when a link fails, the server notifies the server instead of the target server, reducing the redundant interaction process between the switch and the target server, and when all messages are lost, the server can retransmit the message to the target server without waiting for a retransmission period. At the same time, the server reduces the retransmission period of the faulty link so that the server can continuously try to retransmit the message to the target server at a higher frequency, thereby ensuring the timeliness of the target server receiving the message, improving the convergence performance of the network, and reducing network latency.
[0120] This solution targets typical hardware devices of data center networks, such as physical switches and physical servers, or the linkage between physical switches and virtual machines. It achieves rapid network convergence when a server-side to network-side failure occurs, ensures high reliability of data center services, from ordinary data center services, high-performance computing services to storage services, and brings pure Ethernet data center networks into the era of zero packet loss.
[0121] In some embodiments, after the message is successfully sent to the target server, the server may also restore the retransmission period of the target link.
[0122] Optionally, after the message is successfully sent to the target server, the target server needs to return a confirmation message to the server so that the server can know the sending status of the message.
[0123] In some embodiments, after the message is resent according to the reduced retransmission period, the retransmission period of the target link may be restored.
[0124] In some embodiments, the server may also restore the retransmission period of the target link when the failure of the target link is repaired.
[0125] Optionally, when the fault of the target link is repaired, the port of the switch is enabled, and the switch can send a notification to the server. Alternatively, after the staff repairs the fault of the target link, the staff can operate the terminal device so that the terminal device responds to the staff's operation and sends a notification to the server, and the server restores the retransmission period of the target link according to the notification.
[0126] In the above embodiment, the retransmission period of the target link is restored in time, which can ensure that the target link can complete normal data transmission work and avoid affecting the transmission of other data in the link.
[0127] Optionally, in some embodiments, after deploying the message processing solution for the data center network, a network device failure can be simulated to verify whether the data center can be put into use. Specifically, a link failure that cannot be switched locally can be simulated in the networking environment after the message processing solution is deployed to check whether the device where the failure occurs will generate notification information related to the failure (that is, fault channel message). At the same time, log in to the upstream device and observe whether the upstream device has taken the action of changing the message forwarding port because of receiving the notification information.
[0128] Based on the above embodiment, the message processing method is described below by taking a specific example.
[0129] Fig.11 This is a schematic diagram of a fifth data center network topology embodiment provided in the present application. Fig.11 As shown, the data center includes a receiving server, a sending server, an access switch (English: Leaf) and an aggregation switch (English: Spine). Fig.11 The links marked with an "×" are faulty.
[0130] The message sent by the sending server passes through the access switch and is forwarded to the aggregation switch normally. When the port of the aggregation switch is down, the aggregation switch captures the tuple information of the affected flow, constructs a fault channel message carrying the tuple information based on the tuple information, and sends the fault channel message to the sending server. The tuple information includes the server IP, the target server IP, the server layer 4 port number, and the target server layer 4 port number.
[0131] Further, the sending server associates and searches for connection information according to the tuple information in the fault notification message, determines the target link with the fault in the data center, and modifies the retransmission time of the target link to the minimum value. For example, for TCP messages, the retransmission time is modified to the rto value, and for RDMA messages, the retransmission time is modified to the timeout value.
[0132] Finally, the sending server restores the retransmission time of the target link according to the strategy (such as the typical fault convergence time of the network), thereby achieving rapid convergence of network faults through the linkage between the network and the host.
[0133] It should be understood that Spine is the backbone node, the core node of the Fabric network, which provides high-speed IP forwarding function and connects various functional Leaf nodes through high-speed interfaces.
[0134] Leaf: Data center access switch, including server access switch (English: Server Leaf), network service access switch (English: Service Leaf) and Board Leaf. Among them, Board Leaf provides the ability for data center external traffic to access the data center network and is used to connect routers or transmission equipment.
[0135] The following are device embodiments of the present application, which can be used to execute the method embodiments of the present application. For details not disclosed in the device embodiments of the present application, please refer to the method embodiments of the present application.
[0136] Fig.12 This is a schematic diagram of the structure of the first embodiment of the message processing device provided in the embodiment of the present application. Fig.12 As shown, the message processing device 1200 includes:
[0137] The sending module 1201 is used to send a message to a target server through a switch in a data center.
[0138] The receiving module 1202 is used to receive a fault channel message sent by a switch in a data center. The fault channel message is used to indicate that a port of the switch is closed and there is a packet loss problem.
[0139] The processing module 1203 is used to reduce the retransmission period of the target link used for transmitting the message in the data center according to the faulty channel message.
[0140] The sending module 1201 is further configured to resend the message to the target server through the switch according to the reduced retransmission period.
[0141] In a possible design of an embodiment of the present application, the fault channel message includes the server IP, the target server IP, the server layer 4 port number and the target server layer 4 port number.
[0142] In another possible design of the embodiment of the present application, the processing module 1203 is specifically configured to:
[0143] According to the faulty channel message, the retransmission period of the target link is adjusted to the minimum value within the adjustable range.
[0144] In another possible design of the embodiment of the present application, the processing module 1203 is further configured to:
[0145] After the message is successfully sent to the target server, the retransmission period of the target link is restored.
[0146] The message processing device provided in the embodiment of the present application can be used to execute the message processing method on the server side in any of the above embodiments. Its implementation principle and technical effects are similar and will not be repeated here.
[0147] Fig.13 This is a schematic diagram of the structure of the second embodiment of the message processing device provided in the embodiment of the present application. Fig.13 As shown, the message processing device 1300 includes:
[0148] The receiving module 1301 is used to receive a message sent by the server to the target server through the switch.
[0149] The sending module 1302 is used to send a fault channel message to the server when the port of the switch is closed. The fault channel message is used to indicate that the port of the switch is closed and there is a packet loss problem.
[0150] The receiving module 1301 is further used to receive the message resent by the server.
[0151] The sending module 1302 is further configured to send the message to the target server.
[0152] In a possible design of an embodiment of the present application, the fault channel message includes the server IP, the target server IP, the server layer 4 port number and the target server layer 4 port number.
[0153] The message processing device provided in the embodiment of the present application can be used to execute the message processing method on the switch side in any of the above embodiments. Its implementation principle and technical effect are similar and will not be repeated here.
[0154] It should be noted that it should be understood that the division of the various modules of the above device is only a division of logical functions. In actual implementation, they can be fully or partially integrated into one physical entity, or they can be physically separated. And these modules can all be implemented in the form of software calling through processing elements; they can also be all implemented in the form of hardware; some modules can also be implemented in the form of software calling through processing elements, and some modules can be implemented in the form of hardware. In addition, all or part of these modules can be integrated together, or they can be implemented independently. The processing element described here can be an integrated circuit with signal processing capabilities. In the implementation process, each step of the above method or each module above can be completed by an integrated logic circuit of hardware in the processor element or instructions in the form of software.
[0155] Fig.14 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. Fig.14 As shown, the electronic device 1400 may include: a processor 1401, a memory 1402, a transceiver 1403, and computer program instructions stored in the memory 1402 and executable on the processor 1401. When the processor 1401 executes the computer program instructions, the message processing method provided in any of the aforementioned embodiments is implemented.
[0156] Optionally, the above-mentioned components of the electronic device 1400 may be connected via a system bus.
[0157] The memory 1402 may be a separate storage unit or a storage unit integrated in the processor. The number of processors may be one or more.
[0158] Optionally, the electronic device 1400 may also include an interface for interacting with other devices.
[0159] The transceiver 1403 is used to communicate with other computers, and the transceiver 1403 constitutes a communication interface.
[0160] It should be understood that the processor 1401 can be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), etc. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc. The steps of the method disclosed in the present application can be directly embodied as being executed by a hardware processor, or can be executed by a combination of hardware and software modules in the processor.
[0161] The system bus may be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus, etc. The system bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus. The memory may include random access memory (RAM) and may also include non-volatile memory (NVM), such as at least one disk storage.
[0162] All or part of the steps of the above-mentioned method embodiments can be completed by hardware related to program instructions. The above-mentioned program can be stored in a readable memory. When the program is executed, the steps of the above-mentioned method embodiments are executed; and the above-mentioned memory (storage medium) includes: read-only memory (ROM), RAM, flash memory, hard disk, solid state drive, magnetic tape, floppy disk, optical disc and any combination thereof.
[0163] Optionally, the electronic device 1400 can be implemented as a server or a switch.
[0164] The electronic device provided in the embodiment of the present application can be used to execute the message processing method provided in any of the above method embodiments. Its implementation principle and technical effects are similar and will not be repeated here.
[0165] An embodiment of the present application provides a computer-readable storage medium, in which computer-executable instructions are stored. When the computer-executable instructions are executed on a computer, the computer executes the above-mentioned message processing method.
[0166] The computer-readable storage medium mentioned above can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory, electrically erasable programmable read-only memory, erasable programmable read-only memory, programmable read-only memory, read-only memory, magnetic memory, flash memory, magnetic disk or optical disk. The readable storage medium can be any available medium that can be accessed by a general or special-purpose computer.
[0167] Optionally, a readable storage medium is coupled to a processor so that the processor can read information from the readable storage medium and write information to the readable storage medium. Of course, the readable storage medium can also be a component of the processor. The processor and the readable storage medium can be located in an application specific integrated circuit (ASIC). Of course, the processor and the readable storage medium can also exist in the device as discrete components.
[0168] An embodiment of the present application also provides a computer program product, which includes a computer program. The computer program is stored in a computer-readable storage medium. At least one processor can read the computer program from the computer-readable storage medium. When the at least one processor executes the computer program, the above-mentioned message processing method can be implemented.
[0169] It should be understood that the present application is not limited to the precise structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present application is limited only by the appended claims.
Claims
1. A message processing method, characterized in that: Applied to a server in a data center, the method comprises: Sending a message to a target server through a switch in the data center; receiving a fault channel message sent by the switch when the switch receives the message and determines that the port state of the switch is closed, wherein the fault channel message is used to indicate that the port of the switch is closed and there is a packet loss problem; the fault channel message includes a server Internet Protocol IP, a target server IP, a server layer 4 port number, and a target server layer 4 port number; According to the fault channel message, determine a device at a lower level of the switch for transmitting the message, and determine a target link between the switch and the lower level device; and reduce a retransmission period of the target link; According to the reduced retransmission period, the message is resent to the target server through the switch.
2. The method according to claim 1, characterized in that The reducing the retransmission period of the target link in the data center for transmitting the message according to the faulty channel message comprises: According to the faulty channel message, the retransmission period of the target link is adjusted to a minimum value within an adjustable range.
3. The method according to claim 1, characterized in that The method further comprises: After the message is successfully sent to the target server, the retransmission period of the target link is restored.
4. A message processing method, characterized in that: A switch applied to a data center, the method comprising: receiving a message sent by the server to the target server through the switch; When the switch determines that the port state of the switch is closed, a fault channel message is sent to the server, wherein the fault channel message is used to indicate that the port of the switch is closed and there is a packet loss problem; the fault channel message includes the server Internet Protocol IP, the target server IP, the server layer 4 port number and the target server layer 4 port number; receiving the message resent by the server according to the reduced retransmission period of the target link; the target link is a link between the switch and a device at a lower level of the switch, and the device at a lower level of the switch is a device determined according to the fault channel message and used to transmit the message and located at a lower level of the switch; The message is sent to the target server.
5. A message processing device, characterized in that: Applicable to a server in a data center, the device comprises: A sending module, used for sending a message to a target server through a switch in the data center; A receiving module, used for receiving a fault channel message sent by the switch when the switch receives the message and determines that the port state of the switch is closed, wherein the fault channel message is used for indicating that the port of the switch is closed and there is a packet loss problem; the fault channel message includes a server Internet Protocol IP, a target server IP, a server layer 4 port number, and a target server layer 4 port number; A processing module, configured to determine, according to the fault channel message, a device at a lower level of the switch for transmitting the message, and to determine a target link between the switch and the device at the lower level; and to reduce a retransmission period of the target link; The sending module is further configured to resend the message to the target server through the switch according to the reduced retransmission period.
6. A message processing device, characterized in that: A switch applied to a data center, the device comprising: A receiving module, used for receiving a message sent by the server to the target server through the switch; A sending module, configured to send a fault channel message to the server when the switch determines that the port state of the switch is closed, wherein the fault channel message is used to indicate that the port of the switch is closed and there is a packet loss problem; the fault channel message includes the server Internet Protocol IP, the target server IP, the server layer 4 port number and the target server layer 4 port number; The receiving module is further used to receive the message resent by the server according to the reduced retransmission period of the target link; the target link is a link between the switch and a device at a lower level of the switch, and the device at a lower level of the switch is a device determined according to the fault channel message and used to transmit the message and located at a lower level of the switch; The sending module is further used to send the message to the target server.
7. An electronic device comprising: A processor, a memory, a transceiver, and computer program instructions stored in the memory and executable on the processor, wherein the processor is used to implement the message processing method according to any one of claims 1 to 4 when executing the computer program instructions.
8. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, and when the computer-executable instructions are executed by a processor, they are used to implement the message processing method according to any one of claims 1 to 4.
9. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the message processing method according to any one of claims 1 to 4 is implemented.
