DPU device and serial communication system based on DPU device

By creating a virtual serial communication port in the DPU device and using the PCIE bus to realize two-way communication between the server and the DPU device, the limitation and remote operation of the physical serial port in the data center are solved, and the maintenance of the DPU device is simplified.

CN119127754AActive Publication Date: 2024-12-13CORE YUNSHENG (HANGZHOU) ELECTRONIC TECH CO LTD

Patent Information

Application Number
CN202411014381.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-26
Publication Date
2024-12-13
Estimated Expiration
2044-07-26

AI Technical Summary

Technical Problem

In the prior art, DPU devices require separate physical serial communication ports to be connected, which limits their application in the data center and cannot achieve remote operation.

Method used

By creating a virtual serial communication port in the DPU device and using the server's PCIE bus as a channel, bidirectional serial communication between the server and the DPU device is achieved, and the use of physical serial ports is avoided.

Benefits of technology

It solves the requirements of savings and remote communication of physical serial ports, and simplifies the maintenance process of DPU devices in the data center.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119127754A_ABST
    Figure CN119127754A_ABST
Patent Text Reader

Abstract

According to the DPU device and the serial communication system based on the DPU device, the second virtual serial communication port corresponding to the first virtual serial communication port of the server is created in the DPU device, and the PCIE bus, connected with the server, of the DPU device serves as a channel. A first serial communication interface of an NFP chip in the DPU device is connected with the first virtual serial communication port, and a second serial communication interface of the NFP chip in the DPU device is connected with the second virtual serial communication port, so that bidirectional serial communication between the server and the DPU device is realized. According to the invention, a physical serial communication port of the DPU device is saved, remote communication is supported, the method is more suitable for a data center, and maintenance of the DPU device is more convenient.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of communication technology, and in particular to a DPU device and a serial communication system based on the DPU device. Background Art

[0002] A DPU (Data Processing Unit) is a processor designed specifically for data-intensive tasks and is typically used in data centers to address the high-load problem of network protocol processing in data centers. Therefore, a DPU can be used as a hardware network device for smart network cards to handle tasks including virtualization, networking, storage, and security.

[0003] The DPU device is generally equipped with an independent control chip for running the specified system software. The control chip is usually a CPU chip or a SOC chip. Among them, the SOC chip can include various types of processors, such as a central processing unit (CPU), a graphics processing unit (GPU), a digital signal processor (DSP), and a neural network processor. In order to access and debug the specified system software in the DPU device, the conventional design will use a physical serial communication port of the CPU chip or SOC chip as the control chip as the console port. The external computer device can be connected to the console port via a serial port line, and the terminal software is used on the connected computer device to achieve connection with the specified system software in the DPU device.

[0004] However, this technical solution requires a separate physical serial communication port on the DPU device, and a serial cable must be used to connect to the physical serial communication port when connecting to an external computer device. Such a wired connection method is very limited in a complex environment such as a data center where a large number of servers, network equipment, computer equipment and other physical facilities are stored; and in this technical solution, the corresponding DPU device can only be connected and operated on a designated external computer device, and remote operation cannot be achieved. Summary of the invention

[0005] In view of the shortcomings of the prior art described above, the purpose of the present application is to provide a DPU device and a serial communication system based on the DPU device, so as to solve the technical problem in the prior art that the wired connection of the DPU device and the computer equipment cannot be applied to the data center and the DPU device cannot be remotely operated.

[0006] To achieve the above-mentioned purpose and other related purposes, the first aspect of the present application provides a DPU device for communicating with a server having a first virtual serial communication port, the DPU device comprising: a management and control chip, comprising: a second virtual serial communication port; an NFP chip, comprising: a first serial communication interface and a second serial communication interface; wherein the first serial communication interface is communicatively connected to the first virtual serial communication port, and the second serial communication interface is communicatively connected to the second virtual serial communication port; the first virtual serial communication port is created by the server calling a preset first serial port driver; the second virtual serial communication port is created by the management and control chip calling a preset second serial port driver, and is used for bidirectional serial communication with the first virtual serial communication port through the second serial communication interface and the first serial communication interface of the NFP chip.

