CN102104470A - Multi-network-card double-redundancy device and system under VxWorks system - Google Patents

Multi-network-card double-redundancy device and system under VxWorks system Download PDF

Info

Publication number
CN102104470A
CN102104470A CN2009101890476A CN200910189047A CN102104470A CN 102104470 A CN102104470 A CN 102104470A CN 2009101890476 A CN2009101890476 A CN 2009101890476A CN 200910189047 A CN200910189047 A CN 200910189047A CN 102104470 A CN102104470 A CN 102104470A
Authority
CN
China
Prior art keywords
link
physical network
connection status
microsoft loopback
loopback adapter
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN2009101890476A
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.)
EVOC Intelligent Technology Co Ltd
Original Assignee
EVOC Intelligent Technology 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 EVOC Intelligent Technology Co Ltd filed Critical EVOC Intelligent Technology Co Ltd
Priority to CN2009101890476A priority Critical patent/CN102104470A/en
Publication of CN102104470A publication Critical patent/CN102104470A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/22Arrangements for detecting or preventing errors in the information received using redundant apparatus to increase reliability

Abstract

The invention is suitable for the field of computer networks and provides a multi-network-card double-redundancy device and system under a VxWorks system. The device comprises a virtual network card, a link monitoring unit and a link switching unit, wherein the virtual network card is configured between an MUX (Multiplexer) layer and a network card drive layer and used for managing two physical network cards which are mutually redundant and transferring a physical network card handle with favorable link connection to the network card drive layer so that the physical network card with favorable link connection receives and transmits data; the link monitoring unit is used for monitoring a link connecting state of the physical network card and outputting a link switching notice when the link switching condition is met; the link switching unit is used for switching the physical network card with a link connection fault to the physical network card with favorable link connection according to the link switching notice; and the virtual network card and the two managed physical network cards thereof, which are mutually redundant, present same MAC (Media Access Control) address and IP (Internet Protocol) address to the outside. The multi-network-card double-redundancy device provided by the invention supports various types of system structure and network cards and can meet the requirement of different systems on the double-redundancy function.

Description

