CN116112291B - Unidirectional transmission network card and control method thereof - Google Patents

Unidirectional transmission network card and control method thereof Download PDF

Info

Publication number
CN116112291B
CN116112291B CN202310380486.5A CN202310380486A CN116112291B CN 116112291 B CN116112291 B CN 116112291B CN 202310380486 A CN202310380486 A CN 202310380486A CN 116112291 B CN116112291 B CN 116112291B
Authority
CN
China
Prior art keywords
network
chip
optical module
interface
unidirectional
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202310380486.5A
Other languages
Chinese (zh)
Other versions
CN116112291A (en
Inventor
阳厚祎
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hunan Boshengxin Microelectronics Technology Co ltd
Original Assignee
Hunan Boshengxin Microelectronics Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hunan Boshengxin Microelectronics Technology Co ltd filed Critical Hunan Boshengxin Microelectronics Technology Co ltd
Priority to CN202310380486.5A priority Critical patent/CN116112291B/en
Publication of CN116112291A publication Critical patent/CN116112291A/en
Application granted granted Critical
Publication of CN116112291B publication Critical patent/CN116112291B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/02Network architectures or network communication protocols for network security for separating internal from external traffic, e.g. firewalls
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B10/00Transmission systems employing electromagnetic waves other than radio-waves, e.g. infrared, visible or ultraviolet light, or employing corpuscular radiation, e.g. quantum communication
    • H04B10/25Arrangements specific to fibre transmission
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B10/00Transmission systems employing electromagnetic waves other than radio-waves, e.g. infrared, visible or ultraviolet light, or employing corpuscular radiation, e.g. quantum communication
    • H04B10/80Optical aspects relating to the use of optical transmission for specific applications, not provided for in groups H04B10/03 - H04B10/70, e.g. optical power feeding or optical transmission through water
    • H04B10/85Protection from unauthorised access, e.g. eavesdrop protection
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/20Network architectures or network communication protocols for network security for managing network security; network security policies in general
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/50Reducing energy consumption in communication networks in wire-line communication networks, e.g. low power modes or reduced link rate

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Hardware Design (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Electromagnetism (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses a unidirectional transmission network card and a control method thereof, wherein the network card comprises a golden finger module, a network controller chip, a network PHY chip, an SPI firmware chip, a power chip and an optical module interface; the optical module interface is connected with the network PHY chip; the upstream of the network controller chip is connected with the terminal through the golden finger module; the downstream of the network controller chip is connected with the network PHY chip through an RGMII interface and an MDIO management interface, and outputs a gigabit network port; the SPI firmware chip is connected with the network controller chip through an SPI interface; the optical module interface is used for connecting the optical modules through a single optical fiber jumper; the method comprises the following steps: the network PHY chip configures the values of the related registers through the MDIO management interface of the network controller chip to realize the unidirectional mode of the FIBER after the firmware is configured. The technical scheme provided by the invention aims to solve the defects of the network physical isolation or the safety isolation gatekeeper in the prior art.

Description

Unidirectional transmission network card and control method thereof
Technical Field
The invention relates to the technical field of data transmission, in particular to a control method of a unidirectional transmission network card and the unidirectional transmission network card.
Background
The development of the Internet brings convenience, and simultaneously brings great challenges to network security, data leakage events are layered out, and the important units and enterprises adopt two sets of networks of the intranet and the extranet to realize physical isolation or adopt a safe isolation gatekeeper to realize data security transmission in face of secret leakage risks.
However, in the physical isolation method of the two sets of networks of the intranet and the extranet, when the intranet and the extranet need to exchange data, external storage devices such as an optical disc, a USB flash disk, a mobile hard disk and the like are needed, so that the method is inconvenient and the risk of bringing viruses is also present. The safety isolation network gate can bring cost improvement for the first time, portability is not achieved, meanwhile, data safety transmission is achieved by means of software monitoring, design defects possibly exist, and data safety cannot be completely guaranteed.
Therefore, it is desirable to provide a unidirectional transmission network card to solve the above-mentioned drawbacks of the prior art in which the network is physically isolated or the network gate is safely isolated.
Disclosure of Invention
The invention mainly aims to provide a control method of a unidirectional transmission network card and the unidirectional transmission network card, which aim to solve the defects of physical isolation or safe isolation of a network gate in the prior art.
In order to achieve the above objective, in the control method of the unidirectional transmission network card provided by the present invention, the unidirectional transmission network card includes a golden finger module, a network controller chip, a network PHY chip, an SPI firmware chip, a power supply chip, and an optical module interface; firmware information is stored in the SPI firmware chip;
the network controller chip is respectively connected with the golden finger module, the network PHY chip, the SPI firmware chip and the power supply chip; the optical module interface is connected with the network PHY chip; the golden finger module is connected with the power chip;
the upstream of the network controller chip is connected with a terminal through a golden finger module; the downstream of the network controller chip is connected with the network PHY chip through an RGMII interface and an MDIO management interface respectively so as to output a gigabit network port;
the SPI firmware chip is connected with the network controller chip through an SPI interface;
the power supply chip is used for supplying power to the network controller chip;
the optical module interface is used for connecting an optical module, and the optical module is used for connecting an optical module connected with another unidirectional transmission network card through a single optical fiber jumper;
the method comprises the following steps:
the network PHY chip configures the value of the related register through the MDIO management interface of the network controller chip so as to realize the unidirectional mode of the FIBER after the firmware is configured.
Preferably, the step of configuring the value of the related register by the network PHY chip through the MDIO management interface of the network controller chip to implement the unidirectional mode of the FIBER after the firmware configuration includes:
the sds extReg0xA5 bit15 clear 0, turning off autosense;
com extReg0xA006 bit0 set 1, select gigabit;
the sps miiReg0x00 bit12 clear 0, configure FIBER as mandatory;
sds miiReg0x00 bit15 sets to 1, enabling unidirection.
Preferably, the number of the network PHY chips is multiple, and the downstream of the network controller chip is connected with each network PHY chip through an RGMII interface and an MDIO management interface respectively so as to output gigabit network ports with the same number as the network PHY chips; each network PHY chip is used for connecting with an optical module through an optical module interface;
the control method of the unidirectional transmission network card further comprises the following steps:
presetting a data transmission direction of an optical module interface connected with each network PHY chip;
acquiring an allowable transmission direction set by each storage block in the terminal, and selecting a data transmission direction in the same direction as the allowable transmission direction from optical module interfaces connected with all network PHY chips to determine an associated optical module interface;
and establishing a corresponding relation between each storage block and the corresponding associated optical module interface so as to realize the transmission of the data of each storage block according to the allowable transmission direction.
Preferably, the step of acquiring the allowed transmission direction set by each storage block in the terminal, selecting a data transmission direction in the same direction as the allowed transmission direction from the optical module interfaces connected to the respective network PHY chips, so as to determine an associated optical module interface, includes:
setting a first data storage block with a first requirement in a terminal to only support a data receiving mode, and determining at least one optical module interface only supporting a data receiving direction as an associated optical module interface of the first data storage area;
setting a second data storage block with a second requirement in the terminal to only support a data transmission mode, and determining at least one optical module interface only supporting a data transmission direction as an associated optical module interface of the second data storage area;
and setting a third data storage block with a third requirement in the terminal to simultaneously support a data receiving and transmitting mode, and determining at least one optical module interface simultaneously supporting data receiving and transmitting as an associated optical module interface of the third data storage area.
Preferably, the control method of the unidirectional transmission network card further includes:
acquiring a set data transmission mode;
when the data transmission mode is unidirectional transmission, executing the step that the network PHY chip configures the value of a related register through an MDIO management interface of the network controller chip so as to realize the unidirectional mode of the FIBER after firmware configuration;
when receiving an instruction for changing unidirectional transmission into bidirectional transmission, the network PHY chip configures the value of a relevant register through an MDIO management interface of the network controller chip so as to realize a bidirectional mode of the FIBER after firmware configuration.
Preferably, the control method of the unidirectional transmission network card further comprises:
detecting a data transmission instruction;
acquiring the data quantity of data to be transmitted according to the data transmission instruction;
and according to the data volume, matching the data to be transmitted with a plurality of kilomega network ports for data transmission.
In addition, in order to achieve the above purpose, the invention also provides a unidirectional transmission network card, which applies the control method described above, wherein the unidirectional transmission network card comprises a golden finger module, a network controller chip, a network PHY chip, an SPI firmware chip, a power chip and an optical module interface; firmware information is stored in the SPI firmware chip;
the network controller chip is respectively connected with the golden finger module, the network PHY chip, the SPI firmware chip and the power supply chip; the optical module interface is connected with the network PHY chip; the golden finger module is connected with the power chip;
the upstream of the network controller chip is connected with a terminal through a golden finger module; the downstream of the network controller chip is connected with the network PHY chip through an RGMII interface and an MDIO management interface respectively so as to output a gigabit network port;
the SPI firmware chip is connected with the network controller chip through an SPI interface;
the power supply chip is used for supplying power to the network controller chip;
the optical module interface is used for connecting an optical module, the optical module is used for connecting an optical module connected with another unidirectional transmission network card through a single optical FIBER jumper, and the network PHY chip is used for configuring the value of a relevant register through an MDIO management interface of the network controller chip so as to realize the unidirectional mode of the FIBER after the firmware is configured.
Preferably, the unidirectional transmission network card satisfies at least one of the following conditions:
the golden finger module is a PCIE golden finger module;
the model of the network controller chip is WX1860A4;
the model of the network PHY chip is YT8531S;
the model of the SPI firmware chip is GD25Q80SIG;
the model of the power supply chip is APS2420BTCER;
the optical module interface is an SFP optical module interface, and the optical module is a double-fiber SFP optical module.
Preferably, the optical module interface is used for connecting a unidirectional optical module or a bidirectional optical module.
Preferably, the number of the network PHY chips is multiple, and the downstream of the network controller chip is connected with each network PHY chip through an RGMII interface and an MDIO management interface respectively so as to output gigabit network ports with the same number as the network PHY chips; each network PHY chip is used for connecting with one optical module through an optical module interface.
In the technical scheme of the invention, each port of the unidirectional transmission network card realizes unidirectional data transmission by using a single optical fiber jumper, and the unidirectional data transmission method specifically comprises the following steps: the optical module connected with the unidirectional transmission network card uses a single optical fiber jumper to connect with the optical module of another unidirectional transmission network card so as to realize unidirectional data transmission, when the transmission direction is the sending direction, the TX port of the optical module at the sending end is connected with the optical fiber jumper, the RX port is suspended without any physical connection, when the transmission direction is the receiving direction, the RX port of the interface of the optical module at the receiving end is connected with the optical fiber jumper, and the TX port is suspended without any physical connection. The unidirectional transmission network card realizes the network LINK state of a single optical fiber jumper wire in a firmware configuration mode, and a host is not required to additionally install a driver; the technical scheme of the invention is not only applicable to unidirectional optical modules, but also applicable to bidirectional optical modules, when the network card is required to be set to unidirectional transmission, the network PHY chip configures the values of the related registers through the MDIO management interface of the network controller chip so as to realize the unidirectional mode of the FIBER after firmware configuration, thereby realizing the unidirectional transmission function of the network card through the unidirectional mode of the FIBER, simultaneously realizing physical unidirectional communication by adopting single optical FIBER jumper wire communication, and achieving the aim of data security transmission. Therefore, physical isolation is realized without the help of external storage equipment such as optical discs, USB flash discs, mobile hard discs and the like, the safety of data is ensured under the dual means of combining the unidirectional mode of the FIBER with single optical FIBER jumper communication, portability is ensured, and the defects of network physical isolation or safety isolation gatekeeper in the prior art are overcome.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and other drawings may be obtained according to the structures shown in these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flow chart of an embodiment of a control method of a unidirectional transport network card of the present invention;
fig. 2 is a schematic block diagram of a unidirectional transmission network card according to the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are only some, but not all embodiments of the invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
The description as it relates to "first", "second", etc. in the present invention is for descriptive purposes only and is not to be construed as indicating or implying a relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defining "a first" or "a second" may explicitly or implicitly include at least one such feature. In the description of the present invention, the meaning of "plurality" means at least two, for example, two, three, etc., unless specifically defined otherwise.
In the present invention, unless specifically stated and limited otherwise, the terms "connected," "affixed," and the like are to be construed broadly, and for example, "affixed" may be a fixed connection, a removable connection, or an integral body; can be mechanically or electrically connected; either directly or indirectly, through intermediaries, or both, may be in communication with each other or in interaction with each other, unless expressly defined otherwise. The specific meaning of the above terms in the present invention can be understood by those of ordinary skill in the art according to the specific circumstances.
In addition, the technical solutions of the embodiments of the present invention may be combined with each other, but it is necessary to be based on the fact that those skilled in the art can implement the technical solutions, and when the technical solutions are contradictory or cannot be implemented, the combination of the technical solutions should be considered as not existing, and not falling within the scope of protection claimed by the present invention.
Referring to fig. 1 to fig. 2, in a first embodiment of a control method of a unidirectional transmission network card of the present invention, the unidirectional transmission network card includes a golden finger module, a network controller chip, a network PHY chip, an SPI firmware chip, a power supply chip, and an optical module interface; firmware information is stored in the SPI firmware chip;
the network controller chip is respectively connected with the golden finger module, the network PHY chip, the SPI firmware chip and the power supply chip; the optical module interface is connected with the network PHY chip; the golden finger module is connected with the power chip;
the upstream of the network controller chip is connected with a terminal through a golden finger module; the downstream of the network controller chip is connected with the network PHY chip through an RGMII interface and an MDIO management interface respectively so as to output a gigabit network port;
the SPI firmware chip is connected with the network controller chip through an SPI interface;
the power supply chip is used for supplying power to the network controller chip;
the optical module interface is used for connecting an optical module, and the optical module is used for connecting an optical module connected with another unidirectional transmission network card through a single optical fiber jumper;
the method comprises the following steps:
in step S10, the network PHY chip configures the values of the related registers through the MDIO management interface of the network controller chip to implement unidirectional mode of FIBER (FIBER is an optical FIBER) after firmware configuration.
In the technical scheme of the invention, each port of the unidirectional transmission network card realizes unidirectional data transmission by using a single optical fiber jumper, and the unidirectional data transmission method specifically comprises the following steps: the optical module connected with the unidirectional transmission network card uses a single optical fiber jumper to connect the optical module of another unidirectional transmission network card so as to realize unidirectional data transmission. When the transmission direction is the transmission direction, the TX port of the optical module at the transmission end is connected with the optical fiber jumper wire, the RX port is suspended without any physical connection, and when the transmission direction is the receiving direction, the RX port of the interface of the optical module at the receiving end is connected with the optical fiber jumper wire, and the TX port is suspended without any physical connection. The unidirectional transmission network card realizes the network LINK state of a single optical fiber jumper wire in a firmware configuration mode, and a host is not required to additionally install a driver; the technical scheme of the invention is not only applicable to unidirectional optical modules, but also applicable to bidirectional optical modules, when the network card is required to be set to unidirectional transmission, the network PHY chip configures the values of the related registers through the MDIO management interface of the network controller chip so as to realize the unidirectional mode of the FIBER after firmware configuration, thereby realizing the unidirectional transmission function of the network card through the unidirectional mode of the FIBER, simultaneously realizing physical unidirectional communication by adopting single optical FIBER jumper wire communication, and achieving the aim of data security transmission. Therefore, physical isolation is realized without the help of external storage equipment such as optical discs, USB flash discs, mobile hard discs and the like, the safety of data is ensured under the dual means of combining the unidirectional mode of the FIBER with single optical FIBER jumper communication, portability is ensured, and the defects of network physical isolation or safety isolation gatekeeper in the prior art are overcome.
In a specific embodiment, the invention is realized by using a Ethernet controller with a Yutai microelectronic gigabit network PHY chip as a base, and the golden finger module can be a PCIE golden finger module. The PCIE gold finger module is defined by a standard PCIE 4X connector and is compatible with PCIE slots of 4X, 8X, and 16X of the terminal (e.g., desktop or server). The host can supply power to the network card through the PCIE slot, communicate with the network card through the PCIE protocol, and reset the network card through the reset signal.
The network controller chip is preferably WX1860A4, and the upstream of the network controller chip is connected to the golden finger module through a PCIE X4 interface for connecting with a terminal (the terminal may be a desktop or a server), and the downstream of the network controller chip extends the multiport (the number of ports is equal to the number of network PHY chips, for example, 4 ports) RGMII interface. Specifically, the network controller chip in the present invention can support two modes, namely an internal PHY and an external PHY, and when the unidirectional transmission network card configures the unidirectional transmission mode, the hardware configuration needs to be configured to use the external PHY. The network controller chip configures the relevant register values of the external network PHY chip through the MDIO management interface.
Furthermore, the invention can be simultaneously applicable to the network controller chip supporting unidirectional transmission and the network controller chip not supporting unidirectional transmission, when the network controller chip in the invention does not support unidirectional transmission, the unidirectional mode of the FIBER is realized after the firmware configuration, so that the network controller chip not supporting unidirectional transmission can adapt to the unidirectional transmission mode, and the applicability of the invention is improved.
The network PHY chip preferably YT8531S, and the number of network PHY chips may be at least one. In the invention, one or more network PHY chips are used, and specifically, 4 network PHY chips can be adopted, and each network PHY chip is connected to a network controller chip through an RGMII interface and an MDIO management interface so as to expand 4 gigabit network interfaces (specifically, 4 gigabit SFP interfaces). The network PHY chip hardware is configured to RGMII interface to FIBER output.
The SPI firmware chip is preferably GD25Q80SIG, is connected with the network controller chip through an SPI interface, and is internally burnt with the network card firmware, and the network card and the network PHY chip register are configured in the initialization process.
The power supply chip preferably selects APS2420BTCER, and designs output 1V1 voltage to supply power for the network controller chip and supply current 2A.
The optical module interface can be an SFP optical module interface, and specifically can be a standard SFP optical module connector, and is compatible with a gigabit single-mode optical module, a multimode optical module and a BIDI optical module. Each port of the unidirectional transmission network card uses a single optical fiber jumper to realize unidirectional data transmission, the sending end of the optical module interface is connected with the TX port of the sending end optical module, and the receiving end of the optical module interface is connected with the RX port of the receiving end optical module. The unidirectional transmission network card realizes the network LINK state of the single optical fiber jumper through firmware configuration, and a host is not required to additionally install a driver.
In a second embodiment of the present invention, based on the first embodiment of the present invention, the step S10 includes:
step S11, the sds extReg0xA5 bit15 is cleared 0, and autosense is closed;
step S12, com extReg0xA006 bit0 is set to 1, and gigabit is selected;
s13, configuring FIBER as mandatory by sds miiReg0x00 bit12 clear 0;
in step S14, the sps miiReg0x00 bit15 is set to 1, enabling unidirection.
Wherein autosend represents auto-negotiation and unipair represents a single direction.
Specifically, the steps S11 to S14 are configured by firmware to configure the values of the relevant registers to implement the unidirectional mode of the FIBER.
Step S11 is used for: closing auto-negotiation, and changing into a unidirectional link mode;
step S12 is used for: selecting a gigabit mode from ten megamodes, hundred megamodes and gigabit modes to achieve a high-speed transmission rate;
step S13 is used for: configuring an optical port to be mandatory so as to realize an optical fiber mode;
step S14 is used for: FIBER is set to a no bi-directional mode.
Furthermore, the unidirectional transmission network card can be suitable for both unidirectional optical modules and bidirectional optical modules, so that when the optical modules are connected with the bidirectional optical modules in an interface mode, the unidirectional transmission network card can also modify the unidirectional transmission mode into a bidirectional transmission mode.
In a third embodiment of the present invention, the number of the network PHY chips is plural, and the downstream of the network controller chip is connected to each of the network PHY chips through an RGMII interface and an MDIO management interface, so as to output gigabit network ports equal to the number of the network PHY chips; each network PHY chip is used for connecting with an optical module through an optical module interface;
the control method of the unidirectional transmission network card further comprises the following steps:
step S20, presetting the data transmission direction of an optical module interface connected with each network PHY chip;
step S30, acquiring an allowable transmission direction set by each storage block in the terminal, and selecting a data transmission direction in the same direction as the allowable transmission direction from optical module interfaces connected with all network PHY chips to determine an associated optical module interface;
and S40, establishing a corresponding relation between each storage block and the corresponding associated optical module interface so as to realize the transmission of the data of each storage block according to the allowable transmission direction.
Specifically, step S20 includes:
in step S21, when the unidirectional transmission network card is set to only adopt the unidirectional transmission mode, the data transmission direction of the optical module interface connected with each network PHY chip is preset to only support the unidirectional transmission mode, and the data transmission direction of each optical module interface is preset. The data transmission directions of the optical module interfaces connected with each network PHY chip are the same or different.
Step S22, when the unidirectional transmission network card is set to support the bidirectional transmission mode, presetting an optical module interface connected with each network PHY chip to support one of the unidirectional transmission mode and the bidirectional transmission mode, and presetting a data transmission direction of each optical module interface.
When the unidirectional transmission network card is set to only adopt a unidirectional transmission mode and the data transmission direction of the optical module interface connected with each network PHY chip is the same, the process of transmitting data by using the unidirectional transmission network card of the invention can be specifically as follows:
step S211 is: enabling an optical module interface connected with one network PHY chip to independently perform unidirectional data transmission;
step S212 is: simultaneously, optical module interfaces connected with a plurality of network PHY chips are selected to simultaneously carry out unidirectional data transmission to the same object so as to expand bandwidth and realize a function of data multi-transmission.
Step S213 is: and simultaneously selecting optical module interfaces connected with a plurality of network PHY chips to simultaneously perform unidirectional data transmission on a plurality of objects so as to realize one-transmission multifunctional of data.
When the data transmission directions of the optical module interfaces connected with each network PHY chip in the unidirectional transmission network card are different (including that when the unidirectional transmission network card is set to only adopt a unidirectional transmission mode, the data transmission directions of the optical module interfaces connected with each network PHY chip are different, and also including that when the unidirectional transmission network card is set to support a bidirectional transmission mode, the data transmission directions of the optical module interfaces connected with each network PHY chip are different), the optical module interfaces with different data transmission directions can be associated with storage blocks with different requirements in the terminal, so that the storage blocks with different requirements are associated with special optical module interfaces, and data transmission according to the specified directions is realized.
Step S22 is applicable to the case where each storage block in the terminal connected by the golden finger module of the network controller chip has different data transmission requirements (different data transmission requirements may be determined according to the security level of the storage block or according to other requirements of the storage block). At this time, according to the data transmission requirements of each storage block, the data transmission directions of the optical module interfaces connected with each network PHY chip in the unidirectional transmission network card can be set to be different, so as to realize different data transmission functions of different data storage blocks in the same terminal through one network card.
In a fourth embodiment of the present invention, based on the third embodiment of the present invention, the step S30 includes:
step S31, a first data storage block with a first requirement in a terminal is set to only support a data receiving mode, and at least one optical module interface only supporting a data receiving direction is determined to be an associated optical module interface of the first data storage area;
step S32, setting a second data storage block with a second requirement in the terminal to only support a data transmission mode, and determining at least one optical module interface only supporting a data transmission direction as an associated optical module interface of the second data storage area;
and step S33, setting a third data storage block with a third requirement in the terminal to simultaneously support a data receiving and transmitting mode, and determining at least one optical module interface simultaneously supporting data receiving and transmitting as an associated optical module interface of the third data storage area.
The first requirement may be a high security level, the second requirement may be a medium security level, and the third requirement may be a low security level, so that according to the steps S31, S32, and S33, each storage block is realized to allow data to be transmitted according to a set allowed transmission direction according to different security levels.
According to the first to fourth embodiments of the present invention, in a fifth embodiment of the present invention, the control method of the unidirectional transmission network card further includes:
step S50, acquiring a set data transmission mode; the data transmission mode is unidirectional transmission or bidirectional transmission.
When the data transmission mode is unidirectional transmission, the step S10 is performed: the network PHY chip configures the value of a related register through an MDIO management interface of the network controller chip so as to realize a unidirectional mode of the FIBER after firmware configuration;
in step S60, when an instruction for changing unidirectional transmission to bidirectional transmission is received, the network PHY chip configures the value of the related register through the MDIO management interface of the network controller chip, so as to implement the bidirectional mode of FIBER after firmware configuration.
The specific modification of the bidirectional mode of the recovery FIBER in step S60 is:
the sds extReg0xA5 bit15 is set to 1, and autosense is started;
com extReg0xA006 bit0 clear 0, ten mega or hundred mega is selected;
the sds miiReg0x00 bit12 is set to 1, and the FIBER is cancelled as the force;
sds miiReg0x00 bit15 clears 0, prohibiting unidirection.
Meanwhile, when the bidirectional mode of the FIBER is realized after the firmware is configured, the control method of the unidirectional transmission network card also needs to start the optical module interface and the disabled port of the optical module, and the scheme capable of recovering the bidirectional mode of the FIBER is suitable for the bidirectional optical module. At this time, the sending end of the optical module interface is connected with the TX port of the bidirectional optical module, and the receiving end of the optical module interface is connected with the RX port of the bidirectional optical module, so as to relieve the unidirectional mode of unidirectional data transmission realized by using a single optical fiber jumper.
According to the first to fifth embodiments of the present invention, in a sixth embodiment of the present invention, the control method of the unidirectional transmission network card further includes:
step S70, detecting a data transmission instruction;
step S80, acquiring the data quantity of data to be transmitted according to a data transmission instruction;
step S90, according to the data volume, the data to be transmitted is matched with a plurality of kilomega network ports for data transmission.
Specifically, step S90 includes:
the method comprises the steps of obtaining the residual transmission data quantity of each gigabit network port, and forming a task waiting queue of each gigabit network port according to the size of the residual transmission data quantity; and obtaining the maximum difference value of the residual transmission data quantity in the task waiting queue.
And in the task waiting queue, the gigabit network ports are arranged in the order from small to large of the residual transmission data quantity.
And obtaining the difference value between the residual transmission data quantity of each gigabit network port and the residual transmission data quantity of the last gigabit network port in the task waiting queue to form a data transmission quantity difference value set.
And when the data quantity of the data to be transmitted is not more than a preset value, distributing the data to be transmitted to the gigabit network port positioned at the first position in the task waiting queue, and transmitting the data by the gigabit network port positioned at the first position in the task waiting queue. Wherein the preset value is greater than or equal to the sum of the differences in the data transmission amount difference set.
When the data amount of the data to be transmitted is larger than a preset value, executing the following steps:
determining splitting quantity according to the ratio of the data quantity of the data to be transmitted to the average value of the differences in the data transmission quantity difference set, splitting the data to be transmitted into a plurality of data packets according to the splitting quantity, and distributing the plurality of data packets to each gigabit network port one by one according to the sequence in the task waiting queue.
Specific:
Figure SMS_1
Figure SMS_2
wherein S is the sum of the differences in the data transmission capacity difference set, N is the total amount of gigabit network ports,
Figure SMS_3
for the remaining transmission data quantity of the last gigabit network port in the task-waiting queue,/for the task-waiting queue>
Figure SMS_4
The data quantity is the residual transmission data quantity of the ith gigabit network port in the task waiting queue, i is more than or equal to 1 and less than or equal to N; />
Figure SMS_5
A mean value of the differences in the data transmission quantity difference set;
Figure SMS_6
wherein, the liquid crystal display device comprises a liquid crystal display device,
Figure SMS_7
m is the splitting number, which is the data quantity of the data to be transmitted;
acquiring the data quantity of each data packet;
Figure SMS_8
Figure SMS_9
wherein, the liquid crystal display device comprises a liquid crystal display device,
Figure SMS_10
for the data amount of the mth compressed packet, < >>
Figure SMS_11
Data amount for the mth compressed packet; />
Figure SMS_12
The remainder is the ratio of the data amount according to the data to be transmitted to the average value of the differences in the data transmission amount difference set.
In addition, in order to achieve the above purpose, the invention also provides a unidirectional transmission network card, which applies the control method, wherein the unidirectional transmission network card comprises a golden finger module, a network controller chip, a network PHY chip, an SPI firmware chip, a power chip and an optical module interface; firmware information is stored in the SPI firmware chip;
the network controller chip is respectively connected with the golden finger module, the network PHY chip, the SPI firmware chip and the power supply chip; the optical module interface is connected with the network PHY chip; the golden finger module is connected with the power chip;
the upstream of the network controller chip is connected with a terminal through a golden finger module; the downstream of the network controller chip is connected with the network PHY chip through an RGMII interface and an MDIO management interface respectively so as to output a gigabit network port;
the SPI firmware chip is connected with the network controller chip through an SPI interface;
the power supply chip is used for supplying power to the network controller chip;
the optical module interface is used for connecting an optical module, the optical module is used for connecting an optical module connected with another unidirectional transmission network card through a single optical FIBER jumper, and the network PHY chip is used for configuring the value of a relevant register through an MDIO management interface of the network controller chip so as to realize the unidirectional mode of the FIBER after the firmware is configured.
In the technical scheme of the invention, each port of the unidirectional transmission network card realizes unidirectional data transmission by using a single optical fiber jumper, and the unidirectional data transmission method specifically comprises the following steps: the optical module connected with the unidirectional transmission network card uses a single optical fiber jumper to connect with the optical module of another unidirectional transmission network card so as to realize unidirectional data transmission, when the transmission direction is the sending direction, the TX port of the optical module at the sending end is connected with the optical fiber jumper, the RX port is suspended without any physical connection, when the transmission direction is the receiving direction, the RX port of the interface of the optical module at the receiving end is connected with the optical fiber jumper, and the TX port is suspended without any physical connection. The unidirectional transmission network card realizes the network LINK state of a single optical fiber jumper wire in a firmware configuration mode, and a host is not required to additionally install a driver; the technical scheme of the invention is not only applicable to unidirectional optical modules, but also applicable to bidirectional optical modules, when the network card is required to be set to unidirectional transmission, the network PHY chip configures the values of the related registers through the MDIO management interface of the network controller chip so as to realize the unidirectional mode of the FIBER after firmware configuration, thereby realizing the unidirectional transmission function of the network card through the unidirectional mode of the FIBER, simultaneously realizing physical unidirectional communication by adopting single optical FIBER jumper wire communication, and achieving the aim of data security transmission. Therefore, physical isolation is realized without the help of external storage equipment such as optical discs, USB flash discs, mobile hard discs and the like, the safety of data is ensured under the dual means of combining the unidirectional mode of the FIBER with single optical FIBER jumper communication, portability is ensured, and the defects of network physical isolation or safety isolation gatekeeper in the prior art are overcome.
Preferably, the golden finger module is a PCIE golden finger module.
Preferably, the unidirectional transmission network card satisfies at least one of the following conditions:
the model of the network controller chip is WX1860A4;
the model of the network PHY chip is YT8531S;
the model of the SPI firmware chip is GD25Q80SIG;
the model of the power supply chip is APS2420BTCER;
the optical module interface is an SFP optical module interface, and the optical module is a double-fiber SFP optical module.
The unidirectional transmission network card in the invention can realize the following beneficial effects:
only a single optical fiber jumper is used for communication, so that physical unidirectional communication is realized, and the aim of data safety transmission is fulfilled. The network card upstream interface uses standard PCIE interface design, can be used on a terminal (a desktop or a server) alone, can also be used with a security isolation gatekeeper, and has the characteristic of high compatibility. The network card has the characteristics of simple design, small size, few material types, small size and low cost.
Preferably, the optical module interface is used for connecting a unidirectional optical module or a bidirectional optical module.
Preferably, the number of the network PHY chips is multiple, and the downstream of the network controller chip is connected with each network PHY chip through an RGMII interface and an MDIO management interface respectively so as to output gigabit network ports with the same number as the network PHY chips; each network PHY chip is used for connecting with one optical module through an optical module interface.
The foregoing description of the preferred embodiments of the present invention should not be construed as limiting the scope of the invention, but rather utilizing equivalent structural changes made in the present invention description and drawings or directly/indirectly applied to other related technical fields are included in the scope of the present invention.

Claims (9)

1. The control method of the unidirectional transmission network card is characterized in that the unidirectional transmission network card comprises a golden finger module, a network controller chip, a network PHY chip, an SPI firmware chip, a power chip and an optical module interface; firmware information is stored in the SPI firmware chip;
the network controller chip is respectively connected with the golden finger module, the network PHY chip, the SPI firmware chip and the power supply chip; the optical module interface is connected with the network PHY chip; the golden finger module is connected with the power chip;
the upstream of the network controller chip is connected with a terminal through a golden finger module; the downstream of the network controller chip is connected with the network PHY chip through an RGMII interface and an MDIO management interface respectively so as to output a gigabit network port;
the SPI firmware chip is connected with the network controller chip through an SPI interface;
the power supply chip is used for supplying power to the network controller chip;
the optical module interface is used for connecting an optical module, and the optical module is used for connecting an optical module connected with another unidirectional transmission network card through a single optical fiber jumper; the optical module connected with the unidirectional transmission network card is used for connecting an optical module of another unidirectional transmission network card by using a single optical fiber jumper so as to realize unidirectional data transmission, when the transmission direction is a transmission direction, a TX port of the optical module at the transmission end is connected with the optical fiber jumper, an RX port is suspended without any physical connection, and when the transmission direction is a receiving direction, an RX port of an interface of the optical module at the receiving end is connected with the optical fiber jumper, and the TX port is suspended without any physical connection;
the method comprises the following steps:
the network PHY chip configures the value of a related register through an MDIO management interface of the network controller chip to realize a unidirectional mode of a FIBER after firmware configuration, and the method comprises the following steps: the sdsetreg 0xA5 bit15 clears 0, shutting down autosense; com extReg0xA006 bit0 set 1, select gigabit; the sps miiReg0x00 bit12 clear 0, configure FIBER as mandatory; sds miiReg0x00 bit15 sets to 1, enabling unidirection.
2. The control method of unidirectional transport network cards according to claim 1 wherein there are a plurality of network PHY chips, and downstream of the network controller chips are connected to each of the network PHY chips through RGMII interfaces and MDIO management interfaces, respectively, so as to output gigabit network ports equal to the number of the network PHY chips; each network PHY chip is used for connecting with an optical module through an optical module interface;
the control method of the unidirectional transmission network card further comprises the following steps:
presetting a data transmission direction of an optical module interface connected with each network PHY chip;
acquiring an allowable transmission direction set by each storage block in the terminal, and selecting a data transmission direction in the same direction as the allowable transmission direction from optical module interfaces connected with all network PHY chips to determine an associated optical module interface;
and establishing a corresponding relation between each storage block and the corresponding associated optical module interface so as to realize the transmission of the data of each storage block according to the allowable transmission direction.
3. The method according to claim 2, wherein the step of obtaining the allowable transmission direction set for each storage block in the terminal, selecting a data transmission direction in the same direction as the allowable transmission direction from the optical module interfaces connected to the respective network PHY chips, to determine the associated optical module interface, comprises:
setting a first data storage block with a first requirement in a terminal to only support a data receiving mode, and determining at least one optical module interface only supporting a data receiving direction as an associated optical module interface of the first data storage area;
setting a second data storage block with a second requirement in the terminal to only support a data transmission mode, and determining at least one optical module interface only supporting a data transmission direction as an associated optical module interface of the second data storage area;
and setting a third data storage block with a third requirement in the terminal to simultaneously support a data receiving and transmitting mode, and determining at least one optical module interface simultaneously supporting data receiving and transmitting as an associated optical module interface of the third data storage area.
4. A control method of a unidirectional transport network card according to any one of claims 1 to 3, characterized in that the control method of a unidirectional transport network card further comprises:
acquiring a set data transmission mode;
when the data transmission mode is unidirectional transmission, executing the step that the network PHY chip configures the value of a related register through an MDIO management interface of the network controller chip so as to realize the unidirectional mode of the FIBER after firmware configuration;
when receiving an instruction for changing unidirectional transmission into bidirectional transmission, the network PHY chip configures the value of a relevant register through an MDIO management interface of the network controller chip so as to realize a bidirectional mode of the FIBER after firmware configuration.
5. A control method of a unidirectional transmission network card according to any one of claims 1 to 3, further comprising:
detecting a data transmission instruction;
acquiring the data quantity of data to be transmitted according to the data transmission instruction;
and according to the data volume, matching the data to be transmitted with a plurality of kilomega network ports for data transmission.
6. A unidirectional transmission network card, characterized in that the control method according to any one of claims 1 to 5 is applied, and the unidirectional transmission network card comprises a golden finger module, a network controller chip, a network PHY chip, an SPI firmware chip, a power supply chip and an optical module interface; firmware information is stored in the SPI firmware chip;
the network controller chip is respectively connected with the golden finger module, the network PHY chip, the SPI firmware chip and the power supply chip; the optical module interface is connected with the network PHY chip; the golden finger module is connected with the power chip;
the upstream of the network controller chip is connected with a terminal through a golden finger module; the downstream of the network controller chip is connected with the network PHY chip through an RGMII interface and an MDIO management interface respectively so as to output a gigabit network port;
the SPI firmware chip is connected with the network controller chip through an SPI interface;
the power supply chip is used for supplying power to the network controller chip;
the optical module interface is used for connecting an optical module, the optical module is used for connecting an optical module connected with another unidirectional transmission network card through a single optical FIBER jumper, and the network PHY chip is used for configuring the value of a relevant register through an MDIO management interface of the network controller chip so as to realize the unidirectional mode of the FIBER after the firmware is configured.
7. The unidirectional transport network card of claim 6, wherein the unidirectional transport network card satisfies at least one of the following conditions:
the golden finger module is a PCIE golden finger module;
the model of the network controller chip is WX1860A4;
the model of the network PHY chip is YT8531S;
the model of the SPI firmware chip is GD25Q80SIG;
the model of the power supply chip is APS2420BTCER;
the optical module interface is an SFP optical module interface, and the optical module is a double-fiber SFP optical module.
8. The unidirectional transport network card of claim 6, wherein the optical module interface is configured to connect to a unidirectional optical module or a bidirectional optical module.
9. The unidirectional transport network card of any one of claims 6 to 8, wherein the plurality of network PHY chips are provided, and downstream of the network controller chip is connected to each of the network PHY chips through an RGMII interface and an MDIO management interface, respectively, so as to output gigabit network ports equal to the number of the network PHY chips; each network PHY chip is used for connecting with one optical module through an optical module interface.
CN202310380486.5A 2023-04-11 2023-04-11 Unidirectional transmission network card and control method thereof Active CN116112291B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310380486.5A CN116112291B (en) 2023-04-11 2023-04-11 Unidirectional transmission network card and control method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310380486.5A CN116112291B (en) 2023-04-11 2023-04-11 Unidirectional transmission network card and control method thereof

Publications (2)

Publication Number Publication Date
CN116112291A CN116112291A (en) 2023-05-12
CN116112291B true CN116112291B (en) 2023-06-20

Family

ID=86267655

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310380486.5A Active CN116112291B (en) 2023-04-11 2023-04-11 Unidirectional transmission network card and control method thereof

Country Status (1)

Country Link
CN (1) CN116112291B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101986638A (en) * 2010-09-16 2011-03-16 珠海市鸿瑞软件技术有限公司 Gigabit one-way network isolation device
CN203368486U (en) * 2013-08-07 2013-12-25 杭州三汇数字信息技术有限公司 Single fiber one-way data transmission device
CN204859185U (en) * 2015-08-28 2015-12-09 浪潮电子信息产业股份有限公司 10G optical port network card based on Melllanox CX3
CN205305048U (en) * 2015-12-29 2016-06-08 山东超越数控电子有限公司 Giga light network switch
CN107809415A (en) * 2017-08-07 2018-03-16 国网河南省电力公司 Network isolation system and its implementation based on double half-duplex channel transmission technologys
CN214478425U (en) * 2021-01-13 2021-10-22 博盛光电科技(中山)有限公司 Novel high-power single-optical-fiber 405nm laser module
CN216565179U (en) * 2021-06-25 2022-05-17 山东首瀚信息科技有限公司 Hundred-million visible light one-way network card of PCIe interface

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10666682B2 (en) * 2014-10-15 2020-05-26 Marvell Asia Pte, Ltd. Systems and methods for allowing flexible chip configuration by external entity while maintaining secured boot environment
US11297071B2 (en) * 2020-05-12 2022-04-05 Siemens Mobility GmbH Time-stamping for industrial unidirectional communication device with data integrity management
US11502433B2 (en) * 2021-02-10 2022-11-15 Super Micro Computer, Inc. Circuit card with onboard non-volatile memory for providing cable assembly data to network interface controller chips

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101986638A (en) * 2010-09-16 2011-03-16 珠海市鸿瑞软件技术有限公司 Gigabit one-way network isolation device
CN203368486U (en) * 2013-08-07 2013-12-25 杭州三汇数字信息技术有限公司 Single fiber one-way data transmission device
CN204859185U (en) * 2015-08-28 2015-12-09 浪潮电子信息产业股份有限公司 10G optical port network card based on Melllanox CX3
CN205305048U (en) * 2015-12-29 2016-06-08 山东超越数控电子有限公司 Giga light network switch
CN107809415A (en) * 2017-08-07 2018-03-16 国网河南省电力公司 Network isolation system and its implementation based on double half-duplex channel transmission technologys
CN214478425U (en) * 2021-01-13 2021-10-22 博盛光电科技(中山)有限公司 Novel high-power single-optical-fiber 405nm laser module
CN216565179U (en) * 2021-06-25 2022-05-17 山东首瀚信息科技有限公司 Hundred-million visible light one-way network card of PCIe interface

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
千兆(1Gbps)企业网组网设计与应用;王相林,李向丽,石磊;郑州大学学报(理学版)(第01期);全文 *
无反馈纯单向信息传输系统的设计;赵铭;于晓;朱惠娥;郝东;;长春理工大学学报(自然科学版)(第Z1期);全文 *

Also Published As

Publication number Publication date
CN116112291A (en) 2023-05-12

Similar Documents

Publication Publication Date Title
US8897313B2 (en) Out-of-band signaling support over standard optical SFP
TWI343007B (en) Point-to-point link negotiation method and apparatus
US7149397B2 (en) 10/100/1000Base-T small-form-factor-pluggable module
US7461195B1 (en) Method and system for dynamically adjusting data transfer rates in PCI-express devices
US7996575B2 (en) Detection and configuration of SAS/SATA connection
US20090063717A1 (en) Rate Adaptation for Support of Full-Speed USB Transactions Over a High-Speed USB Interface
US10095652B2 (en) Host configured multi serial interface device
CN104734998A (en) Network device and information transmission method
US11496340B2 (en) Fast equalization method, chip, and communications system
US20070198761A1 (en) Connection management mechanism
US7917671B2 (en) Scalable port controller architecture supporting data streams of different speeds
US20200166980A1 (en) Intelligent storage device and method for accessing intelligent storage device
CN103797732A (en) Communication method, peripheral component interconnect express (PCIE) chip and PCIE devices
US20170371760A1 (en) Advanced communication computer
CN116112291B (en) Unidirectional transmission network card and control method thereof
EP2137906B1 (en) Communicating configuration information over standard interconnect link
TWI776397B (en) Multi-image output system and usb hub thereof
CN114531264A (en) Authentication and data channel control
CN102253686B (en) Server system and switching method thereof
CN102820930A (en) Light module transmit enable control method, control device and light module
CN102148802B (en) Link negotiation method and distance-enhanced Ethernet equipment
US8295368B1 (en) Method and apparatus for improved interfacing of connections between a multiplicity of handheld devices
US8296486B2 (en) Peripheral device enabling enhanced communication
EP2300925B1 (en) System to connect a serial scsi array controller to a storage area network
CN215835409U (en) Ten-gigabit single-optical-port Ethernet adapter

Legal Events

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