[0007] In some embodiments of the first aspect of the present application, the second virtual serial communication port includes: a virtual terminal port, a front-end virtual port, a back-end virtual port and a network driver port; wherein the virtual terminal port, the front-end virtual port, the back-end virtual port and the network driver port are communicatively connected in sequence, and the network driver port is also communicatively connected to the second serial communication interface of the NFP chip.

[0008] In some embodiments of the first aspect of the present application, the way in which the server performs serial communication with the DPU device includes: when there is a need for the server to transmit data to the DPU device, sending the first communication data generated by the server to the first serial communication interface of the NFP chip through the first virtual serial communication port of the server; forwarding the first communication data to the back-end virtual port via the network driver port through the second serial communication interface of the NFP chip; unpacking the received first communication data based on a specified communication protocol through the back-end virtual port, and sending the unpacked first communication data to the front-end virtual port; forwarding the unpacked first communication data to the virtual terminal port through the front-end virtual port, so that the virtual terminal port can parse the communication data and perform corresponding tasks.

[0009] In some embodiments of the first aspect of the present application, the manner in which the DPU device performs serial communication with the server includes: when there is a need for the DPU device to transmit data to the server, sending the second communication data generated by the management and control chip to the front-end virtual port through the virtual terminal port and forwarding it to the back-end virtual port; encapsulating the received second communication data based on a specified communication protocol through the back-end virtual port, and sending the encapsulated second communication data to the second serial communication interface of the NFP chip via the network driver port; sending the encapsulated second communication data to the first virtual serial communication port of the server through the first serial communication interface of the NFP chip, so that the server can parse the communication data and perform corresponding tasks.

[0010] In some embodiments of the first aspect of the present application, the virtual terminal port is created by the management and control chip calling a preset remote access service, and is used to interact with the management and control chip and perform specified tasks, and is used for remote communication.

[0011] In some embodiments of the first aspect of the present application, the front-end virtual port and the back-end virtual port are constructed based on a console paravirtualization framework to support communication connection between the second virtual serial communication port and the second serial communication interface.

[0012] In some embodiments of the first aspect of the present application, the first serial communication interface is communicatively connected to the first virtual serial communication port via a PCIE bus; and the second serial communication interface is communicatively connected to the second virtual serial communication port via a PCIE bus.

[0013] To achieve the above-mentioned purpose and other related purposes, the second aspect of the present application provides a serial communication system based on a DPU device, the serial communication system based on the DPU device comprising: a server, comprising: a first virtual serial communication port; a DPU device, comprising: a management and control chip and an NFP chip; wherein the management and control chip comprises: a second virtual serial communication port; the NFP chip comprises: a first serial communication interface and a second serial communication interface; wherein the first serial communication interface is communicatively connected with the first virtual serial communication port, and the second serial communication interface is communicatively connected with the second virtual serial communication port; the first virtual serial communication port is created by the server calling a preset first serial port driver; the second virtual serial communication port is created by the management and control chip calling a preset second serial port driver, and is used for bidirectional serial communication with the first virtual serial communication port through the second serial communication interface of the NFP chip and the first serial communication interface.

[0014] In some embodiments of the second aspect of the present application, the server is installed with terminal software; the terminal software is used to access the first virtual serial communication port and the second virtual serial communication port to connect to the DPU device, and to access and manage the DPU device.

[0015] In some embodiments of the second aspect of the present application, the server is also communicatively connected to an external personal computer device to facilitate bidirectional serial communication between the external personal computer device and the DPU device.

[0016] As described above, the present application provides a DPU device and a serial communication system based on the DPU device, by creating a second virtual serial communication port corresponding to the first virtual serial communication port of the server in the DPU device, and using the PCIE bus connecting the DPU device itself to the server as a channel, connecting the first serial communication interface of the NFP chip in the DPU device to the first virtual serial communication port, and connecting the second serial communication interface of the NFP chip in the DPU device to the second virtual serial communication port, thereby realizing bidirectional serial communication between the server and the DPU device. Therefore, the present application has the following beneficial effects: the present application saves the physical serial communication port of the DPU device, and solves the technical problem that the wired connection cannot be applied to the data center and cannot communicate remotely with the DPU device, and is more convenient for the maintenance of the DPU device in the data center. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] Figure 1 Shown is a structural diagram of a serial communication system based on a DPU device in one embodiment of the present application.