Two redundant apparatus of many network interface cards under a kind of VxWorks system and system
Technical field
The invention belongs to computer network field, relate in particular to two redundant apparatus of many network interface cards and system under a kind of VxWorks system.
Background technology
Along with the maturation of network technology, the Ethernet with advantage such as cheap, easy to connect has become the main media of various control system interfaces interconnection.It has obtained using widely in the global computer network field as a kind of universal network data communication system.Simultaneously, along with the progressively improvement of stability, anti-interference and the bandwidth problem of Ethernet, Ethernet is entering industrial control field on a large scale.The network that is used for industrial process control, communication, spacecraft and navigation system not only requires information transfer rate fast, antijamming capability is strong, also require network to have high stability and high reliability, in the network local fault or when impaired, total system is unlikely to paralysis and lost efficacy.
Two Redundancy Design have obtained using widely as a kind of effective ways that improve system reliability.For the individual node in the network system, usually need network interface card is carried out two redundancy backups, be that each node all adopts two network interfaces, with the interconnection of two hub or switch, this node can automatically switch to the backup network interface card and communicates when the network interface card of proper communication or circuit break down between two network interfaces.
Vxworks operating system is a kind of embedded real-time operating system (Real Time Operation System that U.S. WindRiver company designed and developed in nineteen eighty-three, RTOS), be the key components of embedded-development environment, have good sustained developing ability, high performance kernel, high reliability and remarkable real-time, be widely used in the high field of smart sharp technology such as communication, military affairs, Aeronautics and Astronautics and real-time requirement.Vxworks operating system is supported many network interface cards, but non-pair of Redundancy Design, and every network interface card all has independently physical address and IP address, uses with system with form supply independently.
Theoretically, two redundant network card techniques can (Open SystemInterconnection Reference Model OSI) realizes in each layer, and more in bottom layer realization, detection and the speed of switching are fast more, and effect is good more at open systems interconnection reference model.
In application layer, realize two Redundancy Design, main method is an initiation task in program, mode with inquiry is constantly judged the operating state of work at present network interface card, when the network interface card of judging current use is in abnormal condition, with the route of the current network interface card of deletion, the current host name of deletion in Host List, and separate the binding of inter nic and agreement, back up the configuration of network interface card then,, subnet mask and IP address are set for backup network card binding agreement.In Drive Layer, realize two Redundancy Design, main method is that the handle that exchanges acquiescence network interface card and backup network interface card according to the link connection status of network interface card in the bottom layer driving of network interface card is realized two redundant switchings, on software, need to revise the driving code of network interface card bottom, realize more complicated, compatible and portable relatively poor.
Therefore, realize that in application layer the method for two redundant network interface cards is fairly simple, realize easily, but the switch speed of network interface card is slower, is unfavorable for the reliability and the real-time of network.Realize that in Drive Layer two Redundancy Design switch speeds are very fast, but need be more to the bottom layer driving modification of network interface card, realize more complicated, compatible and portable relatively poor.
Summary of the invention
The purpose of the embodiment of the invention is to provide the two redundant apparatus of many network interface cards under a kind of VxWorks system, makes the two Redundancy Design of many network interface cards realize that easily switch speed is fast, has favorable compatibility and portability.
The embodiment of the invention is achieved in that the two redundant apparatus of the many network interface cards under a kind of VxWorks system, and described device comprises:
Microsoft Loopback Adapter is disposed between MUX layer and the network interface card Drive Layer, is used to manage two redundant each other physical network cards, link is connected good physical network card handle be delivered to the network interface card Drive Layer, uses link to connect good physical network card transceive data;
The link monitoring unit is used for the link connection status of physical network card is monitored, when the link switchover condition satisfies, and the output link switching notice; And
The link switchover unit is used for according to described link switchover notice, and the physical network card that link is connected fault switches to the good physical network card of link connection;
Described Microsoft Loopback Adapter externally presents identical MAC Address and IP address with two of its management redundant each other physical network cards.
Another purpose of the embodiment of the invention is to provide a kind of network data communication system, and described system comprises:
A plurality of Microsoft Loopback Adapters are disposed between MUX layer and the network interface card Drive Layer, are respectively applied for two redundant each other physical network cards of management, link is connected good physical network card handle be delivered to the network interface card Drive Layer, use link to connect good physical network card transceive data;
A plurality of and each Microsoft Loopback Adapter link corresponding monitoring means, the link connection status that is used for physical network card that the respective virtual network interface card is managed is monitored, when the link switchover condition satisfies, the output link switching notice; And
A plurality of and each Microsoft Loopback Adapter link corresponding switch unit are used for according to described link switchover notice, and the physical network card that the link that the respective virtual network interface card is managed connects fault switches to link and connects good physical network card;
Described each Microsoft Loopback Adapter externally presents identical MAC Address and IP address with two of its management redundant each other physical network cards.
The embodiment of the invention disposes a Microsoft Loopback Adapter between the MUX of VxWorks system layer and network interface card Drive Layer, utilize two physical network cards of Microsoft Loopback Adapter management, realize the two redundancy structures of many network interface cards, and the two redundancy schemes of many network interface cards have been realized, support polytype architecture and network interface card, can satisfy the requirement of different system two redundancy features.
Description of drawings
Fig. 1 is the SENS protocol stack level figure under the VxWorks system;
Fig. 2 is the topology diagram of the two redundancy structures of many network interface cards of providing of the embodiment of the invention;
Fig. 3 is the structure chart of the two redundant apparatus of many network interface cards of providing of the embodiment of the invention;
Fig. 4 is the project organization figure of the Microsoft Loopback Adapter that provides of the embodiment of the invention;
Fig. 5 is the structure chart of the link connect state machine that provides of the embodiment of the invention;
Fig. 6 is the structure chart of the link monitoring unit that provides of the embodiment of the invention;
Fig. 7 is the link connection status monitoring conversion realization flow figure that the embodiment of the invention provides;
Fig. 8 is the structure chart of the link connection status modular converter that provides of the embodiment of the invention;
Fig. 9 is the link switchover realization flow figure that the embodiment of the invention provides.
Embodiment
In order to make purpose of the present invention, technical scheme and advantage clearer,, the present invention is further elaborated below in conjunction with drawings and Examples.Should be appreciated that specific embodiment described herein only in order to explanation the present invention, and be not used in qualification the present invention.
The embodiment of the invention disposes a Microsoft Loopback Adapter between MUX layer under the VxWorks system and network interface card Drive Layer, utilize two physical network cards of Microsoft Loopback Adapter management, realizes the two redundancy structures of many network interface cards, and realizes the two redundancy schemes of many network interface cards.
Network protocol stack in the VxWorks system is called can be reduced the enhanced network protocol stack (ScalableEnhanced Network Stack, SENS), SENS protocol stack level as shown in Figure 1.The essential characteristic of SENS is similar with traditional TCP/IP network protocol stack, but as can be seen from Figure 1 the characteristics of SENS maximum are many MUX layers between data link layer and network protocol layer.In SENS, the driver of network interface is called the enhanced network driver, and (Enhanced Network Driver, END), it is in data link layer.The laminated network protocol layer that is called of IP layer and TCP/UDP.Application programming interfaces (API) are arranged between data link layer and network protocol layer, and this interface is called MUX (Multiplexer) interface in SENS.
At network protocol layer, the VxWorks system typically uses ICP/IP protocol (also supporting other agreement), typically uses Ethernet (Ethernet) in data link layer, also supports the physical medium of other transfer of data, the for example remote serial transmission line access way of using that connects is as PPP etc.But, no matter use any physical medium, the network interface driving all will be used MUX and be communicated by letter with network protocol layer.
The main purpose of using MUX is that network interface driving and protocol layer are separated, and so just makes network interface driving and protocol layer keep independent each other basically.This independence make to load a new agreement or network interface drives, and all existing agreements based on MUX just can be with this new Network Interface Driver.Equally, if add a new agreement based on MUX, existing network interface drives also and can communicate by letter with New Deal by enough MUX.
The embodiment of the invention disposes a Microsoft Loopback Adapter between MUX layer and network interface card Drive Layer, utilize two physical network cards of Microsoft Loopback Adapter management, has so just formed the topological structure of the two redundancy structures of many network interface cards, as shown in Figure 2.
Fig. 3 shows the structure of the two redundant apparatus of many network interface cards that the embodiment of the invention provides, and for convenience of explanation, only shows the part relevant with the embodiment of the invention.
Microsoft Loopback Adapter 31 is configured between MUX layer and the network interface card Drive Layer, is used to manage two redundant each other physical network cards, comprises MUX layer interface 311 and network interface card Drive Layer interface 312.
In embodiments of the present invention, Microsoft Loopback Adapter 31 externally presents identical medium access control (Media Access Control, MAC) address and IP address with two of its management redundant each other physical network cards.
MUX layer interface 311 is used for the data passes between MUX layer and the Microsoft Loopback Adapter 31.
Network interface card Drive Layer interface 312 is used for the transmission of Microsoft Loopback Adapter 31 and the network interface card handle of the physical network card Drive Layer of its management.
Link monitoring unit 32 is used for the link connection status of physical network card is monitored, when the link switchover condition satisfies, and the output link switching notice.
Link switchover unit 33 is according to the link switchover notice of link monitoring unit 32 outputs, and the physical network card that link is connected fault switches to the good physical network card of link connection, guarantees stability of network and reliability.
The structure of the above-mentioned pair of redundant apparatus that the embodiment of the invention provides can solve the problem of single IP address, can guarantee again bsp driver is changed as few as possible, guaranteed the versatility of Microsoft Loopback Adapter and the independence of each module, compatible and portable better.
In said structure, MUX layer interface 311 is static, and network interface card Drive Layer interface 312 also is static except the parameter dynamic change of mutual transmission.Link monitoring unit 32 and link switchover unit 33 are dynamic.Link monitoring unit 32 starts a timer in implementing the process of link monitoring, just go to detect the link connection status of network every a period of time, if the link connection status is unusual, then informs link switchover unit 33, realizes the switching of physical network card.The switching of physical network card causes the exchange of the network interface card handle that transmits between two physical network card interfaces, has finally realized the function of network redundancy, has guaranteed stability of network and reliability.
In embodiments of the present invention, for the configuration of Microsoft Loopback Adapter 31, mainly be configuration to MUX layer interface 311 and 312 two interfaces of network interface card Drive Layer interface.Microsoft Loopback Adapter 31 not only will be used for the transfer of data between TCP/IP network protocol stack and the network card data link layer, and will present the characteristic that physical network card has, and actual network node, MAC Address and IP address are arranged.
The specific design structure of Microsoft Loopback Adapter 31 as shown in Figure 4, as shown in Figure 4, Microsoft Loopback Adapter 31 has the function list of himself, and is specific as follows:
LOCAL?NET_FUNCS?vnetEndFuncTable=
{
(FUNCPTR)vnetEndStart,
(FUNCPTR)vnetEndStop,
(FUNCPTR)vnetEndUnload,
(FUNCPTR)vnetEndIoctl,
(FUNCPTR)vnetEndSend,
(FUNCPTR)vnetEndMCastAdd,
(FUNCPTR)vnetEndMCastDel,
(FUNCPTR)vnetEndMCastGet,
(FUNCPTR)vnetEndPollSend,
(FUNCPTR)vnetEndPollRcv,
vnetEndEtherAddressForm,
vnetEndEtherPacketDataGet,
vnetEndEtherPacketAddrGet
};
NET_FUNCS is the structure type of network interface card driving function tabulation.
Therefore, in embodiments of the present invention, the design of Microsoft Loopback Adapter 31 promptly has been transformed into the design of concrete function in the function list.For the MUX layer, Microsoft Loopback Adapter 31 provides the function list that drives when loading, by the function list of VnetEndLoad function loading Microsoft Loopback Adapter 31, to return the sign handle of Microsoft Loopback Adapter 31 and give the MUX layer, data offer the TCP/IP network protocol stack from the MUX layer and handle.
For the interface of Microsoft Loopback Adapter 31 with the network interface card Drive Layer, except the VnetEndLoad function had the specific implementation of oneself, remaining function all was the driving function that calls the bottom physical network card, and dissimilar physical network cards all has bottom layer driving function separately.The selection of the driving function of concrete physical network card is decided by link monitoring unit 32 and link switchover unit 33, when link connects fault, Microsoft Loopback Adapter 31 switches corresponding physical network card handle, link is connected good physical network card handle be delivered to the network interface card Drive Layer, use link to connect good physical network card transceive data.
As one embodiment of the present of invention, all require in the network data communication system of two Redundancy Design at many network interface cards, according to actual requirement, create a plurality of Microsoft Loopback Adapters, two redundant each other physical network cards of each Microsoft Loopback Adapter management, do not disturb mutually, two redundant each other physical network cards of each Microsoft Loopback Adapter and management thereof all present single MAC Address and single IP address, but the function list of Microsoft Loopback Adapter among Fig. 4 is all taked in the realization of each Microsoft Loopback Adapter, uses different device numbers to distinguish different Microsoft Loopback Adapters when system registry.
As one embodiment of the present of invention, in the observation process of link connection status, the link connection status is divided into four kinds of states: transition state LINK_FAIL, link failure that link kilter LINK_UP, link well arrive fault arrive good transition state LINK_BACK, link failure state LINK_DOWN, when link is in link failure state LINK_DOWN, and when satisfying the link switchover condition, implement link switchover, as shown in Figure 5.Wherein:
LINK_UP and LINK_DOWN are two stable status, LINK_FAIL and LINK_BACK are two transition states, be that line status is when changing between link kilter LINK_UP and link failure state LINK_DOWN, to in the regular hour, the link connection status just can change after stablizing, must satisfy time conditions and just can carry out the conversion of link connection status.
In the embodiment of the invention, as shown in Figure 6, link monitoring unit 32 comprises regularly circulatory monitoring module 321 and link connection status modular converter 322, regularly circulatory monitoring module 321 periodic monitors read physical layer (Physical Layer, PHY) status register, the link connection status of circulatory monitoring physical network card, link connection status modular converter 322 is according to the current link connection status of timing circulatory monitoring module 321 monitorings, current link connection status is transformed into corresponding state, when current link connection status satisfies the link switchover condition, call link switch unit 33 and implement link switchover.
Concrete link connection status is changed as shown in Figure 7, and details are as follows:
If the initial connection status of link is link kilter LINK_UP, regularly circulatory monitoring module 321 periodic monitors read the PHY status register, if monitor the link connection status is UP, then link connection status modular converter 322 rests on link kilter LINK_UP with the link connection status, if the link connection status is fault DOWN, then link connection status modular converter 322 is transformed into the transition state LINK_FAIL that link well arrives fault with the link connection status; Regularly circulatory monitoring module 321 goes periodic monitor to read the PHY status register again, if monitor the good UP of link, then link connection status modular converter 322 with link connection status fault to the good link kilter LINK_UP that carries out the transition to, if monitor link failure DOWN, then link connection status modular converter 322 judges that link failure postpones downDelay[N] whether satisfied, if do not satisfy, then link failure is postponed downDelay[N] subtract 1, the link connection status is rested on the transition state LINK_FAIL that link well arrives fault, wait for regularly monitoring next time of circulatory monitoring module 321; If fault postpones downDelay[N] be 0, link connection status modular converter 322 then transfers the link connection status to link failure state LINK_DOWN, calls link switch unit 33 this moment, implements the switching of link.
If the initial condition of link is link failure state LINK_DOWN, regularly circulatory monitoring module 321 periodic monitors read the PHY status register, if monitor link failure DOWN, then link connection status modular converter 322 rests on link failure state LINK_DOWN with the link connection status, judge link failure time downTime[N] whether satisfy condition, if link failure time downTime[N] equal 0, then call link switch unit 33, implement the switching of link, if do not satisfy condition, then to link failure time downTime[N] subtract 1 and handle; If regularly circulatory monitoring module 321 monitors the good UP of link, then link connection status modular converter 322 is transformed into link failure to good transition state LINK_BACK with the link connection status, regularly circulatory monitoring module 321 goes periodic monitor to read the PHY status register again, if link failure DOWN, then link connection status modular converter 322 with link connection status fault to the good link failure state that carries out the transition to LINK_DOWN, with link failure time downTime[N] reset; If regularly circulatory monitoring module 321 monitors the good UP of link, then link connection status modular converter 322 judges that link well postpones upDelay[N] whether full, if do not satisfy, link is well postponed upDelay[N] subtract 1, the link connection status is rested on link failure to good transition state LINK_BACK, wait for regularly monitoring next time of circulatory monitoring module 321; If link well postpones upDelay[N] be 0, then the link connection status is forwarded to link kilter LINK_UP.
Fig. 8 shows the structure of link connection status modular converter, for convenience of explanation, only shows the part relevant with the embodiment of the invention.
The variation of link connect state machine 3221 record link connection status.The condition that link switchover condition configuration module 3222 configuration links switch, for example link failure postpones downDelay[N], link failure time downTime[N], link well postpones upDelay[N] etc.Link conversion and control module 3223 is according to the link connection status of the physical network card of timing circulatory monitoring module 321 monitorings, and the link connection status of link connect state machine 3221 records, the conversion of control link connection status, when the link switchover condition satisfies, send the link switchover notice, call link switch unit 33 and implement link switchover.
In having the network data communication system of a plurality of Microsoft Loopback Adapters, each Microsoft Loopback Adapter all has separately link monitoring unit to monitor the link connection status of two physical network cards of its management, be independent of each other, the N among Fig. 6 is the sign of Microsoft Loopback Adapter, represents N Microsoft Loopback Adapter.Therefore, if in the system N Microsoft Loopback Adapter arranged, then need to create N periodic monitor house dog task.
Link switchover unit 33 is main, and what realize is exchange between the handle of the handle of current use physical network card and spare physical network interface card, idiographic flow as shown in Figure 9, details are as follows:
In step S901, judge the notice that has or not link switchover, then execution in step S902 is arranged, otherwise continue execution in step S901;
In the S902 step, obtain the state of two links;
In the S903 step, judge whether all fault of two links, be then to return execution in step S901, otherwise execution in step S904;
In step S904, exchange the handle of current network interface card and standby network interface card;
In step S905, putting the fault network interface card is stand-by state.
As shown in Figure 9, link switchover unit 33 is in the circulation pattern of waiting for the switching notice signal, if get access to the link switchover notification signal, then obtains the connection status of two links; If the connection status of two links all has fault, then do not switch, otherwise obtain the network interface card handle of the path of link good connection, realizes the exchange of two link network interface card handles, the link that setting at last is in malfunction is in stand-by state.
In having the network data communication system of a plurality of Microsoft Loopback Adapters, each Microsoft Loopback Adapter all has switching notice signal separately, the switching that realizes only occurs between two physical network cards of management separately, if in the system N Microsoft Loopback Adapter arranged, then start N task switching, realize two redundant switching the between two physical network cards of each Microsoft Loopback Adapter management.
In embodiments of the present invention, the realization of single IP and MAC Address is will guarantee Microsoft Loopback Adapter and management thereof two the IP and the MAC Address of redundant physical network card is identical each other, and upper level applications and user are presented single IP and MAC Address characteristic.
The realization of single IP address realizes by Microsoft Loopback Adapter 31, when configuration of IP address, give each Microsoft Loopback Adapter configuration IP address separately, registration enter the internet protocol stack, data IP address by Microsoft Loopback Adapter when transmission can be delivered on two physical network cards of this Microsoft Loopback Adapter management.
The realization of single MAC Address is by obtaining the MAC Address of one of them physical network card, same MAC Address is set for then another physical network card and Microsoft Loopback Adapter, and such realization can guarantee single MAC Address for the customer.
Two redundant each other physical network cards of each Microsoft Loopback Adapter and management thereof present identical IP and MAC Address characteristic for the customer, if in the system N Microsoft Loopback Adapter arranged, two physical network cards of each Microsoft Loopback Adapter and management thereof all have IP and MAC Address separately, separate separately, complementary influence.
In embodiments of the present invention, compatibility comprises the expansion compatibility of Microsoft Loopback Adapter and the compatibility between redundant network interface card and the nonredundancy network interface card.
For in the compatible different system to the different requirements of two redundancies, in embodiments of the present invention, safeguard the expansion of a plurality of Microsoft Loopback Adapters with a global descriptive table, the member's of global descriptive table example structure is as follows:
struct?net_end_tbl
{
int?vUnit; /*virtual?net?number?in?endDevTbl*/
int?rUnitNum1; /*the?first?net?managed?by?virtual?net*/
int?rUnitNum2; /*the?second?net?mangede?by?virtual?net*/
char?mac_data[6];/*MAC?address*/
char*pIpAddr; /*virtual?net?IP?address*/
char*pGateWay; /*virtual?net?GateWay?address*/
BOOL?flag; /*flag*/
}NET_END_TBL;
In the said structure, vUnit is the sequence number of Microsoft Loopback Adapter in global descriptive table, rUnitNum1 is first physical network card sign of Microsoft Loopback Adapter management, rUnitNum2 is second physical network card sign of Microsoft Loopback Adapter management, mac_data[6] be MAC Address, pIpAddr is the IP address of Microsoft Loopback Adapter, and pGateWay is the gateway of Microsoft Loopback Adapter.
The example structure of global descriptive table is as follows:
NET_END_TBL?netEndTbl[VNET_NUM]=
{
0, and rUnitNum1, rUnitNum2,0x0, and 0x0,0x0,0x0,0x0,0x0}, " IP address ", and " gateway address ", FALSE},
......,
N, and rUnitNum1, rUnitNum2,0x0, and 0x0,0x0,0x0,0x0,0x0}, " IP address ", and " MAC Address ", FALSE},
};
In above-mentioned global descriptive table, VNET_NUM is the number of Microsoft Loopback Adapter, and N equals VNET_NUM-1.
According to different system requirements, revise this global descriptive table and then can satisfy the different requirements of different system two redundancies, two physical network cards that for example will belong to the different virtual network interface card are configured to redundant each other, perhaps, adjust redundant physical network card quantity by increasing, delete the number of Microsoft Loopback Adapter.Can realize the redundancy of the physical network card that difference is right easily by the sign of revising two physical network cards of Microsoft Loopback Adapter management in the global descriptive table; Can realize that by the number of increase Microsoft Loopback Adapter and the sign of two physical network cards the nonredundancy of two physical network cards requires the transformation of redundancy requirement; The sign of two physical network cards by deleting Microsoft Loopback Adapter and management thereof can realize the transformation that the redundancy requirement of two physical network cards requires to nonredundancy, has improved the compatibility of system greatly.
In addition, might there be the network interface card that requires redundancy feature and the network interface card of irredundant functional requirement in the system, at this situation, in embodiments of the present invention, identify for the network interface card outside in the NET_END_TBL table, all handle, need configuration IP address separately separately by the network interface card of irredundant functional requirement.
The embodiment of the invention disposes a Microsoft Loopback Adapter between the MUX of VxWorks system layer and network interface card Drive Layer, utilize two physical network cards of Microsoft Loopback Adapter management, realize the two redundancy structures of many network interface cards, and the two redundancy schemes of many network interface cards have been realized, support polytype architecture and network interface card, can satisfy the requirement of different system two redundancy features.
The above only is preferred embodiment of the present invention, not in order to restriction the present invention, all any modifications of being done within the spirit and principles in the present invention, is equal to and replaces and improvement etc., all should be included within protection scope of the present invention.

