CN120499095B - Data transmission method, device, equipment, storage medium and program product - Google Patents
Data transmission method, device, equipment, storage medium and program productInfo
- Publication number
- CN120499095B CN120499095B CN202510961384.1A CN202510961384A CN120499095B CN 120499095 B CN120499095 B CN 120499095B CN 202510961384 A CN202510961384 A CN 202510961384A CN 120499095 B CN120499095 B CN 120499095B
- Authority
- CN
- China
- Prior art keywords
- virtual
- bare metal
- data packet
- forwarding
- gateway
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Landscapes
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The application relates to a data transmission method, a device, equipment, a storage medium and a program product, wherein the method comprises the steps of deploying a physical switch under a first network, configuring a virtual bare metal gateway associated with the physical switch according to the first network to obtain the configured virtual bare metal gateway, then determining a forwarding path of a first data packet according to the configured virtual bare metal gateway under the condition that the first data packet sent by external equipment through the physical switch is received, and forwarding the first data packet to a target bare metal server under the physical switch based on the forwarding path. The method utilizes the deployed virtual bare metal gateway to perform data transmission, can directly perform data interaction with various types of physical switches, and effectively reduces the data transmission cost.
Description
Technical Field
The present application relates to the field of communications technologies, and in particular, to a data transmission method, apparatus, device, storage medium, and program product.
Background
With the rapid development of cloud computing technology, bare metal servers (Bare METAL SERVER, abbreviated as BMS) are widely used in a plurality of fields due to their high performance, high security and physical isolation characteristics, and in the advantages of big data processing, high performance computing, financial security, etc. However, in a cloud computing environment, interworking between bare metal servers and virtual machines is a great challenge.
At present, an intelligent network card or a physical switch is generally adopted for deployment and implementation of a physical gateway, however, a data transmission method based on the existing physical gateway has the problem of high cost.
Disclosure of Invention
In view of the foregoing, it is desirable to provide a data transmission method, apparatus, device, storage medium, and program product capable of reducing transmission costs.
In a first aspect, the present application provides a data transmission method, the method comprising:
The physical switch is deployed under a first network, and a virtual bare metal gateway associated with the physical switch is configured according to the first network, so that the configured virtual bare metal gateway is obtained;
and under the condition that a first data packet sent by the external equipment through the physical switch is received, determining a forwarding path of the first data packet according to the configured virtual bare metal gateway, and forwarding the first data packet to a target bare metal server under the physical switch based on the forwarding path.
According to the data transmission method provided by the embodiment of the application, the physical switch is deployed under the first network, the virtual bare metal gateway associated with the physical switch is configured according to the first network, the configured virtual bare metal gateway is obtained, then under the condition that the first data packet sent by the external equipment through the physical switch is received, the forwarding path of the first data packet is determined according to the configured virtual bare metal gateway, and the first data packet is forwarded to the target bare metal server under the physical switch based on the forwarding path. In the conventional data transmission process, when the bare metal gateway is used for transmitting data, the bare metal gateway needs to be matched with the physical switch, the bare metal gateways matched with different types of physical switches are different, and additional hardware equipment is required to be equipped, so that the transmission cost is obviously increased. The method utilizes the deployed virtual bare metal gateway to perform data transmission, can directly perform data interaction with various types of physical switches, and effectively reduces the data transmission cost.
In some embodiments, the virtual bare metal gateway includes an information lookup table, a first virtual transponder, and a plurality of second virtual transponders, and determines a forwarding path of the first data packet according to the configured virtual bare metal gateway, including:
Inquiring the forwarding source of the first data packet in the information inquiry table;
If the forwarding source is a first virtual forwarder, determining a first forwarding path of the first data packet according to a routing forwarding table in the first virtual forwarder, wherein the first forwarding path comprises forwarding the first data packet to a target bare metal server by the first virtual forwarder through a physical switch;
If the forwarding source is a second virtual forwarder, determining a target virtual forwarder from a plurality of second virtual forwarders, determining a first forwarding path of the first data packet according to a routing forwarding table in the target virtual forwarder, wherein the first forwarding path comprises forwarding the first data packet by the target virtual forwarder to the target bare metal server through a physical switch.
In some embodiments, the virtual bare metal gateway further includes a virtual proxy module and a virtual network card table, and determining a target virtual forwarder from the plurality of second virtual forwarders includes:
The method comprises the steps of sending relevant information of a third virtual transponder to a virtual proxy module for forwarding function verification to obtain a verification result, wherein the third virtual transponder is a second virtual transponder determined by a forwarding source of a first data packet;
If the verification result shows that the third virtual transponder has a forwarding function, determining that the third virtual transponder is a target virtual transponder;
If the verification result shows that the third virtual transponder does not have the forwarding function, determining a second virtual transponder with the forwarding function from the plurality of second virtual transponders according to the virtual network card table, and determining the second virtual transponder with the forwarding function as the target virtual transponder.
According to the method provided by the embodiment of the application, the virtual proxy module is used for verifying the forwarding function of the third virtual forwarder, so that whether the virtual forwarder has a normal forwarding function or not can be timely found, the situation that the data packet cannot be forwarded normally due to the failure of the virtual forwarder is avoided, and the reliability of the network is improved. And when the third virtual repeater does not have a forwarding function, the device with the forwarding function can be found from the plurality of second virtual repeaters to serve as a target virtual repeater according to the virtual network card table, and the standby mechanism can be switched rapidly when the virtual repeater fails, so that the continuity and the stability of data transmission are ensured.
In some of these embodiments, the method further comprises:
And under the condition that a second data packet sent by the physical switch is received, sending the second data packet to the configured virtual bare metal gateway for encapsulation, and forwarding the encapsulated second data packet to external equipment through the physical switch, wherein the second data packet is a data packet after the target bare metal server processes the first data packet.
According to the method provided by the embodiment of the application, different external devices can adopt different data packet formats for communication, and the virtual bare metal gateway can carry out encapsulation processing on data packets with various formats, so that the physical switch can communicate with various types of external devices, the communication barrier caused by incompatibility of the data packet formats is broken, the interconnection and intercommunication of the whole network are realized, and the data transmission efficiency is further improved.
In some embodiments, configuring a virtual bare metal gateway associated with a physical switch according to a first network, the configured virtual bare metal gateway comprising:
Creating a corresponding virtual network card according to the first network, and constructing a virtual network card table of the virtual network card;
acquiring related information of a virtual network card according to a transmission path relation between a physical switch and a virtual bare metal gateway associated with the physical switch;
And updating the route information in the route forwarding table according to the related information of the virtual network card to obtain the configured virtual bare metal gateway.
According to the method provided by the embodiment of the application, the network function is realized by constructing the virtual bare metal gateway, so that the dependence on traditional hardware equipment can be reduced. In the traditional network architecture, a large number of hardware devices are often required to be deployed in order to realize different network functions, and the virtual bare metal gateway and the virtual network card can replace the hardware devices to a certain extent, so that the hardware cost and the maintenance cost are reduced.
In some of these embodiments, the method further comprises:
and deploying the physical switch under a second network, and configuring the virtual bare metal gateway associated with the physical switch according to the second network to obtain the configured virtual bare metal gateway.
According to the method provided by the embodiment of the application, the virtual bare metal gateway is configured under the second network, so that the first network can be deployed initially and the second network can multiplex one network card when providing service, the hardware cost can be saved, the deployed virtual bare metal gateway is used for data transmission, and the data transmission cost can be effectively reduced.
In a second aspect, the present application also provides a data transmission apparatus, including:
The configuration module is used for deploying the physical switch under the first network and configuring the virtual bare metal gateway associated with the physical switch according to the first network to obtain the configured virtual bare metal gateway;
The transmission module is used for determining a forwarding path of the first data packet according to the configured virtual bare metal gateway under the condition that the first data packet sent by the external equipment through the physical switch is received, and forwarding the first data packet to a target bare metal server under the physical switch based on the forwarding path.
In a third aspect, the present application also provides a computer device comprising a memory storing a computer program and a processor implementing the following steps when executing the computer program:
The physical switch is deployed under a first network, and a virtual bare metal gateway associated with the physical switch is configured according to the first network, so that the configured virtual bare metal gateway is obtained;
and under the condition that a first data packet sent by the external equipment through the physical switch is received, determining a forwarding path of the first data packet according to the configured virtual bare metal gateway, and forwarding the first data packet to a target bare metal server under the physical switch based on the forwarding path.
In a fourth aspect, the present application also provides a computer readable storage medium having stored thereon a computer program which when executed by a processor performs the steps of:
The physical switch is deployed under a first network, and a virtual bare metal gateway associated with the physical switch is configured according to the first network, so that the configured virtual bare metal gateway is obtained;
and under the condition that a first data packet sent by the external equipment through the physical switch is received, determining a forwarding path of the first data packet according to the configured virtual bare metal gateway, and forwarding the first data packet to a target bare metal server under the physical switch based on the forwarding path.
In a fifth aspect, the application also provides a computer program product comprising a computer program which, when executed by a processor, performs the steps of:
The physical switch is deployed under a first network, and a virtual bare metal gateway associated with the physical switch is configured according to the first network, so that the configured virtual bare metal gateway is obtained;
and under the condition that a first data packet sent by the external equipment through the physical switch is received, determining a forwarding path of the first data packet according to the configured virtual bare metal gateway, and forwarding the first data packet to a target bare metal server under the physical switch based on the forwarding path.
The method comprises the steps of disposing a physical switch under a first network, configuring a virtual bare metal gateway associated with the physical switch according to the first network to obtain the configured virtual bare metal gateway, determining a forwarding path of a first data packet according to the configured virtual bare metal gateway under the condition that the first data packet sent by an external device through the physical switch is received, and forwarding the first data packet to a target bare metal server under the physical switch based on the forwarding path. In the conventional data transmission process, when the bare metal gateway is used for transmitting data, the bare metal gateway needs to be matched with the physical switch, the bare metal gateways matched with different types of physical switches are different, and additional hardware equipment is required to be equipped, so that the transmission cost is obviously increased. The method utilizes the deployed virtual bare metal gateway to perform data transmission, can directly perform data interaction with various types of physical switches, and effectively reduces the data transmission cost.
Drawings
FIG. 1 is a schematic diagram of a data transmission system in some embodiments;
FIG. 2 is a flow chart of a data transmission method in some embodiments;
FIG. 3 is a second flow chart of a data transmission method in some embodiments;
FIG. 4 is a third flow chart of a data transmission method in some embodiments;
FIG. 5 is a flow chart of a data transmission method in some embodiments;
FIG. 6 is a fifth flow chart of a data transmission method in some embodiments;
FIG. 7 is a block diagram of a data transmission device in some embodiments;
FIG. 8 is an internal block diagram of a computer device in some embodiments.
Detailed Description
In the embodiment of the application, the term "and/or" describes the association relation of the association objects, which means that three relations can exist, for example, A and/or B, and can mean that A exists alone, A and B exist simultaneously, and B exists alone. The character "/" generally indicates that the context-dependent object is an "or" relationship.
The term "plurality" in embodiments of the present application means two or more, and other adjectives are similar.
The term "at least one" in embodiments of the present application means one or more, for example, at least one of A, B and C, and may mean that there are six cases, A alone, B alone, C alone, A and B together, A and C together, B and C together, and A, B and C together.
The following description of the embodiments of the present application will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments, but not all embodiments of the present application. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
With the rapid development of cloud computing technology, bare metal servers (Bare METAL SERVER, abbreviated as BMS) are widely used in a plurality of fields due to their high performance, high security and physical isolation characteristics, and in the advantages of big data processing, high performance computing, financial security, etc. However, in a cloud computing environment, interworking between bare metal servers and virtual machines is a great challenge. At present, an intelligent network card or a physical switch is generally adopted for deployment and implementation of a physical gateway, however, a data transmission method based on the existing physical gateway has the problem of high cost.
In view of this, the embodiments of the present application provide a data transmission method, apparatus, device, storage medium, and program product, which can directly perform data interaction with various types of physical switches by performing data transmission through deployed virtual bare metal gateways, thereby effectively reducing data transmission cost.
It should be noted that the beneficial effects or the technical problems to be solved by the embodiments of the present application are not limited to this one, but may be other implicit or related problems, and particularly, reference may be made to the following description of embodiments.
The following describes the technical scheme of the present application and how the technical scheme of the present application solves the above technical problems in detail with specific embodiments. The following embodiments may be combined with each other, and the same or similar concepts or processes may not be described in detail in some embodiments. Embodiments of the present application will be described below with reference to the accompanying drawings.
In some embodiments, the data transmission method provided by the embodiment of the application can be applied to various personal computers, notebook computers, smart phones, tablet computers, internet of things devices, portable wearable devices and the like, or applied to independent servers or server clusters formed by a plurality of servers. The embodiment of the present application will be described by taking the application of the method to a computer device, and the computer device may include the data transmission system 10. The architecture of the data transmission system 10 may be as shown in fig. 1, that is, the data transmission system 10 may include a virtual bare metal gateway 101, at least one physical switch 102 and at least one bare metal server 103, where the virtual bare metal gateway 101 and the physical switch 102 are disposed one-to-one or one-to-many, the physical switches 102 are in communication connection, the physical switch 102 may deploy a plurality of bare metal servers 103, and during a data transmission process, the data transmission system 10 may screen a target bare metal server from the plurality of bare metal servers 103, and then implement data transmission with the external device 20 through the bare metal gateway 101, the physical switch 102 and the target bare metal server.
It will be appreciated by those skilled in the art that the structure shown in fig. 1 is merely a block diagram of a portion of the structure associated with the present inventive arrangements and is not limiting of the data transmission system to which the present inventive arrangements are applied, and that a particular data transmission system may include more or fewer components than shown, or may combine certain components, or have a different arrangement of components.
In some embodiments, as shown in fig. 2, a data transmission method is provided, and the method is applied to the computer device in fig. 1 for illustration, and includes the following steps:
S201, the physical switch is deployed under a first network, and the virtual bare metal gateway associated with the physical switch is configured according to the first network, so that the configured virtual bare metal gateway is obtained.
Wherein the first network is an initial network where bare metal servers are deployed prior to installing the operating system. There is a correspondence between the physical switch and the virtual bare metal gateway.
In the embodiment of the application, the computer equipment configures the bare metal server according to the bare metal server creation request sent by the user. The method comprises the steps that after a computer device receives a bare metal server creation request, the creation request can be analyzed to obtain information of a first network, then configuration information of a virtual network card corresponding to the first network is created, finally a physical switch is called to the position under the first network according to the configuration information of the virtual network card, a virtual bare metal gateway associated with the physical switch is deployed under the first network according to a corresponding relation between the physical switch and the virtual bare metal gateway, and the bare metal server is mounted on the virtual bare metal gateway according to address information of the bare metal server in the configuration information of the virtual network card, so that the configured virtual bare metal gateway and the virtual bare metal server are obtained. It should be noted that, the correspondence between the physical switch and the virtual bare metal gateway may be created in advance according to the use requirement. The configuration information of the virtual network card comprises network information corresponding to the virtual network card, address information of the bare metal server and the like. When the physical switch is called, any physical switch in the current data transmission system can be called, or the physical switch with the best performance can be called.
S202, under the condition that a first data packet sent by external equipment through a physical switch is received, determining a forwarding path of the first data packet according to the configured virtual bare metal gateway, and forwarding the first data packet to a target bare metal server under the physical switch based on the forwarding path.
The external device may be an external communication device independently provided from the virtual bare metal gateway, or an external communication device independently provided from the computer device. The first data packet is a data packet sent by the external device, and the first data packet comprises at least one of data to be processed, address information and network information. The forwarding path is the transmission path of the first data packet, i.e. where the first data packet is forwarded from.
In the embodiment of the application, after the computer equipment configures the virtual bare metal gateway based on the steps, the computer equipment can communicate with external equipment based on the virtual bare metal gateway, and the specific process is as follows: the external device can send the first data packet to the physical switch, the computer device can receive the first data packet through the physical switch, after receiving the first data packet, the computer device can analyze the transmission source device, the transmission intermediate device and the transmission destination device of the data packet according to the route information in the virtual bare metal gateway by using the configured virtual bare metal gateway, further determine the forwarding path of the first data packet, then forward the first data packet to the target bare metal server under the physical switch according to the forwarding path, process the data by the target bare metal server, and return the processing result. The route information includes address information of each transmission device, next hop device information, and the like. Optionally, when the format of the data packet sent by the external device is inconsistent with the format of the data packet processed by the virtual bare metal gateway and the bare metal server, in this case, after the computer device receives the first data packet, the format of the first data packet may be converted first, and then the virtual bare metal gateway and the target bare metal server are utilized to process the first data packet after the format conversion. For example, the format of the first data packet received by the computer device is vxlan format, the vxlan format of the first data packet may be unpacked by a unpacking module in the virtual bare metal gateway, after determining the forwarding path, the data packet after the unpacking format is converted into vlan format, and finally the data packet in vlan format is forwarded to the target bare metal server, and the target bare metal server processes the first data packet in vlan format. Optionally, the virtual bare metal gateway and the physical switch can transmit data through respective physical network card interfaces, for example, the physical network card interface of the virtual bare metal gateway is a NIC interface, the physical network card interface of the physical switch is a Port interface, the external device and the physical switch can transmit data through respective physical network card interfaces, for example, the physical network card interface of the external device is a NIC interface, and the physical switch and the bare metal server can transmit data through the Port interface.
According to the data transmission method provided by the embodiment of the application, the physical switch is deployed under the first network, the virtual bare metal gateway associated with the physical switch is configured according to the first network, the configured virtual bare metal gateway is obtained, then under the condition that the first data packet sent by the external equipment through the physical switch is received, the forwarding path of the first data packet is determined according to the configured virtual bare metal gateway, and the first data packet is forwarded to the target bare metal server under the physical switch based on the forwarding path. In the conventional data transmission process, when the bare metal gateway is used for transmitting data, the bare metal gateway needs to be matched with the physical switch, the bare metal gateways matched with different types of physical switches are different, and additional hardware equipment is required to be equipped, so that the transmission cost is obviously increased. The method utilizes the deployed virtual bare metal gateway to perform data transmission, can directly perform data interaction with various types of physical switches, and effectively reduces the data transmission cost.
In some embodiments, the virtual bare metal gateway includes an information lookup table, a first virtual transponder, and a plurality of second virtual transponders, and on this basis, a specific implementation manner for determining a forwarding path of the first data packet is further provided, as shown in fig. 3, and the "determining the forwarding path of the first data packet according to the configured virtual bare metal gateway" in S202 includes:
S301, inquiring the forwarding source of the first data packet in the information inquiry table.
The virtual bare metal gateway comprises an information lookup table, a first virtual transponder and a plurality of second virtual transponders. The information inquiry table comprises a corresponding relation between the virtual network identification and virtual route information, wherein the virtual route information comprises a virtual transponder and a route forwarding table or a route table corresponding to the virtual transponder. The first virtual transponder is an outer layer virtual transponder in the virtual bare metal gateway, the second virtual transponder is an inner layer virtual transponder in the virtual bare metal gateway, and the data transmission speed of the outer layer virtual transponder is higher than that of the inner layer virtual transponder.
In the embodiment of the application, after receiving the first data packet, the computer equipment can analyze the first data packet to determine the virtual network identifier of the first data packet, then inquire virtual routing information corresponding to the virtual network identifier of the first data packet in the information inquiry table, then determine a corresponding virtual transponder according to the virtual routing information, and take the virtual transponder as a forwarding source of the first data packet.
S302, if the forwarding source is the first virtual forwarder, determining a first forwarding path of the first data packet according to a routing forwarding table in the first virtual forwarder.
The first forwarding path when the forwarding source is the first virtual forwarder includes forwarding the first data packet to the target bare metal server by the first virtual forwarder through the physical switch.
In the embodiment of the application, when the computer equipment determines that the forwarding source is the first virtual forwarder based on the steps, the situation indicates that the virtual forwarder at the outer layer in the virtual bare metal gateway can be used for data forwarding directly, so that a routing forwarding table in the first virtual forwarder can be obtained from the information lookup table, next hop transmission equipment is determined according to the routing forwarding table in the first virtual forwarder, next hop transmission equipment is determined again until the target transmission equipment is the target bare metal server, and a first forwarding path of the first data packet can be obtained, namely the first forwarding path comprises the first virtual forwarder forwarding the first data packet to the target bare metal server through the physical switch.
S303, if the forwarding source is the second virtual forwarder, determining a target virtual forwarder from the plurality of second virtual forwarders, and determining a first forwarding path of the first data packet according to a routing forwarding table in the target virtual forwarder.
The first forwarding path when the forwarding source is the second virtual forwarder comprises forwarding the first data packet to the target bare metal server by the target virtual forwarder through the physical switch.
In the embodiment of the present application, when the computer device determines that the forwarding source is a certain second virtual forwarder based on the above steps, this situation indicates that the data forwarding cannot be performed directly by using the outer virtual forwarder in the virtual bare metal gateway, and the data forwarding needs to be performed by using the inner virtual forwarder, then it may be further determined whether the second virtual forwarder is currently occupied, if the second virtual forwarder is not occupied, the second virtual forwarder is taken as the target virtual forwarder, and the first forwarding path of the first data packet is determined according to the routing forwarding table in the second virtual forwarder, if the second virtual forwarder is occupied, the target virtual forwarder is determined from a plurality of second virtual forwarders, then the first forwarding path of the first data packet is determined according to the routing forwarding table in the target virtual forwarder, and then the first data packet is forwarded to the target virtual forwarder, and the first data packet is forwarded to the target bare metal server based on the first forwarding path. Optionally, when the computer device determines that the forwarding source is the second virtual repeater, a flow table (i.e. a flow table) may be applied and created in the virtual bare metal gateway, and the flow table is used to record related information of the first data packet, where the related information of the first data packet may specifically record information such as a format of the first data packet, a source of the first data packet, a content or an action of the first data packet, and the like. After creating the flow table, a first forwarding path for the first data packet may be determined and then also recorded in the flow table.
Optionally, the virtual bare metal gateway further includes a virtual proxy module and a virtual network card table, and on this basis, a specific implementation manner for determining the target virtual forwarder is further provided, as shown in fig. 4, where "determining the target virtual forwarder from the plurality of second virtual forwarders" in S303 includes:
S401, the related information of the third virtual forwarder is sent to the virtual proxy module for forwarding function verification, and a verification result is obtained.
Wherein the third virtual forwarder is a second virtual forwarder determined by the forwarding source of the first data packet. The related information of the third virtual forwarder includes an identification, address information, etc. of the third virtual forwarder. The virtual bare metal gateway also comprises a virtual proxy module and a virtual network card table. The virtual agent module stores a corresponding relation between the virtual transponder and a forwarding rule, and the forwarding rule is used for representing whether the virtual transponder has a forwarding function or not. Optionally, the virtual proxy module may further include a virtual forwarder list. The virtual network card table includes information about the virtual forwarder having the forwarding function. The verification result includes that the verification is passed or the verification is not passed, and further, in the case that the verification result is that the verification is passed, the verification result may further include that the third virtual forwarder has a forwarding function or the third virtual forwarder does not have a forwarding function.
In the embodiment of the present application, after determining the second virtual forwarder based on the forwarding source of the first data packet, the computer device may use the second virtual forwarder as the third virtual forwarder, and then send the relevant information of the third virtual forwarder to the virtual proxy module, and after receiving the relevant information of the third virtual forwarder, the virtual proxy module may determine whether the third virtual forwarder has a forwarding function according to a correspondence relationship between the virtual forwarder and a forwarding rule, so as to obtain a verification result. Optionally, after receiving the related information of the third virtual transponder, the virtual proxy module may further verify whether the third virtual transponder exists in the virtual transponder list, if so, it indicates that the verification passes, and further determine whether the third virtual transponder has a forwarding function according to a correspondence between the virtual transponder and a forwarding rule, so as to obtain a verification result including that the third virtual transponder has a forwarding function or that the third virtual transponder does not have a forwarding function, and if not, it indicates that the verification does not pass.
If the verification result indicates that the third virtual forwarder has the forwarding function, the third virtual forwarder is determined to be the target virtual forwarder S402.
In the embodiment of the present application, when the computer device determines that the verification result indicates that the third virtual repeater has the forwarding function based on the above steps, the third virtual repeater is determined to be the target virtual repeater.
If the verification result indicates that the third virtual forwarder does not have the forwarding function, S403 are executed to determine, from the virtual network card table, a second virtual forwarder having the forwarding function among the plurality of second virtual forwarders, and to determine the second virtual forwarder having the forwarding function as the target virtual forwarder.
In the embodiment of the present application, when the computer device determines that the verification result indicates that the third virtual repeater does not have the forwarding function based on the above steps, the second virtual repeater having the forwarding function is selected from the plurality of second virtual repeaters in the virtual network card table, and then the second virtual repeater having the forwarding function is used as the target virtual repeater. Alternatively, when there are a plurality of second virtual transponders having a forwarding function, one may be optionally selected as the target virtual transponder. Alternatively, a second virtual repeater having a repeating function, the address information of which is closest to the third virtual repeater, may be set as the target virtual repeater. Alternatively, the second virtual repeater with the best current performance and forwarding function may be used as the target virtual repeater.
According to the method provided by the embodiment of the application, the virtual proxy module is used for verifying the forwarding function of the third virtual forwarder, so that whether the virtual forwarder has a normal forwarding function or not can be timely found, the situation that the data packet cannot be forwarded normally due to the failure of the virtual forwarder is avoided, and the reliability of the network is improved. And when the third virtual repeater does not have a forwarding function, the device with the forwarding function can be found from the plurality of second virtual repeaters to serve as a target virtual repeater according to the virtual network card table, and the standby mechanism can be switched rapidly when the virtual repeater fails, so that the continuity and the stability of data transmission are ensured.
In some embodiments, on the basis of the foregoing embodiments, the data transmission method further includes:
And under the condition that a second data packet sent by the physical switch is received, sending the second data packet to the configured virtual bare metal gateway for encapsulation, and forwarding the encapsulated second data packet to external equipment through the physical switch.
The second data packet is a data packet after the target bare metal server processes the first data packet.
In the embodiment of the application, after the target bare metal server processes the first data packet, a second data packet is obtained, then the second data packet can be sent to the physical switch through the physical network port, after the physical switch receives the second data packet, the second data packet can be forwarded to the virtual bare metal gateway in the computer equipment through the network port, and then the computer equipment can receive the second data packet. After receiving the second data packet, the computer device needs to use an encapsulation module in the virtual bare metal gateway to encapsulate the second data packet when the format of the second data packet is inconsistent with that of the first data packet, for example, encapsulate the vlan format of the second data packet into a vlan format to obtain an encapsulated second data packet, and then forward the encapsulated second data packet to the external device through the physical switch, so that the external device can receive a processing result of the computer device on the first data packet.
According to the method provided by the embodiment of the application, different external devices can adopt different data packet formats for communication, and the virtual bare metal gateway can carry out encapsulation processing on data packets with various formats, so that the physical switch can communicate with various types of external devices, the communication barrier caused by incompatibility of the data packet formats is broken, the interconnection and intercommunication of the whole network are realized, and the data transmission efficiency is further improved.
In some embodiments, a specific implementation manner of configuring a virtual bare metal gateway is further provided, as shown in fig. 5, where "configuring a virtual bare metal gateway associated with a physical switch according to a first network, to obtain a configured virtual bare metal gateway" in S201 includes:
S501, creating a corresponding virtual network card according to the first network, and constructing a virtual network card table of the virtual network card.
The virtual network card table comprises at least one of a virtual network ID, a mac address and an ip address.
In the embodiment of the application, after receiving the bare metal server creation request, the computer equipment can analyze the related information of the first network from the bare metal server creation request, then create the configuration information of the corresponding virtual network card according to the related information of the first network, then call the physical switch to the virtual network corresponding to the virtual network card, associate the virtual bare metal gateway, and construct the virtual network card table of the virtual network card in the virtual bare metal gateway. The computer device may be formed by integrating a software defined network controller (SDN controller for short) and a device management service, after receiving a request for creating a bare metal server, the SDN controller may create configuration information of a virtual network card, then put the configuration information of the virtual network card into a message queue, the device management service periodically obtains the configuration information of the virtual network card from the message queue, and then call a physical switch according to the configuration information of the virtual network card, create a virtual bare metal gateway, deploy the bare metal server to the first network, and construct a virtual network card table of the virtual network card in the virtual bare metal gateway. Optionally, in practical application, the SDN controller may directly send the configuration information of the virtual network card to the device management service, without going through a message queue. For example, the SDN controller receives a request for creating a bare metal server, creates virtual network card configuration information corresponding to a first network in the SDN controller, associates the virtual network card configuration information with the bare metal server, saves the virtual network card configuration information in a memory database of the SDN controller, and sends the virtual network card configuration information to the message queue MQ. The device management service obtains the configuration information of the virtual network card through the message queue, then configures the physical switch under the virtual network vlan, and simultaneously calls the virtual bare metal gateway to create a virtual network card table (i.e. a virtual machine interface), and designates the corresponding virtual network vlan.
S502, acquiring relevant information of the virtual network card according to the transmission path relation between the physical switch and the virtual bare metal gateway associated with the physical switch.
The transmission path relation comprises address information of a physical switch and address information of a virtual bare metal gateway. The related information of the virtual network card comprises routing information, virtual routing forwarding information and the like of the virtual network card.
In the embodiment of the application, after the computer equipment creates the virtual bare metal gateway based on the steps, the transmission path relation between the physical switch and the virtual bare metal gateway can be sent to the preset storage equipment, and all the information of the virtual network card can be acquired from the storage equipment. The preset storage device may be an SDN controller. For example, after the virtual bare metal gateway creates the virtual machine interface, an agent program running on the virtual bare metal gateway initiates subscription to the SDN controller through an XMPP protocol, the SDN controller issues virtual routing forwarding information VRF, IP address, MAC address, routing table and other virtual bare metal gateway information of the virtual network card, and the computer device can obtain relevant information of the virtual network card.
And S503, updating the route information in the route forwarding table according to the related information of the virtual network card to obtain the configured virtual bare metal gateway.
In the embodiment of the application, after the computer equipment obtains the relevant information of the virtual network card based on the steps, the routing information in the routing forwarding table can be updated according to the relevant information of the virtual network card so as to obtain the configured virtual bare metal gateway, for example, after receiving the relevant information of the virtual network card issued by the SDN controller, the agent program can perform format conversion on the virtual bare metal gateway information, then store the information after format conversion into a self memory data structure, and issue information such as a VRF table, a routing table, a vxlan, a vlan and the like to a forwarding surface (the forwarding surface supports DPDK high-speed forwarding) for forwarding, and in the subsequent process of deploying an operating system, deployment can be realized through the virtual bare metal gateway.
According to the method provided by the embodiment of the application, the network function is realized by constructing the virtual bare metal gateway, so that the dependence on traditional hardware equipment can be reduced. In the traditional network architecture, a large number of hardware devices are often required to be deployed in order to realize different network functions, and the virtual bare metal gateway and the virtual network card can replace the hardware devices to a certain extent, so that the hardware cost and the maintenance cost are reduced.
In some embodiments, a method for configuring a virtual bare metal gateway according to a service requirement of a user is further provided, where the data transmission method further includes:
and deploying the physical switch under a second network, and configuring the virtual bare metal gateway associated with the physical switch according to the second network to obtain the configured virtual bare metal gateway.
The second network is a network set by the user according to service requirements when personalized service is provided for the user after the bare metal server is deployed and the operating system is installed. The network segments of the first network and the second network are different.
In the embodiment of the application, when the computer equipment deploys the virtual bare metal gateway under the second network, the computer equipment can clear the related information of the virtual bare metal gateway deployed under the first network in advance, and then configures the virtual bare metal gateway under the second network by using the same steps. Specifically, after receiving a service network card creation request corresponding to the second network, the computer device may analyze the creation request to obtain information of the second network, then create configuration information of a virtual network card corresponding to the second network, finally call the physical switch to the second network according to the configuration information of the virtual network card, and deploy the virtual bare metal gateway associated with the physical switch to the second network according to the corresponding relationship between the physical switch and the virtual bare metal gateway, and mount the bare metal server to the virtual bare metal gateway according to address information of the bare metal server in the configuration information of the virtual network card, so as to obtain the configured virtual bare metal gateway and the bare metal server. It should be noted that, the correspondence between the physical switch and the virtual bare metal gateway may be created in advance according to the use requirement. The configuration information of the virtual network card comprises network information corresponding to the virtual network card, address information of the bare metal server and the like. When the physical switch is called, any physical switch in the current data transmission system can be called, or the physical switch with the best performance can be called. When the bare metal server system is started, the bare metal server can provide functions of DHCP, security group, gateway, EIP, DNS, ACL, peer-to-peer connection and the like. It should be noted that, the data transmission method in the foregoing embodiment may be used not only in a virtual bare metal gateway deployed under a first network, but also in a virtual bare metal gateway deployed under a second network, where a transmission manner of a data packet in the virtual bare metal gateway deployed under the second network is the same as a transmission manner in the virtual bare metal gateway deployed under the first network.
According to the method provided by the embodiment of the application, the virtual bare metal gateway is configured under the second network, so that the first network can be deployed initially and the second network can multiplex one network card when providing service, the hardware cost can be saved, the deployed virtual bare metal gateway is used for data transmission, and the data transmission cost can be effectively reduced.
In all the above embodiments, there is also provided a data transmission method, as shown in fig. 6, including:
s601, deploying the physical switch under a first network, creating a corresponding virtual network card according to the first network, and constructing a virtual network card table of the virtual network card.
S602, acquiring relevant information of the virtual network card according to the transmission path relation between the physical switch and the virtual bare metal gateway associated with the physical switch.
And S603, updating the route information in the route forwarding table according to the related information of the virtual network card to obtain the configured virtual bare metal gateway.
And S604, deploying the physical switch under a second network, and configuring the virtual bare metal gateway associated with the physical switch according to the second network to obtain the configured virtual bare metal gateway.
S605, when receiving the first data packet sent by the external device through the physical switch, the forwarding source of the first data packet is queried in the information lookup table.
S606, if the forwarding source is the first virtual forwarder, determining a first forwarding path of the first data packet according to a routing forwarding table in the first virtual forwarder. The first forwarding path includes forwarding, by the first virtual forwarder, the first data packet to the target bare metal server through the physical switch.
S607, if the forwarding source is the second virtual forwarder, the relevant information of the third virtual forwarder is sent to the virtual proxy module for forwarding function verification, and a verification result is obtained. Wherein the third virtual forwarder is a second virtual forwarder determined by the forwarding source of the first data packet.
S608, if the verification result indicates that the third virtual forwarder has the forwarding function, determining that the third virtual forwarder is the target virtual forwarder.
If the verification result indicates that the third virtual forwarder does not have the forwarding function, S609, the second virtual forwarder having the forwarding function among the plurality of second virtual forwarders is determined based on the virtual network card table, and the second virtual forwarder having the forwarding function is determined as the target virtual forwarder. The first forwarding path includes forwarding, by the target virtual forwarder, the first data packet to the target bare metal server through the physical switch.
S610, determining a first forwarding path of the first data packet according to a routing forwarding table in the target virtual forwarder, and forwarding the first data packet to a target bare metal server under the physical switch based on the forwarding path.
S611, under the condition that a second data packet sent by the physical switch is received, sending the second data packet to the configured virtual bare metal gateway for encapsulation, and forwarding the encapsulated second data packet to external equipment through the physical switch. The second data packet is a data packet after the target bare metal server processes the first data packet.
The method of the embodiment of the application realizes the generation, storage and issuing methods of the configuration of the virtual bare metal gateway, realizes the large two-layer unified networking of the virtual machine and the container, and has high availability of the bare metal gateway.
The method of each step is described in the foregoing embodiments, and the detailed description is referred to the foregoing description and is not repeated here.
It should be understood that, although the steps in the flowcharts related to the embodiments described above are sequentially shown as indicated by arrows, these steps are not necessarily sequentially performed in the order indicated by the arrows. The steps are not strictly limited to the order of execution unless explicitly recited herein, and the steps may be executed in other orders. Moreover, at least some of the steps in the flowcharts described in the above embodiments may include a plurality of steps or a plurality of stages, which are not necessarily performed at the same time, but may be performed at different times, and the order of the steps or stages is not necessarily performed sequentially, but may be performed alternately or alternately with at least some of the other steps or stages.
Based on the same inventive concept, the embodiment of the application also provides a data transmission device for realizing the above related data transmission method. The implementation of the solution provided by the device is similar to the implementation described in the above method, so the specific limitation in one or more embodiments of the data transmission device provided below may refer to the limitation of the data transmission method hereinabove, and will not be repeated herein.
In some embodiments, as shown in fig. 7, there is provided a data transmission apparatus including:
the configuration module 70 is configured to deploy the physical switch under the first network, and configure the virtual bare metal gateway associated with the physical switch according to the first network, to obtain the configured virtual bare metal gateway.
And the transmission module 71 is configured to determine a forwarding path of the first data packet according to the configured virtual bare metal gateway, and forward the first data packet to a target bare metal server under the physical switch based on the forwarding path, when the first data packet sent by the external device through the physical switch is received.
In some embodiments, the transmission module includes:
And the inquiring unit is used for inquiring the forwarding source of the first data packet in the information inquiring table.
And the first determination unit is used for determining a first forwarding path of the first data packet according to a routing forwarding table in the first virtual forwarder if the forwarding source is the first virtual forwarder, wherein the first forwarding path comprises forwarding of the first data packet to the target bare metal server by the first virtual forwarder through the physical switch.
And the second determining unit is used for determining a first forwarding path of the first data packet according to a routing forwarding table in the target virtual forwarder if the forwarding source is the second virtual forwarder and determining the target virtual forwarder from the plurality of second virtual forwarders, wherein the first forwarding path comprises forwarding the first data packet to the target bare metal server by the target virtual forwarder through the physical switch.
In some embodiments, the second determining unit includes:
And the first verification subunit is used for sending the related information of the third virtual transponder to the virtual proxy module for carrying out forwarding function verification to obtain a verification result, and the third virtual transponder is a second virtual transponder determined by the forwarding source of the first data packet.
And the first determining subunit is configured to determine that the third virtual repeater is the target virtual repeater if the verification result indicates that the third virtual repeater has a forwarding function.
And the second determining subunit is configured to determine, if the verification result indicates that the third virtual repeater does not have the forwarding function, a second virtual repeater that has the forwarding function from the plurality of second virtual repeaters according to the virtual network card table, and determine the second virtual repeater that has the forwarding function as the target virtual repeater.
In some embodiments, the data transmission device is further configured to send the second data packet to the configured virtual bare metal gateway for encapsulation under the condition that the second data packet sent by the physical switch is received, and forward the encapsulated second data packet to the external device through the physical switch, where the second data packet is a data packet after the target bare metal server processes the first data packet.
In some embodiments, the configuration module includes:
the construction unit is used for creating a corresponding virtual network card according to the first network and constructing a virtual network card table of the virtual network card.
The acquisition unit is used for acquiring the related information of the virtual network card according to the transmission path relation between the physical switch and the virtual bare metal gateway associated with the physical switch.
And the configuration unit is used for updating the routing information in the routing forwarding table according to the related information of the virtual network card to obtain the configured virtual bare metal gateway.
In some embodiments, the data transmission device is further configured to deploy the physical switch under the second network, and configure a virtual bare metal gateway associated with the physical switch according to the second network, to obtain the configured virtual bare metal gateway.
The respective modules in the above-described data transmission apparatus may be implemented in whole or in part by software, hardware, and combinations thereof. The above modules may be embedded in hardware or may be independent of a processor in the computer device, or may be stored in software in a memory in the computer device, so that the processor may call and execute operations corresponding to the above modules.
In some embodiments, a computer device, which may be a terminal or a server, may be provided, and an internal structure diagram thereof may be as shown in fig. 8, and the computer device includes a processor, a memory, an input/output interface, a communication interface, a display unit, and an input device. The processor, the memory and the input/output interface are connected through a system bus, and the communication interface, the display unit and the input device are connected to the system bus through the input/output interface. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The input/output interface of the computer device is used to exchange information between the processor and the external device. The communication interface of the computer device is used for carrying out wired or wireless communication with an external terminal, and the wireless mode can be realized through WIFI, a mobile cellular network, NFC (near field communication) or other technologies. The computer program is executed by a processor to implement a data transmission method. The display unit of the computer device is used for forming a visual picture, and can be a display screen, a projection device or a virtual reality imaging device. The display screen can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, can also be a key, a track ball or a touch pad arranged on the shell of the computer equipment, and can also be an external keyboard, a touch pad or a mouse and the like.
It will be appreciated by those skilled in the art that the structure shown in FIG. 8 is merely a block diagram of some of the structures associated with the present inventive arrangements and is not limiting of the computer device to which the present inventive arrangements may be applied, and that a particular computer device may include more or fewer components than shown, or may combine some of the components, or have a different arrangement of components.
In some embodiments, a computer device is provided comprising a memory and a processor, the memory having stored therein a computer program, the processor when executing the computer program performing the steps of:
The physical switch is deployed under a first network, and a virtual bare metal gateway associated with the physical switch is configured according to the first network, so that the configured virtual bare metal gateway is obtained;
and under the condition that a first data packet sent by the external equipment through the physical switch is received, determining a forwarding path of the first data packet according to the configured virtual bare metal gateway, and forwarding the first data packet to a target bare metal server under the physical switch based on the forwarding path.
In some embodiments, the processor when executing the computer program further performs the steps of:
Inquiring the forwarding source of the first data packet in the information inquiry table;
If the forwarding source is a first virtual forwarder, determining a first forwarding path of the first data packet according to a routing forwarding table in the first virtual forwarder, wherein the first forwarding path comprises forwarding the first data packet to a target bare metal server by the first virtual forwarder through a physical switch;
If the forwarding source is a second virtual forwarder, determining a target virtual forwarder from a plurality of second virtual forwarders, determining a first forwarding path of the first data packet according to a routing forwarding table in the target virtual forwarder, wherein the first forwarding path comprises forwarding the first data packet by the target virtual forwarder to the target bare metal server through a physical switch.
In some embodiments, the processor when executing the computer program further performs the steps of:
The method comprises the steps of sending relevant information of a third virtual transponder to a virtual proxy module for forwarding function verification to obtain a verification result, wherein the third virtual transponder is a second virtual transponder determined by a forwarding source of a first data packet;
If the verification result shows that the third virtual transponder has a forwarding function, determining that the third virtual transponder is a target virtual transponder;
If the verification result shows that the third virtual transponder does not have the forwarding function, determining a second virtual transponder with the forwarding function from the plurality of second virtual transponders according to the virtual network card table, and determining the second virtual transponder with the forwarding function as the target virtual transponder.
In some embodiments, the processor when executing the computer program further performs the steps of:
And under the condition that a second data packet sent by the physical switch is received, sending the second data packet to the configured virtual bare metal gateway for encapsulation, and forwarding the encapsulated second data packet to external equipment through the physical switch, wherein the second data packet is a data packet after the target bare metal server processes the first data packet.
In some embodiments, the processor when executing the computer program further performs the steps of:
Creating a corresponding virtual network card according to the first network, and constructing a virtual network card table of the virtual network card;
acquiring related information of a virtual network card according to a transmission path relation between a physical switch and a virtual bare metal gateway associated with the physical switch;
And updating the route information in the route forwarding table according to the related information of the virtual network card to obtain the configured virtual bare metal gateway.
In some embodiments, the processor when executing the computer program further performs the steps of:
and deploying the physical switch under a second network, and configuring the virtual bare metal gateway associated with the physical switch according to the second network to obtain the configured virtual bare metal gateway.
The computer device provided in the foregoing embodiments has similar implementation principles and technical effects to those of the foregoing method embodiments, and will not be described herein in detail.
In some embodiments, a computer readable storage medium is provided having a computer program stored thereon, which when executed by a processor, performs the steps of:
The physical switch is deployed under a first network, and a virtual bare metal gateway associated with the physical switch is configured according to the first network, so that the configured virtual bare metal gateway is obtained;
and under the condition that a first data packet sent by the external equipment through the physical switch is received, determining a forwarding path of the first data packet according to the configured virtual bare metal gateway, and forwarding the first data packet to a target bare metal server under the physical switch based on the forwarding path.
In some embodiments, the computer program when executed by the processor further performs the steps of:
Inquiring the forwarding source of the first data packet in the information inquiry table;
If the forwarding source is a first virtual forwarder, determining a first forwarding path of the first data packet according to a routing forwarding table in the first virtual forwarder, wherein the first forwarding path comprises forwarding the first data packet to a target bare metal server by the first virtual forwarder through a physical switch;
If the forwarding source is a second virtual forwarder, determining a target virtual forwarder from a plurality of second virtual forwarders, determining a first forwarding path of the first data packet according to a routing forwarding table in the target virtual forwarder, wherein the first forwarding path comprises forwarding the first data packet by the target virtual forwarder to the target bare metal server through a physical switch.
In some embodiments, the computer program when executed by the processor further performs the steps of:
The method comprises the steps of sending relevant information of a third virtual transponder to a virtual proxy module for forwarding function verification to obtain a verification result, wherein the third virtual transponder is a second virtual transponder determined by a forwarding source of a first data packet;
If the verification result shows that the third virtual transponder has a forwarding function, determining that the third virtual transponder is a target virtual transponder;
If the verification result shows that the third virtual transponder does not have the forwarding function, determining a second virtual transponder with the forwarding function from the plurality of second virtual transponders according to the virtual network card table, and determining the second virtual transponder with the forwarding function as the target virtual transponder.
In some embodiments, the computer program when executed by the processor further performs the steps of:
And under the condition that a second data packet sent by the physical switch is received, sending the second data packet to the configured virtual bare metal gateway for encapsulation, and forwarding the encapsulated second data packet to external equipment through the physical switch, wherein the second data packet is a data packet after the target bare metal server processes the first data packet.
In some embodiments, the computer program when executed by the processor further performs the steps of:
Creating a corresponding virtual network card according to the first network, and constructing a virtual network card table of the virtual network card;
acquiring related information of a virtual network card according to a transmission path relation between a physical switch and a virtual bare metal gateway associated with the physical switch;
And updating the route information in the route forwarding table according to the related information of the virtual network card to obtain the configured virtual bare metal gateway.
In some embodiments, the computer program when executed by the processor further performs the steps of:
and deploying the physical switch under a second network, and configuring the virtual bare metal gateway associated with the physical switch according to the second network to obtain the configured virtual bare metal gateway.
In some embodiments, a computer program product is provided comprising a computer program which, when executed by a processor, performs the steps of:
The physical switch is deployed under a first network, and a virtual bare metal gateway associated with the physical switch is configured according to the first network, so that the configured virtual bare metal gateway is obtained;
and under the condition that a first data packet sent by the external equipment through the physical switch is received, determining a forwarding path of the first data packet according to the configured virtual bare metal gateway, and forwarding the first data packet to a target bare metal server under the physical switch based on the forwarding path.
In some embodiments, the computer program when executed by the processor further performs the steps of:
Inquiring the forwarding source of the first data packet in the information inquiry table;
If the forwarding source is a first virtual forwarder, determining a first forwarding path of the first data packet according to a routing forwarding table in the first virtual forwarder, wherein the first forwarding path comprises forwarding the first data packet to a target bare metal server by the first virtual forwarder through a physical switch;
If the forwarding source is a second virtual forwarder, determining a target virtual forwarder from a plurality of second virtual forwarders, determining a first forwarding path of the first data packet according to a routing forwarding table in the target virtual forwarder, wherein the first forwarding path comprises forwarding the first data packet by the target virtual forwarder to the target bare metal server through a physical switch.
In some embodiments, the computer program when executed by the processor further performs the steps of:
The method comprises the steps of sending relevant information of a third virtual transponder to a virtual proxy module for forwarding function verification to obtain a verification result, wherein the third virtual transponder is a second virtual transponder determined by a forwarding source of a first data packet;
If the verification result shows that the third virtual transponder has a forwarding function, determining that the third virtual transponder is a target virtual transponder;
If the verification result shows that the third virtual transponder does not have the forwarding function, determining a second virtual transponder with the forwarding function from the plurality of second virtual transponders according to the virtual network card table, and determining the second virtual transponder with the forwarding function as the target virtual transponder.
In some embodiments, the computer program when executed by the processor further performs the steps of:
And under the condition that a second data packet sent by the physical switch is received, sending the second data packet to the configured virtual bare metal gateway for encapsulation, and forwarding the encapsulated second data packet to external equipment through the physical switch, wherein the second data packet is a data packet after the target bare metal server processes the first data packet.
In some embodiments, the computer program when executed by the processor further performs the steps of:
Creating a corresponding virtual network card according to the first network, and constructing a virtual network card table of the virtual network card;
acquiring related information of a virtual network card according to a transmission path relation between a physical switch and a virtual bare metal gateway associated with the physical switch;
And updating the route information in the route forwarding table according to the related information of the virtual network card to obtain the configured virtual bare metal gateway.
In some embodiments, the computer program when executed by the processor further performs the steps of:
and deploying the physical switch under a second network, and configuring the virtual bare metal gateway associated with the physical switch according to the second network to obtain the configured virtual bare metal gateway.
The foregoing embodiment provides a computer program product, which has similar principles and technical effects to those of the foregoing method embodiment, and will not be described herein.
Those skilled in the art will appreciate that implementing all or part of the above described methods may be accomplished by way of a computer program stored on a non-transitory computer readable storage medium, which when executed, may comprise the steps of the embodiments of the methods described above. Any reference to memory, database, or other medium used in embodiments provided herein may include at least one of non-volatile and volatile memory. The nonvolatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical Memory, high density embedded nonvolatile Memory, resistive random access Memory (ReRAM), magneto-resistive random access Memory (Magnetoresistive Random Access Memory, MRAM), ferroelectric Memory (Ferroelectric Random Access Memory, FRAM), phase change Memory (PHASE CHANGE Memory, PCM), graphene Memory, and the like. Volatile memory can include random access memory (Random Access Memory, RAM) or external cache memory, and the like. By way of illustration, and not limitation, RAM can be in various forms such as static random access memory (Static Random Access Memory, SRAM) or dynamic random access memory (Dynamic Random Access Memory, DRAM), etc. The databases referred to in the embodiments provided herein may include at least one of a relational database and a non-relational database. The non-relational database may include, but is not limited to, a blockchain-based distributed database, and the like. The processor referred to in the embodiments provided in the present application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic unit, a data processing logic unit based on quantum computing, or the like, but is not limited thereto.
The technical features of the above embodiments may be arbitrarily combined, and all possible combinations of the technical features in the above embodiments are not described for brevity of description, however, as long as there is no contradiction between the combinations of the technical features, they should be considered as the scope of the description.
The foregoing examples illustrate only a few embodiments of the application and are described in detail herein without thereby limiting the scope of the application. It should be noted that it will be apparent to those skilled in the art that several variations and modifications can be made without departing from the spirit of the application, which are all within the scope of the application. Accordingly, the scope of the application should be assessed as that of the appended claims.
Claims (9)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202510961384.1A CN120499095B (en) | 2025-07-11 | 2025-07-11 | Data transmission method, device, equipment, storage medium and program product |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202510961384.1A CN120499095B (en) | 2025-07-11 | 2025-07-11 | Data transmission method, device, equipment, storage medium and program product |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN120499095A CN120499095A (en) | 2025-08-15 |
| CN120499095B true CN120499095B (en) | 2025-09-26 |
Family
ID=96669169
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202510961384.1A Active CN120499095B (en) | 2025-07-11 | 2025-07-11 | Data transmission method, device, equipment, storage medium and program product |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN120499095B (en) |
Citations (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN111585917A (en) * | 2020-06-10 | 2020-08-25 | 广州市品高软件股份有限公司 | Bare metal server network system and implementation method thereof |
| CN112286537A (en) * | 2020-10-23 | 2021-01-29 | 平安科技(深圳)有限公司 | Bare metal service delivery method, apparatus, computer equipment and storage medium |
Family Cites Families (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN114172853B (en) * | 2021-12-01 | 2024-04-16 | 阿里巴巴(中国)有限公司 | Configuration method and device of traffic forwarding and bare computer server |
| CN116155635A (en) * | 2022-12-30 | 2023-05-23 | 天翼云科技有限公司 | Public cloud multicast system, method, device, electronic equipment and storage medium |
| CN118590346B (en) * | 2024-06-25 | 2026-01-23 | 济南浪潮数据技术有限公司 | Network intercommunication method, device, computer equipment and storage medium |
| CN120256317A (en) * | 2025-05-30 | 2025-07-04 | 浙江曙光信息技术有限公司 | Test scenario coverage management method, device, equipment, medium and program product |
-
2025
- 2025-07-11 CN CN202510961384.1A patent/CN120499095B/en active Active
Patent Citations (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN111585917A (en) * | 2020-06-10 | 2020-08-25 | 广州市品高软件股份有限公司 | Bare metal server network system and implementation method thereof |
| CN112286537A (en) * | 2020-10-23 | 2021-01-29 | 平安科技(深圳)有限公司 | Bare metal service delivery method, apparatus, computer equipment and storage medium |
Also Published As
| Publication number | Publication date |
|---|---|
| CN120499095A (en) | 2025-08-15 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN111885075B (en) | Container communication method, device, network equipment and storage medium | |
| CN102124449B (en) | Method and system for low-overhead data transfer | |
| CN106789526B (en) | method and device for connecting multiple system networks | |
| CN111800326A (en) | Message transmission method and device, processing node and storage medium | |
| CN114501593B (en) | Network slice access method, device, system and storage medium | |
| CN113630275A (en) | Network intercommunication method, computing device and storage medium for virtual machine manager cluster | |
| CN109936641A (en) | Method, virtual switch and the distributed DNS system of domain name mapping | |
| CN116418724A (en) | Service access method, device and load balancing system | |
| CN114500171B (en) | Network system and message transmission method | |
| CN120499095B (en) | Data transmission method, device, equipment, storage medium and program product | |
| CN111130978B (en) | Network traffic forwarding method and device, electronic equipment and machine-readable storage medium | |
| EP3503484A1 (en) | Message transmission method, device and network system | |
| KR100423391B1 (en) | A Processing Method of the Distributed Forwarding Table in the High Speed Router | |
| CN114221895A (en) | Data transmission method, device and network equipment | |
| CN118474583A (en) | All-optical networking equipment management and control method, system, device, communication equipment, storage medium and computer program product | |
| CN106803804B (en) | Method and device for transmitting messages | |
| CN120034477B (en) | Multicast traffic forwarding method, device and computer equipment | |
| WO2023207278A1 (en) | Message processing method and apparatus | |
| CN120528866B (en) | Network communication establishment method, system and computer equipment | |
| CN119484273B (en) | Resource access method, apparatus, computer device, readable storage medium, and program product | |
| CN120956691B (en) | Public network traffic forwarding method, device, equipment and medium for cloud computing system | |
| CN116782280B (en) | Session establishment method, session establishment device, computer equipment and storage medium | |
| CN118432967B (en) | Network dialing method, device, computer equipment and storage medium | |
| CN119676309B (en) | Service communication method and service grid system | |
| CN108768704B (en) | Configuration updating method and device |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |