CN101237415B - A method for realizing IP core of ARP protocol - Google Patents

A method for realizing IP core of ARP protocol Download PDF

Info

Publication number
CN101237415B
CN101237415B CN2008100598611A CN200810059861A CN101237415B CN 101237415 B CN101237415 B CN 101237415B CN 2008100598611 A CN2008100598611 A CN 2008100598611A CN 200810059861 A CN200810059861 A CN 200810059861A CN 101237415 B CN101237415 B CN 101237415B
Authority
CN
China
Prior art keywords
address
register
arp
message
value
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 - Fee Related
Application number
CN2008100598611A
Other languages
Chinese (zh)
Other versions
CN101237415A (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.)
Zhejiang University ZJU
Original Assignee
Zhejiang University ZJU
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 Zhejiang University ZJU filed Critical Zhejiang University ZJU
Priority to CN2008100598611A priority Critical patent/CN101237415B/en
Publication of CN101237415A publication Critical patent/CN101237415A/en
Application granted granted Critical
Publication of CN101237415B publication Critical patent/CN101237415B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Computer And Data Communications (AREA)

Abstract

The invention relates to a method for realizing an ARP protocol IP core. The function of the prior ARP protocol is mostly bond with an operating system and is not easy for hardware integration. The IP core realized by the invention is an upper layer protocol (or an upper layer module) for providing the search of the mapping relation between an IP address and an MAC address in the ARP protocol, managing an ARP table entry, providing quick aging mechanism, sending an ARP request, automatically responding to the ARP requests of other host computers and managing search overtime. The ARP protocol IP core of the invention is provided with a bus interface of a Wishbone standard film, is easy to realize plug and play in the process of system integration and has good portability. At the same time, the invention integrates all the functions of the ARP protocol, thereby lightening the load of managing the related information of the ARP protocol by the host computer.

Description

