CN105681072B - A kind of IP address management method and device of service card - Google Patents
A kind of IP address management method and device of service card Download PDFInfo
- Publication number
- CN105681072B CN105681072B CN201510961075.0A CN201510961075A CN105681072B CN 105681072 B CN105681072 B CN 105681072B CN 201510961075 A CN201510961075 A CN 201510961075A CN 105681072 B CN105681072 B CN 105681072B
- Authority
- CN
- China
- Prior art keywords
- address
- integrated circuit
- new
- programmable integrated
- update
- 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.)
- Active
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L61/00—Network arrangements, protocols or services for addressing or naming
- H04L61/50—Address allocation
- H04L61/5053—Lease time; Renewal aspects
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/08—Configuration management of networks or network elements
- H04L41/0803—Configuration setting
- H04L41/0813—Configuration setting characterised by the conditions triggering a change of settings
- H04L41/082—Configuration setting characterised by the conditions triggering a change of settings the condition being updates or upgrades of network functionality
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L49/00—Packet switching elements
- H04L49/10—Packet switching elements characterised by the switching fabric construction
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L61/00—Network arrangements, protocols or services for addressing or naming
- H04L61/50—Address allocation
- H04L61/5007—Internet protocol [IP] addresses
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Stored Programmes (AREA)
Abstract
The invention discloses a kind of IP address management method and devices of service card, in this programme, the IP address that management board passes through existing programmable integrated circuit management business card in service card, so can be to avoid adding eeprom chip in service card, to realize saving hardware resource, the service efficiency of programmable integrated circuit is furthermore also improved.
Description
Technical field
The present invention relates to the IP address management method and devices of field of communication technology more particularly to a kind of service card.
Background technique
It include management board, service card in frame type exchanger.It wherein, include the CPU of service card in service card
Programmable integrated circuit (such as the PLD of (Central Processing Unit, central processing unit) and service card
(Programmable Logic Device, programmable logic device)) etc..Management board is by programmable integrated circuit for real
The lighting of existing service card, reset, interrupts the control of the components such as convergence, power supply, fan at optical port intelligent monitoring.In addition, management board needs
Management business card IP (Internet Protocol, the agreement interconnected between network) address.
It is in the related technology by increasing an EEPROM on service card to the management of service card IP address for realization
(Electrically Erasable Programmable Read-Only Memory, Electrically Erasable Programmable Read-Only Memory)
What chip was realized.As shown in Figure 1, IP address is stored into the eeprom chip of corresponding service card by management board, business cartoon
The eeprom chip for accessing itself is crossed, obtains IP address, and complete the configuration to own IP address.
And the above method, it needs to increase on service card an eeprom chip, wastes hardware resource.
Summary of the invention
The embodiment of the invention provides a kind of IP address management method and device of service card, to solve presently, there are
The problem of wasting hardware resource.
The embodiment of the invention provides a kind of IP address management methods of service card, comprising:
The programmable integrated circuit of service card receives and stores central processing that management board is sent, for the service card
The new IP address that device CPU is updated IP address;And
Receive the IP more new command that the management board is sent;
According to the IP more new command, generate and send IP update and be prompted to the CPU so that the CPU from it is described can
The new IP address is obtained in programme IC and carries out the update of IP address.
Further, the embodiment of the invention also provides a kind of IP address management methods of service card, comprising:
The central processor CPU of service card receives the IP update instruction that the programmable integrated circuit of service card is sent;
According to the IP update instruction, new IP address is obtained from the programmable integrated circuit;The new IP address is
Management board is sent to the programmable integrated circuit;
According to the new IP address, the update of IP address is carried out.
Further, the embodiment of the invention also provides a kind of IP address management methods of service card, comprising:
Management board sends new IP address to the programmable integrated circuit of service card, and the new IP address is used for the service card
Central processor CPU IP address is updated;And
IP more new command is sent to the programmable integrated circuit, so that the programmable integrated circuit generates and sends IP
Update is prompted to the service card.
Further, the embodiment of the invention also provides a kind of IP address management devices of service card, comprising:
New IP address receiving module, for receiving and storing central processor CPU that management board is sent, for service card
The new IP address that IP address is updated;
IP updates command reception module, the IP more new command sent for receiving the management board;
IP updates prompt sending module, for according to the IP more new command, generate and send IP update be prompted to it is described
CPU, so that the CPU obtains the new IP address from the programmable integrated circuit and carries out the update of IP address.
Further, the embodiment of the invention also provides a kind of IP address management devices of service card, including
IP update instruction receiving module, the IP update instruction that the programmable integrated circuit for receiving service card is sent;
New IP address obtains module, for obtaining from the programmable integrated circuit new according to the IP update instruction
IP address;The new IP address is that management board is sent to the programmable integrated circuit;
Update module, for carrying out the update of IP address according to the new IP address.
Further, the embodiment of the invention also provides a kind of IP address management devices of service card, including
New IP address sending module, for sending new IP address to the programmable integrated circuit of service card, the new IP
Central processor CPU of the location for the service card is updated IP address;
IP updates instruction sending module, for sending IP more new command to the programmable integrated circuit, so that described can
Programme IC generates and sends IP update and is prompted to the CPU.
The present invention has the beneficial effect that: management board passes through existing programmable integrated circuit management business card in interchanger
IP address, so, so that saving hardware resource can be realized, can additionally be improved to avoid eeprom chip is added in service card
The service efficiency of programmable integrated circuit.
Detailed description of the invention
To describe the technical solutions in the embodiments of the present invention more clearly, make required in being described below to embodiment
Attached drawing is briefly introduced, it should be apparent that, drawings in the following description are only some embodiments of the invention, for this
For the those of ordinary skill in field, without creative efforts, it can also be obtained according to these attached drawings other
Attached drawing.
Fig. 1 show the structural schematic diagram of the IP address of management business card described in the prior art;
Fig. 2 show the flow diagram of the IP address management method of service card described in the embodiment of the present invention one;
Fig. 3 show the flow diagram of the IP address management method of service card described in the embodiment of the present invention two;
Fig. 4 show the flow diagram of the IP address management method of service card described in the embodiment of the present invention three;
Fig. 5 show the flow diagram of the IP address management method of service card described in the embodiment of the present invention four;
Fig. 6 show the structural schematic diagram of the IP address management device of service card described in the embodiment of the present invention five;
Fig. 7 show the structural schematic diagram of the IP address management device of service card described in the embodiment of the present invention six;
Fig. 8 show the structural schematic diagram of the IP address management device of service card described in the embodiment of the present invention seven.
Specific embodiment
The embodiment of the invention provides a kind of IP address management method and devices of service card, described in the embodiment of the present invention
In technical solution, management board is by the IP address of existing programmable integrated circuit management business card in service card, so can be with
It avoids adding eeprom chip in service card, so that saving hardware resource can be realized.
To make the objectives, technical solutions, and advantages of the present invention clearer, below in conjunction with attached drawing to the present invention make into
It is described in detail to one step, it is clear that described embodiments are only a part of the embodiments of the present invention, rather than whole implementation
Example.Based on the embodiments of the present invention, obtained by those of ordinary skill in the art without making creative efforts
All other embodiment, shall fall within the protection scope of the present invention.
Embodiment one:
As shown in Fig. 2, its flow diagram for the IP address management method of service card described in the embodiment of the present invention one,
The IP address management method of the service card can comprise the following steps that
Step 201: the programmable integrated circuit of service card receives and stores management board transmission, for the service card
The new IP address that CPU is updated IP address.
Step 202: receiving the IP more new command that the management board is sent.
Step 203: according to the IP more new command, generating and sending IP update and be prompted to the CPU, so that the CPU
The new IP address is obtained from the programmable integrated circuit and carries out the update of IP address.
In this way, being real by existing programmable integrated circuit to the update of the IP address of service card in the embodiment of the present invention
Existing, eeprom chip can be saved and save hardware resource.
In the following, for convenient for further understanding, technical solution provided in an embodiment of the present invention is described further:
1), wherein, in one embodiment, for convenient for the IP address of service card without update when, can make as soon as possible
Service card configures the IP address of itself, in this regard, programmable integrated circuit is before executing step 201 in the embodiment of the present invention, also
It can receive and store the slot position identification information that the management board is sent, so that the CPU powers on the slot position mark that rear basis prestores
Know and is obtained in the corresponding relationship of information and initial ip address and configure initial ip address.
For example, the corresponding relationship of the slot position identification information and initial ip address that prestore in CPU is as shown in table 1, need to illustrate
Be that table 1 is merely to illustrate the embodiment of the present invention, be not intended to limit the present invention embodiment.
The corresponding relationship of table 1 slot position identification information and initial ip address
Slot position identification information | Initial ip address |
Slot position identifies A | Initial IP (C) |
Slot position identifies B | Initial IP (D) |
If after powering on, the slot position identification information that management board is sent to programmable integrated circuit is that slot position identifies A, then service card
Slot position can be obtained from programmable integrated circuit identify A.Then, CPU inquires slot position mark A according to table 1 and corresponds to initial IP
(C), then IP address is configured initial IP (C) by CPU.
2), wherein, in one embodiment, programmable integrated circuit can be used as the I2C SLAVE device of management board, so as to
It is communicated and is realized through programmable integrated circuit to the IP of service card with programmable integrated circuit by I2C bus in management board
Location is managed.So to make programmable integrated circuit know that management board needs to update service card in a manner of simple and is efficient
IP address, it is to indicate the IP that step 202, which can be executed specifically as the value for detecting the first preset field, in the embodiment of the present invention
The value of more new command.
For example, the first preset field is stored in programmable integrated circuit, it is assumed that the first preset field is Bit0, including 0
It is worth with 1 two.When the value of Bit0 is 0, the first default value is indicated;It indicates to receive IP more new command if being 1 if the value of Bit0.Tool
When body is implemented, the value of the first preset field can be set by management board.For example, the value of Bit0 is 0, and is managed under default situations
When plate needs to update the IP address of service card, management board sets 1 for the value of Bit0, and at this moment, programmable integrated circuit is detectable
Value to Bit0 is 1, can execute step 203 (generate and send IP update and be prompted to the CPU) in this way.
Certainly, it should be noted that in the embodiment of the present invention, to execute step convenient for receiving IP more new command next time
After rapid 203, the first default value can also be set by the value of the first preset field by CPU or programmable integrated circuit.Example
Such as, 0 is set by the value of Bit0 after the IP for receiving programmable integrated circuit transmission updates prompt by CPU.
Wherein, in one embodiment, to be prompted to the CPU convenient for quickly generating and sending IP update, the present invention
It includes the first interrupt signal for prompting the service card to be updated IP address that IP described in embodiment, which updates prompt,.
Wherein, in one embodiment, the update status of the IP address of service card, the present invention are understood for the ease of management board
In embodiment, following operation is can also be performed after executing step 203 in programmable integrated circuit:
Step A1: it receives the expression IP address that the CPU is sent and updates the operation completion instruction completed.
Wherein, in one embodiment, instruction, this hair are completed efficiently to receive the operation of CPU transmission convenient for simple
In bright embodiment, it is to indicate that instruction is completed in the operation that step A1, which can be executed specifically as the value for detecting the second preset field,
Value.
For example, the second preset field is stored in programmable integrated circuit, it is assumed that the second preset field is Bit1, including 0
It is worth with 1 two.When the value of Bit1 is 0, the second default value is indicated;Indicate that receiving operation completes instruction if being 1 if the value of Bit1.
When it is implemented, the value of the second preset field can be arranged by CPU.For example, the value of Bit1 is 0 under default conditions.CPU updates
After IP address, CPU sets 1 for the value of Bit1.At this moment, it is 1 that the value of Bit1, which can be detected, in programmable integrated circuit, so just
Step A2, which can be executed, goes the message informing that the CPU is completed to IP address update to management board.
Step A2: according to the operation complete indicate, generate and send IP update message give the management board.
Wherein, in one embodiment, to complete to indicate convenient for receiving operation by same mode next time, management board
IP is being received after update message, can set the value of the second preset field by management board or programmable integrated circuit
It is set to the value for indicating default conditions.
It wherein, in one embodiment, is the message informing that the CPU is completed to IP address update convenient for being simple and efficient
To management board, in the embodiment of the present invention, update message includes for indicating that the update of IP address is completed in the CPU to the IP
The second interrupt signal.I.e. the second interrupt signal is sent to management board by programmable integrated circuit, in order to which management board knows industry
IP address update is completed in business card.
It wherein, in one embodiment, can to confirm whether CPU correctly carries out the update of IP address convenient for management board
Programme IC can also receive and store the updated IP address that the CPU is sent before executing step A1, so that
The management board receives the IP and is judged after update message according to the updated IP address and the new IP address
Whether the IP address of the service card configuration is correct.
For example, being stored with new IP address (such as IP (C)) in programmable integrated circuit.In addition, also having received and stored CPU
The updated IP address (such as IP (D)) sent.By IP after update message is sent to management board, management board can be from can
IP (C) and IP (D) are read in programme IC, and whether compare the two IP address consistent, if unanimously, can confirm
CPU correctly carries out the update of IP address;Otherwise, it can be confirmed CPU without the update of correctly progress IP address.
3), wherein, in one embodiment, management board may include the first management board and the second management board in interchanger,
First management board and the second management board pass through competition and elect main management plate, then another management board automatically becomes from management board.
Synchronization only has a management board acquisition to the control of service card.
When it is implemented, programmable integrated circuit receives the election that carries that main management plate is sent and ties before step 201
The arbitration information of fruit and storage;Then it according to arbitration information, is communicated with the foundation of main management plate.
For example, being stored with the arbitration field for indicating arbitration information in programmable integrated circuit, main management plate is secondary by modifying
The value for cutting out field, is sent to programmable integrated circuit for arbitration result.Arbitration field and the meaning of analog value are as shown in table 2, need
It is noted that table 2 is merely to illustrate the embodiment of the present invention, it is not intended to limit the present invention embodiment.Programmable integrated circuit
According to arbitration information and switching device gating and which management board communications, wherein in table 2: EN_0 indicates whether gating the
One management board indicates not gate when the value of EN_0 is 1, gating is indicated when the value of EN_0 is 0;Similarly, EN_1 indicates whether to gate
Second management board indicates not gate when the value of EN_1 is 1, gating is indicated when the value of EN_1 is 0.ARBITRATE_0 and
ARBITRATE_1 indicates election results jointly.
2 arbitration information table of table
Embodiment two
Based on identical inventive concept, the embodiment of the present invention also provides a kind of IP address management method of service card, such as Fig. 3
It is shown, it is the flow diagram of this method, method includes the following steps:
Step 301: the CPU of service card receives the IP update instruction that the programmable integrated circuit of service card is sent.
Wherein, as described in embodiment one, IP update instruction can be the first interrupt signal, and which is not described herein again.
Step 302: according to the IP update instruction, obtaining new IP address from the programmable integrated circuit;It is described new
IP address is that management board is sent to the programmable integrated circuit.
Step 303: according to the new IP address, carrying out the update of IP address.
In the following, for convenient for further understanding, technical solution provided in an embodiment of the present invention is described further:
1) after, wherein, in one embodiment, powering on, service card needs to configure an initial ip address for itself, right
This, in the embodiment of the present invention, before step 301, following operation is can also be performed in CPU:
Step C1: slot position identification information is obtained from the programmable integrated circuit after powering on.
Step C2: the slot position of acquisition is inquired in the corresponding relationship of the slot position identification information and initial ip address that prestore
The corresponding initial ip address of identification information.
Step C3: IP address is configured according to the initial ip address inquired.
For example, one slot number (such as 0-7) of each slot position can be given when there is 8 slot positions that can insert service card.Often
A slot position can insert a service card, then have 8 IP address.In the embodiment of the present invention, slot position identification information can be third
Preset field, by that can also include in the corresponding relationship of the slot position identification information and initial ip address that are prestored in CPU and slot number
Corresponding relationship (as shown in table 3).It, can be according to this corresponding relationship with obtaining initial IP when CPU configures initial ip address
Location.
Table 3 includes the slot position identification information of slot number and the corresponding relationship of initial ip address
SLOT_ID2 | SLOT_ID1 | SLOT_ID0 | Slot position information | Initial ip address |
0 | 0 | 0 | 0 | IP(0) |
0 | 0 | 1 | 1 | IP(1) |
0 | 1 | 0 | 2 | IP(2) |
0 | 1 | 1 | 3 | IP(3) |
1 | 0 | 0 | 4 | IP(4) |
1 | 0 | 1 | 5 | IP(5) |
1 | 1 | 0 | 6 | IP(6) |
1 | 1 | 1 | 7 | IP(7) |
When it is implemented, prestored in programmable integrated circuit third preset field (such as SLOT_ID0, SLOT_ID1,
And SLOT_ID2), the value of third preset field is arranged in management board, such as is 0.After CPU is powered on, from programmable integrated circuit
The middle value for reading third preset field, can know initial ip address by above-mentioned table 3.
2), wherein, in one embodiment, the programmable integrated circuit as described in embodiment one is as I2C SLAVE device
Part realizes management of the management board to the IP address of service card.
In the embodiment of the present invention, to understand service card to IP address more news convenient for management board, step 303 it
Afterwards, can also send in the embodiment of the present invention indicates that IP address updates the operation completion completed and is indicated to the programmable integrated electricity
Road.
It completes to indicate efficiently to send operation convenient for simple, in the embodiment of the present invention, sending indicates that IP address updates
It is that second in programmable integrated circuit is pre- that the operation of completion, which is completed to be indicated to the programmable integrated circuit and can specifically execute,
If the value of field is set as indicating that the value of instruction is completed in operation.Specific embodiment illustrates in example 1, herein no longer
It repeats.
Wherein, in one embodiment, to confirm whether service card correctly carries out the update of IP address convenient for management board,
Updated IP address can also be sent to the programmable integrated circuit after executing step 303 in the embodiment of the present invention
Storage.
To sum up, in the embodiment of the present invention, service card is updated by IP address of the programmable integrated circuit to itself,
Without eeprom chip, hardware resource can be saved.
Embodiment three
Based on identical inventive concept, the embodiment of the present invention also provides a kind of IP address management method of service card, such as Fig. 4
It is shown, it is the flow diagram of this method, comprising the following steps:
Step 401: management board sends new IP address to the programmable integrated circuit of service card, and the new IP address is used for institute
The CPU for stating service card is updated IP address.
Step 402: sending IP more new command to the programmable integrated circuit, so that the programmable integrated circuit generates
And it sends IP update and is prompted to the CPU.
Wherein, in one embodiment, step 402 can be performed as by the first preset field in programmable integrated circuit
Value is set as indicating that IP updates the value of prompt.Specific implementation method illustrates that details are not described herein in example 1.
Wherein, in one embodiment, for convenient for the IP address of service card without update when, business can be made as soon as possible
Itself IP address of card configuration, slot position identification information can also be sent before step 401 to the programmable integrated circuit, so as to
The slot position identification information can be obtained from programmable integrated circuit in the CPU of service card and carries out the configuration of IP address.Specifically
When implementation, as described in embodiment two, slot position identification information can be sent in such a way that the value of third preset field is set.The present invention
Details are not described herein for embodiment.
It wherein, in one embodiment, is the update that IP address whether is completed convenient for understanding service card, after step 402,
Can also receive IP that the programmable integrated circuit is sent update message, the IP update message for indicating described
The update of IP address is completed in CPU.
Further, for the ease of the whether correct more new IP address of management board confirmation service card.In the embodiment of the present invention also
The following steps are included:
Step D1: it according to IP update message, is obtained from the programmable integrated circuit and compares the new IP
Whether address and the updated IP address are consistent.
Step D2: if it is not, then returning to step 401;If so, end operation.
Example IV
It is arranged after initial ip address after being powered on service card, for being updated on demand to IP address, to of the invention real
The IP address management method for applying service card in example is illustrated, as shown in figure 5, being the flow diagram of this method, including following
Step:
Step 501: management board sends slot position identification information to programmable integrated circuit.
Step 502: programmable integrated circuit receives and stores the slot position identification information of management board transmission.
Step 503:CPU power on after from programmable integrated circuit obtain slot position identification information.
Step 504:CPU inquires the slot position of acquisition in the corresponding relationship of the slot position identification information and initial ip address that prestore
The corresponding initial ip address of identification information.
Step 505:CPU configures IP address according to the initial ip address inquired.
Step 506: management board sends new IP address to programmable integrated circuit.
Step 507: management board sets the value of the first preset field in programmable integrated circuit to indicate IP more new command
Value.
Step 508: programmable integrated circuit detects that the value of the first preset field is life after the value for indicating IP more new command
At and send the first interrupt signal to CPU.
After step 509:CPU receives the first interrupt signal, the first default value is set by the value of the first preset field.
Step 510:CPU obtains new IP address from programmable integrated circuit, and carries out the update of IP address.
Updated IP address is sent to programmable integrated circuit storage by step 511:CPU.
Step 512:CPU sets the value of the second preset field in programmable integrated circuit to indicate that IP address updates completion
Value.
Step 513: programmable integrated circuit detects that the value of the second preset field is to indicate that IP address updates the value completed
Afterwards, the second interrupt signal is generated and sent to management board.
Step 514: after management board receives the second interrupt signal, setting the second default for the value of the second preset field
Value.
Step 515: management board compares new IP address and whether updated IP address is consistent, if so, end operation;
If it is not, then return step 506.
In the embodiment of the present invention, medium of the programmable integrated circuit as management board management business card IP address, Neng Goujie
About hardware resource.
Embodiment five
Based on identical inventive concept, the embodiment of the present invention also provides a kind of IP address management device of service card, such as Fig. 6
It is shown, for the structural schematic diagram of the device, comprising:
New IP address receiving module 601, for receiving and storing central processing unit that management board is sent, for service card
The new IP address that CPU is updated IP address;
IP updates command reception module 602, the IP more new command sent for receiving the management board;
IP updates prompt sending module 603, for generating and sending IP update and being prompted to institute according to the IP more new command
CPU is stated, so that the CPU obtains the new IP address from the programmable integrated circuit and carries out the update of IP address.
Wherein, in one embodiment, described device further include:
Slot position identification information receiving module, for the new IP address receiving module receive and store management board transmission,
Before the new IP address that central processor CPU for the service card is updated IP address, the pipe is received and stored
The slot position identification information that plate is sent is managed, so that the CPU is powered on afterwards according to the slot position identification information and initial ip address prestored
It is obtained in corresponding relationship and configures initial ip address.
Wherein, in one embodiment, the IP updates command reception module, specifically for detecting the first preset field
Value be to indicate the value of the IP more new command.
Wherein, in one embodiment, it includes for prompting the service card to carry out IP address that the IP, which updates prompt,
The first interrupt signal updated.
Wherein, in one embodiment, described device further include:
Instruction receiving module is completed in operation, is generated and sent IP update for IP update prompt sending module and is prompted to
After the CPU, receives the expression IP address that the CPU is sent and update the operation completion instruction completed;
IP update message sending module generates and sends IP update message for completing instruction according to the operation
To the management board.
Wherein, in one embodiment, described device further include:
Updated IP address receiving module completes instruction receiving module for the operation and receives what the CPU was sent
Before indicating that IP address updates the operation completion instruction completed, the updated IP address that the CPU is sent is received and stored, with
Make the management board receive the IP to be sentenced according to the updated IP address and the new IP address after update message
Whether the IP address that the service card configures of breaking is correct.
Wherein, in one embodiment, update message includes: for indicating that IP address is completed in the CPU to the IP
Update the second interrupt signal.
Wherein, in one embodiment, instruction receiving module is completed in the operation, specifically for detecting the second predetermined word
The value of section is to indicate that the value of instruction is completed in the operation.
In the embodiment of the present invention, management board by the IP address of existing programmable integrated circuit management business card, so
It can be to avoid eeprom chip be added in service card, so that saving hardware resource can be realized.
Embodiment six
Based on identical inventive concept, the embodiment of the present invention also provides a kind of IP address management device of service card, such as Fig. 7
It is shown, for the structural schematic diagram of the device, comprising:
IP update instruction receiving module 701, the IP update instruction that the programmable integrated circuit for receiving service card is sent;
New IP address obtains module 702, for being obtained from the programmable integrated circuit according to the IP update instruction
New IP address;The new IP address is that management board is sent to the programmable integrated circuit;
Update module 703, for carrying out the update of IP address according to the new IP address.
Wherein, in one embodiment, described device further include:
Slot position identification information obtains module, receives the programmable integrated of service card for the IP update instruction receiving module
Before the IP update instruction that circuit is sent, slot position identification information is obtained from the programmable integrated circuit after powering on;
Enquiry module, for inquiring the institute of acquisition in the corresponding relationship of the slot position identification information and initial ip address that prestore
State the corresponding initial ip address of slot position identification information;
Initial IP configuration module, for configuring IP address according to the initial ip address inquired.
Wherein, in one embodiment, described device further include:
Operation completes instruction sending module and carries out IP address more for the update module according to the new IP address
After new, sending indicates that IP address updates the operation completion completed and is indicated to the programmable integrated circuit.
Wherein, in one embodiment, described device further include:
Updated IP address sending module carries out IP address for the update module according to the new IP address
After update, updated IP address is sent to the programmable integrated circuit and is stored.
In the embodiment of the present invention, management board by the IP address of existing programmable integrated circuit management business card, so
It can be to avoid eeprom chip be added in service card, so that saving hardware resource can be realized.
Embodiment seven
Based on identical inventive concept, the embodiment of the present invention also provides a kind of IP address management device of service card, such as Fig. 8
It is shown, for the structural schematic diagram of the device, comprising:
New IP address sending module 801, for sending new IP address to the programmable integrated circuit of service card, the new IP
Central processor CPU of the address for the service card is updated IP address;
IP updates instruction sending module 802, for sending IP more new command to the programmable integrated circuit, so that described
Programmable integrated circuit generates and sends IP update and is prompted to the CPU.
Wherein, in one embodiment, described device further include:
Slot position identification information sending module, for the new IP address sending module send new IP address to service card can
Before programme IC, slot position identification information is sent to the programmable integrated circuit.
Wherein, in one embodiment, described device further include:
IP update message receiving module, for the IP update instruction sending module send IP more new command to it is described can
After programme IC, IP that the programmable integrated circuit is sent update message is received, the IP use by update message
The update of IP address is completed in the expression CPU.
Wherein, in one embodiment, described device further include:
Comparison module, for the IP, update message receiving module has received the IP of the programmable integrated circuit transmission
After update message, according to IP update message, obtained from the programmable integrated circuit and with comparing the new IP
Whether location and the updated IP address are consistent;
Trigger module, if the comparison result for the comparison module be it is inconsistent, trigger the new IP address and send
Module executes the step of transmission new IP address is to programmable integrated circuit.
In the embodiment of the present invention, management board by the IP address of existing programmable integrated circuit management business card, so
It can be to avoid eeprom chip be added in service card, so that saving hardware resource can be realized.
About the device in above-described embodiment, wherein modules execute the concrete mode of operation in related this method
Embodiment in be described in detail, no detailed explanation will be given here.
It should be understood by those skilled in the art that, the embodiment of the present invention can provide as method, apparatus, system or calculate
Machine program product.Therefore, the present invention can be used complete hardware embodiment, complete software embodiment or combine software and hardware side
The form of the embodiment in face.Moreover, it wherein includes computer usable program code that the present invention, which can be used in one or more,
The computer implemented in computer-usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.)
The form of program product.
The present invention be referring to according to the method for the embodiment of the present invention, the flow chart of device (device) and computer program product
And/or block diagram describes.It should be understood that each process in flowchart and/or the block diagram can be realized by computer program instructions
And/or the combination of the process and/or box in box and flowchart and/or the block diagram.It can provide these computer programs to refer to
Enable the processor of general purpose computer, special purpose computer, Embedded Processor or other programmable data processing units to generate
One machine so that by the instruction that the processor of computer or other programmable data processing units executes generate for realizing
The device for the function of being specified in one or more flows of the flowchart and/or one or more blocks of the block diagram.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing units with spy
Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates,
Enable the manufacture of device, the command device realize in one box of one or more flows of the flowchart and/or block diagram or
The function of being specified in multiple boxes.
These computer program instructions can also be loaded into computer or other programmable data processing units, so that counting
Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer or
The instruction executed on other programmable devices is provided for realizing in one or more flows of the flowchart and/or block diagram one
The step of function of being specified in a box or multiple boxes.
Although preferred embodiments of the present invention have been described, it is created once a person skilled in the art knows basic
Property concept, then additional changes and modifications may be made to these embodiments.So it includes excellent that the following claims are intended to be interpreted as
It selects embodiment and falls into all change and modification of the scope of the invention.
Obviously, various changes and modifications can be made to the invention without departing from essence of the invention by those skilled in the art
Mind and range.In this way, if these modifications and changes of the present invention belongs to the range of the claims in the present invention and its equivalent technologies
Within, then the present invention is also intended to include these modifications and variations.
Claims (15)
1. a kind of IP address management method of service card characterized by comprising
The programmable integrated circuit of service card receives and stores central processing unit that management board is sent, for the service card
The new IP address that CPU is updated IP address;And
Receive the IP more new command that the management board is sent;
It according to the IP more new command, generates and sends IP update and is prompted to the CPU, so that the CPU may be programmed from described
The new IP address is obtained in integrated circuit and carries out the update of IP address.
2. the method according to claim 1, wherein it is described receive and store management board transmission, for described
Before the new IP address that the central processor CPU of service card is updated IP address, the method also includes:
The slot position identification information that the management board is sent is received and stored, so that the CPU powers on the slot position mark that rear basis prestores
Know and is obtained in the corresponding relationship of information and initial ip address and configure initial ip address.
3. method according to claim 1 or 2, which is characterized in that it is described generate and send IP update be prompted to the CPU
Later, the method also includes:
It receives the expression IP address that the CPU is sent and updates the operation completion instruction completed;
According to the operation complete indicate, generate and send IP update message give the management board.
4. according to the method described in claim 3, it is characterized in that, the expression IP address update for receiving the CPU and sending
Before instruction is completed in the operation of completion, the method also includes:
The updated IP address that the CPU is sent is received and stored, is disappeared so that the management board receives the IP and updated
Judge whether the IP address of the CPU configuration is correct according to the updated IP address and the new IP address after breath.
5. a kind of IP address management method of service card characterized by comprising
The central processor CPU of service card receives the IP update instruction that the programmable integrated circuit of service card is sent;
According to the IP update instruction, new IP address is obtained from the programmable integrated circuit;The new IP address is management
Plate is sent to the programmable integrated circuit;
According to the new IP address, the update of IP address is carried out.
6. according to the method described in claim 5, it is characterized in that, what the programmable integrated circuit for receiving service card was sent
Before IP update instruction, the method also includes:
Slot position identification information is obtained from the programmable integrated circuit after powering on;
The slot position identification information pair of acquisition is inquired in the corresponding relationship of the slot position identification information and initial ip address that prestore
The initial ip address answered;And
IP address is configured according to the initial ip address inquired.
7. method according to claim 5 or 6, which is characterized in that it is described according to the new IP address, carry out IP address
After update, the method also includes:
Sending indicates that IP address updates the operation completion completed and is indicated to the programmable integrated circuit.
8. carrying out IP address more the method according to the description of claim 7 is characterized in that described according to the new IP address
After new, the method also includes:
Updated IP address is sent to the programmable integrated circuit storage.
9. a kind of IP address management method of service card characterized by comprising
Management board sends new IP address to the programmable integrated circuit of service card, and the new IP address is in the service card
Central processor CPU is updated IP address;And
IP more new command is sent to the programmable integrated circuit, so that the programmable integrated circuit generates and sends IP update
It is prompted to the CPU.
10. according to the method described in claim 9, it is characterized in that, the new IP address that sends is to the programmable collection of service card
Before circuit, the method also includes:
Slot position identification information is sent to the programmable integrated circuit.
11. method according to claim 9 or 10, which is characterized in that the transmission IP more new command is to described programmable
After integrated circuit, the method also includes:
Receive IP that the programmable integrated circuit is sent update message, the IP update message for indicating the CPU
The update of IP address is completed.
12. according to the method for claim 11, which is characterized in that the IP for receiving the programmable integrated circuit and sending
After update message, the method also includes:
According to IP update message, the new IP address and described is obtained and compared from the programmable integrated circuit
Whether updated IP address is consistent;
The step of transmission new IP address is to programmable integrated circuit is executed if it is not, then returning.
13. a kind of IP address management device of service card characterized by comprising
New IP address receiving module, for receive and store management board transmission, for service card central processor CPU to IP
The new IP address that address is updated;
IP updates command reception module, the IP more new command sent for receiving the management board;
IP updates prompt sending module, for generating and sending IP update and being prompted to the CPU according to the IP more new command,
So that the CPU obtains the new IP address from programmable integrated circuit and carries out the update of IP address.
14. a kind of IP address management device of service card characterized by comprising
IP update instruction receiving module, the IP update instruction that the programmable integrated circuit for receiving service card is sent;
New IP address obtains module, is used for according to the IP update instruction, new IP is obtained from the programmable integrated circuit
Location;The new IP address is that management board is sent to the programmable integrated circuit;
Update module, for carrying out the update of IP address according to the new IP address.
15. a kind of IP address management device of service card characterized by comprising
New IP address sending module, for sending new IP address to the programmable integrated circuit of service card, the new IP address is used
IP address is updated in the central processor CPU of the service card;
IP updates instruction sending module, for sending IP more new command to the programmable integrated circuit, so that described programmable
Integrated circuit generates and sends IP update and is prompted to the CPU.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510961075.0A CN105681072B (en) | 2015-12-18 | 2015-12-18 | A kind of IP address management method and device of service card |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510961075.0A CN105681072B (en) | 2015-12-18 | 2015-12-18 | A kind of IP address management method and device of service card |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105681072A CN105681072A (en) | 2016-06-15 |
CN105681072B true CN105681072B (en) | 2019-07-23 |
Family
ID=56189527
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510961075.0A Active CN105681072B (en) | 2015-12-18 | 2015-12-18 | A kind of IP address management method and device of service card |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105681072B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111628944B (en) * | 2020-05-25 | 2022-03-25 | 深圳市信锐网科技术有限公司 | Switch and switch system |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101001263A (en) * | 2006-01-09 | 2007-07-18 | 中兴通讯股份有限公司 | Method for configuring MAC address at each node in inner exchange network |
CN101150522A (en) * | 2007-11-07 | 2008-03-26 | 杭州华三通信技术有限公司 | A method and voice server for configuring office route on voice server |
CN102468978A (en) * | 2010-11-19 | 2012-05-23 | 中兴通讯股份有限公司 | Service configuration method and device |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR100385996B1 (en) * | 2001-09-05 | 2003-06-02 | 삼성전자주식회사 | Method for allocating a plurality of IP addresses to a NIC(Network Interface Card) and apparatus therefor |
-
2015
- 2015-12-18 CN CN201510961075.0A patent/CN105681072B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101001263A (en) * | 2006-01-09 | 2007-07-18 | 中兴通讯股份有限公司 | Method for configuring MAC address at each node in inner exchange network |
CN101150522A (en) * | 2007-11-07 | 2008-03-26 | 杭州华三通信技术有限公司 | A method and voice server for configuring office route on voice server |
CN102468978A (en) * | 2010-11-19 | 2012-05-23 | 中兴通讯股份有限公司 | Service configuration method and device |
Also Published As
Publication number | Publication date |
---|---|
CN105681072A (en) | 2016-06-15 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104503798A (en) | Method and device for configuring server | |
CN103297985B (en) | Base station collocation method and system | |
CN101584152A (en) | Network communication system | |
CN103984581A (en) | Firmware upgrading method and device of chip | |
CN106411667A (en) | Intelligent home multi-cloud control method and system based on network chip | |
RU2011103446A (en) | NETWORK CONFIGURATION DIAGRAM | |
CN106101299B (en) | Method for assigning address to indoor unit and multi-line system | |
CN103995191B (en) | The recognition methods of air-conditioner type and device | |
CN107404740B (en) | Method for switching network, device and the terminal device of safety | |
CN105259806A (en) | Controller upgrading method and system, master controller and slave controller | |
TW201318308A (en) | Distributed battery management system and method for distributing identifications thereof | |
CN105677420A (en) | Method and device for interface pin configuration | |
WO2020124983A1 (en) | Method, device and apparatus for monitoring site occupancy | |
CN109195178A (en) | signal quality monitoring method and terminal device | |
EP3422655A1 (en) | Method for managing address of meter device, and acquisition terminal and meter device | |
CN104618136A (en) | Configuration management method and device for blade server | |
CN105681072B (en) | A kind of IP address management method and device of service card | |
CN110120877B (en) | Configuration circuit of exchange chip and configuration method of parameters of exchange chip | |
CN103248547B (en) | The method of Modbus RTU slave station fast Acquisition data and slave station | |
CN104331330A (en) | Resource pool generation method and device | |
CN109697117B (en) | Terminal control method, terminal control device and computer-readable storage medium | |
CN104571962B (en) | The implementation method of firmware in a kind of USBKEY equipment of suitable batch production | |
CN108462510A (en) | Fault detection system based on power carrier and method | |
CN105373422A (en) | Method for controlling terminal device to enter downloading mode, terminal device and computer device | |
CN110347683B (en) | Data table merging processing method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CP01 | Change in the name or title of a patent holder |
Address after: Cangshan District of Fuzhou City, Fujian province 350002 Jinshan Road No. 618 Garden State Industrial Park 19 floor Patentee after: RUIJIE NETWORKS Co.,Ltd. Address before: Cangshan District of Fuzhou City, Fujian province 350002 Jinshan Road No. 618 Garden State Industrial Park 19 floor Patentee before: Beijing Star-Net Ruijie Networks Co.,Ltd. |
|
CP01 | Change in the name or title of a patent holder |