CN104508632A - Data forwarding method, device and system - Google Patents

Data forwarding method, device and system Download PDF

Info

Publication number
CN104508632A
CN104508632A CN201380001388.0A CN201380001388A CN104508632A CN 104508632 A CN104508632 A CN 104508632A CN 201380001388 A CN201380001388 A CN 201380001388A CN 104508632 A CN104508632 A CN 104508632A
Authority
CN
China
Prior art keywords
announcement information
virtual machine
packet
network equipment
memory address
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.)
Granted
Application number
CN201380001388.0A
Other languages
Chinese (zh)
Other versions
CN104508632B (en
Inventor
张逢喆
吴红宁
段小祥
刘相斌
藏洪永
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Publication of CN104508632A publication Critical patent/CN104508632A/en
Application granted granted Critical
Publication of CN104508632B publication Critical patent/CN104508632B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The present invention relates to the technical field of communications, solves the problem that the loss is great when an application in a virtual machine communicates with a physical machine. Provided are a data forwarding method, device and system. The method specifically comprises: a host receives first notification information sent by network equipment, the first notification information comprising a memory address of a packet of the network equipment stored in a memory; according to a mapping table of the relationship between a logical channel number and a communication entity, a virtual machine that communicates with the network equipment is obtained, the logical channel number being a logical channel number that the network equipment communicates with the virtual machine; according to the first notification information, second notification information is obtained, the second notification information comprising the logical channel number and the memory address of the packet; and the second notification information is sent to the virtual machine, so that the virtual machine obtains the packet according to the memory address of the packet, the virtual machine receiving the second notification information through a connection module on the virtual machine. The present invention is used in data transmission.

Description

DATA FORWARDING METHOD, DEVICE AND SYSTEM
A kind of data forwarding method, apparatus and system technical field
The present invention relates to communication technique field, more particularly to a kind of data forwarding method, apparatus and system.Background technology
Virtualization technology(Virtualization the multiple virtual machines of generation) are simulated on a physical computer using software engineering(Virtual Machine, abbreviation VM), each VM can as physical computer installation operation system, application software is installed, various programs are run.Multiple VM can be run on a physical computer simultaneously, and other side is not perceived from each other, is isolated from each other, can only be communicated with one another by network, the same just as two physical computers.Multiple VM performance summation is no more than the physical computer where it.
In virtualization technology, multiple VM software is simulated on a physical computer virtual monitor device(Virtual Machine Monitor, abbreviation VMM).Because the property that virtual technology introduces the application program of operation in this intermediate layer of VMM, VM is different, the performance loss brought is virtualized also different.The application program of a large amount of CPU computings is carried out, its run time behaviour loss in VM is smaller.A large amount of input/output are carried out with the external world(Input/Output, abbreviation I/O) communication application program(Such as network communication or disk read-write), its in VM run time behaviour loss it is larger.Because virtualization technology can bring more preferable integrated cost advantage, wireless telecommunications industry starts to use virtualization technology on a large scale.But in wireless telecommunications system, application program generally requires to carry out substantial amounts of network communication, there is substantial amounts of data throughput, therefore runnability of the application program in VM can decline to a great extent.
It is the cooperation using standard Virtual I/O communication mechanisms by communication two ends inside and outside VM in the prior art, the exchange of data is realized with efficient interface, the simulation process for simplifying virtual hardware reduces the loss of I/O processes.But although this scheme reduces loss, but it is lost still very big.Quote single I/O virtualizations again in the prior art(Single Root I/O Virtualization, abbreviation SR-IOV) hardware leads directly to technology by physical computer On hardware directly give VM using rather than by VMM fictionalize Lai virtual hardware.Driver in this technology in VM can directly drive physical network card, carry out transmitting-receiving package operation.VM has directly bypassed VMM pilot process using physical hardware so that performance loss minimizes.But it is due to that VM needs to perceive different physical hardwares, for the different corresponding drivers of hardware installation, VM is also required to together change when HardwareUpgring or change, exploitation, maintenance, deployment to VM etc. produce considerable influence, so that operating efficiency is reduced, practical operation is got up also cumbersome.The content of the invention
Embodiments of the invention provide a kind of data forwarding method, apparatus and system, solve when the application program in virtual machine communicates with physical machine and big problem is lost, while operating efficiency is improved, it is easy to operate.
To reach above-mentioned purpose, embodiments of the invention are adopted the following technical scheme that:
First aspect there is provided a kind of data forwarding method, including:
Main frame receives the first announcement information that the network equipment is sent;Wherein, first announcement information includes the memory address for the packet that the network equipment is stored in internal memory;
Virtual machine with the network device communications is obtained according to the relation mapping table of logical channel number (LCN) and communication entity;Wherein, the logical channel number (LCN) is the logical channel number (LCN) that the network equipment communicates with the virtual machine;
Second announcement information is obtained according to first announcement information;Wherein, second announcement information includes the memory address of the logical channel number (LCN) and the packet;
Second announcement information is sent to the virtual machine, in order to which the virtual machine obtains the packet according to the memory address of the packet;Wherein, the virtual machine is to receive second announcement information by the link block on the virtual machine.
In the first possible implementation, with reference in a first aspect, it is described according to first announcement information obtain the second announcement information, including:
Parse the memory address that first announcement information obtains the packet;
The form of the memory address of the packet is converted into canonical form;
According to the memory address and the logical channel of the packet for being converted to canonical form Number obtain second announcement information.
In second of possible implementation, with reference to first aspect or the first possible implementation,
The memory address of packet in second announcement information exists in a standard;Wherein, the canonical form refers to the advance form arranged with the virtual machine.
In the third possible implementation, with reference to first aspect or the first possible implementation,
The relation mapping table of the logical channel number (LCN) and communication entity can carry out real-time update according to the change of communication entity.
In the 4th kind of possible implementation, with reference to first aspect or the first possible implementation,
The interface of the first announcement information transmission data is according to the different and different of the network equipment;
The form of the interface of the second announcement information transmission data is the canonical form.Second aspect there is provided a kind of data forwarding method, including:
Virtual machine receives the second announcement information that the main frame is sent by the link block on the virtual machine;Wherein, second announcement information is obtained according to the first announcement information, includes the memory address of the logical channel number (LCN) that is communicated with the virtual machine of the network equipment and packet;First announcement information is that the network equipment sends to the main frame, including the network equipment and is stored in the memory address of the packet in internal memory;
The packet is obtained in internal memory according to the memory address of the packet.
In the first possible implementation, with reference to second aspect,
The memory address of packet in second announcement information exists in a standard;Wherein, the canonical form refers to the advance form arranged with the virtual machine.
In second of possible implementation, with reference to second aspect,
The interface of the first announcement information transmission data is according to the different and different of the network equipment;
The form of the interface of the second announcement information transmission data is the canonical form.The third aspect there is provided data forwarding method, including: Main frame receives the second announcement information that virtual machine is sent;Wherein, second announcement information includes logical channel number (LCN) and the virtual machine is stored in the memory address of the packet in internal memory;The logical channel number (LCN) is the logical channel number (LCN) of the virtual machine and network device communications;The virtual machine is to send second announcement information by the link block on the virtual machine;
The network equipment communicated with the virtual machine is obtained with the relation mapping table of communication entity according to the logical channel number (LCN);
First announcement information is obtained according to second announcement information;Wherein, first announcement information includes the memory address of the packet;
First announcement information is sent to the network equipment, in order to which the network equipment obtains the packet according to the memory address of the packet.
It is described that first announcement information is obtained according to second announcement information with reference to the third aspect in the first possible implementation, including:
Parse the memory address that second announcement information obtains the packet;
The form of the memory address of the datagram is converted into the form that the network equipment can be recognized;
First announcement information is obtained according to the memory address of the packet of conversion.In second of possible implementation, with reference to the third aspect or the first possible implementation,
The memory address of packet in second announcement information exists in a standard;Wherein, the canonical form refers to the advance form arranged with the virtual machine.
In the third possible implementation, with reference to the third aspect or the first possible implementation,
The relation mapping table of the logical channel number (LCN) and communication entity can carry out real-time update according to the change of communication entity.
In the 4th kind of possible implementation, with reference to the third aspect or the first possible implementation,
The interface of the first announcement information transmission data is according to the different and different of the network equipment; The form of the interface of the second announcement information transmission data is the canonical form.Fourth aspect there is provided a kind of data forwarding method, including:
Virtual machine data storage bag is into internal memory;
Second announcement information is sent to main frame by the link block on the virtual machine, in order to which the main frame obtains the first announcement information according to second announcement information, and transmission to the network equipment causes the network equipment to obtain the packet according to first announcement information;Wherein, second announcement information includes the memory address of logical channel number (LCN) that the network equipment communicates with the virtual machine and packet.
In the first possible implementation, with reference to fourth aspect,
The memory address of packet in second announcement information exists in a standard;Wherein, the canonical form refers to the advance form arranged with the virtual machine.
In second of possible implementation, with reference to fourth aspect,
The interface of the first announcement information transmission data is according to the different and different of the network equipment;
The form of the interface of the second announcement information transmission data is the canonical form.There is provided a kind of main frame in terms of 5th, including:
Receiving unit, the first announcement information for receiving network equipment transmission;Wherein, first announcement information includes the memory address for the packet that the network equipment is stored in internal memory;
Acquiring unit, for obtaining the virtual machine with the network device communications according to the relation mapping table of logical channel number (LCN) and communication entity;Wherein, the logical channel number (LCN) is the logical channel number (LCN) that the network equipment communicates with the virtual machine;
The acquiring unit, first announcement information for being additionally operable to be received according to the receiving unit obtains the second announcement information;Wherein, second announcement information includes the memory address of the logical channel number (LCN) and the packet;
Transmitting element, for sending second announcement information that the acquiring unit gets to the virtual machine, in order to which the virtual machine obtains the packet according to the memory address of the packet;Wherein, the virtual machine is to receive second announcement information by the link block on the virtual machine. In the first possible implementation, with reference to the 5th aspect, the acquiring unit includes:
Parsing module, the memory address of the packet is obtained for parsing first announcement information;
Modular converter, the form for the memory address for the packet for obtaining the parsing module is converted to canonical form;
Acquisition module, for the memory address and logical channel number (LCN) acquisition second announcement information of the packet that canonical form is converted to according to the modular converter.
In second of possible implementation, with reference to the 5th aspect or the first possible implementation,
The memory address of packet in second announcement information exists in a standard;Wherein, the canonical form refers to the advance form arranged with the virtual machine.
In the third possible implementation, with reference to the 5th aspect or the first possible implementation,
The relation mapping table of the logical channel number (LCN) and communication entity can carry out real-time update according to the change of communication entity.
In the 4th kind of possible implementation, with reference to the 5th aspect or the first possible implementation,
The interface of the first announcement information transmission data is according to the different and different of the network equipment;
The form of the interface of the second announcement information transmission data is the canonical form.There is provided a kind of virtual machine in terms of 6th, including:
Receiving unit, for receiving the second announcement information that the main frame is sent by the link block on the virtual machine;Wherein, second announcement information is obtained according to the first announcement information, includes the memory address of the logical channel number (LCN) that is communicated with the virtual machine of the network equipment and packet;First announcement information is that the network equipment sends to the main frame, including the network equipment and is stored in the memory address of the packet in internal memory;
Acquiring unit, the memory address of the packet for being received according to the receiving unit obtains the packet in internal memory. In the first possible implementation, with reference to the 6th aspect,
The memory address of packet in second announcement information exists in a standard;Wherein, the canonical form refers to the advance form arranged with the virtual machine.
In second of possible implementation, with reference to the 6th aspect,
The interface of the first announcement information transmission data is according to the different and different of the network equipment;
The form of the interface of the second announcement information transmission data is the canonical form.There is provided a kind of main frame in terms of 7th, including:
Receiving unit, the second announcement information for receiving virtual machine transmission;Wherein, second announcement information includes logical channel number (LCN) and the virtual machine is stored in the memory address of the packet in internal memory;The logical channel number (LCN) is the logical channel number (LCN) of the virtual machine and network device communications;The virtual machine is to send second announcement information by the link block on the virtual machine;
Acquiring unit, for obtaining the network equipment communicated with the virtual machine with the relation mapping table of communication entity according to the logical channel number (LCN);
The acquiring unit, second announcement information for being additionally operable to be received according to the receiving unit obtains the first announcement information;Wherein, first announcement information includes the memory address of the packet;
Transmitting element, for sending the network equipment that first announcement information to the acquiring unit is obtained, in order to which the network equipment obtains the packet according to the memory address of the packet.
In the first possible implementation, with reference to the 7th aspect, the acquiring unit includes:
Parsing module, the memory address of the packet is obtained for parsing second announcement information;
Modular converter, the form for the memory address for the datagram for obtaining the parsing module is converted to the form that the network equipment can be recognized;
Acquisition module, the memory address of the packet for being changed according to the modular converter obtains first announcement information. In second of possible implementation, with reference to the 7th aspect or the first possible implementation,
The memory address of packet in second announcement information exists in a standard;Wherein, the canonical form refers to the advance form arranged with the virtual machine.
In the third possible implementation, with reference to the 7th aspect or the first possible implementation,
The relation mapping table of the logical channel number (LCN) and communication entity can carry out real-time update according to the change of communication entity.
In the 4th kind of possible implementation, with reference to the 7th aspect or the first possible implementation,
The interface of the first announcement information transmission data is according to the different and different of the network equipment;
The form of the interface of the second announcement information transmission data is the canonical form.Eighth aspect there is provided a kind of virtual machine, including:
Processing unit, for data storage bag into internal memory;
Transmitting element, for sending the second announcement information to main frame by the link block on the virtual machine, in order to which the main frame obtains the first announcement information according to second announcement information, and transmission to the network equipment causes the network equipment to obtain the packet according to first announcement information;Wherein, second announcement information includes the memory address of logical channel number (LCN) that the network equipment communicates with the virtual machine and packet.
In the first possible implementation, with reference to eighth aspect,
The memory address of packet in second announcement information exists in a standard;Wherein, the canonical form refers to the advance form arranged with the virtual machine.
In second of possible implementation, with reference to eighth aspect,
The interface of the first announcement information transmission data is according to the different and different of the network equipment;
The form of the interface of the second announcement information transmission data is the canonical form.There is provided a kind of main frame in terms of 9th, including:At least one processor, memory, communication interface and bus, at least one described processor, memory and communication interface pass through total Line connects and completes mutual communication, and the memory is used for store program codes, wherein:The processor, for calling the program code in memory, to perform following operation:
Receive the first announcement information that the network equipment is sent;Wherein, first announcement information includes the memory address for the packet that the network equipment is stored in internal memory;
Virtual machine with the network device communications is obtained according to the relation mapping table of logical channel number (LCN) and communication entity;Wherein, the logical channel number (LCN) is the logical channel number (LCN) that the network equipment communicates with the virtual machine;
Second announcement information is obtained according to first announcement information;Wherein, second announcement information includes the memory address of the logical channel number (LCN) and the packet;
Second announcement information is sent to the virtual machine, in order to which the virtual machine obtains the packet according to the memory address of the packet;Wherein, the virtual machine is to receive second announcement information by the link block on the virtual machine.
In the first possible implementation, with reference to the 9th aspect, the processor specifically for:
Parse the memory address that first announcement information obtains the packet;
The form of the memory address of the packet is converted into canonical form;
Second announcement information is obtained according to the memory address for the packet for being converted to canonical form and the logical channel number (LCN).
In second of possible implementation, with reference to the 9th aspect or the first possible implementation,
The memory address of packet in second announcement information exists in a standard;Wherein, the canonical form refers to the advance form arranged with the virtual machine.
In the third possible implementation, with reference to the 9th aspect or the first possible implementation,
The relation mapping table of the logical channel number (LCN) and communication entity can carry out real-time update according to the change of communication entity.
In the 4th kind of possible implementation, with reference to the 9th aspect or the first possible implementation, The interface of the first announcement information transmission data is according to the different and different of the network equipment;
The form of the interface of the second announcement information transmission data is the canonical form.There is provided a kind of virtual machine in terms of tenth, including:At least one processor, memory, communication interface and bus, at least one described processor, memory and communication interface are connected by bus and complete mutual communication, and the memory is used for store program codes, wherein:The processor, for calling the program code in memory, to perform following operation:
The second announcement information that the main frame is sent is received by the link block on the virtual machine;Wherein, second announcement information is obtained according to the first announcement information, includes the memory address of the logical channel number (LCN) that is communicated with the virtual machine of the network equipment and the packet;First announcement information is that the network equipment sends to the main frame, including the network equipment and is stored in the memory address of the packet in internal memory;
The packet is obtained in internal memory according to the memory address of the packet.
In the first possible implementation, with reference to the tenth aspect,
The memory address of packet in second announcement information exists in a standard;Wherein, the canonical form refers to the advance form arranged with the virtual machine.
In second of possible implementation, with reference to the tenth aspect,
The interface of the first announcement information transmission data is according to the different and different of the network equipment;
The form of the interface of the second announcement information transmission data is the canonical form.Tenth one side there is provided a kind of main frame, including:At least one processor, memory, communication interface and bus, at least one described processor, memory and communication interface are connected by bus and complete mutual communication, and the memory is used for store program codes, wherein:The processor, for calling the program code in memory, to perform following operation:
Main frame receives the second announcement information that virtual machine is sent;Wherein, second announcement information includes logical channel number (LCN) and the virtual machine is stored in the memory address of the packet in internal memory;The logical channel number (LCN) is the logical channel number (LCN) of the virtual machine and network device communications; The virtual machine is to send second announcement information by the link block on the virtual machine;
The network equipment communicated with the virtual machine is obtained with the relation mapping table of communication entity according to the logical channel number (LCN);
First announcement information is obtained according to second announcement information;Wherein, first announcement information includes the memory address of the packet;
First announcement information is sent to the network equipment, in order to which the network equipment obtains the packet according to the memory address of the packet.
In the first possible implementation, with reference to the tenth on the one hand, the processor specifically for:
Parse the memory address that second announcement information obtains the packet;
The form of the memory address of the datagram is converted into the form that the network equipment can be recognized;
First announcement information is obtained according to the memory address of the packet of conversion.In second of possible implementation, with reference to the tenth one side or the first possible implementation,
The memory address of packet in second announcement information exists in a standard;Wherein, the canonical form refers to the advance form arranged with the virtual machine.
In the third possible implementation, with reference to the tenth one side or the first possible implementation,
The relation mapping table of the logical channel number (LCN) and communication entity can carry out real-time update according to the change of communication entity.
In the 4th kind of possible implementation, with reference to the 9th aspect or a kind of the tenth possible implementation,
The interface of the first announcement information transmission data is according to the different and different of the network equipment;
The form of the interface of the second announcement information transmission data is the canonical form.There is provided a kind of virtual machine in terms of 12nd, including:At least one processor, memory, communication interface and bus, at least one described processor, memory and communication interface are logical Cross bus to connect and complete mutual communication, the memory is used for store program codes, its towel:
The processor, for calling the program code in memory, to perform following operation:
Data storage bag is into internal memory;
Second announcement information is sent to main frame by the link block on the virtual machine, in order to which the main frame obtains the first announcement information according to second announcement information, and transmission to the network equipment causes the network equipment to obtain the packet according to first announcement information;Wherein, second announcement information includes the memory address of logical channel number (LCN) that the network equipment communicates with the virtual machine and packet.
In the first possible implementation, with reference to the 12nd aspect,
The memory address of packet in second announcement information exists in a standard;Wherein, the canonical form refers to the advance form arranged with the virtual machine.
In second of possible implementation, with reference to the 12nd aspect,
The interface of the first announcement information transmission data is according to the different and different of the network equipment;
The form of the interface of the second announcement information transmission data is the canonical form.There is provided a kind of data forwarding system in terms of 13rd, including:Main frame, virtual machine and the network equipment, wherein:
The main frame, the first announcement information for receiving network equipment transmission;Wherein, first announcement information includes the memory address for the packet that the network equipment is stored in internal memory;Virtual machine with the network device communications is obtained according to the relation mapping table of logical channel number (LCN) and communication entity;Wherein, the logical channel number (LCN) is the logical channel number (LCN) that the network equipment communicates with the virtual machine;Second announcement information is obtained according to first announcement information;Wherein, second announcement information includes the memory address of the logical channel number (LCN) and the packet;Second announcement information is sent to the virtual machine, in order to which the virtual machine obtains the packet according to the memory address of the packet;Wherein, the virtual machine is to receive second announcement information by the link block on the virtual machine;
The network equipment, for sending the packet to the main frame and by the data Bag is stored in internal memory;
The virtual machine, for the second announcement information sent by the link block Receiving Host on the virtual machine;Wherein, second announcement information is obtained according to the first announcement information, includes the memory address of the logical channel number (LCN) that is communicated with the virtual machine of the network equipment and packet;First announcement information is that the network equipment sends to the main frame, including the network equipment and is stored in the memory address of the packet in internal memory;The packet is obtained in internal memory according to the memory address of the packet.
In the first possible implementation, with reference to the 13rd aspect,
The main frame, is additionally operable to parse the memory address that first announcement information obtains the packet;The form of the memory address of the packet is converted into canonical form;Second announcement information is obtained according to the memory address for the packet for being converted to canonical form and the logical channel number (LCN).
In second of possible implementation, with reference to the 13rd aspect or the first possible implementation,
The memory address of packet in second announcement information exists in a standard;Wherein, the canonical form refers to the advance form arranged with the virtual machine.
In the third possible implementation, with reference to the 13rd aspect or the first possible implementation,
The relation mapping table of the logical channel number (LCN) and communication entity can carry out real-time update according to the change of communication entity.
In the 4th kind of possible implementation, with reference to the 13rd aspect or the first possible implementation,
The interface of the first announcement information transmission data is according to the different and different of the network equipment;
The form of the interface of the second announcement information transmission data is the canonical form.Fourteenth aspect there is provided a kind of data forwarding system, including:Main frame, virtual machine and the network equipment, wherein:
The virtual machine, for data storage bag into internal memory;Second announcement information is sent to main frame by the link block on the virtual machine, in order to which the main frame is according to described second Announcement information obtains the first announcement information, and transmission to the network equipment causes the network equipment to obtain the packet according to first announcement information;Wherein, second announcement information includes the memory address of logical channel number (LCN) that the network equipment communicates with the virtual machine and packet;
The main frame, the second announcement information for receiving virtual machine transmission;Wherein, second announcement information includes logical channel number (LCN) and the virtual machine is stored in the memory address of the packet in internal memory;The logical channel number (LCN) is the logical channel number (LCN) of the virtual machine and network device communications;The virtual machine is to send second announcement information by the link block on the virtual machine;The network equipment communicated with the virtual machine is obtained with the relation mapping table of communication entity according to the logical channel number (LCN);First announcement information is obtained according to second announcement information;Wherein, first announcement information includes the memory address of the packet;First announcement information is sent to the network equipment, in order to which the network equipment obtains the packet according to the memory address of the packet;
The network equipment, for receiving the first announcement information that the main frame is sent;The packet is obtained according to the memory address of the packet.
In the first possible implementation, with reference to fourteenth aspect,
The main frame, is additionally operable to parse the memory address that second announcement information obtains the packet;The form of the memory address of the packet is converted into the form that the network equipment can be recognized;First announcement information is obtained according to the memory address of the packet of conversion.
In second of possible implementation, with reference to fourteenth aspect or the first possible implementation,
The memory address of packet in second announcement information exists in a standard;Wherein, the canonical form refers to the advance form arranged with the virtual machine.
In the third possible implementation, with reference to fourteenth aspect or the first possible implementation,
The relation mapping table of the logical channel number (LCN) and communication entity can carry out real-time update according to the change of communication entity.
In the 4th kind of possible implementation, with reference to fourteenth aspect or the first is possible Implementation,
The interface of the first announcement information transmission data is according to the different and different of the network equipment;
The form of the interface of the second announcement information transmission data is the canonical form.Data forwarding method, the apparatus and system of embodiments of the invention offer, canonical form is converted to by the form of the memory address for the information for sending the network equipment, and the memory address of the information of the canonical form is sent to the application program to virtual machine, solve when the application program in virtual machine communicates with physical machine and big problem is lost, operating efficiency is improved simultaneously, it is easy to operate.Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, the required accompanying drawing used in embodiment or description of the prior art will be briefly described below, apparently, drawings in the following description are only some embodiments of the present invention, for those of ordinary skill in the art, on the premise of not paying creative work, other accompanying drawings can also be obtained according to these accompanying drawings.
A kind of schematic flow sheet for data forwarding method that Fig. 1 provides for embodiments of the invention;
The schematic flow sheet for another data forwarding method that Fig. 2 provides for embodiments of the invention;
The schematic flow sheet for another data forwarding method that Fig. 3 provides for embodiments of the invention;
A kind of schematic flow sheet for data forwarding method that Fig. 4 provides for another embodiment of the present invention;
The schematic flow sheet for another data forwarding method that Fig. 5 provides for another embodiment of the present invention;
The schematic flow sheet for another data forwarding method that Fig. 6 provides for another embodiment of the present invention;
A kind of structural representation for main frame that Fig. 7 provides for embodiments of the invention; The structural representation for another main frame that Fig. 8 provides for embodiments of the invention;A kind of structural representation for virtual machine that Fig. 9 provides for embodiments of the invention;The structural representation for another main frame that Figure 10 provides for embodiments of the invention;A kind of structural representation for main frame that Fig. 11 provides for another embodiment of the present invention;The structural representation for another virtual machine that Figure 12 provides for embodiments of the invention;The structural representation for another main frame that Figure 13 provides for another embodiment of the present invention;The structural representation for another virtual machine that Figure 14 provides for embodiments of the invention;The structural representation for another main frame that Figure 15 provides for another embodiment of the present invention;A kind of structural representation for virtual machine that Figure 16 provides for another embodiment of the present invention;A kind of structural representation for data forwarding system that Figure 17 provides for embodiments of the invention;
The structural representation for another data forwarding system that Figure 18 provides for embodiments of the invention.Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is only a part of embodiment of the invention, rather than whole embodiments.Based on the embodiment in the present invention, the every other embodiment that those of ordinary skill in the art are obtained under the premise of creative work is not made belongs to the scope of protection of the invention.
Embodiments of the invention provide a kind of data forwarding method, and during sending information to the application program on virtual machine applied to the hardware in physical machine, shown in reference picture 1, this method comprises the following steps:
101st, main frame receives the first announcement information that the network equipment is sent.
Wherein, the first announcement information includes the memory address for the packet that the network equipment is stored in internal memory.
102nd, main frame obtains the virtual machine with network device communications according to the relation mapping table of logical channel number (LCN) and communication entity.
Wherein, logical channel number (LCN) is the logical channel number (LCN) that the network equipment communicates with virtual machine. 103rd, main frame obtains the second announcement information according to the first announcement information.
Wherein, the second announcement information includes the memory address of the logical channel number (LCN) and packet.
104th, main frame sends the second announcement information to virtual machine, in order to which the virtual machine obtains packet according to the memory address of packet.
Wherein, virtual machine is to receive the second announcement information by the link block on virtual machine.The data forwarding method that embodiments of the invention are provided, canonical form is converted to by the form of the memory address for the information for sending the network equipment, and by the letter of the canonical form, memory address send the application program to virtual machine, solve when the application program in virtual machine communicates with physical machine and big problem is lost, operating efficiency is improved simultaneously, it is easy to operate.Embodiments of the invention provide a kind of data forwarding method, during sending information to the application program on virtual machine applied to the hardware in physical machine, shown in reference picture 2, comprise the following steps:
201st, the second announcement information that virtual machine is sent by the link block Receiving Host on virtual machine.
Wherein, second announcement information is obtained according to the first announcement information, includes the memory address of the logical channel number (LCN) that is communicated with virtual machine of main frame and packet;First announcement information is that the network equipment sends to main frame, including the network equipment and is stored in the memory address of the packet in internal memory.
202nd, virtual machine obtains packet according to the memory address of packet in internal memory.
The data forwarding method that embodiments of the invention are provided, canonical form is converted to by the form of the memory address for the information for sending the network equipment, and by the letter of the canonical form, memory address send the application program to virtual machine, solve when the application program in virtual machine communicates with physical machine and big problem is lost, operating efficiency is improved simultaneously, it is easy to operate.Embodiments of the invention provide a kind of data forwarding method, during sending information to the application program on virtual machine applied to the hardware in physical machine, shown in reference picture 3, comprise the following steps:
301st, main frame receives the first announcement information that the network equipment is sent. Wherein, the first announcement information includes the memory address for the packet that the network equipment is stored in internal memory.
Specifically, the network equipment needs to send the application program on packet to virtual machine, then the network equipment needs the packet being stored in internal memory, then sends the address of the packet to virtual machine, virtual machine obtains required packet according to the address received.But it is due to that the different network equipments has respective address format, if the network equipment is converted, corresponding virtual machine needs to re-recognize new form, operates cumbersome.Therefore, first the address of packet is carried in the present embodiment and sent in the first announcement information to main frame.
The information such as the number of packet can also be included in first announcement information, the form of the first packet is according to the different and different of the network equipment.Wherein, what the network equipment was preferred can be physical network card.
302nd, main frame obtains the virtual machine with network device communications according to the relation mapping table of logical channel number (LCN) and communication entity.
Wherein, logical channel number (LCN) is the logical channel number (LCN) that the network equipment communicates with virtual machine.The relation mapping table of logical channel number (LCN) and communication entity can carry out real-time update according to the change of communication entity.
When the interapplication communications on network equipment needs and virtual machine, need to obtain logical channel number (LCN) from main frame in advance, when main frame allows it to communicate, can be in the logical channel number (LCN) of oneself with increasing corresponding content in the relation mapping table of communication entity, and inform one logical channel number (LCN) of both sides.Then the relation mapping table meeting basis of logical channel number (LCN) and communication entity communicates the change of both sides and constantly updated.
303rd, the announcement information of aster Resolution first obtains the memory address of packet.
304th, the form of the memory address of packet is converted to canonical form by main frame.
305th, main frame obtains the second announcement information according to the memory address and logical channel number (LCN) of the packet for being converted to canonical form.
Wherein, the second announcement information includes the memory address of logical channel number (LCN) that the network equipment communicates with virtual machine and packet.
The memory address of packet in second announcement information exists in a standard, and the canonical form refers to the form arranged in advance with virtual machine. Specifically, the first announcement information is converted to the second announcement information by main frame by the soft switch center on main frame, so that the application program on virtual machine can receive the packet that any network equipment is sent, it is to avoid the generation of coupled problem.
306th, main frame sends the second announcement information to virtual machine, in order to which virtual machine obtains packet according to the memory address of packet.
Specifically, main frame is to send the second announcement information by the software switching center9 on main frame.The soft switch center is realized by software.
307th, the second announcement information that virtual machine is sent by the link block Receiving Host on virtual machine.
Wherein, the link block on virtual machine is realized by the form of software.
308th, virtual machine obtains packet according to the memory address of packet in internal memory.
The interface of first announcement information transmission data is according to the different and different of the network equipment.The form of the interface of second announcement information transmission data is canonical form.
In the present embodiment, all operations that the packet that virtual machine is obtained eventually is sent on the application program to virtual machine, main frame are realized by the soft switch center on main frame.Because the different network equipments can produce the form of the first different announcement informations, it is therefore desirable to there is adaption function by the soft switch center run on main frame, the difference of different hardware is adapted to.Simultaneously, the form of second announcement information is the reference format arranged in advance with virtual machine, as long as then the first announcement information is converted to the second announcement information by main frame, application program on virtual machine does not need any change just to handle the second announcement information, and in the absence of the problem of coupling with the network equipment.Virtual machine can be moved on another physical computer from a physical computer, it is not necessary to make any change to the software in virtual machine.
The data forwarding method that embodiments of the invention are provided, canonical form is converted to by the form of the memory address for the information for sending the network equipment, and by the letter of the canonical form, memory address send the application program to virtual machine, solve when the application program in virtual machine communicates with physical machine and big problem is lost, operating efficiency is improved simultaneously, it is easy to operate.Embodiments of the invention are there is provided a kind of data forwarding method, during sending packet to the network equipment applied to the application program on virtual machine, shown in reference picture 4, including with Lower step:
401st, main frame receives the second announcement information that virtual machine is sent.
Wherein, the second announcement information includes logical channel number (LCN) and virtual machine is stored in the memory address of the packet in internal memory;Logical channel number (LCN) is the logical channel number (LCN) of virtual machine and network device communications;Virtual machine is to send the second announcement information by the link block on virtual machine.
402nd, main frame obtains the network equipment communicated with virtual machine according to logical channel number (LCN) with the relation mapping table of communication entity.
403rd, main frame obtains the first announcement information according to the second announcement information.
Wherein, the first announcement information includes the memory address of packet.
404th, main frame sends the first announcement information to the network equipment, in order to which the network equipment obtains packet according to the memory address of packet.
The data forwarding method that embodiments of the invention are provided, canonical form is converted to by the form of the memory address for the information for sending the network equipment, and by the letter of the canonical form, memory address send the application program to virtual machine, solve when the application program in virtual machine communicates with physical machine and big problem is lost, operating efficiency is improved simultaneously, it is easy to operate.Embodiments of the invention during the application program on virtual machine sends packet to the network equipment, shown in reference picture 5, comprise the following steps there is provided a kind of data forwarding method:
501st, virtual machine data storage bag is into internal memory.
502nd, virtual machine sends the second announcement information to main frame by the link block on virtual machine, and in order to which main frame obtains the first announcement information according to the second announcement information, and transmission to the network equipment causes the network equipment to obtain packet according to the first announcement information.
Wherein, the second announcement information includes the memory address of logical channel number (LCN) that the network equipment communicates with virtual machine and packet.
The data forwarding method that embodiments of the invention are provided, canonical form is converted to by the form of the memory address for the information for sending the network equipment, and by the letter of the canonical form, memory address send the application program to virtual machine, solve when the application program in virtual machine communicates with physical machine and big problem is lost, operating efficiency is improved simultaneously, it is easy to operate. During the application program that embodiments of the invention are provided on a kind of data forwarding method, virtual machine sends packet to the network equipment, shown in reference picture 6, comprise the following steps:601st, virtual machine data storage bag is into internal memory.
602nd, virtual machine sends the second announcement information to main frame by the link block on virtual machine.
Wherein, the second announcement information includes logical channel number (LCN) and virtual machine is stored in the memory address of the packet in internal memory;Logical channel number (LCN) is the logical channel number (LCN) of virtual machine and network device communications.
The memory address of packet in second announcement information exists in a standard;Wherein, canonical form refers to the form arranged in advance with virtual machine.
Specifically, the link block on virtual machine is realized by way of software, for being communicated by the soft switch center on main frame with main frame, the soft switch center is also to be realized by software form.
603rd, main frame receives the second announcement information that virtual machine is sent.
604th, main frame obtains the network equipment communicated with virtual machine according to logical channel number (LCN) with the relation mapping table of communication entity.
The relation mapping table of logical channel number (LCN) and communication entity can carry out real-time update according to the change of communication entity.
When the application program on virtual machine is needed with network device communications, need to obtain logical channel number (LCN) from main frame in advance, when main frame allows it to communicate, can be in the logical channel number (LCN) of oneself with increasing corresponding content in the relation mapping table of communication entity, and inform one logical channel number (LCN) of both sides.Then the relation mapping table meeting basis of logical channel number (LCN) and communication entity communicates the change of both sides and constantly updated.
605th, the announcement information of aster Resolution second obtains the memory address of packet.
606th, the form of the memory address of packet is converted to the form that the network equipment can be recognized by main frame.
607th, main frame obtains the first announcement information according to the memory address of the packet of conversion.Wherein, the first announcement information includes the memory address of packet.
Specifically, main frame is converted to the second announcement information by the soft switch center on main frame First announcement information, so that the network equipment can receive the packet that the application program on virtual machine is sent, it is to avoid the generation of coupled problem.The different network equipments can only be recognized and oneself form identical information.
608th, main frame sends the first announcement information to the network equipment, in order to which the network equipment obtains packet according to the memory address of packet.
The interface of first announcement information transmission data is according to the different and different of the network equipment.The form of the interface of second announcement information transmission data is canonical form.
The packet that virtual machine is sent in the present embodiment is that the application program on virtual machine is provided, and all operations on main frame are carried out by the software switching center9 on main frame.Operation same with the above-mentioned embodiment is identical with the explanation in above-described embodiment in the present embodiment, and here is omitted.
The data forwarding method that embodiments of the invention are provided, canonical form is converted to by the form of the memory address for the information for sending the network equipment, and by the letter of the canonical form, memory address send the application program to virtual machine, solve when the application program in virtual machine communicates with physical machine and big problem is lost, operating efficiency is improved simultaneously, it is easy to operate.
Certainly, the communication between application program on virtual machine and physical equipment in above-described embodiment also includes the situation of the application program on multiple virtual machines and multiple physical device communications, specific operating method is identical with the process of the method for a physical device communications with the application program on a virtual machine in above-described embodiment, and here is omitted.
For the above embodiments, using system in the present invention, the communication carried out using similar method between the different network equipments can also be expanded to.Now, it is only necessary to which the network equipment sends the first announcement information to main frame, main frame needs to be converted to the first announcement information into the announcement information of the recognizable form of separately-network equipment, sends to another network equipment.Can also be to expand to the communication between application programs different on virtual machine:Now, main frame need not carry out any operation only need to by virtual machine application program send the second announcement information be forwarded in another application program.The communication between different virtual machine can also be expanded to.The communication between the application program on main frame and the network equipment can also be expanded to, now, main frame only needs to directly receive the first announcement information that the network equipment is sent, it is not necessary to do any nominal operation.Also include:The communication between application program on main frame, answering on main frame With the communication between the application program in program and virtual machine, specific step is operated with reference to step related to relevant device in the above embodiment of the present invention, herein no longer --- list.Wherein, multiple second announcement informations of the first announcement information correspondence, multiple first announcement informations of the second announcement information correspondence, the multiple application programs of the second announcement information correspondence a, application program can correspond to multiple second announcement informations.Embodiments of the invention provide a kind of main frame 7, and shown in reference picture 7, the main frame includes:Receiving unit 71, acquiring unit 72 and transmitting element 73, wherein:
Receiving unit 71, the first announcement information for receiving network equipment transmission.
Wherein, the first announcement information includes the memory address for the packet that the network equipment is stored in internal memory.
Acquiring unit 72, for obtaining the virtual machine with network device communications according to the relation mapping table of logical channel number (LCN) and communication entity.
Wherein, logical channel number (LCN) is the logical channel number (LCN) that main frame communicates with virtual machine.
Acquiring unit 72, the first announcement information for being additionally operable to be received according to receiving unit 71 obtains the second announcement information.
Wherein, the second announcement information includes the memory address of logical channel number (LCN) and packet.Transmitting element 73, for sending the second announcement information that acquiring unit 72 gets to virtual machine, in order to which virtual machine obtains packet according to the memory address of packet.
Wherein, virtual machine is to receive the second announcement information by the software module on virtual machine.The main frame that embodiments of the invention are provided, canonical form is converted to by the form of the memory address for the information for sending the network equipment, and the memory address of the information of the canonical form is sent to the application program to virtual machine, solve when the application program in virtual machine communicates with physical machine and big problem is lost, operating efficiency is improved simultaneously, it is easy to operate.
Specifically, shown in reference picture 8, the acquiring unit 72 includes:Parsing module 721, modular converter 722 and acquisition module 723, wherein:
Parsing module 721, the memory address of packet is obtained for parsing the first announcement information.Modular converter 722, the form for the memory address for the packet for obtaining parsing module 721 is converted to canonical form. Acquisition module 723, for the memory address and logical channel number (LCN) the second announcement information of acquisition of the packet that canonical form is converted to according to modular converter 722.
The memory address of packet in second announcement information exists in a standard;Wherein, canonical form refers to the form arranged in advance with virtual machine.
The relation mapping table of logical channel number (LCN) and communication entity can carry out real-time update according to the change of communication entity.
The interface of first announcement information transmission data is according to the different and different of the network equipment.The form of the interface of second announcement information transmission data is canonical form.
The main frame that embodiments of the invention are provided, canonical form is converted to by the form of the memory address for the information for sending the network equipment, and the memory address of the information of the canonical form is sent to the application program to virtual machine, solve when the application program in virtual machine communicates with physical machine and big problem is lost, operating efficiency is improved simultaneously, it is easy to operate.Embodiments of the invention provide a kind of virtual machine 8, and shown in reference picture 9, the virtual machine includes:Receiving unit 81 and acquiring unit 82, wherein:
Receiving unit 81, for the second announcement information sent by the software module Receiving Host on virtual machine.
Wherein, the second announcement information is obtained according to the first announcement information, includes the memory address of the logical channel number (LCN) that is communicated with virtual machine of main frame and packet;First announcement information is that the network equipment sends to main frame, including the network equipment and is stored in the memory address of the packet in internal memory.
Acquiring unit 82, the memory address of the packet for being received according to receiving unit 81 obtains packet in internal memory.
The memory address of packet in second announcement information exists in a standard;Wherein, canonical form refers to the form arranged in advance with virtual machine.
The interface of first announcement information transmission data is according to the different and different of the network equipment.The form of the interface of second announcement information transmission data is canonical form.
The virtual machine that embodiments of the invention are provided, canonical form is converted to by the form of the memory address for the information for sending the network equipment, and by the internal memory of the information of the canonical form Location sends the application program to virtual machine, solves when the application program in virtual machine communicates with physical machine and big problem is lost, while operating efficiency is improved, it is easy to operate.Embodiments of the invention provide a kind of main frame 9, shown in reference picture 10, including:Receiving unit 91, acquiring unit 92 and transmitting element 93, wherein:
Receiving unit 91, the second announcement information for receiving virtual machine transmission.
Wherein, the second announcement information includes logical channel number (LCN) and virtual machine is stored in the memory address of the packet in internal memory;Logical channel number (LCN) is the logical channel number (LCN) of virtual machine and network device communications;Virtual machine is to send the second announcement information by the link block on virtual machine.
Acquiring unit 92, for obtaining the network equipment communicated with virtual machine with the relation mapping table of communication entity according to logical channel number (LCN).
Acquiring unit 92, the second announcement information for being additionally operable to be received according to receiving unit 91 obtains the first announcement information.
Wherein, the first announcement information includes the memory address of packet.
Transmitting element 93, for sending the network equipment that the first announcement information is obtained to acquiring unit 92, in order to which the network equipment obtains packet according to the memory address of packet.
Further, with reference to shown in Figure 11, the acquiring unit 92 includes:Parsing module 921, modular converter 922 and acquisition module 923, wherein:
Parsing module 921, the memory address of packet is obtained for parsing the second announcement information.Modular converter 922, the form for the memory address for the datagram for obtaining parsing module 921 is converted to the form that the network equipment can be recognized.
Acquisition module 923, the memory address of the packet for being changed according to modular converter 922 obtains the first announcement information.
The memory address of packet in second announcement information exists in a standard;Wherein, canonical form refers to the form arranged in advance with virtual machine.
The relation mapping table of logical channel number (LCN) and communication entity can carry out real-time update according to the change of communication entity.
The interface of first announcement information transmission data is according to the different and different of the network equipment.The form of the interface of second announcement information transmission data is canonical form. The main frame that embodiments of the invention are provided, canonical form is converted to by the form of the memory address for the information for sending the network equipment, and the memory address of the information of the canonical form is sent to the application program to virtual machine, solve when the application program in virtual machine communicates with physical machine and big problem is lost, operating efficiency is improved simultaneously, it is easy to operate.Embodiments of the invention provide a kind of virtual machine 10, shown in reference picture 12, including:Processing unit 1001 and transmitting element 1002, wherein:
Processing unit 1001, for data storage bag into internal memory.
Transmitting element 1002, for sending the second announcement information to main frame by the link block on virtual machine, in order to which main frame obtains the first announcement information according to the second announcement information, and transmission to the network equipment causes the network equipment to obtain packet according to the first announcement information.
Wherein, the second announcement information includes the memory address of logical channel number (LCN) that the network equipment communicates with virtual machine and packet.
The memory address of packet in second announcement information exists in a standard;Wherein, canonical form refers to the form arranged in advance with virtual machine.
The interface of first announcement information transmission data is according to the different and different of the network equipment.The form of the interface of second announcement information transmission data is canonical form.
The virtual machine that embodiments of the invention are provided, canonical form is converted to by the form of the memory address for the information for sending the network equipment, and the memory address of the information of the canonical form is sent to the application program to virtual machine, solve when the application program in virtual machine communicates with physical machine and big problem is lost, operating efficiency is improved simultaneously, it is easy to operate.Embodiments of the invention provide a kind of main frame 11, shown in reference picture 13, including:At least one processor 1101, memory 1102, communication interface 1103 and bus 1104, at least one processor 1101, memory 1102 and communication interface 1103 are connected by bus 1104 and complete mutual communication, memory 1102 is used for store program codes, wherein:The bus 1104 can be industry standard architecture(Industry Standard Architecture, referred to as ISA) bus, sunset fore-telling portion apparatus interconnection (Peripheral Component Interconnect, referred to as PCI) bus or extended industry-standard architecture( Extended Industry Standard Architecture, referred to as EISA) bus etc..The bus 1104 can be divided into address bus, data/address bus, controlling bus etc..For ease of representing, only represented in Figure 13 with a thick line, it is not intended that only one bus or a type of bus.Its towel:
Memory 1102 is used for store program codes, and the program code includes operational order.Memory 1102 may include high-speed RAM memory, it is also possible to which, also including nonvolatile memory (non-volatile memory), for example, at least one disk deposits 4 all devices.
Processor 1101 is probably a central processing unit(Central Processing Unit, referred to as CPU), or specific integrated circuit(Application Specific Integrated Circuit, referred to as ASIC), or it is arranged to implement one or more integrated circuits of the embodiment of the present invention.
Communication interface 1103, is mainly used in realizing the communication between the device in the present embodiment.Processor 1101, is additionally operable to call the program code in memory 1102, to perform following operation:
Receive the first announcement information that the network equipment is sent.
Wherein, the first announcement information includes the memory address for the packet that the network equipment is stored in internal memory.
Virtual machine with network device communications is obtained according to the relation mapping table of logical channel number (LCN) and communication entity.Wherein, the logical channel number (LCN) is the logical channel number (LCN) that main frame communicates with virtual machine.
Second announcement information is obtained according to the first announcement information.
Wherein, the second announcement information includes the memory address of logical channel number (LCN) and packet.The second announcement information is sent to virtual machine, in order to which virtual machine obtains packet according to the memory address of packet.
Wherein, virtual machine is to receive the second announcement information by the software module on virtual machine.Processor 1101 is specifically for performing following operate:
Parse the memory address that the first announcement information obtains packet.
The form of the memory address of packet is converted into canonical form.
Second announcement information is obtained according to the memory address for the packet for being converted to canonical form and logical channel number (LCN). The memory address of packet in second announcement information exists in a standard;Wherein, canonical form refers to the form arranged in advance with virtual machine.
The relation mapping table of logical channel number (LCN) and communication entity can carry out real-time update according to the change of communication entity.
The interface of first announcement information transmission data is according to the different and different of the network equipment.The form of the interface of second announcement information transmission data is canonical form.
The main frame that embodiments of the invention are provided, canonical form is converted to by the form of the memory address for the information for sending the network equipment, and the memory address of the information of the canonical form is sent to the application program to virtual machine, solve when the application program in virtual machine communicates with physical machine and big problem is lost, operating efficiency is improved simultaneously, it is easy to operate.Embodiments of the invention provide a kind of virtual machine 12, shown in reference picture 14, including:At least one processor 1201, memory 1202, communication interface 1203 and bus 1204, at least one processor 1201, memory 1202 and communication interface 1203 are connected by bus 1204 and complete mutual communication, memory 1202 is used for store program codes, wherein:The bus 1204 can be industry standard architecture(Industry Standard Architecture, referred to as ISA) bus, sunset fore-telling portion apparatus interconnection (Peripheral Component Interconnect, referred to as PCI) bus or extended industry-standard architecture(Extended Industry Standard Architecture, referred to as EISA) bus etc..The bus 1204 can be divided into address bus, data/address bus, controlling bus etc..For ease of representing, only represented in Figure 14 with a thick line, it is not intended that only one bus or a type of bus.Its towel:
Memory 1202 is used for store program codes, and the program code includes operational order.Memory 1202 may include high-speed RAM memory, it is also possible to which, also including nonvolatile memory (non-volatile memory), for example, at least one disk deposits 4 all devices.
Processor 1201 is probably a central processing unit(Central Processing Unit, referred to as CPU), or specific integrated circuit(Application Specific Integrated Circuit, referred to as ASIC), or it is arranged to implement one or more integrated circuits of the embodiment of the present invention. Communication interface 1203, is mainly used in realizing the communication between the device in the present embodiment.Processor 1201, is additionally operable to call the program code in memory 1202, to perform following operation:
The second announcement information sent by the software module Receiving Host on virtual machine.
Wherein, the second announcement information is obtained according to the first announcement information, includes the memory address of the logical channel number (LCN) that is communicated with virtual machine of main frame and packet;First announcement information is that the network equipment sends to main frame, including the network equipment and is stored in the memory address of the packet in internal memory.
Packet is obtained in internal memory according to the memory address of packet.
The memory address of packet in second announcement information exists in a standard;Wherein, canonical form refers to the form arranged in advance with virtual machine.
The interface of first announcement information transmission data is according to the different and different of the network equipment.The form of the interface of second announcement information transmission data is canonical form.
The virtual machine that embodiments of the invention are provided, canonical form is converted to by the form of the memory address for the information for sending the network equipment, and the memory address of the information of the canonical form is sent to the application program to virtual machine, solve when the application program in virtual machine communicates with physical machine and big problem is lost, operating efficiency is improved simultaneously, it is easy to operate.Embodiments of the invention provide a kind of main frame 13, shown in reference picture 15, including:At least one processor 1301, memory 1302, communication interface 1303 and bus 1304, at least one processor 1301, memory 1302 and communication interface 1303 are connected by bus 1304 and complete mutual communication, memory 1302 is used for store program codes, wherein:The bus 1304 can be industry standard architecture(Industry Standard Architecture, referred to as ISA) bus, sunset fore-telling portion apparatus interconnection (Peripheral Component Interconnect, referred to as PCI) bus or extended industry-standard architecture(Extended Industry Standard Architecture, referred to as EISA) bus etc..The bus 1304 can be divided into address bus, data/address bus, controlling bus etc..For ease of representing, only represented in Figure 15 with a thick line, it is not intended that only one bus or a type of bus.Its towel: Memory 1302 is used for store program codes, and the program code includes operational order.Memory 1302 may include high-speed RAM memory, it is also possible to which, also including nonvolatile memory (non-volatile memory), for example, at least one disk deposits 4 all devices.
Processor 1301 is probably a central processing unit(Central Processing Unit, referred to as CPU), or specific integrated circuit(Application Specific Integrated Circuit, referred to as ASIC), or it is arranged to implement a communication interface 1303 of the embodiment of the present invention, it is mainly used in realizing the communication between the device in the present embodiment.Processor 1301, is additionally operable to call the program code in memory 1302, to perform following operation:
Receive the second announcement information that virtual machine is sent.
Wherein, the second announcement information includes logical channel number (LCN) and virtual machine is stored in the memory address of the packet in internal memory;Logical channel number (LCN) is the logical channel number (LCN) of virtual machine and network device communications;Virtual machine is to send the second announcement information by the link block on virtual machine.
The network equipment communicated with virtual machine is obtained with the relation mapping table of communication entity according to logical channel number (LCN).
First announcement information is obtained according to the second announcement information.
Wherein, the first announcement information includes the memory address of packet.
The first announcement information is sent to the network equipment, in order to which the network equipment obtains packet according to the memory address of packet.
Further, processor 1301 is specifically for performing following steps:
Parse the memory address that the second announcement information obtains packet.
The form of the memory address of datagram is converted into the form that the network equipment can be recognized.First announcement information is obtained according to the memory address of the packet of conversion.
Specifically, the memory address of the packet in the second announcement information exists in a standard.Wherein, canonical form refers to the form arranged in advance with virtual machine.
The relation mapping table of logical channel number (LCN) and communication entity can carry out real-time update according to the change of communication entity.
The interface of first announcement information transmission data is according to the different and different of the network equipment. The form of the interface of second announcement information transmission data is canonical form.
The main frame that embodiments of the invention are provided, canonical form is converted to by the form of the memory address for the information for sending the network equipment, and the memory address of the information of the canonical form is sent to the application program to virtual machine, solve when the application program in virtual machine communicates with physical machine and big problem is lost, operating efficiency is improved simultaneously, it is easy to operate.Embodiments of the invention provide a kind of virtual machine 14, shown in reference picture 16, including:At least one processor 1401, memory 1402, communication interface 1403 and bus 1404, at least one processor 1401, memory 1402 and communication interface 1403 are connected by bus 1404 and complete mutual communication, memory 1402 is used for store program codes, wherein:The bus 1404 can be industry standard architecture(Industry Standard Architecture, referred to as ISA) bus, sunset fore-telling portion apparatus interconnection (Peripheral Component Interconnect, referred to as PCI) bus or extended industry-standard architecture(Extended Industry Standard Architecture, referred to as EISA) bus etc..The bus 1404 can be divided into address bus, data/address bus, controlling bus etc..For ease of representing, only represented in Figure 16 with a thick line, it is not intended that only one bus or a type of bus.Its towel:
Memory 1402 is used for store program codes, and the program code includes operational order.Memory 1302 may include high-speed RAM memory, it is also possible to which, also including nonvolatile memory (non-volatile memory), for example, at least one disk deposits 4 all devices.
Processor 1401 is probably a central processing unit(Central Processing Unit, referred to as CPU), or specific integrated circuit(Application Specific Integrated Circuit, referred to as ASIC), or it is arranged to implement one or more integrated circuits of the embodiment of the present invention.
Communication interface 1403, is mainly used in realizing the communication between the device in the present embodiment.Processor 1401, is additionally operable to call the program code in memory 1402, to perform following operation:
Data storage bag is into internal memory.
Second announcement information is sent to main frame by the link block on virtual machine, in order to master Machine obtains the first announcement information according to the second announcement information, and transmission to the network equipment causes the network equipment to obtain packet according to the first announcement information.
Wherein, the second announcement information includes the memory address of logical channel number (LCN) that the network equipment communicates with virtual machine and packet.
The memory address of packet in second announcement information exists in a standard.
Wherein, canonical form refers to the form arranged in advance with virtual machine.
The interface of first announcement information transmission data is according to the different and different of the network equipment.The form of the interface of second announcement information transmission data is canonical form.
The virtual machine that embodiments of the invention are provided, canonical form is converted to by the form of the memory address for the information for sending the network equipment, and the memory address of the information of the canonical form is sent to the application program to virtual machine, solve when the application program in virtual machine communicates with physical machine and big problem is lost, operating efficiency is improved simultaneously, it is easy to operate.Embodiments of the invention provide a kind of data forwarding system, shown in reference picture 17, including:Main frame a, virtual machine b and network equipment c, wherein:
Network equipment c, for sending the first announcement information to main frame a and data storage in internal memory.
Main frame a, the first announcement information for receiving network equipment c transmissions;Wherein, the first announcement information includes the memory address for the packet that network equipment c is stored in internal memory;Virtual machine b with network device communications is obtained according to the relation mapping table of logical channel number (LCN) and communication entity;Wherein, logical channel number (LCN) is the logical channel number (LCN) that network equipment c communicates with virtual machine b;Second announcement information is obtained according to the first announcement information;Wherein, the second announcement information includes the memory address of logical channel number (LCN) and packet;The second announcement information is sent to virtual machine b, in order to which virtual machine b obtains packet according to the memory address of packet;Wherein, virtual machine b is to receive the second announcement information by the link block on virtual machine b.
Virtual machine b, for the second announcement information sent by the link block Receiving Host on the virtual machine;Wherein, second announcement information is obtained according to the first announcement information, includes the memory address of the logical channel number (LCN) that is communicated with the virtual machine of the network equipment and packet;First announcement information is that the network equipment is sent to the main frame, including The network equipment is stored in the memory address of the packet in internal memory;The packet is obtained in internal memory according to the memory address of the packet.
Specifically, main frame a, is additionally operable to parse the memory address that the first announcement information obtains packet;The form of the memory address of packet is converted into canonical form;Second announcement information is obtained according to the memory address for the packet for being converted to canonical form and logical channel number (LCN).
The memory address of packet in second announcement information exists in a standard;Wherein, canonical form refers to the form arranged in advance with virtual machine b.
The relation mapping table of logical channel number (LCN) and communication entity can carry out real-time update according to the change of communication entity.
The form for the interface that the interface of first announcement information transmission data transmits data according to the announcement informations of different and different second of the network equipment is canonical form.
The data forwarding system that embodiments of the invention are provided, canonical form is converted to by the form of the memory address for the information for sending the network equipment, and by the letter of the canonical form, memory address send the application program to virtual machine, solve when the application program in virtual machine communicates with physical machine and big problem is lost, operating efficiency is improved simultaneously, it is easy to operate.Embodiments of the invention provide a kind of data forwarding system, with reference to shown in Figure 18, including:Main frame d, virtual machine e and network equipment f, wherein:
Virtual machine e, for data storage bag into internal memory;Second announcement information is sent to main frame d by link block on virtual machine e, in order to which main frame d obtains the first announcement information according to the second announcement information, and sends to network equipment f and causes network equipment f to obtain packet according to the first announcement information;Wherein, the second announcement information includes network equipment f and the virtual machine e logical channel number (LCN)s communicated and the memory address of packet.
Main frame d, the second announcement information for receiving virtual machine e transmissions;Wherein, the second announcement information includes logical channel number (LCN) and virtual machine e is stored in the memory address of the packet in internal memory;Logical channel number (LCN) is the logical channel number (LCN) of virtual machine and network device communications;Virtual machine e is to send the second announcement information by the link block on virtual machine e;The network equipment communicated with virtual machine is obtained with the relation mapping table of communication entity according to logical channel number (LCN);First announcement information is obtained according to the second announcement information;Wherein, the first announcement information includes packet Memory address;The first announcement information is sent to network equipment f, in order to which network equipment f obtains packet according to the memory address of packet.
Network equipment f, the first announcement information sent for Receiving Host d;The memory address of packet in the first announcement information obtains packet.
Specifically, main frame d, is additionally operable to parse the memory address that the second announcement information obtains packet;The form of the memory address of packet is converted into the form that the network equipment can be recognized;First announcement information is obtained according to the memory address of the packet of conversion.
The memory address of packet in second announcement information exists in a standard;Wherein, canonical form refers to the form arranged in advance with virtual machine e.
The relation mapping table of logical channel number (LCN) and communication entity can carry out real-time update according to the change of communication entity.
The interface of first announcement information transmission data is according to the different and different of network equipment f.The form of the interface of second announcement information transmission data is canonical form.
The data forwarding system that embodiments of the invention are provided, canonical form is converted to by the form of the memory address for the information for sending the network equipment, and by the letter of the canonical form, memory address send the application program to virtual machine, solve when the application program in virtual machine communicates with physical machine and big problem is lost, operating efficiency is improved simultaneously, it is easy to operate.
It is apparent to those skilled in the art that, for convenience and simplicity of description, only it is illustrated with the division of above-mentioned each functional module, in practical application, it can as needed and by above-mentioned functions distribute and be completed by different functional modules, the internal structure of device is divided into different functional modules, to complete all or part of function described above.The specific work process of the system, apparatus, and unit of foregoing description, may be referred to the corresponding process in preceding method embodiment, will not be repeated here.
In several embodiments provided herein, it should be understood that disclosed system, apparatus and method can be realized by another way.For example, device embodiment described above is only schematical, for example, the division of the module or unit, it is only a kind of division of logic function, there can be other dividing mode when actually realizing, such as multiple units or component can combine or be desirably integrated into another system, or some features can be ignored, or do not perform.It is another, shown or discussed coupling each other or direct coupling It, by some interfaces, the INDIRECT COUPLING or communication connection of device or unit, can be electrical, machinery or other forms that conjunction or communication connection, which can be,.
The unit illustrated as separating component can be or may not be physically separate, the part shown as unit can be or may not be physical location, a place can be located at, or can also be distributed on multiple NEs.Some or all of unit therein can be selected to realize the purpose of this embodiment scheme according to the actual needs.
In addition, each functional unit in the application each embodiment can be integrated in a processing unit or unit is individually physically present, can also two or more units it is integrated in a unit.Above-mentioned integrated unit can both be realized in the form of hardware, it would however also be possible to employ the form of SFU software functional unit is realized.
Described above, above example is only to the technical scheme for illustrating the application, rather than its limitations;Although the application is described in detail with reference to the foregoing embodiments, it will be understood by those within the art that:It can still modify to the technical scheme described in foregoing embodiments, or carry out equivalent substitution to which part technical characteristic;And these modifications or replacement, the essence of appropriate technical solution is departed from the spirit and scope of each embodiment technical scheme of the application.Therefore, protection scope of the present invention should be based on the protection scope of the described claims.

Claims (50)

  1. Claims
    1st, a kind of data forwarding method, it is characterised in that including:
    Main frame receives the first announcement information that the network equipment is sent;Wherein, first announcement information includes the memory address for the packet that the network equipment is stored in internal memory;
    Virtual machine with the network device communications is obtained according to the relation mapping table of logical channel number (LCN) and communication entity;Wherein, the logical channel number (LCN) is the logical channel number (LCN) that the network equipment communicates with the virtual machine;
    Second announcement information is obtained according to first announcement information;Wherein, second announcement information includes the memory address of the logical channel number (LCN) and the packet;
    Second announcement information is sent to the virtual machine, in order to which the virtual machine obtains the packet according to the memory address of the packet;Wherein, the virtual machine is to receive second announcement information by the link block on the virtual machine.
    2nd, the method according to claim 1, it is characterised in that described that second announcement information is obtained according to first announcement information, including:
    Parse the memory address that first announcement information obtains the packet;
    The form of the memory address of the packet is converted into canonical form;
    Second announcement information is obtained according to the memory address for the packet for being converted to canonical form and the logical channel number (LCN).
    3rd, method according to claim 1 or 2, it is characterised in that
    The memory address of packet in second announcement information exists in a standard;Wherein, the canonical form refers to the advance form arranged with the virtual machine.
    4th, method according to claim 1 or 2, it is characterised in that
    The relation mapping table of the logical channel number (LCN) and communication entity can carry out real-time update according to the change of communication entity.
    5th, method according to claim 1 or 2, it is characterised in that
    The interface of the first announcement information transmission data is according to the different and different of the network equipment;
    The form of the interface of the second announcement information transmission data is the canonical form.
    6th, a kind of data forwarding method, it is characterised in that including: The second announcement information that virtual machine is sent by the link block Receiving Host on the virtual machine;Wherein, second announcement information is obtained according to the first announcement information, includes the memory address of the logical channel number (LCN) that is communicated with the virtual machine of the network equipment and packet;First announcement information is that the network equipment sends to the main frame, including the network equipment and is stored in the memory address of the packet in internal memory;
    The packet is obtained in internal memory according to the memory address of the packet.
    7th, method according to claim 6, it is characterised in that
    The memory address of packet in second announcement information exists in a standard;Wherein, the canonical form refers to the advance form arranged with the virtual machine.
    8th, method according to claim 6, it is characterised in that
    The interface of the first announcement information transmission data is according to the different and different of the network equipment;
    The form of the interface of the second announcement information transmission data is the canonical form.
    9th, a kind of data forwarding method, it is characterised in that including:
    Main frame receives the second announcement information that virtual machine is sent;Wherein, second announcement information includes logical channel number (LCN) and the virtual machine is stored in the memory address of the packet in internal memory;The logical channel number (LCN) is the logical channel number (LCN) of the virtual machine and network device communications;The virtual machine is to send second announcement information by the link block on the virtual machine;
    The network equipment communicated with the virtual machine is obtained with the relation mapping table of communication entity according to the logical channel number (LCN);
    First announcement information is obtained according to second announcement information;Wherein, first announcement information includes the memory address of the packet;
    First announcement information is sent to the network equipment, in order to which the network equipment obtains the packet according to the memory address of the packet.
    10th, method according to claim 9, it is characterised in that described that first announcement information is obtained according to second announcement information, including:
    Parse the memory address that second announcement information obtains the packet;
    The form of the memory address of the packet is converted into the form that the network equipment can be recognized; First announcement information is obtained according to the memory address of the packet of conversion.
    11, the method according to claim 9 or 10, it is characterised in that
    The memory address of packet in second announcement information exists in a standard;Wherein, the canonical form refers to the advance form arranged with the virtual machine.
    12nd, the method according to claim 9 or 10, it is characterised in that
    The relation mapping table of the logical channel number (LCN) and communication entity can carry out real-time update according to the change of communication entity.
    13rd, the method according to claim 9 or 10, it is characterised in that
    The interface of the first announcement information transmission data is according to the different and different of the network equipment;
    The form of the interface of the second announcement information transmission data is the canonical form.
    14th, a kind of data forwarding method, it is characterised in that including:
    Virtual machine data storage bag is into internal memory;
    Second announcement information is sent to main frame by the link block on the virtual machine, in order to which the main frame obtains the first announcement information according to second announcement information, and transmission to the network equipment causes the network equipment to obtain the packet according to first announcement information;Wherein, second announcement information includes the memory address of logical channel number (LCN) that the network equipment communicates with the virtual machine and packet.
    15th, method according to claim 14, it is characterised in that
    The memory address of packet in second announcement information exists in a standard;Wherein, the canonical form refers to the advance form arranged with the virtual machine.
    16th, method according to claim 14, it is characterised in that
    The interface of the first announcement information transmission data is according to the different and different of the network equipment;
    The form of the interface of the second announcement information transmission data is the canonical form.
    17th, a kind of main frame, it is characterised in that including:
    Receiving unit, the first announcement information for receiving network equipment transmission;Wherein, first announcement information is with including the internal memory for the packet that the network equipment is stored in internal memory Acquiring unit, for obtaining the virtual machine with the network device communications according to the relation mapping table of logical channel number (LCN) and communication entity;Wherein, the logical channel number (LCN) is the logical channel number (LCN) that the network equipment communicates with the virtual machine;
    The acquiring unit, first announcement information for being additionally operable to be received according to the receiving unit obtains the second announcement information;Wherein, second announcement information includes the memory address of the logical channel number (LCN) and the packet;
    Transmitting element, for sending second announcement information that the acquiring unit gets to the virtual machine, in order to which the virtual machine obtains the packet according to the memory address of the packet;Wherein, the virtual machine is to receive second announcement information by the link block on the virtual machine.
    18th, main frame according to claim 17, it is characterised in that the acquiring unit includes:
    Parsing module, the memory address of the packet is obtained for parsing first announcement information;
    Modular converter, the form for the memory address for the packet for obtaining the parsing module is converted to canonical form;
    Acquisition module, for the memory address and logical channel number (LCN) acquisition second announcement information of the packet that canonical form is converted to according to the modular converter.
    19th, the main frame according to claim 17 or 18, it is characterised in that
    The memory address of packet in second announcement information exists in a standard;Wherein, the canonical form refers to the advance form arranged with the virtual machine.
    20th, the main frame according to claim 17 or 18, it is characterised in that
    The relation mapping table of the logical channel number (LCN) and communication entity can carry out real-time update according to the change of communication entity.
    21st, the main frame according to claim 17 or 18, it is characterised in that
    The interface of the first announcement information transmission data is according to the different and different of the network equipment;
    The form of the interface of the second announcement information transmission data is the canonical form.
    22nd, a kind of virtual machine, it is characterised in that including: Receiving unit, for receiving the second announcement information that the main frame is sent by the link block on the virtual machine;Wherein, second announcement information is obtained according to the first announcement information, includes the memory address of the logical channel number (LCN) that is communicated with the virtual machine of the network equipment and packet;First announcement information is that the network equipment sends to the main frame, including the network equipment and is stored in the memory address of the packet in internal memory;
    Acquiring unit, the memory address of the packet for being received according to the receiving unit obtains the packet in internal memory.
    23rd, virtual machine according to claim 22, it is characterised in that
    The memory address of packet in second announcement information exists in a standard;Wherein, the canonical form refers to the advance form arranged with the virtual machine.
    24th, virtual machine according to claim 22, it is characterised in that
    The interface of the first announcement information transmission data is according to the different and different of the network equipment;
    The form of the interface of the second announcement information transmission data is the canonical form.
    25th, a kind of main frame, it is characterised in that including:
    Receiving unit, the second announcement information for receiving virtual machine transmission;Wherein, second announcement information includes logical channel number (LCN) and the virtual machine is stored in the memory address of the packet in internal memory;The logical channel number (LCN) is the logical channel number (LCN) of the virtual machine and network device communications;The virtual machine is to send second announcement information by the link block on the virtual machine;
    Acquiring unit, for obtaining the network equipment communicated with the virtual machine with the relation mapping table of communication entity according to the logical channel number (LCN);
    The acquiring unit, second announcement information for being additionally operable to be received according to the receiving unit obtains the first announcement information;Wherein, first announcement information includes the memory address of the packet;
    Transmitting element, for sending the network equipment that first announcement information to the acquiring unit is obtained, in order to which the network equipment obtains the packet according to the memory address of the packet.
    26th, main frame according to claim 25, it is characterised in that the acquiring unit Including:
    Parsing module, the memory address of the packet is obtained for parsing second announcement information;
    Modular converter, the form for the memory address for the datagram for obtaining the parsing module is converted to the form that the network equipment can be recognized;
    Acquisition module, the memory address of the packet for being changed according to the modular converter obtains first announcement information.
    27th, the main frame according to claim 25 or 26, it is characterised in that
    The memory address of packet in second announcement information exists in a standard;Wherein, the canonical form refers to the advance form arranged with the virtual machine.
    28th, the main frame according to claim 25 or 26, it is characterised in that
    The relation mapping table of the logical channel number (LCN) and communication entity can carry out real-time update according to the change of communication entity.
    29th, the main frame according to claim 25 or 26, it is characterised in that
    The interface of the first announcement information transmission data is according to the different and different of the network equipment;
    The form of the interface of the second announcement information transmission data is the canonical form.
    30th, a kind of virtual machine, it is characterised in that including:
    Processing unit, for data storage bag into internal memory;
    Transmitting element, for sending the second announcement information to main frame by the link block on the virtual machine, in order to which the main frame obtains the first announcement information according to second announcement information, and transmission to the network equipment causes the network equipment to obtain the packet according to first announcement information;Wherein, second announcement information includes the memory address of logical channel number (LCN) that the network equipment communicates with the virtual machine and packet.
    31, virtual machine according to claim 30, it is characterised in that
    The memory address of packet in second announcement information exists in a standard;Wherein, the canonical form refers to the advance form arranged with the virtual machine.
    32nd, virtual machine according to claim 30, it is characterised in that
    The interface of the first announcement information transmission data is according to the difference of the network equipment It is different;
    The form of the interface of the second announcement information transmission data is the canonical form.
    33rd, a kind of main frame, it is characterised in that including:At least one processor, memory, communication interface and bus, at least one described processor, memory and communication interface are connected by bus and complete mutual communication, and the memory is used for store program codes, wherein:The processor, for calling the program code in memory, to perform following operation:Receive the first announcement information that the network equipment is sent;Wherein, first announcement information includes the memory address for the packet that the network equipment is stored in internal memory;
    Virtual machine with the network device communications is obtained according to the relation mapping table of logical channel number (LCN) and communication entity;Wherein, the logical channel number (LCN) is the logical channel number (LCN) that the network equipment communicates with the virtual machine;
    Second announcement information is obtained according to first announcement information;Wherein, second announcement information includes the memory address of the logical channel number (LCN) and the packet;
    Second announcement information is sent to the virtual machine, in order to which the virtual machine obtains the packet according to the memory address of the packet;Wherein, the virtual machine is to receive second announcement information by the link block on the virtual machine.
    34th, the main frame according to claim 33, it is characterised in that the processor specifically for:
    Parse the memory address that first announcement information obtains the packet;
    The form of the memory address of the packet is converted into canonical form;
    Second announcement information is obtained according to the memory address for the packet for being converted to canonical form and the logical channel number (LCN).
    35th, the main frame according to claim 33 or 34, it is characterised in that
    The memory address of packet in second announcement information exists in a standard;Wherein, the canonical form refers to the advance form arranged with the virtual machine.
    36th, the main frame according to claim 33 or 34, it is characterised in that
    The relation mapping table of the logical channel number (LCN) and communication entity can carry out real-time update according to the change of communication entity.
    37th, the main frame according to claim 33 or 34, it is characterised in that The interface of the first announcement information transmission data is according to the different and different of the network equipment;
    The form of the interface of the second announcement information transmission data is the canonical form.
    38th, a kind of virtual machine, it is characterised in that including:At least one processor, memory, communication interface and bus, at least one described processor, memory and communication interface are connected by bus and complete mutual communication, and the memory is used for store program codes, wherein:The processor, for calling the program code in memory, to perform following operation:The second announcement information that the main frame is sent is received by the link block on the virtual machine;Wherein, second announcement information is obtained according to the first announcement information, includes the memory address of the logical channel number (LCN) that is communicated with the virtual machine of the network equipment and packet;First announcement information is that the network equipment sends to the main frame, including the network equipment and is stored in the memory address of the packet in internal memory;
    The packet is obtained in internal memory according to the memory address of the packet.
    39th, the virtual machine according to claim 38, it is characterised in that
    The memory address of packet in second announcement information exists in a standard;Wherein, the canonical form refers to the advance form arranged with the virtual machine.
    40th, the virtual machine according to claim 38, it is characterised in that
    The interface of the first announcement information transmission data is according to the different and different of the network equipment;
    The form of the interface of the second announcement information transmission data is the canonical form.
    41st, a kind of main frame, it is characterised in that including:At least one processor, memory, communication interface and bus, at least one described processor, memory and communication interface are connected by bus and complete mutual communication, and the memory is used for store program codes, wherein:The processor, for calling the program code in memory, to perform following operation:Receive the second announcement information that virtual machine is sent;Wherein, second announcement information includes logical channel number (LCN) and the virtual machine is stored in the memory address of the packet in internal memory;The logical channel number (LCN) is the logical channel number (LCN) of the virtual machine and network device communications;The virtual machine is to send second announcement information by the link block on the virtual machine;
    Obtained according to the relation mapping table of the logical channel number (LCN) and communication entity and described virtual The network equipment of machine communication;
    First announcement information is obtained according to second announcement information;Wherein, first announcement information includes the memory address of the packet;
    First announcement information is sent to the network equipment, in order to which the network equipment obtains the packet according to the memory address of the packet.
    42nd, the main frame according to claim 41, it is characterised in that the processor specifically for:
    Parse the memory address that second announcement information obtains the packet;
    The form of the memory address of the datagram is converted into the form that the network equipment can be recognized;
    First announcement information is obtained according to the memory address of the packet of conversion.
    43rd, the main frame according to claim 41 or 42, it is characterised in that
    The memory address of packet in second announcement information exists in a standard;Wherein, the canonical form refers to the advance form arranged with the virtual machine.
    44th, the main frame according to claim 41 or 42, it is characterised in that
    The relation mapping table of the logical channel number (LCN) and communication entity can carry out real-time update according to the change of communication entity.
    45th, the main frame according to claim 41 or 42, it is characterised in that
    The interface of the first announcement information transmission data is according to the different and different of the network equipment;
    The form of the interface of the second announcement information transmission data is the canonical form.
    46th, a kind of virtual machine, it is characterised in that including:At least one processor, memory, communication interface and bus, at least one described processor, memory and communication interface are connected by bus and complete mutual communication, and the memory is used for store program codes, wherein:The processor, for calling the program code in memory, to perform following operation:Data storage bag is into internal memory;
    Second announcement information is sent to main frame by the link block on the virtual machine, in order to which the main frame obtains the first announcement information according to second announcement information, and transmission to the network equipment causes the network equipment to obtain the packet according to first announcement information;Wherein, Second announcement information includes the memory address of the logical channel number (LCN) that the network equipment communicates with the virtual machine and packet.
    47th, virtual machine according to claim 46, it is characterised in that
    The memory address of packet in second announcement information exists in a standard;Wherein, the canonical form refers to the advance form arranged with the virtual machine.
    48th, virtual machine according to claim 46, it is characterised in that
    The interface of the first announcement information transmission data is according to the different and different of the network equipment;
    The form of the interface of the second announcement information transmission data is the canonical form.
    49th, a kind of data forwarding system, it is characterised in that including:Main frame, virtual machine and the network equipment, wherein:
    The main frame is the either host described in claim 17 21, and the virtual machine is any virtual machine described in claim 22 24;
    Or, the main frame is the either host described in claim 33 37, the virtual machine is any virtual machine described in claim 38 40;
    The network equipment, for sending packet to the virtual machine.
    50th, a kind of data forwarding system, it is characterised in that including:Main frame, virtual machine and the network equipment, wherein:
    The main frame is the either host described in claim 25 29, and the virtual machine is any virtual machine described in claim 30 32;
    Or, the main frame is the either host described in claim 41 45, the virtual machine is any virtual machine described in claim 46 48;
    The network equipment, for receiving the packet that the virtual machine is sent.
CN201380001388.0A 2013-07-31 2013-07-31 A kind of data forwarding method, apparatus and system Active CN104508632B (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2013/080527 WO2015013920A1 (en) 2013-07-31 2013-07-31 Data forwarding method, device and system

Publications (2)

Publication Number Publication Date
CN104508632A true CN104508632A (en) 2015-04-08
CN104508632B CN104508632B (en) 2018-03-13

Family

ID=52430858

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201380001388.0A Active CN104508632B (en) 2013-07-31 2013-07-31 A kind of data forwarding method, apparatus and system

Country Status (2)

Country Link
CN (1) CN104508632B (en)
WO (1) WO2015013920A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107168768A (en) * 2016-03-08 2017-09-15 深圳市深信服电子科技有限公司 The mapping method and device of equipment and virtual machine
CN107783722A (en) * 2016-08-25 2018-03-09 星辰天合(北京)数据科技有限公司 Data transmission method and data forwarding device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102591702A (en) * 2011-12-31 2012-07-18 华为技术有限公司 Virtualization processing method, related device and computer system
CN102801729A (en) * 2012-08-13 2012-11-28 福建星网锐捷网络有限公司 Virtual machine message forwarding method, network switching equipment and communication system
WO2013095579A1 (en) * 2011-12-22 2013-06-27 Intel Corporation Indexed page address translation to reduce memory footprint in virtualized environments

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100527098C (en) * 2007-11-27 2009-08-12 北京大学 Dynamic EMS memory mappings method of virtual machine manager
CN101667144B (en) * 2009-09-29 2013-02-13 北京航空航天大学 Virtual machine communication method based on shared memory
CN103176833B (en) * 2013-03-11 2016-12-28 华为技术有限公司 A kind of data transmission method for uplink based on virtual machine, method of reseptance and system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2013095579A1 (en) * 2011-12-22 2013-06-27 Intel Corporation Indexed page address translation to reduce memory footprint in virtualized environments
CN102591702A (en) * 2011-12-31 2012-07-18 华为技术有限公司 Virtualization processing method, related device and computer system
CN102801729A (en) * 2012-08-13 2012-11-28 福建星网锐捷网络有限公司 Virtual machine message forwarding method, network switching equipment and communication system

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107168768A (en) * 2016-03-08 2017-09-15 深圳市深信服电子科技有限公司 The mapping method and device of equipment and virtual machine
CN107168768B (en) * 2016-03-08 2020-04-14 深信服科技股份有限公司 Mapping method and device of equipment and virtual machine
CN107783722A (en) * 2016-08-25 2018-03-09 星辰天合(北京)数据科技有限公司 Data transmission method and data forwarding device
CN107783722B (en) * 2016-08-25 2020-08-21 星辰天合(北京)数据科技有限公司 Data transmission method and data forwarding device

Also Published As

Publication number Publication date
WO2015013920A1 (en) 2015-02-05
CN104508632B (en) 2018-03-13

Similar Documents

Publication Publication Date Title
CN101529401B (en) Method and apparatus for distributing USB hub functions across a network
CN101252537B (en) Switching network communicating system, method and master control board
CN1042814A (en) On single communications line, transmit the method and the device thereof of many places data channel
CN202084028U (en) Modularized multi-serial port expanding device
CN1937782B (en) Frame device and its message transmitting method
CN103222237A (en) Data processing method, communication single board and equipment
CN101242284B (en) Communication method and network device based on SPI bus
CN104508632A (en) Data forwarding method, device and system
CN110519136B (en) RS485 multi-machine communication system capable of achieving self-adaptive networking
CN101917276A (en) High-speed and low-speed compatible interface component, bus terminal and bus communication system
CN101383788B (en) FlexRay-RS485 communication gateway and implementing method
CN209373581U (en) A kind of updating device of multiple driver
CN101202634A (en) Single board improving data utilization ratio and system and method of data transmission
CN111224871A (en) Method for realizing virtualized routing based on kvm and SRIOV and method thereof
CN101635683A (en) Method and device for transmitting service based on link aggregation
CN101610217A (en) Be implemented in the method and system of message transmission between extensible processor and the exchange chip
CN103368908A (en) Gateway protocol, gateway equipment and electrical equipment control system
CN101958800A (en) Extensible network element management system and method
CN107733801B (en) Method and equipment for receiving and sending message
CN110943939B (en) Network card unit, distributed network switch system and networking method
CN102869045A (en) Data transmission method and system
CN107251517A (en) The method and device of access net system, processing data bag
CN101471793B (en) Method and equipment for adapting velocity, exchange plate and cable fastener
CN101582055A (en) Serial port takeover method and device
CN106330787A (en) Data packet transmission method, devices and system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant