CN106657029A - Redundant communication method for realizing multi-internet access IP address sharing based on white list - Google Patents
Redundant communication method for realizing multi-internet access IP address sharing based on white list Download PDFInfo
- Publication number
- CN106657029A CN106657029A CN201611101723.6A CN201611101723A CN106657029A CN 106657029 A CN106657029 A CN 106657029A CN 201611101723 A CN201611101723 A CN 201611101723A CN 106657029 A CN106657029 A CN 106657029A
- Authority
- CN
- China
- Prior art keywords
- port
- white list
- interface card
- network interface
- address
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L63/00—Network architectures or network communication protocols for network security
- H04L63/10—Network architectures or network communication protocols for network security for controlling access to devices or network resources
- H04L63/101—Access control lists [ACL]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L49/00—Packet switching elements
- H04L49/25—Routing or path finding in a switch fabric
- H04L49/253—Routing or path finding in a switch fabric using establishment or release of connections between ports
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L49/00—Packet switching elements
- H04L49/55—Prevention, detection or correction of errors
- H04L49/552—Prevention, detection or correction of errors by ensuring the integrity of packets received through redundant connections
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L2101/00—Indexing scheme associated with group H04L61/00
- H04L2101/60—Types of network addresses
- H04L2101/618—Details of network addresses
- H04L2101/622—Layer-2 addresses, e.g. medium access control [MAC] addresses
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Security & Cryptography (AREA)
- Computer Hardware Design (AREA)
- Computing Systems (AREA)
- General Engineering & Computer Science (AREA)
- Small-Scale Networks (AREA)
Abstract
The invention discloses a redundant communication method for realizing multi-internet access IP address sharing based on a white list. The method is characterized by comprising the following steps: step one, a network card driver detects link states of multiple ports of a network card and selects the current network card working port according to multi-network switching logic; step two, the white list corresponding to the current network card working port is set, an allowable-to-receive MAC address of the current network card working port is written in the white list, and the white list corresponding to other port is eliminated at the same time; step three, when receiving the data: the current network card working port only receives a message with a destination address written in the white list, and other data is directly abandoned, and other port is prohibited to receive the data; when sending the data: the network card driver assigns to send the data from the current working port. By use of the redundant communication method disclosed by the invention, the communication is realized under the condition that the multiple internet accesses of the device have the same IP address and the same MAC address.
Description
Technical field
The present invention relates to a kind of redundance communicating method that the shared IP address of Multi-netmouth is realized based on white list.
Background technology
In Power System Intelligent apparatus field, often there is a kind of situation of special multiple network telecommunication in Jing:Require a device net
Network multiport is identical ip addresses and MAC Address, and multiport is Hot Spare, and the networking mode of practical application is illustrated in fig. 1 shown below.
Common unit cannot provide under normal circumstances multiple identical ip addresses, the network interface card of identical MAC Address.In operating system
Under support, double netcard binding can be set(bond)Mode is run, and can so provide the double of identical ip addresses and MAC Address
Net, but double netcard is supported on hardware for claimed apparatus and operating system supports double net bindings prescription formula altogether, so can cause to set
Meter is complicated, and cost increases, and this method cannot realize this pattern of the shared identical ip addresses of Multi-netmouth.
The content of the invention
For the problems referred to above, the present invention provides a kind of redundancy communication side that the shared IP address of Multi-netmouth is realized based on white list
Method, is communicated in the case of realizing device Multi-netmouth for identical ip addresses and MAC Address.
To realize above-mentioned technical purpose, above-mentioned technique effect is reached, the present invention is achieved through the following technical solutions:
A kind of redundance communicating method that the shared IP address of Multi-netmouth is realized based on white list, it is characterised in that comprise the steps:
Step 1, trawl performance detection are specified the linking status of the multiple ports of network interface card, and select current net according to multi-network switch logic
Card working port;
Step 2, the corresponding white list of the current network interface card working port of setting, write current network interface card working port and permit in the white list
Perhaps the MAC Address for receiving, while removing the corresponding white list in other ports;
Step 3, when data is received:Current network interface card working port only receives the message that destination address lists white list in, its remainder
According to directly discarding, and forbid other port receiving datas;
When sending out data:Trawl performance is specified from work at present port and sends data.
It is preferred that, when current network interface card working port occurs chain rupture, trawl performance is automatically switched to according to multi-network switch logic
There is no the port of chain rupture, while arranging the corresponding white list in the port, remove the white list of other ports.
It is preferred that, multi-network switch logic is:
1)By multiple ports of network interface card respectively according to priority descending arrangement from high to low;
2)Connection status is selected to be that normal and highest priority port is current network interface card working port;
3)When the connection status of current network interface card working port is abnormal, into step 2)Select new current network interface card working end
Mouthful.
It is preferred that, multi-network switch logic also includes:When priority higher than current network interface card working port port connection state by
Abnormal restoring to it is normal when, then it is new current network interface card working port to switch the port.
The invention has the beneficial effects as follows:
Device Multi-netmouth can just be realized for identical ip addresses and the situation of MAC Address only with a network interface card by said method
Under redundancy communication, this scheme do not rely on specific hardware, greatly reduce the complexity of design and the design of hardware,
Production cost, communication is efficiently, flexibly.
Description of the drawings
Fig. 1 is the networking mode schematic diagram of the practical application in the case of special multiple network telecommunication;
Fig. 2 is the relation schematic diagram of network interface card of the present invention, FPGA, phy;
Fig. 3 is general frame schematic diagram of the double nets of A, B based on the double net changing methods of white list in the specific embodiment of the invention;
Fig. 4 is the switch logic schematic diagram of the double nets of A, B in the specific embodiment of the invention.
Specific embodiment
Below in conjunction with the accompanying drawings technical solution of the present invention is described in further detail with specific embodiment, so that ability
The technical staff in domain can be better understood from the present invention and can be practiced, but illustrated embodiment is not as the limit to the present invention
It is fixed.
As shown in figure 1, in Power System Intelligent apparatus field, often there is a kind of situation of special multiple network telecommunication in Jing:Require
The multiple ports of one plant network are identical ip addresses and MAC Address, and multiport is Hot Spare.It is a kind of to be realized based on white list
The redundance communicating method of the shared IP address of Multi-netmouth, comprises the steps:
Step 1, trawl performance detection are specified the linking status of the multiple ports of network interface card, and select current net according to multi-network switch logic
Card working port.
Step 2, the corresponding white list of the current network interface card working port of setting, write current network interface card working end in the white list
Mouth allows the MAC Address for receiving, and enables from the port receiving data, while removing the corresponding white list in other ports.
The transmitting-receiving of step 3, data:
When data is received:Current network interface card working port only receives the message that destination address lists white list in, and remainder data is direct
Abandon, and forbid other port receiving datas;
When sending out data:Trawl performance is specified from work at present port and sends data.
With the network interface card in Fig. 2, FPGA, phy(Physical layer interface, namely multiple ports of network interface card, each port correspondence one
MAC Address)Relation sketch as a example by, be attached by FPGA between network interface card and multiple ports, the trawl performance of CPU is arranged
FPGA allows the mac address filter white list for receiving, FPGA to select corresponding port phy according to the white list that trawl performance is arranged
Receiving data, according to sending port phy that trawl performance is specified data are sent.
FPGA selects corresponding port receiving data according to the white list that trawl performance is arranged, and is specified according to trawl performance
Sending port(I.e. current network interface card working port)Send data.Specifically way is:
(1)Receiving data:FPGA combined data is filtered according to default white list, and non-equipment needs the data for receiving straight
Connect discarding.
(2)Send data:When FPGA sends data, according to the port that trawl performance is selected(I.e. current network interface card work
Port)Data are sent, wherein, during sending data, by the corresponding MAC Address write data message of the port.
White list is a kind of data filtering means, and the port for being only provided with white list can receiving data, only mesh
Address add the message of white list and can be received, otherwise data can all be filtered, and directly carry out discard processing.
Wherein, in communication process, when current network interface card working port occurs chain rupture, trawl performance is patrolled according to multi-network switch
Collect to automatically switch to and the port of chain rupture does not occur, while arranging the corresponding white list in the port, remove the white list of other ports.
General, multi-network switch logic is:
1)By multiple ports of network interface card respectively according to priority descending arrangement from high to low;
2)Select connection status(Link states)It is current network interface card working port for normal and highest priority port;
3)When the connection status of current network interface card working port is abnormal, into step 2)Select new current network interface card working end
Mouthful;
4)When priority higher than current network interface card working port port connection state by abnormal restoring to it is normal when, then switch the end
Mouth is new current network interface card working port.
It is exemplified below:
(1)The priority of multiple ports of network interface card is netted port and is declined successively to N nets port by A, A net port priority highests;
(2)When A net port link states are normal, A net port workings are selected;
(3)When A nets port link abnormal states, if B nets port is normal, B net port workings are selected;
(4)When A nets port link abnormal states, if B nets port is also abnormal, select C net port workings, other ports are patrolled
Collect by that analogy;
(6)If link abnormal states all occurs in all of the port, A net port workings are selected;
(6)During the low port working of priority, the high port link states of priority recover normal, then can be switched to excellent
The high port working of first level.Such as:When B net port workings are currently in, if A nets port recovers normal, A nets are switched to
Port working.
Trawl performance detects comprising the following steps that for the linking status of multiple ports of same network interface card:
A, by command word, the port for participating in multi-network switch is set;
The connection status of B, the multiple network ports run by command word, acquisition participation;
C, the port currently communicated by command word, acquisition.
After detecting the working condition of port, current network interface card working port is arranged according to multi-network switch logic.
As shown in Figures 3 and 4, it is assumed that the double nets in two ports of network interface card corresponding A and B, i.e. A, B, then, double nets are realized based on white list
The redundance communicating method of the shared IP address of mouth, specially:
The linking status of network interface card dual-port are specified in step A, trawl performance detection, then select current net according to double net switch logics
Card working port, arranging working port FPGA allows to receive mac address filter white list, enables from the port receiving data,
Another port is removed simultaneously and receives white list, forbid another port receiving data.
Step B:When current network interface card working port network occurs chain rupture, double net switch logics automatically switch to another
Port, while arranging port FPGA receives the corresponding new white list of MAC Address, the white list before removing.
Double net switch logics are in above-mentioned:
1st, when A net link states are normal, A net work is selected.
2nd, when A nets link abnormal states, if B nets are normal, B net work is selected.
3rd, when A nets link abnormal states, if B nets are also abnormal, A net work is selected.
4th, when B net work is currently in, if A network recoveries are normal, it is switched to A net work.
Step C, trawl performance is specified from work at present port when sending data and sends data.
Wherein, the step of linking status of network interface card dual-port are specified in trawl performance detection is as follows:
(1)By command word 0x600A, the ports for participating in double net switchings are set, specific implication is with a byte(8)Number
According to representing, the port of participation puts 1 on its position, otherwise sets to 0.As phy ports A and phy ports B participates in double net switchings, then
It is set to 0x03(0x00000011);As phy ports C and phy ports D participates in double net switchings, then 0x0c is set to
(0x00001100).
(2)By command word 0x600B, the link states of the two-port phy port A or phy ports B that participate in operation are obtained,
With bit0 and bit1 respectively representing the working condition of phy ports A condition and phy ports B, wherein 0:Expression does not work, and 1:Table
Show work.
(3)By command word 0x600C, the COM1 for participating in double net switchings is obtained, i.e.,:Acquisition is currently led to
The port of letter.Specific implication is with a byte(8)Data representing.Cut as phy ports A and phy ports B participates in double nets
Change, now phy ports A then now returns 0, phy ports B just in communication work just in communication work, then now return 1, phy
Port C then now returns 2, phy ports D just in communication work just in communication work, then now return 3.
(4)After detecting the working condition of port, according to double net switch logic schematic diagrames(As shown in Figure 4)The work is set
Make the white list of port FPGA receptions, and specify the working port to send data.
FPGA selects corresponding port receiving data according to the white list that trawl performance is arranged, and is specified according to trawl performance
Sending port sends data.Specifically way is:
1st, receiving data:FPGA combined data is filtered according to default white list, and non-equipment needs the data for receiving straight
Connect discarding.
2nd, data are sent:When FPGA sends data, according to the port that trawl performance is selected(I.e. current network interface card working end
Mouthful)Send data.
After using such scheme, a kind of special status that general double net patterns are difficult to can be solved, only with one
Network interface card can just realize device Multi-netmouth for the communication in the case of identical ip addresses and MAC Address, and communication is efficiently, flexibly.
The preferred embodiments of the present invention are these are only, the scope of the claims of the present invention is not thereby limited, it is every using this
Equivalent structure or equivalent flow conversion that bright specification and accompanying drawing content are made, or directly or indirectly it is used in other correlations
Technical field, be included within the scope of the present invention.
Claims (6)
1. it is a kind of to realize that Multi-netmouth shares the redundance communicating method of IP address based on white list, it is characterised in that including following step
Suddenly:
Step 1, trawl performance detection are specified the linking status of the multiple ports of network interface card, and select current net according to multi-network switch logic
Card working port;
Step 2, the corresponding white list of the current network interface card working port of setting, write current network interface card working port and permit in the white list
Perhaps the MAC Address for receiving, while removing the corresponding white list in other ports;
Step 3, when data is received:Current network interface card working port only receives the message that destination address lists white list in, its remainder
According to directly discarding, and forbid other port receiving datas;
When sending out data:Trawl performance is specified from work at present port and sends data.
2. a kind of redundance communicating method that the shared IP address of Multi-netmouth is realized based on white list according to claim 1, its
It is characterised by, when current network interface card working port occurs chain rupture, trawl performance is automatically switched to according to multi-network switch logic and do not sent out
The port of raw chain rupture, while arranging the corresponding white list in the port, removes the white list of other ports.
3. a kind of redundance communicating method that the shared IP address of Multi-netmouth is realized based on white list according to claim 1, its
It is characterised by, multi-network switch logic is:
1)By multiple ports of network interface card respectively according to priority descending arrangement from high to low;
2)Connection status is selected to be that normal and highest priority port is current network interface card working port;
3)When the connection status of current network interface card working port is abnormal, into step 2)Select new current network interface card working end
Mouthful.
4. a kind of redundance communicating method that the shared IP address of Multi-netmouth is realized based on white list according to claim 3, its
It is characterised by, multi-network switch logic also includes:When priority higher than current network interface card working port port connection state by exception
When returning to normal, then it is new current network interface card working port to switch the port.
5. a kind of redundance communicating method that the shared IP address of Multi-netmouth is realized based on white list according to claim 1, its
It is characterised by, is attached by FPGA between network interface card and multiple ports.
6. a kind of redundance communicating method that the shared IP address of Multi-netmouth is realized based on white list according to claim 1, its
It is characterised by, trawl performance detects comprising the following steps that for the linking status of multiple ports of same network interface card:
A, by command word, the port for participating in multi-network switch is set;
The connection status of B, the multiple network ports run by command word, acquisition participation;
C, the port currently communicated by command word, acquisition.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611101723.6A CN106657029A (en) | 2016-12-05 | 2016-12-05 | Redundant communication method for realizing multi-internet access IP address sharing based on white list |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611101723.6A CN106657029A (en) | 2016-12-05 | 2016-12-05 | Redundant communication method for realizing multi-internet access IP address sharing based on white list |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106657029A true CN106657029A (en) | 2017-05-10 |
Family
ID=58818339
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201611101723.6A Pending CN106657029A (en) | 2016-12-05 | 2016-12-05 | Redundant communication method for realizing multi-internet access IP address sharing based on white list |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106657029A (en) |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110413328A (en) * | 2019-07-24 | 2019-11-05 | 苏州浪潮智能科技有限公司 | A kind of PXE function enabled method, device and the relevant device of network interface card port |
CN110808908A (en) * | 2019-09-27 | 2020-02-18 | 华东计算技术研究所(中国电子科技集团公司第三十二研究所) | System and method for switching redundant network in real time across platforms |
CN112187960A (en) * | 2019-07-01 | 2021-01-05 | 广州汽车集团股份有限公司 | Vehicle ECU address allocation method and device and vehicle |
CN112822149A (en) * | 2020-08-17 | 2021-05-18 | 北京辰信领创信息技术有限公司 | Terminal access control design based on intelligent router physical port, MAC and IP |
CN113645048A (en) * | 2021-08-09 | 2021-11-12 | 武汉德创信通科技有限公司 | Network card switching method and device and field programmable gate array FPGA |
CN114157402A (en) * | 2021-11-15 | 2022-03-08 | 天津市英贝特航天科技有限公司 | Dual-redundancy network card communication method and device |
CN116527406A (en) * | 2023-07-03 | 2023-08-01 | 北京左江科技股份有限公司 | Multi-host security system and communication method based on FPGA |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1706160A (en) * | 2003-01-13 | 2005-12-07 | 思科技术公司 | Method and system for optimized switchover of redundant forwarding engines |
CN1842020A (en) * | 2005-03-28 | 2006-10-04 | 华为技术有限公司 | Method for realizing data service backup |
CN101707589A (en) * | 2009-09-25 | 2010-05-12 | 曙光信息产业(北京)有限公司 | Automatic port switching method and device for multiport network card |
CN104917705A (en) * | 2015-06-18 | 2015-09-16 | 国家电网公司 | Network message management method of intelligent substation process layer switch |
-
2016
- 2016-12-05 CN CN201611101723.6A patent/CN106657029A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1706160A (en) * | 2003-01-13 | 2005-12-07 | 思科技术公司 | Method and system for optimized switchover of redundant forwarding engines |
CN1842020A (en) * | 2005-03-28 | 2006-10-04 | 华为技术有限公司 | Method for realizing data service backup |
CN101707589A (en) * | 2009-09-25 | 2010-05-12 | 曙光信息产业(北京)有限公司 | Automatic port switching method and device for multiport network card |
CN104917705A (en) * | 2015-06-18 | 2015-09-16 | 国家电网公司 | Network message management method of intelligent substation process layer switch |
Cited By (13)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112187960A (en) * | 2019-07-01 | 2021-01-05 | 广州汽车集团股份有限公司 | Vehicle ECU address allocation method and device and vehicle |
CN112187960B (en) * | 2019-07-01 | 2023-02-28 | 广州汽车集团股份有限公司 | Vehicle ECU address allocation method and device and vehicle |
CN110413328B (en) * | 2019-07-24 | 2022-05-24 | 苏州浪潮智能科技有限公司 | PXE function enabling method and device for network card port and related equipment |
CN110413328A (en) * | 2019-07-24 | 2019-11-05 | 苏州浪潮智能科技有限公司 | A kind of PXE function enabled method, device and the relevant device of network interface card port |
CN110808908A (en) * | 2019-09-27 | 2020-02-18 | 华东计算技术研究所(中国电子科技集团公司第三十二研究所) | System and method for switching redundant network in real time across platforms |
CN110808908B (en) * | 2019-09-27 | 2021-09-21 | 华东计算技术研究所(中国电子科技集团公司第三十二研究所) | System and method for switching redundant network in real time across platforms |
CN112822149A (en) * | 2020-08-17 | 2021-05-18 | 北京辰信领创信息技术有限公司 | Terminal access control design based on intelligent router physical port, MAC and IP |
CN112822149B (en) * | 2020-08-17 | 2022-07-12 | 北京辰信领创信息技术有限公司 | Terminal access control design based on intelligent router physical port, MAC and IP |
CN113645048A (en) * | 2021-08-09 | 2021-11-12 | 武汉德创信通科技有限公司 | Network card switching method and device and field programmable gate array FPGA |
CN113645048B (en) * | 2021-08-09 | 2024-02-02 | 武汉德创信通科技有限公司 | Network card switching method and device and field programmable gate array FPGA |
CN114157402A (en) * | 2021-11-15 | 2022-03-08 | 天津市英贝特航天科技有限公司 | Dual-redundancy network card communication method and device |
CN116527406A (en) * | 2023-07-03 | 2023-08-01 | 北京左江科技股份有限公司 | Multi-host security system and communication method based on FPGA |
CN116527406B (en) * | 2023-07-03 | 2023-09-12 | 北京左江科技股份有限公司 | Multi-host security system and communication method based on FPGA |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106657029A (en) | Redundant communication method for realizing multi-internet access IP address sharing based on white list | |
CN103181133A (en) | Pcie exchange-based server system and switching method thereof and device | |
CN101188599B (en) | Implementation method for load balance design of electric monitoring front system of power plant | |
CN102710424B (en) | A kind of 10,000,000,000 multi-functional network interface card of gigabit and its implementation method | |
CN106487679B (en) | The active-standby switch system and switching method of Ethernet switch | |
CN103248526A (en) | Communication equipment and method for achieving out-of-band monitoring and management, and master-slave switching method | |
CN101645832B (en) | Processing method of network data packets for virtual machine based on FPGA | |
CN204650513U (en) | Distributed structure/architecture equipment and serial port circuit thereof | |
CN108616376B (en) | FC network system fault dynamic reconstruction method | |
CN103684848B (en) | A kind of non-management type industrial ethernet switch automatically configured and its implementation | |
CN106603359B (en) | The communicating control method and device of PLC system | |
RU2007111857A (en) | RING NETWORK, COMMUNICATION DEVICE AND OPERATIONAL MANAGEMENT METHOD USED FOR THE RING NETWORK AND COMMUNICATION DEVICE | |
US20210311800A1 (en) | Connecting accelerator resources using a switch | |
CN103152239A (en) | Open VSwitch-based virtual network implementation method and system | |
CN103414801A (en) | Method and device for synchronizing medium access control addresses in stacking system | |
CN109245926A (en) | Intelligent network adapter, intelligent network adapter system and control method | |
CN102355414B (en) | Automatic protection switching state machine processing method and device | |
CN105530157B (en) | The multiple virtual links of the AFDX network switch share the framework and method of credit | |
CN101834781A (en) | Media access control address keep-alive device and method for convergence port | |
CN102761488B (en) | High-speed full duplex switched Ethernet controller | |
CN104168200A (en) | Open vSwitch-based method and system for realizing ACL function | |
CN107181702B (en) | Device for realizing RapidIO and Ethernet fusion exchange | |
CN102474440A (en) | Network line-concentrator and control method thereof | |
CN107493245B (en) | Board card of switch and data stream forwarding method | |
CN103731316B (en) | A kind of flow-monitoring device and method |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20170510 |
|
RJ01 | Rejection of invention patent application after publication |