VLAN for DekTec Network Adapters



Similar documents
VLANs. Application Note

How To Configure Voice Vlan On An Ip Phone

Building a Penetration Testing Virtual Computer Laboratory

Exhibit n.2: The layers of a hierarchical network

What is VLAN Routing?

ProSafe Plus Switch Utility

Management Software. Web Browser User s Guide AT-S106. For the AT-GS950/48 Gigabit Ethernet Smart Switch. Version Rev.

VLAN 802.1Q. 1. VLAN Overview. 1. VLAN Overview. 2. VLAN Trunk. 3. Why use VLANs? 4. LAN to LAN communication. 5. Management port

IP videoconferencing solution with ProCurve switches and Tandberg terminals

Configuring Your Computer and Network Adapters for Best Performance

Enabling Multiple Wireless Networks on RV320 VPN Router, WAP321 Wireless-N Access Point, and Sx300 Series Switches

VMware ESX Server Q VLAN Solutions W H I T E P A P E R

Rohde & Schwarz R&S SITLine ETH VLAN Encryption Device Functionality & Performance Tests

Leased Line + Remote Dial-in connectivity

Semantic based Web Application Firewall (SWAF - V 1.6)

OpenCPN Garmin Radar Plugin

VLAN and QinQ Technology White Paper

Deploying Windows Streaming Media Servers NLB Cluster and metasan

Configuring Switch Ports and VLAN Interfaces for the Cisco ASA 5505 Adaptive Security Appliance

Watson SHDSL Router Application Manual

Using Industrial Ethernet Networks for PROFInet

CMA5000 SPECIFICATIONS Gigabit Ethernet Module

Abstract. Avaya Solution & Interoperability Test Lab

1 PC to WX64 direction connection with crossover cable or hub/switch

Comodo MyDLP Software Version 2.0. Installation Guide Guide Version Comodo Security Solutions 1255 Broad Street Clifton, NJ 07013

vsphere Networking ESXi 5.0 vcenter Server 5.0 EN

ebus Player Quick Start Guide

GVRP Overview. Overview

Improving Quality of Service

User s Manual. 10/100/1000Base-T PCI Express Gigabit Ethernet Adapter. ENW-9702

This topic lists the key mechanisms use to implement QoS in an IP network.

How to monitor network traffic inside an ESXi host

Voice Over IP. MultiFlow IP Phone # 3071 Subnet # Subnet Mask IP address Telephone.

hp ProLiant network adapter teaming

Guideline for setting up a functional VPN

LANs and VLANs A Simplified Tutorial

FSM73xx GSM73xx GMS72xxR Shared access to the Internet across Multiple routing VLANs using a Prosafe Firewall

Linux Integration Services 3.4 for Hyper-V Readme

Virtual LANs. or Raj Jain

1 Data information is sent onto the network cable using which of the following? A Communication protocol B Data packet

Quality of Service (QoS): Managing Bandwidth More Effectively on the Series 2600/2600-PWR and Series 2800 Switches

Edgewater Routers User Guide

Quality of Service Analysis of site to site for IPSec VPNs for realtime multimedia traffic.