A kind of method that realizes ARP agreement IP kernel
Technical field
The invention belongs to the integrated circuit (IC) design field, with System on Chip/SoC (SoC) design of Ethernet transmission data, specifically is a kind of method of the ARP of realization agreement IP kernel particularly.
Background technology
ARP is the abbreviation of Address Resolution Protocol, i.e. address resolution protocol.For network service, the IP address is main frame employed address more than network layer.If the data in the network layer will be sent to the main frame of the network other end, also to be in network, to transmit after the MAC Address with the IP address transition in the data.
Because the IP address has 32, and the hardware address of local area network (LAN) is 48, so does not have simple mapping relations between them.ARP is used to address this problem exactly.
In addition, the continuous progress of integrated circuit technology makes the scheme that realizes a system in chip piece become possibility.The design bottleneck of modern system chip (SoC) no longer is the limitation of manufacturing capacity, but the growth of the logic gate number that System on Chip/SoC held that the design of chip and checking ability do not catch up with.Therefore, the multiplexing module that designs in advance, the new SoC method for designing integrated by module is suggested, and replaced the method for designing of original application-specific integrated circuit (ASIC) (ASIC) gradually.These modules that design in advance just are called as IP kernel (Intellectual Property).IP kernel is the correctness of its function of checking in advance, and performance also will reach set quota simultaneously.The reusability of IP kernel and portability also are major criterions weighing its design quality, and a general interface (Interface) is to guarantee IP kernel reusable and and transplantable necessary condition.
Summary of the invention
The purpose of this invention is to provide a kind of can be according to ARP standard agreement (RFC 826 agreements), realize the method for ARP agreement IP kernel.
The inventive method comprises: one, management and inquiry arp cache; Two, receive the ARP message and also make response according to the type of message that receives.
The interface of other module in ARP agreement IP kernel and the system comprises " wishbone bus " and " interruption " dual mode.When the unit in this IP kernel application system intercoms mutually with the wishbone bus protocol, this IP kernel is (slave) from the unit, any once communication must be initiated (following master unit in the system is referred to as " main frame ") by writing various control commands to this IP kernel by other master unit (master) in the system, and this IP kernel is made response according to the information in instructing.When this IP kernel need be with main-machine communication in the system, information to be encoded by certain format, and write in the interrupt status register, output is interrupted in set simultaneously.This interruption output is used for notifying main frame to read the information of interrupt status register, and makes corresponding processing according to information wherein.
When main frame will send network packet, whether the MAC Address of purpose IP address correspondence of at first wanting confirmation message was in the present invention the arp cache.
The step of the present invention's management and inquiry arp cache comprises:
1, main frame will be inquired about the right order in MAC-IP address by the Wishbone bus and write in the register, and this order comprises the IP address to be checked and the identifier of this inquiry; Extract these two information in the order, deposit in respectively in the identifier register of IP address register to be checked and IP to be checked address, and produce the enable signal that begins to inquire about;
2, IP is inquired about the pointer register zero clearing, make it to point to the starting position of arp cache;
3, if the value of the full register of arp cache is 1, then relatively the value in the IP inquiry pointer register and the total depth of arp cache if the former value then forwards step 7 to greater than the latter, promptly do not find the IP address of host request in arp cache; If the former value then forwards step 4 to smaller or equal to the latter; If the value of the full register of arp cache is 0, then relatively IP inquires about the value of pointer register and the value of arp cache border pointer register, if the former more than or equal to the latter, then forwards step 7 to, does not promptly find the IP address of host request in arp cache; If the former less than the latter, then forwards step 4 to;
4, the value with IP inquiry pointer register is the address, read the IP address in the IP address queue in the arp cache low 16, with of low 16 bit comparisons of this value, if both identical steps 5 of then changeing with IP address register to be checked; If both are unequal, the value of then IP being inquired about pointer register adds 1, and is updated in this register, forwards step 3 then to;
5, the value with IP inquiry pointer register is the address, reads the high 16 of the IP address in the IP address queue in the arp cache, with high 16 bit comparisons of this value with IP address register to be checked, if both identical steps 6 of then changeing, promptly finds the IP address of host request; If both are unequal, the value of then IP being inquired about pointer register adds 1, and is updated in this register, forwards step 3 then to;
6, the value that will inquire about pointer register with IP is the base address, reads MAC Address from the MAC Address formation of arp cache, and is written in the MAC buffer memory; With interrupt mode notice main frame, show and in arp cache, found MAC-IP address corresponding relation, poll-final then.Wherein, during MAC Address in reading arp cache, divide three times, each 16, begin to read continuously from the high position of MAC Address, and the address of reading is write in the MAC buffer memory in order.
7, the value with IP address register to be checked writes in the IP query caching, and the startup query timeout down counter corresponding with IP address designator to be checked, upgrade effective IP address vector register to be checked simultaneously, position corresponding with IP address designator to be checked in this register is made as 1, forwards step 8 then to; Wherein, overtime down counter initial value is T0, and the step-length of counting is 1 second, and the benchmark of counting is imported by the outside.Overtime down counter is used to finish ARP query timeout function, and the ARP query timeout refers to: when a certain equipment in the Ethernet when this Web broadcast is inquired about the physical address of an other equipment, do not receive the response of equipment to be checked at the appointed time.ARP query timeout function and arp cache query script are separate.Each IP in the IP query caching has a unique timer corresponding with it, when timer overflows (the count-down device timing reaches 0), IP address corresponding with this timer in the IP query caching is with deleted, and corresponding with this IP address position in effective IP address vector register to be checked reset to 0, by the interrupt notification main frame, show that IP to be checked is not present in the current network simultaneously.If receive the arp response message that IP to be checked institute corresponding device sends before overtime, then stop the time-out count device, timer is resetted, and, show the MAC Address that finds IP to be checked by the interrupt notification main frame, simultaneously MAC Address is transferred in the MAC buffer memory.Then position corresponding with this IP address in effective IP address vector register to be checked is reset to 0.If not overtime, then ARP query timeout functional unit will continue to wait for.
8,, the data in the ARP message are required to write successively the transmission buffering area according to message format, and with interrupt mode notice main frame, expression there is an ARP message to need to send poll-final according to the ARP protocol format.
Another function of the present invention is to receive the ARP message and message is responded.The ARP message comprises ARP request message that miscellaneous equipment sends and the miscellaneous equipment response message to this device request.Message receives and the concrete steps of response comprise:
1, main frame writes the data packet in the ARP message reception buffer area by the wishbone interface, receive message simultaneously and extract key message in the message, and deposit in the relevant register, whether the purpose IP address of judging message then is identical with the IP address of this locality, if this message that then directly abandons inequality, if the identical step 2 of then changeing; Key message comprises: type of message, purpose IP address, source IP address and source MAC;
2, judge the type of message according to the value of type of message register,, then change step 3 if message is arp response message or ARP request message; If neither the arp response message neither then directly abandon this message by the ARP request message;
3, the value in source IP address and the source MAC register is deposited in IP address queue and MAC Address formation in the arp cache respectively, the position that deposits in is the specified position of pointer register, arp cache border.If last position of the current sensing arp cache of arp cache border pointer register then is made as 1 with the full register of arp cache, simultaneously arp cache border pointer register is reset to 0; If arp cache border pointer register is current is not last position of pointing to arp cache, then arp cache border pointer register is added 1 after, be updated in this register.Be that arp cache is upgraded according to the mode of first in first out among the present invention.In addition, the present invention also provides the order of quick aging.Main frame can be with the order that writes quick aging by the wishbone interface, and after the present invention received this order, full these two registers of the arp cache that resets border pointer and arp cache made ARP
4, judge the type of message according to the value of type of message register, if the ARP request message then changes step 10, if the arp response message changes step 5;
5, the value with effective IP address vector register to be checked copies in the current IP address vector register to be checked;
6, if current IP address vector register to be checked is 0, promptly this locality does not have effective IP to be checked address, the process that end message receives and responds; If current IP address vector register to be checked is not 0, then finds the position of current IP address vector to be checked first 1 in vector, and the value of this position is deposited in the current IP query caching address register by first 1 detector.Wherein first 1 detector be input as binary current IP address vector to be checked, be output as in this vector first 1 position in vector;
7, the value with current IP query caching address register is the address, read stored IP address in the IP query caching low 16, with of low 16 bit comparisons of this value with the source IP address register, if both are unequal, then will first 1 reset to 0 in the current IP address vector register to be checked, and forward step 6 to; If hanging down 16 and equating of the value that reads from the IP query caching and source IP address register then forwards step 8 to;
8, the value with current IP query caching address register is the address, read the high 16 of stored IP address in the IP query caching, with of high 16 bit comparisons of this value with the source IP address register, if both are unequal, then will first 1 reset to 0 in the current IP address vector register to be checked, and forward step 6 to; If high 16 with the source IP address register high 16 of the value that reads equate, then forward step 9 to from the IP query caching;
9, stop in the IP query caching and the corresponding timer of current IP query caching address register, timer is resetted, and the value of source MAC register deposited in the MAC buffer memory, then by interrupt mode notice main frame, find a MAC-IP address corresponding relation to be checked, the process that end message receives and responds;
If 10 ARP request messages write the form of message according to the agreement regulation in the ARP transmission buffering area, and notify main frame with interrupt mode, request sends a message, the process of end message reception and response.
ARP protocol IP nucleus band among the present invention has Wishbone standard film internal bus interface, in system integration process, is easy to realize plug and play, has good portability.Simultaneously, ARP agreement all functions that the present invention is integrated have alleviated the burden of Host Administration ARP agreement relevant information.
Description of drawings
Fig. 1 built-in system structure of the present invention;
The flow chart of inquiry arp cache among Fig. 2 the present invention;
The flow chart of response ARP message among Fig. 3 the present invention.
Embodiment
Internal structure of the present invention as shown in Figure 1.Below in conjunction with the operating procedure in the summary of the invention, the specific implementation and the management method thereof of various piece among the present invention described.
The Wishbone interface
Wishbone is responsible for the interface section writing and reading of control command or data, and in the wishbone bus communication, the present invention is in the Slave status.In the wishbone bus protocol, any communication once all can only have the Master unit to initiate, and the Slave unit responds, for the flexibility of Slave unit controls is provided, ARPIP nuclear in the ARP IP kernel, adds interrupt signal output, so that still can in time notify Master its operating state as Slave the time.Also comprise a register array in the Wishbone interface, it is used for the control command that Master writes is converted to control signal corresponding; This register array has write down information such as the operating state of ARP IP kernel and interrupt status register simultaneously, can inquire about for Master.
Fig. 2 is the flow chart of inquiry arp cache, and particular content is:
The structure of arp cache and border pointer
It is right that arp cache has write down the local MAC-IP address that has existed.It is made up of two parts, a part is used for storing IP address (being called IP address queue), another part is used to store MAC Address (being called the MAC Address formation), and both exist in pairs, and two parts of this of tabulation are mapped as two register queues (Register File).Pointer is arranged in the formation, be called arp cache border pointer, the border of this pointed effective address.During initialization, the starting position of pointed formation, along with new MAC-IP address team deposits register queue in, this pointer moves down automatically, and up to last position of pointing to formation, this pointer comes back to the starting position of formation subsequently.Arp cache also has the full register of an arp cache, and this register is used to show whether arp cache fills up.The arp cache current state is come together to characterize by arp cache border pointer and full these two registers of arp cache.In the process of response host query some IP Address requests, if arp cache is full, then the process of search needs beginning from the arp cache formation until the ending of formation; If arp cache less than, then in case the address of search arrives the position of arp cache border pointer indication, show that promptly search procedure finishes.
The querying method of arp cache
The width of arp cache array is 16bit, and the degree of depth of formation can be according to the actual application environment adjustment, and in one embodiment of the invention, it is right that the ARP tabulation can store 64 groups of MAC-IP addresses.When the right request in inquiry MAC-IP address, the present invention is a keyword with IP address to be found, and whether this IP of sequential search is in arp cache in the formation of IP address register.The width of IP address register formation is 16bits, for the IP address of 32bits, during storage, the low 16bit of IP address is deposited in the low address, and high 16 bits deposit in the high address.In search procedure, the present invention at first takes out the low 16bit of the first IP address in the IP register queue and the low 16bit of IP to be checked compares, if both are unequal, then directly detects the next valid ip address in the formation; If the low 16bit of the IP address in the formation of IP address register equates with the low 16bit of IP address to be checked, then continue to read high 16 in the IP address queue, and with high 16 bit comparisons of IP to be checked address, if both equate, then illustrate and in arp cache, find IP address to be checked.If both are inequality, then detect the next valid ip address in the formation.
The update method of arp cache
Arp cache adopts first-in first-out to upgrade.When MAC and the formation of IP address register were filled with, new address was right to covering first IP-MAC, afterwards and the like, promptly new MAC-IP address is to always depositing the position of arp cache border pointer indication in.In addition, the present invention provides quick aging ARP the order of tabulation for main frame, and when main frame writes this order, the present invention will empty the ARP tabulation by full these two registers of reset arp cache border pointer and arp cache.Arp cache is carried out quick aging can the making ARP tabulation reflect the corresponding situation in MAC-IP address in the network to the full extent of not timing.Quick aging is worked to whole arp cache, and this makes realizing that arp cache is the life span that does not need to write down each MAC-IP, has reduced the complexity and the resource overhead of implementation procedure.In addition, the effective length of ARP tabulation can be effectively controlled in the quick aging ARP of not timing tabulation, reduces the time of searching a certain IP address in the ARP tabulation.
The structure of IP query caching and management method
After the request whether MAC Address that receives a certain IP of host query address exists, if all in the retrieval arp cache IP address queue effectively item still do not find IP address to be checked, the present invention writes the value of IP address register to be checked in the IP query caching.The IP query caching is the SRAM structure, and width is 16bits.The present invention requires main frame when inquiry IP address, and for a unique identifier (ID) (being stored in the identifier register of IP to be checked address) is specified in inquiry each time, Query Result also is and this ID binding.The IP query caching is base address storage IP to be checked with this ID, starts the time-out count device corresponding with this ID simultaneously, counting be spaced apart 1 second.Meanwhile, the present invention upgrades effective IP address vector register to be checked, is about to position corresponding with IP address designator to be checked in this register and is made as 1, organizes the ARP request message to put interrupt signal afterwards.
In an embodiment of the present invention, if found the MAC Address of IP to be checked address from network in 4 seconds, then the time-out count device stops automatically and resets.When surpassing 4 seconds, timing still do not receive the arp response message corresponding with IP to be checked, then think the ARP query timeout, the present invention will remove the overtime IP address in the IP query caching, and unreachable in current network with this IP address of pairing ID notice main frame, IP address.Simultaneously, the position corresponding with this IP address will be reset to 0 in effective IP address vector register to be checked.
The querying method of IP query caching
When receiving the arp response message that points to this locality, the present invention judges at first whether source IP address is local IP address to be checked.If in the valid ip address of IP query caching, find an IP address identical, illustrate that then source IP address is the IP address that this locality will be searched really with source IP address.At this moment, source MAC is deposited in the MAC buffer memory.If in the IP query caching, do not find source IP address, then do not process, and directly return.When inquiry IP query caching, the value of at first depositing effective IP address vector register to be checked is to current IP address vector register to be checked.Find the position of current IP address vector to be checked first 1 in vector by first 1 detector, then with the pairing value in this position as the address, read the low 16bit of the IP address in the IP query caching, low 16 bit comparisons with the source IP address register, if both are unequal, then, check next effective I P address with identical method then with first 1 resetting to 0 in the current IP address vector register to be checked; If both low 16 equate, then continue to read the high 16 of stored IP address in the IP query caching, with of high 16 bit comparisons of this value with the source IP address register, if both are unequal, then, search next effective I P address then with first 1 resetting to 0 in the current IP address vector register to be checked; If both equate, illustrate that then source IP address is the IP address that this locality will be searched really.
Fig. 3 is the flow chart of response ARP message, and particular content is:
Receive ARP message and processing
Another function of the present invention is to receive the ARP message.The ARP message comprises that ARP request message that miscellaneous equipment sends and miscellaneous equipment are to local request responding message.When receiving message, judge at first whether the purpose IP address of message is identical with local ip address, if not, this message then directly abandoned; If purpose IP address is local IP, and the type of message then abandons this message equally neither the ARP request message neither the arp response message.If message is a kind of in ARP request message or the arp response message, then source MAC in the message and source IP address are deposited in the local arp cache.
Whether be IP address that this locality search if the message that receives for pointing to local arp response message, then is keyword with the source IP address if in the IP query caching, searching this IP.If source IP address is local IP address to be checked really, then source MAC is deposited in the MAC buffer memory, and found a MAC-IP address to be checked right by the interrupt notification main frame.
For pointing to local ARP request message, then organize the arp response message as if the message that receives, the form of message according to the agreement regulation write in the ARP transmission buffering area, and use the interrupt notification main frame, show that request sends a message.
Register among the present invention
External register that arrives used herein and function thereof are as shown in table 1.
Register name The address Register width Access rights Describe
CheckIP1 0x00 16 R/W IP to be checked (high 16)
CheckIP0 0x01 16 R/W IP to be checked (low 16)
PHYCheckCont 0x02 16 R/W Inquiry control command register
ARPStartEnd 0x03 16 R/W Be used to show beginning and end when receiving datagram
ARPFIFO 0x04 16 R/W Transmission/reception buffering area mapping register.When data are write this address, data will have the message receiver module to handle (ARPRCVProcessor module); When reading this address, the data in the message to be sent will be taken out from the ARPFIFO module successively
ARPInt 0x05 16 R/W Interrupt status register
ARPStatus 0x06 16 R/W Whether ARP operating state register, it is normal to be used to inquire about the work of ARP module
Table 1
As follows to operation registers:
When main frame will send a network message, at first purpose IP address is write (CheckIP1 and CheckIP2 register) in the register of the present invention, the order (PHYCheckCont register) of write-enable inquiry IP-MAC address to whether existing then.
When an ARP message is received in this locality, main frame writes the message received among the present invention in the ARPFIFOReg register (wherein by the Wishbone interface, the ARPStartEnd register is used to control the ablation process of the datagram that receives, the ARPFIFOReg register directly is mapped as the reception buffering area of ARP module and sends buffering area), the present invention's this moment starts decoding function, extracts useful information from message.
When the present invention needs and during other module interactive information, information is encoded according to predetermined mode and write (ARPInt) in the interrupt status register, the interrupt signal of set simultaneously line.
Internal register and function thereof among the present invention are as shown in table 2.
Register name Register width Functional description
IP to be checked address 32 Deposit the IP address of main frame requirement inquiry
The identifier of IP to be checked address 4 Deposit the identifier of the IP address of main frame requirement inquiry
IP inquires about pointer 6 Be used to indicate the current position of searching of arp cache
Arp cache is full 1 Whether indicate arp cache is filled with
Arp cache border pointer 6 Arp cache less than the time, be used to indicate the border of arp cache effective address; When arp cache was full, this register only was used to indicate the new position of MAC-IP address to storing
Effective IP address vector to be checked 16 Indicating the binary vector of valid ip address in the IP query caching, is corresponding effective IP to be checked address, position of 1 in the vector
Current IP address vector to be checked 16 Whether ARP operating state register, it is normal to be used to inquire about the work of ARP module
Current IP query caching address 4 The IP query caching address of current use
Type of message 8 Deposit the type of the message that receives
Purpose IP address 32 Deposit the purpose IP address of the message of receiving
Source IP address 32 Deposit the source IP address of the message of receiving
Source MAC 48 Deposit the source MAC of the message of receiving
Table 2

