CN110493055A - FPGA card configuration method, device, system and readable storage medium storing program for executing - Google Patents

FPGA card configuration method, device, system and readable storage medium storing program for executing Download PDF

Info

Publication number
CN110493055A
CN110493055A CN201910784542.5A CN201910784542A CN110493055A CN 110493055 A CN110493055 A CN 110493055A CN 201910784542 A CN201910784542 A CN 201910784542A CN 110493055 A CN110493055 A CN 110493055A
Authority
CN
China
Prior art keywords
fpga card
configuration
fpga
server
address
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201910784542.5A
Other languages
Chinese (zh)
Other versions
CN110493055B (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.)
Suzhou Wave Intelligent Technology Co Ltd
Original Assignee
Suzhou Wave Intelligent Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Suzhou Wave Intelligent Technology Co Ltd filed Critical Suzhou Wave Intelligent Technology Co Ltd
Priority to CN201910784542.5A priority Critical patent/CN110493055B/en
Publication of CN110493055A publication Critical patent/CN110493055A/en
Application granted granted Critical
Publication of CN110493055B publication Critical patent/CN110493055B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • G06F9/4411Configuring for operating with peripheral devices; Loading of device drivers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0876Aspects of the degree of configuration automation
    • H04L41/0886Fully automatic configuration
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • H04L61/5007Internet protocol [IP] addresses
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/2866Architectures; Arrangements
    • H04L67/30Profiles
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/22Parsing or analysis of headers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L2101/00Indexing scheme associated with group H04L61/00
    • H04L2101/60Types of network addresses
    • H04L2101/618Details of network addresses
    • H04L2101/622Layer-2 addresses, e.g. medium access control [MAC] addresses

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Software Systems (AREA)
  • Computer Security & Cryptography (AREA)
  • Theoretical Computer Science (AREA)
  • Automation & Control Theory (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

The invention discloses two kinds of FPGA card configuration methods, the corresponding device of each method, FPGA card configures system and readable storage medium storing program for executing.In the technical solution, the FPGA card not being configured sends IP address configuration message to server, and server is based on the IP address configuration message and distributes IP to FPGA card, and establishes end-to-end communication with FPGA card and connect.It is connected using the end-to-end communication, FPGA card can obtain the configuration file for being configured from server, and final FPGA card can be realized using configuration file to be automatically configured.In the technical scheme, FPGA card and server carry out communication interaction, obtain configuration file and realize in the entire configuration process of configuration, are not necessarily to manual intervention, and FPGA card configuration can be completed, can reduce the workload of administrative staff, improve FPGA allocative efficiency.

Description

FPGA card configuration method, device, system and readable storage medium storing program for executing
Technical field
The present invention relates to computer application technology, more particularly to two kinds of FPGA card configuration methods, device, system and Readable storage medium storing program for executing.
Background technique
Mole epoch afterwards, what the development of CPU was almost stagnated, it is now basic as the performance to be doubled with the first two years increases It can not.In order to solve the problems, such as calculated performance, had become the norm at present using high-speed chip to carry out data processing.
FPGA card as a kind of common high-speed chip, because of it with high-performance low delay, flexibly it is expansible, soft or hard can tie The advantages that conjunction, shows one's talent in a variety of high-speed chips, wider in data-center applications.It, need to be to FPGA before using PFGA card Card is configured, then could normal use.Current FPGA card configures deployment way:
1, the FPGA card in server is connect by PCIE interface: administrative staff need on the server through order line deallocation It sets and updates file built in FPGA card, then FPGA card could normal use.
2, pass through the FPGA card of network connection: configuring the IP address of FPGA card, management when administrative staff need to install FPGA card can be accessed in platform, then could carry out configuration operation to FPGA card at management platform end.
As it can be seen that the deployment configuration of current FPGA card, requires administrative staff and configuration management is gone each newly to be added manually FPGA card is not suitable for large scale deployment.That is, the problems such as how efficiently solving FPGA configuration, is current this field skill Art personnel technical problem urgently to be solved.
Summary of the invention
The object of the present invention is to provide two kinds of FPGA card configuration methods, device, system and readable storage medium storing program for executing, to realize certainly Dynamicization configures FPGA card, reduces administrative staff's workload, improves FPGA configuration deployment efficiency.
In order to solve the above technical problems, the invention provides the following technical scheme:
A kind of FPGA card configuration method is applied to FPGA card, comprising:
IP address application message is sent to server in the way of Web broadcast;Wherein, the IP address application message packet Include MAC information and vendor class identifier;
The IP address for receiving the server feedback is established end-to-end communication using the IP address and the server and is connected It connects;Wherein, the IP address is that the server is determined based on the MAC information and the vendor class identifier;
Obtain configuration file from the server using end-to-end communication connection, and using the configuration file into Row configuration.
Preferably, further includes:
After configuration is complete, automatic upgrading is closed to switch and restart the FPGA card.
Another FPGA card configuration method is applied to server, comprising:
The IP address application message of FPGA card transmission is received and parsed through, MAC information and vendor class identifier are obtained;
Judge whether the vendor class identifier matches with default FPGA card supplier identifier;
If it is, determining the corresponding target ip address of the MAC information according to the Map Searching table of MAC and IP;By institute It states target ip address and distributes to the FPGA card, and establish end-to-end communication with the FPGA card and connect;Using described end-to-end Configuration file is sent to the FPGA card by communication connection, so that the FPGA card is configured using the configuration file.
Preferably, when the vendor class identifier and the default FPGA card supplier identifier mismatch, packet It includes:
Stopping configures the FPGA card.
Preferably, further includes:
After configuration is complete, automatic upgrading is closed to switch and restart the FPGA card.
A kind of FPGA card configuration device is applied to FPGA card, comprising:
Message sending module, for sending IP address application message to server in the way of Web broadcast;Wherein, described IP address application message includes MAC information and vendor class identifier;
IP configuration module utilizes the IP address and the server for receiving the IP address of the server feedback Establish end-to-end communication connection;Wherein, the IP address is that the server is based on the MAC information and the vendor class What identifier determined;
Configuration module for obtaining configuration file from the server using end-to-end communication connection, and utilizes The configuration file is configured.
Another FPGA card configuration device is applied to server, comprising:
Message receiving module obtains MAC information and confession for receiving and parsing through the IP address application message of FPGA card transmission Quotient's class formative is answered to accord with;
Configuration verification module, for judging whether are the vendor class identifier and default FPGA card supplier identifier Matching;
IP address determining module, for the vendor class identifier and the default FPGA card supplier identifier Match, then according to the Map Searching table of MAC and IP, determines the corresponding target ip address of the MAC information;
Module is established in communication connection, for the target ip address to be distributed to the FPGA card, and with the FPGA card Establish end-to-end communication connection;
Configuration file is sent to the FPGA for connecting using the end-to-end communication by configuration file sending module Card, so that the FPGA card is configured using the configuration file.
A kind of FPGA card configuration system, comprising:
Server and multiple FPGA cards by interface unit and the server with physical connection;
The FPGA card, comprising: memory, for storing computer program;Processor, for executing the computer journey The step of a kind of above-mentioned FPGA card configuration method is realized when sequence;
The server, including management platform, the management platform is for realizing above-mentioned another FPGA card configuration method The step of.
Preferably, configuration file and configuration information needed for the installation FPGA card is stored in the server;It is described Configuration information includes the Map Searching table and default FPGA card supplier identifier of MAC and IP;
The FPGA card is stored with MAC information and prepackage file;The FPGA card using the prepackage file can with it is described Server is communicated, to complete FPGA card installation.
A kind of readable storage medium storing program for executing is stored with computer program, the computer program quilt on the readable storage medium storing program for executing The step of processor realizes any of the above-described kind of FPGA card configuration method when executing.
A kind of above-mentioned FPGA card configuration method is applied on FPGA card, in the way of Web broadcast with sending IP to server Apply for message in location;Wherein, IP address application message includes MAC information and vendor class identifier;Receive server feedback IP address is established end-to-end communication with server using IP address and is connect;Wherein, IP address be server be based on MAC information and What vendor class identifier determined;Configuration file is obtained from server using end-to-end communication connection, and utilizes configuration text Part is configured.
Firstly, FPGA card sends IP address application message to server by broadcast mode, server is then received After the IP address of distribution, end-to-end communication can be established with server and connect, can be matched based on end-to-end communication connection Required configuration file is set, and realizes configuration using the configuration file.As it can be seen that in entire FPAG card configuration process, without artificial Intervene, FPGA card configuration can be completed, the workload of administrative staff can be reduced, improve FPGA allocative efficiency.
On the server using above-mentioned another FPGA card configuration method, the IP address Shen of FPGA card transmission is received and parsed through It please message, acquisition MAC information and vendor class identifier;Judge that vendor class identifier and default FPGA card supply trade mark Whether will symbol matches;If it is, determining the corresponding target ip address of MAC information according to the Map Searching table of MAC and IP;It will Target ip address distributes to FPGA card, and establishes end-to-end communication with FPGA card and connect;It will configuration using end-to-end communication connection File is sent to FPGA card, so that FPGA card is configured using configuration file.
Server first verifies that the IP address application message after the IP address application message for receiving FPGA card transmission It whether is that FPGA card is sent, to avoid the interference for excluding other equipment.Then target ip address is distributed for FPGA card, is based on it Target ip address establishes end-to-end communication connection, the configuration file needed for FPGA card can be transferred to FPGA card, so as to FPGA card It completes to configure based on the configuration file.As it can be seen that being not necessarily to manual intervention in entire FPAG card configuration process, FPGA card can be completed Configuration can reduce the workload of administrative staff, improve FPGA allocative efficiency.
Correspondingly, the embodiment of the invention also provides FPGA card corresponding with above two FPGA card configuration method configurations Device, system and readable storage medium storing program for executing, have above-mentioned technique effect, and details are not described herein.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this Some embodiments of invention for those of ordinary skill in the art without creative efforts, can be with It obtains other drawings based on these drawings.
Fig. 1 is a kind of implementation flow chart of FPGA card configuration method in the embodiment of the present invention;
Fig. 2 is a kind of structural schematic diagram of FPGA card configuration system in the embodiment of the present invention;
Fig. 3 is the implementation flow chart of another FPGA card configuration method in the embodiment of the present invention;
Fig. 4 is a kind of structural schematic diagram of FPGA card configuration device in the embodiment of the present invention;
Fig. 5 is the structural schematic diagram of another FPGA card configuration device in the embodiment of the present invention;
Fig. 6 is the implementation diagram that two kinds of FPGA card configuration methods are combined in the embodiment of the present invention.
Specific embodiment
In order to enable those skilled in the art to better understand the solution of the present invention, with reference to the accompanying drawings and detailed description The present invention is described in further detail.Obviously, described embodiments are only a part of the embodiments of the present invention, rather than Whole embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art are not making creative work premise Under every other embodiment obtained, shall fall within the protection scope of the present invention.
Embodiment one:
Referring to FIG. 1, Fig. 1 is a kind of flow chart of FPGA card configuration method in the embodiment of the present invention, this method can be applied In FPGA card.In embodiments of the present invention, it is to realize FPGA card automatic configuration, can be fired in FPGA card in advance specified MAC information and prepackage file so that FPGA card is using the prepackage achievable hardware initialization of file, and are communicated with server. Specifically, the prepackage file in FPGA card can be an executable program, when which is performed, S101 is realized extremely The step of S104.
In practical applications, reference can be made to the structural schematic diagram of FPGA card shown in Fig. 2 configuration system connect into part.I.e. It enables FPGA card by network and has been not belonging to server (HOST) connection of management platform (built-in privately owned DHCP service).The management Configuration file and configuration information needed for platform can import FPGA card installation configuration in advance, which includes MAC and IP Map Searching table and default FPGA card supplier identifier.
As it is clear from fig. 2 that there are multiple FPGA cards, and can adopt in multiple FPGA cards in a FPGA card configuration system With FPGA card configuration method as shown in Figure 1.
The specific steps for carrying out FPGA card configuration are described in detail below:
S101, it carries out hardware system initialization and installs hardware driving additional.
After FPGA card is installed on corresponding position according to connection structure shown in Fig. 2, it can be powered on for FPGA card.
Before aggravating hardware driving after carrying out hardware system initialization, FPGA card carries out power-on self-test;Pass through in self-test Afterwards, hardware system initialization is carried out, and installs hardware driving additional.Power-on self-test how is carried out for having, initializes hardware system, Installing hardware driving additional can be referring specifically to existing realization process, and this is no longer going to repeat them.
S102, in the way of Web broadcast to server send IP address application message.
Wherein, IP address application message includes MAC information and vendor class identifier.
IP address application message can be sent to server by Web broadcast mode.That is, FPGA card is by IP address Application message is broadcasted in the broadcast domain for including server, and all devices for belonging to the broadcast domain can receive the IP Application IP addresses message, such server can receive IP address application message.Specifically, FPGA card can be by MAC information and supply Quotient's class formative symbol (i.e. option60) is added in DHCP DISCOVER message.Which kind of data knot the specific message has Structure, being specifically defined and applying referring specifically to DHCP protocol, details are not described herein.Wherein, MAC information is physical address letter Breath is for uniquely determining the FPGA card, and server is based on vendor class identifier and verifies to equipment, to normally complete FPGA configuration.
After server determines IP address based on MAC information and vendor class identifier, which can be distributed Give the FPGA card.
S103, the IP address for receiving server feedback, establish end-to-end communication with server using IP address and connect.
Wherein, IP address is that server is determined based on MAC information and vendor class identifier.
After the IP address for receiving server feedback, FPGA card can be established using the IP address with server end-to-end Communication connection.
After FPGA card receives the IP address of server feedback, end-to-end communication is established using IP address and server Connection.Wherein, end-to-end communication connection is established on the basis that point to point link connects, and is connected by a section point to point link Connecing composition, end-to-end communication connection connects more higher leveled communication connection than point to point link, achievable application program (into Journey) between communication.That is, designated lane is established between PFGA card and server at this time, only for FPGA and server it Between communicated.It is connected for how to establish end-to-end communication based on IP address, it can physics and data-link based on osi protocol stack Road floor realizes that point to point link connects with definition in network layer, and then constructs end-to-end communication connection.
S104, configuration file is obtained from server using end-to-end communication connection, and configured using configuration file.
After establishing end-to-end communication connection between FPGA card and server, FPGA card can be connected using end-to-end communication It connects and obtains configuration file from server, configured to be realized according to the configuration file.Specifically, FPGA card can be sent out to server File acquisition request is set in delivery, and server parses the configuration file acquisition request, and is determined based on analysis result pair The configuration file answered, is then sent to FPGA card for configuration file;After FPGA card obtains configuration file, the configuration can be utilized File realizes configuration.
After the completion of configuration, it is restarted automatically FPGA card, can make configuration take-effective.
Preferably, in order to ensure the reliability of FPGA card configuration, an automatic upgrading can also be set in FPGA card and configured Switch.When the automatic upgrading configuration switch starting, the movement of above-mentioned steps S101 to S104 is executed to complete to configure or upgrade. To avoid the occurrence of repetition configuration, after configuring completion, closes automatic upgrading and switch and restart FPGA card.In this way, just will not go out Existing FPGA card can constantly carry out repeating configuration.
FPGA card configuration method is applied on FPGA card, sends IP address application report to server in the way of Web broadcast Text;Wherein, IP address application message includes MAC information and vendor class identifier;Receive the IP address of server feedback, benefit End-to-end communication is established with server with IP address to connect;Wherein, IP address is that server is based on MAC information and vendor class What identifier determined;Configuration file is obtained from server using end-to-end communication connection, and is configured using configuration file.
Firstly, FPGA card sends IP address application message to server by broadcast mode, server is then received After the IP address of distribution, end-to-end communication can be established with server and connect, can be matched based on end-to-end communication connection Required configuration file is set, and realizes configuration using the configuration file.As it can be seen that in entire FPAG card configuration process, without artificial Intervene, FPGA card configuration can be completed, the workload of administrative staff can be reduced, improve FPGA allocative efficiency.
Embodiment two:
Corresponding to the FPGA card configuration method that can be applied to FGPA card described in above-described embodiment, the embodiment of the present invention is also Provide another FPGA card configuration method, this FPGA card configuration method can be applied in server as shown in Figure 2, and with it is upper Embodiment one is stated with corresponding steps, and configuration use can be carried out with FPGA card configuration method provided by above-described embodiment one.
In embodiments of the present invention, to realize FPGA card automatic configuration, specified MAC can be fired in FPGA card in advance Information and prepackage file so that FPGA card is using the prepackage achievable hardware initialization of file, and are communicated, FPGA with server Card initialization process is referring specifically to above-described embodiment one.Specifically, the prepackage file in FPGA card can be an executable journey Sequence can also realize S101 extremely, it can be achieved that sending IP address application message to server when the executable program is performed The step of S104.
In practical applications, reference can be made to the structural schematic diagram of FPGA card shown in Fig. 2 configuration system connect into part.I.e. It enables FPGA card by network and deploys server (HOST) connection of management platform (built-in privately owned DHCP service).The management is flat Configuration file and configuration information needed for platform can import FPGA card installation configuration in advance, which includes reflecting for MAC and IP Penetrate look-up table and default FPGA card supplier identifier.
Specifically, referring to FIG. 3, Fig. 3 is the flow chart of another FPGA card configuration method in the embodiment of the present invention, the party Method the following steps are included:
S201, the IP address application message for receiving and parsing through FPGA card transmission obtain MAC information and vendor class mark Symbol.
After server receives the IP address application message of FPGA card transmission, IP address application message can be solved Analysis.The IP address application message is parsed specifically, DHCP protocol can be used, to obtain MAC information and vendor class Identifier.
S202, judge whether vendor class identifier matches with default FPGA card supplier identifier.
It is compared using vendor class identifier with pre-set FPGA card supplier identifier, determination currently connects The IP address application message received whether be FPGA card send IP address application message, to avoid the IP sent with other equipment Application IP addresses message is obscured.
Can be determined according to judging result IP address application message whether be FPGA card send application IP addresses message, if sentenced Disconnected result is yes, it is determined that IP address application message is the application IP addresses message that FPGA card is sent, and step S203 can be performed at this time; If it is judged that being no, it is determined that IP address application message is not the application IP addresses message that FPGA card is sent, and be can be performed at this time Step S204.
S203, the Map Searching table according to MAC and IP, determine the corresponding target ip address of MAC information.
In embodiments of the present invention, the Map Searching table of a MAC and IP, as different FPGA card point can be preset Prepare IP address.In this way, determining that IP address application message is that after FPGA card is sent, can determine from the Map Searching table The corresponding target ip address of MAC information out.
S204, stopping configure FPGA card.
When finding that vendor class identifier and preset vendor class identifier mismatch, then the IP address application Message may for other equipment send application IP addresses message, the device Errors are configured to avoid the occurrence of, can stop into Row configuration;In addition, there may be IP address application message is strictly to have FPGA to send, but the FPGA card not plans installation The FPGA card of configuration, such as shoddy FPGA card can stop configuring FPGA card at this time.
S205, target ip address is distributed to FPGA card, and establishes end-to-end communication with FPGA card and connect.
After determining IP address, target ip address can be distributed to FPGA card, and establish end-to-end communication with FPGA card Connection.
S206, configuration file is sent to FPGA card using end-to-end communication connection, so that FPGA card utilizes configuration file It is configured.
Then, server can be connected using end-to-end communication, and configuration file is sent to FPGA card.FPGA card is matched After setting file, it can be configured.In order to enable configuration take-effective, can restart FPGA card after configuration is completed.
Preferably, in order to ensure the reliability of FPGA card configuration, an automatic upgrading can also be set in FPGA card and configured Switch.When the automatic upgrading configuration switch starting, the movement of above-mentioned steps S101 to S104 is executed to complete to configure or upgrade. To avoid the occurrence of repetition configuration, after configuring completion, automatic upgrading can be closed and switch and restart FPGA card.In this way, just will not FPGA card occur can constantly carry out repeating configuration.
FPGA card configuration method is applied on the server, is received and parsed through the IP address application message of FPGA card transmission, is obtained Obtain MAC information and vendor class identifier;Judge whether are vendor class identifier and default FPGA card supplier identifier Matching;If it is, determining the corresponding target ip address of MAC information according to the Map Searching table of MAC and IP;By Target IP FPGA card is distributed in location, and establishes end-to-end communication with FPGA card and connect;It is connected using end-to-end communication and sends configuration file To FPGA card, so that FPGA card is configured using configuration file.
Server first verifies that the IP address application message after the IP address application message for receiving FPGA card transmission It whether is that FPGA card is sent, to avoid the interference for excluding other equipment.Then target ip address is distributed for FPGA card, is based on it Target ip address establishes end-to-end communication connection, the configuration file needed for FPGA card can be transferred to FPGA card, so as to FPGA card It completes to configure based on the configuration file.As it can be seen that being not necessarily to manual intervention in entire FPAG card configuration process, FPGA card can be completed Configuration can reduce the workload of administrative staff, improve FPGA allocative efficiency.
Embodiment three:
Corresponding to above method embodiment one, the embodiment of the invention also provides a kind of FPGA that can be applied to FPGA card Card configuration device, the FPGA card configuration method that FPGA card configuration device described below is described with embodiment of the method one can be mutually right It should refer to.
Shown in Figure 4, which comprises the following modules:
FPGA initialization module 101, for carrying out hardware system initialization and installing hardware driving additional;
Message sending module 102, for sending IP address application message to server in the way of Web broadcast;Wherein, IP address application message includes MAC information and vendor class identifier;
IP configuration module 103 is established using IP address with server end-to-end for receiving the IP address of server feedback Communication connection;Wherein, IP address is that server is determined based on MAC information and vendor class identifier;
Configuration module 104 for obtaining configuration file from server using end-to-end communication connection, and utilizes configuration text Part is configured.
FPGA card configuration device is applied on FPGA card, firstly, FPGA card passes through broadcast mode to server transmission IP Message is applied in location, after the IP address for then receiving the distribution of server, can establish end-to-end communication with server and connect, base The configuration file needed for end-to-end communication connection can obtain configuration, and configuration is realized using the configuration file.As it can be seen that whole In a FPAG card configuration process, it is not necessarily to manual intervention, FPGA card configuration can be completed, the workload of administrative staff can be reduced, mentioned High FPGA allocative efficiency.
In a kind of specific embodiment of the invention, further includes:
Restart module, switchs for after configuration is complete, closing automatic upgrading and restart FPGA card.
Example IV:
Corresponding to above method embodiment two, the embodiment of the invention also provides another kinds can be applied to and server FPGA card configuration device, the FPGA card configuration method that FPGA card configuration device described below is described with embodiment of the method two can phase Mutually to should refer to.
Shown in Figure 5, which comprises the following modules:
Message receiving module 201 obtains MAC information for receiving and parsing through the IP address application message of FPGA card transmission With vendor class identifier;
Configuration verification module 202, for judging whether are vendor class identifier and default FPGA card supplier identifier Matching;
IP address determining module 203 is matched for vendor class identifier with default FPGA card supplier identifier, then According to the Map Searching table of MAC and IP, the corresponding target ip address of MAC information is determined;
Module 204 is established in communication connection, for target ip address to be distributed to FPGA card, and is established with FPGA card end-to-end Communication connection;
Configuration file is sent to FPGA card for connecting using end-to-end communication by configuration file sending module 205, so as to FPGA card is configured using configuration file.
FPGA card configuration device is applied on the server, and server is in the IP address application message for receiving FPGA card transmission Later, first verify that whether the IP address application message is that FPGA card is sent, to avoid the interference for excluding other equipment.Then it is FPGA card distributes target ip address, establishes end-to-end communication based on target ip address with it and connect, can will match needed for FPGA card It sets file and is transferred to FPGA card, complete configuration so that FPGA card is based on the configuration file.As it can be seen that entire FPAG card configuration process In, it is not necessarily to manual intervention, FPGA card configuration can be completed, the workload of administrative staff can be reduced, improve FPGA allocative efficiency.
In a kind of specific embodiment of the invention, configuration stops module, in vendor class identifier and in advance If FPGA card supplier identifier mismatches, stopping configures FPGA card.
In a kind of specific embodiment of the invention, further includes:
Restart module, switchs for after configuration is complete, closing automatic upgrading and restart FPGA card.
Embodiment five:
Corresponding to above method embodiment, the embodiment of the invention also provides a kind of FPGA cards to configure system, hereafter retouches A kind of FPGA card configuration system stated can correspond to each other reference with above-described two kinds of FPGA card configuration methods.
Referring to FIG. 2, the system includes:
Server and multiple FPGA cards by interface unit and server with physical connection;
FPGA card, comprising: memory, for storing computer program;Processor, realization when for executing computer program As described in embodiment of the method one the step of FPGA card configuration method;
Server, including management platform, management platform are matched for realizing FPGA card described in above method embodiment two The step of setting method.
Preferably, configuration file and configuration information needed for installation FPGA card is stored in server;Configuration information includes The Map Searching table and default FPGA card supplier identifier of MAC and IP;
FPGA card is stored with MAC information and prepackage file;FPGA card can be communicated using prepackage file with server, with Just FPGA card installation is completed.
I.e. FPGA card provided by the embodiment of the present invention configures system, it can be achieved that by two institute of above-described embodiment one and embodiment The FPGA card configuration method of description, therefore the configuration of FPGA card provided by embodiment of the present invention system also implemented by the specific above method Technical effect possessed by example.
It is provided for the embodiments of the invention FPGA card configuration system below, it is specific real when realizing above two method Existing process is described in detail.
As shown in Fig. 2, FPGA card is by network and deploys management platform (built-in privately owned DHCP service) HOST server Connection.Management platform on HOST server has imported FPGA card in advance needs All Files and configuration information to be mounted (can press According to the IP address allocation table that MAC information maps one by one, with mapping table above).Firing when FPGA card dispatches from the factory has specified MAC letter Breath and factory prepackage file.Then, construction personnel installs FPGA card according to networking planning and powers on.
After powering on, communication interaction is carried out between FPGA card and server automatically, it is final to realize FPGA card configuration.Specifically, Please refer to Fig. 6:
After FPGA card power-on self-test, carries out hardware system initialization and load related hardware driving (when FPGA card dispatches from the factory certainly Dynamic upgrading switch default is opened).
FPGA card sends DHCP DISCOVER message to HOST (server) by network, with applied address.Wherein, DHCP message carries option60 option, i.e. vendor class identifier.
After the management platform of HOST receives DHCP DISCOVER message, school is carried out to MAC information and option60 option It tests, MAC information format and all matched equipment of option60 option " LANGCHAO " are only our FPGA card, can carry out address Distribution.
Address is assigned, and gets through the network connection between HOST and FPGA card.
Management platform fires file to FPGA card according to MAC mapping relations by network and pours into configuration.
Management platform closes FPGA card and upgrades switch automatically, and restarts FPGA card.
It should be noted that the specific implementation process of step shown in Fig. 6 and detailed description can refer to above method embodiment, It is not repeating one by one herein.
As it can be seen that in the present system, by the verification to MAC information and option60 option, DHCP service will not be to specified Equipment other than FPGA card distributes IP, eliminates the interference of other equipment.The built-in file of all FPGA cards can have been planned in advance Ingress pipe platform software.After FPGA card installs, all steps all carry out automatically, are not necessarily to administrative staff's interventional procedure.That is, not Administrative staff are needed to go each piece of FPGA card being newly added of manual configuration, it can be achieved that rapid deployment management again.
Embodiment six:
Corresponding to above method embodiment, the embodiment of the invention also provides a kind of readable storage medium storing program for executing, are described below A kind of readable storage medium storing program for executing can correspond to each other reference with a kind of above-described FPGA card configuration method.
A kind of readable storage medium storing program for executing is stored with computer program on readable storage medium storing program for executing, and computer program is held by processor The step of FPGA card configuration method of above method embodiment is realized when row.
The readable storage medium storing program for executing be specifically as follows USB flash disk, mobile hard disk, read-only memory (Read-Only Memory, ROM), the various program storage generations such as random access memory (Random Access Memory, RAM), magnetic or disk The readable storage medium storing program for executing of code.
Professional further appreciates that, unit described in conjunction with the examples disclosed in the embodiments of the present disclosure And algorithm steps, can be realized with electronic hardware, computer software, or a combination of the two, in order to clearly demonstrate hardware and The interchangeability of software generally describes each exemplary composition and step according to function in the above description.These Function is implemented in hardware or software actually, the specific application and design constraint depending on technical solution.Profession Technical staff can use different methods to achieve the described function each specific application, but this realization is not answered Think beyond the scope of this invention.

Claims (10)

1. a kind of FPGA card configuration method, which is characterized in that be applied to FPGA card, comprising:
IP address application message is sent to server in the way of Web broadcast;Wherein, the IP address application message includes MAC Information and vendor class identifier;
The IP address for receiving the server feedback is established end-to-end communication with the server using the IP address and is connect; Wherein, the IP address is that the server is determined based on the MAC information and the vendor class identifier;
Configuration file is obtained from the server using end-to-end communication connection, and is matched using the configuration file It sets.
2. FPGA card configuration method according to claim 1, which is characterized in that further include:
After configuration is complete, automatic upgrading is closed to switch and restart the FPGA card.
3. a kind of FPGA card configuration method, which is characterized in that be applied to server, comprising:
The IP address application message of FPGA card transmission is received and parsed through, MAC information and vendor class identifier are obtained;
Judge whether the vendor class identifier matches with default FPGA card supplier identifier;
If it is, determining the corresponding target ip address of the MAC information according to the Map Searching table of MAC and IP;By the mesh Mark IP address distributes to the FPGA card, and establishes end-to-end communication with the FPGA card and connect;Utilize the end-to-end communication Configuration file is sent to the FPGA card by connection, so that the FPGA card is configured using the configuration file.
4. FPGA card configuration method according to claim 3, which is characterized in that in the vendor class identifier and institute When stating default FPGA card supplier identifier mismatch, comprising:
Stopping configures the FPGA card.
5. FPGA card configuration method according to claim 3, which is characterized in that further include:
After configuration is complete, automatic upgrading is closed to switch and restart the FPGA card.
6. a kind of FPGA card configuration device, which is characterized in that be applied to FPGA card, comprising:
Message sending module, for sending IP address application message to server in the way of Web broadcast;Wherein, the IP Apply for that message includes MAC information and vendor class identifier in location;
IP configuration module is established for receiving the IP address of the server feedback using the IP address and the server End-to-end communication connection;Wherein, the IP address is that the server is based on the MAC information and the vendor class mark Symbol determination;
Configuration module, for obtaining configuration file from the server using end-to-end communication connection, and described in utilization Configuration file is configured.
7. a kind of FPGA card configuration device, which is characterized in that be applied to server, comprising:
Message receiving module obtains MAC information and supplier for receiving and parsing through the IP address application message of FPGA card transmission Class formative symbol;
Configuration verification module, for judge the vendor class identifier and default FPGA card supplier identifier whether Match;
IP address determining module is matched for the vendor class identifier with the default FPGA card supplier identifier, Then according to the Map Searching table of MAC and IP, the corresponding target ip address of the MAC information is determined;
Module is established in communication connection, for the target ip address to be distributed to the FPGA card, and is established with the FPGA card End-to-end communication connection;
Configuration file is sent to the FPGA card for connecting using the end-to-end communication by configuration file sending module, with Toilet is stated FPGA card and is configured using the configuration file.
8. a kind of FPGA card configures system characterized by comprising
Server and multiple FPGA cards by interface unit and the server with physical connection;
The FPGA card, comprising: memory, for storing computer program;Processor, when for executing the computer program It realizes as described in claims 1 or 2 item the step of FPGA card configuration method;
The server, including management platform, the management platform is for realizing the FPGA as described in any one of claim 3 to 5 The step of card configuration method.
9. FPGA card according to claim 8 configures system, which is characterized in that be stored with described in installation in the server Configuration file needed for FPGA card and configuration information;The configuration information includes the Map Searching table of MAC and IP, and default FPGA card supplier identifier;
The FPGA card is stored with MAC information and prepackage file;The FPGA card can be with the service using the prepackage file Device is communicated, to complete FPGA card installation.
10. a kind of readable storage medium storing program for executing, which is characterized in that be stored with computer program, the meter on the readable storage medium storing program for executing It is realized when calculation machine program is executed by processor as described in any one of claim 1 to 5 the step of FPGA card configuration method.
CN201910784542.5A 2019-08-23 2019-08-23 FPGA card configuration method, device and system and readable storage medium Active CN110493055B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910784542.5A CN110493055B (en) 2019-08-23 2019-08-23 FPGA card configuration method, device and system and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910784542.5A CN110493055B (en) 2019-08-23 2019-08-23 FPGA card configuration method, device and system and readable storage medium

Publications (2)

Publication Number Publication Date
CN110493055A true CN110493055A (en) 2019-11-22
CN110493055B CN110493055B (en) 2022-11-04

Family

ID=68553307

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910784542.5A Active CN110493055B (en) 2019-08-23 2019-08-23 FPGA card configuration method, device and system and readable storage medium

Country Status (1)

Country Link
CN (1) CN110493055B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111858053A (en) * 2020-07-22 2020-10-30 苏州浪潮智能科技有限公司 Dynamic equalization method, device and medium for FPGA (field programmable Gate array) resources
CN112669521A (en) * 2020-12-11 2021-04-16 深圳市智莱科技股份有限公司 Vending machine initialization method, vending machine and readable storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103188107A (en) * 2011-12-31 2013-07-03 北京大唐高鸿数据网络技术有限公司 Automatic finding and configured deployment system and method of terminal devices
CN106603743A (en) * 2016-12-16 2017-04-26 合网络技术(北京)有限公司 Broadcast request response method based on DHCP protocol customization, system and terminal thereof
CN109542492A (en) * 2018-12-03 2019-03-29 郑州云海信息技术有限公司 A kind of method, system and the equipment of FPGA board online updating

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103188107A (en) * 2011-12-31 2013-07-03 北京大唐高鸿数据网络技术有限公司 Automatic finding and configured deployment system and method of terminal devices
CN106603743A (en) * 2016-12-16 2017-04-26 合网络技术(北京)有限公司 Broadcast request response method based on DHCP protocol customization, system and terminal thereof
CN109542492A (en) * 2018-12-03 2019-03-29 郑州云海信息技术有限公司 A kind of method, system and the equipment of FPGA board online updating

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111858053A (en) * 2020-07-22 2020-10-30 苏州浪潮智能科技有限公司 Dynamic equalization method, device and medium for FPGA (field programmable Gate array) resources
CN111858053B (en) * 2020-07-22 2023-01-10 苏州浪潮智能科技有限公司 Dynamic balancing method, device and medium for FPGA (field programmable Gate array) resources
CN112669521A (en) * 2020-12-11 2021-04-16 深圳市智莱科技股份有限公司 Vending machine initialization method, vending machine and readable storage medium
CN112669521B (en) * 2020-12-11 2022-12-20 深圳市智莱科技股份有限公司 Vending machine initialization method, vending machine and readable storage medium

Also Published As

Publication number Publication date
CN110493055B (en) 2022-11-04

Similar Documents

Publication Publication Date Title
CN101808009B (en) Method and system for upgrading network equipment
EP2904739B1 (en) Discovering, validating, and configuring hardware-inventory components
CN102739455B (en) A kind of method of network equipments configuration and device
JP2014038610A (en) Method of high-speed automation of cluster system construction using virtual disk
CN108810192A (en) A kind of static IP configuration method, device, equipment and readable storage medium storing program for executing
US20120124242A1 (en) Server and method for testing pxe function of network interface card
CN101951369A (en) Batch terminal upgrading method and system based on automatic discovery
CN102857382B (en) Network management equipment, access convergent equipment, access terminal equipment, and management method and system for access terminal equipment
CN103326887B (en) A kind of interface managerial method and system
CN103516547A (en) Network parameter distribution method and device
CN104615455A (en) Remote upgrading method and device for IPMC program of ATCA structure
CN110493055A (en) FPGA card configuration method, device, system and readable storage medium storing program for executing
CN108306959A (en) A kind of method, apparatus and storage medium of remote upgrade CPLD firmwares
CN104683161A (en) Network management method and device based on SaaS (software as a service)
CN104144096A (en) Virtual network layer construction method, device and system
TW201237757A (en) System and method for installing virtual machines
CN110493028A (en) A kind of clustered deploy(ment) method, system, device and computer readable storage medium
CN102123040A (en) Method and device for configuring data
CN102726025B (en) Installation method and relative devices of business packet
CN104735176A (en) PXE booting method and device and server single board
CN109120444A (en) cloud resource management method, processor and storage medium
CN104780058A (en) Electronic equipment configuration method and system
CN109510833A (en) A kind of communication means and device based on a plurality of APN link
CN109918096A (en) A kind of installation method of server operating system, system and associated component
CN109756359A (en) The method and remote server and network system of auto-initiation network equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant