Packet forwarding method, device and system

CN115914051BActive Publication Date: 2026-09-15JD DIGITS HAIYI INFORMATION TECHNOLOGY CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211561640.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-12-07
Publication Date
2026-09-15
Estimated Expiration
2042-12-07

AI Technical Summary

Technical Problem

这就需要交换机下接的服务器向网络运维人员开放访问权限,这就涉及到了相关安全问题,因为网络运维人员只是负责网络相关问题,不应该具备非网络相关资源的权限

Benefits of technology

[0010] This application provides a packet forwarding system comprising: a central processing unit (CPU) and a switch processor. The switch processor is configured to respond to receiving a packet from a server, wherein the destination IP address of the packet matches the IP address of a network management container in the CPU, determine the destination MAC address of the packet based on the destination IP address and routing table entries, and send the packet to the network management container based on the destination MAC address. The CPU is configured to configure the network management container, which, in response to receiving a packet from the switch processor, generates network detection information based on the packet and a pre-installed network detection application. This system achieves network detection by configuring the network management container on the switch's CPU, enabling it to function as a physical server, and then installing the detection application on the network management container. This avoids placing additional load on the physical server and ensures the security of server information while achieving network detection.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115914051B_ABST
    Figure CN115914051B_ABST
Patent Text Reader

Abstract

The application discloses a message forwarding method, device and system, relates to the technical field of switch communication, and can be applied to the fields of cloud computing, big data, intelligent supply chain and the like. A specific embodiment of the method comprises: providing a message forwarding system, the system comprising: a central processor and a switch processor, the switch processor being configured to, in response to receiving a message sent by a server and the destination IP address of the message matching the IP address of a network management container in the central processor, determine the destination MAC address of the message based on the destination IP address of the message and a routing table item; and send the message to the network management container based on the destination MAC address; and the central processor being configured to configure the network management container, and the network management container being configured to, in response to receiving the message sent by the switch processor, generate network detection information based on the message and a pre-installed network detection application. The embodiment ensures the security of server information while generating the network detection information.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of computer technology, specifically to the field of switch communication technology, and in particular to a message forwarding method, apparatus and system. Background Technology

[0002] In existing technologies, common network architectures typically connect servers to switches at the top of racks, with multiple redundant links interconnecting these switches. Large data centers may support tens of thousands or even more servers, requiring thousands or even more switches to provide network connectivity.

[0003] When managing large data center networks, it's necessary to deploy network traffic probing applications, such as pingmesh, on servers. When network failures occur, operations and maintenance (O&M) personnel may need to log into the servers to perform network diagnostic operations, such as pinging or traceroute. This requires the servers connected to the switches to grant access permissions to O&M personnel, which raises security concerns, as O&M personnel are only responsible for network-related issues and should not have access to non-network-related resources. Running network probing applications on the servers would place additional load on them, and it's crucial to ensure that the normal operation of business applications is not affected. Summary of the Invention

[0004] This application provides a message forwarding method, system, device, and storage medium.

[0005] According to a first aspect, embodiments of this application provide a packet forwarding system, the system comprising: a central processing unit (CPU) and a switch processor; the switch processor being configured to, in response to receiving a packet sent by a server, wherein the destination IP address of the packet matches the IP address of a network management container in the CPU, determine the destination MAC address of the packet based on the destination IP address of the packet and a routing table entry; and send the packet to the network management container based on the destination MAC address; the CPU being configured to configure the network management container; and the network management container being configured to, in response to receiving a packet sent by the switch processor, generate network detection information based on the packet and a pre-installed network detection application.

[0006] According to a second aspect, embodiments of this application provide a message forwarding method, the method comprising: in response to receiving a message and the destination IP address of the message matching the IP address of a network management container in a central processing unit, determining the destination MAC address of the message based on the destination IP address of the message and a routing table entry; and sending the message to a network management container configured on the central processing unit based on the destination MAC address, wherein the network management container is used to generate network detection information based on the message and a pre-installed network detection application.

