WO2018010157A1 - Procédé et dispositif d'attribution automatique d'adresses ip - Google Patents
Procédé et dispositif d'attribution automatique d'adresses ip Download PDFInfo
- Publication number
- WO2018010157A1 WO2018010157A1 PCT/CN2016/090099 CN2016090099W WO2018010157A1 WO 2018010157 A1 WO2018010157 A1 WO 2018010157A1 CN 2016090099 W CN2016090099 W CN 2016090099W WO 2018010157 A1 WO2018010157 A1 WO 2018010157A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- address
- information
- module
- atca
- interface
- Prior art date
Links
- 238000000034 method Methods 0.000 title claims abstract description 38
- JEOQACOXAOEPLX-WCCKRBBISA-N (2s)-2-amino-5-(diaminomethylideneamino)pentanoic acid;1,3-thiazolidine-4-carboxylic acid Chemical compound OC(=O)C1CSCN1.OC(=O)[C@@H](N)CCCN=C(N)N JEOQACOXAOEPLX-WCCKRBBISA-N 0.000 claims abstract description 200
- 238000003780 insertion Methods 0.000 claims description 5
- 230000037431 insertion Effects 0.000 claims description 5
- 238000010586 diagram Methods 0.000 description 8
- 235000019800 disodium phosphate Nutrition 0.000 description 7
- 230000008859 change Effects 0.000 description 2
- 238000004891 communication Methods 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 230000008569 process Effects 0.000 description 1
- 230000009466 transformation Effects 0.000 description 1
- 238000000844 transformation Methods 0.000 description 1
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/5007—Internet protocol [IP] addresses
-
- 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
-
- 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/5046—Resolving address allocation conflicts; Testing of addresses
Definitions
- the present invention relates to the field of communications technologies, and in particular, to a method and an apparatus for automatically allocating an IP address.
- ATCA Advanced Telecom Computing
- the Architecture, Advanced Telecom Computing Platform system is designed for specific application industries and high-density computer environments.
- the basic structure of the ATCA device includes multiple chassis, and multiple boards are inserted in each chassis.
- Each card may have multiple functional modules such as CPU, DSP or FPGA.
- CPU central processing unit
- DSP digital signal processor
- FPGA field-programmable gate array
- IP addresses are generally assigned to individual functional modules of an ATCA device by hand. In this mode, the workload of the ATCA device is large.
- the IP interfaces of the various function modules in the ATCA device are numerous, which may cause IP address mismatches, resulting in overlapping and conflicting IP addresses, thus affecting the normal operation of the device.
- the present invention provides a method and an apparatus for automatically allocating an IP address, and aims to solve the technical problem of IP address conflict caused by an IP allocation error when manually assigning an IP address to each functional module of an ATCA device.
- the present invention provides an automatic IP address allocation method for an advanced telecommunications computing platform ATCA device.
- the automatic IP address allocation method includes the following steps:
- the ATCA device When the ATCA device is initialized, acquiring the first card slot information of the ATCA board in the ATCA device, the first module information of the function module of the ATCA board to be configured with the IP address, and the network interface in the function module An interface information;
- the generated first IP address is configured to an IP address configuration table of a corresponding network interface.
- the present invention further provides an automatic IP address allocation device, which is applied to an advanced telecommunication computing platform ATCA device, and the IP address automatic distribution device includes:
- a first acquiring module configured to acquire, when the ATCA device is initialized, the first card slot information of the ATCA card in the ATCA device, the first module information of the function module of the ATCA card to be configured with an IP address, and the function First interface information of the network interface in the module;
- a first generation module configured to generate a first IP address of each of the network interfaces based on the acquired first card slot information, first module information, and first interface information;
- the first configuration module is configured to configure the generated first IP address to an IP address configuration table of the corresponding network interface.
- the invention acquires the first card slot information of the ATCA board in the ATCA device, the first module information of the function module of the ATCA board to be configured with the IP address, and the network in the function module when the ATCA device is initialized. And generating, by the first interface information of the interface, the first IP address of each of the network interfaces, and the first IP address to be generated, based on the acquired first card slot information, the first module information, and the first interface information.
- the IP address configuration table of the corresponding network interface is configured to automatically allocate the IP address of each network interface in the ATCA device, because the first card slot information, the first module information, and the first interface information corresponding to each network interface Uniquely, the first IP address corresponding to the network interface generated by the physical location information such as the first card slot information, the first module information, and the first interface information corresponding to the network interface is unique, so that IP address overlap and conflict can be avoided.
- the problem is that the workload of manually configuring the IP address is greatly reduced, and the efficiency of assigning an IP address to each network interface in the ATCA device is improved.
- FIG. 1 is a schematic flowchart of a first embodiment of an automatic IP address allocation method according to the present invention
- FIG. 2 is a schematic flowchart of a step of generating an IP address of each of the network interfaces in a second embodiment of the method for automatically assigning an IP address according to the present invention
- FIG. 3 is a schematic flowchart of a step of generating an IP address of each of the network interfaces in a third embodiment of the method for automatically assigning an IP address according to the present invention
- FIG. 4 is a schematic flowchart of a fourth embodiment of an automatic IP address allocation method according to the present invention.
- FIG. 5 is a schematic flowchart diagram of a fifth embodiment of an automatic IP address allocation method according to the present invention.
- FIG. 6 is a schematic diagram of functional modules of a first embodiment of an automatic IP address distribution apparatus according to the present invention.
- FIG. 7 is a schematic diagram of a refinement function module of a first generation module in a second embodiment of an automatic IP address distribution apparatus according to the present invention.
- FIG. 8 is a schematic diagram of a refinement function module of a first generation module in a third embodiment of an automatic IP address distribution apparatus according to the present invention.
- FIG. 9 is a schematic diagram of functional modules of a fourth embodiment of an automatic IP address allocation apparatus according to the present invention.
- FIG. 10 is a schematic diagram of functional modules of a fifth embodiment of an automatic IP address distribution apparatus according to the present invention.
- the invention provides an automatic IP address allocation method.
- FIG. 1 is a schematic flowchart diagram of a first embodiment of an automatic IP address allocation method according to the present invention.
- the automatic IP address allocation method is applied to an advanced telecommunications computing platform ATCA device, and the automatic IP address allocation method includes:
- step S10 when the ATCA device is initialized, the first card slot information of the ATCA board in the ATCA device, the first module information of the function module of the ATCA board to be configured with the IP address, and the network in the function module are acquired.
- the first interface information of the interface
- the IP address automatic allocation device corresponding to the automatic IP address allocation method in this embodiment may be run on the ATCA chassis management module or on the ATCA core switch management control module.
- the ATCA board is installed in or inserted into the card slot of the ATCA device.
- the first card slot information is the slot number of the ATCA device corresponding to each ATCA board; the ATCA board is installed with one or more CPUs and DSPs. , FPGA and other functional modules with IP network interface, the first module information is the number of each functional module such as CPU, DSP, FPGA in each ATCA board, that is, the first module information is the function module number; the same ATCA board
- the CPU, DSP or FPGA function module is provided with one or more IP network interfaces, and the first interface information is the network interface number of the IP network interface in each CPU, DSP or FPGA function module.
- the first card slot information, the first module information, and the first interface information may be set after the ATCA board is inserted into the card slot of the ATCA device, or the default value is adopted according to the corresponding sequence, for example, the ATCA device
- the card slot number of a card slot is 1.
- the first card slot information corresponding to the ATCA board is 1, and the slot number of the second card slot is 2, in the card slot.
- the first card slot information corresponding to the ATCA board is 2, and the remaining card slots are analogously;
- the function modules in the ATCA board can be used according to the function module from top to bottom, bottom to top, and The numbers are sequentially numbered from left to right or from right to left.
- each function module can also be numbered sequentially from top to bottom, bottom to top, left to right or right to left, so that each The first card slot information, the first module information, and the first interface information corresponding to an IP network interface are different from the first card slot information, the first module information, and the first interface information corresponding to each of the other IP network interfaces.
- the first card slot information is different, the first Different information or different from the first module interface information.
- Step S20 Generate a first IP address of each network interface based on the obtained first card slot information, first module information, and first interface information.
- the binary number corresponding to the slot number corresponding to the first card slot information may be used as the third 8-bit binary number in the first IP address of the network interface, and the binary corresponding to the function module number corresponding to the first module information
- the number is the first 4 digits of the fourth 8-bit binary number in the first IP address of the network interface, and the binary number corresponding to the network interface number corresponding to the first interface information is used as the fourth 8-bit of the first IP address of the network interface.
- the last 4 digits of the binary number, the first 8-bit binary number and the second 8-bit binary number in the first IP address of the network interface may adopt a default value or a preset value.
- the binary number corresponding to the slot number corresponding to the first card slot information may be used as the third 8-bit binary number in the first IP address of the network interface, and the function module corresponding to the first module information is used.
- the binary number corresponding to the number is the last 4 digits of the fourth 8-bit binary number in the first IP address of the network interface, and the binary number corresponding to the network interface number corresponding to the first interface information is used as the first IP address in the network interface.
- the first 4 bits of the four-segment 8-bit binary number; or, the binary number corresponding to the card slot number corresponding to the first card slot information is used as the fourth 8-bit binary number in the first IP address of the network interface, and the first module information is used.
- the binary number corresponding to the corresponding function module number is used as the first 4 digits of the third 8-bit binary number in the first IP address of the network interface, and the binary number corresponding to the network interface number corresponding to the first interface information is used as the first network interface.
- the last 8 bits of the third 8-bit binary number in the IP address; or, the binary number corresponding to the slot number corresponding to the first card slot information is used as the fourth 8-bit binary number in the first IP address of the network interface.
- the binary number corresponding to the function module number corresponding to the first module information is used as the third digit of the third 8-bit binary number in the first IP address of the network interface, and the binary number corresponding to the network interface number corresponding to the first interface information The first 4 bits of the third 8-bit binary number in the first IP address of the network interface.
- the IP address generation policy is based on the network interface number corresponding to the IP network interface, the function module number, and the board number of the ATCA board to generate a first IP address corresponding to the network interface, that is, according to the physical location corresponding to the IP network interface, the network is allocated.
- the uniqueness of the physical address number such as the interface number, the function module number, and the board number of the ATCA board ensures the uniqueness of the first IP address of the network interface, thus avoiding IP address overlap and collision problems.
- Step S30 the generated first IP address is configured to an IP address configuration table of the corresponding network interface.
- the automatic allocation of the first IP address of the network interface is implemented by configuring the generated first IP address to the IP address configuration table of the corresponding network interface.
- the first card slot information of the ATCA board in the ATCA device, the first module information of the function module of the ATCA board to be configured with the IP address, and the function module are obtained.
- the IP address is configured to the IP address configuration table of the corresponding network interface, and the IP address of each network interface in the ATCA device is automatically allocated.
- the first card slot information, the first module information, and the first interface corresponding to each network interface are implemented.
- the uniqueness of the information makes the first IP address corresponding to the network interface generated by the physical location information such as the first card slot information, the first module information, and the first interface information corresponding to the network interface unique, so that IP address overlap can be avoided.
- the conflict problem greatly reduces the workload of manually configuring IP addresses and improves the efficiency of assigning IP addresses to various network interfaces in the ATCA device.
- the IP address includes a first 8-bit binary number and a second 8-bit binary number.
- the third segment 8-bit binary number and the fourth segment 8-bit binary number, step S20 includes:
- Step S21 Generate a first 8-bit binary number and a second 8-bit binary number in the first IP address of each of the network interfaces based on the preset network number.
- the first 8-bit binary number and the second 8-bit binary number of the first IP address are generated by using a preset network number.
- the preset network number includes two network number fields, which may be applied according to actual applications.
- the environment requires flexible configuration.
- a network number is configured for the internal network, and a network number is configured for use by the external network. That is, the function module corresponding to the first IP address configured with the network number can be connected to the external network through the IP address.
- the ATCA device only configures an external network IP address, and the IP addresses of other network interfaces are internal IP addresses, which implement data interaction between various functional modules within the device.
- Step S22 generating a third 8-bit binary number of the first IP address of each of the network interfaces based on the first card slot information
- the binary number corresponding to the card slot number corresponding to the first card slot information is used as the third segment 8-bit binary number in the first IP address of the network interface.
- Step S23 generating, according to the first module information, the first four bits of the fourth 8-bit binary number in the first IP address of each of the network interfaces, and generating the first of each of the network interfaces based on the first interface information.
- the binary number corresponding to the function module number corresponding to the first module information is used as the first 4 bits of the fourth 8-bit binary number in the first IP address of the network interface, and the network interface number corresponding to the first interface information is corresponding.
- the binary number is the last 4 bits of the fourth 8-bit binary number in the first IP address of the network interface.
- the first 8-bit binary number and the second 8-bit binary number in the first IP address of each of the network interfaces are generated based on the preset network number, and then generated based on the first card slot information.
- a third 8-bit binary number of the first IP address of each of the network interfaces and then generating, according to the first module information, the first 4 bits of the fourth 8-bit binary number of the first IP address of each of the network interfaces, And generating, according to the first interface information, four bits of the fourth 8-bit binary number of the first IP address of each of the network interfaces, and implementing the preset network number, the first card slot information, the first module information, and
- the first interface information generates a first IP address of each of the network interfaces, further improving the efficiency of assigning an IP address to each network interface in the ATCA device.
- step S20 includes:
- Step S24 Obtain device information of the ATCA device, and generate a network number based on the device information.
- the device information of the ATCA device is the device number of the ATCA device, and the device number can be directly used as the network number, or the number of the preset location in the device number is used as the network number.
- Step S25 Generate a first IP address of each of the network interfaces based on the network number, the first card slot information, the first module information, and the first interface information.
- the ATCA device by acquiring the device information of the ATCA device, generating a network number based on the device information, and then generating each based on the network number, the first card slot information, the first module information, and the first interface information.
- the first IP address of the network interface is configured to generate a first IP address of each network interface according to the device information, the first card slot information, the first module information, and the first interface information, further ensuring the generated first The uniqueness of the IP address, thereby avoiding IP address overlap and conflict, further improving the efficiency of assigning IP addresses to various network interfaces in the ATCA device.
- a fourth embodiment of the method for automatically assigning an IP address of the present invention is provided based on the first embodiment.
- the method for automatically allocating the IP address further includes:
- step S40 when the ATCA board is inserted into the ATCA device, the second card slot information of the inserted ATCA board and the second module information of the function module of the ATCA board to be configured with an IP address are obtained. And second interface information of the network interface in the function module;
- detecting that the ATCA board is inserted into the ATCA device includes inserting a new ATCA board in the ATCA device, inserting a new card slot in the ATCA device, inserting a new card slot, or inserting into a new card slot. If the ATCA board is replaced with a new ATCA board, the ATCA board of one slot in the ATCA equipment is removed, and a new ATCA board is inserted in the slot. The ATCA board needs to be changed after the change. The ATCA board assigns an IP address, so the second card slot information of the inserted ATCA board, the second module information of the function module of the ATCA board to be configured with an IP address, and the function module are obtained.
- the second interface information of the network interface where the second card slot information is the slot number of the ATCA device corresponding to the inserted ATCA board; the second module information is the CPU, DSP, FPGA, etc. in the inserted ATCA board.
- the number of the function module that is, the second module information is the function module number; the second interface information is the network interface number of the IP network interface in each CPU, DSP or FPGA function module of the inserted ATCA board.
- Step S50 Generate a second IP address of each of the inserted network interfaces in the ATCA board based on the second card slot information, the second module information, and the second interface information.
- the binary number corresponding to the slot number corresponding to the second card slot information may be used as the third 8-bit binary number in the second IP address of the network interface, and the binary corresponding to the function module number corresponding to the second module information
- the number is the first 4 digits of the fourth 8-bit binary number in the second IP address of the network interface, and the binary number corresponding to the network interface number corresponding to the second interface information is used as the fourth 8-bit of the second IP address of the network interface.
- the last 4 digits of the binary number, the first 8-bit binary number and the second 8-bit binary number in the second IP address of the network interface may adopt a default value or a preset value.
- the binary number corresponding to the slot number corresponding to the second card slot information may be used as the third 8-bit binary number in the second IP address of the network interface, and the function module corresponding to the second module information is used.
- the binary number corresponding to the number is used as the fourth digit of the fourth 8-bit binary number in the second IP address of the network interface, and the binary number corresponding to the network interface number corresponding to the second interface information is used as the second IP address of the network interface.
- the first 4 bits of the four-segment 8-bit binary number; or, the binary number corresponding to the card slot number corresponding to the second card slot information is used as the fourth 8-bit binary number in the second IP address of the network interface
- the second module information is The binary number corresponding to the corresponding function module number is used as the first 4 digits of the third 8-bit binary number in the second IP address of the network interface, and the binary number corresponding to the network interface number corresponding to the second interface information is used as the second network interface.
- the last 8 bits of the third 8-bit binary number in the IP address; or, the binary number corresponding to the slot number corresponding to the second card slot information is used as the fourth 8-bit binary number in the second IP address of the network interface.
- the binary number corresponding to the function module number corresponding to the second module information is used as the third digit of the third 8-bit binary number in the second IP address of the network interface, and the binary number corresponding to the network interface number corresponding to the second interface information The first 4 bits of the third 8-bit binary number in the second IP address of the network interface.
- Step S60 The generated second IP address is configured to an IP address configuration table of each network interface in the corresponding inserted ATCA board.
- the second card slot information of the inserted ATCA board and the function module of the ATCA board to be configured with an IP address are obtained. And generating, by the second module information, the second interface information of the network interface in the function module, and then generating, according to the second card slot information, the second module information, and the second interface information, each of the network in the inserted ATCA card a second IP address of the interface, and then the generated second IP address is configured to an IP address configuration table of each network interface in the corresponding inserted ATCA board; and the ATCA board inserted in the ATCA device is implemented.
- the automatic allocation of the IP addresses of the network interfaces, the uniqueness of the second card slot information, the second module information, and the second interface information corresponding to each network interface, and the second card slot information, the second module information, and the The combination of the two interface information is different from the combination of the first card slot information, the first module information, and the first interface information, so that the second card slot information, the second module information, and the second corresponding to the network interface are Port information and other physical position information to generate a second IP address corresponding to the network interface is unique, it is possible to avoid overlapping IP addresses, conflict, to further improve the IP address assigned to each network interface ATCA equipment efficiency.
- the fifth embodiment of the method for automatically assigning an IP address of the present invention is provided based on the first embodiment.
- the method for automatically allocating the IP address further includes:
- Step S70 When detecting the ATCA board insertion function module of the ATCA device, acquiring the third card slot information of the inserted ATCA board of the function module, the third module information of the function module, and the function Third interface information of the network interface in the module;
- the ATCA board insertion function module of the ATCA device is detected, and the new function module is inserted into the ATCA board of the ATCA device, or the function module in the ATCA board of the ATCA device is replaced with a new function module, because the ATCA board
- the function module of the card needs to be assigned an IP address to the newly inserted function module after the change, so that the third card slot information of the inserted ATCA board of the function module and the third module of the function module are obtained.
- Information and third interface information of the network interface in the function module wherein the third card slot information is a card slot number of the inserted ATCA board of the function module; the third module information is a number of the function module
- the first interface information is the network interface number of the IP network interface in the inserted function module.
- Step S80 generating a third IP address of the network interface in each of the inserted functional modules based on the third card slot information, the third module information, and the third interface information;
- the binary number corresponding to the slot number corresponding to the third card slot information may be used as the third 8-bit binary number in the third IP address of the network interface, and the binary corresponding to the function module number corresponding to the third module information.
- the number is the first 4 digits of the fourth 8-bit binary number in the third IP address of the network interface, and the binary number corresponding to the network interface number corresponding to the third interface information is used as the fourth 8-bit of the third IP address of the network interface.
- the last 4 digits of the binary number, the first 8-bit binary number and the third 8-bit binary number in the third IP address of the network interface may adopt a default value or a preset value.
- the binary number corresponding to the slot number corresponding to the third card slot information may be used as the third 8-bit binary number in the third IP address of the network interface, and the function module corresponding to the third module information is used.
- the binary number corresponding to the number is used as the fourth digit of the fourth 8-bit binary number in the third IP address of the network interface, and the binary number corresponding to the network interface number corresponding to the third interface information is used as the third IP address of the network interface.
- the first 4 bits of the 4-segment 8-bit binary number; or, the binary number corresponding to the card slot number corresponding to the third card slot information is used as the fourth 8-bit binary number in the third IP address of the network interface
- the third module information is The binary number corresponding to the corresponding function module number is used as the first 4 digits of the third 8-bit binary number in the third IP address of the network interface, and the binary number corresponding to the network interface number corresponding to the third interface information is used as the third interface of the network interface.
- the last 8 bits of the third 8-bit binary number in the IP address; or, the binary number corresponding to the slot number corresponding to the third card slot information is used as the fourth 8-bit binary number in the third IP address of the network interface.
- the binary number corresponding to the function module number corresponding to the third module information is used as the third digit of the third 8-bit binary number in the third IP address of the network interface, and the binary number corresponding to the network interface number corresponding to the third interface information The first 4 bits of the third 8-bit binary number in the third IP address of the network interface.
- Step S90 The generated third IP address is configured to an IP address configuration table of a network interface of the corresponding inserted functional module.
- the function module when the function module is inserted into the ATCA board of the ATCA device, the third card slot information of the inserted ATCA board of the function module, the third module information of the function module, and a third interface information of the network interface in the function module, and then generating, according to the third card slot information, the third module information, and the third interface information, a third IP address of the network interface in each of the inserted function modules, And then the generated third IP address is configured to the IP address configuration table of the network interface of the corresponding inserted functional module; and the IP address of the network interface of the function module inserted in the ATCA board of the ATCA device is automatically implemented.
- the combination of the slot information, the second module information, and the second interface information, and the combination of the first card slot information, the first module information, and the first interface information are different, so that the network is different.
- the third IP address corresponding to the physical location information generation network interface, such as the third card slot information, the third module information, and the third interface information, is unique, so that IP address overlap and conflict problems can be avoided, and the problem is further improved. The efficiency of assigning IP addresses to individual network interfaces in an ATCA device.
- FIG. 6 is a schematic diagram of functional modules of a first embodiment of an automatic IP address distribution apparatus according to the present invention.
- the IP address automatic distribution device is applied to an advanced telecommunication computing platform ATCA device, and the IP address automatic distribution device includes:
- the first obtaining module 10 is configured to acquire, when the ATCA device is initialized, the first card slot information of the ATCA board in the ATCA device, the first module information of the function module of the ATCA board to be configured with the IP address, and the First interface information of the network interface in the function module;
- the first generation module 20 is configured to generate a first IP address of each of the network interfaces based on the acquired first card slot information, the first module information, and the first interface information;
- the first configuration module 30 is configured to configure the generated first IP address to an IP address configuration table of a corresponding network interface.
- the first acquiring module 10 acquires the first card slot information of the ATCA board in the ATCA device, and the first module information of the function module of the ATCA board to be configured with the IP address. And the first interface information of the network interface in the function module, and then the first generation module 20 generates the first of each of the network interfaces based on the acquired first card slot information, the first module information, and the first interface information.
- An IP address, and then the first configuration module 30 configures the generated first IP address to an IP address configuration table of the corresponding network interface, thereby realizing automatic allocation of IP addresses of each network interface in the ATCA device, because each network interface
- the uniqueness of the first card slot information, the first module information, and the first interface information is such that the physical interface information corresponding to the first card slot information, the first module information, and the first interface information corresponding to the network interface is generated.
- the first IP address is unique, so it can avoid overlapping IP addresses and conflicts, greatly reducing the workload of manually configuring IP addresses and improving The efficiency of allocating an IP address for each network interface ATCA equipment.
- the IP address includes a first 8-bit binary number and a second 8-bit binary number.
- the third segment 8-bit binary number and the fourth segment 8-bit binary number, the first generation module 20 includes:
- the first generating unit 21 is configured to generate, according to the preset network number, a first segment 8-bit binary number and a second segment 8-bit binary number in the first IP address of each of the network interfaces;
- a second generating unit 22 configured to generate a third 8-bit binary number of the first IP address of each of the network interfaces based on the first card slot information
- a third generating unit 23 configured to generate, according to the first module information, the first four bits of the fourth 8-bit binary number in the first IP address of each of the network interfaces, and generate each of the foregoing according to the first interface information The fourth bit of the fourth 8-bit binary number in the first IP address of the network interface.
- the first segment 8-bit binary number and the second segment 8-bit binary number in the first IP address of each of the network interfaces are generated by the first generating unit 21 based on the preset network number, and then the second generating unit 22 generating a third segment 8-bit binary number of the first IP address of each of the network interfaces based on the first card slot information, and then generating, by the third generating unit 23, each of the network interfaces based on the first module information
- the first generation module 20 includes:
- the obtaining unit 24 is configured to acquire device information of the ATCA device, and generate a network number based on the device information.
- the fourth generating unit 25 is configured to generate a first IP address of each of the network interfaces based on the network number, the first card slot information, the first module information, and the first interface information.
- the device information of the ATCA device is obtained by the acquiring unit 24, and the network number is generated based on the device information, and then the fourth generating unit 25 is based on the network number, the first card slot information, and the first module.
- the information and the first interface information are used to generate a first IP address of each of the network interfaces, and the first IP address of each of the network interfaces is generated according to the device information, the first card slot information, the first module information, and the first interface information. Further, the uniqueness of the generated first IP address is further ensured, thereby avoiding IP address overlap and conflict, and further improving the efficiency of allocating IP addresses for each network interface in the ATCA device.
- the automatic IP address distribution apparatus further includes:
- the second obtaining module 40 is configured to acquire, when the ATCA board is inserted in the ATCA device, the second card slot information of the inserted ATCA board, and the function module of the ATCA board to be configured with an IP address.
- a second generating module 50 configured to generate, according to the second card slot information, the second module information, and the second interface information, a second IP address of each of the inserted network interfaces in the ATCA card;
- the second configuration module 60 is configured to configure the generated second IP address to an IP address configuration table of each network interface in the corresponding inserted ATCA board.
- the second obtaining module 40 acquires the second card slot information of the inserted ATCA board, and the IP address to be configured in the ATCA board.
- the second module information of the function module and the second interface information of the network interface in the function module, and then the second generation module 50 generates the inserted based on the second card slot information, the second module information, and the second interface information.
- the configuration table is configured to implement automatic allocation of IP addresses of the network interfaces in the ATCA board inserted in the ATCA device, because the second card slot information, the second module information, and the second interface information corresponding to each network interface are unique. And the combination of the second card slot information, the second module information, and the second interface information is different from the combination of the first card slot information, the first module information, and the first interface information, so that the network is connected through the network.
- the second IP address corresponding to the physical location information generation network interface is unique, so that IP address overlap and conflict problems can be avoided, and the ATCA is further improved.
- the efficiency of assigning IP addresses to each network interface in the device is unique, so that IP address overlap and conflict problems can be avoided, and the ATCA is further improved.
- the automatic IP address distribution apparatus further includes:
- the third obtaining module 70 is configured to: when detecting the ATCA board insertion function module of the ATCA device, acquire the third card slot information of the inserted ATCA board of the function module, and the third module of the function module Information and third interface information of the network interface in the function module;
- the third generation module 80 is configured to generate, according to the third card slot information, the third module information, and the third interface information, a third IP address of each of the inserted function modules in the function module;
- the third configuration module 90 is configured to configure the generated third IP address to an IP address configuration table of a network interface of the corresponding inserted function module.
- the third acquiring module 70 acquires the third card slot information of the inserted ATCA board of the function module, and the function module.
- the third module information and the third interface information of the network interface in the function module, and then the third generation module 80 generates the function of each insertion based on the third card slot information, the third module information, and the third interface information.
- a third IP address of the network interface in the module, and then the third configuration module 90 configures the generated third IP address to the IP address configuration table of the network interface of the corresponding inserted functional module; the ATCA of the ATCA device is implemented.
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Small-Scale Networks (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
L'invention concerne un procédé d'attribution automatique d'adresses IP, consistant : à obtenir, lorsqu'un dispositif ATCA est démarré, de premières informations de fente de carte de cartes ATCA dans le dispositif ATCA, de premières informations de module de modules fonctionnels ayant des adresses IP devant être configurées dans les cartes ATCA et de premières informations d'interface d'interfaces de réseau dans les modules fonctionnels ; à produire de premières adresses IP des interfaces de réseau en fonction des premières informations de fente de carte obtenues, de premières informations de module et de premières informations d'interface ; et à configurer les premières adresses IP produites en une table de configuration d'adresses IP des interfaces de réseau correspondantes. L'invention concerne également un appareil d'attribution automatique d'adresses IP. La présente invention met en œuvre une attribution automatique d'adresses IP d'interfaces de réseau dans un dispositif ATCA, et peut éviter les problèmes de chevauchements et de conflits d'adresses IP, en réduisant ainsi considérablement la charge de travail de configuration manuelle d'adresses IP, et en améliorant l'efficacité d'attribution des adresses IP aux interfaces de réseau dans le dispositif ATCA.
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610553916.9 | 2016-07-13 | ||
CN201610553916.9A CN106210169A (zh) | 2016-07-13 | 2016-07-13 | Ip地址自动分配方法及装置 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2018010157A1 true WO2018010157A1 (fr) | 2018-01-18 |
Family
ID=57475115
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2016/090099 WO2018010157A1 (fr) | 2016-07-13 | 2016-07-15 | Procédé et dispositif d'attribution automatique d'adresses ip |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN106210169A (fr) |
WO (1) | WO2018010157A1 (fr) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN117499371A (zh) * | 2023-10-27 | 2024-02-02 | 众信方智(苏州)智能技术有限公司 | 一种根据插槽位置自动分配板卡id的方法及系统 |
CN118672377A (zh) * | 2024-08-20 | 2024-09-20 | 西安麦格米特电气有限公司 | 电源系统的管理方法、电源系统及计算机可读存储介质 |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112380082A (zh) * | 2020-12-07 | 2021-02-19 | 深圳市城市交通规划设计研究中心股份有限公司 | 一种基于网联测试服务节点的板卡兼容性管理系统及方法 |
CN115955465A (zh) * | 2023-03-14 | 2023-04-11 | 苏州清研精准汽车科技有限公司 | 一种自动写入通讯地址的方法及级联设备 |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20070127365A1 (en) * | 2005-12-07 | 2007-06-07 | Yong Tae | Method for implementing redundant structure of ATCA (advanced telecom computing architecture) system via base interface and the ATCA system for use in the same |
CN102273178A (zh) * | 2011-05-20 | 2011-12-07 | 华为技术有限公司 | 设置业务单板地址的方法、平台装置和系统 |
CN103442095A (zh) * | 2013-08-16 | 2013-12-11 | 京信通信系统(中国)有限公司 | 单板上子卡地址的获取方法和系统 |
CN105119739A (zh) * | 2015-07-20 | 2015-12-02 | 山东超越数控电子有限公司 | 一种基于多刀片服务器的自动网络配置方法 |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101707636B (zh) * | 2009-11-20 | 2013-10-16 | 中兴通讯股份有限公司 | 用于基站bbu单板的ip地址分配方法及装置 |
US9306901B2 (en) * | 2011-09-26 | 2016-04-05 | Mitsubishi Electric Corporation | IP address distribution system and IP address distribution method |
CN104917635A (zh) * | 2015-05-26 | 2015-09-16 | 浪潮电子信息产业股份有限公司 | 一种数据中心资源ip地址与对应物理位置统计方法 |
-
2016
- 2016-07-13 CN CN201610553916.9A patent/CN106210169A/zh active Pending
- 2016-07-15 WO PCT/CN2016/090099 patent/WO2018010157A1/fr active Application Filing
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20070127365A1 (en) * | 2005-12-07 | 2007-06-07 | Yong Tae | Method for implementing redundant structure of ATCA (advanced telecom computing architecture) system via base interface and the ATCA system for use in the same |
CN102273178A (zh) * | 2011-05-20 | 2011-12-07 | 华为技术有限公司 | 设置业务单板地址的方法、平台装置和系统 |
CN103442095A (zh) * | 2013-08-16 | 2013-12-11 | 京信通信系统(中国)有限公司 | 单板上子卡地址的获取方法和系统 |
CN105119739A (zh) * | 2015-07-20 | 2015-12-02 | 山东超越数控电子有限公司 | 一种基于多刀片服务器的自动网络配置方法 |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN117499371A (zh) * | 2023-10-27 | 2024-02-02 | 众信方智(苏州)智能技术有限公司 | 一种根据插槽位置自动分配板卡id的方法及系统 |
CN118672377A (zh) * | 2024-08-20 | 2024-09-20 | 西安麦格米特电气有限公司 | 电源系统的管理方法、电源系统及计算机可读存储介质 |
Also Published As
Publication number | Publication date |
---|---|
CN106210169A (zh) | 2016-12-07 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2018010157A1 (fr) | Procédé et dispositif d'attribution automatique d'adresses ip | |
WO2019148623A1 (fr) | Procédé capable d'attribuer automatiquement un code d'adresse de communication de dispositif, disjoncteur et support de stockage | |
WO2013189193A1 (fr) | Procédé et système pour configurer automatiquement des paramètres d'un terminal mobile ayant un système androïde | |
WO2015016627A1 (fr) | Procédé et dispositif permettant de connecter un seul dispositif ap parmi de multiples dispositifs ap dans le même réseau sur un terminal | |
WO2017171519A1 (fr) | Procédé et appareil d'émission d'un canal de commande et d'un canal de données dans une communication v2x | |
WO2014032262A1 (fr) | Procédé et système d'implémentation pour migration d'application entre des plateformes | |
WO2015157942A1 (fr) | Dispositif et procédé d'accès à un réseau sans fil | |
WO2015020471A1 (fr) | Procédé et appareil de distribution de données dans un environnement en nuage hybride | |
WO2015135443A1 (fr) | Procédé et appareil pour simuler un son dans un scénario virtuel, et terminal | |
WO2020224247A1 (fr) | Procédé, appareil et dispositif de provenance de données basés sur la chaine de blocs, et support d'informations lisible | |
WO2019205272A1 (fr) | Procédé, dispositif et équipement de fourniture de service de machine virtuelle, et support d'informations lisible par ordinateur | |
WO2016080595A1 (fr) | Procédé pour fournir un service à numéros multiples | |
WO2019140802A1 (fr) | Procédé et système d'autorisation de gestion de service sur un terminal bancaire en libre-service, et support d'informations lisible | |
WO2018076840A1 (fr) | Procédé de partage de données, dispositif, support de stockage et serveur | |
WO2017078359A1 (fr) | Appareil électronique, appareil de télécommande, procédé de commande associé et système électronique | |
WO2017067375A1 (fr) | Procédé de configuration d'arrière-plan vidéo et dispositif terminal | |
WO2018201774A1 (fr) | Procédé d'approbation de données, appareil, dispositif et support de stockage pouvant être lu par un ordinateur | |
WO2017036204A1 (fr) | Procédé et dispositif de positionnement de foyer pour une commutation d'application | |
WO2017219636A1 (fr) | Procédé d'échange de données, serveur en nuage et terminal intelligent | |
WO2017206867A1 (fr) | Procédé et appareil d'arrêt de capteurs, support d'informations, et dispositif électronique | |
WO2020206885A1 (fr) | Procédé et appareil de déverrouillage | |
WO2016021810A1 (fr) | Dispositif d'estampillage, et terminal et procédé de fonctionnement associés | |
WO2019132235A1 (fr) | Appareil de mémoire et son procédé de traitement de données | |
WO2019019341A1 (fr) | Procédé de stockage de fichiers, terminal et support de stockage lisible par ordinateur | |
WO2017067282A1 (fr) | Procédé, appareil et terminal d'utilisation d'informations d'empreinte digitale |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 16908483 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 16908483 Country of ref document: EP Kind code of ref document: A1 |