Claims (1)

1. a method that realizes ARP agreement IP kernel comprises management and inquiry arp cache, receives the ARP message and makes response according to the type of message that receives, and it is characterized in that: the step of management and inquiry arp cache comprises:
A, main frame will be inquired about the right order in MAC-IP address by the Wishbone bus and write in the register, and this order comprises the IP address to be checked and the identifier of this inquiry; Extract these two information in the order, deposit in respectively in the identifier register of IP address register to be checked and IP to be checked address, and produce the enable signal that begins to inquire about;
B, IP is inquired about the pointer register zero clearing, make it to point to the starting position of arp cache;
C, if the value of the full register of arp cache is 1, then relatively the value in the IP inquiry pointer register and the total depth of arp cache if the former value then forwards step g to greater than the latter, promptly do not find the IP address of host request in arp cache; If the former value then forwards steps d to smaller or equal to the latter; If the value of the full register of arp cache is 0, then relatively IP inquires about the value of pointer register and the value of arp cache border pointer register, if the former more than or equal to the latter, then forwards step g to, does not promptly find the IP address of host request in arp cache; If the former less than the latter, then forwards steps d to;
D, be the address with the value of IP inquiry pointer register, read the IP address in the IP address queue in the arp cache low 16, with of low 16 bit comparisons of this value, if both identical step e that then change with IP address register to be checked; If both are unequal, the value of then IP being inquired about pointer register adds 1, and is updated in this register, forwards step c then to;
E, be the address, read the high 16 of the IP address in the IP address queue in the arp cache,, if both identical step f that then change, promptly find the IP address of host request of high 16 bit comparisons of this value with IP address register to be checked with the value of IP inquiry pointer register; If both are unequal, the value of then IP being inquired about pointer register adds 1, and is updated in this register, forwards step c then to;
F, the value that will inquire about pointer register with IP are the base address, read MAC Address from the MAC Address formation of arp cache, and are written in the MAC buffer memory; With interrupt mode notice main frame, show and in arp cache, found MAC-IP address corresponding relation, poll-final then;
G, the value of IP address register to be checked is write in the IP query caching, and the startup query timeout down counter corresponding with IP address designator to be checked, upgrade effective IP address vector register to be checked simultaneously, position corresponding with IP address designator to be checked in this register is made as 1, forwards step I then to; Wherein, overtime down counter initial value is T0, and the step-length of counting is 1 second, and the benchmark of counting is imported by the outside;
I, according to the ARP protocol format, the data in the ARP message are required to write successively the transmission buffering area according to message format, and with interrupt mode notice main frame, expression has an ARP message to need to send poll-final;
The concrete steps that the type of message that reception ARP message and basis receive is made response comprise:
J, main frame write the data packet the ARP message by the wishbone interface and receive in the buffer area, receive message simultaneously and extract key message in the message, and deposit in the relevant register, whether the purpose IP address of judging message then is identical with the IP address of this locality, if this message that then directly abandons inequality, if the identical step k that then changes; Described key message comprises type of message, purpose IP address, source IP address and source MAC;
K, judge the type of message,, then change step 1 if message is arp response message or ARP request message according to the value of type of message register; If neither the arp response message neither then directly abandon this message by the ARP request message;
L, deposit the value in source IP address and the source MAC register in the arp cache IP address queue and MAC Address formation respectively, the position that deposits in is the specified position of pointer register, arp cache border; If last position of the current sensing arp cache of arp cache border pointer register then is made as 1 with the full register of arp cache, simultaneously arp cache border pointer register is reset to 0; If arp cache border pointer register is current is not last position of pointing to arp cache, then arp cache border pointer register is added 1 after, be updated in this register;
M, judge the type of message according to the value of type of message register, if the ARP request message then changes step s, if the arp response message changes step n;
N, the value of effective IP address vector register to be checked is copied in the current IP address vector register to be checked;
O, if current IP address vector register to be checked is 0, promptly this locality does not have effective IP to be checked address, end message receives and the process of response; If current IP address vector register to be checked is not 0, then finds the position of current IP address vector to be checked first 1 in vector, and the value of this position is deposited in the current IP query caching address register by first 1 detector; Wherein first 1 detector be input as binary current IP address vector to be checked, be output as in this vector first 1 position in vector;
P, be the address with the value of current IP query caching address register, read stored IP address in the IP query caching low 16, with of low 16 bit comparisons of this value with the source IP address register, if both are unequal, then will first 1 reset to 0 in the current IP address vector register to be checked, and forward step o to; If hanging down 16 and equating of the value that reads from the IP query caching and source IP address register then forwards step q to;
Q, be the address with the value of current IP query caching address register, read the high 16 of stored IP address in the IP query caching, with of high 16 bit comparisons of this value with the source IP address register, if both are unequal, then will first 1 reset to 0 in the current IP address vector register to be checked, and forward step o to; If high 16 with the source IP address register high 16 of the value that reads equate, then forward step r to from the IP query caching;
R, stop in the IP query caching and the corresponding timer of current IP query caching address register, timer is resetted, and the value of source MAC register deposited in the MAC buffer memory, then by interrupt mode notice main frame, find a MAC-IP address corresponding relation to be checked, the process that end message receives and responds;
If s ARP request message writes the form of message according to the agreement regulation in the ARP transmission buffering area, and notifies main frame with interrupt mode, request sends a message, the process of end message reception and response.
CN2008100598611A 2008-02-22 2008-02-22 A method for realizing IP core of ARP protocol Expired - Fee Related CN101237415B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2008100598611A CN101237415B (en) 2008-02-22 2008-02-22 A method for realizing IP core of ARP protocol

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2008100598611A CN101237415B (en) 2008-02-22 2008-02-22 A method for realizing IP core of ARP protocol

