分享
 
 
 

VLAN Isolation For BCM 5650

王朝other·作者佚名  2006-01-31
窄屏简体版  字體: |||超大  

VLAN Isolation For BCM 5650

1.1 SRS

1.1.1 Function The system shall support VLAN isolation per subscriber port and VLAN as follows.

- The user-isolation shall be per subscriber port and VLAN.

- Two isolation behaviors shall be supported and configurable per VLAN. One is limited-isolation. The other is full-isolation. Following is the definitions to the two kinds isolation behaviors:

? Limited-isolation: Any packets ingress an isolated subscriber port in a VLAN shall not be forwarded to the other subscriber ports with isolation enabled but the uplink ports and the other subscriber ports with isolation disabled, where the subscriber ports and the uplink ports are the member port of the VLAN associated by the ingress packets.

? Full-isolation: Any packets ingress an isolated subscriber port in a VLAN shall not be forwarded to the other ports but the uplink ports only, where the subscriber ports and the uplink ports are the member ports of the VLAN associated by the ingress packets

1.1.2 OAMP

1.2 Overview

BCM 5650 support flexible filter mechanism to support Vlan Isolation function with BCM5650 chipset FFP IRULE/IMASK tables.

The related fields of IRULE/IMASK tables are listed below:

IRULE Table:

Field

Description

Value Set

Remark

ACTION

Filter Action. We need to filter egress mask.

0x80000

Bit 19,

EGRESS_MASK

Mask the ports that will be isolated. Bit N value 1 means the Nth port is isolated. N is 0-based.

IPORT_MODE

0 means IRULE entry use IPORT, 1 means IRULE entry use IPORT_MASK.

1

For BCM5650, we use ingress port mask, so we should set this value to 1.

IPORT_BITMAP

Bit N is 1 neams the ingress port should be included in vlan isolation. If a port is not included in vlan isolation, it can communicate to any other ports except the port which is bit valued 1 in EGRESS_MASK.

N is 0-based.

.

IFILTER

IRULE filter data field.

BCM_FILTER_QUALIFY_VID(unit, tempfilter, vlanId);

We should set VLAN ID in filter field for specified VLAN.

IMASK Table:

Field

Description

Value Set

Remark

IMASK

Set VLAN Filter MASK

Offset 14 in Ethernet packet.

See the following figure for a complete port inter-communiation rule:

figure 1

Complete

Port Inter-communication rule

According to these rules, we can get our filter rules for limited isolation and full isolation. See the following two figures for easy understanding.

figure 3 limited filter rule

figure 4 Full Isolation rule

1.3 Data Structures and Functions

Vlan Isolation Module implementation is based on BCM5650 SDK4.2.6.

There need two types of functions: API and Functional.

Figure 5 Vlan Isolation

Main Functions

The main types are:

VLAN Isolation Entry Type

VLAN Isolation Filter Type

Defined as:

struct

vlan_isolation_entry_s

struct

vlan_isolation_filter_s

typedef vlan_isolation_entry_s

vlan_isolation_entry_t

typedef vlan_isolation_filter_s

vlan_isolation_filter_t

VLAN Isolation Entry is used to store VLAN isolation information about each VLAN, it is defined as following:

NODE

node

int

vlan_id

U32

isolation_pbm

int

isolation_mode

vlan_isolation_filter_t

filter

All VLAN isolation entry data is stored in a LIST defined as below:

LIST

vlan_isolation_pbm_list

VLAN Isolation Filter Type is used to uncoupling VLAN Isolation common codes with BCM SDK specified codes. Its usage is just same as bcm_filter_t. It is defined as following:

int

filter_opaque_type

The main defines are:

#define

VLAN_ISOLATION_LIMITED 1

#define

VLAN_ISOLATION_FULL 0

There also a serials of error code definition as below:

#define

E_VLAN_ISOLATION_NO_ERROR OK

#define

E_VLAN_ISOLATION_NOT_CHANGE E_VLAN_ISOLATION_NO_ERROR

#define

E_VLAN_ISOLATION_MODE_NOT_CHANGE E_VLAN_ISOLATION_NO_ERROR

#define

E_VLAN_ISOLATION_LIST_DATA_BREAKED E_VLAN_ISOLATION_NO_ERROR

#define

E_VLAN_ISOLATION_OFFSET -3000

