CN1304972C - Network connecting device and its data package transferring method - Google Patents

Network connecting device and its data package transferring method Download PDF

Info

Publication number
CN1304972C
CN1304972C CNB021244553A CN02124455A CN1304972C CN 1304972 C CN1304972 C CN 1304972C CN B021244553 A CNB021244553 A CN B021244553A CN 02124455 A CN02124455 A CN 02124455A CN 1304972 C CN1304972 C CN 1304972C
Authority
CN
China
Prior art keywords
data packet
data
main frame
package
eigenwert
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.)
Expired - Lifetime
Application number
CNB021244553A
Other languages
Chinese (zh)
Other versions
CN1389798A (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.)
Via Technologies Inc
Original Assignee
Via Technologies Inc
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 Via Technologies Inc filed Critical Via Technologies Inc
Priority to CNB021244553A priority Critical patent/CN1304972C/en
Publication of CN1389798A publication Critical patent/CN1389798A/en
Application granted granted Critical
Publication of CN1304972C publication Critical patent/CN1304972C/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The present invention relates to a network connecting device and a data package transferring method thereof. A signal of the network connecting device is connected between a computer host and an external network. The network connecting device comprises a media access controller, a buffer and a characteristic value judge device. The package transferring method comprises the following steps a data package sent by the external network is received; the received data package is temporarily stored in the buffer which is arranged in the network connection device; according to the characteristic value of the data package, the package transferring method judges whether the data package conforms to the transferring condition or not; when the characteristic value conforms to the transferring condition, the computer host carries out the interrupt service, and then the related data package which is stored in the buffer is transferred to the computer host.

Description

The data packet transfer method
Technical field
The present invention relates to a kind of network connection device and use the data packet transfer method of this device, refer to be applied to signal especially and be connected to network connection device and data packet transfer method thereof between a main frame and an external network.
Background technology
See also Fig. 1, the framework block schematic diagram commonly used of the personal computer inside of one tool network on-line function, its core is partly mainly by microprocessor 10, north bridge chips 11, South Bridge chip 12 constitutes, and internal memory 111 is connected in north bridge chips 11, can be connected to north bridge chips 11 by a peripheral assembly connecting interface bus (PCI Bus) as for 121 of network cards, and (the Media Access Controller of the medium access controller 1211 in the network card 121, be called for short MAC) in some configuration, then can directly be integrated in the South Bridge chip 12, be connected with external network as for 1212 of physical units (PHY).
And when media storage control unit 1211 carries out the transmission of data packet or receives, media storage control unit 1211 all can send hardware interrupt to microprocessor 10, makes microprocessor 10 put down present task and the Interrupt Service Routine (ISR) of the driver of this media storage control unit 1211 of diversion treatments.
And the mode that the look-at-me of existing general media storage control unit 1211 produces can be divided into following several:
1. each data packet or fixing several data packets promptly send a hardware interrupt.
2. promptly send a hardware interrupt every one period set time.
3. take to mix the mode of above-mentioned the 1st kind and the 2nd kind.
When the delivery flow rate (Troughput) of network data package is very low, if the hardware interrupt that this media storage control unit 1211 of mode that uses the 1st kind is sent, can make operating system can in real time data packet be taken and discharge away the memory source that it originally took, but when delivery flow rate is very high, constantly the look-at-me that produces will cause the calculation resources of microprocessor 10 to be taken in a large number, make entire system usefulness have a greatly reduced quality, thus, its usefulness of look-at-me can become the utilization rate of very poor and microprocessor 10 can be very high.
In addition, the 2nd kind of employed mode look-at-me that it produced when flow is high can make operating system in real time data packet be taken away and discharge the memory source that it originally took, and the utilization rate of microprocessor 10 is not high yet, but when flow is low, because of it can't real time reaction produce look-at-me, the speed that can cause operating system that data packet is taken away is too slow.
As for, take the 3rd kind mode to adjust its data packet quantity and the time produces look-at-me according to the flow of network data package, yet under the uncertain situation of delivery flow rate (Troughput) of network data package, be difficult to this media storage control unit of control 1211 and send hardware interrupt in reasonable time.
Because the opportunity that above-mentioned look-at-me producing method is only adjusted interruption with the quantity and the length of time of data packet, this will cause microprocessor 10 to put down present task and after turning to the content of reading of data package, if when finding that data packet is not last package of certain data segment (archives as a 15kbyte are divided into 10 data packages when transmitting), can't notification application data packet is taken away but be continued to be temporary in this internal memory 111, return as for 10 of microprocessors and continue to carry out uncompleted task.Whenever media control unit 1211 is sent a hardware interrupt, microprocessor 10 just must constantly repeat above-mentioned action, and take the calculation resources of microprocessor 10, up to last data packet of receiving about this data segment, microprocessor 10 just call operation systems is received and be temporarily stored in partial data package in the internal memory 111 and take away and discharge the memory source that it originally took with media control unit 1211.
Yet, along with popularizing of wideband network, the data traffic that system transmits and receives by media storage control unit heightens, therefore microprocessor 10 receives that the frequency of hardware interrupt also heightens thereupon, so will cause the calculation resources of microprocessor 10 to be taken in a large number, make entire system usefulness have a greatly reduced quality, especially in network system, the server of playing the part of the role of each terminating machine of service, its inside all must possess several network cards usually, just can deal with the demand of various service, if the network card in this server takes above-mentioned mode to produce look-at-me, so too high hardware interrupts frequency can cause server usefulness to descend even work as machine.And how to improve the disappearance of above-mentioned conventional means, for developing a fundamental purpose of the present invention.
Summary of the invention
The object of the present invention is to provide a kind of network connection device and use the data packet transfer method of this device, whether analyze data packet with the 3rd layer protocol content of the network in the data packet is the last package of data segment or the package that need shift immediately, so that can produce look-at-me optimal opportunity, and then reduce the frequency that microprocessor is excessively taken, make that entire system usefulness can normal operation.Especially the inner server that possesses several network cards if the network card in this server takes mode of the present invention to produce look-at-me, does not only have too high hardware interrupts frequency, and the usefulness of server also can show and promotes.
The object of the present invention is achieved like this:
The invention discloses a kind of network connection device, signal is connected between a main frame and the external network, this network connection device comprises: a medium access controller, signal are connected to this external network, and it receives the data packet by this external network transmitted; One impact damper, signal are connected in this medium access controller, its temporary this received data packet of this medium access controller; An and eigenwert determining device, signal is connected in this impact damper, its eigenwert according to this data packet inside judges whether this data packet meets a jump condition, when this eigenwert meets, drive this medium access controller and send a look-at-me to this main frame, make this main frame carry out a corresponding break in service, and then this data packet that will deposit in this impact damper is transferred to this main frame in response to this look-at-me; This impact damper can be a static random access memory (SRAM), and this eigenwert determining device is a microprocessor.
In the network connection device of the present invention, when this eigenwert of this data packet does not meet this jump condition, then this data packet is continued to be temporary in this impact damper, when the detected data packet of this eigenwert determining device was all last data packet of forming a data segment, the partial data package that just will form this data segment was transferred to this main frame.
In the network connection device of the present invention, this network connection device more comprises a flash memory, and signal is connected in this eigenwert determining device, and it deposits this eigenwert determining device in opening required data recording of when running beginning.
In the network connection device of the present invention, this eigenwert is a certain content of a destination address (DA), a data type and this data packet of this data packet.
In the network connection device of the present invention, this certain content of this data packet is hardware address (Target HA), a value of statistical indicant (flags) and a code bit (Code Bits) one of them or its combination of Internet protocol addresses (Target IP), a destination of a type of hardware (Hardware Type), a protocol type (Protocol Type), a destination.
In the network connection device of the present invention, this jump condition is:
When the form of this data packet is the package that need shift at once, then immediately this data packet is transferred to this main frame; When the form of this data packet is the package that all data packets of forming a data segment need be shifted simultaneously, then need receive all data packets of forming this data segment, the partial data package that just will form this data segment is transferred to this main frame.
The invention also discloses a kind of network connection device, signal is connected between a main frame and the external network, this network connection device comprises: a medium access controller, signal are connected to this external network, and it receives the data packet by this external network transmitted; One impact damper, signal are connected in this medium access controller, its temporary this received data packet of this medium access controller; An and eigenwert determining device, signal is connected in this impact damper, its eigenwert according to this data packet inside judges whether this data packet meets a jump condition, when this eigenwert meets, drive this medium access controller and send a look-at-me to this main frame, make this main frame carry out a corresponding break in service, and then will deposit in and be temporary in a plurality of data packets relevant in this impact damper before this data packet in this impact damper and this data packet and be transferred to this main frame together with this data packet in response to this look-at-me.
The invention also discloses a kind of data packet transfer method, be applied to signal and be connected on the network connection device between a main frame and an external network, this method comprises the following steps: to receive a data packet that is transmitted by this external network; This received data packet is temporary in the impact damper that is arranged in this network connection device; Judge according to an eigenwert of this data packet whether this data packet meets a jump condition; When this eigenwert met this jump condition, the package of the form of this data packet for needing to shift at once make this main frame carry out a break in service, and then the related data package that will deposit in this impact damper was transferred to this main frame; And when this eigenwert does not meet this jump condition, the package of the form of this data packet for all data packets of forming a data segment being shifted simultaneously, need receive all data packets of forming this data segment, make this main frame carry out a break in service, and then all data packets that will deposit in this data segment of composition in this impact damper are transferred to this main frame.
In the data packet transfer method of the present invention, this data packet is to utilize a medium access controller to receive.In the data packet transfer method of the present invention, this jump condition is: when the form of this data packet is the package that need shift at once, then immediately this data packet is transferred to this main frame; When the form of this data packet is then need receive all data packets of forming this data segment when forming all data packets of a data segment, the partial data package that just will form this data segment is transferred to this main frame.In the data packet transfer method of the present invention, this eigenwert is a certain content of a destination address (DA), a data type and this data packet of this data packet.In the data packet transfer method of the present invention, this certain content of this data packet is hardware address (TargetHA), a value of statistical indicant (flags) and a code bit (Code Bits) one of them or its combination of Internet protocol addresses (Target IP), a destination of a type of hardware (Hardware Type), a protocol type (Protocol Type), a destination.
The invention also discloses a kind of data packet transfer method, be applied to signal and be connected on the network connection device between a main frame and an external network, this method comprises the following steps: to receive a data packet that is transmitted by this external network; This received data packet is temporary in the impact damper that is arranged in this network connection device; Judge according to an eigenwert of this data packet whether this data packet meets a jump condition; And when this eigenwert meets, make this main frame carry out a break in service, and then will deposit in and be temporary in a plurality of data packets relevant in this impact damper before this data packet in this impact damper and this data packet and be transferred to this main frame together with this data packet.
The present invention utilizes following accompanying drawing and detailed description, is able to more deep understanding.
Description of drawings
Fig. 1 is the framework block schematic diagram commonly used of the personal computer inside of a tool network on-line function;
Fig. 2 connects the structure block schematic diagram of main frame and external network for using network connection device of the present invention;
Fig. 3 is the steps flow chart synoptic diagram of preferred embodiment method of the present invention.
Each assembly lists as follows among the present invention:
10: microprocessor 11: north bridge chips
111: internal memory 12: South Bridge chip
121: network card 1211: the medium access control chip
1212: physical unit 20: main frame
201: microprocessor 202: north bridge chips
203: South Bridge chip 21: external network
22: network connection device 221: medium access controller
222: impact damper 223: the eigenwert determining device
224: flash memory 225: physical unit
Embodiment
See also Fig. 2, it is the preferred embodiment structural representation that network connection device signal of the present invention is connected to main frame and external network, by among the figure as can be known this network connection device 22 main medium access controllers (MAC) 221 that are electrically connected on north bridge chips 202 that utilize (can be integrated in network card, in network chip or the South Bridge chip 203) come data packet that receiving computer main frame 20 sends or external network 21 by physical unit (PHY) 225 data packets that transmitted, and the data packet that is received is temporary in earlier in the impact damper 222, it preferably is static random access memory (SRAM), read eigenwert by eigenwert determining device 223 (being a microprocessor) again, and judge by this eigenwert whether this data packet meets the condition of transfer about this data packet.
Wherein but this network connection device more comprises an electronic type clear program ROM (read-only memory) (EEPROM) 224, also can be a flash memory (Flash Memory), signal is connected in this eigenwert determining device, is mainly used to deposit the program code and the primary data of this eigenwert determining device required loading when opening the beginning running.
Can be the 3rd layer of (Network Layer) protocol contents of network in destination address (DA), data type and this data packet of this data packet as for this eigenwert.And the packet type that the 3rd layer protocol of the network in this data packet is seen has for instance: 1. 2. 3. transmission control protocol/Internet Protocol (TCP/IP) of the partial content of Internet Protocol (IP fragment) of the package of address resolution protocol form (ARP Packet), and can be by a type of hardware (Hardware Type) wherein, one protocol type (ProtocolType), the Internet protocol addresses of one destination (Target IP), the hardware address of one destination (Target HA), one value of statistical indicant (flags) or code bit information such as (Code Bits) is resolved.
Can be divided into following two kinds of forms as for the condition that shifts: 1. the form of this data packet belongs to the package that need shift away immediately.2. the form of this data packet belongs to and all partial data packages of forming a data segment need be shifted simultaneously.
About the 1st kind of form: the form of data packet belongs to the package that need shift away immediately.When data packet meets above-mentioned jump condition, eigenwert determining device 223 detects the destination address (DA) of this data packet, network the 3rd layer protocol content in data type and this data packet is really correct and during its content intact, then drive medium access controller 221 and send the microprocessor 201 of a look-at-me to this main frame 20 by eigenwert determining device 223, make microprocessor 201 carry out a corresponding break in service, in order to allow operating system (Operating System) that medium access controller 221 data packets received and that be temporarily stored in the impact damper 222 are transferred to external network 21 or main frame 20 and discharge the memory source that it originally took in response to this look-at-me.
Be depicted as the partial content of an Ethernet package (Ethernet Packet) as following table one, it is to belong to the data packet that should send out immediately, then eigenwert determining device 223 need to detect the destination address (DA), data type of these data packets whether be 0806 and the 3rd layer of (Network Layer) content of network of analyzing in this data packet whether correct.
Table one
The destination address Data type (0806) The package content of address resolution protocol form
Can be as described in the following table two as for the package content (Address ResolutionProtocol, ARP Packet) of this address resolution protocol form:
Table two
Type of hardware (Hardware Type)
Protocol type (Protocol Type)
The Internet protocol addresses of destination (Target IP)
The hardware address of destination (Target HA)
And when eigenwert determining device 223 detections of network connection device 22 are errorless, just data packet can be sent out.
About the 2nd kind of form: the form of this data packet belongs to and all partial data packages of forming a data segment need be shifted simultaneously, just can make the microprocessor 201 call operation systems of main frame 20 take complete data packet away.Therefore, judging this data packet when this eigenwert determining device 223 is not when forming last data packet of this data segment, this data packet does not also meet the condition of transfer, then need this data packet is continued to be temporary in this impact damper, detecting follow-up data packet up to this eigenwert determining device 223 is that all the partial data packages that just will form this data segment are transferred to external network 21 or main frame 20 when forming last data packet of this data segment.
Be depicted as the partial content of an Internet protocol packets (IP Packet) as following table three, it belongs to and need simultaneously all partial data packages of forming a data segment be shifted, just can be meaningful for main frame 20, then eigenwert determining device 223 need to detect the destination address (DA), data type of these data packets whether be 0800 and Internet protocol file header (IP Header) content in value of statistical indicant (flags).
Table three
The destination address Data type (0800) Internet protocol file header (IP Header) content
When being 001, value of statistical indicant represents that this data packet is not last package, represent that when value of statistical indicant is 000 this data packet is last package, then all partial data packages of forming this data segment can be transferred to external network 21 or main frame 20 in regular turn.
Be depicted as the partial content of a transmission control protocol package (TCP Packet) as following table four, itself and Internet protocol packets (IP Packet) belong to the form of same type, and different is that it is to judge according to the code bit (Code Bits) in transmission control protocol shelves head (TCP Header) content whether this data packet is last package.So when last position of code bit represent when being 0 package not end of transmission be not last package, when last position of code bit is 1, represent package end of transmission, therefore all partial data packages of forming this data segment can be transferred to external network 21 or main frame 20 in regular turn.
Table four
The destination address Data type (0800) A transmission control protocol shelves content
And the steps flow chart synoptic diagram that is applied to the data packet transfer method of above-mentioned network connection device can be referring to shown in Figure 3, at first, receive data packet by medium access controller by main frame or external network transmitted, and this data packet is temporary in the impact damper, then, utilize the eigenwert determining device to read and analyze the destination address of this data packet, whether network the 3rd layer protocol content in data type and this data packet meets the condition of transfer, when this data packet meets, make main frame carry out a break in service, be transferred to external network or main frame in order to the data packet that operating system will be temporarily stored in the impact damper, as for, when if this data packet does not meet jump condition, then it is continued to be temporary in this impact damper, the data packet that detects follow-up reception up to this eigenwert determining device is that all the partial data packages that just will form this data segment are by being transferred to external network or main frame in the impact damper in regular turn when forming last data packet of a data segment together.
Certainly if the archives of data segment are too big, when causing the memory size of impact damper once to receive the data packet of complete segment, when the present invention must be filled with soon in the memory capacity of impact damper so, elder generation's generation one look-at-me will be stored in the data packet of impact damper and upload toward operating system earlier, so just there are enough memory headrooms to continue to store the data packet of follow-up reception, as for when producing look-at-me, then can decide according to the speed that medium access controller receives data packet.
Described above comprehensive, whether the present invention analyzes data packet with the 3rd layer protocol content of the network in the data packet is the last package of data segment or the package that need shift immediately, so that can produce look-at-me optimal opportunity, and then reduce the frequency that microprocessor is excessively taken, make that entire system usefulness can normal operation.Especially the inner server that possesses several network cards if the network card in this server takes mode of the present invention to produce look-at-me, does not only have too high hardware interrupts frequency, and the usefulness of server also can show and promotes.
Any equivalence that any those of ordinary skills are done under this invention's idea changes.Should belong to scope of patent protection of the present invention.