[0007] According to a third aspect, embodiments of this application provide a packet forwarding apparatus, the apparatus comprising: a determining module configured to, in response to receiving a packet and finding that the destination IP address of the packet matches the IP address of a network management container in a central processing unit, determine the destination MAC address of the packet based on the destination IP address of the packet and a routing table entry; and a sending module configured to, based on the destination MAC address, send the packet to a network management container configured on the central processing unit, the network management container being used to generate network detection information based on the packet and a pre-installed network detection application.

[0008] According to a fourth aspect, embodiments of this application provide an electronic device including one or more processors; a storage device having one or more programs stored thereon, wherein when the one or more programs are executed by the one or more processors, the one or more processors implement the method as described in any implementation of the second aspect.

[0009] According to a fifth aspect, embodiments of this application provide a computer-readable medium having a computer program stored thereon that, when executed by a processor, implements the method as described in any implementation of the second aspect.

[0010] This application provides a packet forwarding system comprising: a central processing unit (CPU) and a switch processor. The switch processor is configured to respond to receiving a packet from a server, wherein the destination IP address of the packet matches the IP address of a network management container in the CPU, determine the destination MAC address of the packet based on the destination IP address and routing table entries, and send the packet to the network management container based on the destination MAC address. The CPU is configured to configure the network management container, which, in response to receiving a packet from the switch processor, generates network detection information based on the packet and a pre-installed network detection application. This system achieves network detection by configuring the network management container on the switch's CPU, enabling it to function as a physical server, and then installing the detection application on the network management container. This avoids placing additional load on the physical server and ensures the security of server information while achieving network detection.

[0011] It should be understood that the description in this section is not intended to identify key or essential features of the embodiments of this disclosure, nor is it intended to limit the scope of this disclosure. Other features of this disclosure will become readily apparent from the following description. Attached Figure Description

[0012] Figure 1 This is an exemplary system architecture diagram to which this application can be applied;

[0013] Figure 2 This is a flowchart of an embodiment of the message forwarding system according to this application;

[0014] Figure 3 This is a schematic diagram of an embodiment of the data interaction process of the message forwarding system according to this application;

[0015] Figure 4 This is a flowchart of another embodiment of the message forwarding system according to this application;

[0016] Figure 5 This is a flowchart of an embodiment of the message forwarding method according to this application;

[0017] Figure 6 This is a schematic diagram of a structure of one embodiment of the message forwarding apparatus according to this application;

[0018] Figure 7 This is a schematic diagram of the structure of a computer system suitable for implementing the server embodiments of this application. Detailed Implementation

[0019] The following description, in conjunction with the accompanying drawings, illustrates exemplary embodiments of this application, including various details to aid understanding. These should be considered merely exemplary. Therefore, those skilled in the art will recognize that various changes and modifications can be made to the embodiments described herein without departing from the scope and spirit of this application. Similarly, for clarity and brevity, descriptions of well-known functions and structures are omitted in the following description.

[0020] It should be noted that, unless otherwise specified, the embodiments and features described in this application can be combined with each other. This application will now be described in detail with reference to the accompanying drawings and embodiments.

[0021] Figure 1 An exemplary system architecture 100 is shown, in which the message forwarding embodiments of this application can be applied.

[0022] like Figure 1 As shown, system architecture 100 may include servers 101, 102, and 103, networks 104 and 105, a switch processor 106, and a central processing unit 107. Network 104 serves as the medium for providing a communication link between servers 101, 102, and 103 and the switch processor. Network 105 serves as the medium for providing a communication link between the switch processor and the central processing unit. Networks 104 and 105 may include various connection types, such as wired or wireless communication links or fiber optic cables, etc.

[0023] Servers 101, 102, and 103 can be servers providing various services. Switch processor 106 can be a switch chip within a switch, used to respond to receiving a message sent by a server, where the destination IP address of the message matches the IP address of the network management container in the central processing unit (CPU). Based on the destination IP address and routing table entries, it determines the destination MAC address of the message; and based on the destination MAC address, sends the message to the network management container. CPU 107 can be a CPU chip within a switch, used to configure the network management container. The network management container, in response to receiving a message sent by the switch processor, generates network detection information based on the message and a pre-installed network detection application.

[0024] It should be noted that the packet forwarding method provided in this application embodiment is generally executed by the switch processor, and correspondingly, the packet forwarding device is generally located in the switch processor.