[0018] Figure 2 Shown is a schematic diagram of the structure of the second virtual serial communication port of the DPU device in one embodiment of the present application. DETAILED DESCRIPTION

[0019] The following describes the embodiments of the present application through specific examples, and those skilled in the art can easily understand other advantages and effects of the present application from the contents disclosed in this specification. The present application can also be implemented or applied through other different specific embodiments, and the details in this specification can also be modified or changed in various ways based on different viewpoints and applications without departing from the spirit of the present application. It should be noted that the following embodiments and features in the embodiments can be combined with each other without conflict.

[0020] Before further describing the present invention in detail, the nouns and terms involved in the embodiments of the present invention are explained. The nouns and terms involved in the embodiments of the present invention are applicable to the following interpretations:

[0021] <1> CPU (Central Processing Unit): Central processing unit, the core component of the computer, responsible for executing instructions in the program and processing data.

[0022] <2> SOC (System on a Chip): System-on-chip, a technology that integrates multiple components in a traditional computer or other electronic system into a single integrated circuit (chip), such as integrating the processor core, memory, input / output ports and possible other functions (such as graphics processing unit, network interface, etc.) on one chip to optimize space, cost, power consumption and performance.

[0023] <3> NFP (Network Function Processor): A network function processor is a hardware device specially designed to process network traffic and perform network functions. It is usually used in high-performance network systems such as data centers, routers, switches, and load balancers to accelerate network operations, improve packet processing efficiency, and reduce the burden on the main CPU.

[0024] <4> HVC (Hypervisor Virtual Console): Virtual serial communication port, a virtual console interface in the Linux kernel that allows users to interact with virtual machines through a virtual machine monitor (hypervisor), providing a standard method for accessing and controlling virtual machines.

[0025] <5> PCIE (Peripheral Component Interconnect Express): Peripheral Component Interconnect Express, a universal serial connection standard used for connections between computer hardware devices, especially for high-speed data transmission between computer internal hardware devices and the motherboard.

[0026] <6> Systemd: A system and service manager for the Linux operating system that provides a unified way to handle the system startup, running, monitoring, and stopping processes.

[0027] <7> agetty: A program used to set the terminal type in Unix and Unix-like systems. It starts the getty program (getty is the abbreviation of "get TTY") when the system starts or as needed to handle interaction with the terminal.

[0028] <8> Virtio-console: A virtual console device used in a virtualized environment. It is part of the Virtio framework. Virtio is a standardized framework used in a virtualized environment that defines a set of common device and driver interfaces so that virtual machines can interact efficiently with the host machine. Virtio-console is specifically used to provide standard input and output functions for virtual machines.

[0029] <9> minicom: A text-based, modem control, and file transfer program for Linux that is used to communicate with computer hardware devices over serial ports.

[0030] The technical solutions of the embodiments of the present application can be applied to various communication systems, such as: Long Term Evolution (LTE) system, LTE frequency division duplex (FDD) system, future fifth generation (5G) communication system, new radio access technology (NR), LTE time division duplex (TDD), Worldwide Interoperability for Microwave Access (WiMAX), Universal Mobile Telecommunication System (UMTS), and vehicle-to-XV2X. Among them, V2X can include vehicle to network (V2N), vehicle to vehicle (V2V), vehicle to infrastructure (V2I), vehicle to pedestrian (V2P), Long Term Evolution-Vehicle (LTE-V), Internet of Vehicles, machine type communication (MTC), Internet of Things (IoT), Long Term Evolution-Machine (LTE-M), machine to machine (M2M), etc.

[0031] In order to solve the problems in the above-mentioned background technology, the present invention provides a DPU device and a serial communication system based on the DPU device, aiming to solve the technical problems in the prior art that the DPU device and computer equipment connected by wire cannot be applied to the data center and cannot be remotely operated. By realizing the virtual serial communication port at the software level without relying on physical hardware, the physical serial communication port of the DPU device is saved, and remote communication can be supported, which makes the maintenance of the DPU device in the data center more convenient.