Publications (2)

Publication Number Publication Date
CN101237415A CN101237415A (en) 2008-08-06
CN101237415B true CN101237415B (en) 2010-10-13

Family

ID=39920780

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2008100598611A Expired - Fee Related CN101237415B (en) 2008-02-22 2008-02-22 A method for realizing IP core of ARP protocol

Country Status (1)

Country Link
CN (1) CN101237415B (en)

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10007486B2 (en) 2008-12-01 2018-06-26 Micron Technology, Inc. Systems and methods to enable identification of different data sets
CN101459694B (en) * 2008-12-31 2012-12-05 中国科学院计算技术研究所 Highly available message transmission frame and method oriented to distributed file system
CN101741728B (en) * 2009-11-11 2012-01-25 中兴通讯股份有限公司 Comparison method of address table of media access control and device
CN103023793B (en) * 2012-12-11 2015-07-15 烽火通信科技股份有限公司 Management device and management method of address resolution protocol table
CN103150281B (en) * 2013-03-28 2016-04-06 青岛中星微电子有限公司 The integrated approach of bus bar module, device and verification method and device
CN106100955B (en) * 2016-06-23 2020-01-17 北京东土科技股份有限公司 Industrial internet field layer broadband bus data depth detection implementation method
CN110554886B (en) * 2018-05-30 2021-12-10 赛灵思公司 Data splitting structure, method and on-chip implementation thereof
CN113037879A (en) * 2019-12-24 2021-06-25 中兴通讯股份有限公司 ARP learning method and node equipment
CN115580595A (en) * 2022-10-18 2023-01-06 山东云海国创云计算装备产业创新中心有限公司 Method, device and equipment for managing ARP information and readable medium
CN117278661B (en) * 2023-11-23 2024-04-09 中汽数据(天津)有限公司 Industrial Internet of things multi-protocol analysis method and system

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1707403A (en) * 2004-06-09 2005-12-14 上海华博科技(集团)有限公司 Input and output interface controller

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1707403A (en) * 2004-06-09 2005-12-14 上海华博科技(集团)有限公司 Input and output interface controller