[0025] It should be understood that Figure 1 The number of servers, network, switch processors, and central processing units shown is merely illustrative. Depending on implementation needs, any number of servers, network, switch processors, and central processing units can be included.

[0026] Continue to refer to Figure 2 The diagram 200 illustrates an embodiment of the data interaction process for message forwarding according to this application.

[0027] The packet forwarding system in this embodiment may include a server, a switch processor, and a central processing unit (CPU). The server sends packets to the switch processor. The switch processor, in response to receiving a packet from the server, and finding that the destination IP address of the packet matches the IP address of the network management container in the CPU, determines the destination MAC address of the packet based on the destination IP address and routing table entries; and sends the packet to the network management container based on the destination MAC address. The CPU configures the network management container, which, in response to receiving a packet from the switch processor, generates network detection information based on the packet and a pre-installed network detection application.

[0028] like Figure 2 As shown, in step 201, the switch processor receives the message sent by the server.

[0029] In this embodiment, the server (e.g.) Figure 1 Servers 101, 102, and 103 (as shown) send messages to the switch processor. The switch processor can receive messages sent by the servers via the access ports of the switch it is connected to. Here, a server can be any one of multiple servers connected to the downlink interface of the switch.

[0030] In step 202, the switch processor responds to receiving a message, and the destination IP address of the message matches the IP address of the network management container in the central processing unit. Based on the destination IP address of the message and the routing table entry, the processor determines the destination MAC address of the message; based on the destination MAC address, the processor sends the message to the network management container.

[0031] In this embodiment, in response to receiving a message from the server, the switch processor can match the destination IP address of the message with the IP address of the network management container in the central processing unit. If a match is found, the destination MAC address of the message is determined based on the destination IP address and the routing table entry. Based on the destination MAC address, the message is sent to the network management container.

[0032] Here, the switch processor can send the packet to the network management container directly or via the loopback port; this application does not limit this method.

[0033] In step 203, the central processing unit configures the network management container.

[0034] In this embodiment, the central processing unit can create a network management container, i.e., a virtual server, on the switch's network operating system (NOS), and use the network management container to simulate the switch's access devices, i.e., physical servers.

[0035] The network management container can be used to generate network detection information in response to messages sent by the switch processor, based on the messages, network detection applications pre-installed in the network management container, and relevant operations by maintenance personnel.

[0036] Here, network operations personnel can perform network-related operations on the network management container, such as deploying network management agents, traffic probing applications, and so on. When a network failure occurs, operations personnel can log into the network management container and perform network diagnostics. During network operations, this network management container can be treated as a switch access device, allowing network operations personnel to perform various network operations more conveniently compared to a real physical server.

[0037] It should be noted that the switch processor and the central processing unit can be located in the same switch.

[0038] Specifically, such as Figure 3As shown, multiple servers are connected to the downlink ports of the switch. Each access port, such as port 1, port 2, and port 3, is configured in the same VLAN (Virtual Local Area Network). The VLAN interface hardware address (MAC address) is mac1, and the IP address is 1.1.1.1 / 24. The server addresses are in the same network segment; for example, the IP addresses of the servers are 1.1.1.2, 1.1.1.3, and 1.1.1.4, respectively. The gateway address is the switch's VLAN interface IP address, 1.1.1.1. The central processing unit (CPU) is configured with a network management container. The network management container has a virtual interface with IP address 1.1.1.100, which serves as the external access address for the network management container, and MAC address macX. The switch processor is configured with a route destination address of 1.1.1.100 / 32, with a next-hop MAC address of macX; and an ACL is configured to match packets with a destination MAC address of macX and send them to the CPU.

[0039] The switch processor will advertise route 1.1.1.0 / 24 through the routing protocol. In this way, packets destined for this network will be forwarded to the switch by neighboring devices (that is, the IP address of the network management container will be advertised), and the destination MAC address of the packets will be set to mac1 by the neighboring devices.

[0040] When the switch processor receives a packet sent by the server with a destination IP address of 1.1.1.100 and a destination MAC address of the VLAN interface MAC address mac1, it will attempt to query the routing table for routing forwarding. After successfully finding the 1.1.1.1.100 / 32 routing table entry, it will modify the destination MAC address of the packet to macX and the source MAC address to mac1 before sending it out.

