Unlock instant, AI-driven research and patent intelligence for your innovation.

Data transmission method and device

A technology of a data transmission device and a data transmission method, which is applied in the field of communication, can solve problems such as high complexity of VlanTag, and achieve the effects of reducing the use of logic resources, reducing complexity, and solving high complexity

Active Publication Date: 2021-06-04
ZTE CORP
View PDF6 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0008] The embodiment of the present invention provides a data transmission method and device to at least solve the problem of high complexity of inserting VlanTag in Ethernet packets in the related art

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Data transmission method and device
  • Data transmission method and device
  • Data transmission method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0040] In this embodiment, a data transmission device is also provided, image 3 is a structural block diagram of a data transmission device according to an embodiment of the present invention, such as image 3 As shown, the device includes:

[0041]A preset number of first registers 32 and second registers 34, wherein the preset number of first registers 32 are sequentially cascaded, and the second register 34 is connected to the first-level register 32-1 in the preset number of first registers , the preset number is the number of bytes of the virtual local area network label VlanTag;

[0042] Each first register 32 is used for correspondingly storing a byte of VlanTag, and outputting a byte of stored VlanTag;

[0043] The second register 34 is used to store the input data, and output the input data to the first stage register 32-1;

[0044] Wherein, the data transmission device is used to use the data output by the last stage register 32-n in the first register as the out...

Embodiment 2

[0054] The method embodiment provided in Embodiment 4 of the present application may be executed in a mobile terminal, a computer terminal, or a similar computing device. Taking running on a mobile terminal as an example, Figure 4 It is a hardware structural block diagram of a mobile terminal of a data transmission method according to an embodiment of the present invention, such as Figure 4 As shown, the mobile terminal 40 may include one or more (only one is shown in the figure) processor 402 (the processor 402 may include but not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA, etc.), for A memory 404 for storing data, and a transmission device 406 for communication functions. Those of ordinary skill in the art can understand that, Figure 4 The shown structure is only for illustration, and it does not limit the structure of the above-mentioned electronic device. For example, mobile terminal 40 may also include Figure 4 ...

Embodiment 3

[0070] In this embodiment, a data transmission device is also provided, which is used to implement the above embodiments and preferred implementation modes, and what has already been described will not be repeated. As used below, the term "module" may be a combination of software and / or hardware that realizes a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, implementations in hardware, or a combination of software and hardware are also possible and contemplated.

[0071] Figure 6 is a structural block diagram of a data transmission device according to an embodiment of the present invention, such as Figure 6 As shown, the device includes:

[0072] The writing module 62 is used to write the bytes of the virtual local area network tag VlanTag into a preset number of first registers, wherein the preset number of first registers are cascaded in sequence, and a word of VlanTag is stored in each first re...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The present invention provides a data transmission method and device, wherein the device includes: a preset number of first registers and second registers, wherein the preset number of first registers are cascaded in sequence, and the second register is connected to a preset number of The first-level registers in the first register are connected, and the preset number is the number of bytes of the virtual local area network tag VlanTag; each first register is used to store one byte of the corresponding VlanTag, and output one byte of the stored VlanTag The second register is used to store input data, and output the input data to the first-level register; wherein, the data transmission device is used to use the data output by the last-level register in the first register as output data, which solves the problem in the related art. The high complexity of inserting VlanTag in Ethernet packets reduces the complexity of inserting VlanTags in Ethernet packets.

Description

technical field [0001] The present invention relates to the communication field, in particular, to a data transmission method and device. Background technique [0002] When Field-Programmable Gate Array (Field-Programmable Gate Array, FPGA for short) is applied in the communication field, it is sometimes necessary to insert a 4-byte VlanTag into an Ethernet packet without a virtual local area network tag (VlanTag). [0003] figure 1 It is a flow chart of the method for inserting a VlanTag according to related technologies, such as figure 1 As shown, at present, the VlanTag insertion process is as follows: first output the input Ethernet packet header directly, output a 4-byte VlanTag at the position where the VlanTag needs to be inserted, and then continue to output the Ethernet data. [0004] Since there is a process of outputting VlanTag and suspending the output of Ethernet data in the middle, and the input Ethernet data is continuous, it is necessary to implement the p...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): H04L12/46
CPCH04L12/46
Inventor 何健
Owner ZTE CORP