[0032] At the same time, in order to make the purpose, technical solution and advantages of the present invention more clear, the technical solution in the embodiment of the present invention is further described in detail through the following embodiments and in combination with the accompanying drawings. It should be understood that the specific embodiments described here are only used to explain the present invention and are not used to limit the present invention.

[0033] like Figure 1 FIG. 2 is a schematic diagram showing a structure of a serial communication system based on a DPU device in an embodiment of the present invention. The serial communication system based on a DPU device includes: a server 1 and a DPU device 2.

[0034] The server 1 is provided with a first virtual serial communication port 11 .

[0035] The DPU device 2 is used to communicate with the server 1 provided with a first virtual serial communication port 11. The DPU device 2 includes: a control chip 21 and an NFP chip 22. The control chip 21 is usually a CPU chip or a SOC chip. The control chip 21 includes: a second virtual serial communication port 211; the NFP chip 22 includes: a first serial communication interface 221 and a second serial communication interface 222.

[0036] The first serial communication interface 221 is communicatively connected to the first virtual serial communication port 11 , and the second serial communication interface 222 is communicatively connected to the second virtual serial communication port 211 .

[0037] In a specific embodiment, the first serial communication interface 221 is connected to the first virtual serial communication port 11 through a PCIE bus; the second serial communication interface 222 is connected to the second virtual serial communication port 211 through a PCIE bus. Thus, two PCIE paths can be formed based on the NFP chip 22, one of which is connected to the control chip 21, and the other is connected to the server 1. Preferably, the NFP chip 22 can be connected to the server 1 using a gold finger element.

[0038] The purpose of the design of the present invention in this embodiment is to use the PCIE bus connecting the DPU device 2 itself and the server 1 as a channel, thereby eliminating the need for additional connection to external computer equipment and saving physical serial communication ports to support the first virtual serial communication port 11 to connect to the second virtual serial communication port 211, thereby realizing bidirectional serial communication between the server 1 and the DPU device 2.

[0039] It should be noted that the first virtual serial communication port 11 is created by the server 1 calling a preset first serial port driver. The second virtual serial communication port 211 is created by the control chip 21 calling a preset second serial port driver, and is used for bidirectional serial communication with the first virtual serial communication port 11 through the second serial communication interface 222 of the NFP chip 22 and the first serial communication interface 221.

[0040] A virtual serial communication port, namely an HVC (Hypervisor Virtual Console) serial port, is a virtual serial port used in a Linux environment, which allows users to interact with virtual machines through a virtual machine monitor, similar to a traditional serial console, but it is implemented entirely at the software level and does not rely on physical hardware. The present invention improves the existing technical solution of providing a separate physical serial communication port on the DPU device and only being able to use a wired connection with other computer devices by creating a second virtual serial communication port 211 corresponding to the first virtual serial communication port 11 of the server 1 in the DPU device 2, thereby saving the physical serial communication port of the DPU device and effectively solving the technical problem that the wired connection cannot be applied to the data center and cannot communicate remotely with the DPU device, making it more convenient to maintain the DPU device in the data center.

[0041] In one embodiment, if Figure 2 As shown, the second virtual serial communication port 211 includes: a virtual terminal port, a front-end virtual port, a back-end virtual port and a network driver port. The virtual terminal port, the front-end virtual port, the back-end virtual port and the network driver port are sequentially connected in communication, and the network driver port is also connected in communication with the second serial communication interface 222 of the NFP chip 22.

[0042] The virtual terminal port is created by the control chip 22 calling a preset remote access service, and is used to interact with the control chip 22 and perform specified tasks, as well as for remote communication. In a specific embodiment, the control chip can use a Linux operating system. The virtual terminal port can be implemented on the second virtual serial communication port 211 through the agetty service in the system and service manager Systemd.

[0043] It should be understood that Systemd is a system and service manager for the Linux operating system, and provides a unified way to handle the system startup, operation, monitoring and stop processes. agetty is a command line tool for the Linux operating system. Its function is to open a terminal tty to prompt the user to enter a login name, and call the / bin / login command for user authentication. In addition, agetty supports hardware flow control, which can be enabled through the --flow-control option to control data flow. Specifically, you can use Systemd commands to start and stop the agetty service, such as using systemctlstart getty@hvc0.service to start the agetty service on / dev / hvc0, and use systemctl stopgetty@hvc0.service to stop the service.

[0044] The front-end virtual port and the back-end virtual port are constructed based on the console semi-virtualization framework to support the communication connection between the second virtual serial communication port 211 and the second serial communication interface 222. In a specific embodiment, the second virtual serial communication port 211 uses the console semi-virtualization framework Virio-console technology to implement the HVC serial port. Virtio is a standardized framework used in a virtualized environment. It defines a set of common device and driver interfaces so that virtual machines can interact with host machines efficiently. Virtio-console is particularly used to provide standard input and output functions for virtual machines, and can establish a communication mechanism between virtual machines and virtual machine monitors. Virtio-console can support up to 16 ports, each of which can be used for different virtual terminals or console sessions. Virtio-console provides the necessary virtual terminal or console access functions for virtual machines, allowing administrators and users to interact with virtual machines.

[0045] The network driver port is used to send and receive communication data. In a specific embodiment, the first serial communication interface 221 is connected to the first virtual serial communication port 11 through a PCIE bus; the second serial communication interface 222 is connected to the second virtual serial communication port 211 through a PCIE bus; at this time, the network driver port can provide for sending and receiving communication data that complies with the PCIE communication protocol.

[0046] The present invention realizes bidirectional serial communication between the server 1 and the DPU device 2 by creating a second virtual serial communication port 211 corresponding to the first virtual serial communication port 11 of the server 1 in the DPU device 2 .

[0047] In one embodiment, the manner in which the server 1 performs serial communication with the DPU device 2 includes: when there is a need for the server 1 to transmit data to the DPU device 2, the first communication data generated by the server 1 is sent to the first serial communication interface 221 of the NFP chip 22 through the first virtual serial communication port 11 of the server 1; the first communication data is forwarded to the back-end virtual port via the network driver port through the second serial communication interface 222 of the NFP chip 22; the first communication data received is unsealed based on a specified communication protocol (such as a PCIE communication protocol) through the back-end virtual port, and the unsealed first communication data is sent to the front-end virtual port; the unsealed first communication data is forwarded to the virtual terminal port through the front-end virtual port, so that the virtual terminal port can parse the communication data and perform corresponding tasks.

[0048] In one embodiment, the manner in which the DPU device 2 performs serial communication with the server 1 includes: when there is a need for the DPU device 2 to transmit data to the server 1, sending the second communication data generated by the control chip 21 to the front-end virtual port through the virtual terminal port and forwarding it to the back-end virtual port; encapsulating the received second communication data based on a specified communication protocol (such as a PCIE communication protocol) through the back-end virtual port, and sending the encapsulated second communication data to the second serial communication interface 222 of the NFP chip 22 via the network driver port; sending the encapsulated second communication data to the first virtual serial communication port 11 of the server 1 through the first serial communication interface 221 of the NFP chip 22, so that the server 1 can parse the communication data and perform corresponding tasks.

[0049] In one embodiment, the server 1 is installed with terminal software, such as minicom; the terminal software is used to access the first virtual serial communication port 11 and the second virtual serial communication port 211 to connect to the DPU device 2 and access and manage the DPU device 2.

[0050] In one embodiment, the server 1 is also connected to an external personal computer device for bidirectional serial communication between the external personal computer device and the DPU device 2. In detail, the external personal computer device can communicate remotely with the server 1 through the terminal control software, and access the corresponding second virtual serial communication port 211 in the DPU device 2 by controlling the terminal software in the server 1. The purpose of the design of the present invention in this embodiment is that through this technical solution, remote communication between the external personal computer device and the DPU device 2 can be realized, and there is no need to connect the external computer device with wires multiple times, and the use scenario of the external computer device will not be limited, so that the user can directly control the DPU device with instructions on his own computer device, such as modifying / debugging the software program installed on the control chip of the DPU device, or updating the configuration file of the DPU device, etc., and receiving the operation log, debug log or other communication data returned by the DPU device, which is more suitable for a complex environment with multiple physical settings such as a data center.

