CN112929197A - Network communication method, device, equipment and storage medium - Google Patents
Network communication method, device, equipment and storage medium Download PDFInfo
- Publication number
- CN112929197A CN112929197A CN201911244821.9A CN201911244821A CN112929197A CN 112929197 A CN112929197 A CN 112929197A CN 201911244821 A CN201911244821 A CN 201911244821A CN 112929197 A CN112929197 A CN 112929197A
- Authority
- CN
- China
- Prior art keywords
- network
- virtual machine
- transmission
- transmission network
- detection information
- 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.)
- Pending
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/08—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
- H04L43/0852—Delays
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/06—Management of faults, events, alarms or notifications
- H04L41/0631—Management of faults, events, alarms or notifications using root cause analysis; using analysis of correlation between notifications, alarms or events based on decision criteria, e.g. hierarchy, tree or time analysis
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/10—Active monitoring, e.g. heartbeat, ping or trace-route
- H04L43/106—Active monitoring, e.g. heartbeat, ping or trace-route using time related information in packets, e.g. by adding timestamps
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/16—Threshold monitoring
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L45/00—Routing or path finding of packets in data switching networks
- H04L45/02—Topology update or discovery
- H04L45/06—Deflection routing, e.g. hot-potato routing
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L45/00—Routing or path finding of packets in data switching networks
- H04L45/58—Association of routers
- H04L45/586—Association of routers of virtual routers
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L45/00—Routing or path finding of packets in data switching networks
- H04L45/70—Routing based on monitoring results
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L47/00—Traffic control in data switching networks
- H04L47/10—Flow control; Congestion control
Abstract
The embodiment of the application discloses a network communication method, a device, equipment and a storage medium, wherein the method comprises the following steps: receiving network detection information sent by a master control virtual machine; determining the priority of a transmission network according to the network detection information, wherein the transmission network is a communication network with the master control virtual machine; and transmitting the state information to the master control virtual machine based on the transmission network with the highest priority. According to the technical scheme of the embodiment of the application, the message forwarding virtual machine determines the stability of each transmission network through network detection information, further determines the priority, selects the transmission network with the highest priority to send information to the master control virtual machine, optimizes the network communication scheme of the virtual router, avoids data loss and improves the reliability of communication.
Description
Technical Field
The embodiment of the application relates to the technical field of networks, in particular to a network communication method, a device, equipment and a storage medium.
Background
With the wide deployment of multi-core systems, clusters, grids and cloud computing in recent years, the virtualization Technology not only reduces Information Technology (IT) cost, deploys a special device integration service function on a common server, but also filters multiple layers of gateways and firewalls to prevent malicious attacks and traffic flooding, and also enhances system security and reliability.
In a product virtualized by a router, various types of board functions are implemented on virtual machines, a plurality of virtual machines (i.e., a plurality of boards) are connected and communicate with each other through a transmission network, and the quality of the communication network affects the stability of the product virtualized by the router. Referring to fig. 1, fig. 1 is a schematic diagram of network communication in the prior art, a network between virtual machines includes three transmission networks, where the transmission network 1 is used to automatically deploy the virtual machines, the transmission network 2 is a control message channel between the virtual machines, and the transmission network 3 is a detection message channel between the virtual machines and a cross-board data message channel; the virtual machine and the external network include three data networks. At present, only one fixed transmission network is arranged between virtual machines to transmit detection messages, such as the transmission network 3 in fig. 1, and a board-crossing data message is also transmitted through the transmission network, when a large number of detection messages and board-crossing data messages need to be transmitted, the transmission network is prone to blocking, which results in the loss of the detection messages between the virtual machines, and further, the main control virtual machine may not receive the detection messages of some message forwarding virtual machines within the detection time, which may cause the offline false reporting of the message forwarding virtual machines.
Disclosure of Invention
Embodiments of the present application provide a network communication method, apparatus, device, and storage medium to optimize a network communication scheme of a virtual router, avoid data loss, and improve reliability of communication.
In a first aspect, an embodiment of the present application provides a network communication method, including:
receiving network detection information sent by a master control virtual machine;
determining the priority of a transmission network according to the network detection information, wherein the transmission network is a communication network between the transmission network and the master control virtual machine;
and transmitting the state information to the master control virtual machine based on the transmission network with the highest priority.
In a second aspect, an embodiment of the present application further provides a network communication method, including:
sending network detection information to the message forwarding virtual machine;
and receiving state information transmitted by the message forwarding virtual machine based on a transmission network with the highest priority, wherein the transmission network with the highest priority is determined by the message forwarding virtual machine according to the network detection information, and the transmission network is a communication network between the message forwarding virtual machine and the transmission network.
In a third aspect, an embodiment of the present application further provides a network communication apparatus, including:
the detection information receiving module is used for receiving network detection information sent by the master control virtual machine;
the priority determining module is used for determining the priority of a transmission network according to the network detection information, wherein the transmission network is a communication network between the transmission network and the master control virtual machine;
and the state information transmission module is used for transmitting the state information to the master control virtual machine based on the transmission network with the highest priority.
In a fourth aspect, an embodiment of the present application further provides a network communication apparatus, including:
the detection information sending module is used for sending network detection information to the message forwarding virtual machine;
and the state information receiving module is used for receiving state information transmitted by the message forwarding virtual machine based on a transmission network with the highest priority, the transmission network with the highest priority is determined by the message forwarding virtual machine according to the network detection information, and the transmission network is a communication network between the message forwarding virtual machine and the transmission network.
In a fifth aspect, an embodiment of the present application further provides an apparatus, where the apparatus includes:
one or more processors;
storage means for storing one or more programs;
when executed by the one or more processors, cause the one or more processors to implement the network communication method of the first aspect, and/or the network communication method of the second aspect.
In a sixth aspect, the present application further provides a computer-readable storage medium, on which a computer program is stored, where the computer program is executed by a processor to implement the network communication method according to the first aspect and/or the network communication method according to the second aspect.
According to the method and the device, each message forwarding virtual machine in the virtual router receives network detection information sent by the main control virtual machine, determines the priority of a transmission network according to the network detection information, the transmission network is a communication network between the transmission network and the main control virtual machine, and transmits state information to the main control virtual machine based on the transmission network with the highest priority. According to the technical scheme of the embodiment of the application, the message forwarding virtual machine determines the stability of each transmission network through network detection information, further determines the priority, selects the transmission network with the highest priority to send information to the master control virtual machine, optimizes the network communication scheme of the virtual router, avoids data loss and improves the reliability of communication.
Drawings
Fig. 1 is a schematic diagram of a network communication in the prior art;
fig. 2 is a flowchart of a network communication method provided in an embodiment of the present application;
fig. 3 is a schematic diagram of network communication provided in an embodiment of the present application;
fig. 4 is a flow chart of another network communication method provided in an embodiment of the present application;
fig. 5 is a schematic structural diagram of a network communication device provided in an embodiment of the present application;
fig. 6 is a schematic structural diagram of another network communication device provided in the embodiment of the present application;
fig. 7 is a schematic structural diagram of an apparatus provided in an embodiment of the present application.
Detailed Description
The present application will be described in further detail with reference to the following drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the application and are not limiting of the application. It should be further noted that, for the convenience of description, only some of the structures related to the present application are shown in the drawings, not all of the structures.
Fig. 2 is a flowchart of a network communication method provided in this embodiment, where this embodiment is applicable to a case where network communication is implemented in a virtual router, and the method may be executed by a network communication device, where the device may be implemented in a software and/or hardware manner, and the device may be configured in a device. As shown in fig. 2, the method in this embodiment is applied to a message forwarding virtual machine, and the method may specifically include:
and S110, receiving network detection information sent by the master control virtual machine.
The main control virtual machine, also called a Management Process Unit (MPU), is the main control in the virtual router. A set of virtual routers may include a main control virtual machine and a plurality of Packet Forwarding virtual machines, where the Packet Forwarding virtual machines are also called Packet Forwarding Units (PFUs) or line cards, and may include single boards such as Data Processors (DPs), Load Balance (LB), and physical operations (PPs) according to different types.
Specifically, receiving the network detection information sent by the master virtual machine may include: and receiving network detection information sent by the master control virtual machine through each transmission network, wherein the number of the transmission networks is at least two. The transmission network is a communication network between the message forwarding virtual machine and the main Control virtual machine, and the transmission network may transmit information based on a Multiple Access Control (MAC) Protocol or an Internet Protocol (Internet Protocol) Protocol, which is described in this embodiment by taking the MAC Protocol as an example. The network detection information is used for stability detection of the transmission network.
And S120, determining the priority of a transmission network according to the network detection information, wherein the transmission network is a communication network between the transmission network and the main control virtual machine.
The network detection information may be a network stability detection packet, the network detection information may include a timestamp and a label of the transmission network, the label of the transmission network is used to distinguish different transmission networks, and a representation manner of the specific label is not limited in this embodiment, for example, the label of the transmission network may be represented by a number or a letter.
For example, the message format of the network stability detection message may be "fa 163 e 4631 d2 fa 163 e 20f 1888088 ab cd dc ba ff 0f 00000000000000000000311000000000000000000000000000000000000000000000000000000000000000000000000000000 d 985 a 326453 d", where "fa 163 e 4631 d2 fa 163 e 20f 1888088" is an Ethernet (Ethernet) header, including a destination MAC, a source MAC and a type; "ab cd dc ba ff f0f 000000000000000000003" is a Media header, "ab cd dc ba" represents Checksum (Checksum), and the value is fixed, "0000" represents a slot number of the master virtual machine, "f 0f 0" represents private data, f0f0 is a board detection message, "0000" represents a length of a cache header space (Prelen), a reserved field, not filled, "0000" represents field values such as a slice offset/padding field/flag (offset/pad/flag), a reserved field, not filled, "000000000000" represents ID, a reserved field, not filled, "0003" represents instance ID (Instid), and an MD thread instance number of the board, the value is related to the number of virtual cores of the virtual machine, the number of virtual cores is different, and the corresponding value of Instid is different.
Further, "11000000000000000000000000000000000000000000000000000000000000000000000000000000 d 985 a 326453 d" is a structure (MSG) header, where "11" represents a label of the transport network, 11 represents the transport network 1, "00" represents a sequence number (Res), i.e., the number of messages sent, "000000000000000000000000000000000000000000000000000000000000000000000000" represents a board information field, the network stability check message does not need to be filled, and is set to 0, and "0000 d 985 a 326453 d" represents a timestamp. In the above network stability detection message, the important concern in the present embodiment is the marking and time stamping of the transmission network.
Specifically, determining the priority of the transmission network according to the network detection information may include: determining the transmission time delay of each transmission network according to the time stamp in the network detection information and the mark of the transmission network; the priority of each transport network is determined based on the transmission delay. And determining the transmission time delay of each transmission network according to the timestamp and the mark of the transmission network in the network detection information received in the set time period, and further determining the average time delay in the set time period. In this embodiment, the priority of each transmission network may be determined according to the transmission delay or the average delay, both the transmission delay and the average delay are inversely proportional to the priority of the transmission network, and the smaller the transmission delay or the average delay, the higher the priority of the transmission network. The smaller the delay, the higher the stability of the transmission network.
Further, determining the priority of each transport network based on the transport delay may include: sorting the transmission network from small to large according to the transmission delay to obtain a sorting result; and setting the priority of the transmission network from high to low according to the sequencing result. For example, the transmission networks are the transmission network 1, the transmission network 2, and the transmission network 3 according to the sorting result of sorting the transmission delays from small to large, and the transmission networks 1, the transmission network 2, and the transmission network 3 are the transmission networks from high to low in priority.
And S130, transmitting the state information to the master control virtual machine based on the transmission network with the highest priority.
Specifically, after the priority of the transmission network is determined, when the message forwarding virtual machine is online, the state information of the message forwarding virtual machine is transmitted to the master virtual machine based on the transmission network with the highest priority. And then, the message forwarding virtual machine can send state information to the main control virtual machine at regular time to inform that the local machine is online. The state information may be a single board detection message.
Referring to fig. 3, fig. 3 is a schematic diagram of network communication provided in an embodiment of the present application, and fig. 3 is merely an example. The transmission network between the message forwarding virtual machine 1 and the master virtual machine is a transmission network 1, a transmission network 2 and a transmission network 3 in sequence from high to low according to priority, and the message forwarding virtual machine 1 transmits the state information of the machine through the transmission network 1; the transmission network between the message forwarding virtual machine 2 and the master virtual machine is a transmission network 2, a transmission network 1 and a transmission network 3 in sequence from high to low according to priority, and the message forwarding virtual machine 1 transmits the state information of the machine through the transmission network 2; the transmission network with the highest priority between the message forwarding virtual machine 3 and the master virtual machine is the transmission network 3, and the message forwarding virtual machine 1 transmits the state information of the machine through the transmission network 3; the transmission network with the highest priority between the message forwarding virtual machine 4 and the master virtual machine is the transmission network 1, and the message forwarding virtual machine 4 transmits the state information of the machine through the transmission network 1.
In addition, the network communication method in this embodiment may further include: and if the transmission network with the highest priority is determined to be blocked, sending alarm information to the user. Specifically, whether the transmission network is blocked is judged by judging whether the transmission delay of the transmission network with the highest priority is larger than a set delay threshold. If the transmission delay is greater than the set delay threshold, determining that the transmission network with the highest priority is blocked, and indicating that all transmission networks are blocked, so that an alarm message needs to be sent to a user to prompt the user to check the transmission network. If the transmission delay is less than or equal to the set delay threshold, the transmission network is not blocked. The time delay threshold may be set according to an actual situation, and is not limited in this embodiment. The alarm information includes the mark of the transmission network with the highest priority and the current transmission delay.
In the technical scheme of this embodiment, each message forwarding virtual machine in the virtual router receives network detection information sent by the master virtual machine, determines the priority of a transmission network according to the network detection information, where the transmission network is a communication network with the master virtual machine, and transmits state information to the master virtual machine based on the transmission network with the highest priority. In the embodiment of the application, the message forwarding virtual machine determines the stability of each transmission network through network detection information, further determines the priority, selects the transmission network with the highest priority to send information to the master control virtual machine, optimizes the network communication scheme of the virtual router, avoids data loss and improves the reliability of communication; and when the transmission network is blocked, the alarm can be improved for the user to carry out detection and maintenance, and the reliability of network communication is further improved.
Fig. 4 is a flowchart of another network communication method provided in the embodiment of the present application. The present embodiment specifically describes the network communication method on the basis of the above embodiments. Correspondingly, as shown in fig. 4, the method in this embodiment is applied to a master virtual machine in a virtual router, and the method may specifically include:
s210, sending network detection information to the message forwarding virtual machine.
The number of the message forwarding virtual machines may be at least one, and is generally multiple.
The master control virtual machine may send network detection information to each message forwarding virtual machine through each transmission network according to a set time interval, so that each message forwarding virtual machine determines a transmission network with the highest priority according to the network detection information. The specific value of the set time interval is not limited in this embodiment, and may be set according to actual conditions. The network detection information may be a network stability detection packet, which is used for performing stability detection of the transmission network. The number of transmission networks between the master virtual machine and each message forwarding virtual machine can be at least two.
S220, receiving state information transmitted by the message forwarding virtual machine based on the transmission network with the highest priority, wherein the transmission network with the highest priority is determined by the message forwarding virtual machine according to the network detection information, and the transmission network is a communication network between the message forwarding virtual machine and the transmission network.
The master virtual machine may receive state information transmitted by each message forwarding virtual machine based on a transmission network with the highest determined priority, and the transmission networks with the highest determined priorities of different message forwarding virtual machines may be the same or different, as shown in fig. 3, the transmission networks with the highest priorities corresponding to the message forwarding virtual machine 1, the message forwarding virtual machine 2, and the message forwarding virtual machine 3 are all different, and the transmission networks with the highest priorities corresponding to the message forwarding virtual machine 1 and the message forwarding virtual machine 4 are the same.
When a message forwarding virtual machine is online, the state information of the message forwarding virtual machine can be transmitted to the master virtual machine based on the transmission network with the highest priority. After receiving the state information, the main control virtual machine may send a broadcast (Report) message to all the online other message forwarding virtual machines to notify that one message forwarding virtual machine is online. And then, the message forwarding virtual machine can send state information to the main control virtual machine at regular time to inform that the local machine is online. If the master control virtual machine does not receive the state information of the message forwarding virtual machine within the detection time, determining that the message forwarding virtual machine is offline, sending a broadcast (Report) message to all online other message forwarding virtual machines, and informing that one message forwarding virtual machine is offline. The state information may be a single board detection message.
According to the technical scheme provided by the embodiment of the application, the main control virtual machine in the virtual router sends network detection information to the message forwarding virtual machine and receives state information transmitted by the message forwarding virtual machine based on a transmission network with the highest priority. According to the technical scheme of the embodiment of the application, the master control virtual machine sends the network detection information to each message forwarding virtual machine, so that each message forwarding virtual machine can determine the stability of each transmission network, further determine the priority, select the transmission network with the highest priority to send the information to the master control virtual machine, the network communication scheme of the virtual router is optimized, data loss is avoided, and the reliability of communication is improved.
Fig. 5 is a schematic structural diagram of a network communication device provided in this embodiment, which is applicable to a case where network communication is implemented in a virtual router. The network communication device provided by the embodiment of the application can be configured in a message forwarding virtual machine in a virtual router, can execute the network communication method provided by the embodiment of the application, and has the corresponding functional modules and beneficial effects of the execution method.
The apparatus specifically includes a detection information receiving module 310, a priority determining module 320, and a status information transmitting module 330, where:
a detection information receiving module 310, configured to receive network detection information sent by a master virtual machine;
a priority determining module 320, configured to determine a priority of a transmission network according to the network detection information, where the transmission network is a communication network with the master virtual machine;
and the state information transmission module 330 is configured to transmit the state information to the master virtual machine based on the transmission network with the highest priority.
According to the method and the device, each message forwarding virtual machine in the virtual router receives network detection information sent by the main control virtual machine, determines the priority of a transmission network according to the network detection information, the transmission network is a communication network between the transmission network and the main control virtual machine, and transmits state information to the main control virtual machine based on the transmission network with the highest priority. According to the technical scheme of the embodiment of the application, the message forwarding virtual machine determines the stability of each transmission network through network detection information, further determines the priority, selects the transmission network with the highest priority to send information to the master control virtual machine, optimizes the network communication scheme of the virtual router, avoids data loss and improves the reliability of communication.
Further, the detection information receiving module 310 is specifically configured to:
and receiving network detection information sent by the master control virtual machine through each transmission network, wherein the number of the transmission networks is at least two.
Further, the priority determining module 320 includes:
the time delay unit is used for determining the transmission time delay of each transmission network according to the time stamp in the network detection information and the mark of the transmission network;
and the priority unit is used for determining the priority of each transmission network based on the transmission time delay.
Further, the priority unit is specifically configured to:
sorting the transmission network from small to large according to the transmission delay to obtain a sorting result;
and setting the priority of the transmission network from high to low according to the sequencing result.
Further, the apparatus further comprises:
and the alarm module is used for sending alarm information to the user if the transmission network with the highest priority is determined to be blocked.
The network communication device provided by the embodiment of the application can execute the network communication method provided by the embodiment of the application, and has corresponding functional modules and beneficial effects of the execution method.
Fig. 6 is a schematic structural diagram of another network communication device provided in this embodiment, which is applicable to a case where network communication is implemented in a virtual router. The network communication device provided by the embodiment of the application can be configured in the master control virtual machine in the virtual router, can execute the network communication method provided by the embodiment of the application, and has the corresponding functional modules and beneficial effects of the execution method.
The apparatus specifically includes a detection information sending module 410 and a status information receiving module 420, wherein:
a detection information sending module 410, configured to send network detection information to the message forwarding virtual machine;
and the state information receiving module 420 is configured to receive state information transmitted by the message forwarding virtual machine based on a transmission network with the highest priority, where the transmission network with the highest priority is determined by the message forwarding virtual machine according to the network detection information, and the transmission network is a communication network with the message forwarding virtual machine.
The network communication device provided by the embodiment of the application can execute the network communication method provided by the embodiment of the application, and has corresponding functional modules and beneficial effects of the execution method.
Fig. 7 is a schematic structural diagram of an apparatus provided in an embodiment of the present application. FIG. 7 illustrates a block diagram of an exemplary device 412 suitable for use in implementing embodiments of the present application. The device 412 shown in fig. 7 is only an example and should not bring any limitations to the functionality or scope of use of the embodiments of the present application.
As shown in fig. 7, the device 412 is in the form of a general purpose device. The components of device 412 may include, but are not limited to: one or more processors 416, a storage device 428, and a bus 418 that couples the various system components including the storage device 428 and the processors 416.
A program/utility 440 having a set (at least one) of program modules 442 may be stored, for instance, in storage 428, such program modules 442 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which examples or some combination thereof may comprise an implementation of a network environment. The program modules 442 generally perform the functions and/or methods of the embodiments described herein.
The device 412 may also communicate with one or more external devices 414 (e.g., keyboard, pointing terminal, display 424, etc.), with one or more terminals that enable a user to interact with the device 412, and/or with any terminals (e.g., network card, modem, etc.) that enable the device 412 to communicate with one or more other computing terminals. Such communication may occur via input/output (I/O) interfaces 422. Further, the device 412 may also communicate with one or more networks (e.g., a Local Area Network (LAN), Wide Area Network (WAN), and/or a public Network, such as the internet) via the Network adapter 420. As shown in FIG. 7, network adapter 420 communicates with the other modules of device 412 via bus 418. It should be appreciated that although not shown in the figures, other hardware and/or software modules may be used in conjunction with the device 412, including but not limited to: microcode, end drives, Redundant processors, external disk drive Arrays, RAID (Redundant Arrays of Independent Disks) systems, tape drives, and data backup storage systems, among others.
The processor 416 executes various functional applications and data processing by executing programs stored in the storage device 428, for example, implementing a network communication method provided by the embodiment of the present application, the method including:
receiving network detection information sent by a master control virtual machine;
determining the priority of a transmission network according to the network detection information, wherein the transmission network is a communication network with the master control virtual machine;
and transmitting the state information to the master control virtual machine based on the transmission network with the highest priority.
And/or, implementing the network communication method provided by the embodiment of the application, the method includes:
sending network detection information to the message forwarding virtual machine;
and receiving state information transmitted by the message forwarding virtual machine based on the transmission network with the highest priority, wherein the transmission network with the highest priority is determined by the message forwarding virtual machine according to the network detection information, and the transmission network is a communication network between the message forwarding virtual machine and the transmission network.
An embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements a network communication method provided in an embodiment of the present application, where the method includes:
receiving network detection information sent by a master control virtual machine;
determining the priority of a transmission network according to the network detection information, wherein the transmission network is a communication network with the master control virtual machine;
and transmitting the state information to the master control virtual machine based on the transmission network with the highest priority.
And/or, implementing the network communication method provided by the embodiment of the application, the method includes:
sending network detection information to the message forwarding virtual machine;
and receiving state information transmitted by the message forwarding virtual machine based on the transmission network with the highest priority, wherein the transmission network with the highest priority is determined by the message forwarding virtual machine according to the network detection information, and the transmission network is a communication network between the message forwarding virtual machine and the transmission network.
The computer storage media of the embodiments of the present application may take any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for aspects of the present application may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + +, and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or terminal. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present application and the technical principles employed. It will be understood by those skilled in the art that the present application is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the application. Therefore, although the present application has been described in more detail with reference to the above embodiments, the present application is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present application, and the scope of the present application is determined by the scope of the appended claims.
Claims (10)
1. A network communication method, comprising:
receiving network detection information sent by a master control virtual machine;
determining the priority of a transmission network according to the network detection information, wherein the transmission network is a communication network between the transmission network and the master control virtual machine;
and transmitting the state information to the master control virtual machine based on the transmission network with the highest priority.
2. The method according to claim 1, wherein the receiving network detection information sent by the master virtual machine includes:
and receiving network detection information sent by the main control virtual machine through each transmission network, wherein the number of the transmission networks is at least two.
3. The method of claim 1, wherein determining the priority of the transport network based on the network detection information comprises:
determining the transmission time delay of each transmission network according to the time stamp in the network detection information and the mark of the transmission network;
determining a priority for each of the transport networks based on the transmission delay.
4. The method of claim 3, wherein determining the priority of each of the transport networks based on the transmission delay comprises:
sequencing the transmission network from small to large according to the transmission delay to obtain a sequencing result;
and setting the priority of the transmission network from high to low according to the sequencing result.
5. The method of claim 1, further comprising:
and if the transmission network with the highest priority is determined to be blocked, sending alarm information to the user.
6. A network communication method, comprising:
sending network detection information to the message forwarding virtual machine;
and receiving state information transmitted by the message forwarding virtual machine based on a transmission network with the highest priority, wherein the transmission network with the highest priority is determined by the message forwarding virtual machine according to the network detection information, and the transmission network is a communication network between the message forwarding virtual machine and the transmission network.
7. A network communication apparatus, comprising:
the detection information receiving module is used for receiving network detection information sent by the master control virtual machine;
the priority determining module is used for determining the priority of a transmission network according to the network detection information, wherein the transmission network is a communication network between the transmission network and the master control virtual machine;
and the state information transmission module is used for transmitting the state information to the master control virtual machine based on the transmission network with the highest priority.
8. A network communication apparatus, comprising:
the detection information sending module is used for sending network detection information to the message forwarding virtual machine;
and the state information receiving module is used for receiving state information transmitted by the message forwarding virtual machine based on a transmission network with the highest priority, the transmission network with the highest priority is determined by the message forwarding virtual machine according to the network detection information, and the transmission network is a communication network between the message forwarding virtual machine and the transmission network.
9. An apparatus, characterized in that the apparatus comprises:
one or more processors;
storage means for storing one or more programs;
when executed by the one or more processors, cause the one or more processors to implement the network communication method of any of claims 1-5, and/or the network communication method of claim 6.
10. A computer-readable storage medium, on which a computer program is stored, which program, when being executed by a processor, is adapted to carry out the network communication method of any one of claims 1 to 5 and/or the network communication method of claim 6.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911244821.9A CN112929197A (en) | 2019-12-06 | 2019-12-06 | Network communication method, device, equipment and storage medium |
PCT/CN2020/129147 WO2021109851A1 (en) | 2019-12-06 | 2020-11-16 | Network communication method, apparatus and device, and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911244821.9A CN112929197A (en) | 2019-12-06 | 2019-12-06 | Network communication method, device, equipment and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN112929197A true CN112929197A (en) | 2021-06-08 |
Family
ID=76161942
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201911244821.9A Pending CN112929197A (en) | 2019-12-06 | 2019-12-06 | Network communication method, device, equipment and storage medium |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN112929197A (en) |
WO (1) | WO2021109851A1 (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113923253A (en) * | 2021-10-12 | 2022-01-11 | 西安万像电子科技有限公司 | Virtual machine image transmission method, electronic equipment and storage medium |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2009001153A1 (en) * | 2007-06-28 | 2008-12-31 | Nokia Corporation | Memory protection unit in a virtual processing environment |
WO2014020752A1 (en) * | 2012-08-03 | 2014-02-06 | 株式会社日立製作所 | Server computer and server computation method |
EP3158435A1 (en) * | 2014-06-17 | 2017-04-26 | Nokia Solutions and Networks Oy | Methods and apparatus to control a virtual machine |
CN107517119B (en) * | 2016-06-17 | 2021-02-26 | 阿里巴巴集团控股有限公司 | Virtual network detection method and device in VPC environment |
CN107996023B (en) * | 2016-11-23 | 2020-04-28 | 华为技术有限公司 | Method and equipment for monitoring virtual network and virtual network system |
-
2019
- 2019-12-06 CN CN201911244821.9A patent/CN112929197A/en active Pending
-
2020
- 2020-11-16 WO PCT/CN2020/129147 patent/WO2021109851A1/en active Application Filing
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113923253A (en) * | 2021-10-12 | 2022-01-11 | 西安万像电子科技有限公司 | Virtual machine image transmission method, electronic equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
WO2021109851A1 (en) | 2021-06-10 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9313088B2 (en) | Network system and network managing method | |
JP6814041B2 (en) | Methods, systems, and computer programs for processing data packets | |
CN107005484B (en) | Method and network device for adaptive data packet routing | |
CN111818136B (en) | Data processing method, device, electronic equipment and computer readable medium | |
EP3166275A1 (en) | Packet control method, switch and controller | |
CN113326228B (en) | Message forwarding method, device and equipment based on remote direct data storage | |
CN103929334A (en) | Network abnormity notification method and apparatus | |
CN107800663B (en) | Method and device for detecting flow offline file | |
CN112737871B (en) | Link fault detection method and device, computer equipment and storage medium | |
CN110740072A (en) | fault detection method, device and related equipment | |
CN110011941B (en) | Message forwarding method and device | |
CN111130821B (en) | Power failure alarm method, processing method and device | |
US8948020B2 (en) | Detecting and isolating dropped or out-of-order packets in communication networks | |
US9720755B2 (en) | Information processing device | |
CN107896196B (en) | Method and device for distributing messages | |
CN112929197A (en) | Network communication method, device, equipment and storage medium | |
US8108736B2 (en) | Multi-partition computer system, failure handling method and program therefor | |
US20080002586A1 (en) | End-point based tamper resistant congestion management | |
CN111835801A (en) | File downloading method, device, server, edge device, terminal and medium | |
CN106533882B (en) | Message processing method and device | |
CN112351050A (en) | Method, device, communication equipment and storage medium for mirroring data stream | |
CN113672416B (en) | Method and device for positioning cause of hard buffer leakage | |
CN112003796B (en) | Broadcast message processing method, system, equipment and computer storage medium | |
CN111556043B (en) | Message processing method, device, system, equipment and readable storage medium | |
US20130179537A1 (en) | Transmitting of configuration items within a network |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
WD01 | Invention patent application deemed withdrawn after publication | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20210608 |