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

Vlan frame processing method and device, and server

A frame processing and register technology, applied in the field of communication, can solve the problems of high cost and complicated control, achieve the effect of simple read and write control, and reduce the cost of hardware and control and maintenance

Active Publication Date: 2018-12-04
ZTE CORP
View PDF4 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0012] The Vlan frame processing method, device and server provided by the embodiments of the present invention mainly solve the technical problem that the VlanTag in the Vlan frame is stripped through the FIFO buffer queue, resulting in higher cost and more complicated control.

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
  • Vlan frame processing method and device, and server
  • Vlan frame processing method and device, and server
  • Vlan frame processing method and device, and server

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0033] In the Vlan frame processing method provided in this embodiment, register unit 0, register unit 1, . . . , register unit i, . Then after obtaining the Vlan frame that contains the Vlan tag, it is parsed, and the data obtained by parsing takes 1 byte as the step size and 1 clock as the writing cycle, and writes the register unit 0 in sequence, and at each Clock cycle, the data in the previous register unit is written into the latter register unit; when data is written in the register unit n, judge whether the data in the register unit n is Vlan tag data, if not, from the register unit n Read data, and continue to write the data in the previous register unit to the next register unit; otherwise, read data from register unit 0 in each subsequent clock cycle, and stop writing the data in the previous register unit For the latter register unit, the present invention can also effectively strip the VlanTag data in the Vlan frame by using n+1 register units, without using FIFO ...

Embodiment 2

[0048] This embodiment provides a kind of Vlan frame processing device, this device is aimed at the Vlan frame that contains VlanTag and VlanTag length is n bytes, register unit 0, register unit 1, ..., register unit i, ... register unit connected in sequence are set n. Then after obtaining the Vlan frame that contains the Vlan tag, it is parsed, and the data obtained by parsing takes 1 byte as the step size and 1 clock as the writing cycle, and writes the register unit 0 in sequence, and at each Clock cycle, the data in the previous register unit is written into the latter register unit; when data is written in the register unit n, judge whether the data in the register unit n is Vlan label data, if not, from the register unit n Read data, and continue to write data in the previous register unit to the next register unit; otherwise, read data from register unit 0 in each subsequent clock cycle, and stop writing data in the previous register unit The latter register unit, so ...

Embodiment 3

[0061] In order to facilitate the understanding of the present invention, this embodiment takes the Vlan tag data contained in the Vlan frame as an example with a length of 4 bytes and specific data as 0x81 0x00 0x0a 0xbc. For the structure of the Vlan frame, see Figure 5 As shown, the Vlan tag 802.1Q VLAN Tag in the Vlan frame occupies 4 bytes. Assume that all the data output by parsing the Vlan frame is the input data: 0x01 0x02 0x03 0x04 0x05 0x81 0x00 0x0a 0xbc 0x06 0x07

[0062] The inserted Vlan tag data is: 0x81 0x00 0x0a 0xbc,

[0063] The output data after processing is: 0x01 0x02 0x03 0x04 0x05 0x06 0x07;

[0064] Set 5 registers, which are numbered 0, 1, 2, 3, 4 in sequence, among which 1, 2, 3, 4 registers are respectively written into the four bytes of the Vlan label, Image 6 Indicates the control of each register in the FPGA logic, Figure 7 The arrow in the figure indicates the direction of data transmission. Registers 0, 1, 2, 3, and 4 are pipelined, that...

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 invention provides a Vlan frame processing method and device, and a server. The method is characterized by in the condition that a Vlan frame contains a VlanTag and a VlanTag length is n bytes, setting n+1 register units which are successively connected; after the Vlan frame is acquired, analyzing the Vlan frame, successively writing the analyzed data into the register unit 0 through taking 1byte as a step length and one clock as a writing period, and in each clock period, writing the data from the previous register unit into the next register unit; when the data is written in the register unit n, determining whether the data in the register unit n is Vlan tag data, and if the data in the register unit n is not the Vlan tag data, reading the data from the register unit n; otherwise, reading the data from the register unit 0 in each follow-up clock period and stopping writing the data from the previous register unit to the next register unit. In the invention, the n+1 register units are used to effectively peel the VlanTag data from the Vlan frame, a FIFO logic resource does not need to be used, reading and writing control is relative simple, and hardware and control maintenance cost can be reduced.

Description

technical field [0001] The present invention relates to the communication field, in particular to a Vlan (Virtual Local Area Network, virtual local area network) frame processing method, device and server. Background technique [0002] When applied in the communication field, in some communication scenarios, the Vlan frame carries a VlanTag (virtual local area network label), so it will involve the stripping of the VlanTag in the Vlan frame, thereby outputting data without the VlanTag. At this time, because the output data has fewer bytes of VlanTag data than the input data, so in the FPGA (Field-ProgrammableGate Array, Field Programmable Gate Array), it is necessary to find a way not to affect the continuity of the output data when stripping the VlanTag. [0003] For example, when the length of the VlanTag data in the Vlan frame is 4 bytes. The current processing method is to add a FIFO (First Input First Output) queue to write the input Vlan frame into a buffer 1-byte wid...

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 Applications(China)
IPC IPC(8): H04L12/46
CPCH04L12/4641H04L12/4666
Inventor 何健侯轶
Owner ZTE CORP