Link simulation method and device and storage medium

Through the link simulation method and the collaborative work of the link connectivity simulation unit and the link status simulation unit, the problem of inaccurate link characteristic simulation in the satellite Internet is solved, and high-accuracy simulation of the satellite network link characteristics is achieved.

CN118694412APending Publication Date: 2024-09-24CHINA SATELLITE NETWORK INNOVATION CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310293720.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-03-23
Publication Date
2024-09-24

AI Technical Summary

Technical Problem

Existing technology cannot accurately simulate the link characteristics of inter-satellite links and feeder links in satellite Internet, resulting in low accuracy in the simulation of satellite network link characteristics.

Method used

Using the link simulation method, the link connectivity simulation unit is connected to multiple link status simulation units, using pre-obtained link connectivity simulation parameters to simulate link connectivity changes, and transmit messages between simulated communication devices. Enable accurate simulation of link connectivity changes over time due to satellite motion.

Benefits of technology

It improves the accuracy of satellite network link characteristic simulation and ensures accurate simulation of inter-satellite link and feeder link connectivity, delay and bit error rate.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118694412A
    Figure CN118694412A
Patent Text Reader

Abstract

The embodiment of the invention provides a link simulation method and device and a storage medium. Relates to the technical field of satellite communication, and the method comprises the following steps: under the condition that a first link state simulation unit in a plurality of link state simulation units receives a first message from a first simulation communication device, the first link state simulation unit sends the first message to a link connectivity simulation unit; the link connectivity simulation unit sends a first message to a second link state simulation unit in the plurality of link state simulation units according to a link connectivity simulation parameter obtained in advance; and the second link state simulation unit sends the first message to the second simulation communication equipment. By applying the scheme provided by the embodiment of the invention, the accuracy of satellite network link feature simulation can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of satellite communication technology, and in particular to a link simulation method, device and storage medium. Background Art

[0002] In order to meet the application needs of emergency rescue, air and sea, which are difficult to cover by traditional ground networks, more and more countries or enterprises have begun to develop and build satellite Internet. However, the design of satellite Internet is difficult and the project implementation risk is high. Therefore, before building satellite Internet, it is very important to build a high-fidelity satellite Internet test environment for satellite Internet testing.

[0003] Because satellite Internet is different from terrestrial Internet, there is relative motion between satellites and between satellites and gateways, resulting in link characteristics such as the connectivity of intersatellite links and feeder links having strong time correlation. Existing technologies cannot accurately simulate link characteristics at different times, resulting in low accuracy in satellite network link characteristic simulation. Summary of the invention

[0004] The purpose of the embodiments of the present invention is to provide a link simulation method, device and storage medium to improve the accuracy of satellite network link feature simulation. The specific technical solution is as follows:

[0005] In a first aspect of the implementation of the present invention, a link simulation method is first provided. The method is applied to a link simulation device, wherein the link simulation device comprises a link connectivity simulation unit and a plurality of link status simulation units, wherein the link connectivity simulation unit is connected to the plurality of link status simulation units, and the plurality of link status simulation units are respectively connected to simulated communication devices, wherein the simulated communication devices comprise a simulated gateway and a simulated communication satellite, and the method comprises:

[0006] In the case where a first link state simulation unit among the plurality of link state simulation units receives a first message from a first simulated communication device, the first link state simulation unit sends the first message to the link connectivity simulation unit;

[0007] The link connectivity simulation unit sends the first message to a second link state simulation unit among the multiple link state simulation units according to the pre-acquired link connectivity simulation parameters, wherein the link connectivity simulation parameters represent changes in connectivity status between ports of the link connectivity simulation unit at different times, port 1 and port 2 of the link connectivity simulation unit are in a connected state at the current moment, port 1 is connected to the first link state simulation unit, and port 2 is connected to the second link state simulation unit;

[0008] The second link state simulation unit sends the first message to a second simulated communication device.

[0009] In a possible embodiment, the second link state simulation unit sending the first message to the second simulated communication device includes:

[0010] The second link state simulation unit randomly generates a state value for each bit in the first message, wherein the value of the state value is greater than or equal to 0 and less than or equal to a preset maximum state value;

[0011] If each state value is less than or equal to a preset threshold, the second link state simulation unit sends the first message to the second simulated communication device, and the preset threshold is associated with a preset bit error rate.

[0012] In a possible embodiment, the method further includes:

[0013] The second link state simulation unit samples some bits from the first message;

[0014] A state value is randomly generated for the sampled bit; wherein the state value is greater than or equal to 0 and less than or equal to a preset maximum state value;

[0015] If the state values ​​corresponding to the sampled bits are all less than or equal to a preset threshold, the second link state simulation unit sends the first message to the second analog communication device, and the preset threshold is associated with a preset bit error rate.

[0016] In a possible embodiment, the method further includes:

[0017] In the event that there is any state value greater than a preset threshold, the second link state simulation unit deletes the first message.

[0018] In a possible embodiment, the second link state simulation unit sending the first message to the second simulated communication device includes:

[0019] After receiving the first message and waiting for a preset time, the second link state simulation unit sends the first message to the second simulation communication device.

[0020] In a possible embodiment, the link simulation device further includes a system control unit, and the method further includes:

[0021] The system control unit sends the link connectivity simulation parameter to the link connectivity simulation unit.

[0022] In a possible embodiment, for each analog communication device, the method further includes:

[0023] The system control unit receives the second message sent by the analog communication device respectively, wherein the second message carries a sending time 1;

[0024] The system control unit records a second receiving time when the second message is received;

[0025] The system control unit sends a third message to the analog communication device, so that after receiving the third message, the analog communication device calculates the time difference according to the sending time one, the receiving time two, the sending time three and the receiving time four of receiving the third message, and adjusts its own system time according to the time difference; wherein the third message carries the sending time one, the receiving time two and the sending time three, and the time difference is: the difference between the system time of the analog communication device and the system time of the system control unit.

[0026] In a possible embodiment, the time difference is: half of the difference between the first sum and the second sum, the first sum is: the sum of the sending time three and the receiving time two, and the second sum is: the sum of the receiving time four and the sending time one.

[0027] In a possible embodiment, the method further includes:

[0028] The system control unit sends topology information to each analog communication device so that each analog communication device sends messages to each other based on the topology information, wherein the topology information indicates: how the connectivity status between each analog communication device changes over time.

[0029] In a second aspect of the present invention, a link simulation device is provided, comprising a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other via the communication bus;

[0030] Memory, used to store computer programs;

[0031] The processor is used to implement any method step described in the first aspect when executing the program stored in the memory.

[0032] In another aspect of the present invention, a computer-readable storage medium is provided, wherein a computer program is stored in the computer-readable storage medium, and when the computer program is executed by a processor, any method step described in the first aspect is implemented.

[0033] An embodiment of the present invention further provides a computer program product comprising instructions, which, when executed on a computer, enables the computer to execute any one of the method steps described in the first aspect above.

[0034] Beneficial effects of the embodiments of the present invention:

[0035] The link simulation method, device and storage medium provided by the embodiments of the present invention, when the first link state simulation unit among multiple link state simulation units receives the first message sent by the first simulated communication device, the first link state simulation unit sends the first message to the link connectivity simulation unit. Since the link connectivity simulation unit pre-stores the link connectivity simulation parameters, the link connectivity simulation unit can send the first message to the second link state simulation unit among the multiple link state simulation units according to the link connectivity simulation parameters, and the second link simulation unit sends the first message to the second simulated communication device, thereby accurately simulating the change of link connectivity of inter-satellite links and feeder links over time due to satellite movement in satellite Internet, completing the simulation of the first message forwarding process, and improving the accuracy of satellite network link feature simulation.

[0036] Of course, it is not necessary to achieve all of the advantages described above at the same time to implement any product or method of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0037] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present invention. For ordinary technicians in this field, other embodiments can also be obtained based on these drawings.

[0038] Figure 1-1 A schematic diagram of the connection relationship between the first link simulation device and the simulation communication device provided in an embodiment of the present invention;

[0039] Figure 1-2 A schematic diagram of a flow chart of a first link simulation method provided by an embodiment of the present invention;

[0040] Figure 2 A schematic diagram of a flow chart of a second link simulation method provided by an embodiment of the present invention;

[0041] Figure 3 A schematic diagram of a flow chart of a third link simulation method provided by an embodiment of the present invention;

[0042] Figure 4 A schematic diagram of a flow chart of a fourth link simulation method provided by an embodiment of the present invention;

[0043] Figure 5-1 A schematic diagram of the connection relationship between the second link simulation device and the simulation communication device provided in an embodiment of the present invention;

[0044] Figure 5-2A schematic diagram of a process flow of a system time unification method provided by an embodiment of the present invention;

[0045] Figure 6 A schematic diagram of the structure of a method for unifying system time provided by an embodiment of the present invention;

[0046] Figure 7 A schematic diagram of a network topology structure of a first link simulation method provided by an embodiment of the present invention;

[0047] Figure 8 A schematic diagram of a network topology structure of a second link simulation method provided by an embodiment of the present invention;

[0048] Fig. 9 A schematic diagram of the connection relationship between the third link simulation device and the simulation communication device provided in an embodiment of the present invention;

[0049] Fig.10 A schematic diagram of the structure of a link simulation device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0050] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field based on the present invention belong to the scope of protection of the present invention.

