CN114500368A - Data transmission method and device and router adopting device - Google Patents
Data transmission method and device and router adopting device Download PDFInfo
- Publication number
- CN114500368A CN114500368A CN202210359010.9A CN202210359010A CN114500368A CN 114500368 A CN114500368 A CN 114500368A CN 202210359010 A CN202210359010 A CN 202210359010A CN 114500368 A CN114500368 A CN 114500368A
- Authority
- CN
- China
- Prior art keywords
- data
- forwarding
- sub
- score
- parameter
- 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.)
- Granted
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L45/00—Routing or path finding of packets in data switching networks
- H04L45/302—Route determination based on requested QoS
- H04L45/306—Route determination based on the nature of the carried application
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L45/00—Routing or path finding of packets in data switching networks
- H04L45/60—Router architectures
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The application provides a data transmission method and a device and a router adopting the device, which are applied to the router of a data transmission system, wherein the data transmission system also comprises terminal equipment, and the method comprises the following steps: receiving first data sent by the terminal equipment; confirming a first parameter of the first data; confirming a first forwarding mode corresponding to the first parameter by using a pre-acquired data forwarding model, wherein the data forwarding model is used for confirming forwarding modes corresponding to different data parameters; if the first forwarding mode is a simplified forwarding mode, performing data extraction on the first data to obtain second data, and sending the second data to a next-stage device, wherein the next-stage device is a target device for sending data by the router, and the size of the space occupied by the second data is smaller than that of the space occupied by the first data; and if the first forwarding mode is not the simplification mode, sending the first data to next-level equipment.
Description
Technical Field
The present application relates to the field of data technologies, and in particular, to a data transmission method and apparatus, and a router using the apparatus.
Background
At present, with the development of society and the advancement of technology, data communication and sharing can be realized through the internet and the internet of things. However, the size of the current data is larger and larger, the amount of data to be transmitted is also larger and larger, and the efficiency of the current data transmission method is lower.
Disclosure of Invention
The embodiment of the application provides a data transmission method and device and a router adopting the device, a first parameter in first data sent by a terminal device is obtained, a corresponding forwarding mode is confirmed based on the first parameter, if the first forwarding mode is a simplified forwarding mode, the extracted data is sent to next-level equipment, and if the first forwarding mode is not the simplified forwarding mode, the first data is sent to the next-level equipment. The method and the device avoid the waste of network bandwidth caused by directly sending some unnecessary first data to the next-level equipment, and improve the data transmission efficiency.
In order to achieve the purpose, the technical scheme is as follows:
in a first aspect, a data transmission method is provided, which is applied to a router of a data transmission system, where the data transmission system further includes a terminal device, and the method includes: receiving first data sent by the terminal equipment; confirming a first parameter of the first data; confirming a first forwarding mode corresponding to the first parameter by using a pre-acquired data forwarding model, wherein the data forwarding model is used for confirming forwarding modes corresponding to different data parameters; if the first forwarding mode is a simplified forwarding mode, performing data extraction on the first data to obtain second data, and sending the second data to a next-stage device, wherein the next-stage device is a target device for sending data by the router, and the size of the space occupied by the second data is smaller than that of the space occupied by the first data; and if the first forwarding mode is not the simplified forwarding mode, sending the first data to next-level equipment.
According to the method of the first aspect, the first parameter in the first data sent by the terminal device is obtained, the corresponding forwarding mode is confirmed based on the first parameter, if the first forwarding mode is a simplified forwarding mode, the extracted data is sent to the next-stage device, and if the first forwarding mode is not the simplified forwarding mode, the first data is sent to the next-stage device. The method and the device avoid the waste of network bandwidth caused by directly sending some unnecessary first data to the next-level equipment, and improve the data transmission efficiency.
With reference to the first aspect, in a possible design, the determining, by using a pre-obtained data forwarding model, a first forwarding manner corresponding to the first parameter includes: acquiring a first score corresponding to the first parameter by using a pre-acquired data forwarding model; if the first score is greater than or equal to a threshold score, the first forwarding mode corresponding to the first parameter is a simplified forwarding mode; if the first score is smaller than the threshold score, the first forwarding mode corresponding to the first parameter is not the reduced forwarding mode.
According to a possible design scheme, in this embodiment, a first score corresponding to the first parameter may be obtained by using a data forwarding model, and a first forwarding manner corresponding to the first parameter is determined by comparing a relationship between the first score and a threshold score. Because the first parameters corresponding to each first data may be different, each first data can be judged through the data forwarding model instead of judging data of a certain type, so that the efficiency of data transmission can be further improved, and the network bandwidth is saved.
With reference to the first aspect, in a possible design, the data forwarding model includes a plurality of scoring sub-modules, the first parameter includes a plurality of sub-items, each scoring sub-module corresponds to at least one sub-item, each scoring sub-module is configured to obtain a sub-score of the corresponding sub-item, and obtaining, by using a pre-obtained data forwarding model, a first score corresponding to the first parameter includes: respectively acquiring the sub-score of each sub-item by utilizing the scoring sub-module corresponding to each sub-item; and acquiring the first score corresponding to the first parameter based on each sub-score.
According to a possible design scheme, in the embodiment, based on a plurality of scoring sub-modules in the data forwarding model, a plurality of sub-items in the first parameter are scored to obtain sub-scores, and then a first score is obtained based on each sub-score. The embodiment further refines the method for acquiring the first score, avoids scoring only through a small part of items in the first parameter, and realizes more comprehensive scoring, thereby improving the accuracy of acquiring the first data forwarding mode.
With reference to the first aspect, in a possible design, the obtaining the first score corresponding to the first parameter based on each of the sub-scores includes: acquiring a sub-weight corresponding to each sub-score, wherein the sub-weight is input through the router; and updating each sub-score based on each sub-weight to obtain the updated sub-score.
According to a possible design scheme, the sub-scores obtained by the important sub-items are made to have a heavier weight in the first score by setting the corresponding sub-weight for each sub-score. The method for acquiring the first score is further optimized, and the accuracy for acquiring the first data forwarding mode is improved.
With reference to the first aspect, in a possible design, if the first forwarding manner is a simplified forwarding manner, performing data extraction on the first data to obtain second data, and sending the second data to a next-stage device includes: if the first forwarding mode is a simplified forwarding mode, acquiring abstract information of the first data based on a data extraction model, wherein the space occupied by the abstract information is smaller than that occupied by the first data; taking the summary information as the second data; and sending the second data to the next level device.
According to a possible design scheme, the first data of which the first forwarding mode is the reduced forwarding mode is reduced, that is, the summary information of the first data is extracted through the data extraction model, and the summary information is sent to the next-stage device as the second data. The size of the data needing to be sent to the next level equipment is reduced, and the data transmission efficiency is improved.
With reference to the first aspect, in a possible design, before the obtaining the summary information of the first data based on a data extraction model if the first forwarding manner is a reduced forwarding manner, the method includes: acquiring initial abstract information of sample data based on the initial model; acquiring sample abstract information of the sample data, wherein the sample abstract information is standard abstract information corresponding to the sample data; acquiring information difference between the sample summary information and the initial summary information; training the initial model based on the information difference to reduce the information difference between the initial summary information and the sample summary information; and if the trained initial model meets the specified conditions, taking the trained initial model as the data extraction model.
According to a possible design scheme, the initial model is trained by using sample data, and the trained initial model meeting specified conditions, namely the data extraction model, is obtained. The data extraction model can extract the abstract data of the first data through training, and the small information difference between the abstract data and the first data is guaranteed.
In a second aspect, a data transmission apparatus is provided, which is applied to a router of a data transmission system, where the data transmission system further includes a terminal device, and the apparatus includes: a receiving unit, configured to receive first data sent by the terminal device; a first confirming unit, configured to confirm a first parameter of the first data; a second confirming unit, configured to confirm a first forwarding manner corresponding to the first parameter by using a pre-obtained data forwarding model, where the data forwarding model is used to confirm forwarding manners corresponding to different data parameters; the first processing unit is configured to, if the first forwarding manner is a reduced forwarding manner, perform data extraction on the first data to obtain second data, and send the second data to a next-stage device, where the next-stage device is a target device for sending data by the router, and a size of a space occupied by the second data is smaller than a size of a space occupied by the first data; and the second processing unit is used for sending the first data to the next-stage equipment if the first forwarding mode is not the simplified forwarding mode.
In addition, for technical effects of the data transmission apparatus according to the second aspect, reference may be made to the technical effects of the data transmission method according to the first aspect, and details are not repeated here.
In a third aspect, a router is provided, which is applied to a data transmission system, and includes: the data transmission apparatus according to the second aspect; alternatively, it comprises: one or more processors; a memory; one or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the one or more processors, the one or more applications configured to perform any of the data transfer methods of the first aspect.
With reference to the third aspect, in one possible design, the router further includes an input module; the input module is used for inputting the sub-weights.
In addition, for the technical effect of the router described in the third aspect, reference may be made to the technical effect of the data transmission apparatus described in the second aspect, and details are not described here.
In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, where a program code is stored in the computer-readable storage medium, and the program code may be called by a processor to execute any one of the data transmission methods according to the first aspect.
Drawings
Fig. 1 is an application scenario diagram of a data transmission method according to an embodiment of the present application;
fig. 2 is a flowchart of a method of data transmission according to an embodiment of the present application;
fig. 3 is a block diagram of a data transmission apparatus according to an embodiment of the present disclosure;
fig. 4 is a schematic structural diagram of a router according to an embodiment of the present application,
the labels in the figure are: data transmission system-100; a router-110; terminal device-120; data transmission means-300; a receiving unit-310; a first validation unit-320; a second validation unit-330; a first processing unit-340; a second processing unit-350; a first processor-2001; a memory-2002; a transceiver-2003; a second processor-2004; an input module-2005.
Detailed Description
The technical solution in the present application is described below with reference to the accompanying drawings.
In the embodiments of the present application, the words "exemplary," "for example," and the like are used to mean serving as an example, instance, or illustration. Any embodiment or design described herein as "exemplary" is not necessarily to be construed as preferred or advantageous over other embodiments or designs. Rather, the term using examples is intended to present concepts in a concrete fashion. In addition, in the embodiments of the present application, the expression "and/or" may mean both, or may be either of both.
In the embodiments of the present application, the "image" and the "picture" may be sometimes mixed, and it should be noted that the intended meaning is consistent when the difference is not emphasized. "of", "corresponding", and "corresponding" may sometimes be used in combination, it being noted that the intended meaning is consistent when no distinction is made.
In the examples of the present application, the subscripts are sometimes as W1It may be mistaken for a non-subscripted form such as W1, whose intended meaning is consistent when the distinction is de-emphasized.
The internet has since its birth to date, and was originally capable of interconnecting only a few computers. After decades of development of information technology and popularization of computers, it has become a network covering the world. A router in the topology of an existing network may send information to the next router, which then repeats this operation until the information reaches the destination. For example, a message is sent from a mobile phone and sent to a router B through a router a, and the router B sends the message to a cloud server, which is the destination of the message.
In the existing data transmission method, when data transmission is processed, network equipment generally cannot be influenced by data content, taking a router as an example, the transmission direction of data is obtained by calculation of a CPU of the network equipment by using a preset algorithm, and is irrelevant to the content of data streams or other connected routers, because an initiating end and a receiving end are random for transmission events occurring in the internet, the content of the transmitted data is random, and the starting point, the ending point and the content of the data are unpredictable for the router. For example: user 1 purchases at home via a mobile phone, user 2 refers to the data at the book stock via a computer, and when, where, what the purpose of use, which final website address to point to, etc. these users will use the internet is unpredictable. Because of this unpredictable nature, internet devices, such as routers, can only be designed to be transparent to the user. They do not make changes to the way, flow, etc. of data transmission based on the transmitted data itself, nor do they make changes to the transmitted data.
Different from the traditional Internet, some articles which do not belong to the electronic equipment are accessed to the Internet, so that the monitoring of the state or the operation data of the articles is realized, namely the Internet of things (IoT). Now, all data acquired by devices accessing the internet of things are generally sent to a server or an electronic device of a user. However, because the number of devices in the internet of things is large, the amount of data generated by the devices is also huge, and the data generated by all the devices is directly sent to the server or the electronic device of the user, which causes waste of network bandwidth and reduces data transmission efficiency.
Therefore, in order to overcome the above defect, in the embodiment of the present application, a first parameter in first data sent by a terminal device is obtained, a corresponding forwarding manner is determined based on the first parameter, if the first forwarding manner is a reduced forwarding manner, the extracted data is sent to a next-stage device, and if the first forwarding manner is not the reduced forwarding manner, the first data is sent to the next-stage device. The method and the device avoid the waste of network bandwidth caused by directly sending some unnecessary first data to the next-level equipment, and improve the data transmission efficiency.
Referring to fig. 1, fig. 1 shows an application scenario diagram of a chinese data transmission method according to an embodiment of the present application, i.e., a data transmission system 100. Wherein the data transmission system 100 comprises a router 110 and a terminal device 120, the router 110 and the terminal device 120 are connected.
For some embodiments, router 110 may be used to perform a data transfer method. Specifically, the router 110 may receive data sent by the terminal device 120, determine a forwarding manner corresponding to the data by using a data transmission method, and send the data to a next-stage device. The next-level device may be another router in the topology network where the current router 110 is located, may also be a server, and may also be an electronic device of the user, such as a smart phone, a notebook computer, and a smart tablet.
The terminal device 120 may be a device accessing the internet of things, such as a smart door lock, a smart socket, a smart curtain, a smart desk lamp, and the like. The end device 120 may transmit data to the connected router 110 and forward the data through the router 110. For example, the data may be transmitted to the server so that the server monitors the data, and the user may acquire the data transmitted to the server by the terminal device 120 from the server through the internet. For other examples, the data may also be sent directly to the electronic device of the user, so that the user can directly obtain the data of the terminal device 120 conveniently.
Referring to fig. 2, fig. 2 is a flowchart illustrating a method of data transmission according to an embodiment of the present application, where the method may be applied to the router 110 in the data transmission system 100 illustrated in fig. 1. Specifically, the method includes steps S210 to S250.
Step S210: and receiving first data sent by the terminal equipment.
Step S220: a first parameter of the first data is confirmed.
Step S230: and confirming a first forwarding mode corresponding to the first parameter by using a pre-acquired data forwarding model, wherein the data forwarding model is used for confirming forwarding modes corresponding to different data parameters.
Step S240: and if the first forwarding mode is a simplified forwarding mode, performing data extraction on the first data to obtain second data, and sending the second data to a next-stage device, wherein the next-stage device is a target device for sending data by the router, and the space occupied by the second data is smaller than that occupied by the first data.
Step S250: and if the first forwarding mode is not the simplified forwarding mode, sending the first data to next-level equipment.
For some embodiments, the data transmitted by the terminal device, i.e. the first data, may be received first. The first data may include a first parameter, and the first parameter may include an identifier indicating a type of the data, where the identifier may be disposed at a head of the first parameter, or may be disposed in a middle or other location, which is not limited herein. The first parameter may further include a data portion, and the data portion may include different sub-items, such as a size of the data, a generation time of the data, a terminal device to which the data corresponds, and the like. After a first parameter corresponding to the first data is obtained, a first forwarding mode corresponding to the first parameter is confirmed by using a pre-obtained data forwarding model, wherein the data forwarding model is used for confirming forwarding modes corresponding to different data parameters. And sending the first data or the second data to the next-level equipment according to whether the first forwarding mode is a simplified forwarding mode. The method and the device avoid the waste of network bandwidth caused by directly sending some unnecessary first data to the next-level equipment, and improve the data transmission efficiency.
Optionally, in step S230: the determining, by using a pre-obtained data forwarding model, a first forwarding manner corresponding to the first parameter, where the data forwarding model is used to determine forwarding manners corresponding to different data parameters, and the determining may include: acquiring a first score corresponding to the first parameter by using a pre-acquired data forwarding model; if the first score is greater than or equal to a threshold score, the first forwarding mode corresponding to the first parameter is a simplified forwarding mode; if the first score is smaller than the threshold score, the first forwarding mode corresponding to the first parameter is not the reduced forwarding mode.
For some embodiments, a first score corresponding to the first parameter may be obtained based on the data forwarding model. Comparing the first score with a threshold score, wherein if the first score is greater than or equal to the threshold score, the first forwarding mode corresponding to the first parameter is a reduced forwarding mode; if the first score is smaller than the threshold score, the first forwarding mode corresponding to the first parameter is not the reduced forwarding mode. The threshold score may be a preset score value. For further embodiments, the threshold score may also be a plurality of different values, the plurality of threshold scores corresponding to different data type identifications in the first parameter of the first data. For example, if the data type of the first data is identified as video, the threshold score may be a; if the data type of the first data is identified as a picture, the threshold score may be B. Because the first parameters corresponding to each first data may be different, each first data can be judged through the data forwarding model instead of judging data of a certain type, so that the efficiency of data transmission can be further improved, and the network bandwidth is saved.
Optionally, when the pre-obtained data forwarding model is executed to obtain the first score corresponding to the first parameter, the method may further include: respectively acquiring the sub-score of each sub-item by utilizing the scoring sub-module corresponding to each sub-item; and acquiring the first score corresponding to the first parameter based on each sub-score.
For some embodiments, the data forwarding model includes a plurality of scoring sub-modules, the first parameter includes a plurality of sub-items, each of the scoring sub-modules corresponds to at least one of the sub-items, and each of the scoring sub-modules is configured to obtain a sub-score of the corresponding sub-item. The sub-item may be the size of the data in the first parameter, the generation time of the data, the terminal device corresponding to the data, and the like. The scoring sub-module in the data forwarding model may correspond to the sub-items and generate a sub-score for each sub-item. For example, if the sub-item is the size of data, the sub-item may be scored by using the scoring sub-module corresponding to the size of data, and the sub-score corresponding to the sub-item may be obtained.
Further, a first score for the first parameter may be obtained based on each generated sub-score. As an example, a weighted sum of each sub-score may be directly found. For example, the sub-scores are A, B, C, respectively, and the first score is a + B + C. For other embodiments, the weight of each sub-score may be obtained separately, and the proportion of each sub-score in the first score may be balanced by the weight, so as to obtain a more accurate first score. The embodiment further refines the method for acquiring the first score, avoids scoring only through a small part of items in the first parameter, and realizes more comprehensive scoring, thereby improving the accuracy of acquiring the first data forwarding mode.
Specifically, when the obtaining of the first score corresponding to the first parameter based on each of the sub-scores is performed, the method may further include: acquiring a sub-weight corresponding to each sub-score, wherein the sub-weight is input through the router; and updating each sub-score based on each sub-weight to obtain the updated sub-score.
For some embodiments, the router may input the sub-weights, i.e., each sub-partition may be assigned a corresponding sub-weight. The input module, such as a keyboard or a touch screen, may be provided on the router, and the user may set the sub-weights through the input module. For other embodiments, the electronic device used by the user, such as a smart phone, a notebook computer, etc., may be connected to the router through a network, and the setting of the sub-weight may be performed by the electronic device.
Further, after the sub-weights are obtained, each sub-score may be updated based on each sub-weight, so as to obtain the updated sub-score. For example, the updated sub-scores may be arithmetically summed to obtain the first score. For example, if a sub-score of 1 is a, a corresponding sub-weight of 1 is 20%, a sub-score of 2 is B, a corresponding sub-weight of 2 is 30%, a sub-score of 3 is C, and a corresponding sub-weight of 3 is 50%, then a sub-score of 20% xA +30% xB +50% xC may be obtained.
In the embodiment, each sub-score is set with a corresponding sub-weight, so that the sub-score obtained by the important sub-item has a heavier weight in the first score. The method for obtaining the first score is further optimized, and the accuracy for obtaining the first data forwarding mode is improved.
Optionally, when performing that the first forwarding mode is a reduced forwarding mode, performing data extraction on the first data to obtain second data, and sending the second data to a next-stage device, the method may further include: if the first forwarding mode is a simplified forwarding mode, acquiring abstract information of the first data based on a data extraction model, wherein the space occupied by the abstract information is smaller than that occupied by the first data; taking the summary information as the second data; and sending the second data to the next level device.
For some embodiments, it is readily understood that in some cases it is not necessary to send all of the data to the next level device, and that the partially condensed data may be sent to the next level device. Illustratively, if the terminal device is a smoke alarm, the first information is smoke concentration data within a range of a position where the smoke alarm is located within a certain time period, and whether the smoke concentration exceeds a standard within the certain time period. The summary information of the first information may be extracted through a data extraction model at this time, and whether the smoke density exceeds the standard within the certain time period may be taken as the summary information for the above example. It is easily understood that the size of the space occupied by the summary information is smaller than the size of the space occupied by the first data. The summary information may be transmitted to the next level device as the second data at this time.
In this embodiment, the first data of which the first forwarding mode is the reduced forwarding mode is reduced, that is, the summary information of the first data is extracted through the data extraction model, and the summary information is sent to the next-stage device as the second data. The size of the data needing to be sent to the next level equipment is reduced, and the data transmission efficiency is improved.
Optionally, before performing, if the first forwarding manner is a simplified forwarding manner, obtaining summary information of the first data based on a data extraction model, the method may further include: acquiring initial abstract information of sample data based on the initial model; acquiring sample abstract information of the sample data, wherein the sample abstract information is standard abstract information corresponding to the sample data; acquiring information difference between the sample summary information and the initial summary information; training the initial model based on the information difference to reduce the information difference between the initial summary information and the sample summary information; and if the trained initial model meets the specified conditions, taking the trained initial model as the data extraction model.
In this embodiment, the initial model is trained by using sample data, and the trained initial model that satisfies the specified condition, that is, the data extraction model, is obtained. The data extraction model can extract the abstract data of the first data through training, and the small information difference between the abstract data and the first data is guaranteed.
The data transmission method provided by the embodiment of the present application is described in detail based on fig. 2, and a virtual device, that is, a data transmission device corresponding to the data transmission method provided by the embodiment of the present application will be described in detail below.
Exemplarily, fig. 3 is a schematic structural diagram of a data transmission device 300 provided in an embodiment of the present application. As shown in fig. 3, the data transmission apparatus 300 includes: a receiving unit 310, a first confirming unit 320, a second confirming unit 330, a first processing unit 340 and a second processing unit 350.
For convenience of explanation, fig. 3 shows only the main components of the data transmission apparatus 300.
The receiving unit (310) is used for receiving the data,
a receiving unit 310, configured to receive the first data sent by the terminal device.
A first confirming unit 320, configured to confirm the first parameter of the first data.
A second confirming unit 330, configured to confirm the first forwarding manner corresponding to the first parameter by using a pre-obtained data forwarding model, where the data forwarding model is used to confirm forwarding manners corresponding to different data parameters.
Further, the second determining unit 330 is further configured to obtain a first score corresponding to the first parameter by using a pre-obtained data forwarding model; if the first score is greater than or equal to a threshold score, the first forwarding mode corresponding to the first parameter is a simplified forwarding mode; if the first score is smaller than the threshold score, the first forwarding mode corresponding to the first parameter is not the reduced forwarding mode.
Further, the second determining unit 330 is further configured to respectively obtain a sub-score of each sub-item by using the scoring sub-module corresponding to each sub-item; and acquiring the first score corresponding to the first parameter based on each sub-score.
Further, the second determining unit 330 is further configured to obtain a sub-weight corresponding to each sub-score, where the sub-weight is input through the router; and updating each sub-score based on each sub-weight to obtain the updated sub-score.
The first processing unit 340 is configured to, if the first forwarding manner is a reduced forwarding manner, perform data extraction on the first data to obtain second data, and send the second data to a next-stage device, where the next-stage device is a target device for sending data by the router, and a size of a space occupied by the second data is smaller than a size of a space occupied by the first data.
Further, the first processing unit 340 is further configured to, if the first forwarding manner is a reduced forwarding manner, obtain summary information of the first data based on a data extraction model, where a size of a space occupied by the summary information is smaller than a size of a space occupied by the first data; taking the summary information as the second data; and sending the second data to the next level device.
Further, the first processing unit 340 is further configured to obtain initial summary information of the sample data based on the initial model;
acquiring sample abstract information of the sample data, wherein the sample abstract information is standard abstract information corresponding to the sample data; acquiring information difference between the sample summary information and the initial summary information; training the initial model based on the information difference to reduce the information difference between the initial summary information and the sample summary information; and if the trained initial model meets the specified conditions, taking the trained initial model as the data extraction model.
The second processing unit 350 is configured to send the first data to a next-stage device if the first forwarding manner is not the reduced forwarding manner.
As shown in fig. 4, the router may include the data transmission device shown in fig. 3 described above. Optionally, the router 110 may include a first processor 2001.
Optionally, router 110 may also include an input module 2005. Wherein the input module 2005 is configured to input the sub-weights.
Optionally, router 110 may also include memory 2002 and/or transceiver 2003.
The first processor 2001 is coupled to the memory 2002 and the transceiver 2003, such as via a communication bus.
The following describes each component of the router 110 in detail with reference to fig. 4:
the first processor 2001 is a control center of the router 110, and may be a single processor or a collective term for a plurality of processing elements. For example, the first processor 2001 is one or more Central Processing Units (CPUs), or may be A Specific Integrated Circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of the present application, such as: one or more microprocessors (digital signal processors, DSPs), or one or more Field Programmable Gate Arrays (FPGAs).
Alternatively, the first processor 2001 may perform various functions of the router 110 by running or executing software programs stored in the memory 2002 and calling data stored in the memory 2002.
In particular implementations, the first processor 2001 may include one or more CPUs, such as the CPU0 and the CPU1 shown in fig. 4, as an example.
In a specific implementation, the router 110 may also include a plurality of processors, such as the first processor 2001 and the second processor 2004 shown in fig. 4, as an example. Each of these processors may be a single-Core Processor (CPU) or a multi-Core Processor (CPU). A processor herein may refer to one or more devices, circuits, and/or processing cores for processing data (e.g., computer program instructions).
The memory 2002 is used for storing a software program for executing the scheme of the present application, and is controlled by the first processor 2001 to execute the software program.
Alternatively, the memory 2002 may be a read-only memory (ROM) or other type of static storage device that may store static information and instructions, a Random Access Memory (RAM) or other type of dynamic storage device that may store information and instructions, an electrically erasable programmable read-only memory (EEPROM), a compact disc read-only memory (CD-ROM) or other optical disc storage, optical disc storage (including compact disc, laser disc, optical disc, digital versatile disc, blu-ray disc, etc.), but is not limited to, magnetic disk storage media or other magnetic storage devices, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer. The memory 2002 may be integrated with the first processor 2001, or may exist independently, and is coupled to the first processor 2001 through an interface circuit (not shown in fig. 4) of the router 110, which is not specifically limited in this embodiment of the present application.
A transceiver 2003 for communicating with network devices or with terminal devices. Optionally, the transceiver 2003 may include a receiver and a transmitter (not separately shown in fig. 4). Wherein the receiver is configured to implement a receive function and the transmitter is configured to implement a transmit function.
Alternatively, the transceiver 2003 may be integrated with the first processor 2001, or may exist independently, and is coupled with the first processor 2001 through an interface circuit (not shown in fig. 4) of the router 110, which is not specifically limited in this embodiment of the present application.
It should be noted that the structure of the router 110 shown in fig. 4 does not constitute a limitation of the router, and an actual router may include more or less components than those shown, or combine some components, or arrange different components.
In addition, the technical effect of the router 110 may refer to the technical effect of the data transmission method described in the above method embodiment, and is not described herein again.
It should be understood that the first processor 2001 in the embodiments of the present application may be a Central Processing Unit (CPU), and the processor may also be other general purpose processors, Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, and the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
It will also be appreciated that the memory 2002 in the embodiments of the subject application can be either volatile memory or nonvolatile memory, or can include both volatile and nonvolatile memory. The non-volatile memory may be a read-only memory (ROM), a Programmable ROM (PROM), an Erasable PROM (EPROM), an electrically Erasable EPROM (EEPROM), or a flash memory. Volatile memory can be Random Access Memory (RAM), which acts as external cache memory. By way of example, but not limitation, many forms of Random Access Memory (RAM) are available, such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), double data rate SDRAM (DDR SDRAM), Enhanced SDRAM (ESDRAM), synchlink DRAM (SLDRAM), and direct bus RAM (DR RAM).
The above embodiments may be implemented in whole or in part by software, hardware (e.g., circuitry), firmware, or any combination thereof. When implemented in software, the above-described embodiments may be implemented in whole or in part in the form of a computer program product. The computer program product comprises one or more computer instructions or computer programs. The procedures or functions according to the embodiments of the present application are wholly or partially generated when the computer instructions or the computer program are loaded or executed on a computer. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another computer readable storage medium, for example, the computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center by wire (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. that contains one or more collections of available media. The usable medium may be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium. The semiconductor medium may be a solid state disk.
It should be understood that the term "and/or" herein is only one kind of association relationship describing the association object, and means that there may be three kinds of relationships, for example, a and/or B, and may mean: a exists alone, A and B exist simultaneously, and B exists alone, wherein A and B can be singular or plural. In addition, the "/" in this document generally indicates that the former and latter associated objects are in an "or" relationship, but may also indicate an "and/or" relationship, which may be understood with particular reference to the former and latter text.
In the present application, "at least one" means one or more, "a plurality" means two or more. "at least one of the following" or similar expressions refer to any combination of these items, including any combination of the singular or plural items. For example, at least one (one) of a, b, or c, may represent: a, b, c, a-b, a-c, b-c, or a-b-c, wherein a, b, c may be single or multiple.
It should be understood that, in the various embodiments of the present application, the sequence numbers of the above-mentioned processes do not mean the execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present application.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one type of logical functional division, and other divisions may be realized in practice, for example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application or portions thereof that substantially contribute to the prior art may be embodied in the form of a software product stored in a storage medium and including instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a read-only memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
The above description is only for the specific embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present application, and shall be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.
Claims (10)
1. A data transmission method, applied to a router of a data transmission system, the data transmission system further including a terminal device, the method comprising:
receiving first data sent by the terminal equipment;
confirming a first parameter of the first data;
confirming a first forwarding mode corresponding to the first parameter by using a pre-acquired data forwarding model, wherein the data forwarding model is used for confirming forwarding modes corresponding to different data parameters;
if the first forwarding mode is a simplified forwarding mode, performing data extraction on the first data to obtain second data, and sending the second data to a next-stage device, wherein the next-stage device is a target device for sending data by the router, and the size of the space occupied by the second data is smaller than that of the space occupied by the first data;
and if the first forwarding mode is not the simplification mode, sending the first data to next-level equipment.
2. The method according to claim 1, wherein the determining the first forwarding mode corresponding to the first parameter by using a pre-obtained data forwarding model includes:
acquiring a first score corresponding to the first parameter by using a pre-acquired data forwarding model;
if the first score is greater than or equal to a threshold score, the first forwarding mode corresponding to the first parameter is a simplified forwarding mode;
if the first score is smaller than the threshold score, the first forwarding mode corresponding to the first parameter is not the simplified forwarding mode.
3. The method according to claim 2, wherein the data forwarding model includes a plurality of scoring sub-modules, the first parameter includes a plurality of sub-items, each scoring sub-module corresponds to at least one of the sub-items, each scoring sub-module is configured to obtain a sub-score of the corresponding sub-item, and obtaining the first score corresponding to the first parameter by using the pre-obtained data forwarding model includes:
respectively acquiring the sub-score of each sub-item by utilizing the scoring sub-module corresponding to each sub-item;
and acquiring the first score corresponding to the first parameter based on each sub-score.
4. The method according to claim 3, wherein said obtaining the first score corresponding to the first parameter based on each of the sub-scores comprises:
acquiring a sub-weight corresponding to each sub-score, wherein the sub-weight is input through the router;
and updating each sub-score based on each sub-weight to obtain the updated sub-score.
5. The method of claim 1, wherein if the first forwarding manner is a reduced forwarding manner, performing data extraction on the first data to obtain second data, and sending the second data to a next-stage device, includes:
if the first forwarding mode is a simplified forwarding mode, acquiring abstract information of the first data based on a data extraction model, wherein the space occupied by the abstract information is smaller than that occupied by the first data;
taking the summary information as the second data;
and sending the second data to the next level device.
6. The method according to claim 5, wherein before obtaining the summary information of the first data based on the data extraction model if the first forwarding mode is the reduced forwarding mode, the method comprises:
acquiring initial abstract information of sample data based on the initial model;
acquiring sample abstract information of the sample data, wherein the sample abstract information is standard abstract information corresponding to the sample data;
acquiring information difference between the sample summary information and the initial summary information;
training the initial model based on the information difference to reduce the information difference between the initial summary information and the sample summary information;
and if the trained initial model meets the specified conditions, taking the trained initial model as the data extraction model.
7. A data transmission apparatus, characterized in that, applied to a router of a data transmission system, the data transmission system further includes a terminal device, the apparatus includes:
a receiving unit, configured to receive first data sent by the terminal device;
a first confirming unit, configured to confirm a first parameter of the first data;
a second confirming unit, configured to confirm a first forwarding manner corresponding to the first parameter by using a pre-obtained data forwarding model, where the data forwarding model is used to confirm forwarding manners corresponding to different data parameters;
the first processing unit is configured to, if the first forwarding manner is a reduced forwarding manner, perform data extraction on the first data to obtain second data, and send the second data to a next-stage device, where the next-stage device is a target device for sending data by the router, and a size of a space occupied by the second data is smaller than a size of a space occupied by the first data;
and the second processing unit is used for sending the first data to the next-stage equipment if the first forwarding mode is not the reduction mode.
8. A router, applied to a data transmission system, the router comprising:
the data transmission apparatus of claim 7;
alternatively, the method comprises the following steps:
one or more processors;
a memory;
one or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the one or more processors, the one or more applications configured to perform the method of any of claims 1-6.
9. The router of claim 8, further comprising an input module;
the input module is used for inputting the sub-weights.
10. A computer-readable storage medium, having stored thereon program code that can be invoked by a processor to perform the method according to any one of claims 1 to 6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210359010.9A CN114500368B (en) | 2022-04-07 | 2022-04-07 | Data transmission method and device and router adopting device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210359010.9A CN114500368B (en) | 2022-04-07 | 2022-04-07 | Data transmission method and device and router adopting device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN114500368A true CN114500368A (en) | 2022-05-13 |
CN114500368B CN114500368B (en) | 2022-06-17 |
Family
ID=81488006
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210359010.9A Active CN114500368B (en) | 2022-04-07 | 2022-04-07 | Data transmission method and device and router adopting device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114500368B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115314160A (en) * | 2022-08-05 | 2022-11-08 | 深圳美克拉网络技术有限公司 | Mobile communication data flow management method and device |
Citations (17)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103078855A (en) * | 2012-12-29 | 2013-05-01 | 四川长虹电器股份有限公司 | Method, device and system for realizing equipment access |
US20170170884A1 (en) * | 2015-12-14 | 2017-06-15 | Qualcomm Incorporated | Mu-mimo scheduler transmit mode probing with transmit mode scoring |
CN108776903A (en) * | 2018-05-16 | 2018-11-09 | 浙江口碑网络技术有限公司 | User's evaluation method and device based on interactive form |
CN108900850A (en) * | 2018-05-31 | 2018-11-27 | 北京达佳互联信息技术有限公司 | A kind of live broadcasting method, device and intelligent glasses |
CN109064317A (en) * | 2018-08-10 | 2018-12-21 | 玖富金科控股集团有限责任公司 | A kind of data receiver and retransmission method, electronic equipment and readable storage medium storing program for executing |
CN109584595A (en) * | 2019-01-14 | 2019-04-05 | 北京交通大学 | Based on the road conditions method for early warning and system of block chain in vehicle-mounted net |
CN110073301A (en) * | 2017-08-02 | 2019-07-30 | 强力物联网投资组合2016有限公司 | The detection method and system under data collection environment in industrial Internet of Things with large data sets |
CN111510951A (en) * | 2019-01-31 | 2020-08-07 | 华为技术有限公司 | Data sending method and terminal equipment |
CN112859822A (en) * | 2021-04-25 | 2021-05-28 | 北京邮电大学 | Equipment health analysis and fault diagnosis method and system based on artificial intelligence |
CN113328755A (en) * | 2021-05-11 | 2021-08-31 | 内蒙古工业大学 | Compressed data transmission method facing edge calculation |
CN113507452A (en) * | 2021-06-18 | 2021-10-15 | 北方工业大学 | Vehicle networking privacy protection data sharing system based on block chain |
CN113507498A (en) * | 2021-06-02 | 2021-10-15 | 浪潮软件股份有限公司 | Government affair hall device data exchange method and model |
CN113556340A (en) * | 2021-07-21 | 2021-10-26 | 国网四川省电力公司乐山供电公司 | Portable VPN terminal, data processing method and storage medium |
CN113630895A (en) * | 2021-08-03 | 2021-11-09 | 陈荣乐 | Data packet transmission method and device |
CN113746750A (en) * | 2020-05-30 | 2021-12-03 | 华为技术有限公司 | Method, network node, system and storage medium for forwarding data message |
US20220100858A1 (en) * | 2020-09-30 | 2022-03-31 | EMC IP Holding Company LLC | Confidence-enabled data storage systems |
CN114332797A (en) * | 2021-12-27 | 2022-04-12 | 率为科技(北京)有限责任公司 | Road scene semantic segmentation method and system with self-evaluation mechanism |
-
2022
- 2022-04-07 CN CN202210359010.9A patent/CN114500368B/en active Active
Patent Citations (17)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103078855A (en) * | 2012-12-29 | 2013-05-01 | 四川长虹电器股份有限公司 | Method, device and system for realizing equipment access |
US20170170884A1 (en) * | 2015-12-14 | 2017-06-15 | Qualcomm Incorporated | Mu-mimo scheduler transmit mode probing with transmit mode scoring |
CN110073301A (en) * | 2017-08-02 | 2019-07-30 | 强力物联网投资组合2016有限公司 | The detection method and system under data collection environment in industrial Internet of Things with large data sets |
CN108776903A (en) * | 2018-05-16 | 2018-11-09 | 浙江口碑网络技术有限公司 | User's evaluation method and device based on interactive form |
CN108900850A (en) * | 2018-05-31 | 2018-11-27 | 北京达佳互联信息技术有限公司 | A kind of live broadcasting method, device and intelligent glasses |
CN109064317A (en) * | 2018-08-10 | 2018-12-21 | 玖富金科控股集团有限责任公司 | A kind of data receiver and retransmission method, electronic equipment and readable storage medium storing program for executing |
CN109584595A (en) * | 2019-01-14 | 2019-04-05 | 北京交通大学 | Based on the road conditions method for early warning and system of block chain in vehicle-mounted net |
CN111510951A (en) * | 2019-01-31 | 2020-08-07 | 华为技术有限公司 | Data sending method and terminal equipment |
CN113746750A (en) * | 2020-05-30 | 2021-12-03 | 华为技术有限公司 | Method, network node, system and storage medium for forwarding data message |
US20220100858A1 (en) * | 2020-09-30 | 2022-03-31 | EMC IP Holding Company LLC | Confidence-enabled data storage systems |
CN112859822A (en) * | 2021-04-25 | 2021-05-28 | 北京邮电大学 | Equipment health analysis and fault diagnosis method and system based on artificial intelligence |
CN113328755A (en) * | 2021-05-11 | 2021-08-31 | 内蒙古工业大学 | Compressed data transmission method facing edge calculation |
CN113507498A (en) * | 2021-06-02 | 2021-10-15 | 浪潮软件股份有限公司 | Government affair hall device data exchange method and model |
CN113507452A (en) * | 2021-06-18 | 2021-10-15 | 北方工业大学 | Vehicle networking privacy protection data sharing system based on block chain |
CN113556340A (en) * | 2021-07-21 | 2021-10-26 | 国网四川省电力公司乐山供电公司 | Portable VPN terminal, data processing method and storage medium |
CN113630895A (en) * | 2021-08-03 | 2021-11-09 | 陈荣乐 | Data packet transmission method and device |
CN114332797A (en) * | 2021-12-27 | 2022-04-12 | 率为科技(北京)有限责任公司 | Road scene semantic segmentation method and system with self-evaluation mechanism |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115314160A (en) * | 2022-08-05 | 2022-11-08 | 深圳美克拉网络技术有限公司 | Mobile communication data flow management method and device |
CN115314160B (en) * | 2022-08-05 | 2024-03-29 | 深圳美克拉网络技术有限公司 | Mobile communication data traffic management method and device |
Also Published As
Publication number | Publication date |
---|---|
CN114500368B (en) | 2022-06-17 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US11122089B2 (en) | Authorization policy optimization method and apparatus, and storage medium | |
CN106933854B (en) | Short link processing method and device and server | |
WO2015165412A1 (en) | Method for modifying webpage and apparatus for modifying webpage | |
US9930005B2 (en) | Method, device and system for processing DNS cache information | |
CN107729765B (en) | Multimedia data management method and device, storage medium and electronic equipment | |
US20210158353A1 (en) | Methods, systems, apparatuses, and devices for processing request in consortium blockchain | |
WO2017045450A1 (en) | Resource operation processing method and device | |
CN106534268B (en) | Data sharing method and device | |
CN111031111B (en) | Page static resource access method, device and system | |
TWI701932B (en) | Identity authentication method, server and client equipment | |
CN112016078A (en) | Method, device, server and storage medium for detecting forbidding of login equipment | |
CN109450844B (en) | Method and device for triggering vulnerability detection | |
CN110727417A (en) | Data processing method and device | |
CN114500368B (en) | Data transmission method and device and router adopting device | |
CN107798239B (en) | Operation risk processing method and device, computer equipment and storage medium | |
JP2019020794A (en) | Document management device, document management system, and program | |
CN109068170B (en) | Storage method, device, terminal and storage medium for barrage message | |
CN105095303B (en) | Quick link pushing method and quick link pushing device | |
CN114143042B (en) | Vulnerability simulation method, vulnerability simulation device, computer equipment and storage medium | |
US10742639B1 (en) | System and method for improving login and registration efficiency to network-accessed data | |
US20220129239A1 (en) | Democratic skip | |
US11989293B2 (en) | Systems, methods, and media for identifying and responding to malicious files having similar features | |
CN115314160A (en) | Mobile communication data flow management method and device | |
CN115034783A (en) | Digital currency transaction tracing method based on transaction address and message characteristics | |
CN104573519B (en) | file scanning method and system |
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 |