CN103931144B - A kind of method, apparatus and system communicated in virtual Domain - Google Patents

A kind of method, apparatus and system communicated in virtual Domain Download PDF

Info

Publication number
CN103931144B
CN103931144B CN201380001344.8A CN201380001344A CN103931144B CN 103931144 B CN103931144 B CN 103931144B CN 201380001344 A CN201380001344 A CN 201380001344A CN 103931144 B CN103931144 B CN 103931144B
Authority
CN
China
Prior art keywords
pcie
virtual domain
endpoint device
domain mark
message
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201380001344.8A
Other languages
Chinese (zh)
Other versions
CN103931144A (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 CN103931144A publication Critical patent/CN103931144A/en
Application granted granted Critical
Publication of CN103931144B publication Critical patent/CN103931144B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/34Signalling channels for network management communication

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The embodiment of the invention discloses a kind of method, apparatus and system communicated in virtual Domain, the fail safe communicated in peripheral component interconnection PCIE network can be improved, wherein method comprises: PCIE switch receives PCIE message, and described PCIE message carries virtual Domain mark; Obtain the object PCIE endpoint device that described virtual Domain mark is corresponding; Described PCIE message is sent to described object PCIE endpoint device.

Description

A kind of method, apparatus and system communicated in virtual Domain
Technical field
The embodiment of the present invention relates to computer realm, particularly relates to the method, apparatus and system of communication in virtual Domain (VirtualDomain is called for short VD).
Background technology
Along with peripheral component interconnection (PeripheralComponentInterconnectExpress, be called for short PCIE) development of bussing technique, PCIE bus is no longer only the data transmission bus between main frame and ancillary equipment, and expansion is the data communication bus between two main frames further.Between current main frame, the communication mode of main flow relies on transmission control protocol (TransmissionControlProtocol is called for short TCP)/internet protocol (InternetProtocol is called for short IP) storehouse.In order to the better compatible existing application program based on TCP/IP, industry proposes ICP/IP protocol and operates in PCIE bus (TCP/IPoverPCIE, be called for short IPoPCIE) this concept, namely ICP/IP protocol operates on PCIE network, and PCIE network here refers to and adopts PCIE bus to carry out the network communicated to connect between equipment.Main frame fictionalizes a PCIE virtual network interface card (VirtualNetworkInterfaceCard is called for short vNIC), and PCIEvNIC provides the link layer interface of data transmit-receive to tcpip stack.For upper level applications, the network equipment of PCIEvNIC and Ethernet does not have difference, the interface that application program is downward or tcpip stack, and need not be concerned about that link layer is Ethernet or PCIE link, use PCIE link that can be transparent communicates.
But IPoPCIE is carrying high performance while, also serious problem is faced with: in PCIE hardware, do not have Secure isolation function, there is serious problem in network security: as due to internet worm, network loop, and the network storm that hacker software causes causes whole network paralysis; The mutual visit information of people of different department, causes the problems such as information secret leakage.
Summary of the invention
In view of this, embodiments provide a kind of method, apparatus and system communicated in virtual Domain, the fail safe communicated in PCIE network can be improved.
First aspect, embodiments provides a kind of method communicated in virtual Domain, comprising:
Peripheral component interconnection PCIE switch receives PCIE message, and described PCIE message carries virtual Domain mark, and the VLANID that described virtual Domain is designated the TCP/IP packet that described PCIE message carries maps acquisition;
Obtain the object PCIE endpoint device that described virtual Domain mark is corresponding;
Described PCIE message is sent to described object PCIE endpoint device.
In the first possible implementation of first aspect: the object PCIE endpoint device obtaining described virtual Domain mark corresponding specifically comprises:
Obtain the port information that described virtual Domain mark is corresponding, determine described object PCIE endpoint device according to described port information.
In conjunction with the first possible implementation of first aspect, in the implementation that the second is possible, the corresponding relation of preset virtual Domain mark and port information on described PCIE switch;
The port information obtaining described virtual Domain mark corresponding specifically comprises: identify according to described virtual Domain, searches described virtual Domain mark and the corresponding relation of port information, obtains the port information that described virtual Domain mark is corresponding.
In conjunction with the implementation that the second of first aspect is possible, in the implementation that the third is possible, described virtual Domain mark comes from virtual Domain management server with the corresponding relation of port information, and is set up by described virtual Domain management server and safeguard.
In the 4th kind of possible implementation of first aspect: the object PCIE endpoint device obtaining described virtual Domain mark corresponding specifically comprises::
Identify according to described virtual Domain, search virtual Domain mark and the corresponding relation of PCIE endpoint device information, obtain the object PCIE endpoint device that described virtual Domain mark is corresponding.
In conjunction with the 4th kind of possible implementation of first aspect, in the 5th kind of possible implementation, described PCIE endpoint device information comprises the node number of PCIE endpoint device, and the node number of described PCIE endpoint device is the node number of the PCIE endpoint device of the physics at the node number of the PCIE endpoint device of the physics of described virtual Domain mark correspondence or the virtual machine place of described virtual Domain mark correspondence.
Second aspect, embodiments provides a kind of method communicated in virtual Domain, comprising:
Peripheral component interconnection PCIE endpoint device increases virtual Domain mark in PCIE message;
The PCIE message carrying described virtual Domain mark is sent to PCIE switch;
Described PCIE endpoint device increases virtual Domain mark and comprises in PCIE message:
Described PCIE endpoint device obtains the TCP/IP packet needing to send in virtual Domain from ICP/IP protocol stack, in described TCP/IP packet, add VLANID;
Described VLANID is mapped as described virtual Domain mark by described PCIE endpoint device, and be PCIE message by described TCP/IP packet encapsulation, described virtual Domain mark is increased to described PCIE message, so that described PCIE message is sent to the object PCIE endpoint device that described PCIE message is corresponding according to described VDID by described PCIE switch.
In the first possible implementation of second aspect, in described PCIE message, increase a kind of classes of messages, carry described virtual Domain mark by described classes of messages.
In the implementation that the second of second aspect is possible, in described PCIE message, increase a kind of routing mode, carry described virtual Domain mark by described routing mode.
The third aspect, embodiments provides a kind of peripheral component interconnection PCIE switch, comprising:
Receiving element, for receiving PCIE message, described PCIE message carries virtual Domain mark, and the VLANID that described virtual Domain is designated the TCP/IP packet that described PCIE message carries maps acquisition;
Acquiring unit, for obtaining object PCIE endpoint device corresponding to described virtual Domain mark;
Transmitting element, for sending described PCIE message to described object PCIE endpoint device.
In the first possible implementation of the third aspect, described acquiring unit, specifically for obtaining port information corresponding to described virtual Domain mark, determines described object PCIE endpoint device according to described port information.
In conjunction with the first possible implementation of the third aspect, in the implementation that the second is possible, also comprise memory cell, described memory cell is for preserving the corresponding relation of virtual Domain mark and port information;
Described acquiring unit specifically comprises for the port information obtaining described virtual Domain mark corresponding:
Identify according to described virtual Domain, search described virtual Domain mark and the corresponding relation of port information, obtain the port information that described virtual Domain mark is corresponding.
In the third possible implementation of the third aspect, described acquiring unit specifically for: identify according to described virtual Domain, search virtual Domain mark and the corresponding relation of PCIE endpoint device information, obtain the object PCIE endpoint device that described virtual Domain mark is corresponding.
In conjunction with the third possible implementation of the third aspect, in the 4th kind of possible implementation, described PCIE endpoint device information comprises the node number of PCIE endpoint device, and the node number of described PCIE endpoint device is the node number of the PCIE endpoint device of the physics at the node number of the PCIE endpoint device of the physics of described virtual Domain mark correspondence or the virtual machine place of described virtual Domain mark correspondence.
Fourth aspect, embodiments provides a kind of peripheral component interconnection PCIE endpoint device, comprising:
Processing unit, for increasing virtual Domain mark in PCIE message;
Transmitting element, for sending to PCIE switch by the PCIE message carrying described virtual Domain mark;
Described processing unit specifically for, obtain from ICP/IP protocol stack and need the TCP/IP packet that sends in virtual Domain, in described TCP/IP packet, add VLANID; Described VLANID is mapped as described virtual Domain mark, and be PCIE message by described TCP/IP packet encapsulation, described virtual Domain mark is increased to described PCIE message, so that described PCIE message is sent to the object PCIE endpoint device that described PCIE message is corresponding according to described VDID by described PCIE switch.
In the first possible implementation of fourth aspect, described processing unit, specifically for increasing a kind of classes of messages in described PCIE message, carries described virtual Domain mark by described classes of messages.
In the implementation that the second of fourth aspect is possible, described processing unit, specifically for increasing a kind of routing mode in described PCIE message, carries described virtual Domain mark by described routing mode.
5th aspect, embodiments provides a kind of controller, comprising:
Processor, memory, system bus and communication interface, described processor, connected by described system bus between described memory and described communication interface and complete mutual communication;
Described communication interface, for communicating with the peripheral component PCIE endpoint device that interconnects;
Described memory, for storing computer executed instructions;
Described processor, for running described computer executed instructions, performs arbitrary described method in first aspect.
6th aspect, embodiments provides a kind of computer program, comprises the computer-readable recording medium storing program code, and the instruction that described program code comprises is for performing arbitrary described method in first aspect.
7th aspect, embodiments provides a kind of PCIE system, comprises the arbitrary described PCIE switch of the third aspect and the arbitrary described PCIE endpoint device of fourth aspect.
Pass through such scheme, the method, apparatus and system communicated in virtual Domain that the embodiment of the present invention provides, PCIE switch receives the PCIE message carrying virtual Domain mark, only send described PCIE message to the object PCIE endpoint device that described virtual Domain mark is corresponding, achieve and only allow to carry out transfer of data between the PCIE endpoint device in same virtual Domain, thus the fail safe communicated in PCIE network can be improved, avoid network storm.
Accompanying drawing explanation
In order to be illustrated more clearly in the technical scheme of the embodiment of the present invention, below the accompanying drawing used required in describing embodiment is briefly described, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is the PCIE system schematic of the embodiment of the present invention 1;
Fig. 2 is the schematic diagram that in the embodiment of the present invention 1, VD divides;
The method flow diagram communicated in virtual Domain that Fig. 3 provides for the embodiment of the present invention 2;
Fig. 4 is a kind of schematic diagram of PCIE message expansion;
Fig. 5 is another schematic diagram of PCIE message expansion;
The PCIE message that Fig. 6 provides for the embodiment of the present invention transmits schematic diagram;
The structure chart of the PCIE endpoint device that Fig. 7 provides for the embodiment of the present invention 3;
The structure chart of the PCIE switch that Fig. 8 provides for the embodiment of the present invention 4.
The structural representation of the controller that Fig. 9 provides for the embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
The system architecture of the embodiment of the present invention
Peripheral component interconnection (the PeripheralComponentInterconnectExpress that Fig. 1 provides for the embodiment of the present invention 1, be called for short PCIE) system diagram, as shown in Figure 1, at least 2 PCIE endpoint devices 10, PCIE switch 20 (PCIESwitch) and a virtual Domain management server 30 is comprised; PCIE switch 20 is connected with all PCIE endpoint devices 10, realizes the data retransmission between PCIE endpoint device 10.Virtual Domain management server 30 is connected with PCIE switch 20, for the corresponding relation of management maintenance virtual Domain mark with port information, or the corresponding relation of management maintenance virtual Domain mark and PCIE endpoint device information.
Virtual Domain management server 30 in the embodiment of the present invention can be that the Daepori in system leads to PCIE endpoint device, and can be a special PCIE endpoint device, the present invention do concrete restriction yet.
PCIE endpoint device 10 in the embodiment of the present invention includes but not limited to root complex (Rootcomplex, referred to as RC), end points (Endpoint, referred to as EP), main frame (HOST).Root complex is made up of central processing unit (centralprocessingunit, referred to as CPU).End points is by interface network interface card, and serial port board, storage card or video card form.Main frame is specifically as follows common computer, mobile terminal, work station or server, private server etc.
When PCIE endpoint device 10 is main frame, each main frame runs and has operating system (OperatingSystem is called for short OS), at least one virtual machine (VirtualMachine is called for short VM) can be run under virtualized scene.
PCIE endpoint device in Same Physical net is marked off multiple network separated in logic, and these logical network separated just are called virtual Domain (VirtualDomain is called for short VD).Virtual Domain is that the fail safe in order to solve network puts forward, and is similar to the VLAN (VirtualLocalAreaNetwork is called for short VLAN) in Ethernet.Illustrate for Fig. 2, EP0, EP1, EP2, HOST3 and HOST4 constitute VD0, and EP3, EP4, EP5, HOST0, HOST1 and HOST2 constitute VD1,
The embodiment of the present invention is expanded PCIE agreement, by virtual Domain mark (VDID), the broadcast of same VD inside and unicast data stream can not be forwarded in other VD, only have the member in same VD just can receive.Introduce in detail below.
The method communicated in virtual Domain
As shown in Figure 3, the embodiment of the present invention 2 provides a kind of method communicated in virtual Domain, and the method can realize in the PCIE system shown in Fig. 1 and Fig. 2, but is not limited to the structure of the system shown in Fig. 1 and Fig. 2.Described method comprises:
S201, PCIE endpoint device increases virtual Domain mark in peripheral component interconnection PCIE message.
Concrete, if the upper layer application that PCIE endpoint device is run has packets need to send in virtual Domain (VD), upper layer application adds ICP/IP protocol stack to by needing the packet sent in VD, namely, the kernel state of upper layer application call operation system and User space interface, add ICP/IP protocol stack to by needing the TCP/IP packet sent in VD.Then in PCIE endpoint device, the VLAN module of operating system obtains the TCP/IP packet needing to send in VD from ICP/IP protocol stack, and TCP/IP packet adds VLANID.The TCP/IP packet that in PCIE endpoint device, this be with the addition of VLANID by the VLAN module of operating system imports PCIEvNIC driver module into.Then in PCIE endpoint device, the PCIEvNIC driver module of operating system obtains TCP/IP packet, and PCIEvNIC driver module is the tcpip stack of operating system and the interface of PCIE network link layer.Concrete, for convenience, the PCIE endpoint device obtaining the TCP/IP packet that these needs send in VD also can be called source PCIE endpoint device.
TCP/IP data envelope is installed to PCIE message by PCIEvNIC driver module, and extracts the VLANID of TCP/IP, then VLANID is mapped as the VDID of PCIE.This VDID is the ID of the virtual Domain that this TCP/IP packets need sends.
Preferably, PCIEvNIC driver module maintains a table: the corresponding relation of the VD of VLAN and the PCIE of TCP/IP.
The embodiment of the present invention, operate in PCIE bus (TCP/IPoverPCIE, be called for short IPoPCIE) for example with ICP/IP protocol and illustrate, but be not limited to IPoPCIE, other agreements operate in PCIE bus also passable.
Particularly, need to expand PCIE agreement, carry described VDID.
A kind of mode, with reference to shown in Fig. 4, can increase a kind of classes of messages, such as can increase MessageCode, carry described VDID in PCIE message.
Another kind of mode, with reference to shown in Fig. 5, can increase a kind of routing mode, carry described VDID by described routing mode in PCIE message.Such as, can increase in Type [2:0].In accompanying drawing 5, VD territory is 64bit, can support 64 VDID, and every 1 bit representation 1 VDID, is not limited to this carrying mode certainly, also can by 2 or more multidigit represent 1 VDID.
The implication of other fields in PCIE message, can with reference to the description of PCIE agreement.
In order to periphery component interconnection (PeripheralComponentInterconnect that can be compatible early stage, PCI) equipment, such as in order to can compatible legacy equipment, the embodiment of the present invention can only be expanded the extending space of PCIE, does not revise the configuration space field of legacy equipment use.Particularly, described VDID can be represented by the capabilityID of extending space.Correspondingly, which equipment can be found to support VD function by searching extending space.
The PCIE message carrying described virtual Domain mark is sent to PCIE switch by S202, PCIE endpoint device.
S203, PCIE switch receives described PCIE message.
This PCIE message carries virtual Domain mark.
S204, PCIE switch obtains object PCIE endpoint device corresponding to described virtual Domain mark.
A kind of implementation, the corresponding relation of preset virtual Domain mark and port (port) information on PCIE switch, identify according to described virtual Domain, search the corresponding relation of described virtual Domain mark and port information, obtain the port information that described virtual Domain mark is corresponding, and then determine described object PCIE endpoint device according to described port information.Port information, is used for distinguishing end points, and which end points expression is.
When be broadcast or multicast (Multicast, referred to as MC) message time, this object PCIE endpoint device can be represented by MC_Receive.
Illustrate as follows:
Suppose the MC_Receive=00011110b that the port0 that configures in PCIeSwitch is corresponding, the ID of the VD namely supported is 1,2,3,4; The ID of the MC_Receive=00001110b that port1 is corresponding, the VD namely supported is 1,2,3; The ID of the MC_Receive=00010100b that port2 is corresponding, the VD namely supported is 2,4; The ID of the MC_Receive=00010000b that port3 is corresponding, the VD namely supported is 4.So corresponding relation of virtual Domain mark and port information, as shown in table 1:
Table 1
Virtual net mark (VD ID) Port information
0 NULL
1 0,1
2 0,1,2
3 0,1
4 0,2,3
Wherein, the definition of MC_Receive is the same with the definition in PCIeMulticast standard.
If as shown in Figure 6, port0 meets RC; Port1 meets endpoint1, is called for short EP1; Port2 meets EP2; Port3 meets EP3.
By look-up table 1, if the PCIE endpoint device as transmit leg is RC, RC is by the port0 of PCIE switch, the PCIE message of VDID will be carried, send to this PCIE switch, the VDID wherein carried is 00000010b, and namely VDID is 1, then the object PCIE endpoint device of this message is EP1.
If the PCIE endpoint device as transmit leg is RC, the RC port0 by PCIE switch, the PCIE message of VDID will be carried, send to this PCIE switch, the VDID wherein carried is 00000100b, and namely VDID is 2, then the object PCIE endpoint device of this message is EP1 and EP2.
If the PCIE endpoint device as transmit leg is EP1, the EP1 port1 by PCIE switch, the PCIE message of VDID will be carried, send to this PCIE switch, the VDID wherein carried is 00010000b, and namely VDID is 4, then the object PCIE endpoint device of this message is EP2 and EP3.
Preferably, virtual Domain mark comes from virtual Domain management server with the corresponding relation of port information, set up by virtual Domain management server and carry out updating maintenance according to the change (such as, the interpolation/deletion of PCIE endpoint device) of PCIE endpoint device in virtual Domain.
Another kind of implementation, the corresponding relation of preset virtual Domain mark and PCIE endpoint device information on PCIE switch, identify according to described virtual Domain, search virtual Domain mark and the corresponding relation of PCIE endpoint device information, obtain the object PCIE endpoint device that described virtual Domain mark is corresponding.General, this corresponding relation can adopt form.
Particularly, PCIE endpoint device information comprises the node number of PCIE endpoint device.
Preferably, virtual Domain mark comes from virtual Domain management server with the corresponding relation of PCIE endpoint device information, set up by virtual Domain management server and carry out updating maintenance according to the change (such as, the interpolation/deletion of PCIE endpoint device) of PCIE endpoint device in virtual Domain.Virtual Domain management server can be a special PCIE endpoint device in network, also by any one the PCIE endpoint device in network as virtual Domain management server, foundation and the maintenance of the corresponding relation of virtual Domain mark and PCIE endpoint device information can be carried out.
The embodiment of the present invention illustrates for the corresponding relation between the node number of the PCIE endpoint device that record described virtual Domain in the corresponding relation of described virtual Domain mark and PCIE endpoint device information and identify and comprise in described virtual Domain, as table 2 illustrates: the VDID as shown in table is in the virtual Domain of 20, comprise 2 PCIE endpoint devices, node number is respectively 1 and 5; VDID shown in table is in the virtual Domain of 49, and comprise 5 PCIE endpoint devices, node number is respectively 2,3,4,5,7.
Table 2
Virtual Domain identifies The node number of PCIE endpoint device
20 1,5
49 2、3、4、5、7
If node number be 2 PCIE endpoint device send PCIE message, then only with at VDID be 49 VD in broadcast, therefore the node number of object PCIE endpoint device is 3,4,5 and 7.
S205, PCIE switch sends described PCIE message to described object PCIE endpoint device.
As shown in Figure 6, port0 meets RC; Port1 meets endpoint1, is called for short EP1; Port2 meets EP2; Port3 meets EP3.
It should be noted that for the switch of each PCIExpress, have a unique uplink port and several downlink ports in prior art, each port of switch has a virtual P2P bridge (PCItoPCIBridge) in inside.One or more PCIE endpoint device can be connected, such as EP or RC below each P2P bridge.Mutual by virtual PCI bus (VirtualPCIBus) between each P2P bridge.
For the implementation of table 1, by look-up table 1, if RC is by the port0 of PCIE switch, to carry the PCIE message of VDID, and send to this PCIE switch, the VDID wherein carried is 00000010b, namely VDID is 1, then this message eventually through port1 route to EP1.
If RC is by the port0 of PCIE switch, will carry the PCIE message of VDID, and send to this PCIE switch, the VDID wherein carried is 00000100b, and namely VDID is 2, then this message eventually through port1 route to EP1, by port2 route to EP2.
If EP1 is by the port1 of PCIE switch, will carry the PCIE message of VDID, and send to this PCIE switch, the VDID wherein carried is 00010000b, and namely VDID is 4, then this message eventually through port2 route to EP2, by port3 route to EP3.
MC_Receive in virtual Domain receives PCIE message, then the VDID will carried in message, and the VDID with MC_Receive oneself mates, if belong to a VD territory, then receives, and if not a VD territory, then abandons or reports an error.
Particularly, virtual Domain can be identified identical packet and add tcpip stack by network device interface by MC_Receive, thus gives corresponding upper layer application by data packet delivery.
Both can comprise the PCIE endpoint device of physics in virtual Domain in the embodiment of the present invention, also can comprise virtual machine.Namely the method described in the embodiment of the present invention, both the Secure isolation between physical machine had been gone for, the PCIE endpoint device of each physics is all in same PCIE network, these PCIE endpoint devices are divided in different VD according to business demand by user, PCIE endpoint device only in identical VD can intercom mutually, such as, when the PCIE endpoint device in a VD sends broadcast packet, the restriction of its range of transmission is exactly PCIE endpoint device in this VD, message can't be sent to PCIE endpoint device beyond this VD.Equally, method in the embodiment of the present invention is also applicable to the Secure isolation business scenario between virtual machine, between virtual machine and physical machine, virtual machine and physical machine are divided different VD by user, communication in VD only can physical machine in this VD and carrying out between virtual machine, can not be sent in virtual machine outside VD or physical machine.
Certainly, for virtual machine, what record in virtual Domain mark and the corresponding relation of PCIE endpoint device information is also the corresponding relation of the PCIE endpoint device of virtual Domain and physics, the PCIE endpoint device of physics is here exactly the PCIE endpoint device of the physics at virtual machine place, namely the corresponding relation of the node number of PCIE endpoint device that the virtual Domain recorded in virtual Domain mark and the corresponding relation of PCIE endpoint device information identify and comprises in virtual Domain, the node number of the node number of PCIE endpoint device here can be the node number of the PCIE endpoint device of the physics comprised in virtual Domain also can the be PCIE endpoint device of the physics at the virtual machine place comprised in virtual Domain.
In the embodiment of the present invention, PCIE switch receives the PCIE message carrying virtual Domain mark, only send described PCIE message to the object PCIE endpoint device that described virtual Domain mark is corresponding, achieve and only allow to carry out transfer of data between the PCIE endpoint device in same virtual Domain, thus the fail safe communicated in PCIE network can be improved, avoid network storm.And identify the transfer of data realized in VD based on virtual Domain, implementation is more flexible, and efficiency is higher.
The device of the embodiment of the present invention
The structure of the peripheral component interconnection PCIE endpoint device 10 that the embodiment of the present invention 3 provides as shown in Figure 7, comprising:
Processing unit 101, for increasing virtual Domain mark in PCIE message;
Transmitting element 102, for sending to PCIE switch by the PCIE message carrying described virtual Domain mark.
Preferably, processing unit 101, for increasing a kind of classes of messages in described PCIE message, carries described virtual Domain mark by described classes of messages.Specifically with reference to the description of Fig. 2 and Fig. 4 embodiment, can not repeat them here.
Preferably, processing unit 101, for increasing a kind of routing mode in described PCIE message, carries described virtual Domain mark by described routing mode.Specifically with reference to the description of Fig. 2 and Fig. 5 embodiment, can not repeat them here.
The structure of the peripheral component interconnection PCIE switch 20 that the embodiment of the present invention 4 provides as shown in Figure 8, comprising:
Receiving element 201, for receiving PCIE message, described PCIE message carries virtual Domain mark;
Acquiring unit 202, for obtaining object PCIE endpoint device corresponding to described virtual Domain mark;
Transmitting element 203, for sending described PCIE message to described object PCIE endpoint device.
In the optional execution mode of one, acquiring unit 202, specifically for obtaining port information corresponding to described virtual Domain mark, determines described object PCIE endpoint device according to described port information.
Alternatively, PCIE switch 20 also comprises memory cell 204, for preserving the corresponding relation of virtual Domain mark and port information.
Acquiring unit 202 specifically comprises for the port information obtaining described virtual Domain mark corresponding:
Identify according to described virtual Domain, search the described virtual Domain mark of memory cell 204 preservation and the corresponding relation of port information, obtain the port information that described virtual Domain mark is corresponding.
In the optional execution mode of another kind, acquiring unit 202 specifically for: identify according to described virtual Domain, search virtual Domain mark and the corresponding relation of PCIE endpoint device information, obtain the object PCIE endpoint device that described virtual Domain mark is corresponding.
Preferably, described PCIE endpoint device information comprises the node number of PCIE endpoint device, and the node number of described PCIE endpoint device is the node number of the PCIE endpoint device of the physics at the node number of the PCIE endpoint device of the physics of described virtual Domain mark correspondence or the virtual machine place of described virtual Domain mark correspondence.
Concrete flow process, can the description of reference method embodiment.
As shown in Figure 9, be the controller 300 that the embodiment of the present invention provides, comprise: comprise at least one processor 301, memory 305, at least one communication interface 304, and at least one system bus 302.
Processor 301, connected by system bus 302 between memory 305 and communication interface 304 and complete mutual communication;
Communication interface 304, for communicating with the peripheral component PCIE endpoint device that interconnects.
Memory 305 stores computer executed instructions, such as storage operation system 306, when controller 300 runs, processor 301 communicates with memory 305, processor 301 performs described computer executed instructions and makes controller 300 perform method described by the embodiment of the present invention 2, it is similar that it realizes principle and technique effect and preceding embodiment 2, repeats no more herein.Operating system 306, comprises various program, for realizing various basic business and processing hardware based task.
This controller 300 optionally comprises user interface 303, such as display, keyboard or other pointing devices.
In addition, also provide a kind of computer-readable medium in the embodiment of the present invention, comprise computer executed instructions, computer executed instructions can make controller 300 perform method described by the embodiment of the present invention 2, it is similar that it realizes principle and technique effect and preceding embodiment 2, repeats no more herein.
The embodiment of the present invention also provides a kind of PCIE system, comprises PCIE endpoint device as shown in Figure 7 and PCIE switch as shown in Figure 8.The concrete description with reference to preceding embodiment.
In the embodiment of the present invention, PCIE endpoint device sends the PCIE message carrying virtual Domain mark to PCIE switch, PCIE switch is made only to send described PCIE message to the object PCIE endpoint device that described virtual Domain mark is corresponding, achieve and only allow to carry out transfer of data between the PCIE endpoint device in same virtual Domain, thus the fail safe communicated in PCIE network can be improved, avoid network storm.And identify the transfer of data realized in VD based on virtual Domain, implementation is more flexible, and efficiency is higher.
Through the above description of the embodiments, those skilled in the art can be well understood to the present invention can use hardware implementing, or firmware realizes, or their compound mode realizes.When implemented in software, above-mentioned functions can be stored in computer-readable medium or as the one or more instruction on computer-readable medium or code and transmit.Computer-readable medium comprises computer-readable storage medium and communication media, and wherein communication media comprises any medium being convenient to transmit computer program from a place to another place.Storage medium can be any usable medium that computer can access.Be not limited to as example: computer-readable medium can comprise RAM, ROM, EEPROM, CD-ROM or other optical disc storage, magnetic disk storage medium or other magnetic storage apparatus or can be used in carrying or storing the expectation with instruction or data structure form program code and can by any other medium of computer access.In addition.Any connection can be suitable become computer-readable medium.Such as, if software be use coaxial cable, optical fiber cable, twisted-pair feeder, Digital Subscriber Line (DSL) or such as infrared ray, radio and microwave and so on wireless technology from website, server or other remote source, so the wireless technology of coaxial cable, optical fiber cable, twisted-pair feeder, DSL or such as infrared ray, wireless and microwave and so on be included in affiliated medium fixing in.As used in the present invention, dish (Disk) and dish (disc) comprise compression laser disc (CD), laser dish, laser disc, Digital Versatile Disc (DVD), floppy disk and Blu-ray Disc, the copy data of the usual magnetic of its mid-game, dish then carrys out the copy data of optics with laser.Combination above also should be included within the protection range of computer-readable medium.
In a word, the foregoing is only the preferred embodiment of technical solution of the present invention, be not intended to limit protection scope of the present invention.Within the spirit and principles in the present invention all, any amendment done, equivalent replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (18)

1. the method communicated in virtual Domain, is characterized in that, comprising:
Peripheral component interconnection PCIE switch receives PCIE message, and described PCIE message carries virtual Domain mark, and the VLAN ID VLANID that described virtual Domain is designated the TCP/IP packet that described PCIE message carries maps acquisition;
Obtain the object PCIE endpoint device that described virtual Domain mark is corresponding;
Described PCIE message is sent to described object PCIE endpoint device.
2. method according to claim 1, is characterized in that, the object PCIE endpoint device obtaining described virtual Domain mark corresponding specifically comprises:
Obtain the port information that described virtual Domain mark is corresponding, determine described object PCIE endpoint device according to described port information.
3. method according to claim 2, is characterized in that, the corresponding relation of preset virtual Domain mark and port information on described PCIE switch;
The port information obtaining described virtual Domain mark corresponding specifically comprises: identify according to described virtual Domain, searches described virtual Domain mark and the corresponding relation of port information, obtains the port information that described virtual Domain mark is corresponding.
4. method according to claim 3, is characterized in that, described virtual Domain mark comes from virtual Domain management server with the corresponding relation of port information, and is set up by described virtual Domain management server and safeguard.
5. method according to claim 1, is characterized in that, the object PCIE endpoint device obtaining described virtual Domain mark corresponding specifically comprises::
Identify according to described virtual Domain, search virtual Domain mark and the corresponding relation of PCIE endpoint device information, obtain the object PCIE endpoint device that described virtual Domain mark is corresponding.
6. method according to claim 5, it is characterized in that, described PCIE endpoint device information comprises the node number of PCIE endpoint device, and the node number of described PCIE endpoint device is the node number of the PCIE endpoint device of the physics at the node number of the PCIE endpoint device of the physics of described virtual Domain mark correspondence or the virtual machine place of described virtual Domain mark correspondence.
7. the method communicated in virtual Domain, is characterized in that, comprising:
Peripheral component interconnection PCIE endpoint device increases virtual Domain mark in PCIE message;
The PCIE message carrying described virtual Domain mark is sent to PCIE switch;
Described PCIE endpoint device increases virtual Domain mark and comprises in PCIE message:
Described PCIE endpoint device obtains the TCP/IP packet needing to send in virtual Domain from ICP/IP protocol stack, in described TCP/IP packet, add VLAN ID VLANID;
Described VLANID is mapped as described virtual Domain mark VDID by described PCIE endpoint device, and be PCIE message by described TCP/IP packet encapsulation, described VDID is increased to described PCIE message, so that described PCIE message is sent to the object PCIE endpoint device that described PCIE message is corresponding according to described VDID by described PCIE switch.
8. method according to claim 7, is characterized in that, in described PCIE message, increase a kind of classes of messages, carries described virtual Domain mark by described classes of messages.
9. method according to claim 7, is characterized in that, in described PCIE message, increase a kind of routing mode, carries described virtual Domain mark by described routing mode.
10. a peripheral component interconnection PCIE switch, is characterized in that, comprising:
Receiving element, for receiving PCIE message, described PCIE message carries virtual Domain mark, and the VLAN ID VLANID that described virtual Domain is designated the TCP/IP packet that described PCIE message carries maps acquisition;
Acquiring unit, for obtaining object PCIE endpoint device corresponding to described virtual Domain mark;
Transmitting element, for sending described PCIE message to described object PCIE endpoint device.
11. switches according to claim 10, is characterized in that, described acquiring unit, specifically for obtaining port information corresponding to described virtual Domain mark, determines described object PCIE endpoint device according to described port information.
12. switches according to claim 11, is characterized in that, also comprise memory cell, and described memory cell is for preserving the corresponding relation of virtual Domain mark and port information;
Described acquiring unit specifically comprises for the port information obtaining described virtual Domain mark corresponding:
Identify according to described virtual Domain, search described virtual Domain mark and the corresponding relation of port information, obtain the port information that described virtual Domain mark is corresponding.
13. switches according to claim 10, it is characterized in that, described acquiring unit specifically for: identify according to described virtual Domain, search virtual Domain mark and the corresponding relation of PCIE endpoint device information, obtain the object PCIE endpoint device that described virtual Domain mark is corresponding.
14. switches according to claim 13, it is characterized in that, described PCIE endpoint device information comprises the node number of PCIE endpoint device, and the node number of described PCIE endpoint device is the node number of the PCIE endpoint device of the physics at the node number of the PCIE endpoint device of the physics of described virtual Domain mark correspondence or the virtual machine place of described virtual Domain mark correspondence.
15. 1 kinds of peripheral component interconnection PCIE endpoint devices, is characterized in that, comprising:
Processing unit, for increasing virtual Domain mark in PCIE message;
Transmitting element, for sending to PCIE switch by the PCIE message carrying described virtual Domain mark;
Described processing unit specifically for, obtain from ICP/IP protocol stack and need the TCP/IP packet that sends in virtual Domain, in described TCP/IP packet, add VLAN ID VLANID; Described VLANID is mapped as described virtual Domain mark VDID, and be PCIE message by described TCP/IP packet encapsulation, described VDID is increased to described PCIE message, so that described PCIE message is sent to the object PCIE endpoint device that described PCIE message is corresponding according to described VDID by described PCIE switch.
16. equipment according to claim 15, is characterized in that, described processing unit, specifically for increasing a kind of classes of messages in described PCIE message, carries described virtual Domain mark by described classes of messages.
17. equipment according to claim 15, is characterized in that, described processing unit, specifically for increasing a kind of routing mode in described PCIE message, carries described virtual Domain mark by described routing mode.
18. 1 kinds of peripheral component interconnection PCIE systems, comprise the PCIE switch as described in claim 10-14 and the PCIE endpoint device as described in claim 15-17.
CN201380001344.8A 2013-07-08 2013-07-08 A kind of method, apparatus and system communicated in virtual Domain Active CN103931144B (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2013/078986 WO2015003295A1 (en) 2013-07-08 2013-07-08 Communication method, device and system in virtual domain

Publications (2)

Publication Number Publication Date
CN103931144A CN103931144A (en) 2014-07-16
CN103931144B true CN103931144B (en) 2015-11-25

Family

ID=51147973

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201380001344.8A Active CN103931144B (en) 2013-07-08 2013-07-08 A kind of method, apparatus and system communicated in virtual Domain

Country Status (2)

Country Link
CN (1) CN103931144B (en)
WO (1) WO2015003295A1 (en)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105450430B (en) * 2014-07-17 2019-02-26 华为技术有限公司 A kind of information transferring method and device
US9626300B2 (en) * 2015-07-27 2017-04-18 Google Inc. Address caching in switches
CN106933753B (en) 2015-12-31 2020-04-21 华为技术有限公司 Control method and device of intelligent interface card
CN107770072B (en) * 2016-08-18 2021-01-08 阿里巴巴集团控股有限公司 Method and equipment for sending and receiving message
CN109845194B (en) * 2016-09-30 2022-06-14 惠普发展公司,有限责任合伙企业 Host computing device, peripheral accessory and method for secure peripheral device communication
CN107566238B (en) * 2017-08-30 2020-03-27 成都安恒信息技术有限公司 Method for automatically identifying vlan frame and non-vlan frame through user-state configuration physical interface
CN113114569B (en) * 2020-01-10 2023-06-02 北京京东尚科信息技术有限公司 Method and device for unloading data stream
CN112835837B (en) * 2021-02-04 2023-06-23 北京百度网讯科技有限公司 Method for establishing data connection, related device and computer program product
CN115277287A (en) * 2022-06-17 2022-11-01 重庆长安汽车股份有限公司 Configurable CAN message acquisition method and system based on Ethernet

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101883158A (en) * 2010-06-28 2010-11-10 中兴通讯股份有限公司 Method and client for acquiring VLAN (Virtual Local Area Network) IDs (Identifiers) and network protocol addresses
CN102694717A (en) * 2011-03-23 2012-09-26 成都市华为赛门铁克科技有限公司 Method, device and system for transmitting messages on PCIE bus
CN102870381A (en) * 2012-06-29 2013-01-09 华为技术有限公司 PCIE switching system, apparatus and switching method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101883158A (en) * 2010-06-28 2010-11-10 中兴通讯股份有限公司 Method and client for acquiring VLAN (Virtual Local Area Network) IDs (Identifiers) and network protocol addresses
CN102694717A (en) * 2011-03-23 2012-09-26 成都市华为赛门铁克科技有限公司 Method, device and system for transmitting messages on PCIE bus
CN102870381A (en) * 2012-06-29 2013-01-09 华为技术有限公司 PCIE switching system, apparatus and switching method

Also Published As

Publication number Publication date
CN103931144A (en) 2014-07-16
WO2015003295A1 (en) 2015-01-15

Similar Documents

Publication Publication Date Title
CN103931144B (en) A kind of method, apparatus and system communicated in virtual Domain
US11659035B2 (en) Routing messages between cloud service providers
CN103200069B (en) A kind of method and apparatus of Message processing
JP5792894B2 (en) Port expansion topology information acquisition method, system, control bridge, and uplink port processing method and system
JP6722816B2 (en) Packet transfer
CN103118149B (en) Communication control method between same tenant's server and the network equipment
CN103259725A (en) Messaging method and network equipment
CN103404084A (en) MAC address forced forwarding device and method
JP2020520612A (en) Packet transmission method, edge device, and machine-readable storage medium
US8472420B2 (en) Gateway device
CN104125128A (en) Method for supporting VLAN (virtual local area network) by aid of Linux soft bridge
CN104378299A (en) Flow table entry processing method and device
US20200084146A1 (en) Routing between software defined networks and physical networks
CN105187311A (en) Message forwarding method and message forwarding device
US9479438B2 (en) Link aggregation based on virtual interfaces of VLANs
CN104734930B (en) Method and device for realizing access of Virtual Local Area Network (VLAN) to Variable Frequency (VF) network and Fiber Channel Frequency (FCF)
CN105052106A (en) Methods and systems for receiving and transmitting internet protocol (ip) data packets
CN105812221A (en) Data transmission device and method in virtual extensible local area network
CN108512737B (en) Data center IP layer interconnection method and SDN controller
CN103596649B (en) A kind of method, apparatus and system communicated in VLAN
US20190207982A1 (en) Lan/san network security management
CN107005476B (en) Method and first device for managing data frames in a switching network
CN102904776B (en) Detection method in a kind of VLAN, device and equipment
US12003417B2 (en) Communication method and apparatus
CN114615187B (en) Logic interface data communication method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant