Peer negotiation formula dynamic addressing method and device based on IP subnet
Technical field
The present invention relates to technical field of satellite communication, compile more particularly, to a kind of peer negotiation formula dynamic based on IP subnet
Location method and device.
Background technique
Traditional IP addressing mode includes IP address static configuration and DynamicHost setting agreement (Dynamic Host
Configuration Protocol, DHCP) dynamic configuration both of which etc..Static configuration mode refer to by center configuration network
In each interface IP address, while determining each node IP address in link IP subnet and subnet.The shortcomings that static configuration mode
Center is required when being each link switching to reconfigure, and unified center is needed to be managed concentratedly and send out information in time
For cloth to node, timeliness is poor.DHCP protocol is the agreement based on server/customer end mode, the fixed DHCP clothes of DHCP protocol
The IP subnet of business device, the IP address of client are allocated by server.In low-track satellite network, since it is with stronger
Mobility, therefore fixed access point and accessing user's relationship can not be determined (if it is determined that fixed access in handoff procedure
Point and accessing user, the both sides that can bring link setup are access point or both sides are accessing user, so that address can not be carried out
The problem of distribution and determining link IP subnet).Therefore, existing scheme between node dynamic link setup and switching in the environment of not
It is applicable in.
Summary of the invention
In view of this, the peer negotiation formula dynamic addressing method that the purpose of the present invention is to provide a kind of based on IP subnet and
Flexibility when device, timeliness in IP addressing to optimize Aerospace Satellite network and reciprocity link setup.
In a first aspect, the embodiment of the invention provides a kind of peer negotiation formula dynamic addressing method based on IP subnet, is answered
For moving satellite system, satellite system includes at least the first satellite and the second satellite, and the first satellite includes at least first interface,
Second satellite includes at least second interface, and first interface is configured with the first IP subnet, and second interface is configured with the 2nd IP subnet;It should
Method includes: when detecting that first interface is connect with second interface, and the first IP subnet information is sent to second by the first satellite
2nd IP subnet information is sent to the first satellite by satellite, the second satellite;First satellite and the second satellite are respectively according to the first IP
Subnet information and the judgement of the 2nd IP subnet information use the first IP subnet or the 2nd IP subnet;When using the first IP subnet, the
One satellite and the second satellite are that first interface and second interface distribute address different in the first IP subnet respectively;When use second
When IP subnet, the first satellite and the second satellite are that first interface and second interface distribute ground different in the 2nd IP subnet respectively
Location.
With reference to first aspect, the embodiment of the invention provides the first possible embodiments of first aspect, wherein the
Each interface of one satellite and the second satellite is each equipped with IP subnet;IP subnet includes at least two available address.
With reference to first aspect or its first possible embodiment, the embodiment of the invention provides the second of first aspect
The possible embodiment of kind, wherein the first satellite and the second satellite are believed according to the first IP subnet information and the 2nd IP subnet respectively
The step of breath judgement is using the first IP subnet or the 2nd IP subnet, comprising: respectively according to the first IP subnet information and the 2nd IP
Net information calculates the first IP subnet number and the 2nd IP subnet number;First satellite and the second satellite compare respectively the first IP subnet number and
The size of 2nd IP subnet number, if the first IP subnet number is greater than the 2nd IP subnet number, the first satellite and the second satellite are used
First IP subnet;If the first IP subnet number uses the 2nd IP less than the 2nd IP subnet number, the first satellite and the second satellite
Net.
With reference to first aspect, the embodiment of the invention provides the third possible embodiments of first aspect, wherein when
When using the first IP subnet, the first satellite and the second satellite are that first interface and second interface are distributed in the first IP subnet not respectively
With address the step of, comprising: when using the first IP subnet, the first satellite is that first interface distributes address in the first IP subnet
It is worth lesser address;Second satellite is that second interface distributes the biggish address of address value in the first IP subnet.
With reference to first aspect, the embodiment of the invention provides the 4th kind of possible embodiments of first aspect, wherein when
When using the 2nd IP subnet, the first satellite and the second satellite are that first interface and second interface are distributed in the 2nd IP subnet not respectively
With address the step of, comprising: when using the 2nd IP subnet, the first satellite is that first interface distributes address in the 2nd IP subnet
It is worth biggish address;Second satellite is that second interface distributes the lesser address of address value in the 2nd IP subnet.
With reference to first aspect or its first possible embodiment, the embodiment of the invention provides the 5th of first aspect the
The possible embodiment of kind, this method further include: the first satellite and the second satellite send one's own side's information to other side respectively;One's own side's letter
Breath includes one's own side's IP address and one's own side's mask;First satellite and the second satellite judge whether to receive within a preset time respectively simultaneously really
Recognize one's own side's information of other side's transmission;If not, the first IP subnet information is sent to the second satellite again by the first satellite, second is defended
2nd IP subnet information is sent to the first satellite again by star.
With reference to first aspect or its first possible embodiment, the embodiment of the invention provides the 6th of first aspect the
The possible embodiment of kind, this method further include: count the quantity of node and the interface quantity of node;According to the quantity of node
The address total amount needed is determined with interface quantity;The IP address network segment needed is determined according to address total amount.
Second aspect, the embodiment of the present invention also provide a kind of peer negotiation formula dynamic addressing device based on IP subnet, answer
For moving satellite system, satellite system includes at least the first satellite and the second satellite, and the first satellite includes at least first interface,
Second satellite includes at least second interface, and first interface is configured with the first IP subnet, and second interface is configured with the 2nd IP subnet;Dress
Setting includes: sending module, and for when detecting that first interface is connect with second interface, the first satellite is by the first IP subnet information
It is sent to the second satellite, the 2nd IP subnet information is sent to the first satellite by the second satellite;Judgment module, for the first satellite and
Second satellite uses the first IP subnet or the 2nd IP subnet according to the first IP subnet information and the judgement of the 2nd IP subnet information respectively;
First distribution module, for when using the first IP subnet, the first satellite and the second satellite to be first interface and second interface point
Address that Fen Pei be not different in the first IP subnet;Second distribution module, for when using the 2nd IP subnet, the first satellite and the
Two satellites are that first interface and second interface distribute address different in the 2nd IP subnet respectively.
In conjunction with second aspect, the embodiment of the invention provides the first possible embodiments of second aspect, wherein sentences
Disconnected module, is also used to: calculating the first IP subnet number and the 2nd IP according to the first IP subnet information and the 2nd IP subnet information respectively
Subnet number;First satellite and the second satellite compare the size of the first IP subnet number and the 2nd IP subnet number respectively, if the first IP
Subnet number is greater than the 2nd IP subnet number, and the first satellite and the second satellite use the first IP subnet;If the first IP subnet number is small
In the 2nd IP subnet number, the first satellite and the second satellite use the 2nd IP subnet.
In conjunction with second aspect, the embodiment of the invention provides second of possible embodiments of second aspect, wherein should
Device further includes confirmation module, is used for: the first satellite and the second satellite send one's own side's information to other side respectively;One's own side's information includes
One's own side's IP address and one's own side's mask;First satellite and the second satellite judge whether to receive within a preset time respectively and confirm other side
One's own side's information of transmission;If not, the first IP subnet information is sent to the second satellite again by the first satellite, the second satellite is again
2nd IP subnet information is sent to the first satellite.
The embodiment of the present invention brings following the utility model has the advantages that the embodiment of the invention provides a kind of equities based on IP subnet
Negotiation formula dynamic addressing method and device is respectively configured first for the first interface of the first satellite and the second interface of the second satellite
IP subnet and the 2nd IP subnet, when detecting that first interface is connected with second interface, the first satellite and the second passing of satelline phase
The first IP subnet information and the 2nd IP subnet information is mutually sent to negotiate to realize using the first IP subnet or the 2nd IP subnet, if
Using the first IP subnet, the first satellite and the second satellite are respectively that first interface and second interface distribute difference in the first IP subnet
Address, if the first satellite and the second satellite are respectively first interface and second interface distribution second using the 2nd IP subnet
Different address in IP subnet.The embodiment of the present invention can independently hold consultation when two peer nodes establish connection, determine
Dynamic configuration address may be implemented in the access point of link and accessing user, and timeliness is strong, and has greater flexibility.
Other feature and advantage of the disclosure will illustrate in the following description, alternatively, Partial Feature and advantage can be with
Deduce from specification or unambiguously determine, or by implement the disclosure above-mentioned technology it can be learnt that.
To enable the above objects, features, and advantages of the disclosure to be clearer and more comprehensible, preferred embodiment is cited below particularly, and cooperate
Appended attached drawing, is described in detail below.
Detailed description of the invention
It, below will be to specific in order to illustrate more clearly of the specific embodiment of the invention or technical solution in the prior art
Embodiment or attached drawing needed to be used in the description of the prior art be briefly described, it should be apparent that, it is described below
Attached drawing is some embodiments of the present invention, for those of ordinary skill in the art, before not making the creative labor
It puts, is also possible to obtain other drawings based on these drawings.
Fig. 1 is the peer negotiation formula dynamic addressing method flow diagram provided in an embodiment of the present invention based on IP subnet;
Fig. 2 is the peer negotiation formula dynamic addressing method implementation diagram provided in an embodiment of the present invention based on IP subnet;
Fig. 3 is a kind of structural frames of the peer negotiation formula dynamic addressing device provided in an embodiment of the present invention based on IP subnet
Figure;
Fig. 4 is another structure of the peer negotiation formula dynamic addressing device provided in an embodiment of the present invention based on IP subnet
Block diagram.
Icon:
31- sending module;32- judgment module;The first distribution module of 33-;The second distribution module of 34-;35- confirmation module.
Specific embodiment
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with attached drawing to the present invention
Technical solution be clearly and completely described, it is clear that described embodiments are some of the embodiments of the present invention, rather than
Whole embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art are not making creative work premise
Under every other embodiment obtained, shall fall within the protection scope of the present invention.
The IP addressing mode that tradition meets address aggregation relationship mainly has IP address static configuration and DynamicHost setting association
Discuss (DHCP) dynamic configuration both of which.
The IP address by each interface in center configuration network that static configuration mode refers to, at the same determine link IP subnet and
Each node IP address from netting.The shortcomings that static configuration mode, requires center when being each link switching and reconfigures, and needs
It is managed concentratedly and information is distributed to node in time in unified center.When network size is larger, information publication is needed
Want independent control channel or with data common-use tunnel.Section can be just transferred to by generally requiring multi-hop when with data common-use tunnel
Point, it is poor in timeliness, possibly even no longer valid.
DHCP protocol is the agreement based on server/customer end mode, and DHCP protocol fixes the IP subnet of Dynamic Host Configuration Protocol server,
The IP address of client is allocated by server.When client terminal start-up, to server IP address requesting, server returns corresponding
IP address.DHCP protocol dynamic configuration can solve the IP address assignment problem of link setup between router and host.But if
Two end nodes are reciprocity (such as link setups and switching between router and router), establish the double of connection due to being difficult to determine
Side which side be server, which side be client, server/customer end mode failures even.In Constellation of Low Earth Orbit Satellites network system
Dynamic link setup and switching between equal mobile nodes relatively reciprocity (not only can be used as access point but also can be used as accessing user), node
In the environment of, it (is determined between relatively-stationary subnet and subnet interior nodes to make the IP address after link setup meet paradigmatic relation
Relationship realizes address aggregation, convenient for routing), a kind of new IP dynamic addressing method is needed, link can dynamic in this way
Determine IP subnet and subnet interior nodes IP address (being dynamically determined link setup node both sides, which side is access point, which side
For accessing user).
Based on this, a kind of peer negotiation formula dynamic addressing method and dress based on IP subnet provided in an embodiment of the present invention
It sets, can solve existing scheme, there are fail when poor in timeliness, reciprocity link setup in the IP addressing of Aerospace Satellite network.
The embodiment of the present invention is that each interface of satellite node configures an IP subnet, passes through the redundant configuration of interface IP address
(each interface configure an IP subnet) makes it have ability as an access point.Interface each in this way configures an IP
The node of subnet not only can be used as an accessing user (subnet for accessing other nodes), but can as access point (for
Family access).It can independently hold consultation when two peer nodes establish connection, determine access point and the accessing user of link,
IP subnet used in also determining simultaneously.In the case where guaranteeing that node peer negotiation establishes connection in a network, network
In both link ends interface IP address remain in same subnet.This method comprises: each interface of (1) network node configures
One IP subnet, rather than configure an IP address;(2) in a network node link setup when, the method using peer negotiation formula is true
Surely IP subnet (determining access point and accessing user) used by the link established.It is first for convenient for understanding the present embodiment
First describe in detail to a kind of peer negotiation formula dynamic addressing method based on IP subnet disclosed in the embodiment of the present invention.
Embodiment 1
The embodiment of the present invention 1 provides a kind of peer negotiation formula dynamic addressing method based on IP subnet, shown in Figure 1
The peer negotiation formula dynamic addressing method flow diagram based on IP subnet, method includes the following steps:
Step S102, when detecting that first interface is connect with second interface, the first satellite sends out the first IP subnet information
The second satellite is given, the 2nd IP subnet information is sent to the first satellite by the second satellite.
First interface is an interface of the first satellite in satellite system.Second interface is the second satellite of satellite system value
One interface.First satellite and the second satellite may each comprise multiple interfaces, and two satellites can establish connection by interface, when first
It, can be using the interface of the first satellite in connection as first interface, by connection second when satellite and the second satellite establish connection
The interface of satellite is as second interface.
IP subnet information includes IP address and subnet mask, and wherein IP address is generated by initialization, and subnet mask can be with
It is determined according to required subnet length.For example, can match for each interface in the first satellite of network node or the second satellite
Set one include 4 addresses IP subnet, subnet mask be 255.255.255.252 (due to a network segment first address and
Last address is reserved address, and actually available number of addresses is 2).First IP subnet information corresponds to the IP subnet information of first interface,
2nd IP subnet information corresponds to the IP subnet information of second interface.
Peer negotiation formula dynamic addressing method implementation diagram based on IP subnet shown in Figure 2, when detecting
When one interface is connect with second interface, both sides carry out IP address negotiation.For initial network segment be a.b.c.d/l the first satellite with
Initial network segment is the second satellite of e.f.g.h/l, when detecting the interface connection between them, that is, detect the first satellite and
After the aerial angle of second satellite is adjusted to scheduled angle, the first IP subnet information is sent to the second satellite by the first satellite,
And the 2nd IP subnet information that the second satellite is sent is received, the 2nd IP subnet information is sent to the first satellite by the second satellite, and
Receive the first IP subnet information of the first satellite transmission.
Step S104, the first satellite and the second satellite judge according to the first IP subnet information and the 2nd IP subnet information respectively
Use the first IP subnet or the 2nd IP subnet.
First satellite and the second satellite determine principle and the first IP subnet information and the 2nd IP subnet according to IP address respectively
Information judges to make interface IP address meet convergence relationship using the first IP subnet or the 2nd IP subnet.Judgement uses the first IP
The process of net or the 2nd IP subnet is to determine the process of access point and accessing user.Can respectively according to the first IP subnet information and
2nd IP subnet information obtains the first IP subnet number and the 2nd IP subnet number.Wherein, address determines that principle can be with are as follows: according to first
Size relation between IP subnet number and the 2nd IP subnet number, which determines, uses the first IP subnet or the 2nd IP subnet.
Step S106, when using the first IP subnet, the first satellite and the second satellite are first interface and second interface point
Address that Fen Pei be not different in the first IP subnet.
Determine use the first IP subnet as link IP subnet after, according to the first IP subnet to each interface in link into
Different address in first IP subnet can be respectively allocated to first interface according to scheduled rule by the configuration of line interface IP address
And second interface.Wherein, scheduled rule can be with are as follows: if link IP subnet uses the IP subnet of this interface, this interface
IP address be configured to first available address of the subnet, if link IP subnet uses the IP subnet of other side's interface, this
Interface IP address is configured to second available IP address in subnet.
Step S108, when using the 2nd IP subnet, the first satellite and the second satellite are first interface and second interface point
Address that Fen Pei be not different in the 2nd IP subnet.
Determine use the 2nd IP subnet as link IP subnet after, according to the 2nd IP subnet to each interface in link into
Different address in 2nd IP subnet can be respectively allocated to first interface according to scheduled rule by the configuration of line interface IP address
And second interface.Wherein, scheduled rule can be with are as follows: if link IP subnet uses the IP subnet of this interface, this interface
IP address be configured to first available address of the subnet, if link IP subnet uses the IP subnet of other side's interface, this
Interface IP address is configured to second available IP address in subnet.
The peer negotiation formula dynamic addressing method based on IP subnet that the embodiment of the invention provides a kind of is the first satellite
The first IP subnet and the 2nd IP subnet is respectively configured in the second interface of first interface and the second satellite, when detect first interface and
When second interface connects, the first satellite and second passing of satelline mutually send the first IP subnet information and the 2nd IP subnet information
It realizes and negotiates to use the first IP subnet or the 2nd IP subnet, if using the first IP subnet, the first satellite and the second satellite difference
Address different in the first IP subnet is distributed for first interface and second interface, if using the 2nd IP subnet, the first satellite and
Second satellite is respectively that first interface and second interface distribute address different in the 2nd IP subnet.The embodiment of the present invention is at two
It when peer node establishes connection, can independently hold consultation, determine access point and the accessing user of link, dynamic may be implemented and match
Address is set, timeliness is strong, and has greater flexibility.
In view of in order to which, in the occupancy for reducing resource, this method is in the first satellite while improving address allocation flexibility
IP subnet is each equipped with each interface of the second satellite;IP subnet includes at least two available address.
Two available address are included at least in IP subnet, and as two reserved address of first address and last address, each
The configurable IP subnet comprising 4 addresses of interface, wherein the address value of two available address is different, and a value is larger, and one
A value is smaller.For the equal configuration of IP subnet of each interface of the first satellite and the second satellite, the first satellite and second can be improved
Flexibility of the satellite when address is distributed.
In view of the IP address of interface each in link be in same subnet be Internet Interconnection (Internet Protocol,
IP) agreement, ospf (Open Shortest Path First, OSPF) agreement, address resolution
The basis of the operations such as (Address Resolution Protocol, ARP) agreement, to guarantee the both link ends interface in network
IP address is remained in same subnet, and the first satellite and the second satellite are believed according to the first IP subnet information and the 2nd IP subnet respectively
The step of breath judgement is using the first IP subnet or the 2nd IP subnet, may comprise steps of:
(1) the first IP subnet number and the 2nd IP subnet are calculated according to the first IP subnet information and the 2nd IP subnet information respectively
Number.
First satellite and the second satellite all in accordance in the first IP subnet information the first IP address and the first mask calculate the
One IP subnet number, according to according to the second IP address and the first mask the 2nd IP subnet number of calculating in the 2nd IP subnet information.
(2) first satellites and the second satellite compare the size of the first IP subnet number and the 2nd IP subnet number respectively, if the
One IP subnet number is greater than the 2nd IP subnet number, and the first satellite and the second satellite use the first IP subnet.
(3) if the first IP subnet number uses the 2nd IP less than the 2nd IP subnet number, the first satellite and the second satellite
Net.
Peer negotiation formula dynamic addressing method implementation diagram based on IP subnet shown in Figure 2, in the first satellite,
If the first IP subnet number a.b.c.d is greater than the second sub- IP network e.f.g.h, use the first IP subnet as link IP subnet,
Otherwise use the 2nd IP subnet number as link IP subnet;In second satellite, if the first IP subnet number a.b.c.d is less than second
IP subnet number e.f.g.h, uses the 2nd IP subnet as link IP subnet, otherwise uses the first IP subnet number as link IP
Net.
In order to guarantee going on smoothly automatically for address distribution, when using the first IP subnet, the first satellite and the second satellite
The step of distributing addresses different in the first IP subnet respectively for first interface and second interface, comprising: as the first IP of use
When net, the first satellite is that first interface distributes the lesser address of address value in the first IP subnet;Second satellite is second interface point
With the biggish address of address value in the first IP subnet.
In first IP subnet include at least two available addresses, when in the first IP subnet include two available addresses
When, it is determined how according to the size of address value and distributes address for first interface and second interface, specific allocation rule can root
It is determined according to actual demand, for example, can be set to, when using the first IP subnet, the first satellite is first interface distribution
The lesser address of address value in first IP subnet;Second satellite be second interface distribute the first IP subnet in address value biggishly
Location.
In order to guarantee going on smoothly automatically for address distribution, when using the 2nd IP subnet, the first satellite and the second satellite
The step of distributing addresses different in the 2nd IP subnet respectively for first interface and second interface, comprising: as the 2nd IP of use
When net, the first satellite is that first interface distributes the biggish address of address value in the 2nd IP subnet;Second satellite is second interface point
With the lesser address of address value in the 2nd IP subnet.
In 2nd IP subnet include at least two available addresses, when in the 2nd IP subnet include two available addresses
When, it is determined how according to the size of address value and distributes address for first interface and second interface, specific allocation rule can root
It is determined according to actual demand, for example, can be set to, when using the 2nd IP subnet, the first satellite is first interface distribution
The biggish address of address value in 2nd IP subnet;Second satellite be second interface distribute the 2nd IP subnet in address value lesserly
Location.
Consider during link setup, may be influenced due to a variety of uncertain factors, the transmitting of information is not prompt enough and accurate,
Therefore, this method can also include the following steps:
(1) first satellite and the second satellite send one's own side's information to other side respectively;One's own side's information include one's own side's IP address and
One's own side's mask.
Peer negotiation formula dynamic addressing method implementation diagram based on IP subnet shown in Figure 2, in the first satellite
After being respectively completed the IP address distribution to interface with the second satellite, one's own side's information is sent to other side respectively, i.e. the first satellite will
First one's own side's information is sent to the second satellite, and receives second one's own side's information that the second satellite is sent;Second satellite by second oneself
Square information is sent to the first satellite, and receives first one's own side's information that the first satellite is sent.
(2) first satellites and the second satellite judge whether to receive and confirm the one's own side that other side sends within a preset time respectively
Information.
Opening timing device carries out retransmitting timing, if within the predetermined time, the first satellite or the second satellite do not receive pair
The one's own side's information just sent then retransmits the one's own side's information of oneself to other side, if within the predetermined time, the first satellite
Or second satellite receive one's own side's information of other side's transmission, one's own side's information that the other side that need to acknowledge receipt of sends is errorless.
(3) if not, the first IP subnet information is sent to the second satellite again by the first satellite, the second satellite is again by
Two IP subnet informations are sent to the first satellite.
If the information received is wrong or cannot receive one's own side's information of other side's transmission always, the first satellite is again by first
IP subnet information is sent to the second satellite, and the 2nd IP subnet information is sent to the first satellite again by the second satellite.
Finally, this method further include: count the quantity of node and the interface quantity of node;According to the quantity of node and connect
Mouth quantity determines the address total amount needed;The IP address network segment needed is determined according to address total amount.
Node can be the satellite in satellite system.All number of nodes and all nodes in statistics network it is all
Interface quantity determines address total amount used in network.For example, distinguishing after obtaining total interface quantity if it is n interface
One IP subnet comprising 4 addresses of configuration determines then address total amount used in network is 4n further according to address total amount
The network needs the IP address network segment divided, thus the convenient IP address network segment for applying needing in advance.
The embodiment of the present invention compared with the mode that static address configures, have local peer node between can voluntarily negotiate, nothing
Revenue centre is needed to be managed collectively, it can dynamic configuration address, the advantages that timeliness is strong in real time.Compared with the dhcp address method of salary distribution,
With greater flexibility and dynamic reconfiguration, it is applicable to connection between router and router, host and host and builds
The advantages of address distribution is with maintenance when vertical and switching.And the dhcp address method of salary distribution can only adapt to establish between router and host
The case where connection and switching.
The IP addressing method for the peer negotiation that the embodiment of the present invention proposes is by link setup both sides' autonomous negotiating, and timeliness is good, together
When do not make the differentiation of router and host to the node in network in address negotiation, using both link ends node status equity
Negotiation mode determines that IP address is distributed, so that each interface IP address is in same IP subnet in the link after link setup, meets IP etc.
The requirement of agreement.This method can also be used for establishing address distribution when connection between router and router, host and host, can
To adapt to that the mobility such as low-track satellite network are relatively strong and node equity establishes the network of connection.In Constellation of Low Earth Orbit Satellites network
Between the mobile nodes such as system relatively reciprocity (not only can be used as access point but also can be used as accessing user), node dynamic link setup and
In the environment of switching, access point and accessing user are determined by way of peer negotiation, the IP address after making link setup meets polymerization
Relationship (determines the relationship between relatively-stationary subnet and subnet interior nodes, realize address aggregation, convenient for routing).
Embodiment 2
The embodiment of the present invention 2 provides a kind of peer negotiation formula dynamic addressing device based on IP subnet, is applied to movement
Satellite system, satellite system include at least the first satellite and the second satellite, and the first satellite includes at least first interface, the second satellite
Including at least second interface, first interface is configured with the first IP subnet, and second interface is configured with the 2nd IP subnet;Referring to Fig. 3 institute
A kind of structural block diagram of the peer negotiation formula dynamic addressing device based on IP subnet shown, the device include:
Sending module 31, for when detecting that first interface is connect with second interface, the first satellite is by the first IP subnet
Information is sent to the second satellite, and the 2nd IP subnet information is sent to the first satellite by the second satellite;Judgment module 32 is used for first
Satellite and the second satellite use the first IP subnet or second according to the first IP subnet information and the judgement of the 2nd IP subnet information respectively
IP subnet;First distribution module 33, for when using the first IP subnet, the first satellite and the second satellite are first interface and the
Two interfaces distribute address different in the first IP subnet respectively;Second distribution module 34 is used for when using the 2nd IP subnet, the
One satellite and the second satellite are that first interface and second interface distribute address different in the 2nd IP subnet respectively.
Judgment module is also used to: calculating the first IP subnet according to the first IP subnet information and the 2nd IP subnet information respectively
Number and the 2nd IP subnet number;First satellite and the second satellite compare the size of the first IP subnet number and the 2nd IP subnet number respectively,
If the first IP subnet number is greater than the 2nd IP subnet number, the first satellite and the second satellite use the first IP subnet;If first
IP subnet number uses the 2nd IP subnet less than the second sub- IP network number, the first satellite and the second satellite.
Another structural block diagram of peer negotiation formula dynamic addressing device based on IP subnet shown in Figure 4, the dress
Setting further includes confirmation module 35, is used for: the first satellite and the second satellite send one's own side's information to other side respectively;One's own side's information includes
One's own side's IP address and one's own side's mask;First satellite and the second satellite judge whether to receive within a preset time respectively and confirm other side
One's own side's information of transmission;If not, the first IP subnet information is sent to the second satellite again by the first satellite, the second satellite is again
2nd IP subnet information is sent to the first satellite.
Peer negotiation formula dynamic addressing device based on IP subnet provided by the embodiment of the present invention, realization principle and production
Raw technical effect is identical with the aforementioned peer negotiation formula dynamic addressing embodiment of the method based on IP subnet, to briefly describe, base
Place is not referred in the peer negotiation formula dynamic addressing Installation practice part of IP subnet, can refer to aforementioned pair based on IP subnet
Corresponding contents in equal negotiations formula dynamic addressing embodiment of the method.
Finally, it should be noted that embodiment described above, only a specific embodiment of the invention, to illustrate the present invention
Technical solution, rather than its limitations, scope of protection of the present invention is not limited thereto, although with reference to the foregoing embodiments to this hair
It is bright to be described in detail, those skilled in the art should understand that: anyone skilled in the art
In the technical scope disclosed by the present invention, it can still modify to technical solution documented by previous embodiment or can be light
It is readily conceivable that variation or equivalent replacement of some of the technical features;And these modifications, variation or replacement, do not make
The essence of corresponding technical solution is detached from the spirit and scope of technical solution of the embodiment of the present invention, should all cover in protection of the invention
Within the scope of.Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.