Claims (3)

1. data packet transfer method is applied to signal and is connected on the network connection device between a main frame and an external network, it is characterized in that this method comprises the following steps:
Reception is by a data packet that this external network transmitted;
This received data packet is temporary in the impact damper that is arranged in this network connection device;
Judge according to an eigenwert of this data packet whether this data packet meets a jump condition;
When this eigenwert met this jump condition, the package of the form of this data packet for needing to shift at once make this main frame carry out a break in service, and then this data packet that will deposit in this impact damper was transferred to this main frame; And
When this eigenwert does not meet this jump condition, the package of the form of this data packet for all data packets of forming a data segment being shifted simultaneously, need receive all data packets of forming this data segment, make this main frame carry out a break in service, and then all data packets that will deposit in this data segment of composition in this impact damper are transferred to this main frame.
2. data packet transfer method as claimed in claim 1 is characterized in that, this data packet utilizes a medium access controller to receive.
3. data packet transfer method as claimed in claim 1, it is characterized in that, this eigenwert is a certain content of a destination address, a data type and this data packet of this data packet, and this certain content of this data packet is hardware address, a value of statistical indicant and a code bit one of them or its combination of Internet protocol addresses, a destination of a type of hardware, a protocol type, a destination.
CNB021244553A 2002-06-26 2002-06-26 Network connecting device and its data package transferring method Expired - Lifetime CN1304972C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB021244553A CN1304972C (en) 2002-06-26 2002-06-26 Network connecting device and its data package transferring method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB021244553A CN1304972C (en) 2002-06-26 2002-06-26 Network connecting device and its data package transferring method

