CN103514121A - Next network card redundancy switching method of Windows Xp operating system - Google Patents

Next network card redundancy switching method of Windows Xp operating system Download PDF

Info

Publication number
CN103514121A
CN103514121A CN201210221102.7A CN201210221102A CN103514121A CN 103514121 A CN103514121 A CN 103514121A CN 201210221102 A CN201210221102 A CN 201210221102A CN 103514121 A CN103514121 A CN 103514121A
Authority
CN
China
Prior art keywords
middle layer
message
network card
card
physical network
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201210221102.7A
Other languages
Chinese (zh)
Other versions
CN103514121B (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.)
709th Research Institute of CSIC
Original Assignee
709th Research Institute of CSIC
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 709th Research Institute of CSIC filed Critical 709th Research Institute of CSIC
Priority to CN201210221102.7A priority Critical patent/CN103514121B/en
Publication of CN103514121A publication Critical patent/CN103514121A/en
Application granted granted Critical
Publication of CN103514121B publication Critical patent/CN103514121B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Mobile Radio Communication Systems (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses a next network card redundancy switching method of a Windows Xp operating system. The method comprises the step of establishing a 1:2 type middle layer network card drive strategy, the step of detecting a fault and a dual-network switching algorithm and the step of obtaining a virtual network card communication configuration algorithm. The next network card redundancy switching method has the advantages that the method has the network card hardware independence and supports physical network cards of most manufactures, and the redundancy of three communication manners including the network card broadcasting request, broadcasting and multicast can be switched over.

Description

A kind of network card redundancy switching method under WindowsXp operating system
Technical field
The present invention relates to the redundancy handoff technique field of computing machine network interface card, a kind of network card redundancy switching method under a kind of WindowsXp operating system specifically, is applied to be provided with on the two redundancy network interface cards of computing machine of WindowsXp operating system and switches for two nets.
Background technology
Requiring the industries such as the telecommunications of highly reliable ethernet network, finance, the network terminal must be realized two redundant networks.At present 3Com Co Ltd has realized the many functions that comprise Tolerate and redundance on its network interface card, uses the Dynamic Access software can be by 2~4 network card configuration to servers, and one as major network card, and all the other are for being all standby network interface card.If primary link breaks down (switch ports themselves fault, major network card failure, service interruption etc.), automatically enable reserve link and take over.There is Trunking technology in Sun Microsystems, is mainly used between server and switch, server and server, the gigabit ethernet link of 8 100,000,000 Fast Ethernets or two full duplexs can be aggregated into a virtual link.The ANS technology of Intel has five kinds of mode of operations: Adaptive Load Balancing (self-adapting load balance); Switch Fault Tolerance (exchange fault redundancy); 802.3ad dynamic mode; Link Aggregation (link aggregation); Adapter Fault Tolerance (Adaptor Fault Tolerance).This several modes is all supported net card failure redundancy feature.NicExpress software can be realized binding and the redundancy backup of most of network interface cards.In above-mentioned various technology, Trunking technical requirement switch and network interface card can be supported Trunking technology, need particular switch; Its special-purpose network card chip is used in the technical requirements such as Dynamic Access, ANS, does not possess network interface card hardware independence; NicExpress software does not support multicast to switch.
Summary of the invention
The object of the invention is to propose the most of producers of a kind of support physical network card under WindowsXp operating system, support network interface card program request, broadcast, three kinds of communication mode redundancies of multicast to switch, the network card redundancy switching method to user transparent.
Technical scheme of the present invention: design a kind of network interface card intermediate driver according to WindowsXp operating system NDIS (NDIS5.0), middle layer drives and is positioned under protocol-driven, on Miniport Driver; Middle layer driving shows as protocol-driven ,Dui upper strata to lower floor and shows as Miniport Driver; No matter be that network interface card receives the packet of uploading, or under upper strata, deliver to the packet that network interface card will send, all will pass through intermediate driver; Miniport Driver concrete operations hardware, protocol-driven is carried out procotol processing; As long as install network interface card Miniport Driver, middle layer, drive and just can operate network interface card, so there is versatility; Middle layer drive to forward network interface card hardware communications message and controls network interface card mode of operation, obtains the ICP/IP protocol configuration informations such as Microsoft Loopback Adapter IP address, receiving group address, detection failure two net switchings when working net card failure, backup network interface card are normal.
A kind of network card redundancy switching method under WindowsXp operating system, comprising: build 1:2Xing middle layer network interface card and drive strategy; Detection failure and two net handoff algorithms; Obtain Microsoft Loopback Adapter communication placement algorithm.
Described structure 1:2Xing middle layer network interface card drives strategy, and its step is as follows:
Step 101: middle layer drives notify object to specify two physical network cards to create two Microsoft Loopback Adapters, forbid the institute's protocols having except this middle layer drives custom protocol on two physical network cards according to drive arrangements file, starts two institute's protocols havings beyond Microsoft Loopback Adapter Shang Zhe middle layers driving custom protocol.Two physical network cards are set for mixing mode of operation;
Step 102: middle layer drives agreement edge receiving interface to filter and receive message according to work physical network card number, the message repeating that the physical network card that conforms to work physical network card number receives is to Microsoft Loopback Adapter 1, and other types receive packet loss;
Step 103: middle layer drives micro-port edge transmission interface only to send the message that Microsoft Loopback Adapter 1 sends, and E-Packets on respective physical network interface card according to work physical network card number, and other types send packet loss;
Step 104: middle layer drives micro-port edge network interface card mode of operation that the order that arranges that interface only forwards Microsoft Loopback Adapter 1 is set, and is set on two physical network cards;
Step 105: middle layer drives start detection fault and two net handoff algorithms in agreement edge physical network card state detection interfaces;
Step 106: middle layer drives in micro-port edge transmission interface and starts and obtain Microsoft Loopback Adapter communication placement algorithm;
Described detection failure and two net handoff algorithms, its step is as follows:
Step 201: whether judgement drives initialization to complete, if do not completed, program is returned; If completed, perform step 202.
Step 202: judge that whether working net chain jamming line state is normal, if normal, perform step 203; If undesired execution step 204.
Step 203: check whether two network interface card Link State error flags (Flag1) arrange, as execution step 205 is set, as do not arranged, program is returned.
Step 204: check that whether backup network interface card Link State is normal, as undesired, Flag1 is set, program is returned; As normally, change working net card number, judge whether Flag1 arranges, as execution step 205 is set, as execution step 206 is not set.
Step 205: time delay 3 seconds, empties Flag1.
Step 206: provide information according to Fig. 3 algorithm, construct an ARP broadcasting packet and send.
Step 207: provide information according to Fig. 3 algorithm, construct some IGMP messages and send.
The described Microsoft Loopback Adapter communication placement algorithm that obtains, its step is as follows:
Step 301: judge whether it is effective message, if not, program is returned; If so, perform step 302.
Step 302: obtain from original message, keep in ethernet frame, judge whether it is ARP message, if so, perform step 303; If not execution step 304.
Step 303: extract also IP address, the physical address of storing virtual network interface card 1, program is returned.
Step 304: judge whether it is multicast message, if not, program is returned; If so, perform step 305.
Step 305: extract multicast protocol version number, judgement protocol version is 2 or 3, if 2, perform step 306; If 3, perform step 307.
Step 306: if add multicast message, extract a multicast address according to IGMPV2 agreement, add receiving group address buffer to; If exit multicast message, according to IGMPV2 agreement, extract a multicast address, in receiving group address buffer, delete.
Step 307: if add multicast message, extract several multicast address according to IGMPV3 agreement, add receiving group address buffer to; If exit multicast message, according to IGMPV3 agreement, extract several multicast address, in receiving group address buffer, delete.
The beneficial effect of patent of the present invention: (1) method has network interface card hardware independence, supports most of producers physical network card; (2) support network interface card program request, broadcast, three kinds of communication mode redundancies of multicast to switch.
Accompanying drawing explanation
Fig. 1: 1:2Xing middle layer network interface card drives and builds schematic diagram;
Fig. 2: detection failure and two net switching flow figure;
Fig. 3: obtain Microsoft Loopback Adapter communication configuration flow figure.
Embodiment
Below in conjunction with accompanying drawing, the technical scheme of patent of the present invention is described.
The present invention comprises: build 1:2Xing middle layer network interface card and drive strategy, detection failure and two net handoff algorithms, obtain Microsoft Loopback Adapter communication placement algorithm.1:2Xing middle layer network interface card drives strategy to be responsible for driving a Microsoft Loopback Adapter, two physical network cards to carry out ethernet network communication.Detection failure and two net handoff algorithms are responsible for detecting network interface card physical link fault; When carrying out two nets when normal, working net card failure, backup network interface card switch, thereby two nets switchings comprise replacing work physical network card number to be changed communication, controls the physical network card that message passes through, and structure ARP request message, IGMP report message are broadcast on the ethernet network of place.Obtain Microsoft Loopback Adapter communication placement algorithm and monitor Microsoft Loopback Adapter message transmission interface, analyze and extract Microsoft Loopback Adapter communication configuration information, the multicast address, the multicast protocol version information that provide Microsoft Loopback Adapter IP address, Microsoft Loopback Adapter physical address, Microsoft Loopback Adapter to receive for detection failure and two net handoff algorithms.
Described structure 1:2Xing middle layer network interface card drives tactful principle as shown in Figure 1, and main thought Wei Ba1:1Xing middle layer network interface card drives and is improved to the network interface card driving of 1:2Xing middle layer; 1:1Xing middle layer network interface card drives and comprises notify object, driving initialization, micro-port edge interface, four parts of agreement edge interface; Concrete structure flow process is as follows:
Step 101: middle layer drives notify object to specify two physical network cards to create two Microsoft Loopback Adapters, forbid the institute's protocols having except this middle layer drives custom protocol on two physical network cards according to drive arrangements file, starts two institute's protocols havings beyond Microsoft Loopback Adapter Shang Zhe middle layers driving custom protocol.Two physical network cards are set for mixing mode of operation.
Step 102: middle layer drives agreement edge receiving interface to filter and receive message according to work physical network card number, the message repeating that the physical network card that conforms to work physical network card number receives is to Microsoft Loopback Adapter 1, and other types receive packet loss.
Step 103: middle layer drives micro-port edge transmission interface only to send the message that Microsoft Loopback Adapter 1 sends, and E-Packets on respective physical network interface card according to work physical network card number, and other types send packet loss.
Step 104: middle layer drives micro-port edge network interface card mode of operation that the order that arranges that interface only forwards Microsoft Loopback Adapter 1 is set, and is set on two physical network cards.
Step 105: middle layer drives start detection fault and two net handoff algorithms in agreement edge physical network card state detection interfaces.
Step 106: middle layer drives in micro-port edge transmission interface and starts and obtain Microsoft Loopback Adapter communication placement algorithm.
As shown in Figure 2, idiographic flow is as follows for described detection failure and two net handoff algorithms:
Step 201: whether judgement drives initialization to complete, if do not completed, program is returned; If completed, perform step 202.
Step 202: judge that whether working net chain jamming line state is normal, if normal, perform step 203; If undesired execution step 204.
Step 203: check whether two network interface card Link State error flags (Flag1) arrange, as execution step 205 is set, as do not arranged, program is returned.
Step 204: check that whether backup network interface card Link State is normal, as undesired, Flag1 is set, program is returned; As normally, change work physical network card number, judge whether Flag1 arranges, as execution step 205 is set, as execution step 206 is not set.
Step 205: time delay 3 seconds, empties Flag1.
Step 206: provide information according to Fig. 3 algorithm, construct an ARP broadcasting packet and send.
Step 207: provide information according to Fig. 3 algorithm, construct some IGMP messages and send.
Described obtains network interface card communication placement algorithm as shown in Figure 3, and idiographic flow is as follows:
Step 301: judge whether it is effective message, if not, program is returned; If so, perform step 302.
Step 302: obtain from original message, keep in ethernet frame, judge whether it is ARP message, if so, perform step 303; If not execution step 304.
Step 303: extract also IP address, the physical address of storing virtual network interface card 1, program is returned.
Step 304: judge whether it is multicast message, if not, program is returned; If so, perform step 305.
Step 305: extract multicast protocol version number, judgement protocol version is 2 or 3, if 2, perform step 306; If 3, perform step 307.
Step 306: if add multicast message, extract a multicast address according to IGMPV2 agreement, add receiving group address buffer to; If exit multicast message, according to IGMPV2 agreement, extract a multicast address, in receiving group address buffer, delete.
Step 307: if add multicast message, extract several multicast address according to IGMPV3 agreement, add receiving group address buffer to; If exit multicast message, according to IGMPV3 agreement, extract several multicast address, in receiving group address buffer, delete.

Claims (4)

  1. A kind of network card redundancy switching method under 1.WindowsXp operating system, is characterized in that: comprising: build 1:2Xing middle layer network interface card and drive strategy; Detection failure and two net handoff algorithms; Obtain Microsoft Loopback Adapter communication placement algorithm.
  2. 2. a kind of network card redundancy switching method under WindowsXp operating system according to claim 1, is characterized in that: described structure 1:2Xing middle layer network interface card drives strategy, and its step is as follows:
    Step 101: middle layer drives notify object to specify two physical network cards to create two Microsoft Loopback Adapters, forbid the institute's protocols having except this middle layer drives custom protocol on two physical network cards according to drive arrangements file, start two Microsoft Loopback Adapter Shang Zhe middle layers and drive custom protocol institute's protocols having in addition, two physical network cards are set for mixing mode of operation;
    Step 102: middle layer drives agreement edge receiving interface to filter and receive message according to work physical network card number, the message repeating that the physical network card that conforms to work physical network card number receives is to Microsoft Loopback Adapter 1, and other types receive packet loss;
    Step 103: middle layer drives micro-port edge transmission interface only to send the message that Microsoft Loopback Adapter 1 sends, and E-Packets on respective physical network interface card according to work physical network card number, and other types send packet loss;
    Step 104: middle layer drives micro-port edge network interface card mode of operation that the order that arranges that interface only forwards Microsoft Loopback Adapter 1 is set, and is set on two physical network cards;
    Step 105: middle layer drives start detection fault and two net handoff algorithms in agreement edge physical network card state detection interfaces;
    Step 106: middle layer drives in micro-port edge transmission interface and starts and obtain Microsoft Loopback Adapter communication placement algorithm.
  3. 3. a kind of network card redundancy switching method under WindowsXp operating system according to claim 1, is characterized in that: described detection failure and two net handoff algorithms, and its step is as follows:
    Step 201: whether judgement drives initialization to complete, if do not completed, program is returned; If completed, perform step 202;
    Step 202: judge that whether working net chain jamming line state is normal, if normal, perform step 203; If undesired execution step 204;
    Step 203: check whether two network interface card Link State error flags (Flag1) arrange, as execution step 205 is set, as do not arranged, program is returned;
    Step 204: check that whether backup network interface card Link State is normal, as undesired, Flag1 is set, program is returned; As normally, change working net card number, judge whether Flag1 arranges, as execution step 205 is set, as execution step 206 is not set;
    Step 205: time delay 3 seconds, empties Flag1;
    Step 206: provide information according to Fig. 3 algorithm, construct an ARP broadcasting packet and send;
    Step 207: provide information according to Fig. 3 algorithm, construct some IGMP messages and send.
  4. 4. a kind of network card redundancy switching method under WindowsXp operating system according to claim 1, is characterized in that: the described Microsoft Loopback Adapter communication placement algorithm that obtains, and its step is as follows:
    Step 301: judge whether it is effective message, if not, program is returned; If so, perform step 302;
    Step 302: obtain from original message, keep in ethernet frame, judge whether it is ARP message, if so, perform step 303; If not execution step 304;
    Step 303: extract also IP address, the physical address of storing virtual network interface card 1, program is returned;
    Step 304: judge whether it is multicast message, if not, program is returned; If so, perform step 305;
    Step 305: extract multicast protocol version number, judgement protocol version is 2 or 3, if 2, perform step 306; If 3, perform step 307;
    Step 306: if add multicast message, extract a multicast address according to IGMPV2 agreement, add receiving group address buffer to; If exit multicast message, according to IGMPV2 agreement, extract a multicast address, in receiving group address buffer, delete;
    Step 307: if add multicast message, extract several multicast address according to IGMPV3 agreement, add receiving group address buffer to; If exit multicast message, according to IGMPV3 agreement, extract several multicast address, in receiving group address buffer, delete.
CN201210221102.7A 2012-06-29 2012-06-29 A kind of network card redundancy switching method under WindowsXp operating system Expired - Fee Related CN103514121B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210221102.7A CN103514121B (en) 2012-06-29 2012-06-29 A kind of network card redundancy switching method under WindowsXp operating system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210221102.7A CN103514121B (en) 2012-06-29 2012-06-29 A kind of network card redundancy switching method under WindowsXp operating system

Publications (2)

Publication Number Publication Date
CN103514121A true CN103514121A (en) 2014-01-15
CN103514121B CN103514121B (en) 2016-05-25

Family

ID=49896870

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210221102.7A Expired - Fee Related CN103514121B (en) 2012-06-29 2012-06-29 A kind of network card redundancy switching method under WindowsXp operating system

Country Status (1)

Country Link
CN (1) CN103514121B (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103944750A (en) * 2014-03-14 2014-07-23 华为技术有限公司 Method and device for processing bonded network card faults
CN104503775A (en) * 2014-12-02 2015-04-08 中国航天科工集团第三研究院第八三五七研究所 Double redundant network switching method in Windows
CN104978174A (en) * 2014-04-08 2015-10-14 华为技术有限公司 Method and system for switching network cards in plurality of operating systems
CN108111324A (en) * 2017-12-19 2018-06-01 刘昱 A kind of multicast control method based on SDN network, device and storage medium
CN112905303A (en) * 2021-03-05 2021-06-04 深圳市网心科技有限公司 Non-sensing network bridging method and device based on wired network card
CN115883338A (en) * 2022-12-08 2023-03-31 中国船舶集团有限公司第七一六研究所 Marine dual-redundancy network communication zero-frame-loss implementation method based on retained frame retransmission

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040218580A1 (en) * 2003-05-02 2004-11-04 Microsoft Corporation Method to enable simultaneous connections to multiple wireless networks using a single radio
CN101374069A (en) * 2007-08-25 2009-02-25 华为技术有限公司 Method, system and equipment for transforming multicast packet
CN102104470A (en) * 2009-12-17 2011-06-22 研祥智能科技股份有限公司 Multi-network-card double-redundancy device and system under VxWorks system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040218580A1 (en) * 2003-05-02 2004-11-04 Microsoft Corporation Method to enable simultaneous connections to multiple wireless networks using a single radio
CN101374069A (en) * 2007-08-25 2009-02-25 华为技术有限公司 Method, system and equipment for transforming multicast packet
CN102104470A (en) * 2009-12-17 2011-06-22 研祥智能科技股份有限公司 Multi-network-card double-redundancy device and system under VxWorks system

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103944750A (en) * 2014-03-14 2014-07-23 华为技术有限公司 Method and device for processing bonded network card faults
CN103944750B (en) * 2014-03-14 2017-08-29 华为技术有限公司 One kind binding net card failure processing method and processing device
CN104978174A (en) * 2014-04-08 2015-10-14 华为技术有限公司 Method and system for switching network cards in plurality of operating systems
CN104978174B (en) * 2014-04-08 2018-04-27 华为技术有限公司 Switching method and system in multiple operating system between network interface card
CN104503775A (en) * 2014-12-02 2015-04-08 中国航天科工集团第三研究院第八三五七研究所 Double redundant network switching method in Windows
CN108111324A (en) * 2017-12-19 2018-06-01 刘昱 A kind of multicast control method based on SDN network, device and storage medium
CN112905303A (en) * 2021-03-05 2021-06-04 深圳市网心科技有限公司 Non-sensing network bridging method and device based on wired network card
CN112905303B (en) * 2021-03-05 2024-04-09 深圳市网心科技有限公司 Non-perception network bridging method and device based on wired network card
CN115883338A (en) * 2022-12-08 2023-03-31 中国船舶集团有限公司第七一六研究所 Marine dual-redundancy network communication zero-frame-loss implementation method based on retained frame retransmission
CN115883338B (en) * 2022-12-08 2024-07-09 中国船舶集团有限公司第七一六研究所 Marine dual-redundancy network communication zero-frame-loss implementation method based on detention frame retransmission

Also Published As

Publication number Publication date
CN103514121B (en) 2016-05-25

Similar Documents

Publication Publication Date Title
CN103181133B (en) The server system that Based PC IE exchanges and reverse method and equipment
CN102014019B (en) Aggregated link switching method and device
CN103514121B (en) A kind of network card redundancy switching method under WindowsXp operating system
US8401026B2 (en) Achieving about an equal number of active links across chassis in a virtual port-channel environment
CN100456694C (en) Method and apparatus for providing network connector
CN100561977C (en) Fast rerouting method during a kind of a plurality of ports share transmission link
CN102299846B (en) Method for transmitting BFD (Bidirectional Forwarding Detection) message and equipment
CN102761479B (en) Link selecting method and device
CN101534198B (en) Communication system
CN1925496A (en) System and method for load sharing of network layer with multiple network interface cards terminal equipment
CN102571492B (en) Method and device for detecting failure of routing equipment
CN101610212A (en) Realize the method and the integrated circuit board of reliable data plane communication
CN101197733A (en) Automatic detection method and device for network connectivity
CN103166811A (en) Multi-active detection (MAD) detection method and device
CN101179453A (en) Link status detecting method and system
CN101877631A (en) Server and business switching method thereof
CN106453156A (en) Communication method and apparatus between virtual devices
CN103036728A (en) Multi- redundancy ethernet data transmission system and transmission method
CN104427012B (en) Port negotiation method and apparatus
CN101360043B (en) Communication apparatus reliably connected inside
CN104518936A (en) Method and device for link dynamic aggregation
CN108804260A (en) A kind of method and apparatus that SRIO systems are switched
CN106790411B (en) The non-polymeric port cascade system and method for virtual switch and physical switches
CN101764736B (en) Method for using standard ATCA equipment
CN101848165B (en) The method recovered after controlling interrupted communication link and interface board

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
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20160525