[0051] An embodiment of the present invention provides a link simulation method, which is applied to a link simulation device, wherein the link simulation device includes a link connectivity simulation unit and a link status simulation unit, wherein the link connectivity simulation is connected to the link status simulation, wherein the link status simulation unit is connected to a simulated communication device, wherein the simulated communication device includes: a simulated gateway and a simulated communication satellite, wherein the simulated communication device can be any electronic device, such as a server, a computer, etc., wherein the simulated communication device runs a data processing program of the communication device and can simulate the functions of the communication device.

[0052] See also Figure 1-1 , which is a schematic diagram of the connection relationship between the first link simulation device and the analog communication device provided in an embodiment of the present invention.

[0053] As can be seen from the figure, the link simulation device includes a link connectivity simulation unit and multiple link state simulation units, each of which is connected to at least one simulated communication device. In addition, the simulated communication device includes multiple simulated gateways, such as simulated gateway 1, and multiple satellite simulated communication devices, such as satellite simulation devices N and M.

[0054] like Figure 1-2As shown, it is a schematic diagram of a flow chart of a first link simulation method provided by an embodiment of the present invention, including:

[0055] S101 , when a first link state simulation unit among a plurality of link state simulation units receives a first message from a first simulated communication device, the first link state simulation unit sends the first message to a link connectivity simulation unit.

[0056] Specifically, there are multiple link state simulation units, and one link connectivity simulation unit is connected to multiple link state simulation units respectively. Each link state simulation unit is connected to at least one analog communication device. The analog communication device can send a first message to the link state simulation unit connected to itself. After receiving the first message, the link state simulation unit forwards the first message to the link connectivity simulation unit through its own port.

[0057] The analog communication device may send the first message at a preset time, or may be manually controlled to trigger the analog communication device to send the first message, or may send the first message in other ways, which is not limited in the embodiment of the present invention.

[0058] In S101, when the first link state simulation unit receives the first message sent by the simulated gateway, it sends the first message to the link connectivity simulation unit through its own port. The link connectivity simulation unit has multiple ports, and each link state simulation unit can have one or more ports. That is to say, when each link state simulation unit has one port, the port of the link connectivity simulation unit corresponds to the port of the link state simulation unit one by one; when each link state simulation unit has multiple ports, the multiple ports of the link connectivity simulation unit are respectively connected to the multiple ports of the same link state simulation unit. Each port of the link state simulation unit corresponds to a communication link between simulated communication devices.

[0059] S102: The link connectivity simulation unit sends a first message to a second link status simulation unit among the multiple link status simulation units according to pre-acquired link connectivity simulation parameters.

[0060] Among them, the link connectivity simulation parameter represents the change of the connectivity status between the ports of the link connectivity simulation unit at different times. Port 1 and port 2 of the link connectivity simulation unit are in a connected state at the current moment. Port 1 is connected to the first link status simulation unit, and port 2 is connected to the second link status simulation unit.

[0061] In S102, since the link connectivity simulation parameter indicates the change of the connectivity status between the ports of the link connectivity simulation unit at different times, when the link connectivity simulation unit receives the first message sent by the first link status simulation unit, it determines the port 2 that is currently connected to the port 1 according to the pre-acquired link connectivity simulation parameter, and sends the first message to the second link status simulation unit through the port 2. Exemplarily, if the link connectivity simulation parameter indicates that the port 1 is connected to the port 2 at time T1, the link connectivity simulation unit sends the first message to the second link status simulation unit through the port 2 at time T1. Each port of the link status simulation unit corresponds to a communication link between simulated communication devices, and the change of the connectivity status between each port of the link status simulation unit at different times is equivalent to the change of the connectivity of the communication link between simulated communication devices over time.

[0062] Exemplarily, the link connectivity simulation parameters at time T1 and time T2 are shown in Table 1 and Table 2. See Table 1 for a table of link connectivity simulation parameters at time T1 provided in an embodiment of the present invention, and see Table 2 for a table of link connectivity simulation parameters at time T2 provided in an embodiment of the present invention.

[0063] Table 1

[0064] Serial number Input Port Output Port Connectivity 1 Port 1 Port 2 Connectivity 2 Port 1 Port Three No connection

[0065] Table 2

[0066] Serial number Input Port Output Port Connectivity 1 Port 1 Port 2 No connection 2 Port 1 Port Three Connectivity

[0067] S103: The second link state simulation unit sends a first message to the second simulated communication device.