Publications (2)

Publication Number Publication Date
CN1389798A CN1389798A (en) 2003-01-08
CN1304972C true CN1304972C (en) 2007-03-14

Family

ID=4745398

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB021244553A Expired - Lifetime CN1304972C (en) 2002-06-26 2002-06-26 Network connecting device and its data package transferring method

Country Status (1)

Country Link
CN (1) CN1304972C (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100481873B1 (en) * 2003-02-04 2005-04-11 삼성전자주식회사 Media access controller with power-save mode
CN110366203A (en) * 2018-04-09 2019-10-22 启碁科技股份有限公司 Promote the method and device of intelligent electric meter to efficiency between server
CN109688070A (en) * 2018-12-13 2019-04-26 迈普通信技术股份有限公司 A kind of data dispatching method, the network equipment and retransmission unit
CN114615219B (en) * 2020-11-24 2024-03-08 瑞昱半导体股份有限公司 Network interface device, electronic device, and method of operating network interface device

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2001008374A1 (en) * 1999-07-23 2001-02-01 Sagem S.A. Methods for transmitting and broadcasting data packets and receivers for implementing same
WO2001067709A2 (en) * 2000-03-09 2001-09-13 Nokia Corporation A technique for compressing a header field in a data packet

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2001008374A1 (en) * 1999-07-23 2001-02-01 Sagem S.A. Methods for transmitting and broadcasting data packets and receivers for implementing same
WO2001067709A2 (en) * 2000-03-09 2001-09-13 Nokia Corporation A technique for compressing a header field in a data packet

Also Published As

Publication number Publication date
CN1389798A (en) 2003-01-08

Similar Documents

Publication Publication Date Title
CN101827072B (en) Method for segmentation offloading and network device
CN101031897A (en) Establishing command order in an out of order dma command queue
CN1713164A (en) DMA controller and data transmission with multi-transaction discretionary process
CN1819560A (en) Message serial number inspection and inspector with multi-unit transmission
CN1652098A (en) Bus arrangement and method thereof
CN1018098B (en) Microprocessor bus interface unit
US7743185B2 (en) Method, system, and computer program product for dynamically selecting software buffers for aggregation according to current system characteristics
CN1295633C (en) Method for multiple CPU communication
CN1304972C (en) Network connecting device and its data package transferring method
CN1949695A (en) Method and system for giving-up error frame in frame data transmission
CN1308840C (en) Method for acquisition of data in hard disk
CN100469055C (en) Method for processing forwarding message, and process module
CN1788261A (en) Usb host controller with memory for transfer descriptors
CN101056316A (en) A method for the PCI Ethernet media to access the controller transmission data
CN1324499C (en) Method for handling unexpected completion packets and completion packets with a non-successful completion status
CN1502198A (en) Linking frame data by inserting qualifiers in control blocks
CN1407768A (en) Device and method for group continuous transfer of multi-team data
CN1151644C (en) Full duplex asynchronous serial communication method and its communication system
CN1551553A (en) Receiving device, transmitting device, and programs
CN1204500C (en) DMA controller and DMA control method
CN1783874A (en) Ageing method for address analytic protocol cache table item in network device
CN1277689A (en) Device driver for automatic conversion of device type data
CN1127243C (en) Individual initialized set data processing system and method for long-distance access user system
CN1900922A (en) Direct internal storage eccess operation method of microcomputer system
CN1437327A (en) Communication method between inner core and microengine inside network processor

Legal Events

Date Code Title Description
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
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
CX01 Expiry of patent term

Granted publication date: 20070314

CX01 Expiry of patent term