# US 2014/0153442 A1 · Method, Device, and System for Packet Processing

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2014/0153442 A1
- Document ID: US20140153442A1
- Status: Published application
- Kind: A1
- Application number: 14/173,415
- Filed: 2014-02-05
- Published: 2014-06-05
- Earliest claimed: 2011-08-05
- Assignees: Huawei Technologies Co., Ltd.
- Applicants: Huawei Technologies Co., Ltd.
- Inventors: Bo Zhang; Nan Jiang; Wenbo Guo; Yong Luo; Xinglin Huang
- Web page: https://patentgrep.com/patent/US20140153442A1

## CPC

- H04L 12/4675: {Dynamic sharing of VLAN information amongst network nodes (configuration of the network or of network elements H04L41/08)}
- H04L 12/4679: {Arrangements for the registration or de-registration of VLAN attribute values, e.g. VLAN identifiers, port VLAN membership}
- H04L 41/0853: by actively collecting configuration information or by backing up configuration information
- H04L 41/26: {using dedicated tools for LAN [Local Area Network] management}
- H04L 45/66: {Layer 2 routing, e.g. in Ethernet based MAN's}
- H04L 49/70: {Virtual switches}
- H04L 41/0813: characterised by the conditions triggering a change of settings
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

The present disclosure provides a method, a device, and a system for packet processing, where the method includes: receiving a protocol packet from a downstream device, where the protocol packet carries uplink port information of the downstream device and the user VLAN of the downstream device; learning port types of the present device based on the uplink port information and classifying the user VLAN of the present device and the user VLAN of the downstream device based on the user VLAN of the downstream device; and forwarding the received packet based on configuration information stored on the present device, where the port type or types to which each VLAN type can be added are specified in the configuration information.

## Claims

### Claim 1

A method for packet processing, comprising:
receiving, by a network device, a protocol packet from a downstream device, wherein the protocol packet carries uplink port information of the downstream device and user virtual local area network (VLAN) of the downstream device;
learning, by the network device, port types of the network device based on the uplink port information;
classifying, by the network device, the user VLAN of the network device and the user VLAN of the downstream device based on the user VLAN of the downstream device; wherein classified VLAN types comprise a Local VLAN that is only used by users of the network device, an Across VLAN that is not used by users of the network device but used by users of the downstream device, and a Common VLAN that is used by both users of the network device and users of the downstream device; and
forwarding, by the network device, the protocol packet received is based on configuration information stored on the network device, wherein the port type or types to which each VLAN type can be added are specified in the configuration information.

### Claim 2 (depends on 1)

The method according to claim 1, wherein the port types of the network device comprise:
a user port that is connected to the network device on a user side, an uplink port that is connected to an upper layer device, and a cascade port that is connected to the downstream device.

### Claim 3 (depends on 1)

The method according to claim 1, wherein the learning port types of a local port based on the uplink port information comprises:
learning that the port on the network device that is connected to the uplink port is a cascade port.

### Claim 4 (depends on 1)

The method according to claim 1, wherein the classifying the user VLAN of the network device and the user VLAN of the downstream device based on the user VLAN of the downstream device specifically comprises:
comparing the user VLAN of the network device with the user VLAN of the downstream device, and identifying the types of the user VLAN of the network device and the user VLAN of the downstream device.

### Claim 5 (depends on 3)

The method according to claim 3, wherein the method further comprises:
sending, through the uplink port of the network device, the protocol packet that carries uplink port information of the network device and the user VLAN of the network device.

### Claim 6 (depends on 1)

The method according to claim 1, wherein that the port type or types to which each VLAN type can be added are specified in the configuration information specifically comprises:
adding the Local VLAN to an uplink port, and adding the Across VLAN and the Common VLAN to a corresponding uplink port and cascade port.

### Claim 7 (depends on 1)

The method according to claim 1, wherein in the configuration information, port type attributes may further be specified, which comprises: configuring layer 2 isolation between a cascade port and a user port and/or disabling a function of the cascade port of learning a Media Access Control MAC address of the Across VLAN.

### Claim 8 (depends on 1)

The method according to claim 1, wherein the configuration information may further comprise: only receiving the protocol packet, from a user port or an uplink port, carrying the Common VLAN or the Local VLAN.

### Claim 9

A device for packet processing, comprising:
a packet receiving unit, configured to receive a protocol packet from a downstream device, wherein the protocol packet carries uplink port information of the downstream device and user virtual local area network VLAN of the downstream device;
a learning unit, configured to learn port types of the device based on the uplink port information, and classify the user VLAN of the device and the user VLAN of the downstream device based on the user VLAN of the downstream device; wherein classified VLAN types comprise a Local VLAN that is only used by users of the device, an Across VLAN that is not used by users of the device but used by users of the downstream device, and a Common VLAN that is used by both users of the device and users of the downstream device; and
a packet processing unit, configured to forward the protocol packet received based on configuration information stored on the device, wherein the port type or types to which each VLAN type can be added are specified in the configuration information.

### Claim 10 (depends on 9)

The device for packet processing according to claim 9, wherein the device for packet processing further comprises a packet sending unit, and the packet sending unit is configured to send to all ports the protocol packet carrying a port list and the user VLAN of the downstream device.

### Claim 11

A system for packet processing, comprising a first device and a second device, wherein:
the first device is configured to send a protocol packet to the second device, wherein the protocol packet carries uplink port information of the first device and user virtual local area network VLAN of the first device; and
the second device is configured to learn port types of the second device based on the uplink port information, classify the user VLAN of the second device and the user VLAN of the first device based on the user VLAN of the first device, and forward the protocol packet received is based on configuration information stored on the second device, wherein the port type or types to which each VLAN type can be added are specified in the configuration information; wherein classified VLAN types comprise a Local VLAN that is only used by users of the second device, an Across VLAN that is not used by users of the second device but used by users of the first device, and a Common VLAN that is used by both users of the second device and users of the first device.
