CN106656539A - Internet access state detection and synchronization method and apparatus - Google Patents

Internet access state detection and synchronization method and apparatus Download PDF

Info

Publication number
CN106656539A
CN106656539A CN201510740584.0A CN201510740584A CN106656539A CN 106656539 A CN106656539 A CN 106656539A CN 201510740584 A CN201510740584 A CN 201510740584A CN 106656539 A CN106656539 A CN 106656539A
Authority
CN
China
Prior art keywords
network
network interfaces
network interface
primary
interfaces
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.)
Withdrawn
Application number
CN201510740584.0A
Other languages
Chinese (zh)
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.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN201510740584.0A priority Critical patent/CN106656539A/en
Priority to PCT/CN2016/093255 priority patent/WO2017076089A1/en
Publication of CN106656539A publication Critical patent/CN106656539A/en
Withdrawn legal-status Critical Current

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/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0813Configuration setting characterised by the conditions triggering a change of settings
    • H04L41/0816Configuration setting characterised by the conditions triggering a change of settings the condition being an adaptation, e.g. in response to network events

Landscapes

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

Abstract

The invention provides an Internet access state detection and synchronization method. The method comprises the steps of querying whether a physical function (PF) Internet access corresponding to a current virtual function (VF) Internet access is a main Internet access; and carrying out switching/keeping operations of main/standby states of the VF Internet access according to a querying result. The invention also provides an Internet access state detection and synchronization apparatus.

Description

