Network link layer data protection method and system
Through multi-point parallel authentication and intelligent syntax instruction modification, the problems of low security and insufficient flexibility of traditional TCP transmission are solved, and more efficient and flexible network link layer data protection is achieved.
Patent Information
- Application Number
- CN202410999337.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-11-02
- Publication Date
- 2024-10-15
AI Technical Summary
The security of traditional point-to-point TCP transmission relies on a complex and time-consuming secret key negotiation process, which results in reduced transmission performance and a lack of flexibility and real-time variability. The existing network message protection methods are single, and the operations of the sender and receiver are not linked.
Using a multi-point parallel authentication method, the secure network card saves and updates the network card identity broadcast table in real time, performs multi-point parallel authentication on the target terminal, decides whether to send link layer data based on credibility, and intercepts Ethernet at the data link layer. Frames are modified with intelligent syntax instructions to provide flexible and selectable protection means.
It improves the security of the transmission link and the flexibility of data protection, optimizes the transmission speed and security through dynamic credibility adjustment, and provides a more flexible and freely combined protection method.
Smart Images

Figure CN118784331A_ABST
Abstract
Description
[0001] This application is a divisional application of application number 202311449425.6, application date November 02, 2023, and invention name “A network link layer data protection method and system”. Technical Field
[0002] The present invention belongs to the technical field of network information security, and in particular relates to a network link layer data protection method and system. Background Art
[0003] The security of traditional point-to-point TCP transmission is achieved through the SSL network security protocol, but this authentication process includes a complex and time-consuming key negotiation process, which seriously reduces the transmission performance. The protection means of traditional network messages are relatively simple, and the sender and receiver do not have linkage operations, and only rely on pre-defined rules to operate. For example, the sender encrypts and the receiver decrypts. Lack of flexibility and real-time variability. Summary of the invention
[0004] In view of the above technical problems, the present invention discloses a network link layer data protection method, wherein the network includes a plurality of terminals, and the terminals are equipped with a security network card. The method includes configuring the security network card to perform the following steps:
[0005] Save and update the network card identity broadcast table in real time;
[0006] When receiving an access request from an access terminal to a target terminal to send the link layer data to the target terminal, firstly perform multi-point parallel authentication on the target terminal to obtain the credibility of the multi-point parallel authentication of the target terminal, and then refuse or execute the step of sending the link layer data to the target terminal according to the credibility of the multi-point parallel authentication of the target terminal;
[0007] The step of performing multi-point parallel authentication on the target terminal to obtain the credibility of the multi-point parallel authentication of the target terminal comprises:
[0008] Obtaining the network card identity key KEY of the target terminal and forwarding it to a plurality of computing terminals to perform parallel calculation of the credibility of the target terminal, and outputting the credibility of a plurality of target terminals;
[0009] A weighted average value of the credibility of a plurality of target terminals output by a plurality of computing terminals is calculated, and the weighted average value is used as the credibility of the multi-point parallel authentication of the target terminal.
[0010] The present invention also proposes a network link layer data protection system, which includes at least one processor and a memory storing instructions. When the instructions are executed by at least one processor, the system implements the steps in any of the above-mentioned network link layer data protection methods.
[0011] The security of the transmission link is ensured through the multi-point parallel authentication network card authentication function. By intercepting Ethernet frames at the data link layer and appending intelligent syntax instructions, the data is modified to provide the maximum selectivity of data protection and the arbitrariness of the free combination of protection methods. BRIEF DESCRIPTION OF THE DRAWINGS
[0012] Figure 1 : Schematic diagrams of some schemes;
[0013] Figure 2-1 : The first part of the flowchart of some more specific schemes;
[0014] Figure 2-2 : The second part of the flowchart of some more specific schemes;
[0015] Figure 2-3 : Part III of the flowchart of some more specific schemes. DETAILED DESCRIPTION
[0016] First, the following terms of the present invention should be understood as:
[0017] Link layer: used to transmit data between network segment nodes across the physical layer, usually referring to communication methods such as Ethernet and wireless LAN.
[0018] The "network card identity broadcast table" is a dynamically changing network card identity table configured inside the network terminal.
[0019] It should be noted that the term "terminal" in the present invention should be understood as each communication node in a secure network (secure local area network). The devices that implement the terminal include but are not limited to personal computers, smart phones, tablet computers, etc., and the devices that implement the terminal are configured with a secure network card.
[0020] The present invention does not limit the topology of the network.
[0021] The present invention is further described by the following schemes and examples, but they should not be construed as limiting the present invention. Without departing from the spirit and substance of the present invention, modifications or substitutions made to the methods, steps or conditions of the present invention are within the scope of the present invention.
[0022] Some plans Figure 1 As shown, the network includes several terminals, each of which is equipped with a security network card, and the security network card is configured to perform the following steps:
[0023] Save and update the network card identity broadcast table in real time;
[0024] When receiving an access request from an access terminal to a target terminal to send the link layer data to the target terminal, firstly perform multi-point parallel authentication on the target terminal to obtain the credibility of the multi-point parallel authentication of the target terminal, and then refuse or execute the step of sending the link layer data to the target terminal according to the credibility of the multi-point parallel authentication of the target terminal;
[0025] The step of performing multi-point parallel authentication on the target terminal to obtain the credibility of the multi-point parallel authentication of the target terminal comprises:
[0026] S1 obtains the network card identity key KEY of the target terminal and forwards it to several other terminals for parallel calculation of the target terminal's credibility;
[0027] S2 outputs the credibility of several target terminals;
[0028] S3 calculates a weighted average value of the credibility of the target terminal output by a plurality of the computing terminals, and uses the weighted average value as the credibility of the multi-point parallel authentication of the target terminal.
[0029] It should be noted that the credibility (security) is a dynamically changing value. Each terminal is not limited to being a computing terminal, a target terminal, or an access terminal. Link layer data includes TCP and UDP message data.
[0030] In some schemes based on the above scheme, the step of refusing or executing to send the link layer data to the target terminal according to the credibility of the multi-point parallel authentication of the target terminal also includes: after obtaining the credibility of the target terminal, when the credibility of the target terminal (receiver) is higher than that of the access terminal (sender), it is possible to choose not to encrypt the link layer data to speed up the transmission speed. When the credibility of the target terminal (receiver) is lower than that of the access terminal (sender), the access terminal can adopt encryption protection schemes at the same time, or set multiple encryption protections. When the credibility of the target terminal (receiver) is lower than a preset value, the access terminal rejects the access request and refuses to send link layer data to it.
[0031] In some schemes, the target terminal broadcasts each updated credibility of the multi-point parallel authentication in an encrypted manner within the network.
[0032] The credibility of multi-point parallel authentication of some schemes is calculated according to formula 1:
[0033] Gf(k)=(A1(k)·Af1+A2(k)·Af2+…+An(k)·Afn) / n Formula 1
[0034] Where Gf(k) represents the credibility of multi-point parallel authentication of the target terminal, 0≤Gf(k)<2;
[0035] k represents the network card identity key KEY of the target terminal;
[0036] n represents the number of computing terminals;
[0037] An(k) represents the target terminal credibility calculated by the nth terminal according to the network card identity key KEY; the An(k) is obtained by looking up the network card identity broadcast table;
[0038] Afn represents the current credibility weight of the nth computing terminal, 0 <Afn<2。
[0039] The current credibility weight Afn of the nth computing terminal in Formula 1 is calculated as follows: the ratio of the current credibility of the target terminal after multi-point parallel authentication to the average credibility of several previous multi-point parallel authentications.
[0040] The current credibility weight Afn of the nth terminal is calculated as follows:
[0041] Afn=Gf m (k) / ((Gf m-5 (k)+Gf m-4 (k)+…+Gf m-1 (k)) / 5) Formula 2
[0042] Among them, Gf m (k) is the credibility of the current multi-point parallel authentication of the nth computing terminal, and m represents the order number of the current credibility;
[0043] Gf m-5 (k) is the credibility of the fifth multi-point parallel authentication of the nth computing terminal;
[0044] Gf m-4 (k) is the credibility of the fourth multi-point parallel authentication of the nth computing terminal;
[0045] Gf m-1 (k) is the credibility of the first multi-point parallel authentication of the nth computing terminal.
[0046] In some schemes, in order to avoid excessive calculation, the value of n in Formula 2 is 10.
[0047] Some schemes also include the step of intercepting data frames at the link layer and appending intelligent grammar instructions for implementing protection operations. Specifically, after the access terminal releases the access request, the step also includes the step of security monitoring of the data frame: protecting and releasing the data frame according to the data protection scheme matched by the intelligent grammar instruction rule table, and the intelligent grammar instructions include the following field definition rules: network layer message type, transport layer message type, matching address offset, matching length, matching type code, instruction action, instruction additional data, and original message data.
[0048] Some specific embodiments, the process is as follows Figure 2-1 , 2-2 , 2-3.
[0049] The multi-point parallel authentication method in the above scheme is described in detail below through a specific implementation method.
[0050] In some implementations of the multi-point parallel authentication method, the authentication process is initiated by the TCP connection request end and is divided into two stages. The first stage is that the access terminal asks the target end for the network card identity KEY. In the second stage, the access terminal randomly sends the KEY to n computing terminals in the network and requests authentication Gf(k). After the n computing terminals participating in the authentication return the results, the credibility of the multi-point parallel authentication method of the target terminal is calculated.
[0051] Gf(k=[A(k)0·Af0+A(k)1·Af1+…+A(k)9·Af9] / 10 Equation 3
[0052] Gf(k) represents the credibility calculated by the multi-point parallel authentication method, 0≤Gf(k)<2
[0053] k represents the network card identity KEY of the target terminal.
[0054] A(k)n represents the target terminal credibility obtained by table lookup calculation method after the computing terminal network card n participating in authentication receives KEY.
[0055] Afn represents the trustworthiness weight of the nth computing terminal that was most recently authenticated, 0 <Afn<2。
[0056] Afn=Gf(k) m / [(Gf(k) m-5 +Gf(k) m-4 +…+Gf(k) m-1 ) / 5] Formula 4
[0057] The nth terminal calculates the ratio of the most recent (that is, the mth) Gf(k) to the average of the most recent 5 (m-1 to m-5) Gf(k).
[0058] Some solutions also include the step of periodically broadcasting the encrypted identity key of each terminal within the network.
[0059] In some specific implementations, all the above authentication processes occur between Guangruntong network cards and are calculated and authenticated inside the network card. The credibility of the network card is the credibility of the terminal. The terminal mentioned in the article is the terminal with the Guangruntong multi-point authentication network card inserted.
[0060] In some specific implementations, each terminal (specifically, a network card) stores a dynamically changing network card identity table as shown in Table 1. Whenever the requested terminal is authenticated once, the authentication result Gf(k) is encrypted and broadcasted to the network. At the same time, each terminal periodically encrypts and broadcasts its own network card identity to the network.
[0061] Table 1. Network card identity broadcast table
[0062] sequence MAC Address Identity KEY Gf(k) 0 5853C0040506 0123456789ABCDEF 0.8 1 5853C0040507 123456789ABCDEF0 1.1 2 5853C0040508 23456789ABCDEF01 1 3 5853C0040509 000000000000000000 0 4 5853C004050A NULL 0 5 5853C004050B 0123456789FFFFFF 0.2 6 5853C0040506 0123456789ABCDEF 0.9 7 5853C0040506 0123456789ABCDEF 0.8 8 5853C0040506 0123456789ABCDEF 1.2 9 5853C0040506 0123456789ABCDEF 1.0 10 5853C0040506 0123456789ABCDEF 0.8 : : : :
[0063] The authentication process of an embodiment is as follows:
[0064] (1) The requesting end sends the requested end's identity KEY to 10 random terminals on the network. One terminal n receives KEY=0123456789ABCDEF.
[0065] (2) Calculate A(k)n by looking up Table 1:
[0066] When the KEY value complies with the encoding rules, A(k)n=1.
[0067] When the KEY value does not conform to the encoding rules or is empty, A(k)n=0.
[0068] When the KEY value does not conform to the encoding rule but is close to the rule, A(k)n=0.2.
[0069] Finally A(k)n=1
[0070] (3)Afn=0.8 /
(0.8+0.9+0.8+1.2+1.0) / 5
[0071] Terminal n sends the authentication result A(k)n·Afn=1·0.8=0.8 to the authentication requesting end.
[0072] (4) After the authentication request end receives the authentication results returned by 10 authentication terminals, it uses the formula:
[0073] Gf(k)=[A(k)0·Af0+A(k)1·Af1+…+A(k)9·Af9] / 10 calculates the final trustworthiness of the requested end. Currently, it is defined that when the trustworthiness Gf(k)>0.5, the requested end is considered trustworthy and the TCP connection request continues.
[0074] The intelligent grammar instructions are described in detail below through some specific implementation methods.
[0075] Some embodiments of the smart grammar instructions define rules according to the fields shown in Table 2:
[0076] Table 2. Intelligent grammar instruction rules table
[0077]
[0078]
[0079] In some implementations based on the above implementations, the format of the UDP instruction message sent by the terminal (network card) is as shown in Table 3:
[0080] Table 3. UDP command message format
[0081]
[0082] In some implementations based on the above implementations, a message rule table is stored inside each terminal (network card), such as Table 4, and the network manager is responsible for updating it in real time.
[0083] Table 4. Message rules table
[0084]
[0085]
[0086] The embodiments and functional operations of the subject matter described in this specification may be implemented in: digital electronic circuits, tangibly implemented computer software or firmware, computer hardware, including the structures disclosed in this specification and their structural equivalents, or a combination of more than one of the above. The embodiments of the subject matter described in this specification may be implemented as one or more computer programs, that is, one or more modules of computer program instructions encoded on one or more tangible non-transitory program carriers, for execution by a data processing device or to control the operation of the data processing device. Alternatively or in addition, the program instructions may be encoded on an artificially generated propagating signal, such as a machine-generated electrical, optical or electromagnetic signal, which is generated as encoded information for transmission to an appropriate receiver device executed by the data processing device. The computer storage medium may be a machine-readable storage device, a machine-readable storage substrate, a random or serial access memory device, or a combination of one or more of the above devices.
[0087] A computer program (which may also be referred to or described as a program, software, software application, module, software module, script or code) may be written in any form of programming language, including compiled or interpreted languages or declarative or procedural languages, and the computer program may be deployed in any form, including as a stand-alone program or as a module, component, subroutine or other unit suitable for use in a computing environment. A computer program may, but need not, correspond to a file in a file system. A program may be stored in a portion of a file that stores other programs or data, for example, one or more scripts stored in the following: in a markup language document; in a single file dedicated to a related program; or in multiple collaborative files, for example, files storing one or more modules, subroutines or code portions. A computer program may be deployed to execute on one or more computers, the computers being located in one place or distributed to multiple locations and interconnected by a communication network.
[0088] To transmit interactions with a user, embodiments of the subject matter described in this specification may be implemented on a computer, which may interact with a user by transmitting documents to a device used by the user and receiving documents from the device; for example, by transmitting a web page to a web browser on a user's client device in response to a request received from the web browser.
[0089] Although this specification contains many specific implementation details, these should not be interpreted as limitations on the scope of any invention or the scope of what can be claimed, but rather as an illustration of features that can concretize a particular embodiment of a particular invention. The specific features described in this specification in the context of independent embodiments can also be implemented in combination with a single embodiment. Conversely, the various features described in the context of a single embodiment can also be implemented independently in multiple embodiments, or in any suitable sub-combination. In addition, although the features can be described above as a combination effect and even initially required, one or more features from the required combination can be removed from the combination in some cases, and the required combination can be turned to a sub-combination or a variation of the sub-combination.
[0090] Similarly, although operations are described in the accompanying drawings in a particular order, it should not be understood that: in order to achieve the desired results, such operations are required to be performed in the particular order shown or in a sequential order, or that all illustrated operations are performed. In certain cases, multitasking and parallel processing can be advantageous. In addition, the separation of various system modules and components in the above-mentioned embodiments should not be understood as requiring such separation in all embodiments, and it should be understood that program components and systems can generally be integrated into a single software product or packaged into multiple software products.
Claims
1. A network link layer data protection method, wherein the network includes a plurality of terminals, and the terminals are equipped with a secure network card, characterized in that: The method includes configuring a security network card to perform the following steps: Save and update the network card identity identification broadcast table in real time; When receiving an access request from an access terminal to access a target terminal to send the link layer data to the target terminal, first perform multi-point parallel authentication on the target terminal to obtain the credibility of the multi-point parallel authentication of the target terminal, and then reject or execute the step of sending the link layer data to it according to the credibility of the multi-point parallel authentication of the target terminal; The step of performing multi-point parallel authentication on the target terminal to obtain the credibility of the multi-point parallel authentication of the target terminal includes: Obtain the network card identity identification key KEY of the target terminal and forward it to several computing terminals for parallel calculation of the credibility of the target terminal, and output the credibility of several target terminals; Calculate the weighted average of the credibility of the target terminal output by several computing terminals, and use the weighted average as the credibility of the multi-point parallel authentication of the target terminal; The network card identity identification broadcast table includes data groups arranged in time sequence, and each data group includes the MAC address of the terminal, the network card identity identification key uniquely corresponding to it, and the credibility of multi-point parallel authentication; The credibility of the multi-point parallel authentication is calculated according to Equation 1, Gf(k) = (A1(k)·Af1 + A2(k)·Af2 + … + An(k)·Afn) / n Equation 1, where Gf(k) represents the credibility of the multi-point parallel authentication of the target terminal, 0 ≤ Gf(k) < 2, k represents the network card identity identification key KEY of the target terminal, n represents the number of computing terminals, An(k) represents the credibility of the target terminal calculated by the nth computing terminal according to the network card identity identification key KEY; the An(k) is obtained by looking up the table in the network card identity identification broadcast table, when the KEY value conforms to the coding rule, An(k) = 1, when the KEY value does not conform to the coding rule or is empty, An(k) = 0, when the KEY value does not conform to the coding rule but is close to the rule, An(k) = 0.2, Afn represents the current credibility weight of the nth terminal, 0 < Afn < 2, and the current credibility weight Afn of the nth computing terminal is calculated according to Equation 2, Afn = Gfm(k) / ((Gfm-5(k) + Gfm-4(k) + … + Gfm-1(k)) / 5) Equation 2, Among them, Gf m (k) is the current credibility of the nth computing terminal; m represents the order number of the current credibility; Gf m-5 (k) is the credibility of the nth computing terminal in the fifth multi-point parallel authentication; Gf m-4 (k) is the credibility of the fourth multi-point parallel authentication of the nth computing terminal; Gf m-1 (k) is the credibility of the first multi-point parallel authentication of the nth computing terminal; It also includes the step of intercepting a data frame at the link layer and appending an intelligent syntax instruction for implementing a protection operation.
2. The method according to claim 1, characterized in that It also includes the step of the access terminal performing security monitoring on the data frame, specifically protecting and releasing the data frame according to the protection scheme matched by the intelligent syntax instruction rule table. The intelligent syntax instruction includes the following field definition rules: network layer message type, transport layer message type, matching address offset, matching length, matching type code, instruction action, instruction additional data, original message data.
3. A network link layer data protection system, comprising at least one processor and a memory storing instructions, characterized in that: When the instruction is executed by at least one processor, the system implements the steps of any one of the methods described in claims 1-2.
