CN109587287B - IP addressing method, system and device for in-satellite equipment - Google Patents

IP addressing method, system and device for in-satellite equipment Download PDF

Info

Publication number
CN109587287B
CN109587287B CN201811631476.XA CN201811631476A CN109587287B CN 109587287 B CN109587287 B CN 109587287B CN 201811631476 A CN201811631476 A CN 201811631476A CN 109587287 B CN109587287 B CN 109587287B
Authority
CN
China
Prior art keywords
subnet
bus
interface board
satellite
intra
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
Application number
CN201811631476.XA
Other languages
Chinese (zh)
Other versions
CN109587287A (en
Inventor
刘锋
黄志峰
秦悦
徐桢
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beihang University
Original Assignee
Beihang University
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beihang University filed Critical Beihang University
Priority to CN201811631476.XA priority Critical patent/CN109587287B/en
Publication of CN109587287A publication Critical patent/CN109587287A/en
Application granted granted Critical
Publication of CN109587287B publication Critical patent/CN109587287B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/50Address allocation
    • H04L61/5007Internet protocol [IP] addresses
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B7/00Radio transmission systems, i.e. using radiation field
    • H04B7/14Relay systems
    • H04B7/15Active relay systems
    • H04B7/185Space-based or airborne stations; Stations for satellite systems
    • H04B7/1851Systems using a satellite or space-based relay

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • Astronomy & Astrophysics (AREA)
  • Aviation & Aerospace Engineering (AREA)
  • General Physics & Mathematics (AREA)
  • Radio Relay Systems (AREA)
  • Small-Scale Networks (AREA)

Abstract

The invention provides an IP addressing method, a system and a device of intra-satellite equipment, which relate to the technical field of addressing, and the method comprises the steps of obtaining the number of interface board blocks of target intra-satellite equipment, the number of bus types on each interface board and the number of bus equipment on each type of bus; dividing each type of bus on each interface board of the target intra-satellite device into a bus IP subnet, aggregating each bus IP subnet on each interface board into an interface board IP subnet, and aggregating each interface board IP subnet into an intra-satellite IP subnet; calculating the total IP address and subnet mask length of each bus IP subnet, each interface board IP subnet and the intra-satellite IP subnet according to the number of the bus devices, the number of the bus types and the number of the interface board blocks; and configuring the IP address of each bus device according to the total number of the IP addresses of the bus IP subnet and the subnet mask length. The IP addressing method of the intra-satellite equipment provided by the embodiment of the invention ensures that each subnet only corresponds to one table entry in the forwarding table, thereby reducing the burden of intra-satellite table lookup.

Description

IP addressing method, system and device for in-satellite equipment
Technical Field
The invention relates to the technical field of addressing, in particular to an intra-satellite equipment IP addressing method, system and device.
Background
A large number of in-satellite devices providing functions such as telemetry, navigation and the like are arranged in the satellite nodes. Usually, the intra-satellite devices communicate in the form of LVDS, 1553b, RS422, RS232, etc. buses, which are mostly distributed on different interface boards. With the development of satellite networking technology, the in-satellite equipment needs to exchange and communicate data with an external network frequently, and the commonly used network port address translation (NAPT) and the one-by-one public network IP address allocation are adopted.
In the network port address translation mode, because of the existence of the NAPT gateway, the local area network address is hidden from the outside, so that when the external network actively initiates a communication request to the internal device, the external network cannot address, resulting in communication failure.
If the addressing mode that the intra-satellite devices distribute the IP addresses of the public network one by one is adopted, each intra-satellite device corresponds to one table entry in the forwarding table on the interface board. Thus, when the number of the intra-satellite devices is large, the size of the forwarding table is also large, which causes heavy burden of intra-satellite table lookup and increased processing delay.
Disclosure of Invention
In view of this, the present invention provides an intra-satellite device IP addressing method, system and device, which can effectively aggregate forwarding table entries, reduce intra-satellite table lookup burden, and implement bidirectional active addressing.
In a first aspect, an embodiment of the present invention provides an intra-satellite device IP addressing method, including: acquiring the number of interface board blocks of target intra-satellite equipment, the number of bus types on each interface board and the number of bus equipment on each type of bus; dividing each type of bus on each interface board of the target intra-satellite device into a bus IP subnet, aggregating each bus IP subnet on each interface board into an interface board IP subnet, and aggregating each interface board IP subnet into an intra-satellite IP subnet; calculating the total IP address and subnet mask length of each bus IP subnet, each interface board IP subnet and the intra-satellite IP subnet according to the number of the bus devices, the number of the bus types and the number of the interface board blocks; and configuring the IP address of each bus device according to the total number of the IP addresses of the bus IP subnet and the subnet mask length.
With reference to the first aspect, an embodiment of the present invention provides a first possible implementation manner of the first aspect, where after the step of configuring the IP address of each bus device according to the total number of the IP addresses of the bus IP subnet and the subnet mask length, the method further includes: and configuring a unique forwarding table for each bus IP subnet, each interface board IP subnet and the intra-satellite IP subnet.
With reference to the first aspect, an embodiment of the present invention provides a second possible implementation manner of the first aspect, where the step of calculating the total IP addresses and the subnet mask lengths of each of the bus IP subnets, each of the interface board IP subnets, and the intra-satellite IP subnets according to the number of the bus devices, the number of the bus types, and the number of the interface board blocks includes: calculating the total IP address number and the subnet mask length of the bus IP subnet according to the number of the bus devices; according to the total IP address number and subnet mask length of each bus IP subnet and the bus type number on the interface board, calculating the total IP address number and subnet mask length of the interface board IP subnet; and calculating the IP address total number and the subnet mask length of the IP subnets in the satellite according to the IP address total number and the subnet mask length of each interface board IP subnet and the interface board block number of the target in-satellite equipment.
With reference to the second possible implementation manner of the first aspect, an embodiment of the present invention provides a third possible implementation manner of the first aspect, where the calculation formula for calculating the total number of IP addresses of the bus IP subnet and the subnet mask length according to the number of the bus devices is as follows: pij=2k,2k-1<Nij+2≤2k,Lij=L0-k,(i=1,2,...,n,j=1,2,...,Ni) In the formula, PijTotal number of IP addresses for the i-th bus IP subnet, NijThe number of bus devices on the i-th bus, LijFor the subnet mask length, L, of the ith bus IP subnet0The address length in the IP network, n is the interface board number of the equipment in the satellite, and k is a natural number.
With reference to the third possible implementation manner of the first aspect, an embodiment of the present invention provides a fourth possible implementation manner of the first aspect, where the above-mentioned calculation formula for calculating the total IP addresses and the subnet mask lengths of the IP subnets of the interface board according to the total IP addresses and the subnet mask lengths of the bus IP subnets and the bus type number on the interface board is as follows: pib=Pi1+Pi2+...+Pij,Pi=2d,2d-1<Pib≤2d,Li=L0D, in which PibThe total number of IP addresses occupied on the ith block of interface board, PiTotal number of IP addresses, L, of IP subnet for ith interface boardiThe length of the subnet mask of the IP subnet of the ith interface board, and d is a natural number.
With reference to the fourth possible implementation manner of the first aspect, an embodiment of the present invention provides a fifth possible implementation manner of the first aspect, where, according to the total IP address number and subnet mask length of each interface board IP subnet and the number of interface board blocks of the target intra-satellite device, a calculation formula for calculating the total IP address number and subnet mask length of the intra-satellite IP subnet is as follows: pu=P1+P2+...+Pn,Ps=2c,2c-1<Pu≤2c,L=L0C, in which PuTotal number of IP addresses, P, occupied for in-satellite devicessThe total number of IP addresses of the IP subnets in the satellite, L the subnet mask length of the IP subnets in the satellite, and c a natural number.
In a second aspect, an embodiment of the present invention further provides an intra-satellite device IP addressing system, including: the parameter acquisition module is used for acquiring the number of interface board blocks of the target intra-satellite device, the number of bus types on each interface board and the number of bus devices on each type of bus; the subnet aggregation module is used for dividing each type of bus on each interface board of the target intra-satellite device into a bus IP subnet, aggregating each bus IP subnet on each interface board into an interface board IP subnet, and aggregating each interface board IP subnet into an intra-satellite IP subnet; the subnet IP address calculation module is used for calculating the total IP addresses and subnet mask lengths of the bus IP subnets, the interface board IP subnets and the intra-satellite IP subnets according to the number of the bus devices, the number of the bus types and the number of the interface board blocks; and the bus equipment IP address configuration module is used for configuring the IP address of each bus equipment according to the total number of the IP addresses of the bus IP subnet and the subnet mask length.
With reference to the second aspect, an embodiment of the present invention further provides a first possible implementation manner of the second aspect, where the system further includes: and the interface board forwarding table configuration module is used for configuring unique forwarding tables for each bus IP subnet, each interface board IP subnet and the intra-satellite IP subnet.
With reference to the second aspect, an embodiment of the present invention further provides a second possible implementation manner of the second aspect, where the subnet IP address calculating module includes: the bus IP subnet IP address calculation unit is used for calculating the total IP address number and the subnet mask length of the bus IP subnet according to the number of the bus devices; the interface board IP subnet IP address calculation unit is used for calculating the total IP address number and the subnet mask length of the interface board IP subnet according to the total IP address number and the subnet mask length of each bus IP subnet and the bus type number on the interface board; and the intra-satellite IP subnet IP address calculating unit is used for calculating the total IP address number and the subnet mask length of the intra-satellite IP subnet according to the total IP address number and the subnet mask length of each interface board IP subnet and the interface board block number of the target intra-satellite equipment.
In a third aspect, an embodiment of the present invention further provides an IP addressing apparatus for an intra-satellite device, where the apparatus includes a processor, a memory, a bus, and a communication interface, where the processor, the communication interface, and the memory are connected through the bus; the memory is used for storing programs; the processor is configured to call the program stored in the memory through the bus, and execute the intra-satellite device IP addressing method provided by the first aspect and one of the possible embodiments.
The embodiment of the invention has the following beneficial effects:
the method comprises the steps of obtaining the number of interface board blocks of target intra-satellite equipment, the number of bus types on each interface board and the number of bus equipment on each bus; dividing each type of bus on each interface board of the target intra-satellite device into a bus IP subnet, aggregating each bus IP subnet on each interface board into an interface board IP subnet, and aggregating each interface board IP subnet into an intra-satellite IP subnet; calculating the total IP address and subnet mask length of each bus IP subnet, each interface board IP subnet and the intra-satellite IP subnet according to the number of the bus devices, the number of the bus types and the number of the interface board blocks; and configuring the IP address of each bus device according to the total number of the IP addresses of the bus IP subnet and the subnet mask length. The IP addressing method of the intra-satellite equipment provided by the embodiment of the invention has the advantages that the IP subnet of each interface board only corresponds to one table entry in the forwarding tables of other interface boards through the IP address aggregation of three layers of the bus, the interface board and the on-satellite router, and the IP subnet of each type of bus on the interface board also corresponds to one table entry in the forwarding table on the interface board, so that the scale of the forwarding tables of the interface board is shortened, the table searching burden is lightened, and the processing time delay is reduced; in addition, the addressing method does not need to configure a conversion gateway and maintain a port address mapping table, thereby supporting bidirectional active communication and realizing bidirectional active addressing.
Additional features and advantages of the disclosure will be set forth in the description which follows, or in part may be learned by the practice of the above-described techniques of the disclosure, or may be learned by practice of the disclosure.
In order to make the aforementioned objects, features and advantages of the present disclosure more comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and other drawings can be obtained by those skilled in the art without creative efforts.
FIG. 1 is a schematic diagram of an in-satellite device distribution;
FIG. 2 is a schematic diagram of an in-satellite device assigning IP addresses one by one;
fig. 3 is a flowchart of an intra-satellite device IP addressing method according to an embodiment of the present invention;
FIG. 4 is a schematic diagram of an IP address assignment based on bus type;
FIG. 5 is another schematic diagram of an in-satellite device distribution;
fig. 6 is a schematic structural diagram of an intra-satellite device IP addressing system according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of an intra-satellite device IP addressing apparatus according to an embodiment of the present invention.
Icon:
61-parameter acquisition module; 62-subnet aggregation module; 63-subnet IP address calculation module; 64-bus device IP address configuration module; 70-a processor; 71-a memory; 72-a bus; 73-a communication interface; 700-in-satellite device IP addressing means.
Detailed Description
To make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings, and it is apparent that the described embodiments are some, but not all embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Generally, the in-satellite devices communicate in the form of LVDS, 1553b, RS422, RS232 and other buses, and most of the buses are distributed on different interface boards, referring to fig. 1, which is a distribution schematic diagram of one of the in-satellite devices, as shown in fig. 1, the in-satellite device includes a plurality of interface boards, each of the interface boards is connected with a plurality of buses, and each of the buses is connected with a plurality of devices.
When the intra-satellite device exchanges data with an external network and communicates with the external network, the common addressing modes include network port address conversion and public network IP address allocation one by one. The problem of communication failure due to the fact that address translation of network port addresses cannot be addressed exists, and for an addressing mode of allocating public network IP addresses one by one, referring to fig. 2, an IP address schematic diagram is allocated to an intra-satellite device one by one.
Based on this, the intra-satellite device IP addressing method, system, and apparatus provided in the embodiments of the present invention can effectively aggregate forwarding entries, reduce intra-satellite lookup burden, and implement bidirectional active addressing.
To facilitate understanding of the embodiment, a detailed description is first given to an intra-satellite device IP addressing method disclosed in the embodiment of the present invention.
The first embodiment is as follows:
as shown in fig. 3, a flowchart of an intra-satellite device IP addressing method provided in an embodiment of the present invention is shown in fig. 3, and the method includes the following steps:
step S102: the method comprises the steps of obtaining the number of interface board blocks of target intra-satellite equipment, the number of bus types on each interface board and the number of bus equipment on each bus type.
Here, the in-satellite device refers to various devices inside the satellite node, the in-satellite device is generally used to provide functional services such as telemetry and navigation, and the in-satellite device often performs communication in the form of LVDS, 1553b, RS422, RS232 and other buses. The target intra-satellite device is an object for addressing an IP address, and here, subnet division needs to be performed on an interface board and a bus on the interface board in the target intra-satellite device, and an IP address needs to be allocated to a bus device on the bus.
In general, a certain in-satellite device has a plurality of interface boards, each of which has a plurality of buses, the types of the buses may be the same or different, and each of the buses is connected with a plurality of bus devices. Here, the number of interface board blocks of the target intra-satellite device, the number of bus types on each interface board, and the number of bus devices on each bus type need to be obtained first.
Step S104: dividing each kind of bus on each interface board of the target intra-satellite device into a bus IP subnet, aggregating each bus IP subnet on each interface board into an interface board IP subnet, and aggregating each interface board IP subnet into an intra-satellite IP subnet.
To determine the network area, each interface of the host and the router is separated, creating several separate network islands, the interface ports connecting the endpoints of these independent networks, called subnets. The subnet mask is used to judge whether any two IP addresses belong to the same subnet, and only computers in the same subnet can communicate directly.
Here, each type of bus on the interface board is divided into a bus IP subnet, the bus IP subnets of all buses on each interface board are collectively aggregated into an interface board IP subnet, and the interface board IP subnets of all interface boards in the intra-satellite device are collectively aggregated into an intra-satellite IP subnet.
Step S104: and calculating the total IP address number and subnet mask length of each bus IP subnet, each interface board IP subnet and the IP subnet in the satellite according to the number of the bus devices, the number of the bus types and the number of the interface board blocks.
After the number of interface board blocks, the number of bus types on each interface board, and the number of bus devices on each bus are obtained, the total IP address and subnet mask length of each bus IP subnet, each interface board IP subnet, and the intra-satellite IP subnet can be calculated according to the number of interface board blocks, the number of bus types, and the number of bus devices.
In one embodiment, the calculation may be performed by:
firstly, the total number of IP addresses and the subnet mask length of the bus IP subnet are calculated according to the number of the bus devices.
Here, assume that there are N interface boards in the target intra-satellite device, and there are N interface boards on each interface boardij(i-1, 2 … N) buses of each type having Nij(i=1,2,...,n,j=1,2,...,Ni) For each bus device, the total number of addresses in the IP subnet required by each type of bus is:
Pij=2k,2k-1<Nij+2≤2k(1)
the subnet mask length is:
Lij=L0-k(i=1,2,...,n,j=1,2,...,Ni) (2)
in the formulae (1) and (2), PijTotal number of IP addresses for the i-th bus IP subnet, NijThe number of bus devices on the i-th bus, LijFor the subnet mask length, L, of the ith bus IP subnet0The address length in the IP network, n is the interface board number of the equipment in the satellite, and k is a natural number.
Secondly, according to the total IP address number and subnet mask length of each bus IP subnet and the bus type number on the interface board, the total IP address number and subnet mask length of the interface board IP subnet are calculated.
Here, the required total number of addresses occupied by the bus on the ith block of interface board is:
Pib=Pi1+Pi2+...+Pij(3)
the IP subnet of the ith interface board needs the following addresses:
Pi=2d,2d-1<Pib≤2d(4)
the subnet mask length is:
Li=L0-d (5)
in the formulae (3), (4) and (5), PibThe total number of IP addresses occupied on the ith block of interface board, PiTotal number of IP addresses, L, of IP subnet for ith interface boardiThe length of the subnet mask of the IP subnet of the ith interface board, and d is a natural number.
And then, according to the total IP address number and subnet mask length of each interface board IP subnet and the interface board block number of the target intra-satellite device, calculating the total IP address number and subnet mask length of the intra-satellite IP subnet.
Here, the total number of addresses actually occupied by the interface board for the intra-satellite subnet is:
Pu=P1+P2+...+Pn(6)
the total number of addresses required to be applied by the intra-satellite subnet is as follows:
Ps=2c,2c-1<Pu≤2c(7)
the subnet mask length is:
L=L0-c (8)
in the formulae (6), (7) and (8), PuTotal number of IP addresses, P, occupied for in-satellite devicessThe total number of IP addresses of the IP subnets in the satellite, L the subnet mask length of the IP subnets in the satellite, and c a natural number.
In this way, the total number of IP addresses of the target intra-satellite device and its subnet mask length are obtained.
Here, the IP subnet and subnet mask configuration of each block interface board is performed according to the above equations (5), (6), (7) and (8). And, the bus IP subnet and subnet mask on each interface board are configured according to the above-mentioned formulas (3) and (4).
Step S108: and configuring the IP address of each bus device according to the total number of the IP addresses of the bus IP subnet and the subnet mask length.
Here, IP address configuration is performed for each device in each type of bus according to the above equations (1) and (2). And carrying out IP address allocation on the intra-satellite equipment according to the addressing mode, wherein the equipment in each bus IP subnet after the address allocation is finished is the same type of bus equipment, so that only one bus protocol conversion module is arranged at the connection position of the subnet and the on-satellite router.
Thus, by the IP addressing method of the in-satellite equipment, IP subnets are divided on each interface board based on the type of the bus equipment, the bus IP subnets on each interface board are aggregated into 1 interface board IP subnet, and the IP subnets of all the interface boards in the satellite are aggregated into 1 in-satellite subnet; by carrying out IP address aggregation on the target intra-satellite equipment according to three layers of a bus, an interface board and an intra-satellite router, route aggregation is carried out, the scale of an on-satellite routing table and an intra-satellite forwarding table is reduced, the table lookup burden is reduced, and the processing delay is reduced.
The IP addressing method of the intra-satellite equipment provided by the embodiment of the invention ensures that the IP subnet of each interface board only corresponds to one table entry in the forwarding tables of other interface boards through the IP address aggregation of three layers of the bus, the interface board and the on-satellite router, and the IP subnet of each type of bus on the interface board also corresponds to one table entry in the forwarding table on the interface board, thereby shortening the scale of the forwarding tables of the interface board, reducing the table searching burden and reducing the processing delay.
In order to enable the data entering and exiting the intra-satellite subnet to be correctly routed to the destination address thereof, in another embodiment, after the step of configuring the IP address of each bus device according to the total number of the IP addresses of the bus IP subnet and the subnet mask length, the method further includes: and configuring a unique forwarding table for each bus IP subnet, each interface board IP subnet and the intra-satellite IP subnet.
Here, forwarding tables are configured for the intra-satellite devices that address the subnets based on bus type partitioning. Because the in-satellite device announces as the whole subnet to the outside, the in-satellite subnet only corresponds to one table entry in the on-satellite routing table, therefore, a forwarding table needs to be configured for each interface board in the satellite according to the connection distribution of the on-satellite interface boards and the bus distribution on each interface board, so that the data entering and exiting the in-satellite subnet can be correctly routed to the destination address. Based on the above IP address aggregation manner, the IP subnet of each interface board corresponds to only one entry in the forwarding tables of the other interface boards, and the IP subnet of each bus on an interface board also corresponds to only one entry in the forwarding table of the interface board.
Therefore, through the configuration of the in-satellite forwarding table, the conversion from the in-satellite routing table to the interface board forwarding table is realized, and the routing path between the bus equipment and the external network is established.
Referring to fig. 4, a schematic diagram of IP address allocation based on bus type is shown, which uses the intra-satellite device IP addressing method provided in the embodiment of the present invention to divide the intra-satellite interface board subnet and the bus subnet, and allocates IP addresses to each bus device on the bus. As shown in fig. 4, the interface boards of the whole intra-satellite device together form an intra-satellite IP subnet; for each interface board, all buses on the interface board jointly form an interface board IP subnet; and for each bus, the bus devices connected to the bus form a bus IP subnet. The IP address compiling mode realizes the IP address aggregation of three levels of an intra-satellite equipment bus, an interface board and an intra-satellite router, thereby carrying out route aggregation, reducing the scale of an on-satellite route table and an intra-satellite forwarding table, lightening the table lookup burden and reducing the processing time delay.
The IP addressing method of the intra-satellite equipment provided by the embodiment of the invention comprises the steps of obtaining the number of interface board blocks of target intra-satellite equipment, the number of bus types on each interface board and the number of bus equipment on each type of bus; calculating the total IP address number of the target satellite equipment according to the number of the interface board blocks, the number of the bus types and the number of the bus equipment; dividing the interface board IP subnet of each interface board according to the total IP address; dividing bus IP subnets of each type of bus according to the interface board IP subnets; and configuring the IP address of each bus device according to the bus IP subnet. The addressing method enables the IP subnet of each interface board to correspond to only one table entry in the forwarding table of the other interface boards through the IP address aggregation of the three layers of the bus, the interface board and the satellite router, and the IP subnet of each type of bus on the interface board also corresponds to only one table entry in the forwarding table on the interface board, so that the scale of the forwarding table of the interface board is shortened, the table look-up burden is lightened, and the processing delay is reduced.
Example two:
in order to better understand the IP addressing method of the intra-satellite device, the embodiment is described with an example of intra-satellite device addressing.
Referring to fig. 5, which is a schematic distribution diagram of the intra-satellite device in this embodiment, as can be seen from fig. 5, the intra-satellite device includes three types of buses, i.e., LVDS, RS422 and 1553b, the number of bus devices on each type of bus is 10, where the LVDS and the RS422 are connected to the low-speed interface board, and 1553b is connected to the CPU interface board.
First, it can be known that the number of interface board blocks of the intra-satellite device in this embodiment is 3, where the bus type on the low-speed interface board is 2, the bus type on the CPU interface board is 1, and the number of bus devices on each bus is 10.
And secondly, calculating the total IP address of the intra-satellite equipment and the subnet mask of the intra-satellite subnet according to the data. The method comprises the following specific steps:
first, using equation (1), LVDS, 1553b and RS422 buses need to configure subnets with address number of 16, k is 4, and the subnet mask length is 28 according to equation (2).
Secondly, because the LVDS and the RS422 are on the same interface board (low-speed interface board), 1553b is on another interface board (CPU interface board), according to formulas (3), (4), (5), the low-speed interface board needs a subnet with an address number of 32, d takes a value of 5, and a subnet mask is 27; the CPU interface board needs a subnet with address number of 16, d takes value of 4, and subnet mask is 28.
Thirdly, calculating by the formulas (6), (7) and (8) to obtain the subnet with the address number of 64 required by the intra-satellite subnet, wherein the value of c is 6, and the length of the subnet mask is 26.
Here, taking 170.0.1.192/26 as the intra-satellite subnet as an example, the subnet addresses of the interface boards are configured as follows:
table 1 interface board IP subnet example table
Type of device IP address
Low speed interface board 170.0.1.1/28~170.0.1.30/27
CPU interface board 170.0.1.33/28~170.0.1.46/28
The address assignment for each intra-satellite device is as in table 2:
table 2 bus subnet example table
Type of device IP address
RS422 170.0.1.1/28~170.0.1.14/28
LVDS 170.0.1.17/28~170.0.1.30/28
1553b 170.0.1.33/28~170.0.1.46/28
When performing route advertisement to the outside, the whole intra-satellite bus subnet can be aggregated into one large subnet, i.e. 170.0.1.192/26, so that more devices of the whole intra-satellite subnet correspond to only one entry in the on-satellite routing table.
As the satellite router in a scene is composed of 3 interface boards, the routing table needs to be converted into 3 parts according to the device distribution, and taking the addressing scheme in the table as an example, the low-speed board forwarding table (table 3), the high-speed board forwarding table (table 4), and the CPU board forwarding table (table 5) for the scene are as follows:
table 3 low speed interface board forwarding table
Figure BDA0001927678350000131
Table 4 high speed interface board forwarding table
Figure BDA0001927678350000132
Table 5 CPU interface board forwarding table
Figure BDA0001927678350000133
Figure BDA0001927678350000141
Example three:
the embodiment of the present invention further provides an intra-satellite device IP addressing system, which is a schematic structural diagram of the system, referring to fig. 6, wherein the system includes a parameter obtaining module 61, a subnet aggregation module 62, a subnet IP address calculating module 63, and a bus device IP address configuration module 64, which are connected in sequence. Here, the functions of the respective modules are as follows:
the parameter obtaining module 61 is configured to obtain the number of interface board blocks of the target intra-satellite device, the number of bus types on each interface board, and the number of bus devices on each bus type.
The subnet aggregation module 62 is configured to divide each type of bus on each interface board of the target intra-satellite device into a bus IP subnet, aggregate each bus IP subnet on each interface board into an interface board IP subnet, and aggregate each interface board IP subnet into an intra-satellite IP subnet.
And a subnet IP address calculating module 63, configured to calculate, according to the number of bus devices, the number of bus types, and the number of interface board blocks, the total IP addresses and subnet mask lengths of each bus IP subnet, each interface board IP subnet, and the intra-satellite IP subnet. In one embodiment, the subnet IP address calculating module 63 includes a bus IP subnet IP address calculating unit, an interface board IP subnet IP address calculating unit, and an intra-satellite IP subnet IP address calculating unit, which are connected in sequence, where the bus IP subnet IP address calculating unit is configured to calculate the total IP address number and the subnet mask length of the bus IP subnet according to the number of the bus devices; the interface board IP subnet IP address calculation unit is used for calculating the total IP address number and the subnet mask length of the interface board IP subnet according to the total IP address number and the subnet mask length of each bus IP subnet and the bus type number on the interface board; the intra-satellite IP subnet IP address calculation unit is used for calculating the total IP address number and the subnet mask length of the intra-satellite IP subnet according to the total IP address number and the subnet mask length of each interface board IP subnet and the interface board block number of the target intra-satellite equipment.
And a bus device IP address configuration module 64, configured to configure the IP addresses of the bus devices according to the total number of the IP addresses of the bus IP subnets and the subnet mask length.
In another embodiment, the system further comprises: an interface board forwarding table configuration module, which is connected to the bus device IP address configuration module 64 and is used to configure a unique forwarding table for each bus IP subnet, each interface board IP subnet, and the intra-satellite IP subnet.
The implementation principle and the generated technical effects of the IP addressing system for the intra-satellite device provided by the embodiment of the present invention are the same as those of the above embodiment of the IP addressing method for the intra-satellite device, and for the sake of brief description, no mention is made in the embodiment of the system, and reference may be made to the corresponding contents in the embodiment of the method.
Example four:
referring to fig. 7, an embodiment of the present invention further provides an intra-satellite device IP addressing apparatus 700, including: the processor 70, the memory 71, the bus 72 and the communication interface 73, wherein the processor 70, the communication interface 73 and the memory 71 are connected through the bus 72; the processor 70 is arranged to execute executable modules, such as computer programs, stored in the memory 71.
The Memory 71 may include a high-speed Random Access Memory (RAM) and may further include a non-volatile Memory (non-volatile Memory), such as at least one disk Memory. The communication connection between the network element of the system and at least one other network element is realized through at least one communication interface 73 (which may be wired or wireless), and the internet, a wide area network, a local network, a metropolitan area network, and the like can be used.
The bus 72 may be an ISA bus, PCI bus, EISA bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one double-headed arrow is shown in FIG. 7, but this does not indicate only one bus or one type of bus.
The memory 71 is used for storing a program, and the processor 70 executes the program after receiving an execution instruction, and the method executed by the apparatus defined by the flow process disclosed in any of the foregoing embodiments of the present invention may be applied to the processor 70, or implemented by the processor 70.
The processor 70 may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware or instructions in the form of software in the processor 70. The Processor 70 may be a general-purpose Processor, and includes a Central Processing Unit (CPU), a Network Processor (NP), and the like; the device can also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field-Programmable Gate Array (FPGA) or other Programmable logic device, a discrete Gate or transistor logic device, or a discrete hardware component. The various methods, steps and logic blocks disclosed in the embodiments of the present invention may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of the method disclosed in connection with the embodiments of the present invention may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software module may be located in ram, flash memory, rom, prom, or eprom, registers, etc. storage media as is well known in the art. The storage medium is located in a memory 71, and the processor 70 reads the information in the memory 71 and completes the steps of the method in combination with the hardware thereof.
The intra-satellite device IP addressing device provided by the embodiment of the invention has the same technical characteristics as the intra-satellite device IP addressing method provided by the embodiment, so that the same technical problems can be solved, and the same technical effect can be achieved.
Unless specifically stated otherwise, the relative steps, numerical expressions, and values of the components and steps set forth in these embodiments do not limit the scope of the present invention.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the system and the apparatus described above may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In all examples shown and described herein, any particular value should be construed as merely exemplary, and not as a limitation, and thus other examples of example embodiments may have different values.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
In addition, in the description of the embodiments of the present invention, unless otherwise explicitly specified or limited, the terms "mounted," "connected," and "connected" are to be construed broadly, e.g., as meaning either a fixed connection, a removable connection, or an integral connection; can be mechanically or electrically connected; they may be connected directly or indirectly through intervening media, or they may be interconnected between two elements. The specific meanings of the above terms in the present invention can be understood in specific cases to those skilled in the art.
In the description of the present invention, it should be noted that the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inner", "outer", etc., indicate orientations or positional relationships based on the orientations or positional relationships shown in the drawings, and are only for convenience of description and simplicity of description, but do not indicate or imply that the device or element being referred to must have a particular orientation, be constructed and operated in a particular orientation, and thus, should not be construed as limiting the present invention. Furthermore, the terms "first," "second," and "third" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance.
Finally, it should be noted that: the above-mentioned embodiments are only specific embodiments of the present invention, which are used for illustrating the technical solutions of the present invention and not for limiting the same, and the protection scope of the present invention is not limited thereto, although the present invention is described in detail with reference to the foregoing embodiments, those skilled in the art should understand that: any person skilled in the art can modify or easily conceive the technical solutions described in the foregoing embodiments or equivalent substitutes for some technical features within the technical scope of the present disclosure; such modifications, changes or substitutions do not depart from the spirit and scope of the embodiments of the present invention, and they should be construed as being included therein. Therefore, the protection scope of the present invention shall be subject to the protection scope of the appended claims.

Claims (10)

1. An intra-satellite device IP addressing method is characterized by comprising the following steps:
acquiring the number of interface board blocks of target intra-satellite equipment, the number of bus types on each interface board and the number of bus equipment on each bus;
dividing each type of bus on each interface board of the target intra-satellite device into a bus IP subnet, aggregating each bus IP subnet on each interface board into an interface board IP subnet, and aggregating each interface board IP subnet into an intra-satellite IP subnet;
calculating the total IP address and subnet mask length of each bus IP subnet, each interface board IP subnet and the in-satellite IP subnet according to the number of the bus devices, the number of the bus types and the number of the interface board blocks;
and configuring the IP address of each bus device according to the total number of the IP addresses of the bus IP subnet and the subnet mask length.
2. The method for addressing intra-satellite device IPs according to claim 1, further comprising, after the step of configuring the IP addresses of the respective bus devices according to the total number of addresses of the IPs of the bus IP subnets and the subnet mask length:
and configuring unique forwarding tables for each bus IP subnet, each interface board IP subnet and the intra-satellite IP subnet.
3. The method according to claim 1, wherein the step of calculating the total number of IP addresses and subnet mask lengths of each of the bus IP subnets, each of the interface board IP subnets, and the intra-satellite IP subnets according to the number of the bus devices, the number of the bus types, and the number of the interface board blocks comprises:
calculating the total IP address number and the subnet mask length of the bus IP subnet according to the number of the bus devices;
according to the total IP address number and the subnet mask length of each bus IP subnet and the bus type number on the interface board, calculating the total IP address number and the subnet mask length of the interface board IP subnet;
and calculating the IP address total number and the subnet mask length of the IP subnets in the satellite according to the IP address total number and the subnet mask length of each interface board IP subnet and the interface board block number of the target in-satellite equipment.
4. The method for addressing the intra-satellite device IP according to claim 3, wherein the calculation formula for calculating the total number of the IP addresses of the bus IP subnet and the subnet mask length according to the number of the bus devices is as follows:
Pij=2k,2k-1<Nij+2≤2k
Lij=L0-k(i=1,2,...,n,j=1,2,...,Ni)
in the formula, PijThe total number of IP addresses in the IP subnet distributed for the jth bus on the ith block of interface board, NijThe number of bus devices on the i-th bus, NiIndicating that there is N on each interface boardi(i ═ 1,2 … n) type bus, j denotes the jth bus device; l isijIs the subnet mask length, L, of the jth bus on the ith block of interface board0The address length in the IP network, n is the interface board number of the equipment in the satellite, and k is a natural number.
5. The IP addressing method for the intra-satellite device according to claim 4, wherein the calculation formula for calculating the total IP addresses and the subnet mask lengths of the IP subnets of the interface board according to the total IP addresses and the subnet mask lengths of the bus IP subnets and the bus type number on the interface board is as follows:
Pib=Pi1+Pi2+...+Pij
Pi=2d,2d-1<Pib≤2d
Li=L0-d
in the formula, PibB represents that a b-type bus is occupied actually for the total number of IP addresses occupied on the ith block of interface board; piTotal number of IP addresses, L, of IP subnet for ith interface boardiThe length of the subnet mask of the IP subnet of the ith interface board, and d is a natural number.
6. The IP addressing method of the intra-satellite device according to claim 5, wherein the calculation formula for calculating the IP address total number and the subnet mask length of the intra-satellite IP subnet according to the IP address total number and the subnet mask length of each interface board IP subnet and the interface board block number of the target intra-satellite device is as follows:
Pu=P1+P2+...+Pn
Ps=2c,2c-1<Pu≤2c
L=L0-c
in the formula, PuTotal number of IP addresses, P, occupied for in-satellite devicessThe total number of IP addresses of the IP subnets in the satellite, L the subnet mask length of the IP subnets in the satellite, and c a natural number.
7. An intra-satellite device IP addressing system, comprising:
the parameter acquisition module is used for acquiring the number of interface board blocks of target intra-satellite equipment, the number of bus types on each interface board and the number of bus equipment on each type of bus;
the subnet aggregation module is used for dividing each type of bus on each interface board of the target intra-satellite device into a bus IP subnet, aggregating each bus IP subnet on each interface board into an interface board IP subnet, and aggregating each interface board IP subnet into an intra-satellite IP subnet;
a subnet IP address calculating module, configured to calculate, according to the number of bus devices, the number of bus types, and the number of interface board blocks, the total IP addresses and subnet mask lengths of each bus IP subnet, each interface board IP subnet, and the intra-satellite IP subnet;
and the bus equipment IP address configuration module is used for configuring the IP address of each bus equipment according to the total number of the IP addresses of the bus IP subnet and the subnet mask length.
8. The IP addressing system for an intra-satellite device according to claim 7, further comprising:
and the interface board forwarding table configuration module is used for configuring unique forwarding tables for each bus IP subnet, each interface board IP subnet and the intra-satellite IP subnet.
9. The IP addressing system of an intra-satellite device according to claim 7, wherein the subnet IP address calculation module comprises:
the bus IP subnet IP address calculation unit is used for calculating the total IP address number and the subnet mask length of the bus IP subnet according to the number of the bus devices;
the interface board IP subnet IP address calculation unit is used for calculating the total IP address number and the subnet mask length of the interface board IP subnet according to the total IP address number and the subnet mask length of each bus IP subnet and the bus type number on the interface board;
and the intra-satellite IP subnet IP address calculation unit is used for calculating the total IP address number and the subnet mask length of the intra-satellite IP subnet according to the total IP address number and the subnet mask length of each interface board IP subnet and the interface board block number of the target intra-satellite equipment.
10. An IP addressing device of an intra-satellite device is characterized by comprising a processor, a memory, a bus and a communication interface, wherein the processor, the communication interface and the memory are connected through the bus;
the memory is used for storing programs;
the processor is used for calling a program stored in the memory through the bus and executing the IP addressing method of the intra-satellite equipment according to any one of claims 1 to 6.
CN201811631476.XA 2018-12-28 2018-12-28 IP addressing method, system and device for in-satellite equipment Active CN109587287B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811631476.XA CN109587287B (en) 2018-12-28 2018-12-28 IP addressing method, system and device for in-satellite equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811631476.XA CN109587287B (en) 2018-12-28 2018-12-28 IP addressing method, system and device for in-satellite equipment

Publications (2)

Publication Number Publication Date
CN109587287A CN109587287A (en) 2019-04-05
CN109587287B true CN109587287B (en) 2020-06-26

Family

ID=65932369

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811631476.XA Active CN109587287B (en) 2018-12-28 2018-12-28 IP addressing method, system and device for in-satellite equipment

Country Status (1)

Country Link
CN (1) CN109587287B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103117864A (en) * 2011-11-16 2013-05-22 阿里巴巴集团控股有限公司 Subnet combination method and device
CN106533536A (en) * 2016-11-07 2017-03-22 北京航空航天大学 IP addressing method and apparatus of polar-orbit low-orbit satellite network
CN108881029A (en) * 2018-06-07 2018-11-23 北京邮电大学 The low-track satellite network addressing based on star decoupled and method for routing and system
WO2018234042A1 (en) * 2017-06-21 2018-12-27 Siemens Schweiz Ag System and method for isolating device communications in a bacnet/ip building automation network

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7395323B2 (en) * 2001-08-07 2008-07-01 Hewlett-Packard Development Company, L.P. System and method for providing network address information in a server system
CN107241457B (en) * 2017-06-01 2020-09-11 常青 Method for realizing network end-to-end communication
CN108965136B (en) * 2018-07-16 2020-09-22 清华大学 Forwarding method and device based on spatial network hierarchical IP addressing

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103117864A (en) * 2011-11-16 2013-05-22 阿里巴巴集团控股有限公司 Subnet combination method and device
CN106533536A (en) * 2016-11-07 2017-03-22 北京航空航天大学 IP addressing method and apparatus of polar-orbit low-orbit satellite network
WO2018234042A1 (en) * 2017-06-21 2018-12-27 Siemens Schweiz Ag System and method for isolating device communications in a bacnet/ip building automation network
CN108881029A (en) * 2018-06-07 2018-11-23 北京邮电大学 The low-track satellite network addressing based on star decoupled and method for routing and system

Also Published As

Publication number Publication date
CN109587287A (en) 2019-04-05

Similar Documents

Publication Publication Date Title
US11343152B2 (en) Traffic management for smart network interface cards
US10708125B1 (en) Gateway configuration using a network manager
CN110012125B (en) Cluster network communication method, device, storage medium and equipment
CN109245984B (en) Message transmission method, information processing method and related equipment thereof
CN108712286B (en) Method and device for determining network topology structure and storage medium
US20180131619A1 (en) Load Balancing Method and Related Apparatus
CN112242950A (en) Method for determining path and related equipment
US20190042314A1 (en) Resource allocation
CN107659426B (en) Method for allocating physical resources and network side equipment
CN112333135B (en) Gateway determination method, device, server, distributor, system and storage medium
WO2022012689A1 (en) Route advertisement method and related device
CN109150638A (en) A kind of route management method and device
CN107517129B (en) Method and device for configuring uplink interface of equipment based on OpenStack
US10587507B2 (en) Routing between software defined networks and physical networks
US10469368B2 (en) Distributed routing table system with improved support for multiple network topologies
CN109413227A (en) IPv4 user based on more IPv6 networks accesses IPv6 network interworking device and equipment
CN114389995B (en) Resource sharing method and device and electronic equipment
CN113010314B (en) Load balancing method and device and electronic equipment
CN109587287B (en) IP addressing method, system and device for in-satellite equipment
CN112243036B (en) Data processing method and device for PaaS service, equipment and storage medium
CN110636149B (en) Remote access method, device, router and storage medium
US20230155938A1 (en) Route Advertisement Method and Related Device
CN113923158A (en) Message forwarding, routing sending and receiving method and device
CN116016448A (en) Service network access method, device, equipment and storage medium
US10540277B2 (en) Method and apparatus for supporting the use of interleaved memory regions

Legal Events

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