CN1505335A - A method for increasing the bandwidth for ethernet - Google Patents

A method for increasing the bandwidth for ethernet Download PDF

Info

Publication number
CN1505335A
CN1505335A CNA02153540XA CN02153540A CN1505335A CN 1505335 A CN1505335 A CN 1505335A CN A02153540X A CNA02153540X A CN A02153540XA CN 02153540 A CN02153540 A CN 02153540A CN 1505335 A CN1505335 A CN 1505335A
Authority
CN
China
Prior art keywords
address
packet
mac address
main frame
arp table
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
CNA02153540XA
Other languages
Chinese (zh)
Other versions
CN1272938C (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.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing 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 Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN 02153540 priority Critical patent/CN1272938C/en
Publication of CN1505335A publication Critical patent/CN1505335A/en
Application granted granted Critical
Publication of CN1272938C publication Critical patent/CN1272938C/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention provides a method for upgrading the Ethernet bandwidth. The method includes following steps: sets several Ethernet cards with different MAC addresses and the same IP address on each host; sets an aRP table on each host, in ARP table, several MAC addresses correspondent to the IP address can be find; when a host needs to send IP datagram to the other host, it searches the ARP table, gets the MAC addresses of target IP, and sends to all the MAC addresses in order.

Description

A kind of method that improves the Ethernet bandwidth
Technical field
The present invention relates to the computer communication technology field, be meant a kind of method that improves the Ethernet bandwidth especially.
Background technology
Along with the disposal ability of computer from strength to strength, the I/O performance of network more and more becomes a bottleneck of system, particularly in Network of Workstation, the network that carries out high-performance calculation needs very big bandwidth solve this problem of computational speed.
Usually address this problem and mainly take following two kinds of measures:
The one, adopt network more fast, as gigabit networking or optical fiber technology (Myrinet) network, but this needs very big investment, and it is very big to transform the difficulty of old system.
Another kind method is binding (Bonding) technology that adopts among the Linux.Become a network interface card with the polylith network interface card is virtual, make it have identical IP address, realize promoting the network bandwidth of main frame.Bonding improves the network bandwidth by many network interface cards, it changes into the hardware address of polylith network interface card (MAC) identical, realized a virtual main frame bond0 then, when sending packet, bond0 at first receives data, send for a plurality of network interface cards then, when the other side also has a plurality of network interface card, just can improve bandwidth its mean allocation.But Bonding needs switch to support relaying (Trunk) technology or Ethernet path (EtherChannel) technology, that is to say, polylith network interface card under certain main frame single IP address must be set to identical MAC Address, by the variation and the responsible allocation of communication channels of switch identification hardware address, thus the lifting of realization bandwidth.The method must be selected the more expensive Ethernet switch with multiport binding technology that can support Trunk or etherchannel technology of price for use when constructing system.Through test, record two hundred Broadcoms after binding technology is handled, its actual bandwidth is about 130mbit/s.Bandwidth than monolithic hundred Broadcoms has only improved about 30%, and the performance of two network interface cards is not fully exerted, and efficient is lower.
Summary of the invention
In view of this, the invention provides a kind of method that improves the Ethernet bandwidth.Use polylith network card binding technology, make the corresponding a plurality of MAC Address of single IP address, thereby broken away from the dependence of Network of Workstation, the more effective network bandwidth that improved switch.Simultaneously, if wherein a network interface card breaks down, other network interface card still can operate as normal, has improved the stability of system.
For achieving the above object, technical scheme of the present invention is achieved in that
A kind of method that improves the Ethernet bandwidth, the method includes the steps of:
A plurality of Ethernet cards with the different MAC Address in same IP address are set on each main frame;
An ARP table is set on each main frame, in this ARP table, can finds a plurality of MAC Address of this IP address correspondence according to the IP address;
When one first main frame need by inquiring about described ARP table, obtain a plurality of MAC Address of target ip address when one second main frame sends the IP packet, send to these a plurality of MAC Address repeating queries.
Preferably, the 3rd step is arranged on network hardware layer, and further comprises following steps:
When first main frame need be when second main frame need send an IP packet, at first obtain the purpose IP address of this packet, according to the inquiry in described ARP table of purpose IP address whether the MAC Address respective items is arranged then, if there is no then directly forward according to original purpose side mac address in this IP packet, otherwise revise purpose side mac address in the packet according to the MAC Address that checks in, forward again;
When this first main frame during next time to same IP address transmission data bag, this main frame uses another MAC Address of this IP address correspondence to revise the purpose side mac address of packet, and another Ethernet card by self forwards again; With this continuous repeating query.
Preferably, virtual equipment of structure on each main frame, the IP packet of all transmission all will pass through this virtual equipment, obtains the purpose IP address of each IP packet in the driver by this virtual equipment.
Preferable, in the 3rd step, the dev_queue_xmit function of the first host computer invokes LINUx operating system forwards the IP packet.
Preferably, described ARP table can obtain by static manual configuration or dynamic the parsing.
Use the present invention, can replace expensive express network, but reach the effect that improves the network bandwidth equally, the original network interface card of system is still played a role, protected user's interests to greatest extent, save investment.Simultaneously, broken away from dependence, and improved the bandwidth of network as much as possible, given play to the usefulness of polylith network interface card switch.When a network interface card broke down, other network interface card still can operate as normal, has improved the stability of a system, reliability.
Description of drawings
Fig. 1 is a Linux network layer model;
Fig. 2 is the structure chart of Linux network device driver;
Fig. 3 is single many MAC Address of IP communication process.
Embodiment
For making purpose of the present invention, technical scheme and advantage clearer, below with reference to the accompanying drawing embodiment that develops simultaneously, the present invention is described in further details.
Figure 1 shows that Linux network layer model.The network portion of Linux has been continued to use traditional hierarchical structure.Network data will be through four levels from the consumer process to the network equipment.The inside of each level can also be subdivided into a lot of levels again, but the transmission course of data can only be according to the division of level, carry out from top to bottom, can not cross over certain or some level wherein, this just makes Network Transmission have only one and be a unique paths.The purpose of doing like this is for reliability that improves whole network and accuracy.
Socket is exactly a connection in the network, and it provides the I/O interface of file to the user, and and procotol closely link together, embodied the relation between network, file system and the management of process, it is the inlet of Network Transmission.
Procotol is a kind of netspeak, and it has stipulated a kind of standard of exchange message between the communicating pair, is the basis of Network Transmission.
Network device interface controlling network data by software to hardware again to the transmittance process of software, embodied the relation of network and equipment, be the bridge of Network Transmission.The applicable surface of Linux network interface is very wide, and all Linux main frames are all followed same interface, and it provides abundant interface function.
The function of network device driver can be divided into two parts and promptly send data function and receive data function.When sending data, device driver is solely responsible for the Frame from protocol layer meshwork buffering district is sent on the physical medium, and accepts the answer signal that hardware produces; When receiving data, device driver receives from the Frame on the network medium, and it is converted to Frame in the meshwork buffering district that can be discerned by procotol, then it is passed to reception packet function.
Figure 2 shows that the structure chart of Linux network device driver.When sending data, the Frame of coming from protocol layer sends on the network interface card through kernel transmission packet function (dev_queue_xmit), then through network device driver function (hard_start_xmit), these data is sent on the network equipment and the medium; When data arrive the network equipment and medium, network interface card will produce an interruption, in the Interrupt Process function (mydev_interrupt) in NIC driver, the data that processing receives, and give the reception packet function (netif_rx) of upper strata kernel it, continue the processing of protocol layer.The effect of initialization routine is just to start at network interface card, network interface card is carried out initialization, promptly just start at network interface card, pointer with all functions in the network device driver function, register in the data structure of mounting equipment driving program (device), the network device driver function is all finished by the device data structure when receiving or send data.
In order to improve the network bandwidth, the polylith network interface card is made as an IP address, keep their MAC Address own constant simultaneously, a plurality of MAC Address that such IP address is just corresponding.In the original ARP(Address Resolution Protocol) table of Linux, the only corresponding MAC Address in IP address is not applicable to this case.For this reason, need to set up the ARP table of oneself, in this ARP table, can find a plurality of MAC Address of its correspondence according to an IP address.MAC Address can be established in the ARP table in static craft, also can take in the ARP table by dynamic parsing.
At first construct a virtual network equipment, all need data packets for transmission all will pass through this equipment, in the driver of this virtual unit, obtain the purpose IP address of this packet, according to the inquiry in the ARP table of oneself setting up of this IP address whether corresponding a plurality of MAC Address are arranged then, if following the corresponding MAC Address in this IP address then directly called the dev_queue_xmit function according to this MAC Address packet forwarded; If corresponding a plurality of MAC Address under this IP address then need to revise purpose side mac address in the packet according to the MAC Address of finding, call the dev_queue_xmit function again this packet is forwarded; When next time to same IP address transmission data bag, just after the MAC Address with purpose side in another MAC Address modification packet of this IP address correspondence, call the dev_queue_xmit function again this packet is forwarded.By that analogy, constantly carrying out repeating query sends.Simultaneously, when sending packet, the network interface card of transmit leg is also in continuous repeating query.So just realized under the situation that does not rely on switch, automatic allocation of communication channels, thus improved the bandwidth of network.
Figure 3 shows that single many MAC Address of IP communication process.The figure left side is a virtual equipment bond0, and two of the right is actual main frame eth0 and eth1.After packet is come from the protocol layer biography, at first pass through bond0, in the driver of bond0, obtain the purpose IP address of this packet, then according to this IP address corresponding MAC Address of inquiry in the ARP table, and purpose side mac address in the modification packet, with this realize bond0 the packet repeating query be sent to the process of eth0 and eth1.
The above only is preferred embodiment of the present invention, and is in order to restriction the present invention, within the spirit and principles in the present invention not all, any modification of being made, is equal to replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (5)

1, a kind of method that improves the Ethernet bandwidth is characterized in that comprising following steps:
A plurality of Ethernet cards with the different MAC Address in same IP address are set on each main frame;
An ARP table is set on each main frame, in this ARP table, can finds a plurality of MAC Address of this IP address correspondence according to the IP address;
When one first main frame need by inquiring about described ARP table, obtain a plurality of MAC Address of target ip address when one second main frame sends the IP packet, send to these a plurality of MAC Address repeating queries.
2, the method for raising Ethernet bandwidth according to claim 1 is characterized in that the 3rd step is arranged on network hardware layer, and further comprises following steps:
When first main frame need be when second main frame need send an IP packet, at first obtain the purpose IP address of this packet, according to the inquiry in described ARP table of purpose IP address whether the MAC Address respective items is arranged then, if there is no then directly forward according to original purpose side mac address in this IP packet, otherwise revise purpose side mac address in the packet according to the MAC Address that checks in, forward again;
When this first main frame during next time to same IP address transmission data bag, this main frame uses another MAC Address of this IP address correspondence to revise the purpose side mac address of packet, and another Ethernet card by self forwards again; With this continuous repeating query.
3, the method for raising Ethernet bandwidth according to claim 1, it is characterized in that, virtual equipment of structure on each main frame, the IP packet of all transmission all will pass through this virtual equipment, obtains the purpose IP address of each IP packet in the driver by this virtual equipment.
4, the method for raising Ethernet bandwidth according to claim 1 is characterized in that the dev_queue_xmit function of the first host computer invokes LINUX operating system forwards the IP packet in the 3rd step.
5, a kind of method that improves the Ethernet bandwidth according to claim 1 is characterized in that, described ARP table can obtain by static manual configuration or dynamic the parsing.
CN 02153540 2002-12-04 2002-12-04 A method for increasing the bandwidth for Ethernet Expired - Fee Related CN1272938C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 02153540 CN1272938C (en) 2002-12-04 2002-12-04 A method for increasing the bandwidth for Ethernet

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 02153540 CN1272938C (en) 2002-12-04 2002-12-04 A method for increasing the bandwidth for Ethernet

Publications (2)

Publication Number Publication Date
CN1505335A true CN1505335A (en) 2004-06-16
CN1272938C CN1272938C (en) 2006-08-30

Family

ID=34235180

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 02153540 Expired - Fee Related CN1272938C (en) 2002-12-04 2002-12-04 A method for increasing the bandwidth for Ethernet

Country Status (1)

Country Link
CN (1) CN1272938C (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100414936C (en) * 2006-06-30 2008-08-27 中国科学院计算技术研究所 Method for balancing load between multi network cards of network file system server
CN103166840A (en) * 2011-12-09 2013-06-19 国家电网公司 Data transmission method and data transmission system for server and switchboard
CN103336708A (en) * 2013-05-31 2013-10-02 华为技术有限公司 Method and related equipment for aggregating network card resources, and computer system
CN103944750A (en) * 2014-03-14 2014-07-23 华为技术有限公司 Method and device for processing bonded network card faults
CN104079486A (en) * 2013-03-28 2014-10-01 国际商业机器公司 Gateway and method of transmitting data through gateway
CN104702518A (en) * 2015-03-05 2015-06-10 安徽清新互联信息科技有限公司 Wireless network-based multi-card router device and data transmission method thereof

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100414936C (en) * 2006-06-30 2008-08-27 中国科学院计算技术研究所 Method for balancing load between multi network cards of network file system server
CN103166840A (en) * 2011-12-09 2013-06-19 国家电网公司 Data transmission method and data transmission system for server and switchboard
CN104079486A (en) * 2013-03-28 2014-10-01 国际商业机器公司 Gateway and method of transmitting data through gateway
WO2014154087A1 (en) * 2013-03-28 2014-10-02 International Business Machines Corporation A gateway and its method of transfering data
US9887905B2 (en) 2013-03-28 2018-02-06 International Business Machines Corporation Transferring data in a gateway
US10129137B2 (en) 2013-03-28 2018-11-13 International Business Machines Corporation Transferring data in a gateway
US10135717B2 (en) 2013-03-28 2018-11-20 International Business Machines Corporation Transferring data in a gateway
CN103336708A (en) * 2013-05-31 2013-10-02 华为技术有限公司 Method and related equipment for aggregating network card resources, and computer system
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
CN104702518A (en) * 2015-03-05 2015-06-10 安徽清新互联信息科技有限公司 Wireless network-based multi-card router device and data transmission method thereof
CN104702518B (en) * 2015-03-05 2017-12-19 安徽清新互联信息科技有限公司 A kind of more card router apparatus and its data transmission method based on wireless network

Also Published As

Publication number Publication date
CN1272938C (en) 2006-08-30

Similar Documents

Publication Publication Date Title
US5864535A (en) Network server having dynamic load balancing of messages in both inbound and outbound directions
US20020080800A1 (en) VLAN data switching method using ARP packet
CN111614631B (en) User mode assembly line framework firewall system
CN101098292B (en) Method for reducing user address analysis protocol broadcast on access equipment
CA2091084A1 (en) Combined terminal adapter for smd5 and frame relay high speed data services
JPH06243103A (en) Parallel computer system
CN1825836A (en) System and method for avoiding network apparatus jamming
CN111371920A (en) DNS front-end analysis method and system
CN1272938C (en) A method for increasing the bandwidth for Ethernet
CN1832458A (en) Method for facilitating application server functionality and access node comprising same
CN1668030A (en) System and a method for processing field frames for multiprotocol use in a communications
CN1157902C (en) Ip address mapping and transmitting method for non-broadcast multipath access network
CN1235346C (en) Method for improving route repeat liability of access server
US7463585B2 (en) System, method, and apparatus for load-balancing to a plurality of ports
KR20000054938A (en) Method and Apparatus for Packet Processing in Ethernet Switching System
JPH1013471A (en) Inter-network connection system and domain name managing method
CN1933450A (en) Interplate communicating method and interface plate
Cisco DLSw+ Commands
Cisco M
CN1435969A (en) Method for implementing supporting virtual local network fire wall
Cisco DLSw+ Configuration Commands
JP2002185464A (en) Client server system and its address altering method
JP2001144793A (en) High speed/high reliability ether transmission system and i/f device
CN102150400A (en) Router and cluster router
CN1126326C (en) IP address allocation method for access server

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

Granted publication date: 20060830

Termination date: 20201204

CF01 Termination of patent right due to non-payment of annual fee