[0068] When this embodiment is selected, when the first link state simulation unit among the multiple link state simulation units receives the first message sent by the first simulated communication device, the first link state simulation unit sends the first message to the link connectivity simulation unit. Since the link connectivity simulation unit pre-stores the link connectivity simulation parameters, the link connectivity simulation unit can send the first message to the second link state simulation unit among the multiple link state simulation units according to the link connectivity simulation parameters, and the second link simulation unit sends the first message to the second simulated communication device, thereby accurately simulating the change of link connectivity of inter-satellite links and feeder links over time due to satellite movement in the satellite Internet, completing the simulation of the first message forwarding process, and improving the accuracy of the simulation of satellite network link characteristics.

[0069] In one possible embodiment, see Figure 2 , is a flow chart of a second link simulation method provided by an embodiment of the present invention, which is similar to the aforementioned Figure 1-2Compared with the embodiment shown, the above step S103 includes the following steps S103A and S103B.

[0070] S103A, the second link state simulation unit randomly generates a state value for each bit in the first message.

[0071] The state value is greater than or equal to 0 and less than or equal to the preset maximum state value.

[0072] In S103A, when the second link state simulation unit receives the first message sent by the link connectivity simulation unit, it randomly generates a state value θ for each bit of data in the first message. The state value θ must meet the following conditions:

[0073] θ∈[0,θ max ]

[0074] Among them, θ max It is the preset maximum state value.

[0075] S103B: If each state value is less than or equal to a preset threshold, the second link state simulation unit sends a first message to the second simulated communication device.

[0076] The preset threshold is associated with the preset bit error rate.

[0077] In S103B, if each state value is less than or equal to a preset threshold, the second link state simulation unit sends a first message to the second simulated communication device, and the preset threshold is set based on a preset maximum state value and a preset bit error rate, wherein the preset threshold β, the preset maximum state value θ max The following relationship must be satisfied with the preset bit error rate α:

[0078]

[0079] Among them, α is the preset bit error rate, β is the preset threshold, and θ max It is the preset maximum state value.

[0080] For example, if the maximum state value θ is preset max is 1, the preset bit error rate α is 80%, and the preset threshold β is 0.8. When the state value θ is greater than 0.8, it is considered that a bit error occurs, and the simulated bit error rate is 20%.

[0081] In the above embodiment, the second link state simulation unit randomly generates a state value for each bit in the first message, and the preset threshold is associated with the preset bit error rate. Only when each state value is less than or equal to the preset threshold, the second link state simulation unit sends the first message to the second simulation communication device. Otherwise, it is considered that the bit whose corresponding state value is greater than the preset threshold has a random bit error, and a packet loss due to a bit error has occurred. It can be seen that, through the embodiment of the present invention, when it is determined that the first message has not been lost due to a bit error, the first message can be sent to the second simulation communication device, thereby improving the integrity and accuracy of the satellite network link simulation.

[0082] In one possible embodiment, see Figure 3 , is a flow chart of a second link simulation method provided by an embodiment of the present invention, which is similar to the aforementioned Figure 1-2 Compared with the embodiment shown, the above step S103 includes the following steps S103C, S103D and S103E.

[0083] S103C: The second link state simulation unit samples some bits from the first message.

[0084] In S103C, the second link state simulation unit may sample some bits from the first message in a variety of ways. It may sample some bits from the first message at preset equal intervals, or it may randomly sample some bits from the first message, or it may divide the bit data in the first message into multiple bit groups and randomly sample some bits from each bit group.

[0085] S103D, randomly generate state values ​​for the sampled bits.

[0086] The state value is greater than or equal to 0 and less than or equal to the preset maximum state value.

[0087] In S103D, the second link state simulation unit generates a random state value θ for each bit of data sampled from the first message. The state value θ must meet the following conditions:

[0088] θ∈[0,θ max ]

[0089] Among them, θ max It is the preset maximum state value.

[0090] S103E: If the state values ​​corresponding to the sampled bits are all smaller than or equal to the preset threshold, the second link state simulation unit sends a first message to the second simulated communication device.

[0091] The preset threshold is associated with the preset bit error rate.

[0092] In S103E, if the state values ​​corresponding to the partial bits sampled by the second link state simulation unit from the first message are all less than or equal to the preset threshold, the second link state simulation unit sends the first message to the second analog communication device, and the preset threshold is set based on the preset maximum state value and the preset bit error rate, wherein the preset threshold β, the preset maximum state value θ max The following relationship must be satisfied with the preset bit error rate α:

[0093]

[0094] Among them, α is the preset bit error rate, β is the preset threshold, and θ max It is the preset maximum state value.

[0095] For example, if the maximum state value θ is preset max is 1, the preset bit error rate α is 80%, and the preset threshold β is 0.8. When the state value θ is greater than 0.8, it is considered that a bit error occurs, and the simulated bit error rate is 20%.

[0096] When the above embodiment is selected, since the second link state simulation unit samples some bits from the first message, a state value is randomly generated for each bit data sampled in the first message, and the preset threshold is associated with the preset bit error rate, when the state values ​​corresponding to the sampled bits are all less than or equal to the preset threshold, the second link state simulation unit sends the first message to the second simulation communication device, otherwise, it is considered that the bits corresponding to the state values ​​of the sampled bits are greater than the preset threshold and random bit errors occur, and packet loss due to bit errors occurs. It can be seen that, through the embodiment of the present invention, when it is determined that the first message does not suffer from packet loss due to bit errors, the first message can be sent to the second simulation communication device, and since only the state values ​​of some bits in the first message are judged, the workload of the satellite network link simulation is reduced, thereby improving the integrity, accuracy and speed of the satellite network link simulation.

[0097] In a possible embodiment, if there is any state value greater than a preset threshold, the second link state simulation unit deletes the first message. Exemplarily, if the state value of any bit in the first message is greater than a preset threshold β, the first message is deleted.

[0098] The above embodiment is selected. Since the second link status simulation unit randomly generates a status value for each bit in the first message, if any status value is greater than the status value of the preset threshold, it means that the first message has experienced packet loss due to bit errors, and the second link status simulation unit deletes the first message. It can be seen that through the embodiment of the present invention, it can be determined that when the second simulated communication device receives the first message, the first message has not experienced packet loss due to bit errors, thereby improving the integrity and accuracy of the satellite network link simulation.

[0099] In one possible embodiment, see Figure 4 , is a flow chart of a third link simulation method provided by an embodiment of the present invention, which is similar to the aforementioned Figure 1-2 Compared with the embodiment shown, the above step S103 includes the following step S103F.

[0100] S103F, after receiving the first message and waiting for a preset time, the second link state simulation unit sends the first message to the second simulation communication device.

[0101] Specifically, the second link state simulation unit stores pre-acquired link state simulation parameters, including a preset duration. When the second link state simulation unit receives the first message, it stores the first message in its own memory for a time T according to the preset duration, and then sends the first message to the second simulation communication device connected to itself.

[0102] By selecting the above embodiment, since the second link status simulation unit sends the first message to the second simulated communication device connected to itself after receiving the first message and waiting for a preset time, it can be seen that the embodiment of the present invention can complete the simulation of link delay, can simulate the delay of the satellite network link, and improve the integrity and accuracy of the satellite network link simulation.

[0103] In a possible embodiment, the link simulation device further includes a system control unit, see Figure 5-1 , which is a schematic diagram of the connection relationship between the second link simulation device and the analog communication device provided in an embodiment of the present invention, and is similar to the aforementioned Figure 1-1 Compared with the embodiment shown, the link simulation device further includes a system control unit.

[0104] In the case that the link simulation device further includes a system control unit, the method further includes: the system control unit sending a link connectivity simulation parameter to the link connectivity simulation unit.

[0105] In one possible embodiment, see Figure 5-2 , is a flow chart of a method for unifying system time provided by an embodiment of the present invention, except for the aforementioned Figure 1-2 In addition to the above embodiments, for each analog communication device, the method further includes:

[0106] S501, the system control unit receives the second message sent by the analog communication device respectively, wherein the second message carries a sending time 1;

[0107] S502, the system control unit records a second receiving time when the second message is received;

[0108] S503, the system control unit sends a third message to the analog communication device, so that after receiving the third message, the analog communication device calculates the time difference according to sending time one, receiving time two, sending time three and receiving time four of receiving the third message, and adjusts its own system time according to the time difference.

[0109] The third message carries a sending time 1, a receiving time 2 and a sending time 3, and the time difference is: the difference between the system time of the simulated communication device and the system time of the system control unit.

[0110] For example, Figure 6 As shown, the sending time 1 of the second message is T11, the receiving time 2 of the second message is T22, the sending time 3 of the third message is T33, and the receiving time 4 of the third message is T44.

[0111] By selecting the above embodiment, the simulation communication device calculates the time difference between the system time of the simulation communication device and the system time of the system control unit according to the sending time one and receiving time two of the second message and the sending time three and receiving time four of the third message, and adjusts its own system time according to the time difference, thereby achieving the time unification of the simulation communication device and the system control unit, and can accurately simulate the link characteristics at different times, thereby improving the accuracy of the satellite network link characteristic simulation.

[0112] In a possible embodiment, the time difference is half of the difference between the first sum and the second sum, the first sum is the sum of the sending time 3 and the receiving time 2, and the second sum is the sum of the receiving time 4 and the sending time 1. Figure 6 For example, the simulated communication device sends a request message to the system control unit, which carries the timestamp information T11 of the message; the system control unit receives the request message and records the message receiving time T22; the system control unit sends a response message to the simulated communication device, which carries the time information T11, T22, and T33; the simulated communication device receives the response message, records the message receiving time T44, and calculates the time difference using the following formula:

[0113] ΔT=0.5*(T33+T22-T44-T11)

[0114] Wherein, ΔT is the time difference between the system time of the simulated communication device and the system time of the system control unit.

[0115] By selecting the above embodiment, since the time difference is half of the difference between the first sum and the second sum, and the first sum is the sum of sending time three and receiving time two, and the second sum is the sum of receiving time four and sending time one, the analog communication device can adjust its own system time according to the calculated time difference, thereby realizing the time unification of the analog communication device and the system control unit, and improving the accuracy of the simulation of the satellite network link characteristics.

[0116] In a possible embodiment, the system control unit sends topology information to each simulated communication device so that each simulated communication device sends messages to each other based on the topology information, wherein the topology information represents: how the connectivity status between each simulated communication device changes over time. Specifically, the network topology simulation device simulates and calculates the satellite network topology according to the satellite network architecture design solution, and sends the network topology file to the link simulation device. The system control unit of the link simulation device sends topology information to each simulated communication device through a high-speed control bus, including parameters such as simulation time, link connection object, and link connection status. Exemplarily, the network topology is as follows: Figure 7 and Figure 8 As shown, Figure 7 This is a schematic diagram of the network topology of satellites and gateways at time T1. Figure 8 Figure 1 is a schematic diagram of the network topology structure of satellites and gateways at time T2. It can be seen that at time T1, satellite N is within the communication range of gateway 1, and a connection is established between satellite N and gateway 1. Satellite M is within the communication range of gateway 2, and a connection is established between satellite M and gateway 2. Satellite B is within the communication range of gateway 3, and a connection is established between satellite B and gateway 3. In addition, there are satellites E and A, and the way they establish connections with the gateway is the same as that of satellite N, satellite M, and satellite B. At time T2, satellite N leaves the communication range of gateway 1, and satellite M is within the communication range of gateway 1. At this time, the feeder link between gateway 1 and satellite N is disconnected, and a feeder link between gateway 1 and satellite M is established. Satellite B is within the communication range of gateway 2, and a connection is established between satellite B and gateway 2. In addition, there are satellites E and A, and the way they establish connections with the gateway is the same as that of satellite N, satellite M, and satellite B. At this time, the topology information received by the gateway station 1 is shown in Table 3 below. Referring to Table 3, it is a table of topology information received by the gateway station 1 provided in an embodiment of the present invention:

[0117] Table 3

[0118] Serial number time equipment Connection Object Connection Status 1 T1 Xinguan Station 1 Satellite N connect 2 T1 Xinguan Station 1 Satellite M No connection 3 T2 Xinguan Station 1 Satellite N No connection 4 T2 Xinguan Station 1 Satellite M connect

[0119] By selecting the above embodiment, since the system control unit sends topology information to each analog communication device, each analog communication device sends a first message to each other according to how the connectivity status between each analog communication device changes over time, thereby completing the simulation of the link characteristics and improving the accuracy of the satellite network link characteristic simulation.

[0120] In order to more clearly explain the above link simulation method, the following will be described in conjunction with a specific embodiment. The above method is applied to a link simulation device, see Fig. 9 The link simulation device includes a system control unit, a link state simulation unit and a link connectivity simulation unit. The system control unit has time control, topology information distribution and simulation parameter control functions. The link state simulation unit includes a link simulation parameter register, an error processor and a delay processor. The link connectivity simulation unit includes a topology parameter register and a network topology processor. The above method includes:

[0121] Step A: the system control unit distributes time and topology information to the analog communication device.

[0122] Specifically, the system control unit sends topology information to the simulated communication device via the high-speed control bus, including parameters such as simulation time, link connection object, and link connection state. The specific topology information distribution process has been described in detail above.

[0123] Specifically, the analog communication device calculates the time difference between the system time of the analog communication device and the system time of the system control unit, and adjusts its own system time according to the time difference to achieve time unification with the system control unit.

[0124] Step B: the system control unit performs bit error rate and delay configuration on the link status simulation unit, and performs topology configuration on the link connectivity simulation unit.

[0125] Specifically, the system control unit periodically sends link status simulation parameters, including preset delay and preset bit error rate, to the link status simulation unit through the high-speed control bus; the system control unit sends link connectivity simulation parameters to the link connectivity simulation unit.

[0126] In step C, the link status simulation unit performs simulation of link delay and bit error rate, and the link connectivity simulation unit performs simulation of connectivity.

[0127] Step C1: The link status simulation unit receives a data message sent by a simulated communication device and transmits it to a link connectivity simulation unit.

[0128] Step C2, the link connectivity simulation unit receives the data packet sent by the link state simulation unit, searches for the corresponding port with a connectivity status of "connected" according to the information of the input port, and sends the data packet to another link state simulation unit through the corresponding port. For example, the link connectivity simulation unit receives the data packet from port one, and port one is connected to port two at time T1, then the link connectivity simulation unit sends the data packet to the corresponding link state simulation unit through port two.