Also Published As

Publication number Publication date
CN101237415A (en) 2008-08-06

Similar Documents

Publication Publication Date Title
CN101237415B (en) A method for realizing IP core of ARP protocol
US11467975B2 (en) Data processing method and NVMe storage device
CN112422615B (en) Communication method and device
CN107888657A (en) Low latency distributed memory system
WO2015078219A1 (en) Information caching method and apparatus, and communication device
US20120317153A1 (en) Caching responses for scoped and non-scoped domain name system queries
EP2871580B1 (en) Programmed input/output mode
US20190347167A1 (en) Primary Node-Standby Node Data Transmission Method, Control Node, and Database System
JPH04308956A (en) Receiving buffer
WO2017190266A1 (en) Method for managing translation lookaside buffer and multi-core processor
WO2022062524A1 (en) Memory management method and apparatus, device and storage medium
WO2019089057A1 (en) Scalable storage system
CN112988680A (en) Data acceleration method, cache unit, electronic device and storage medium
US9910808B2 (en) Reflective memory bridge for external computing nodes
US8510513B2 (en) Network load reducing method and node structure for multiprocessor system with distributed memory
US11231964B2 (en) Computing device shared resource lock allocation
US6226685B1 (en) Traffic control circuits and method for multicast packet transmission
CN108011792A (en) A kind of 1394 bus transaction layers-link layer data packet receiving circuit and method
US8473579B2 (en) Data reception management apparatus, systems, and methods
WO2014199568A1 (en) Data writing control method for persistent storage device
CN116755635A (en) Hard disk controller cache system, method, hard disk device and electronic device
US20140280674A1 (en) Low-latency packet receive method for networking devices
JPH07239808A (en) Distributed data managing system
CN104714832A (en) Buffer management method used for airborne data network asynchronous data interaction area
CN111541624B (en) Space Ethernet buffer processing 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
C14 Grant of patent or utility model
GR01 Patent grant
C17 Cessation of patent right
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20101013

Termination date: 20130222