A kind of network interface state-detection and synchronous method and device
Technical field
The present invention relates to cloud operating system is virtualized, more particularly to a kind of single I/O virtualizations (SR-IOV, Single-Root I/O Virtualization) virtual functions of the network interface under active and standby joint (bond) pattern (VF, Virtual Function) & physical functions (PF, Physical Function) activestandby state detection and synchronization Method and device.
Background technology
SR-IOV standards allow efficiently to be shared between I/O guest domains quick peripheral component interconnect (PCIe, Peripheral Component Interconnect Express) equipment.SR-IOV equipment can have tens of The individual VF associated with certain PF.It is exactly that multiple cloud main frames share same support than more typical application The PCIe network interfaces of SR-IOV standards, Fig. 1 is that two cloud main frames of the present invention share a SR-IOV network interface Schematic network structure, as shown in figure 1, each cloud main frame can use one or more VF network interfaces, cloud Share physical internet ports between main frame to complete to be interacted with external network.
In the scene very high to reliability requirement, the mode of the shared list physical internet ports of multiple cloud main frames can not Meet the application demand of physical link level redundancy.For this scene, common solution is by SR-IOV A pair of network interfaces composition bond active-standby modes (active-standby) of network interface, all cloud main frames of common service. Fig. 2 enables SR-IOV network interface bond structural representations for cloud main frame of the present invention, as shown in Fig. 2 main frame exists During establishment, two VF network interfaces of a pair of SR-IOV network interfaces can be simultaneously bound, the two VF network interfaces are due to thing Different network interfaces are belonged in reason, it is possible to for the function that cloud main frame provides physical link redundancy.
Existing most of cloud operating systems all support the function of SR-IOV network interface bond, in actually used mistake Cheng Zhong, cloud operating system is responsible for management and control this activestandby state to physical internet ports, and notifies that PF drives in real time more Newly.Because the network interface of physical host has active and standby point, therefore, the cloud main frame that physical host is operated above just is needed The activestandby state of network interface is paid close attention to, and needs to perceive the process of network interface active-standby switch, when VF and PF network interfaces State is kept after synchronization, it is ensured that the promptness and accuracy of Message processing.
Realize that cloud main frame perceives the state of physical internet ports, it is necessary to which a set of VF drives and drives communication equipment with PF System, but SR-IOV standards are not defined the realization mechanism of this communication line.The hardware of current main flow Manufacturer can support that the communication characteristic, Fig. 3 show for Mailbox Communication Mechanism for Embedded of the present invention by the way of mail box notice It is intended to, as described in Figure 3, comes to be realized for each VF by using a series of hardware mailbox and doorbell register This communication channel.But, the VF based on mail box notice mode and PF that hardware vendor realizes in driving Communication information between network interface is only limitted to VF and resets, configure VF MAC Address, arrange multicast address, set Put VLAN filters, basic parameter settings such as maximum bag length etc. are set, these parameters are on cloud main frame Using arriving when VF network interfaces are initialized when electric.
At present, it is also based on the channel of software and drives communication function with PF realizing that VF drives, but needs Support is provided by Hypervisor subsystems.The implementation method of the channel of each manufacturer is simultaneously differed, because This, needs client to initiate self these supports.And, it is not that Hypervisor productions commercial city used provides Message mechanism based on software.
It can be seen that, for the VF&PF network interface active/standby links synchronisation requirements in cloud main frame running, existing skill Art cannot also be realized.
The content of the invention
In view of this, the embodiment of the present invention is expected to provide a kind of network interface state-detection and synchronous method and device, PF network interfaces can be kept consistent with VF network interface activestandby states.
To reach above-mentioned purpose, the technical scheme is that what is be achieved in that:
The invention provides a kind of network interface state-detection and synchronous method, methods described includes:
Whether the corresponding physical function PF network interfaces of inquiry current virtual function VF network interface are primary network interface;
According to Query Result, the switching/holding operation of VF network interface activestandby states is carried out.
It is described to inquire about whether the corresponding PF network interfaces of current VF network interfaces are that primary network interface includes in such scheme:
First network port driving sends VF network interface synchronous query message to the second network port driving, inquires about current VF Whether the corresponding physical function PF network interfaces of network interface are primary network interface;
Wherein, the current VF network interfaces are current primary VF network interfaces;
First network port driving is VF network port drivings, and second network port driving is PF network port drivings.
It is described whether to inquire about the corresponding physical function PF network interfaces of current virtual function VF network interface in such scheme Include for primary network interface:Periodically, and/or whether the corresponding PF network interfaces of the current VF network interfaces of real-time query are Primary network interface.
It is described according to Query Result in such scheme, carry out the switching/holding operation of VF network interface activestandby states Including:
When currently the corresponding PF network interfaces of VF network interfaces are primary network interface, carry out VF network interfaces activestandby state and keep behaviour Make;The corresponding PF network interfaces of current VF network interfaces for it is non-primary use network interface when, carry out VF network interface activestandby states and cut Change operation.
In such scheme, methods described also includes:
PERCOM peripheral communication is carried out using the newest primary VF network interfaces for switching over/keeping after operation.
Present invention also offers a kind of network interface state-detection and sychronisation, described device includes:Enquiry module, Handover module, wherein,
The enquiry module, be for inquiring about the corresponding physical function PF network interfaces of current virtual function VF network interface It is no for primary network interface;
The handover module, for according to Query Result, the switching/holding behaviour for carrying out VF network interface activestandby states Make.
In such scheme, the enquiry module specifically for:
First network port driving sends VF network interface synchronous query message to the second network port driving, inquires about current VF Whether the corresponding physical function PF network interfaces of network interface are primary network interface;
Wherein, the current VF network interfaces are current primary VF network interfaces;
First network port driving is VF network port drivings, and second network port driving is PF network port drivings.
In such scheme, the enquiry module specifically for:Periodicity, and/or the current VF nets of real-time query Whether the corresponding PF network interfaces of mouth are primary network interface.
In such scheme, the handover module specifically for:Currently the corresponding PF network interfaces of VF network interfaces are primary During network interface, carry out VF network interfaces activestandby state and keep operation;Currently the corresponding PF network interfaces of VF network interfaces are non-master During with using network interface, VF network interfaces master/slave switchover operation is carried out.
In such scheme, described device also includes communication module, is used for:Using switching over/keep operation Newest primary VF network interfaces afterwards carry out PERCOM peripheral communication.
Network interface state-detection and synchronous method and device that the embodiment of the present invention is provided, inquire about first current empty Intend whether the corresponding physical function PF network interfaces of function VF network interface are primary network interface;Then according to Query Result, Carry out the switching/holding operation of VF network interface activestandby states.So, it is possible to keep PF network interfaces and VF network interface masters For state always, so as to ensure the promptness and accuracy of Message processing.
Description of the drawings
Fig. 1 is the schematic network structure that two cloud main frames of the present invention share a SR-IOV network interface;
Fig. 2 enables SR-IOV network interface bond structural representations for cloud main frame of the present invention;
Fig. 3 is embodiment of the present invention Mailbox Communication Mechanism for Embedded schematic diagram;
Fig. 4 is the network interface state-detection of the embodiment of the present invention one and synchronous method schematic flow sheet;
Fig. 5 is the network interface state-detection of the embodiment of the present invention two and synchronous method schematic flow sheet;
Fig. 6 is embodiment of the present invention network interface state-detection and sychronisation structural representation.
Specific embodiment
In the embodiment of the present invention, first inquiring about the corresponding physical function PF network interfaces of current virtual function VF network interface is It is no for primary network interface;Then according to Query Result, the switching/holding operation of VF network interface activestandby states is carried out.
Below in conjunction with the accompanying drawings and specific embodiment, the enforcement of technical solution of the present invention is made further to retouch in detail State.Fig. 4 is the network interface state-detection of the embodiment of the present invention one and synchronous method schematic flow sheet, as shown in figure 4, The present embodiment network interface state-detection and synchronous method are comprised the following steps:
Step 401:Whether the corresponding physical function PF network interfaces of inquiry current virtual function VF network interface are primary Network interface;
Wherein, whether the corresponding PF network interfaces of the current VF network interfaces of the inquiry are that primary network interface includes:First net Mouth drives and sends VF network interface synchronous query message to the second network port driving, inquires about the corresponding thing of current VF network interfaces Whether reason function PF network interface is primary network interface;Wherein, the current VF network interfaces are current primary VF network interfaces; First network port driving is VF network port drivings, and second network port driving is PF network port drivings.
Specifically, based on mail box notice pattern, by primary VF network interfaces synchronous query message, it is used for Realize the detection and synchronization of the state of VF&PF network interfaces, enabling when PF network interface main and standby relations change When, VF interfaces can synchronously be realized switching;Wherein, the VF network interfaces synchronous query message can adopt as follows Form of message:XXX_VF_GET_MASTER;Wherein, XXX represents driving type, such as:IXGBE;
The transmitting terminal of the VF network interfaces synchronous query message is the driver of VF network interfaces, and receiving terminal is PF Network port driving program.Transmitting terminal receives the mailbox of VF network interface synchronous query message diliveries to receiving terminal Response message is delivered again postback the mailbox of sending end after processing is completed by end, so that transmitting terminal can be according to knot What fruit value did corresponding VF ports switches/keeps operation.
In order to prevent obscuring, it is desirable to when cloud main frame VF network port drivings send request message, once can only be with one The HW information of the corresponding PF network interfaces of individual current primary VF network interfaces, i.e., current primary VF network interfaces synchronous query Message.PF network port drivings according to the corresponding activestandby state of HW information inquiry PF network interfaces, in response message It is middle to carry concrete Query Result.The Query Result can adopt various ways, for example:The result is 0 Represent that the corresponding PF network interfaces of current primary VF network interfaces are primary PF network interfaces, Query Result is non-zero to represent current The corresponding PF network interfaces of primary VF network interfaces are standby network interface.
In the embodiment of the present invention, can be with selection cycle, and/or the corresponding PF of the current VF network interfaces of real-time query Whether network interface is primary network interface.
In the embodiment of the present invention, the network interface state-detection and switching are mainly used in scene:
Scene one:On cloud main frame during electricity, it is the corresponding VF of primary PF network interfaces to need which VF network interface inquired about Network interface, so subsequently can just carry out correct transmitting-receiving operation.
Scene two:Cloud main frame needs the PF nets of the corresponding bottom of real-time perception VF network interface in running The activestandby state of mouth, after PF network interfaces occur active-standby switch, VF interfaces also will switch accordingly.
Scene three:Cloud main frame carries out switching for standby VF interfaces in running, if desired, then need Judge whether the new corresponding PF network interfaces of primary VF network interfaces can use.
For scene two, in the embodiment of the present invention, can be corresponding using the current VF network interfaces of periodic queries Whether PF network interfaces are primary network interface, specifically,
On cloud main frame after electricity, VF network port drivings program timing sends XXX_VF_GET_MASTER inquiries Message inquires about the activestandby state of the current corresponding PF network interfaces of VF network interfaces to PF network port drivings.Work as response When informing that currently the corresponding PF network interfaces of primary VF network interfaces are not primary PF network interfaces in message, execution step 402 In VF network interface switching operations;When response message points out the used time based on the corresponding PF network interfaces of current VF network interfaces, VF network interfaces in execution step 402 switch holding operation.In the embodiment of the present invention, the polling cycle can Depending on according to actual VF transmitting-receiving buffer queue situations, it is also possible to set according to other factors.Generally, The new corresponding message buffer of primary VF network interfaces can cache the message of several seconds or so, therefore, it can by The polling cycle is set to several seconds, if during this period of time VF network interfaces complete active-standby switch, then will not Too big packet loss is caused to affect.
For scene one and scene three, in the embodiment of the present invention, the current VF network interfaces of real-time query can be adopted Whether corresponding PF network interfaces are primary network interface, when uncertain current which the VF interface of cloud main frame it is primary but When doing key operation at once, real-time query message can be directly initiated.Being judged whether according to response results can To do the operation of VF network interfaces masterslave switchover.
In the embodiment of the present invention, can simultaneously using periodicity and the corresponding PF of the current VF network interfaces of real-time query Whether network interface is primary network interface.I.e. when on cloud main frame electricity or cloud main frame need to carry out active and standby VF in running In the case of the switching of interface, whether the corresponding PF network interfaces of the current VF network interfaces of real-time query are primary network interface; When in cloud main frame normal course of operation, whether the corresponding PF network interfaces of the current VF network interfaces of periodic queries are primary Network interface.
Step 402:According to Query Result, the switching/holding operation of VF network interface activestandby states is carried out.
Specifically, described according to Query Result, carrying out the switching/holding operation of VF network interface activestandby states includes:
When currently the corresponding PF network interfaces of VF network interfaces are primary network interface, carry out VF network interfaces activestandby state and keep behaviour Make;The corresponding PF network interfaces of current VF network interfaces for it is non-primary use network interface when, carry out VF network interface activestandby states and cut Change operation.
In the embodiment of the present invention, only so that current VF network interfaces are primary network interface as an example, this model is not limited Enclose, in actual applications, current VF network interfaces can also be standby network interface, when the VF network interfaces are standby net During mouth, only simple replacement need to be carried out according to network interface state-detection described in the embodiment of the present invention and synchronous method Realize.
In the embodiment of the present invention, methods described also includes:It is newest after operation using switching over/keeping Primary VF network interfaces carry out PERCOM peripheral communication.
Fig. 5 is the network interface state-detection of the embodiment of the present invention two and synchronous method schematic flow sheet, as shown in figure 5, Cloud operating system supported after the function of SR-IOV network interface bond, needs management and control this active and standby shape to physical internet ports State, and notify that PF drives real-time update.VF drives the activestandby state for needing real-time query PF network interfaces, root Switch VF network interfaces in time according to result.Network interface state-detection and synchronous method described in the embodiment of the present invention include with Lower step:
Step 501:Cloud platform opens a backstage timed task, the active and standby situation of monitor in real time physical internet ports;
Step 502:Cloud platform notifies that PF network port drivings preserve current physical internet ports activestandby state;
Step 503:VF network port drivings actively send XXX_VF_GET_MASTER message, and inquiry is worked as Whether the corresponding PF network interfaces of front VF are primary PF network interfaces;
Step 504:VF network port drivings carry out the switching/holding operation of VF network interfaces according to response results;
Step 505:PERCOM peripheral communication is carried out using newest primary VF network interfaces.
Network interface state-detection described in the embodiment of the present invention and synchronous method can realize VF&PF network interface link masters Standby synchronizing function, on cloud main frame during electricity, can in time ensure the correct transmitting-receiving of message;In bottom Physical Network The timely perception of upper-layer service is can ensure that during mouth switching, strengthens the reliability of cloud host service.
The embodiment of the present invention additionally provides a kind of network interface state-detection and sychronisation, and Fig. 6 is present invention enforcement Example network interface state-detection and sychronisation structural representation, as shown in fig. 6, described device includes:Inquiry mould Block 61, handover module 62, wherein,
The enquiry module 61, for inquiring about the corresponding physical function PF nets of current virtual function VF network interface Whether mouth is primary network interface;
Enquiry module 61 described in the embodiment of the present invention specifically for:It is same that first network port driving sends VF network interfaces Whether to the second network port driving, inquire about the corresponding physical function PF network interfaces of current VF network interfaces is step query messages Primary network interface;Wherein, the current VF network interfaces are current primary VF network interfaces;First network port driving is VF network port drivings, second network port driving is PF network port drivings.
Specifically, enquiry module 61 is based on mail box notice pattern, by primary VF network interfaces synchronous query Message, for realizing the detection and synchronization of the state of VF&PF network interfaces, enabling when the active and standby pass of PF network interfaces When system changes, VF interfaces can synchronously be realized switching;Wherein, the VF network interfaces synchronous query message can With using following form of message:XXX_VF_GET_MASTER;Wherein, XXX represents driving type, Such as:IXGBE;
The transmitting terminal of the VF network interfaces synchronous query message is the driver of VF network interfaces, and receiving terminal is PF Network port driving program.Transmitting terminal receives the mailbox of VF network interface synchronous query message diliveries to receiving terminal Response message is delivered again postback the mailbox of sending end after processing is completed by end, so that transmitting terminal can be according to knot What fruit value did corresponding VF ports switches/keeps operation.
In order to prevent obscuring, it is desirable to when enquiry module 61 sends request message, once can only be current main with one With the HW information of the corresponding PF network interfaces of VF network interfaces, i.e., current primary VF network interfaces synchronous query message.PF Network port driving carries in the response message tool according to the corresponding activestandby state of HW information inquiry PF network interfaces Body Query Result.The Query Result can adopt various ways, for example:The result is that 0 expression is current The corresponding PF network interfaces of primary VF network interfaces are primary PF network interfaces, and Query Result is non-zero to represent current primary VF The corresponding PF network interfaces of network interface are standby network interface.
In the embodiment of the present invention, the enquiry module 61 can periodicity, and/or the current VF of real-time query Whether the corresponding PF network interfaces of network interface are primary network interface.
In the embodiment of the present invention, the network interface state-detection and switching are mainly used in scene:
Scene one:On cloud main frame during electricity, it is the corresponding VF of primary PF network interfaces to need which VF network interface inquired about Network interface, so subsequently can just carry out correct transmitting-receiving operation.
Scene two:Cloud main frame needs the PF nets of the corresponding bottom of real-time perception VF network interface in running The activestandby state of mouth, after PF network interfaces occur active-standby switch, VF interfaces also will switch accordingly.
Scene three:Cloud main frame carries out switching for standby VF interfaces in running, if desired, then need Judge whether the new corresponding PF network interfaces of primary VF network interfaces can use.
For scene two, in the embodiment of the present invention, can be corresponding using the current VF network interfaces of periodic queries Whether PF network interfaces are primary network interface, specifically,
On cloud main frame after electricity, the control VF network port drivings program timing of enquiry module 61 sends XXX_VF_GET_MASTER query messages inquire about current VF network interfaces corresponding to PF network port drivings The activestandby state of PF network interfaces.In the embodiment of the present invention, the polling cycle can receive and dispatch according to actual VF Depending on buffer queue situation, it is also possible to set according to other factors.Generally, new primary VF network interfaces correspondence Message buffer can cache the message of several seconds or so, therefore, it can be set to the polling cycle several seconds, If during this period of time VF network interfaces complete active-standby switch, then not resulting in too big packet loss affects.
For scene one and scene three, in the embodiment of the present invention, enquiry module 61 can be worked as using real-time query Whether the corresponding PF network interfaces of front VF network interfaces are primary network interface, when uncertain current which VF of cloud main frame connects It is mouthful primary but when doing key operation at once, it is direct that enquiry module 61 can control VF network port driving programs Initiate real-time query message.Judged whether that the operation of VF network interfaces masterslave switchover can be done according to response results.
In the embodiment of the present invention, enquiry module 61 can simultaneously using periodicity and the current VF nets of real-time query Whether the corresponding PF network interfaces of mouth are primary network interface.I.e. when on cloud main frame electricity or cloud main frame need in running In the case of carrying out the switching of active and standby VF interfaces, the corresponding PF network interfaces of the current VF network interfaces of real-time query are It is no for primary network interface;When in cloud main frame normal course of operation, the corresponding PF of the current VF network interfaces of periodic queries Whether network interface is primary network interface.
The handover module 62, for according to Query Result, carrying out the switching/holding of VF network interface activestandby states Operation.
In the embodiment of the present invention, the handover module 62 specifically for:The corresponding PF nets of current VF network interfaces When mouth is primary network interface, carries out VF network interfaces activestandby state and keep operation;The corresponding PF nets of current VF network interfaces Mouthful for it is non-primary use network interface when, carry out the master/slave switchover of VF network interfaces operation.
In the embodiment of the present invention, only so that current VF network interfaces are primary network interface as an example, this model is not limited Enclose, in actual applications, current VF network interfaces can also be standby network interface, when the VF network interfaces are standby net During mouth, only simple replacement need to be carried out according to network interface state-detection described in the embodiment of the present invention and synchronous method Realize.
In the embodiment of the present invention, described device also includes communication module 63, is used for:Using switching over/keep Newest primary VF network interfaces after operation carry out PERCOM peripheral communication.
Fig. 6 and shown in network interface state-detection and sychronisation in each processing module realize function, can Understand with reference to the associated description of aforementioned network interface state-detection and synchronous method.Those skilled in the art should manage Solution, the function of each processing module can be by running on place in the network interface state-detection and sychronisation shown in Fig. 6 Manage the program on device and realize, also can be realized by specific logic circuit, such as:Can be by central authorities' process Device (CPU), microprocessor (MPU), digital signal processor (DSP) or field programmable gate array (FPGA) realize.
In several embodiments provided by the present invention, it should be understood that disclosed method and device, can be with Realize in other way.Device embodiment described above is only schematic, for example, described The division of module, only a kind of division of logic function can have other dividing mode when actually realizing, Such as:Multiple module or components can be combined, or be desirably integrated into another system, or some features can be neglected Slightly, or do not perform.In addition, the communication connection each other of shown or discussed each part can be INDIRECT COUPLING or communication connection by some network interfaces, equipment or module, can be it is electrical, machinery or Other forms.
It is above-mentioned as separating component explanation module can be or may not be it is physically separate, as The part that module shows can be or may not be physical module, you can positioned at a place, also may be used To be distributed on multiple mixed-media network modules mixed-medias;Part or all of module therein can be according to the actual needs selected Realize the purpose of this embodiment scheme.
In addition, each functional module in various embodiments of the present invention can be fully integrated into a processing module, Can also be each module individually as a module, it is also possible to which two or more modules are integrated in one In individual module;Above-mentioned integrated module both can be realized in the form of hardware, it would however also be possible to employ hardware adds soft The form of part functional module is realized.
One of ordinary skill in the art will appreciate that:Realize that all or part of step of said method embodiment can To be completed by the related hardware of programmed instruction, aforesaid program can be stored in embodied on computer readable storage In medium, the program upon execution, performs the step of including said method embodiment;And aforesaid storage is situated between Matter includes:Movable storage device, read-only storage (ROM, Read-Only Memory), magnetic disc or CD etc. is various can be with the medium of store program codes.
Or, if the above-mentioned integrated module of the embodiment of the present invention is realized and made in the form of software function module For independent production marketing or when using, it is also possible in being stored in a computer read/write memory medium.Base In such understanding, what the technical scheme of the embodiment of the present invention substantially contributed in other words to prior art Part can be embodied in the form of software product, and the computer software product is stored in a storage medium In, including some instructions are used so that computer equipment (can be personal computer, server or Person's network equipment etc.) perform all or part of each embodiment methods described of the invention.And aforesaid storage Medium includes:Movable storage device, ROM, magnetic disc or CD etc. are various can be with Jie of store program codes Matter.
Network interface state-detection and synchronous method, device described in the embodiment of the present invention be only with above-described embodiment Example, but this is not limited only to, it will be understood by those within the art that:It still can be to aforementioned each reality Apply the technical scheme described in example to modify, either which part or all technical characteristic are equal to Replace;And these modifications or replacement, do not make the essence disengaging various embodiments of the present invention of appropriate technical solution The scope of technical scheme.
Presently preferred embodiments of the present invention is the foregoing is only, protection scope of the present invention is not intended to limit.

Claims (10)

1. a kind of network interface state-detection and synchronous method, it is characterised in that methods described includes:
Whether the corresponding physical function PF network interfaces of inquiry current virtual function VF network interface are primary network interface;
According to Query Result, the switching/holding operation of VF network interface activestandby states is carried out.
2. method according to claim 1, it is characterised in that the current VF network interfaces of the inquiry are corresponding Whether PF network interfaces are that primary network interface includes:
First network port driving sends VF network interface synchronous query message to the second network port driving, inquires about current VF Whether the corresponding physical function PF network interfaces of network interface are primary network interface;
Wherein, the current VF network interfaces are current primary VF network interfaces;
First network port driving is VF network port drivings, and second network port driving is PF network port drivings.
3. method according to claim 1, it is characterised in that the inquiry current virtual function VF net Whether the corresponding physical function PF network interfaces of mouth are that primary network interface includes:Periodicity, and/or real-time query are current Whether the corresponding PF network interfaces of VF network interfaces are primary network interface.
4. method according to claim 1, it is characterised in that described according to Query Result, carries out VF The switching of network interface activestandby state/holding operation includes:
When currently the corresponding PF network interfaces of VF network interfaces are primary network interface, carry out VF network interfaces activestandby state and keep behaviour Make;The corresponding PF network interfaces of current VF network interfaces for it is non-primary use network interface when, carry out VF network interface activestandby states and cut Change operation.
5. according to Claims 1-4 any one methods described, it is characterised in that methods described also includes:
PERCOM peripheral communication is carried out using the newest primary VF network interfaces for switching over/keeping after operation.
6. a kind of network interface state-detection and sychronisation, it is characterised in that described device includes:Enquiry module, Handover module, wherein,
The enquiry module, be for inquiring about the corresponding physical function PF network interfaces of current virtual function VF network interface It is no for primary network interface;
The handover module, for according to Query Result, the switching/holding behaviour for carrying out VF network interface activestandby states Make.
7. device according to claim 6, it is characterised in that the enquiry module specifically for:
First network port driving sends VF network interface synchronous query message to the second network port driving, inquires about current VF Whether the corresponding physical function PF network interfaces of network interface are primary network interface;
Wherein, the current VF network interfaces are current primary VF network interfaces;
First network port driving is VF network port drivings, and second network port driving is PF network port drivings.
8. device according to claim 6, it is characterised in that the enquiry module specifically for:Cycle Whether property, and/or the corresponding PF network interfaces of the current VF network interfaces of real-time query are primary network interface.
9. device according to claim 6, it is characterised in that the handover module specifically for:Currently When the corresponding PF network interfaces of VF network interfaces are primary network interface, carry out VF network interfaces activestandby state and keep operation;Currently The corresponding PF network interfaces of VF network interfaces for it is non-primary use network interface when, carry out the master/slave switchover of VF network interfaces operation.
10. according to Claims 1-4 any one described device, it is characterised in that described device also includes Communication module, is used for:Outside is carried out using the newest primary VF network interfaces for switching over/keeping after operation Communication.
CN201510740584.0A 2015-11-04 2015-11-04 Internet access state detection and synchronization method and apparatus Withdrawn CN106656539A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201510740584.0A CN106656539A (en) 2015-11-04 2015-11-04 Internet access state detection and synchronization method and apparatus
PCT/CN2016/093255 WO2017076089A1 (en) 2015-11-04 2016-08-04 Network port state detecting and synchronizing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510740584.0A CN106656539A (en) 2015-11-04 2015-11-04 Internet access state detection and synchronization method and apparatus

Publications (1)

Publication Number Publication Date
CN106656539A true CN106656539A (en) 2017-05-10

Family

ID=58661690

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510740584.0A Withdrawn CN106656539A (en) 2015-11-04 2015-11-04 Internet access state detection and synchronization method and apparatus

Country Status (2)

Country Link
CN (1) CN106656539A (en)
WO (1) WO2017076089A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111131026B (en) * 2019-12-26 2022-06-21 深信服科技股份有限公司 Communication method, device, equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100115174A1 (en) * 2008-11-05 2010-05-06 Aprius Inc. PCI Express Load Sharing Network Interface Controller Cluster
US20120002535A1 (en) * 2010-06-30 2012-01-05 Oracle America, Inc. Method and system for distributing network traffic among multiple direct hardware access datapaths
CN103609077A (en) * 2013-06-18 2014-02-26 华为技术有限公司 Method, apparatus and system for data transmission, and physical adapter
CN104272288A (en) * 2012-06-08 2015-01-07 英特尔公司 SR-IOV failover & aggregation control system to ensure within-physical-port veb loopback

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8533713B2 (en) * 2011-03-29 2013-09-10 Intel Corporation Efficent migration of virtual functions to enable high availability and resource rebalance
JP5874879B2 (en) * 2012-11-26 2016-03-02 株式会社日立製作所 I / O device control method and virtual computer system
CN103281308B (en) * 2013-05-08 2017-04-26 大唐移动通信设备有限公司 Data transmission method and data transmission equipment
WO2015139327A1 (en) * 2014-03-21 2015-09-24 华为技术有限公司 Failover method, apparatus and system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100115174A1 (en) * 2008-11-05 2010-05-06 Aprius Inc. PCI Express Load Sharing Network Interface Controller Cluster
US20120002535A1 (en) * 2010-06-30 2012-01-05 Oracle America, Inc. Method and system for distributing network traffic among multiple direct hardware access datapaths
CN104272288A (en) * 2012-06-08 2015-01-07 英特尔公司 SR-IOV failover & aggregation control system to ensure within-physical-port veb loopback
CN103609077A (en) * 2013-06-18 2014-02-26 华为技术有限公司 Method, apparatus and system for data transmission, and physical adapter

Also Published As

Publication number Publication date
WO2017076089A1 (en) 2017-05-11

Similar Documents

Publication Publication Date Title
US11200079B2 (en) System and method for virtual machine live migration
KR101913490B1 (en) Flow table management method and relevant device and system
CN107544841B (en) Virtual machine live migration method and system
CN104521198B (en) For the system and method for Virtual Ethernet binding
CN105103128B (en) Processing is optimized to virtual machine mobility in data center environment
CN104243265B (en) A kind of gateway control method, apparatus and system based on virtual machine (vm) migration
CN102148749B (en) Method and device for extending switch port
US8776080B2 (en) Management component transport protocol interconnect filtering and routing
EP3059929B1 (en) Method for acquiring physical address of virtual machine
CN105745883B (en) Forwarding table synchronous method, the network equipment and system
CN104407911B (en) Virtual machine migration method and device
CN105162674A (en) Method and network card for physical machine to access to virtual network
CN103152200B (en) Virtual machine migration method, switch, network management device and network system
CN103002065A (en) Method and device for sharing internet protocol (IP) address by host device and standby device
CN105554176A (en) Method and device for sending message and communication system
CN114285695B (en) Communication method, device, apparatus, system and storage medium
WO2012021827A1 (en) Systems and methods for managing network address information
CN107819708A (en) Data processing method, system and equipment based on virtual machine (vm) migration
CN106656539A (en) Internet access state detection and synchronization method and apparatus
CN105656814B (en) A kind of SDN network repeater system and method
CN106161439B (en) A kind of information processing method and electronic equipment
CN104320282A (en) Method for switching of main and standby virtual machines in virtual edge port aggregation system and physical mainframes
CN110309120A (en) Data processing method and data processing equipment
CN109413118A (en) A kind of method, apparatus that realizing session synchronization and storage medium, program product
CN103067473A (en) Remote assistance transponding method and system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
WW01 Invention patent application withdrawn after publication

Application publication date: 20170510

WW01 Invention patent application withdrawn after publication