#define

E_VLAN_ISOLATION_VLAN_NOT_EXIST -1+E_VLAN_ISOLATION_OFFSET

#define

E_VLAN_ISOLATION_PBM_OVER -2+E_VLAN_ISOLATION_OFFSET

#define

E_VLAN_ISOLATION_MEMORY_FAILED -3+E_VLAN_ISOLATION_OFFSET

#define

E_VLAN_ISOLATION_FILTER_REMOVE_FAILED -4+E_VLAN_ISOLATION_OFFSET

#define

E_VLAN_ISOLATION_FILTER_QUALIFY_FAILED -5+E_VLAN_ISOLATION_OFFSET

#define

E_VLAN_ISOLATION_FILTER_INSTALL_FAILED -6+E_VLAN_ISOLATION_OFFSET

#define

E_VLAN_ISOLATION_MODE_UNCHANGED -7+E_VLAN_ISOLATION_OFFSET

#define

E_VLAN_ISOLATION_FILTER_INIT_FAILED -8+E_VLAN_ISOLATION_OFFSET

#define

E_VLAN_ISOLATION_ENTRY_NOT_FOUND -9+E_VLAN_ISOLATION_OFFSET

#define

E_VLAN_ISOLATION_BMT_NOT_SUPPORT_LIMIT_MODE -10+E_VLAN_ISOLATION_OFFSET

#define

E_VLAN_ISOLATION_PBM_ERROR -11+E_VLAN_ISOLATION_OFFSET

1.3.1 Scenarios

1.3.1.1 Initialization

We should initialize VLAN Isolation global variables and environment at VLAN task startup.

1.3.1.2 VLAN Member Ports Configuration Change

If some member ports in a VLAN is to be removed from VLAN, we should also remove this ports from VLAN isolation entries if they are isolated ports.

1.3.1.3 VLAN Remove

If a VLAN is to be destroyed, we should firstly destroy related VLAN Isolation information.

1.3.1.4 Uninitialization

We should destroy all VLAN Isolation Records when VLAN task is to be terminated.

1.4 VLAN Isolation OAMP API

Reference: doc

 
 
 
免责声明:本文为网络用户发布,其观点仅代表作者个人观点,与本站无关,本站仅提供信息存储服务。文中陈述内容未经本站证实,其真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
2023年上半年GDP全球前十五强
 百态   2023-10-24
美众议院议长启动对拜登的弹劾调查
 百态   2023-09-13
上海、济南、武汉等多地出现不明坠落物
 探索   2023-09-06
印度或要将国名改为“巴拉特”
 百态   2023-09-06
男子为女友送行,买票不登机被捕
 百态   2023-08-20
手机地震预警功能怎么开?
 干货   2023-08-06
女子4年卖2套房花700多万做美容:不但没变美脸,面部还出现变形
 百态   2023-08-04
住户一楼被水淹 还冲来8头猪
 百态   2023-07-31
女子体内爬出大量瓜子状活虫
 百态   2023-07-25
地球连续35年收到神秘规律性信号,网友:不要回答!
 探索   2023-07-21
全球镓价格本周大涨27%
 探索   2023-07-09
钱都流向了那些不缺钱的人,苦都留给了能吃苦的人
 探索   2023-07-02
倩女手游刀客魅者强控制(强混乱强眩晕强睡眠)和对应控制抗性的关系
 百态   2020-08-20
美国5月9日最新疫情:美国确诊人数突破131万
 百态   2020-05-09
荷兰政府宣布将集体辞职
 干货   2020-04-30
倩女幽魂手游师徒任务情义春秋猜成语答案逍遥观:鹏程万里
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案神机营:射石饮羽
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案昆仑山:拔刀相助
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案天工阁:鬼斧神工
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案丝路古道:单枪匹马
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案镇郊荒野:与虎谋皮
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案镇郊荒野:李代桃僵
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案镇郊荒野:指鹿为马
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案金陵:小鸟依人
 干货   2019-11-12
倩女幽魂手游师徒任务情义春秋猜成语答案金陵:千金买邻
 干货   2019-11-12
 
推荐阅读
 
 
 
>>返回首頁<<
 
靜靜地坐在廢墟上,四周的荒凉一望無際,忽然覺得,淒涼也很美
© 2005- 王朝網路 版權所有