[0051] In the embodiments of the present application, words such as "first" and "second" are used to distinguish the same or similar items with substantially the same functions and effects. For example, the first XX and the second XX are only used to distinguish different XXs, and do not limit their order. Those skilled in the art can understand that words such as "first" and "second" do not limit the quantity and execution order, and words such as "first" and "second" do not necessarily limit them to be different.

[0052] It should be noted that in the embodiments of the present application, words such as "exemplary" or "for example" represent examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way.

[0053] In the embodiments of the present application, "at least one" refers to one or more, and "plurality" refers to two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural. The character " / " generally indicates that the previous and next associated objects are in an "or" relationship. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b or c can represent: a, b, c, ab, ac, bc or abc, where a, b, c can be single or multiple.

[0054] The terms "component", "module", "system", etc. used in this specification are used to represent computer-related entities, hardware, firmware, a combination of hardware and software, software, or software in execution. For example, a component can be, but is not limited to, a process running on a processor, a processor, an object, an executable file, an execution thread, a program and / or a computer. By way of illustration, both applications running on a computing device and a computing device can be components. One or more components may reside in a process and / or an execution thread, and a component may be located on a computer and / or distributed between two or more computers. In addition, these components may be executed from various computer-readable media having various data structures stored thereon. Components may, for example, communicate through local and / or remote processes according to signals having one or more data packets (e.g., data from two components interacting with another component between a local system, a distributed system and / or a network, such as the Internet interacting with other systems through signals).

[0055] Those of ordinary skill in the art will appreciate that the various illustrative logical blocks and steps described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or in a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel may use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.

[0056] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0057] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0058] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.