[0041] The network management container is configured with a default gateway of 1.1.1.1. When the container communicates with the outside world, the destination MAC address of the outgoing IP packets is mac1. The switch processor receives the packet, queries the routing table, and forwards it. The entire process is similar to that of a server sending packets outwards.

[0042] In some alternative methods, packets are sent to the virtual server based on the destination MAC address, including sending packets to the network management container via the loopback port based on the destination MAC address.

[0043] In this implementation, a physical port of the switch where the switch processor and the central processing unit are located can be pre-configured as a loopback port. After determining the destination MAC address of the packet, the switch processor can send the packet to the network management container via the switch's loopback port according to the destination MAC address.

[0044] Here, the loopback port does not require the insertion of optical modules and cables. It will remain in the working state at the MAC layer. The switch processor will send packets through the loopback port, and the sent packets will be received by the loopback port as input. After receiving the loopback packets, the switch processor will send the packets to the network management container.

[0045] Specifically, such as Figure 4 As shown, multiple servers are connected to the downlink ports of the switch. Each access port, such as port 1, port 2, and port 3, is configured in the same VLAN (Virtual Local Area Network). The VLAN interface hardware address (MAC address) is mac1, and the IP address is 1.1.1.1 / 24. The server addresses are in the same network segment; for example, the IP addresses of the servers are 1.1.1.2, 1.1.1.3, and 1.1.1.4, respectively. The gateway address is the IP address of the switch's VLAN interface, 1.1.1.1. The central processing unit (CPU) is configured with a network management container. The network management container has a virtual interface with IP address 1.1.1.100, which serves as the external access address for the network management container, and MAC address macX. A route with a destination address of 1.1.1.100 / 32 is configured in the switch processor, with the exit port being the loopback port and the next-hop MAC address being macX. An ACL is configured to match packets with a destination MAC address of macX and send them to the CPU.

[0046] When the switch processor receives a packet from the server with a destination IP address of 1.1.1.100 and a destination MAC address of the VLAN interface MAC address mac1, it will attempt to query the routing table for routing forwarding. After successfully finding the 1.1.1.1.100 / 32 routing table entry, it will modify the packet's destination MAC address to macX and the source MAC address to mac1 before sending it out from the loopback port. Due to the loopback attribute, the packet will be received by the loopback port again, and since the destination MAC address macX matches the ACL mentioned earlier, the packet is sent to the central processing unit and delivered to the network management container.

[0047] This implementation sends packets to the network management container via the loopback port based on the destination MAC address, which helps ensure that the application environment of the network management container is completely consistent with the application environment of the actual physical server, thus improving the accuracy of the generated network detection information.

[0048] In some alternative approaches, the network management container is further used to store and compute the received packets and the generated network probe information.

[0049] In this implementation, the network management container can be further used to store and compute the received packets and the generated network probe information, that is, the network management container can have the storage and computing capabilities of a physical server.

[0050] In some alternative approaches, the network management container is further used to configure the destination IP address and MAC address of the local message to match the IP address and MAC address of the switch processor, and to send the local message.

[0051] In this implementation, the network management container is further configured to match the destination IP address and MAC address of the local packet with the IP address and MAC address of the switch processor, and send the local packet. That is, the network management container can have the ability to send packets as a physical server.

[0052] Specifically, the network management container is configured with a default gateway of 1.1.1.1. When the container communicates with the outside world, the destination MAC address of the outgoing local packets is mac1, and the local packets are sent. The switch processor receives the packets, queries the routing table, and forwards them. The whole process is similar to the process of sending packets out of the server.

[0053] In some alternative approaches, the network management container is further used to send local packets to the switch processor via the loopback port.

[0054] In this implementation, a physical port of the switch where the switch processor and the central processing unit are located can be pre-configured as a loopback port. After the network management container configures the destination IP address and destination MAC address of the local packet to be sent to match the IP address and MAC address of the switch processor, it can send the packet to the switch processor via the switch's loopback port.