Claims (11)

1. two redundant apparatus of the many network interface cards under the VxWorks system is characterized in that described device comprises:
Microsoft Loopback Adapter is disposed between MUX layer and the network interface card Drive Layer, is used to manage two redundant each other physical network cards, link is connected good physical network card handle be delivered to the network interface card Drive Layer, uses link to connect good physical network card transceive data;
The link monitoring unit is used for the link connection status of physical network card is monitored, when the link switchover condition satisfies, and the output link switching notice; And
The link switchover unit is used for according to described link switchover notice, and the physical network card that link is connected fault switches to the good physical network card of link connection;
Described Microsoft Loopback Adapter externally presents identical MAC Address and IP address with two of its management redundant each other physical network cards.
2. device as claimed in claim 1 is characterized in that, described Microsoft Loopback Adapter comprises:
The MUX layer interface is used for the data passes between described MUX layer and the Microsoft Loopback Adapter;
Network interface card Drive Layer interface is used for the transmission of network interface card handle of the physical network card Drive Layer of described Microsoft Loopback Adapter and its management.
3. device as claimed in claim 1 is characterized in that, described link monitoring unit comprises:
Regularly the circulatory monitoring module is used for the regularly link connection status of circulatory monitoring physical network card;
Link connection status modular converter, be used for current link connection status according to described timing circulatory monitoring module monitors, current link connection status is transformed into corresponding state, when current link connection status satisfies the link switchover condition, calls described link switchover unit and implement link switchover.
4. device as claimed in claim 3 is characterized in that, described link connection status modular converter comprises:
The link connect state machine, the variation that is used to write down the link connection status;
Link switchover condition configuration module is used for the condition that configuration link switches;
Link conversion and control module, be used for link connection status according to described timing circulatory monitoring module monitors, and the link connection status of described link connect state machine record, the conversion of control link connection status, when the link switchover condition satisfies, send the link switchover notice.
5. as the described device of the arbitrary claim of claim 1 to 4, it is characterized in that described link connection status comprises that link kilter, link well arrive the transition state of fault, link failure to good transition state, and the link failure state;
When link is in the link failure state, and when satisfying the link switchover condition, implement link switchover.
6. a network data communication system is characterized in that, described system comprises:
A plurality of Microsoft Loopback Adapters, be disposed between MUX layer and the network interface card Drive Layer, each Microsoft Loopback Adapter has single MAC Address and single IP address, be respectively applied for two redundant each other physical network cards of management, link is connected good physical network card handle be delivered to the network interface card Drive Layer, use link to connect good physical network card transceive data;
A plurality of and each Microsoft Loopback Adapter link corresponding monitoring means, the link connection status that is used for physical network card that the respective virtual network interface card is managed is monitored, when the link switchover condition satisfies, the output link switching notice; And
A plurality of and each Microsoft Loopback Adapter link corresponding switch unit are used for according to described link switchover notice, and the physical network card that the link that the respective virtual network interface card is managed connects fault switches to link and connects good physical network card;
Described each Microsoft Loopback Adapter externally presents identical MAC Address and IP address with two of its management redundant each other physical network cards.
7. system as claimed in claim 6 is characterized in that, described Microsoft Loopback Adapter comprises:
The MUX layer interface is used for the data passes between described MUX layer and the Microsoft Loopback Adapter;
Network interface card Drive Layer interface is used for the transmission of network interface card handle of the physical network card Drive Layer of described Microsoft Loopback Adapter and its management.
8. system as claimed in claim 6 is characterized in that, described link monitoring unit comprises:
Regularly the circulatory monitoring module is used for the regularly link connection status of circulatory monitoring physical network card;
Link connection status modular converter, be used for current link connection status according to described timing circulatory monitoring module monitors, current link connection status is transformed into corresponding state, when current link connection status satisfies the link switchover condition, calls described link switchover unit and implement link switchover.
9. system as claimed in claim 8 is characterized in that, described link connection status modular converter comprises:
The link connect state machine, the variation that is used to write down the link connection status;
Link switchover condition configuration module is used for the condition that configuration link switches;
Link conversion and control module, be used for link connection status according to described timing circulatory monitoring module monitors, and the link connection status of described link connect state machine record, the conversion of control link connection status, when the link switchover condition satisfies, send the link switchover notice.
10. system as claimed in claim 6 is characterized in that, described a plurality of Microsoft Loopback Adapters adopt global descriptive table to safeguard, realizes the expansion compatibility of Microsoft Loopback Adapter and the compatibility between redundant network interface card and the nonredundancy network interface card;
Described global descriptive table includes the sequence number of Microsoft Loopback Adapter in global descriptive table, first physical network card sign of Microsoft Loopback Adapter management, second physical network card sign of Microsoft Loopback Adapter management, the MAC Address of Microsoft Loopback Adapter, and the IP address of Microsoft Loopback Adapter;
For the sign of the physical network card outside described global descriptive table, handle the IP address that disposes described physical network card separately by the physical network card of irredundant requirement.
11., it is characterized in that described link connection status comprises that link kilter, link well arrive the transition state of fault, link failure to good transition state, and the link failure state as the described system of the arbitrary claim of claim 6 to 10;
When link is in the link failure state, and when satisfying the link switchover condition, implement link switchover.
CN2009101890476A 2009-12-17 2009-12-17 Multi-network-card double-redundancy device and system under VxWorks system Pending CN102104470A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2009101890476A CN102104470A (en) 2009-12-17 2009-12-17 Multi-network-card double-redundancy device and system under VxWorks system

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN2009101890476A CN102104470A (en) 2009-12-17 2009-12-17 Multi-network-card double-redundancy device and system under VxWorks system
PCT/CN2010/076292 WO2011072536A1 (en) 2009-12-17 2010-08-24 Dual redundant device and system of multiple netword cards under vxworks system