[0059] In the above embodiments, the functions of each functional unit can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions (programs). When loading and executing computer program instructions (programs) on a computer, the process or function according to the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. Computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, computer instructions can be transmitted from a website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (digital subscriber line, DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that contains one or more available media integrations. Available media may be magnetic media (e.g., floppy disks, hard disks, tapes), optical media (e.g., high-density digital video discs (DVDs), or semiconductor media (e.g., solid state disks (SSDs), etc.).

[0060] If the function is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk, and other media that can store program codes.

[0061] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

[0062] In summary, the present application provides a DPU device and a serial communication system based on the DPU device, by creating a second virtual serial communication port corresponding to the first virtual serial communication port of the server in the DPU device, and using the PCIE bus connecting the DPU device itself to the server as a channel, the first serial communication interface of the NFP chip in the DPU device is connected to the first virtual serial communication port, and the second serial communication interface of the NFP chip in the DPU device is connected to the second virtual serial communication port, thereby realizing bidirectional serial communication between the server and the DPU device. The present application saves the physical serial communication port of the DPU device, solves the technical problem that the wired connection cannot be applied to the data center and cannot communicate remotely with the DPU device, and is more convenient for the maintenance of the DPU device in the data center. Therefore, the present application effectively overcomes the various shortcomings in the prior art and has a high industrial utilization value.

[0063] The above embodiments are merely illustrative of the principles and effects of the present application and are not intended to limit the present application. Anyone familiar with the technology may modify or change the above embodiments without violating the spirit and scope of the present application. Therefore, all equivalent modifications or changes made by a person of ordinary skill in the art without departing from the spirit and technical ideas disclosed in the present application shall still be covered by the claims of the present application.

Claims

1. A DPU device, configured to communicate with a server having a first virtual serial communication port, It is characterized in that include: A control chip, comprising: a second virtual serial communication port; The NFP chip comprises: a first serial communication interface and a second serial communication interface; Wherein, the first serial communication interface is communicatively connected with the first virtual serial communication port, and the second serial communication interface is communicatively connected with the second virtual serial communication port; The first virtual serial communication port is created by the server calling a preset first serial port driver; The second virtual serial communication port is created by the management and control chip calling a preset second serial port driver, and is used for bidirectional serial communication with the first virtual serial communication port through the second serial communication interface and the first serial communication interface of the NFP chip.

2. The DPU device according to claim 1, It is characterized in that The second virtual serial communication port includes: a virtual terminal port, a front-end virtual port, a back-end virtual port and a network driver port; The virtual terminal port, the front-end virtual port, the back-end virtual port and the network driver port are communicatively connected in sequence, and the network driver port is also communicatively connected to the second serial communication interface of the NFP chip.

3. The DPU device according to claim 2, It is characterized in that The manner in which the server performs serial communication with the DPU device includes: When there is a demand for transmitting data from the server to the DPU device, sending first communication data generated by the server to the first serial communication interface of the NFP chip through the first virtual serial communication port of the server; Forwarding the first communication data to the backend virtual port via the network driver port through the second serial communication interface of the NFP chip; Decapsulating the received first communication data based on a specified communication protocol through the back-end virtual port, and sending the decapsulated first communication data to the front-end virtual port; The unpacked first communication data is forwarded to the virtual terminal port through the front-end virtual port, so that the virtual terminal port can parse the communication data and execute corresponding tasks.

4. The DPU device according to claim 2, It is characterized in that The manner in which the DPU device performs serial communication with the server includes: When there is a demand for the DPU device to transmit data to the server, the second communication data generated by the control chip is sent to the front-end virtual port through the virtual terminal port and forwarded to the back-end virtual port; encapsulating the received second communication data based on a specified communication protocol through the back-end virtual port, and sending the encapsulated second communication data to the second serial communication interface of the NFP chip via the network driver port; The encapsulated second communication data is sent to the first virtual serial communication port of the server through the first serial communication interface of the NFP chip, so that the server can parse the communication data and execute corresponding tasks.

5. The DPU device according to claim 2, It is characterized in that The virtual terminal port is created by the control chip calling a preset remote access service, and is used to interact with the control chip and perform specified tasks, as well as for remote communication.

6. The DPU device according to claim 2, It is characterized in that The front-end virtual port and the back-end virtual port are constructed based on a console paravirtualization framework, and are used to support a communication connection between the second virtual serial communication port and the second serial communication interface.

7. The DPU device according to claim 1, It is characterized in that The first serial communication interface is communicatively connected to the first virtual serial communication port via a PCIE bus; and the second serial communication interface is communicatively connected to the second virtual serial communication port via a PCIE bus.

8. A serial communication system based on a DPU device, It is characterized in that include: The server comprises: a first virtual serial communication port; A DPU device, comprising: a control chip and an NFP chip; wherein the control chip comprises: a second virtual serial communication port; the NFP chip comprises: a first serial communication interface and a second serial communication interface; Wherein, the first serial communication interface is communicatively connected with the first virtual serial communication port, and the second serial communication interface is communicatively connected with the second virtual serial communication port; The first virtual serial communication port is created by the server calling a preset first serial port driver; The second virtual serial communication port is created by the management and control chip calling a preset second serial port driver, and is used for bidirectional serial communication with the first virtual serial communication port through the second serial communication interface and the first serial communication interface of the NFP chip.

9. The serial communication system based on the DPU device according to claim 8, It is characterized in that include: The server is installed with terminal software; the terminal software is used to access the first virtual serial communication port and the second virtual serial communication port to connect to the DPU device and access and manage the DPU device.

10. The serial communication system based on the DPU device according to claim 8, It is characterized in that The server is also connected to an external personal computer device for communication so that the external personal computer device can perform two-way serial communication with the DPU device.

Citation Information

Patent Citations

  • Virtual configuration management method and device based on DPU, equipment and medium

    CN116257320A

  • Data processing unit providing remote management and extended network processing capabilities

    CN217157280U

  • Systems and methods for implementing a user mode virtual serial communications port emulator

    US20160283418A1

  • Virtual serial ports for virtual machines

    US20210271500A1

  • Lifecycle and recovery for virtualized DPU management operating systems

    US20230325222A1

Cited By

  • Data processor, electronic device, and server management method

    CN120469945A