1 zarlink products and associated documents marked "eng" ("engineeri ng samples") are or relate to products in development and not released to production. all engineering samples are supplied only for testing and on the express understanding that (i) they have not been fully tested or characterized under intended modes of operation and may contain defects; (ii) zarlink makes no repr esentation or warranty regarding them; and (iii) zarlink discl aims any liability for claims, demands and damages, including without limitation special, indirect and conseq uential damages, resulting from any loss arising out of the a pplication, use or performance of them. engineering samples may be changed or discontinued by zarlink at any time without notice. contents 1.0 purpose 2.0 scope 3.0 features 3.1 unmanaged mode 3.2 managed mode 4.0 flexible port mirroring support 1.0 purpose this application note describes the port mirroring usage on the mvtx260x chipsets. 2.0 scope this document will cover port mirroring for the mvtx260x device. the reader should be familiar with the mvtx260x data sheet before reading this application note 3.0 features this application note describes the port mirroring usage on the mvtx260x chipsets. the mvtx260x chips provide port-mirroring function on the 10/100m ports. the traffic can be mirrored from either receive or transmit stream except on ports 7 (8th), 15 (16th), and 23 (24th). ports 7, 15, and 23 take advantage of the zarlink security mirroring feature which allows the mirrored data to be viewed by the cpu through the software steps outlined in this application note. for the unmanaged switches, port 23 is the designated mirror- to port. the mvtx260x supports two such mirrored source-destination pairs. a mirror port cannot also serve as a data port. 3.1 unmanaged mode the port mirroring functiona lity may be set by external pins on the mvtx260x. if this option is selected, then there can only be one mirroring pair, and the destination port must be port 23. there are 6 pins (pm_ct[5:0]). the first 5 bits select the port to be mirrored. the last bit selects either ingress or egress data. again the unmanaged mode port mirroring function does not apply to port 7 and 15. the port mirroring control via external pins can be applied to the managed mode as well. 3.2 managed mode in management mode, the port mirroring is set via four registers: ? mirror1_src: sets the s ource port for the first port mirroring pair. bits [4 :0] select the source port to be mirrored. an illegal port number is used to disable mirroring (which is the default setting). bit [5] is used to select between ingress (rx) or egress (tx) data. bit [7] is used to select between external pin controls and register control for port mirroring. ? mirror1_dest: sets the destination port for the first port mirroring pair . bits [4:0] select the destination port to be mirrored. the default is port 23. ? mirror2_src: sets the source port for the second port mirroring pair . bits [4:0] select the source port to be mirrored. an illegal port number is used to disable mirroring (which is the default setting). bit [5] is used to select between ingress (rx) or egress (tx) data. ? mirror2_dest: sets the destination port for the second port mirroring pair . bits [4:0] select the destination port to be mirrored. the default is port 0. issue 1 october 2002 msan-210 mvtx260x port mirroring application note
msan-210 application note 2 zarlink semiconductor inc. 4.0 flexible port mirroring support this section describes a flexible soft ware solution to selectively mirror the incoming or outgoing traffics of a given mac. if all macs for the ingress and egress packets of a po rt are mirrored, then the function is similar to port mirroring. the main approach is to ut ilize the secure mode hardware, which forwards the monitored traffics of a given port to the cpu only. the driver then sets up the mac entries that point the return traffics to the cpu port, so the traffic can be captured. in the mvtx260x driver, the port mirrori ng function for ports 7, 15, and 23 are provided as an option. the software port mirroring implemented in the driver is described below. first, the following mvtx2604 register needs to be program as follow: ? the ecr2 register for the mirror source port need the security enabled field to be set to send packet to cpu only. also for this register, the learning disable field needs to be set to 1. setting these fields will cause all ingress packets to be forwarded to the cpu. the driver then needs to be modified to perform the following functions: ? ingress packets that have an unknown source mac add ress needs to be learned by the driver. the driver must also send a control frame to the mvtx2604 to have this new source mac address added to the cpu port. ? forward all ingress packets of the mirror source port to the destination port if the destination mac address has been learned. if the destination mac address is unknown then flood the packet to the vlan domain ports. also, forward the ingress packets to the mirror destination port. ? receive all packets destined for the mirror source port and forward it to the mirror source port. if mirroring is disabled then the security enabled and learning disable field in the ecr2 register must be set to its default value and the driver functions to support this solution must not be executed. note : this software solution may not provide line rate traffic between the mirror source port and any mirror-to port. the actual line rate depends on the type and speed of the processor.
www.zarlink.com information relating to products and services furnished herein by zarlink semiconductor inc. trading as zarlink semiconductor o r its subsidiaries (collectively ?zarlink?) is believed to be reliable. however, zarlink assumes no liability for errors that may appear in this publication, or for liability otherwise arising from the application or use of any such information, product or service or for any infringement of patents or other intellectual propert y rights owned by third parties which may result from such application or use. neither the supply of such information or purchase of product or service conveys any licen se, either express or implied, under patents or other intellectual property rights owned by zarlink or licensed from third parties by zarlink, whatsoever. purchaser s of products are also hereby notified that the use of product in certain ways or in combination with zarlink, or non-zarlink furnished goods or services may infringe patents or other intellectual property rights owned by zarlink. this publication is issued to provide information only and (unless agreed by zarlink in writing) may not be used, applied or re produced for any purpose nor form part of any order or contract nor to be regarded as a representation relating to the products or services concerned. the products, t heir specifications, services and other information appearing in this publication are subject to change by zarlink without notice. no warranty or guarantee express or implied is made regarding the capability, performance or suitability of any product or service. information concerning possible methods of use is provided as a guide only and does not constitute any guarantee that such methods of use will be satisfactory in a specific piece of equipment. it is the user?s responsibility t o fully determine the performance and suitability of any equipment using such information and to ensure that any publication or data used is up to date and has not b een superseded. manufacturing does not necessarily include testing of all functions or parameters. these products are not suitable for use in any medical products whose failure to perform may result in significant injury or death to the user. all products and materials are sold and services provided subject to zarlink?s conditi ons of sale which are available on request. purchase of zarlink?s i 2 c components conveys a licence under the philips i 2 c patent rights to use these components in an i 2 c system, provided that the system conforms to the i 2 c standard specification as defined by philips. zarlink and the zarlink semiconductor logo are trademarks of zarlink semiconductor inc. copyright 2002, zarlink semiconductor inc. all rights reserved. technical documentation - not for resale for more information about all zarlink products visit our web site at
|