Publications (1)

Publication Number Publication Date
CN102104470A true CN102104470A (en) 2011-06-22

Family

ID=44157021

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2009101890476A Pending CN102104470A (en) 2009-12-17 2009-12-17 Multi-network-card double-redundancy device and system under VxWorks system

Country Status (2)

Country Link
CN (1) CN102104470A (en)
WO (1) WO2011072536A1 (en)

Cited By (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102263660A (en) * 2011-07-19 2011-11-30 中国舰船研究设计中心 Dual-network card redundancy switching method and device
CN103023632A (en) * 2012-12-31 2013-04-03 广东工业大学 Wireless local area network card communication method
CN103312578A (en) * 2012-03-12 2013-09-18 联想(北京)有限公司 Method and device for acquiring network card resources
CN103490971A (en) * 2013-09-26 2014-01-01 山东神思电子技术股份有限公司 Method and device for monitoring integrity of virtual communication link
CN103514121A (en) * 2012-06-29 2014-01-15 中国船舶重工集团公司第七0九研究所 Next network card redundancy switching method of Windows Xp operating system
CN103684719A (en) * 2013-12-10 2014-03-26 中国船舶重工集团公司第七0九研究所 Network dual-redundancy hot swap method independent of platforms
CN103944750A (en) * 2014-03-14 2014-07-23 华为技术有限公司 Method and device for processing bonded network card faults
CN104468238A (en) * 2014-12-22 2015-03-25 上海斐讯数据通信技术有限公司 Double-network-card redundancy switching method based on vxworks system
CN104978174A (en) * 2014-04-08 2015-10-14 华为技术有限公司 Method and system for switching network cards in plurality of operating systems
CN106612233A (en) * 2016-12-29 2017-05-03 广州华多网络科技有限公司 Multi-channel network switching method and system
CN106656659A (en) * 2016-11-30 2017-05-10 浙江宇视科技有限公司 Network path selection method and network video recorder (NVR)
CN108155978A (en) * 2017-11-27 2018-06-12 北京机电工程研究所 A kind of method of redundancy network interface card Hot Spare under VxWorks environment
CN108494534A (en) * 2018-03-12 2018-09-04 西安电子工程研究所 A kind of self-propelled air defense weapon system dual redundant Ethernet design method
CN108632155A (en) * 2017-03-16 2018-10-09 网宿科技股份有限公司 Cloud platform traffic scheduling method and system, computer-readable storage medium
CN110636637A (en) * 2018-06-22 2019-12-31 视联动力信息技术股份有限公司 Network connection method and device of Linux equipment
CN110690994A (en) * 2019-09-25 2020-01-14 天津津航计算技术研究所 Universal dual-redundancy network card switching method
CN111212451A (en) * 2019-12-26 2020-05-29 曙光信息产业股份有限公司 Method and device for switching network transmission channel
CN112260893A (en) * 2020-10-14 2021-01-22 天津津航计算技术研究所 Ethernet redundancy device of VxWorks operating system based on network heartbeat

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102917390A (en) * 2012-09-21 2013-02-06 北京创毅讯联科技股份有限公司 Method and system for controlling connection state of LTE (long term evolution) data card
CN112165446A (en) * 2020-08-17 2021-01-01 河北汉光重工有限责任公司 Network interception method of VxWorks system
CN113472635A (en) * 2021-05-31 2021-10-01 杭州沃趣科技股份有限公司 Method and system for realizing dual-port Active-Active redundancy protection

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1556625A (en) * 2004-01-05 2004-12-22 联想(北京)有限公司 Data transmission method of network equipment based on multinetwork card and device
CN101309135A (en) * 2008-03-07 2008-11-19 华中科技大学 Method for enhancing reliability of industrial wireless sensor network
CN101330370A (en) * 2007-05-17 2008-12-24 日本电气株式会社 Node, communication method, and program for node

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5521913A (en) * 1994-09-12 1996-05-28 Amber Wave Systems, Inc. Distributed processing ethernet switch with adaptive cut-through switching
CN101404568A (en) * 2008-11-17 2009-04-08 国电南瑞科技股份有限公司 Double-network card hot backup redundancy method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1556625A (en) * 2004-01-05 2004-12-22 联想(北京)有限公司 Data transmission method of network equipment based on multinetwork card and device
CN101330370A (en) * 2007-05-17 2008-12-24 日本电气株式会社 Node, communication method, and program for node
CN101309135A (en) * 2008-03-07 2008-11-19 华中科技大学 Method for enhancing reliability of industrial wireless sensor network

Cited By (30)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102263660A (en) * 2011-07-19 2011-11-30 中国舰船研究设计中心 Dual-network card redundancy switching method and device
CN103312578A (en) * 2012-03-12 2013-09-18 联想(北京)有限公司 Method and device for acquiring network card resources
CN103312578B (en) * 2012-03-12 2016-12-14 联想(北京)有限公司 A kind of method and device obtaining network interface card resource
CN103514121B (en) * 2012-06-29 2016-05-25 中国船舶重工集团公司第七0九研究所 A kind of network card redundancy switching method under WindowsXp operating system
CN103514121A (en) * 2012-06-29 2014-01-15 中国船舶重工集团公司第七0九研究所 Next network card redundancy switching method of Windows Xp operating system
CN103023632A (en) * 2012-12-31 2013-04-03 广东工业大学 Wireless local area network card communication method
CN103023632B (en) * 2012-12-31 2016-06-22 广东工业大学 A kind of means of communication of wireless network card
CN103490971A (en) * 2013-09-26 2014-01-01 山东神思电子技术股份有限公司 Method and device for monitoring integrity of virtual communication link
CN103684719A (en) * 2013-12-10 2014-03-26 中国船舶重工集团公司第七0九研究所 Network dual-redundancy hot swap method independent of platforms
CN103684719B (en) * 2013-12-10 2017-02-15 中国船舶重工集团公司第七0九研究所 Network dual-redundancy hot swap method independent of platforms
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
CN104468238A (en) * 2014-12-22 2015-03-25 上海斐讯数据通信技术有限公司 Double-network-card redundancy switching method based on vxworks system
CN106656659A (en) * 2016-11-30 2017-05-10 浙江宇视科技有限公司 Network path selection method and network video recorder (NVR)
WO2018120966A1 (en) * 2016-12-29 2018-07-05 广州华多网络科技有限公司 Multi-channel network handover method and system
CN106612233B (en) * 2016-12-29 2019-12-13 广州华多网络科技有限公司 multi-channel network switching method and system
CN106612233A (en) * 2016-12-29 2017-05-03 广州华多网络科技有限公司 Multi-channel network switching method and system
CN108632155A (en) * 2017-03-16 2018-10-09 网宿科技股份有限公司 Cloud platform traffic scheduling method and system, computer-readable storage medium
CN108632155B (en) * 2017-03-16 2021-11-23 网宿科技股份有限公司 Cloud platform traffic scheduling method and system and computer-readable storage medium
CN108155978B (en) * 2017-11-27 2021-08-10 北京机电工程研究所 Hot backup method for redundant network card in VxWorks environment
CN108155978A (en) * 2017-11-27 2018-06-12 北京机电工程研究所 A kind of method of redundancy network interface card Hot Spare under VxWorks environment
CN108494534A (en) * 2018-03-12 2018-09-04 西安电子工程研究所 A kind of self-propelled air defense weapon system dual redundant Ethernet design method
CN110636637A (en) * 2018-06-22 2019-12-31 视联动力信息技术股份有限公司 Network connection method and device of Linux equipment
CN110636637B (en) * 2018-06-22 2021-08-20 视联动力信息技术股份有限公司 Network connection method and device of Linux equipment
CN110690994A (en) * 2019-09-25 2020-01-14 天津津航计算技术研究所 Universal dual-redundancy network card switching method
CN111212451A (en) * 2019-12-26 2020-05-29 曙光信息产业股份有限公司 Method and device for switching network transmission channel
CN112260893A (en) * 2020-10-14 2021-01-22 天津津航计算技术研究所 Ethernet redundancy device of VxWorks operating system based on network heartbeat
CN112260893B (en) * 2020-10-14 2022-04-19 天津津航计算技术研究所 Ethernet redundancy device of VxWorks operating system based on network heartbeat

Also Published As

Publication number Publication date
WO2011072536A1 (en) 2011-06-23

Similar Documents

Publication Publication Date Title
CN102104470A (en) Multi-network-card double-redundancy device and system under VxWorks system
CN100485598C (en) Method and system for transferring data directly between storage devices in a storage area network
JP4937902B2 (en) Managing process state information in an operating system environment
US6760859B1 (en) Fault tolerant local area network connectivity
CN101677321B (en) Method and apparatus for storage migration
EP0621713B1 (en) Communication of local area network based applications on a switched network
CN100571191C (en) Keep the VRRP technology of VR confidentiality
KR100831639B1 (en) Information processing apparatus, communication load decentralizing method, and communication system
US20040024831A1 (en) Blade server management system
US20070255766A1 (en) System, a Method and a Device for Updating a Data Set Through a Communication Network
WO2002065290A9 (en) Failover processing in a storage system
CN107046810A (en) A kind of virtual machine backup information moving method, device and system
JP2008228150A (en) Switch device, and frame switching method and program thereof
JP2005301488A (en) Method for managing input/output interface module
US20120284435A1 (en) Zone group manager virtual phy
CN103634225A (en) Service bandwidth expansion method in cloud computing network virtualization
CN110572275A (en) Network card switching method and device, server and computer readable storage medium
CN105808158A (en) Method and apparatus for grouping multiple SAS extenders to form single internally condensed SAS extender
CN107911291A (en) VRRP routers switching method, router, VRRP active-standby switch system and storage medium
JP4592242B2 (en) Server / client system
EP2069934B1 (en) Fault-tolerant medium access control (mac) address assignment in network elements
JP4378205B2 (en) Blade type network relay device
JP4806382B2 (en) Redundant system
JP2003203060A (en) Managing network connection in system
JP5488087B2 (en) Control system, control device, composite switch device, and control method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C12 Rejection of a patent application after its publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20110622