[0129] Step C3, the delay processor of the link status simulation unit receives the data message sent by the link connectivity simulation unit, reads the preset time length T in the link simulation parameter register, stores the data message for time T and then sends it to the error processor.

[0130] Step C4, the error processor receives the data message sent by the delay processor, reads the preset bit error rate α in the link simulation parameter register, and generates a preset threshold β. The error processor randomly generates a state value θ for each bit of data in the data message. When any state value is greater than the preset threshold, the data message is destroyed, thereby simulating the link delay, bit error rate and connectivity.

[0131] By selecting the above embodiment, since the analog communication device calculates the time difference between the system time of the analog communication device and the system time of the system control unit, and adjusts its own system time according to the time difference, the time of the analog communication device and the system control unit is unified, and the system control unit sends topology information to the analog communication device through a high-speed control bus, sends link status simulation parameters to the link status simulation unit, and sends link connectivity simulation parameters to the link connectivity simulation module. Therefore, the connectivity, link delay, link bit error rate and other link characteristics of the inter-satellite link and feeder link at different times can be accurately simulated, thereby improving the accuracy of the simulation of satellite network link characteristics.

[0132] The embodiment of the present invention also provides a link simulation device, such as Fig.10 As shown, it includes a processor 1001, a communication interface 1002, a memory 1003 and a communication bus 1004, wherein the processor 1001, the communication interface 1002, and the memory 1003 communicate with each other through the communication bus 1004.

[0133] Memory 1003, used for storing computer programs;

[0134] The processor 1001 is used to execute the program stored in the memory 1003, and implements the following steps:

[0135] In the case where a first link state simulation unit among the plurality of link state simulation units receives a first message from a first simulated communication device, the first link state simulation unit sends the first message to the link connectivity simulation unit;

[0136] The link connectivity simulation unit sends a first message to a second link state simulation unit among the multiple link state simulation units according to the pre-acquired link connectivity simulation parameters, wherein the link connectivity simulation parameters represent changes in connectivity states between ports of the link connectivity simulation unit at different times, port 1 and port 2 of the link connectivity simulation unit are in a connected state at the current time, port 1 is connected to the first link state simulation unit, and port 2 is connected to the second link state simulation unit;

[0137] The second link state simulation unit sends a first message to the second simulated communication device.

[0138] When this embodiment is selected, when the first link state simulation unit among the multiple link state simulation units receives the first message sent by the first simulated communication device, the first link state simulation unit sends the first message to the link connectivity simulation unit. Since the link connectivity simulation unit pre-stores the link connectivity simulation parameters, the link connectivity simulation unit can send the first message to the second link state simulation unit among the multiple link state simulation units according to the link connectivity simulation parameters, and the second link simulation unit sends the first message to the second simulated communication device, thereby accurately simulating the change of link connectivity of inter-satellite links and feeder links over time due to satellite movement in the satellite Internet, completing the simulation of the first message forwarding process, and improving the accuracy of the simulation of satellite network link characteristics.

[0139] The communication bus mentioned in the above electronic device can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The communication bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus.

[0140] The communication interface is used for communication between the above electronic device and other devices.

[0141] The memory may include a random access memory (RAM) or a non-volatile memory (NVM), such as at least one disk memory. Optionally, the memory may also be at least one storage device located away from the aforementioned processor.

[0142] The above-mentioned processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.

[0143] In another embodiment of the present invention, a computer-readable storage medium is provided, in which a computer program is stored. When the computer program is executed by a processor, the steps of any of the above-mentioned link simulation methods are implemented.

[0144] When this embodiment is selected, when the first link state simulation unit among the multiple link state simulation units receives the first message sent by the first simulated communication device, the first link state simulation unit sends the first message to the link connectivity simulation unit. Since the link connectivity simulation unit pre-stores the link connectivity simulation parameters, the link connectivity simulation unit can send the first message to the second link state simulation unit among the multiple link state simulation units according to the link connectivity simulation parameters, and the second link simulation unit sends the first message to the second simulated communication device, thereby accurately simulating the change of link connectivity of inter-satellite links and feeder links over time due to satellite movement in the satellite Internet, completing the simulation of the first message forwarding process, and improving the accuracy of the simulation of satellite network link characteristics.

[0145] In another embodiment of the present invention, a computer program product including instructions is provided, which, when executed on a computer, enables the computer to execute any link simulation method in the above embodiments.