Deskpool Quick Start. Version: V2.1.x. Based on Hyper-V Server 2012 R2. Shenzhen Jieyun Technology Co., Ltd (

Installation of the On Site Server (OSS)

Implementation of Virtual Local Area Network using network simulator

Optimum Business SIP Trunk Set-up Guide

VM-Series Firewall Deployment Tech Note PAN-OS 5.0

6.0. Getting Started Guide

Contents. Connection Guide. What is Dante? Connections Network Set Up System Examples Copyright 2015 ROLAND CORPORATION

Easy Smart Configuration Utility

Configuring QoS in a Wireless Environment

Protecting and controlling Virtual LANs by Linux router-firewall

CCNA R&S: Introduction to Networks. Chapter 5: Ethernet

LAB THREE STATIC ROUTING

CS 326e F2002 Lab 1. Basic Network Setup & Ethereal Time: 2 hrs

Virtual Networking with z/vm Guest LAN and Virtual Switch

AT-S60 Version Management Software for the AT-8400 Series Switch. Software Release Notes

TECHNICAL BRIEF. 3Com. NJ205 IntelliJack Switch Management Feature: Virtual LANs and Traffic Prioritization

TCP/IP Network Essentials. Linux System Administration and IP Services

Configuring PA Firewalls for a Layer 3 Deployment

Microsegmentation Using NSX Distributed Firewall: Getting Started

Configuring Switch Ports and VLAN Interfaces for the Cisco ASA 5505 Adaptive Security Appliance

ProSafe Plus Switch Utility

Install MS SQL Server 2012 Express Edition

How to Create a Virtual Switch in VMware ESXi

The IP Transmission Process. V1.4: Geoff Bennett

ProSAFE 8-Port and 16-Port Gigabit Click Switch

QoS & Traffic Management

HP Intelligent Management Center v7.1 Virtualization Monitor Administrator Guide

Install Guide for JunosV Wireless LAN Controller

CCT vs. CCENT Skill Set Comparison

Performance Evaluation of Linux Bridge

NB6 Series Quality of Service (QoS) Setup (NB6Plus4, NB6Plus4W Rev1)

Gigabit Ethernet Packet Capture. User s Guide

ADVANCED NETWORK CONFIGURATION GUIDE

network infrastructure: getting started with VoIP

OneCommand NIC Teaming and VLAN Manager

Can PowerConnect Switches Be Used in IP Multicast Networks?

Configuring Network Address Translation (NAT)

Guide to TCP/IP, Third Edition. Chapter 3: Data Link and Network Layer TCP/IP Protocols

Edgewater Routers User Guide

24 Port Gigabit Ethernet Web Smart Switch. Users Manual

Self Help Guide. Please read the following carefully; Synopsis: Requirements: A Computer with a working RJ45 LAN Port All Belkin Modem Routers

Fibre Channel over Ethernet in the Data Center: An Introduction

ESX Server 3 Configuration Guide Update 2 and later for ESX Server 3.5 and VirtualCenter 2.5

Enabling NAT and Routing in DGW v2.0 June 6, 2012

Configuring QoS. Understanding QoS CHAPTER

Vocia MS-1 Network Considerations for VoIP. Vocia MS-1 and Network Port Configuration. VoIP Network Switch. Control Network Switch

Network Agent Quick Start

Fulvio Risso Politecnico di Torino

Abstract. MEP; Reviewed: GAK 10/17/2005. Solution & Interoperability Test Lab Application Notes 2005 Avaya Inc. All Rights Reserved.

MS Series: VolP Deployment Guide

Introduction to Network Security Lab 1 - Wireshark

Information about IP Proprietary Telephones KX-TDA50/KX-TDA100 KX-TDA200/KX-TDA600. Hybrid IP-PBX. Model No.

EE984 Laboratory Experiment 2: Protocol Analysis

GEVPlayer. Quick Start Guide

Configure A VoIP Network

Transcription:

Application Note DT-AN-IP-2 VLAN for DekTec Network Adapters 1. Introduction VLAN (Virtual LAN) is a technology to segment a single physical network into multiple independent virtual networks. The VLANs are isolated from each other on the data link layer (layer 2): A networked application connected to one VLAN cannot communicate with an application on another VLAN 1. Reasons to use VLAN include the following: Logical portioning of network traffic; Security, to minimize the number of hosts to which broadcast packets are sent; Improve network performance. For example, in broadcast networking infrastructure, the video/audio/transport streams might be put on a certain VLAN (or a number of VLANs), while other network traffic such as management and control is put on a separate VLAN. The protocol most commonly used today in configuring VLANs is IEEE 802.1Q3. This works by adding a so-called 802.1Q header ( 3.3) to the Ethernet frame. Next to VLAN identifying information, this header contains a priority level to set the QoS required for the Ethernet frame. This can be used for traffic-flow management. 2. Using VLANs 2.1. Using Switches to Create VLANs The usual way to segment a network into multiple VLANs is by using VLAN-aware switches. Each port of the switch is associated with a certain VLAN. For example, in the figure below, two VLANs are defined. The blue networked devices (PCs, servers, ) are connected to VLAN 1, the red ones to VLAN 2. The devices itself are unaware of the VLAN they are connected too. However, the so-called trunk-connection between the two switches must be VLAN-aware, otherwise the switches cannot distinguish between the VLANs. For this reason, Ethernet packets on a trunk connection are tagged with a VLAN identifier. 1 Hosts on different VLANs cannot communicate at the MAC layer, but they can communicate on the IP level through a Layer 3 router. 1

2.2. Supporting VLAN Directly from a NIC Sometimes it is useful to support multiple VLANs directly from a Network Interface Card (NIC). For example, in a scenario with a server running several virtual machines with a single NIC, each VM may want to connect to a different VLAN. This can be achieved by programming the switch port to which the server NIC is connected as a trunk port. DekTec network adapters support this way of working. Multiple VLANs can be configured, and in Windows each of them will show up as a separate connection in Control Panel s Network Connections window. From the DekTec SDK it is straightforward to transmit or receive TS-over-IP streams to or from a specific VLAN. The following DekTec network adapters support multiple VLANs: Type Number DTA-160 DTA-2160 DTA-2162 Description Gigabit Ethernet and triple DVB-ASI ports for PCI bus Gigabit Ethernet and triple DVB-ASI ports for PCI Express bus Dual Gigabit Ethernet ports for PCI Express bus 3. The VLAN Protocol 3.1. VLAN Standards The following standards related to VLAN are supported: Standard IEEE 802.1Q IEEE 802.1p Description Defines a system of VLAN tagging for Ethernet frames and the accompanying procedures to be used by bridges and switches in handling tagged frames. Quality of Service (QoS) prioritization scheme that uses a 3-bit field Priority Code Point (PCP) in the Ethernet frame header to differentiate network traffic. 3.2. Format of an Ethernet Frame An Ethernet frame without VLAN tagging information contains the following fields: Preamble Destination address Source address EtherType Payload CRC 8 bytes 6 bytes 6 bytes 2 bytes 46..1500 bytes 4 bytes For VLAN tagging, a 4-byte IEEE 802.1Q header is added between source address and EtherType: Preamble Destination address Source address 802.1Q EtherType Payload CRC 8 bytes 6 bytes 6 bytes 4 bytes 2 bytes 42..1500 bytes 4 bytes 2

3.3. Format of an IEEE 802.1Q Header The IEEE 802.1Q header contains the following sub-fields: Byte Bits Field Field Name Description 1,2 15..0 TPID Tag Protocol Identifier 16-bit field set to 0x8100 in order to identify the frame as an IEEE 802.1Q-tagged frame. 3,4 15..13 PCP Priority Code Point 3-bit field defining the frame priority level. IEEE 802.1p defines the priority levels. 12 DEI Drop Eligible Indicator Not supported by the DekTec VLAN driver. 11..0 VID VLAN Identifier 12-bit field specifying the VLAN to which the frame belongs. The VLAN Identifier 2 uniquely identifies a VLAN. The maximum number of VLANs is 4094. VLAN IDs 0 and 0xFFF are reserved. VLAN ID 0 is used for untagged packets, i.e. Ethernet packets without VLAN information. The default VLAN usually has a VLAN ID of 1. 3.4. IEEE 802.1p Priority Levels The PCP field in the IEEE 802.1Q header ( 3.3) encodes the priority of Ethernet frames. It can be used by Ethernet switches to implement QoS management. The priority levels are defined in IEEE 802.1p as follows: PCP Priority Traffic Type Comment 1 0 (lowest) BK = Background 0 1 BE = Best Effort 2 2 EE = Excellent Effort 3 3 CA = Critical Applications 4 4 VI = Video Jitter should remain less than 100ms 5 5 VO = Voice Jitter should remain less than 10ms 6 6 IC = Internetwork Control 7 7 (highest) NC = Network Control QoS management with priority levels is independent from the virtual LAN function. However, the two are coupled because they share the same sub-header. It is perfectly fine to use QoS management with the PCP field, but not the VLAN function. In that case, VLAN ID must be set to 0. 2 The standard abbreviates VLAN Identifier by VID, but we will use the more descriptive VLAN ID. 3

4. Installing VLAN for DekTec Adapters 4.1. Windows To use VLAN on a Windows host, you have to install the DekTec Advanced Protocol driver DtaNwAp64. This driver is included in Dta.zip, available from the DekTec website, section Downloads, page Drivers and SDKs. Running DtaInstall.exe from this zip file, which you probably have done already to install the DekTec Windows drivers, stores the advanced protocol driver files in: Program Files (x86)\dektec\drivers\dtanwap64. To actually install DtaNwAp64, perform the following steps: 1) In Control Panel, select Network and Sharing Center (or similar, depending on your version of Windows) to show the Network Connections window. 2) Identify the Local Area Connection, right click and select Properties. 3) Click the Install button. 4) Select Protocol and push the Add button. 5) Push the Have Disk button and locate the directory where the driver is located: Program Files (x86)\dektec\drivers\dtanwap64 (or similar). 6) Select DtaNwAp64.inf, press OK, and the driver will be installed. After the driver is installed, you can add VLANs by selecting the Configure button in the Properties window (see screenshot at step 2 above). In the VLAN tab, you can add a new VLAN with a specified VLAN ID and description. Please note that adding a VLAN may take some time. The dialog should not be closed before installation is completed. A VLAN can be removed by selecting it and pushing the Remove button. 4