[0055] Specifically, the network management container is configured with a default gateway of 1.1.1.1. When the container communicates with the outside world, the destination MAC address of the local message to be sent is mac1. The local message to be sent is sent out from the loopback port, and then the loopback port receives the message again. After receiving the message, the switch processor queries the routing table to forward it. The whole process is similar to the process of sending messages outward on the server.

[0056] In this implementation, the network management container is further used to send packets to the switch processor via the loopback port, enabling the network management container to have the ability to send packets like a physical server. This ensures that the application environment of the network management container and the physical server is the same, and further guarantees the accuracy of the network probe information generated by the network management container.

[0057] Further reference Figure 5 , Figure 5A flowchart 500 illustrates an embodiment of the message forwarding method applicable to this application. In this embodiment, the message forwarding method includes the following steps:

[0058] Step 501: In response to receiving a message and the destination IP address of the message matching the IP address of the network management container in the central processing unit, determine the destination MAC address of the message based on the destination IP address of the message and the routing table entry.

[0059] In this embodiment, the execution entity (switch processor) can monitor the packets sent by the server via wired or wireless connection in real time or periodically. In response to receiving a packet, it can match the destination IP address of the packet with the IP address of the network management container in the central processing unit. If they match, the destination MAC address of the packet is determined based on the destination IP address of the packet and the routing table entry.

[0060] The aforementioned wireless connection methods may include, but are not limited to, 3G / 4G connection, WiFi connection, Bluetooth connection, WiMAX connection, Zigbee connection, UWB (ultra wideband) connection, and other currently known or future wireless connection methods.

[0061] Step 502: Based on the destination MAC address, send the packet to the network management container configured on the central processing unit.

[0062] In this embodiment, the executing entity can send packets to the network management container configured on the central processing unit based on the destination MAC address. The network management container has a network detection application pre-installed, which can generate network detection information based on the packets and the network detection application.

[0063] Here, the switch processor can send the packet to the network management container directly or via the loopback port; this application does not limit this method.

[0064] In some alternative methods, the message is sent to the network management container configured on the central processing unit, including: sending the message to the network management container configured on the central processing unit via a loopback port.

[0065] In this implementation, after determining the MAC address of the packet, the switch processor can send the packet to the network management container via the switch's loopback port according to the destination MAC address.

[0066] Here, the loopback port does not require the insertion of optical modules and cables. It will remain in the working state at the MAC layer. The switch processor will send packets through the loopback port, and the sent packets will be received by the loopback port as input. After receiving the loopback packets, the switch processor will send the packets to the network management container.

[0067] This implementation sends packets to the network management container via the loopback port based on the destination MAC address, which helps ensure that the application environment of the network management container is completely consistent with the application environment of the actual physical server, thus improving the accuracy of the generated network detection information.

[0068] from Figure 5 As can be seen from the example, this embodiment mainly emphasizes responding to the received message, and the destination IP address of the message matches the IP address of the network management container in the central processing unit. Based on the destination IP address of the message and the routing table entry, the destination MAC address of the message is determined, and based on the destination MAC address, the message is sent to the network management container. This realizes the deployment of network management and detection applications on the switch, avoids bringing additional load to the server, and ensures the security of server information while realizing network detection.

[0069] Further reference Figure 6 As an implementation of the methods shown in the above figures, this application provides an embodiment of a message forwarding device, which is similar to... Figure 2 Corresponding to the method embodiments shown, this device can be specifically applied to various electronic devices.

[0070] like Figure 6 As shown, the message forwarding device 600 of this embodiment includes: a determination module 601 and a sending module 602.

[0071] The determination module 601 can be configured to determine the destination MAC address of a message in response to receiving a message and the destination IP address of the message matching the IP address of the network management container in the central processing unit, based on the destination IP address of the message and the routing table entry.

[0072] The sending module 602 can be configured to send packets to a network management container configured on the central processing unit based on the destination MAC address.

[0073] In some alternative embodiments of this example, the sending module is further configured to send the message to the network management container configured on the central processing unit via the loopback port.

[0074] According to embodiments of this application, this application also provides an electronic device and a readable storage medium.

