A ring topology network and its construction method, and data forwarding method
By adopting a circular topology network in the optical fiber communication, the logic logic of the packet is transferred to the network card device, and the problem of high optical switch costs and the unable to achieve a full interconnection of the optical switch device cannot be achieved, and the low -cost and efficient optical fiber communication group network.
Patent Information
- Application Number
- CN202210310665.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-03-28
- Publication Date
- 2025-01-28
- Estimated Expiration
- 2042-03-28
AI Technical Summary
In existing optical communications, optical switches are expensive and large in size. Optical switching devices cannot achieve real-time full interconnection and have delay problems, making it difficult to meet the needs of small-scale optical fiber communication networking.
Adopt a ring topological network to transfer the forwarding logic of the data packet from the optical switch to the network card device. Each terminal node configuration network card equipment and optical module, through the optical module receiving and transmission of optical signals to achieve the cache and forwarding of the data packet.
The low -cost and high -efficiency data transmission of small -scale optical fiber communication groups has been realized, the dependence on high -cost optical switches is eliminated, and the network performance of full interconnection and low latency is achieved.
Smart Images

Figure CN114614898B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer communication, in particular to the field of optical communication in the field of computer communication, and more particularly to a ring topology network and a construction method thereof, and a data forwarding method. Background Art
[0002] In network communications at 100Gbps and higher rates, the use of optical fiber to transmit optical signals has an overwhelming advantage over the use of electrical signals for data transmission. Optical fiber has been widely used to replace copper cables for data transmission, but optical fiber transmission also has its own weaknesses, that is, the exchange and forwarding of data packets are not as flexible and easy to implement as in the electrical field. At present, the equipment used in the field of optical switching mainly includes optical switches and optical switch devices. Among them, the principle of optical switches is the same as that of electrical switches. The photoelectric conversion is completed through the connected optical modules, and the data packets are forwarded using electrical signals inside; the optical switch device constructs a physical point-to-point link between two communication nodes through its link reconfigurable characteristics. When there is a need for data packet forwarding, the link reconstruction is initiated to directly connect the source node and the destination node of the data packet to be forwarded, thereby avoiding the behavior of data packet forwarding. However, optical switches are very expensive. The market price of an optical switch with 24 interfaces is usually more than 100,000, and this price does not include the optical modules required for connection. For example, building a switching network with 12 nodes requires 12 optical modules connected to terminal devices and 12 additional optical modules for connecting optical switches.
[0003] Using optical switch devices for switching can avoid the requirement for additional optical modules, thereby reducing deployment costs, but it will introduce other problems. For example, if an optical crossbar is used for interconnection, due to the characteristics of the optical crossbar, the manufacturing cost of the crossbar increases exponentially with the number of nodes involved, and the optical crossbar itself does not have a cache mechanism. When deployed, customized network card devices and additional crossbar control chips are required to complete the communication within the entire network. In addition, due to the characteristics of the optical switch device, in many cases, the use of optical crossbars is not only difficult to save costs, but also reduces network performance. Another common optical switch device is the BENES optical switch array, which has the same functions as the optical crossbar, but the number of optical switch devices required is much lower than that of the optical crossbar. For example, under the condition of 8-node interconnection, the optical crossbar requires 64 optical switch devices, but the BENES optical switch array only requires 20. In addition, due to the long reconstruction logic calculation time of the BENES optical switch array, which reaches the millisecond level, the use of the BENES optical switch array will bring significant performance loss and generate large delays.
[0004] In general, the following problems exist in data transmission in existing optical communications:
[0005] 1. For small-scale fiber-optic communication networks, the solution of using optical switches is that the optical switches themselves are expensive and too large, which is not conducive to the interconnection of multiple CPUs on the same motherboard. In addition, the optical switches themselves also have a lot of design difficulties. At the same time, when using optical switches, each node needs to be connected to at least two optical modules, which further increases the cost.
[0006] 2. Currently, the use of optical switch devices cannot cache data and cannot achieve real-time full interconnection. While causing scheduling problems, it also has additional requirements for networking equipment, increasing costs, and the use of optical switch devices will produce large delays. Summary of the invention
[0007] Therefore, the purpose of the present invention is to overcome the defects of the above-mentioned prior art and provide a ring topology network and a construction method thereof, and a data forwarding method.
[0008] According to a first aspect of the present invention, there is provided a data forwarding device using a ring topology network, wherein the device comprises a plurality of terminal nodes, all of which are serially connected to form a closed ring loop, the output end of the previous terminal node is connected to the input end of the next terminal node, and each of the terminal nodes is configured with a network card device and an optical module, wherein: the optical module is used to receive an input optical signal, and convert the optical signal into an electrical signal for caching and sending it to the network card device in the form of a data packet, and convert the data packet to be forwarded into an optical signal and then send it outward; the network card device is used to process the received data packet according to a pre-configured forwarding rule, wherein the pre-configured forwarding rule comprises: when the destination address of the data packet is the local host, it is sent to the host where it is located for storage, when the destination address of the data packet is not the local host, it is sent to the optical module for forwarding, and when the source address of the data packet is the local host, it is discarded.
[0009] In some embodiments of the present invention, the optical module configured for each terminal node includes: a receiver, which is used to receive input optical signals and convert the optical signals into electrical signals and cache them in the form of data packets in a receiving buffer; a receiving buffer, which is used to cache received data packets for sending to a network card device; a transmitter, which is used to convert data packets in the sending buffer into optical signals and send them outward; and a sending buffer, which is used to cache data packets that need to be sent.
[0010] Preferably, the ring topology network is a unidirectional ring network, and a transmitter in an optical module of each terminal node is connected to a receiver in an optical module of an adjacent terminal node through an optical fiber.
[0011] In some embodiments of the present invention, when the destination address of the data packet in the data forwarding rules pre-configured by the network card device is non-local, the network card device is configured to process the data packet corresponding to the input optical signal in the following manner: when the destination address of the data packet is a broadcast address, it is sent to the optical module for forwarding and sent to the host for storage; when the destination address of the data packet is a multicast address, it is sent to the optical module for forwarding, wherein when the local machine is in the multicast domain, it is forwarded and sent to the host for storage; when the destination address of the data packet is other destination addresses, it is sent to the optical module for forwarding.
[0012] Preferably, the forwarding rules are pre-configured in the network card device by the following methods: by rewriting the network card driver in the network card device; or by directly embedding the data packet forwarding rules into the network card device.
[0013] According to a second aspect of the present invention, there is provided a method for constructing a data forwarding device using a ring topology network as described in the first aspect of the present invention, the method comprising: G1, obtaining the scale of terminal nodes of the ring topology network to be constructed, and obtaining a number of terminal nodes corresponding to the scale; G2, connecting the terminal nodes in step G1 in sequence through optical fiber serial connection to form a closed-loop ring network, wherein the output end of the optical module of the previous terminal node is connected to the input end of the optical module of the next terminal node; G3, in response to the need to increase terminal nodes in the ring topology network, disconnecting any two terminal nodes, and serially connecting the newly added terminal nodes between the two disconnected terminal nodes in sequence.
[0014] According to a third aspect of the present invention, there is provided a data forwarding method for a data forwarding device using a ring topology network as described in the first aspect of the present invention, the method comprising: S1, a terminal node that receives an input optical signal converts the optical signal into an electrical signal through an optical module for caching and sends the signal to a network card device of the terminal node in the form of a data packet; S2, the network card device of the terminal node processes the received data packet according to a pre-configured forwarding rule, wherein the pre-configured forwarding rule comprises: when the destination address of the data packet is the local host, the data packet is sent to the host for storage, when the destination address of the data packet is not the local host, the data packet is sent to the optical module for forwarding, and when the source address of the data packet is the local host, the data packet is discarded.
[0015] Preferably, step S2 includes: S21, sending the data packet to be forwarded to the optical module of the terminal node through the network card device and converting it into an optical signal through the optical module and sending it outward; or S22, sending the data packet that does not need to be forwarded to the host through the network card device for storage or discarding.
[0016] Compared with the prior art, the advantages of the present invention are:
[0017] 1. The data forwarding logic in traditional data transmission is transferred from the switch to the network card device, eliminating the dependence on the switching device and occupying a very small area.
[0018] 2. By building a distributed ring topology network, under the Ethernet protocol, only the network card device needs to be configured once to enable all network devices in the ring topology network to have the function of mutual access, thus achieving full interconnection and making the network easy to build.
[0019] 3. The data forwarding logic is distributed inside all nodes participating in the networking. Each node has its own forwarding logic, so that each node only needs to be connected to one optical module. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] The embodiments of the present invention are further described below with reference to the accompanying drawings, in which:
[0021] Figure 1 A schematic diagram of a ring topology network structure according to an embodiment of the present invention;
[0022] Figure 2 A schematic diagram of a method flow for constructing a ring topology network according to an embodiment of the present invention;
[0023] Figure 3 The present invention is a flowchart of a data forwarding method based on a ring topology network according to an embodiment of the present invention. DETAILED DESCRIPTION
[0024] In order to make the purpose, technical solutions and advantages of the present invention more clearly understood, the present invention is further described in detail below through specific embodiments in conjunction with the accompanying drawings. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.
[0025] Since the Ethernet protocol, TCP / IP protocol and MAC protocol are all well-known technologies, the present invention does not elaborate on the specific protocols involved, but only explains the device for implementing data forwarding, how to implement ring topology networking and the modified data forwarding rules.
[0026] First, the technical idea and framework of the present invention are introduced. As mentioned in the background technology section, most of the data transmission schemes in existing optical communications are implemented using optical switches or optical switch devices. Among them, the network topology structure in the scheme of using optical switches for data communication under the existing Ethernet protocol is usually configured as a star or tree structure, and the network card itself does not have forwarding operations, requiring software and hardware coordination, and the forwarding logic is executed by the optical switch. The optical switch completes the photoelectric conversion through the connected optical module, and uses electrical signals inside it to complete the forwarding of data packets. However, the price of the optical switch itself is very high, and it occupies a large area, which is not conducive to small-scale data transmission. At the same time, when using an optical switch, each node needs to be connected to at least two optical modules, that is, a switching network containing N nodes requires at least 2N optical modules, which further increases the cost. In the scheme using an optical switch device, point-to-point data transmission is achieved by constructing a physical link between two communication nodes, but data cannot be cached and full interconnection cannot be achieved, and the performance is poor. It is not suitable for small-scale data transmission and network communication modes that require frequent changes in target nodes. At the same time, additional requirements are placed on networking equipment, which not only increases costs but also generates a lot of delays. In order to solve the above problems, the present invention has found through the study of the ring topology network that the forwarding logic of the data packet is transferred from the optical switch to the network card device by using the ring topology network, so that the dependence on the switching device can be eliminated. The solution of the present invention transfers the forwarding logic from the optical switch to the network card device of each terminal node. At the same time, each node only needs one optical module to realize the real-time full interconnection of the entire ring topology network, which is the simplest and most economical solution. The solution of the present invention is better than the solution of using the optical switch device. By reasonably matching and actively controlling the flow, the delay can be controlled at the microsecond level. In summary, the present invention proposes a new type of data forwarding device for constructing a ring topology network and modifying the data packet forwarding rules. Under the Ethernet protocol, only one-time configuration of the network card device connected to the network can enable each node in the ring topology network to have the ability to access other nodes. When using the solution proposed by the present invention for small-scale networking, compared with the solution of using an optical switch or an optical switch device in the traditional method, the demand for optical modules is reduced by half compared with the solution of using an optical switch. At the same time, not only is there no connection restriction using the optical switch solution, but also avoids the dependence on the optical switch or the optical switch device, greatly reducing the cost and simple operation.
[0027] In order to better understand the present invention, the present invention is described in detail below through specific embodiments.
[0028] According to one embodiment of the present invention, the present invention provides a data forwarding device using a ring topology network, wherein the ring topology network is a unidirectional ring network, and the device includes a plurality of terminal nodes, all of which are serially connected to form a closed loop, and the output end of the previous terminal node is connected to the input end of the next terminal node, and each terminal node is configured with a network card device and an optical module, such as Figure 1 The ring topology network consists of 4 terminal nodes connected together. The configuration of each terminal node is described in detail below.
[0029] An optical module is a module that connects an optical fiber to a network interface, and usually contains an optical-to-electrical converter and a laser for realizing optical-to-electrical conversion. The optical module described in the present invention can adopt a general optical module, such as SFP, SFP+, QSFP, QSFP28 and other optical modules. According to one embodiment of the present invention, the optical module in the present invention is used to receive an input optical signal, convert the optical signal into an electrical signal for caching and send it to a network card device in the form of a data packet, and convert the data packet to be forwarded back into an optical signal and send it outward. For example Figure 1 As shown, the optical module of each terminal node includes: a receiver, a receiving buffer, a sending buffer, and a transmitter, wherein the receiver is used to receive the input optical signal and convert the optical signal into an electrical signal, and cache it in the receiving buffer in the form of a data packet; the receiving buffer is used to cache the received data packets to send to the network card device; the transmitter is used to convert the data packets in the sending buffer into optical signals and send them outward; the sending buffer is used to cache the data packets that need to be sent. According to one embodiment of the present invention, one end of the optical module can be connected to a single-mode or multi-mode optical fiber, and the other end is used to connect to the network interface of the network card, wherein the port for connecting the optical fiber includes two groups, corresponding to the receiver end and the transmitter end respectively. It should be noted that the optical module usually applies wavelength division multiplexing technology, so that multiple channels can be transmitted simultaneously through one physical optical fiber, such as the QSFP28 specification optical module defines 8 links, 4 for sending and 4 for receiving, while the CWDM4 specification optical module only needs 2 optical fibers to achieve communication. Since the receiver channel and transmitter channel of the optical module are separated, in the ring topology network provided by the present invention, each terminal node is connected through an optical module, that is, the transmitter in the optical module of each terminal node is connected to the receiver in the optical module of the adjacent terminal node through optical fiber.
[0030] The network card device is used to process the received data packets according to the pre-configured forwarding rules, wherein the pre-configured forwarding rules include: when the destination address of the data packet is the local machine, it is sent to the host where it is located for storage; when the destination address of the data packet is not the local machine, it is sent to the optical module for forwarding; when the source address of the data packet is the local machine, it is discarded. Among them, when the destination address of the data packet is not the local machine, it includes a variety of situations, including: when the destination address of the data packet is a broadcast address, it is sent to the optical module for forwarding and sent to the host for storage; when the destination address of the data packet is a multicast address, it is sent to the optical module for forwarding, wherein when the local machine is in the multicast domain, it is forwarded and sent to the host for storage; when the destination address of the data packet is other destination addresses, it is sent to the optical module for forwarding.
[0031] It should be noted that the data packets generated by the host where the network card device is located are also converted into optical signals by the transmitter sent to the optical module by the network card device and sent outward. When the data packets generated by the host itself need to be sent and conflict with the input data packets that need to be forwarded, the network card device can actively control so that only data packets can be forwarded or data packets generated by the local machine can be sent at a time. For example, the forwarding traffic and the own traffic can be controlled separately, wherein the process of controlling the forwarding traffic includes: when the proportion of the forwarding traffic exceeds a preset threshold within a certain time interval, or the throughput exceeds a preset threshold, the subsequent traffic is rejected (i.e., cached and temporarily stored), until the indicator within a certain time interval is lower than the preset threshold and then reopened. The method of controlling the own traffic is similar and will not be repeated here.
[0032] Preferably, since the communication protocol used in the application layer is often based on the TCP / IP protocol, it is necessary to set the IP address of each terminal node network card device to ensure that the IP address of the network card device of each terminal node is different and is in the same subnet. Since the network is distributed, there is no need to set gateway parameters.
[0033] According to one embodiment of the present invention, the rule that the network card device discards the received data packet whose source address is the local machine is an exit mechanism. If it is not discarded, the data packet will be forwarded infinitely in the ring topology network, causing network congestion. When the data packet is forwarded in the ring topology network for a week, it returns to the terminal node where the host that originally sent the data packet is located, and it is discarded at this time. The ring topology network provided by the present invention uses the IPTables forwarding table mechanism to realize the forwarding and discarding functions, and the network card device itself does not include the IPTables forwarding table mechanism, so it is realized by modifying the data forwarding rules. The ring topology network provided by the present invention is realized by pre-configuring the forwarding rules in the network card device, including: configuring by rewriting the network card driver in the network card device or by directly embedding the data packet forwarding rules into the network card device for configuration. It should be noted that directly embedding the forwarding rules into the network card device is the most efficient way. In this way, the forwarding rules only need to be programmably implemented using the built-in functions of the smart network card, such as based on the P4 language, without changing the rest of the network card device; although it can also be realized by rewriting the network card driver in the network card device, the delay generated increases and the efficiency will be reduced. It should be noted that the forwarding rules implemented by the network card device mentioned in the present invention are only for smart network cards. For most commercially available non-intelligent network card products, since they cannot implement functions such as forwarding and classification filtering, they can only send data packets to the host operating system for implementation.
[0034] In addition to the above solution of pre-configuring the forwarding rules in the network card device, the network card device can also be completely taken over by the user application to manually process the data packet, such as Intel's DPDK technology. When this method is adopted, the network card device in each terminal node of the ring topology network no longer determines the forwarding rules based on the information contained in the data packet, but converts the optical signal into an electrical signal based on the result of manual processing and sends it to the host for storage or discarding, or converts it back into an optical signal through a transmitter for forwarding.
[0035] According to an embodiment of the present invention, the present invention also provides a method for constructing a data forwarding device using a ring topology network, such as Figure 2 As shown, the method includes steps G1, G2, and G3, and each step is described in detail below.
[0036] In step G1, the scale of terminal nodes of the ring topology network to be constructed is obtained, and the number of terminal nodes corresponding to the scale is obtained.
[0037] In step G2, the terminal nodes in step G1 are serially connected in sequence through optical fibers to form a closed ring network, wherein the output end of the optical module of the previous terminal node is connected to the input end of the optical module of the next terminal node.
[0038] In step G3, in response to the need to add terminal nodes to the ring topology network, disconnect any two terminal nodes, and string the newly added terminal nodes in sequence between the two disconnected terminal nodes. When the ring topology network needs to add terminal nodes, each terminal node clears its own routing table cache and initiates a broadcast request. For example, terminal node A sends a data packet, and the adjacent terminal node B receives it and adds the corresponding table entry in its own routing table entry while saving it to the local machine, and then sends it to C, repeating this step until A receives the data packet again. At this time, each terminal node of the entire ring topology network records A's routing information, and then the remaining port nodes each perform the above steps until each terminal node records the routing information of all other terminal nodes in the ring topology network, completes the construction of the routing table and completes the networking. The situation of reducing terminal nodes is similar to that of adding terminal nodes, and will not be repeated here.
[0039] According to an embodiment of the present invention, the present invention also provides a data forwarding method based on the above data forwarding device, such as Figure 3 As shown, the method includes steps S1 and S2, and each step is described in detail below.
[0040] In step S1, the optical module of the terminal node that receives the input optical signal converts the optical signal into an electrical signal through the optical module for buffering and sends the electrical signal to the network card device of the terminal node in the form of a data packet.
[0041] In step S2, the network card device of the terminal node processes the received data packet according to the pre-configured forwarding rules, wherein step S2 also includes: sending the data packet that needs to be forwarded to the optical module of the terminal node and reconverting it into an optical signal through a transmitter and sending it outward, or sending the data packet that does not need to be forwarded to the host for storage or discarding.
[0042] Based on the above steps, when the terminal node receives the optical signal input, due to the characteristics of the ring topology network, as long as there is a terminal node containing the destination MAC address of the data packet in the network, the data packet can be correctly forwarded to the terminal node where the corresponding destination MAC address is located.
[0043] Compared with the prior art, the advantages of the present invention are:
[0044] 1. The data forwarding logic in traditional data transmission is transferred from the switch to the network card device, eliminating the dependence on the switching device and occupying a very small area.
[0045] 2. By building a distributed ring topology network, under the Ethernet protocol, only the network card device needs to be configured once to enable all network devices in the ring topology network to have the function of mutual access, thus achieving full interconnection and making the network easy to build.
[0046] 3. The data forwarding logic is distributed inside all nodes participating in the networking. Each node has its own forwarding logic, so that each node only needs to be connected to one optical module.
[0047] It should be noted that although the above describes the various steps in a specific order, it does not mean that the steps must be executed in the above specific order. In fact, some of these steps can be executed concurrently or even in a different order as long as the required functions can be achieved.
[0048] The present invention may be a system, a method and / or a computer program product. The computer program product may include a computer-readable storage medium carrying computer-readable program instructions for causing a processor to implement various aspects of the present invention.
[0049] Computer readable storage medium can be a tangible device that holds and stores instructions used by an instruction execution device. Computer readable storage medium can include, for example, but is not limited to, an electrical storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination thereof. More specific examples (non-exhaustive list) of computer readable storage medium include: a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a static random access memory (SRAM), a portable compact disk read-only memory (CD-ROM), a digital versatile disk (DVD), a memory stick, a floppy disk, a mechanical encoding device, for example, a punch card or a protruding structure in a groove on which instructions are stored, and any suitable combination thereof.
[0050] The embodiments of the present invention have been described above, and the above description is exemplary, not exhaustive, and is not limited to the disclosed embodiments. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The selection of terms used herein is intended to best explain the principles of the embodiments, practical applications, or technical improvements in the market, or to enable other persons of ordinary skill in the art to understand the embodiments disclosed herein.
Claims
1. A data forwarding device using a ring topology network, wherein: The device includes a plurality of terminal nodes, all of which are serially connected to form a closed loop, the output end of the previous terminal node is connected to the input end of the next terminal node, and each terminal node is configured with a network card device and an optical module, wherein: The optical module is used to receive input optical signals, convert the optical signals into electrical signals for caching and send them to the network card device in the form of data packets, and convert the data packets to be forwarded into optical signals and then send them outward; wherein the optical module configured for each terminal node includes: a receiver, for receiving an input optical signal and converting the optical signal into an electrical signal and buffering it in a receiving buffer in the form of a data packet; A receiving buffer is used to cache received data packets for sending to the network card device; A transmitter, used for converting data packets in a sending buffer into optical signals and sending the optical signals outward; Send buffer, used to cache data packets that need to be sent; The network card device is used to process the received data packets according to the pre-configured forwarding rules, wherein the pre-configured forwarding rules include: sending the data packet to the host for storage when the destination address of the data packet is the local machine, sending the data packet to the optical module for forwarding when the destination address of the data packet is not the local machine, and discarding the data packet when the source address of the data packet is the local machine; The ring topology network is a unidirectional ring network, and a transmitter in an optical module of each terminal node is connected to a receiver in an optical module of an adjacent terminal node through an optical fiber.
2. The device according to claim 1, characterized in that When the destination address of the data packet in the data forwarding rule pre-configured by the network card device is non-local, the network card device is configured to process the input data packet in the following manner: When the destination address of the data packet is a broadcast address, it is sent to the optical module for forwarding and to the host for storage; When the destination address of the data packet is a multicast address, it is sent to the optical module for forwarding. When the local device is in the multicast domain, it is forwarded and sent to the host for storage. When the destination address of the data packet is other destination addresses, it is sent to the optical module for forwarding.
3. The device according to claim 1, characterized in that The forwarding rules are pre-configured in the network card device by the following method: Configure by rewriting the network card driver in the network card device; or By embedding packet forwarding rules directly into the network card device for configuration.
4. A method for constructing a data forwarding device using a ring topology network as claimed in any one of claims 1 to 3, characterized in that: The method comprises: G1. Obtain the terminal node scale of the ring topology network to be constructed, and obtain the number of terminal nodes corresponding to the scale; G2. Connect the terminal nodes in step G1 in series through optical fibers to form a closed ring network, wherein the output end of the optical module of the previous terminal node is connected to the input end of the optical module of the next terminal node.
5. The method according to claim 4, characterized in that The method further comprises: G3. In response to the need to increase terminal nodes in the ring topology network, disconnect any two terminal nodes, and sequentially connect the newly added terminal nodes between the two disconnected terminal nodes.
6. A data forwarding method based on the data forwarding device using a ring topology network according to any one of claims 1 to 3, characterized in that: The method comprises: S1, the terminal node receiving the input optical signal converts the optical signal into an electrical signal through an optical module for buffering and sends it to the network card device of the terminal node in the form of a data packet; S2. The network card device of the terminal node processes the received data packet according to the pre-configured forwarding rules, wherein the pre-configured forwarding rules include: when the destination address of the data packet is the local machine, it is sent to the host for storage; when the destination address of the data packet is not the local machine, it is sent to the optical module for forwarding; when the source address of the data packet is the local machine, it is discarded.
7. The method according to claim 6, characterized in that The step S2 comprises: S21, sending the data packet to be forwarded to the optical module of the terminal node through the network card device and converting it into an optical signal through the optical module and sending it outward; or S22. Send the data packets that do not need to be forwarded to the host through the network card device for storage or discarding.
8. A computer-readable storage medium, characterized in that: A computer program is stored thereon, and the computer program can be executed by a processor to implement the steps of the method as claimed in any one of claims 4-5 or 6-7.
9. An electronic device, characterized in that: include: one or more processors; A storage device for storing one or more programs, which, when executed by the one or more processors, enables the electronic device to implement the steps of the method as described in any one of claims 4-5 or 6-7.
Citation Information
Patent Citations
Optical fiber communication system for airship
CN104079354A