[0146] When this embodiment is selected, when the first link state simulation unit among the multiple link state simulation units receives the first message sent by the first simulated communication device, the first link state simulation unit sends the first message to the link connectivity simulation unit. Since the link connectivity simulation unit pre-stores the link connectivity simulation parameters, the link connectivity simulation unit can send the first message to the second link state simulation unit among the multiple link state simulation units according to the link connectivity simulation parameters, and the second link simulation unit sends the first message to the second simulated communication device, thereby accurately simulating the change of link connectivity of inter-satellite links and feeder links over time due to satellite movement in the satellite Internet, completing the simulation of the first message forwarding process, and improving the accuracy of the simulation of satellite network link characteristics.

[0147] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented by software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present invention is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from a website site, computer, server or data center to another website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrated. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state hard disk Solid State Disk (SSD)), etc.

[0148] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.

[0149] Each embodiment in this specification is described in a related manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the link simulation device, computer program product, and computer-readable storage medium embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiments.

[0150] The above description is only a preferred embodiment of the present invention and is not intended to limit the protection scope of the present invention. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention are included in the protection scope of the present invention.

Claims

1. A link simulation method, characterized in that: The method is applied to a link simulation device, the link simulation device includes a link connectivity simulation unit and a plurality of link status simulation units, the link connectivity simulation unit is connected to the plurality of link status simulation units, the plurality of link status simulation units are respectively connected to simulated communication devices, the simulated communication devices include a simulated gateway and a simulated communication satellite, the method includes: In the case where a first link state simulation unit among the plurality of link state simulation units receives a first message from a first simulated communication device, the first link state simulation unit sends the first message to the link connectivity simulation unit; The link connectivity simulation unit sends the first message to a second link state simulation unit among the multiple link state simulation units according to the pre-acquired link connectivity simulation parameters, wherein the link connectivity simulation parameters represent changes in connectivity status between ports of the link connectivity simulation unit at different times, port 1 and port 2 of the link connectivity simulation unit are in a connected state at the current moment, port 1 is connected to the first link state simulation unit, and port 2 is connected to the second link state simulation unit; The second link state simulation unit sends the first message to a second simulated communication device.

2. The method according to claim 1, characterized in that The second link state simulation unit sends the first message to the second simulated communication device, including: The second link state simulation unit randomly generates a state value for each bit in the first message, wherein the value of the state value is greater than or equal to 0 and less than or equal to a preset maximum state value; If each state value is less than or equal to a preset threshold, the second link state simulation unit sends the first message to the second simulated communication device, and the preset threshold is associated with a preset bit error rate.

3. The method according to claim 1, characterized in that The second link state simulation unit sends the first message to the second simulated communication device, including: The second link state simulation unit samples some bits from the first message; A state value is randomly generated for the sampled bit; wherein the state value is greater than or equal to 0 and less than or equal to a preset maximum state value; If the state values ​​corresponding to the sampled bits are all less than or equal to a preset threshold, the second link state simulation unit sends the first message to the second analog communication device, and the preset threshold is associated with a preset bit error rate.

4. The method according to claim 2 or 3, characterized in that: The method further comprises: In the event that there is any state value greater than a preset threshold, the second link state simulation unit deletes the first message.

5. The method according to claim 1, characterized in that The second link state simulation unit sends the first message to the second simulated communication device, including: After receiving the first message and waiting for a preset time, the second link state simulation unit sends the first message to the second simulation communication device.

6. The method according to any one of claims 1 to 3, characterized in that The link simulation device also includes a system control unit, and the method further includes: The system control unit sends the link connectivity simulation parameter to the link connectivity simulation unit.

7. The method according to claim 6, characterized in that For each analog communication device, the method further includes: The system control unit receives the second message sent by the analog communication device respectively, wherein the second message carries a sending time 1; The system control unit records a second receiving time when the second message is received; The system control unit sends a third message to the analog communication device, so that after receiving the third message, the analog communication device calculates the time difference according to the sending time one, the receiving time two, the sending time three and the receiving time four of receiving the third message, and adjusts its own system time according to the time difference; wherein the third message carries the sending time one, the receiving time two and the sending time three, and the time difference is: the difference between the system time of the analog communication device and the system time of the system control unit.

8. The method according to claim 7, characterized in that The time difference is: half of the difference between the first sum and the second sum, the first sum is: the sum of the sending time three and the receiving time two, and the second sum is: the sum of the receiving time four and the sending time one.

9. The method according to claim 6, characterized in that The method further comprises: The system control unit sends topology information to each analog communication device so that each analog communication device sends messages to each other based on the topology information, wherein the topology information indicates: changes in connectivity status between each analog communication device over time.

10. A link simulation device, characterized in that: It includes a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other through the communication bus; Memory, used to store computer programs; A processor, for implementing the method steps described in any one of claims 1 to 9 when executing a program stored in a memory.

11. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method steps described in any one of claims 1 to 9 are implemented.