If you don t see the VLAN tab, check whether the DekTec Advanced Protocol driver is listed in the protocol items of the connection (see the screenshot on the previous page). If it is not listed, you may try to reinstall the protocol driver. If the protocol driver is installed, and you still don t see the VLAN tab, check whether you have the latest version of DtaNw (DekTec network driver) installed. A new (virtual) network adapter is created for each VLAN that is added. This network adapter can only be removed with the Remove button in the VLAN tab. The figure below shows an example: Local Area Connection 4 is the physical network connection representing port 1 of a DTA-2162. Two virtual network adapters have been created, one for VLAN 5 and one for VLAN 10. If you add a VLAN, the protocol bindings of the main network connection are disabled and you can t use this connection to send/receive network packets. If you want to receive the network packets that are not directed to a specific VLAN, you have to add an Untagged VLAN by selecting the Untagged VLAN check box in the Add new VLAN dialog: 4.2. Linux Recent Linux versions support VLAN out of the box. If you have an older Linux version, you must recompile the Linux kernel with the VLAN option enabled. To use VLAN on Linux, you need to add VLANs and specify a VLAN ID for each of them. You can do this manually, or automatically during system start. 4.2.1. Manually Creating VLANs Use the vconfig command from the console, e.g. vconfig add eth0 5 This vconfig command creates a VLAN device on eth0 with interface name eth0.5. Using this interface name, you can now use all the network tools in the same way as you use them with a regular network adapter without VLAN. To activate the VLAN interface with VLAN ID 5, use: ifconfig eth0.5 up 5