[0075] like Figure 7The diagram shown is a block diagram of an electronic device using a message forwarding method according to an embodiment of this application.

[0076] 700 is a block diagram of an electronic device for a message forwarding method according to embodiments of this application. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device may also represent various forms of mobile devices, such as personal digital processors, cellular phones, smartphones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely illustrative and are not intended to limit the implementation of the present application described and / or claimed herein.

[0077] like Figure 7 As shown, the electronic device includes one or more processors 701, a memory 702, and interfaces for connecting the components, including high-speed interfaces and low-speed interfaces. The components are interconnected via different buses and can be mounted on a common motherboard or otherwise as required. The processors can process instructions executed within the electronic device, including instructions stored in or on memory to display graphical information of a GUI on an external input / output device (such as a display device coupled to the interface). In other embodiments, multiple processors and / or multiple buses can be used with multiple memories and multiple memory modules, if desired. Similarly, multiple electronic devices can be connected, each providing some of the necessary operations (e.g., as a server array, a group of blade servers, or a multiprocessor system). Figure 7 Take the 701 processor as an example.

[0078] The memory 702 is the non-transitory computer-readable storage medium provided in this application. The memory stores instructions executable by at least one processor to cause the at least one processor to perform the message forwarding method provided in this application. The non-transitory computer-readable storage medium of this application stores computer instructions for causing a computer to perform the message forwarding method provided in this application.

[0079] Memory 702, as a non-transitory computer-readable storage medium, can be used to store non-transitory software programs, non-transitory computer-executable programs, and modules, such as the program instructions / modules corresponding to the message forwarding method in the embodiments of this application (e.g., appendix). Figure 6 (The determining module 601 and the sending module 602 are shown). The processor 701 executes various functional applications and data processing of the server by running non-transient software programs, instructions, and modules stored in the memory 702, that is, it implements the message forwarding method in the above method embodiment.

[0080] Memory 702 may include a program storage area and a data storage area. The program storage area may store the operating system and applications required for at least one function; the data storage area may store data created by the use of the message-forwarding electronic device. Furthermore, memory 702 may include high-speed random access memory and may also include non-transitory memory, such as at least one disk storage device, flash memory device, or other non-transitory solid-state storage device. In some embodiments, memory 702 may optionally include memory remotely located relative to processor 701, and these remote memories can be connected to the message-forwarding electronic device via a network. Examples of such networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.

[0081] The electronic device for message forwarding may further include an input device 703 and an output device 704. The processor 701, memory 702, input device 703, and output device 704 can be connected via a bus or other means. Figure 7 Taking the example of a connection between China and Israel via a bus.

[0082] Input device 703 can receive input numerical or character information, such as a touchscreen, keypad, mouse, trackpad, touchpad, joystick, one or more mouse buttons, trackball, joystick, etc. Output device 704 may include a display device, auxiliary lighting device (e.g., LED), and haptic feedback device (e.g., vibration motor). The display device may include, but is not limited to, a liquid crystal display (LCD), a light-emitting diode (LED) display, and a plasma display. In some embodiments, the display device may be a touchscreen.

[0083] Various implementations of the systems and techniques described herein can be implemented in digital electronic circuit systems, integrated circuit systems, application-specific integrated circuits (ASICs), computer hardware, firmware, software, and / or combinations thereof. These various implementations may include: implementations in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which may be a dedicated or general-purpose programmable processor, capable of receiving data and instructions from a storage system, at least one input device, and at least one output device, and transferring data and instructions to the storage system, the at least one input device, and the at least one output device.

[0084] These computational programs (also referred to as programs, software, software applications, or code) include machine instructions for a programmable processor and can be implemented using high-level procedural and / or object-oriented programming languages, and / or assembly / machine languages. As used herein, the terms “machine-readable medium” and “computer-readable medium” refer to any computer program product, device, and / or apparatus (e.g., disk, optical disk, memory, programmable logic device (PLD)) used to provide machine instructions and / or data to a programmable processor, including machine-readable media that receive machine instructions as machine-readable signals. The term “machine-readable signal” refers to any signal used to provide machine instructions and / or data to a programmable processor.