4.2.2. Automatically Creating VLANs at System Start You can set up your system so that the VLAN devices for a network device are automatically created during system start. How to configure this is distribution dependent. Below a short description is provided for some popular Linux distributions. For other distributions, please refer to the documentation for VLAN configuration details. For Debian, Ubuntu and derivative distributions you have to add the virtual VLAN device to the file /etc/network/interfaces. For example, add the following three lines to automatically create a VLAN with VLAN ID 5 on network device eth0 at boot time. auto vlan5 iface vlan5 inet dhcp vlan_raw_device eth0 Obviously, eth0 has to be replaced by the network device on your system, and vlan5 by the required VLAN interface name. Note that the IP address for vlan5 is obtained via DHCP. For RHEL and CentOs you have to create a new file in /etc/sysconfig/network-scripts. The filename has to be the physical interface name, followed by a., followed by the VLAN ID number. For example, for VLAN ID 5, physical interface eth0 and dynamic IP configuration with DHCP, the filename should be ifcfg-eth0.5, and the contents should be as follows: DEVICE=eth0.5 BOOTPROTO=dhcp ONBOOT=yes VLAN=yes 6

5. Using VLAN from DTAPI To use VLAN with DTAPI is relatively straightforward. You just have to let DTAPI know which VLAN ID you want to use to transmit (or receive) the Ethernet packets to (or from). This can be done using the SetIpPars function with a DtTsIpPars argument. The DtTsIpPars structure contains a member m_vlanid that must be set to the required VLAN ID. If you want to send untagged packets, this member must be set to 0. The VLAN ID set in m_vlanid must be one of the VLAN IDs created during the VLAN setup. You can also set the IEEE 802.1p priority field in the m_priority field. DTAPI will create Ethernet frames with the priority value stuffed in the PCP field of the IEEE 802.1Q header. Please find below a code snippet that shows setting up a DtTsIpPars structure for transmitting a stream on VLAN ID 12 with IEEE 802.1p priority level 4 (Video with <100ms latency and jitter). DtTsIpPars TsIpPars; // TS-over-IP parameters used for Tx // Set up destination IP address and port TsIpPars.m_Ip[0] = 192; TsIpPars.m_Ip[1] = 168; TsIpPars.m_Ip[2] = 1; TsIpPars.m_Ip[3] = 100; TsIpPars.m_Port = 12345; // Set up VLAN parameters TsIpPars.m_VlanId = 12; // Sets VLAN ID to 12 TsIpPars.m_VlanPriority = 4; // Sets IEEE 802.1p priority to 4 // Set up other parameters TsIpPars.m_TimeToLive = 128; TsIpPars.m_NumTpPerIp = 7; TsIpPars.m_Protocol = DTAPI_PROTO_UDP; TsIpPars.m_FecMode = DTAPI_FEC_DISABLE; TsIpPars.m_Flags = DTAPI_IP_V4; TsIpPars.m_Mode = DTAPI_IP_NORMAL; // Set the TS-over-IP parameters in the output channel. // This assumes TsOutp is a DtOutpChannel object that has been // attached to the hardware (e.g. DTA-2162) TsOutp.SetIpPars(TsIpPars); 7