[0085] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device for displaying information to the user (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor); and a keyboard and pointing device (e.g., a mouse or trackball) through which the user provides input to the computer. Other types of devices can also be used to provide interaction with the user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including sound input, voice input, or tactile input).

[0086] The systems and technologies described herein can be implemented in computing systems that include backend components (e.g., as a data server), or computing systems that include middleware components (e.g., an application server), or computing systems that include frontend components (e.g., a user computer with a graphical user interface or web browser through which a user can interact with embodiments of the systems and technologies described herein), or any combination of such backend, middleware, or frontend components. The components of the system can be interconnected via digital data communication of any form or medium (e.g., a communication network). Examples of communication networks include local area networks (LANs), wide area networks (WANs), and the Internet.

[0087] Computer systems can include clients and servers. Clients and servers are generally located far apart and typically interact through communication networks. Client-server relationships are created by computer programs running on the respective computers and having a client-server relationship with each other.

[0088] According to the technical solution of this application embodiment, by configuring a network management container on the CPU of the switch and enabling the network management container to have the function of a physical server, and then installing a detection application on the network management container, the deployment of the network management container and the detection application on the switch is realized, avoiding additional load on the physical server, and ensuring the security of server information while realizing network detection.

[0089] It should be understood that the various forms of processes shown above can be used to rearrange, add, or delete steps. For example, the steps described in this application can be executed in parallel, sequentially, or in different orders, as long as the desired result of the technical solution disclosed in this application can be achieved, and this is not limited herein.

[0090] The specific embodiments described above do not constitute a limitation on the scope of protection of this application. Those skilled in the art should understand that various modifications, combinations, sub-combinations, and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of this application should be included within the scope of protection of this application.

Claims

1. A message forwarding system, comprising: Central processing unit and switch processor, The switch processor is configured to, in response to receiving a message sent by a server, wherein the destination IP address of the message matches the IP address of the network management container in the central processing unit, determine the destination MAC address of the message based on the destination IP address of the message and the routing table entry; and send the message to the network management container based on the destination MAC address. The central processing unit is used to configure a network management container, which, in response to receiving a message sent by the switch processor, generates network detection information based on the message and a pre-installed network detection application.

2. The system according to claim 1, wherein, Sending the packet to the network management container based on the destination MAC address includes: Based on the destination MAC address, the packet is sent to the network management container via the loopback port.

3. The system according to claim 1, wherein, The network management container is further configured to match the destination IP address and MAC address of the local message with the IP address and MAC address of the switch processor, and to send the local message.

4. The system according to claim 3, wherein, Sending the local message includes: The local message is sent to the switch processor via the loopback port.

5. The system according to claim 1, wherein, The network management container is further used to store and compute the received messages and the generated network probe information.

6. A message forwarding method, the method comprising: In response to receiving a message, and the destination IP address of the message matching the IP address of the network management container in the central processing unit, the destination MAC address of the message is determined based on the destination IP address of the message and the routing table entry; Based on the destination MAC address, the packet is sent to a network management container configured on the central processing unit. The network management container is used to generate network detection information based on the packet and a pre-installed network detection application.

7. The method according to claim 6, wherein, Sending the message to the network management container configured on the central processing unit includes: The message is sent to the network management container configured on the central processing unit via the loopback port.

8. A message forwarding apparatus, the apparatus comprising: The determination module is configured to, in response to receiving a message and the destination IP address of the message matching the IP address of the network management container in the central processing unit, determine the destination MAC address of the message based on the destination IP address of the message and the routing table entry; The sending module is configured to send the packet to a network management container configured on the central processing unit based on the destination MAC address. The network management container is used to generate network detection information based on the packet and a pre-installed network detection application.

9. An electronic device, characterized in that, include: At least one processor; as well as A memory communicatively connected to the at least one processor; wherein, The memory stores information that can be executed by the at least one processor to enable the at least one processor to perform the method of any one of claims 6-7.

10. A non-transitory computer-readable storage medium storing computer instructions, characterized in that, The computer instructions are used to cause the computer to perform the method of any one of claims 6-7.

Citation Information

Patent Citations

  • Connectivity detection method, stream forwarding devices and network controller

    CN109587010A

  • Container network management system

    CN114237812A