WO2010012143A1 - Method and system of virtual local area network data forwarding - Google Patents
Method and system of virtual local area network data forwarding Download PDFInfo
- Publication number
- WO2010012143A1 WO2010012143A1 PCT/CN2008/073621 CN2008073621W WO2010012143A1 WO 2010012143 A1 WO2010012143 A1 WO 2010012143A1 CN 2008073621 W CN2008073621 W CN 2008073621W WO 2010012143 A1 WO2010012143 A1 WO 2010012143A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- local area
- virtual local
- area network
- side port
- network identifier
- Prior art date
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/28—Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
- H04L12/46—Interconnection of networks
- H04L12/4641—Virtual LANs, VLANs, e.g. virtual private networks [VPN]
Definitions
- the present invention relates to the field of Layer 2 Ethernet switching in mobile communication, and in particular, to a method and system for forwarding data in a virtual local area network.
- data communication includes Asymmetric Digital Subscriber Line (ADSL) / Very High Speed Digital Subscriber Loop ( Very High Bit) Rate Digital Subscriber Line (VDSL), Ethernet Switch, PASSIVE OPTICAL NETWORK BASED ON ETHERNET (EPON) / Gigabit-capable Passive Optical Network (GPON) technology for its business Transparent, long-lived, large bandwidth carrying capacity, able to adapt to the growing bandwidth and new business development needs, and become an important way to build the access layer network.
- ADSL Digital Subscriber Line
- VDSL Very High Bit Rate Digital Subscriber Line
- Ethernet Switch Ethernet Switch
- PASSIVE OPTICAL NETWORK BASED ON ETHERNET (EPON) / Gigabit-capable Passive Optical Network (GPON) technology for its business Transparent, long-lived, large bandwidth carrying capacity, able to adapt to the growing bandwidth and new business development needs, and become an important way to build the access layer network.
- a Layer 2 access device which can be a Layer 2 Ethernet switch, or an EPON/GPON/DSLAM (Digital Subscriber Line Access Multiplexer)
- a line access multiplexer is connected to the device, and a virtual local area network (Vlan) on the network side is used to represent the user, and each user has a Vlan; the Vlan on the user side is used to represent a certain service of the user.
- Vlan virtual local area network
- the Layer 2 access device has multiple user-side ports. Each user-side port is divided into several virtual local area networks (Vlans). Several user-side ports are divided into one user.
- Each virtual office i or network identifier under the user are different, representing different services; each service is configured with a Class of Service (COS) value, and the Quality of Service Level (COS) for each service is not The same is true; however, the VLAN IDs of different users may be the same, and the quality of service levels (COS) of the same type of services of different users may be the same; if the user-side port is divided into several virtual local area networks (Vlans), The Ethernet frame entering the user side port must be with the IEEE802.1Q protocol. Negotiate the tag (tag). The network side port is allowed to be multiple. Take one as an example. Each network side port belongs to several Vlans. Each Vlan represents one user. The Ethernet frame entering the network side port must be labeled with IEEE802.1 Q protocol. The COS value indicates different services.
- COS Class of Service
- COS Quality of Service Level
- the Layer 2 access device converts the received data from the user side to the network side to perform a virtual local area network (Vlan) conversion
- the user side respectively represents a virtual local area network (Vlan) of a plurality of different services of a certain user, to the network side.
- a single virtual local area network (Vlan) representing the service performs a many-to-one virtual local area network (Vlan) conversion, so that in the reverse one-to-many conversion, one virtual local area network (Vlan) cannot be converted into multiple virtual local area networks (Vlan).
- only the broadcast flooding method can be used, which reduces the processing efficiency, complicates the configuration, and wastes the virtual local area network (Vlan) resources on the network side, which is not conducive to network planning.
- the technical problem to be solved by the present invention is to provide a virtual local area network data forwarding method and system, which can realize one-to-many conversion of a single virtual local area network (Vlan) on the network side to multiple different virtual local area networks (Vlans) on the user side, and avoid Broadcast flooding, improve processing efficiency.
- Vlan virtual local area network
- Vlans virtual local area networks
- the present invention provides a virtual local area network data forwarding method, including: a layer 2 access device constructs a virtual local area network identifier of each service network side, a service information to a user side virtual local area network identifier, and a first mapping of a user side port a relationship table; when the second layer access device forwards the data frame from the network side to the user side, the user side virtual local area network identifier and the user side are found in the first mapping relationship table according to the virtual local area network identifier and the service information of the data frame. After the virtual local area network identifier in the data frame is replaced with the found user-side virtual local area network identifier, the port is sent from the found user-side port.
- the service information refers to a service quality level value.
- the method further includes: the second layer access device constructs a second mapping relationship table of the virtual local area network identifier of the service user side, the user side port to the network side virtual local area network identifier, and the service information;
- the device forwards the data frame from the user side to the network side, according to the data frame
- the virtual local area network identifier and the user side port find the network side virtual local area network identifier and the network side port in the second mapping relationship table, and replace the virtual local area network identifier in the data frame with the found network side virtual local area network identifier. , issued from the discovered network side port.
- the present invention further provides a virtual local area network data forwarding system, including a Layer 2 Ethernet switching device, where the Layer 2 Ethernet switching device includes a network side port for connecting users, and is used for connecting users. Side port,
- the Layer 2 Ethernet switching device further includes a network side port processing module, a first relationship table storage module, and a first configuration module, which are sequentially connected to each other; the network side port processing module is respectively connected to the network side port and the user side port;
- the first configuration module is configured to construct a first mapping relationship table between the service network side virtual local area network identifier, the service information to the user side virtual local area network identifier, and the user side port;
- the first relationship table storage module is configured to store the first mapping relationship table
- the network side port processing module is configured to receive a data frame from the network side port, and find the user side virtual local area network identifier and the user side port in the first mapping relationship table according to the virtual local area network identifier and the service information of the data frame, After the virtual local area network identifier in the data frame is replaced with the found user side virtual local area network identifier, it is sent from the found user side port.
- the service information refers to a service quality level value.
- the network side port processing module includes: an extracting unit, a searching unit, and a converting unit; an extracting unit, configured to extract a virtual local area network identifier and a quality of service level value in the data frame; and a searching unit, configured to use the data frame
- the virtual local area network identifier is used as the virtual local area network identifier on the network side, and the user side virtual local area network identifier and the user side port are searched in the first relationship table by using the virtual local area network identifier and the quality of service level value on the network side; And replacing the virtual local area network identifier of the data frame with the found virtual local area network identifier of the user side, and outputting the data frame from the found user side port.
- the Layer 2 Ethernet switching device further includes a user side port processing module, a second relationship table storage module, and a second configuration module that are sequentially connected; the user side port processing module is respectively connected to the network side port and the user side port. Connected; the second configuration module is used to build each service user a second mapping relationship between the user-side port, the user-side port to the network-side virtual local area network identifier, and the service information; the second relationship table storage module, configured to store the second mapping relationship table; a module, configured to: when the data frame is forwarded from the user side to the network side, find the network side virtual local area network identifier and the network side port in the second mapping relationship table according to the virtual local area network identifier of the data frame and the user side port, After the virtual local area network identifier in the data frame is replaced with the found network side virtual local area network identifier, it is sent from the found network side port.
- the Layer 2 Ethernet switching device refers to a switching device located at the second layer of the network model as a forwarding basis.
- the virtual local area network data forwarding method and system provided by the present invention realizes one-to-many conversion of a single virtual local area network (Vlan) on the network side to multiple different virtual local area networks (Vlans) on the user side.
- the present invention has no broadcast flooding problem, is simpler to implement, improves processing efficiency, simplifies configuration, saves virtual local area network (Vlan) resources on the network side, and is more conducive to network planning.
- FIG. 1 is a schematic diagram of a service mode of a networking mode according to the present invention.
- FIG. 2 is a block diagram showing the structure of the system of the present invention.
- FIG. 3 is a flowchart of processing of a user side interface of the present invention.
- FIG. 4 is a flow chart of the network side interface processing of the present invention.
- the present invention relates to an effective method for implementing virtual local area network (WLAN) data forwarding for a Layer 2 Ethernet switching device, which uses a network side virtual local area network identifier (Vlan ID) and a service quality of service level value (COS) in the data downlink direction.
- Vlan ID virtual local area network identifier
- COS service quality of service level value
- the virtual local area network identifier (Vlan ID) of the network side carried in the service frame is converted into a virtual local area network identifier (Vlan ID) of the corresponding user side.
- the method is virtualized on the user side in the data uplink direction.
- the local area network (Vlan ID) and the user-side port are used to convert the virtual local area network (Vlan) into a multi-to-one relationship, and the virtual local area network identifier (Vlan lD) carried in the service frame is converted into a virtual local area network identifier (Vlan) on the network side. lD).
- the user-side port of the Layer 2 Ethernet switching device the first interface, the second interface, and the third interface are connected to two users, namely user ⁇ and user B.
- User B has three services, vlan is c d, e; cos is 2, 5, 7 respectively; the third interface of the user-side port, and the service of B needs to convert Vlan to Vlan y on behalf of user B.
- the virtual local area network (Vlan)-to-many conversion is performed based on the network side virtual local area network identifier (Vlan ID) and the service quality level value (COS) in the data downlink direction, and the steps are as follows:
- the service information includes: a virtual local area network identifier (Vlan ID) and a quality of service level value (COS) of the data frame;
- the user-side port includes: The virtual local area network identifier (Vlan lD) and the user side port number on the user side.
- Vlan ID virtual local area network identifier
- COS quality of service level value
- the first mapping relationship table see Table 1, the first behavior table header. The specific contents in the table are determined according to the specific settings, which are not shown in Table 1.
- 210. Receive a data frame from a network side port; the data frame is an Ethernet frame;
- Vlan ID virtual local area network identifier
- COS quality of service level
- the virtual local area network identifier (Vlan ID) in the data frame is used as a virtual local area network identifier (Vlan ID) on the network side, and the virtual local area network identifier (Vlan ID) and the quality of service level value (COS) of the network side are used. Searching the user-side virtual local area network identifier (Vlan ID) and the user-side port number in the first mapping relationship table (ie, the Vlan-to-multiple conversion table);
- Vlan ID virtual local area network identifier
- Vlan ID found virtual local area network identifier
- the uplink in the method of the present invention converts the virtual local area network (Vlan) into a many-to-one relationship based on the user-side virtual local area network identifier (Vlan ID) and the user-side port, and converts the virtual local area network (Vlan) of the user side in the service frame into Virtual LAN (Vlan) on the network side. This is achieved by the following steps:
- Vlan ID virtual local area network identifier
- Table 2 the first behavior table header, and the specific content in the table is determined according to specific The setting is not shown in Table 2.
- Vlan ID virtual local area network identifier
- VlanID virtual local area network identifier
- This step can be subdivided into the following steps, as shown in Figure 4;
- 410 Receive a data frame from a user side port, where the data frame may be an Ethernet frame.
- VlanID virtual local area network identifier
- the virtual local area network identifier (Vlan ID) in the data frame is used as a virtual office on the user side.
- the Vlan ID identifies the corresponding network side port and network side in the second mapping relationship table (that is, the Vlan multi-to-one conversion table) by using the virtual local area network identifier of the user side and the port number of the user side port.
- Virtual local area network identifier (Vlan ID) is used as a virtual office on the user side.
- the Vlan ID identifies the corresponding network side port and network side in the second mapping relationship table (that is, the Vlan multi-to-one conversion table) by using the virtual local area network identifier of the user side and the port number of the user side port.
- Virtual local area network identifier (Vlan ID) Virtual local area network identifier
- Vlan ID virtual local area network identifier
- Vlan ID discovered virtual local area network identifier
- the method of the present invention is an effective method for implementing a one-to-many and many-to-one conversion of a virtual local area network (Vlan) for a Layer 2 Ethernet switching device.
- the method uplinks with a user-side virtual local area network identifier (Vlan ID) and a user-side port.
- Vlan ID virtual local area network identifier
- COS quality of service level value
- the Layer 2 Ethernet switching device includes a network side port for connecting to a user, and a user side port for connecting services; the Layer 2 Ethernet switching device further includes a network side port processing module, a first relationship table storage module, and a first configuration module connected in sequence; the network side port processing module is respectively connected to the network side port and the user side port; and further includes a user side port processing module and a second connected in sequence The relationship table storage module and the second configuration module; the user side port processing module is respectively connected to the network side port and the user side port.
- Each user-side port is divided into one or several virtual local area networks (Vlans), which represent different services.
- the COS values of different services on the same user-side port cannot be the same.
- the Ethernet frame entering the user side port must be IEEE802.1Qtag.
- the Quality of Service Level value (COS) represents a different service.
- a first configuration module configured to construct a virtual local area network identifier of each service network side, a service information to a user-side virtual local area network identifier, and a first mapping relationship table of the user-side port;
- a first relationship table storage module configured to store the first mapping relationship table;
- the associated service information and the at least one user-side port that is, the relationship between the network-side virtual local area network identifier (Vlan ID) and the one-to-many converted user-side virtual local area network identifier (Vlan ID) and the output port is saved, and the network side is virtualized.
- the LAN ID (Vlan ID) and Quality of Service Level (COS) are indexed.
- a network side port processing module configured to receive a data frame from the network side port, and find a user side virtual local area network identifier and a user side port in the first mapping relationship table according to the virtual local area network identifier and the service information of the data frame, After the virtual local area network identifier in the data frame is replaced with the found user side virtual local area network identifier, it is sent from the found user side port.
- the network side port processing module includes: an extracting unit, a searching unit, and a converting unit;
- An extracting unit configured to extract a virtual local area network identifier (Vlan ID) and a quality of service level value (COS) in the data frame;
- Vlan ID virtual local area network identifier
- COS quality of service level value
- a searching unit configured to use a virtual local area network identifier (Vlan ID) of the data frame as a virtual local area network identifier (Vlan ID) on the network side, using a virtual local area network identifier (Vlan ID) of the network side, and the quality of service level value (COS) Searching for the user side virtual local area network identifier (Vlan ID) and the user side port in the first relationship table;
- Vlan ID virtual local area network identifier
- COS quality of service level value
- a converting unit configured to replace the virtual local area network identifier (Vlan ID) of the data frame with the discovered virtual local area network identifier (Vlan ID) of the user side, and output the data frame from the found user side port.
- a second configuration module configured to construct a second mapping relationship table between the user-side virtual local area network identifier, the user-side port to the network-side virtual local area network identifier, and the service information;
- a second relation table storage module configured to store the second mapping relationship table;
- the second relationship table is configured to associate a virtual local area network identifier (Vlan ID) and a network side port on the network side with at least one user side port;
- Vlan ID virtual local area network identifier
- Vlan ID multi-to-one converted network-side virtual local area network identifier
- the user side port processing module is configured to: when the data frame is forwarded from the user side to the network side, find the network side virtual local area network identifier and the network in the second mapping relationship table according to the virtual local area network identifier of the data frame and the user side port.
- the side port is sent from the found network side port after replacing the virtual local area network identifier in the data frame with the found network side virtual local area network identifier.
- the Layer 2 Ethernet switching device for the present invention includes a Layer 2 Ethernet switch, a DSLAM, an EPON, a GPON, and the like, all of which are based on the MAC address of the second layer of the network model.
- a virtual local area network forwarding method and system provided by the present invention realizes a single virtual local area network (Vlan) on the network side to the user by using the first relationship table to record service information and at least one user-side port association relationship.
- Vlan virtual local area network
- the present invention has no broadcast flooding problem, is simpler to implement, improves processing efficiency, simplifies configuration, and saves virtual local area network on the network side ( Vlan ) Resources are more conducive to network planning.
Landscapes
- Engineering & Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Small-Scale Networks (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
A method and a system of Virtual Local Area Network data forwarding are disclosed. The method includes: layer 2 accessing device constructing the first mapping relation table of the VLAN identifier at the network side and the service information of respective service to the VLAN identifier and the port at the user side; layer 2 accessing device looking up the VLAN identifier and the port at the user side in the first mapping relation table according to the VLAN identifier and service information of the data frame when sending the data frame from the network side to the user side, sending the data frame from the port found at the user side, after replacing the VLAN identifier in the data frame with the VLAN identifier found at the user side.
Description
一种虚拟局域网数据转发方法和系统 Virtual local area network data forwarding method and system
技术领域 Technical field
本发明涉及一种移动通讯中二层以太网交换领域, 尤其涉及的是, 一种 虚拟局域网数据转发方法和系统。 The present invention relates to the field of Layer 2 Ethernet switching in mobile communication, and in particular, to a method and system for forwarding data in a virtual local area network.
背景技术 Background technique
随着接入网对业务带宽需求的迅猛增长和数据通信技术的发展以及成本 的降低, 数据通信包括非对称数字用户线路 ( Asymmetrical Digital Subscriber Line, ADSL ) /甚高速数字用户环路( Very High Bit Rate Digital Subscriber Line , VDSL ) 、 以太网交换机、 以太网无源光网络( PASSIVE OPTICAL NETWORK BASED ON ETHERNET , EPON ) /千兆无源光网络 ( Gigabit-capable Passive Optical Network, GPON )技术以其对业务透明、 寿 命长、 带宽承载能力大、 能适应不断增长的带宽与新业务发展需求的特点, 而成为接入层网络建设的重要方式。 With the rapid growth of the access network's demand for service bandwidth and the development of data communication technology and the reduction of cost, data communication includes Asymmetric Digital Subscriber Line (ADSL) / Very High Speed Digital Subscriber Loop ( Very High Bit) Rate Digital Subscriber Line (VDSL), Ethernet Switch, PASSIVE OPTICAL NETWORK BASED ON ETHERNET (EPON) / Gigabit-capable Passive Optical Network (GPON) technology for its business Transparent, long-lived, large bandwidth carrying capacity, able to adapt to the growing bandwidth and new business development needs, and become an important way to build the access layer network.
在接入网业务接入网络中存在如下的一种业务模型:某个二层接入设备, 可以是二层以太网交换机,也可以是 EPON/GPON/DSLAM ( Digital Subscriber Line Access Multiplexer, 数字用户线路接入复用器)接入设备, 其网络侧的 Vlan ( Virtual Local Area Network, 虚拟局域网)用来代表用户, 每个用户一 个 Vlan;用户侧的 Vlan用来代表该用户的某个业务,一个用户有若干个业务。 The following service model exists in the access network service access network: a Layer 2 access device, which can be a Layer 2 Ethernet switch, or an EPON/GPON/DSLAM (Digital Subscriber Line Access Multiplexer) A line access multiplexer is connected to the device, and a virtual local area network (Vlan) on the network side is used to represent the user, and each user has a Vlan; the Vlan on the user side is used to represent a certain service of the user. A user has several businesses.
在业务转发过程中需要在上下行对业务帧的虚拟局域网 (Vlan )进行多 对一的转换。 该二层接入设备存在多个用户侧端口, 每个用户侧端口都划分 若干个虚拟局域网 (Vlan ) , 若干个用户侧端口划分为一个用户, 该用户下 的每个虚拟局 i或网标识 ( Virtual Local Area Network identification, Vlan ID ) 都不相同, 分别代表不同的业务; 每一个业务都会配置一个服务质量等级 ( Class of service, COS )值, 每个业务的服务质量等级值 ( COS ) 不相同; 但是, 不同用户的虚拟局域网标识(Vlan ID ) 可以相同, 不同用户的同一类 业务的服务质量等级值(COS ) 可以相同; 如果该用户侧端口划分为若干个 虚拟局域网(Vlan ) , 则进入该用户侧端口的以太帧必须是带 IEEE802.1Q协
议标签(tag ) 的。 网络侧端口允许为多个, 以 1个为例, 每个网络侧端口属 于若干个 Vlan,每个 Vlan代表一个用户, 进入该网络侧端口的以太帧必须是 带 IEEE802.1 Q协议标签的, 其中 COS值表示不同的业务。 In the service forwarding process, a multi-to-one conversion of the virtual local area network (Vlan) of the service frame needs to be performed in the uplink and the downlink. The Layer 2 access device has multiple user-side ports. Each user-side port is divided into several virtual local area networks (Vlans). Several user-side ports are divided into one user. Each virtual office i or network identifier under the user (Virtual Local Area Network Identification, Vlan ID) are different, representing different services; each service is configured with a Class of Service (COS) value, and the Quality of Service Level (COS) for each service is not The same is true; however, the VLAN IDs of different users may be the same, and the quality of service levels (COS) of the same type of services of different users may be the same; if the user-side port is divided into several virtual local area networks (Vlans), The Ethernet frame entering the user side port must be with the IEEE802.1Q protocol. Negotiate the tag (tag). The network side port is allowed to be multiple. Take one as an example. Each network side port belongs to several Vlans. Each Vlan represents one user. The Ethernet frame entering the network side port must be labeled with IEEE802.1 Q protocol. The COS value indicates different services.
该二层接入设备将接收到的数据从用户侧向网络侧进行虚拟局域网 ( Vlan )转换时, 用户侧的分别代表某个用户的多个不同业务的虚拟局域网 ( Vlan ) , 向网络侧的代表该业务的单个虚拟局域网 (Vlan )进行多对一的 虚拟局域网 (Vlan )转换, 因此, 在反向一对多转换的时候, 无法将一个虚 拟局域网 (Vlan )转换成多个虚拟局域网 (Vlan ) , 只能釆用广播洪泛的方 式, 这降低了处理效率, 复杂了配置, 浪费了网络侧的虚拟局域网 (Vlan ) 资源, 不利于网络规划。 When the Layer 2 access device converts the received data from the user side to the network side to perform a virtual local area network (Vlan) conversion, the user side respectively represents a virtual local area network (Vlan) of a plurality of different services of a certain user, to the network side. A single virtual local area network (Vlan) representing the service performs a many-to-one virtual local area network (Vlan) conversion, so that in the reverse one-to-many conversion, one virtual local area network (Vlan) cannot be converted into multiple virtual local area networks (Vlan). ), only the broadcast flooding method can be used, which reduces the processing efficiency, complicates the configuration, and wastes the virtual local area network (Vlan) resources on the network side, which is not conducive to network planning.
因此, 现有技术还存在缺陷, 有待于改进和发展。 发明内容 Therefore, the prior art still has drawbacks that need to be improved and developed. Summary of the invention
本发明解决的技术问题是提供一种虚拟局域网数据转发方法和系统, 可 实现实现网络侧单个虚拟局域网 (Vlan ) 向用户侧多个不同的虚拟局域网 ( Vlan )进行一对多的转换, 并避免广播洪泛, 提高处理效率。 The technical problem to be solved by the present invention is to provide a virtual local area network data forwarding method and system, which can realize one-to-many conversion of a single virtual local area network (Vlan) on the network side to multiple different virtual local area networks (Vlans) on the user side, and avoid Broadcast flooding, improve processing efficiency.
为了解决上述技术问题, 本发明提供了一种虚拟局域网数据转发方法, 包括: 二层接入设备构建各业务网络侧虚拟局域网标识、 业务信息至用户侧 虚拟局域网标识、 用户侧端口的第一映射关系表; 二层接入设备将数据帧从 网络侧向用户侧转发时, 根据数据帧的虚拟局域网标识和业务信息在所述第 一映射关系表中查找到其用户侧虚拟局域网标识及用户侧端口, 将所述数据 帧中的虚拟局域网标识替换为查找到的用户侧虚拟局域网标识后, 从查找到 的用户侧端口发出。 In order to solve the above technical problem, the present invention provides a virtual local area network data forwarding method, including: a layer 2 access device constructs a virtual local area network identifier of each service network side, a service information to a user side virtual local area network identifier, and a first mapping of a user side port a relationship table; when the second layer access device forwards the data frame from the network side to the user side, the user side virtual local area network identifier and the user side are found in the first mapping relationship table according to the virtual local area network identifier and the service information of the data frame. After the virtual local area network identifier in the data frame is replaced with the found user-side virtual local area network identifier, the port is sent from the found user-side port.
进一步地, 所述业务信息是指服务质量等级值。 Further, the service information refers to a service quality level value.
进一步地, 所述方法还包括: 所述二层接入设备构建各业务用户侧虚拟 局域网标识、 用户侧端口至网络侧虚拟局域网标识、 业务信息的第二映射关 系表; 所述二层接入设备将数据帧从用户侧向网络侧转发时, 根据数据帧的
虚拟局域网标识和用户侧端口在所述第二映射关系表中查找到其网络侧虚拟 局域网标识及网络侧端口, 将所述数据帧中的虚拟局域网标识替换为查找到 的网络侧虚拟局域网标识后, 从查找到的网络侧端口发出。 Further, the method further includes: the second layer access device constructs a second mapping relationship table of the virtual local area network identifier of the service user side, the user side port to the network side virtual local area network identifier, and the service information; When the device forwards the data frame from the user side to the network side, according to the data frame The virtual local area network identifier and the user side port find the network side virtual local area network identifier and the network side port in the second mapping relationship table, and replace the virtual local area network identifier in the data frame with the found network side virtual local area network identifier. , issued from the discovered network side port.
为了解决上述技术问题本发明还提供了一种虚拟局域网数据转发系统, 包括二层以太网交换设备, 所述二层以太网交换设备包括用于连接用户的网 络侧端口, 用于连接业务的用户侧端口, In order to solve the above problems, the present invention further provides a virtual local area network data forwarding system, including a Layer 2 Ethernet switching device, where the Layer 2 Ethernet switching device includes a network side port for connecting users, and is used for connecting users. Side port,
所述二层以太网交换设备还包括依次相连的网络侧端口处理模块、 第一 关系表存储模块和第一配置模块; 所述网络侧端口处理模块分别与网络侧端 口和用户侧端口相连; The Layer 2 Ethernet switching device further includes a network side port processing module, a first relationship table storage module, and a first configuration module, which are sequentially connected to each other; the network side port processing module is respectively connected to the network side port and the user side port;
所述第一配置模块, 用于构建各业务网络侧虚拟局域网标识、 业务信息 至用户侧虚拟局域网标识、 用户侧端口的第一映射关系表; The first configuration module is configured to construct a first mapping relationship table between the service network side virtual local area network identifier, the service information to the user side virtual local area network identifier, and the user side port;
所述第一关系表存储模块, 用于存储所述第一映射关系表; The first relationship table storage module is configured to store the first mapping relationship table;
所述网络侧端口处理模块, 用于从网络侧端口接收数据帧, 根据数据帧 的虚拟局域网标识和业务信息在所述第一映射关系表中查找到其用户侧虚拟 局域网标识及用户侧端口, 将所述数据帧中的虚拟局域网标识替换为查找到 的用户侧虚拟局域网标识后, 从查找到的用户侧端口发出。 The network side port processing module is configured to receive a data frame from the network side port, and find the user side virtual local area network identifier and the user side port in the first mapping relationship table according to the virtual local area network identifier and the service information of the data frame, After the virtual local area network identifier in the data frame is replaced with the found user side virtual local area network identifier, it is sent from the found user side port.
进一步地, 所述业务信息是指服务质量等级值。 Further, the service information refers to a service quality level value.
进一步地, 所述网络侧端口处理模块包括: 提取单元、 查找单元、 转换 单元; 提取单元, 用于提取该数据帧中的虚拟局域网标识以及服务质量等级 值; 查找单元, 用于以该数据帧的虚拟局域网标识作为网络侧的虚拟局域网 标识, 利用该网络侧的虚拟局域网标识和所述服务质量等级值, 在所述第一 关系表中查找用户侧虚拟局域网标识以及用户侧端口; 转换单元, 用于将所 述数据帧的虚拟局域网标识替换为查找到的用户侧的虚拟局域网标识, 并将 所述数据帧从查到的用户侧端口输出。 Further, the network side port processing module includes: an extracting unit, a searching unit, and a converting unit; an extracting unit, configured to extract a virtual local area network identifier and a quality of service level value in the data frame; and a searching unit, configured to use the data frame The virtual local area network identifier is used as the virtual local area network identifier on the network side, and the user side virtual local area network identifier and the user side port are searched in the first relationship table by using the virtual local area network identifier and the quality of service level value on the network side; And replacing the virtual local area network identifier of the data frame with the found virtual local area network identifier of the user side, and outputting the data frame from the found user side port.
进一步地, 所述二层以太网交换设备还包括依次相连的用户侧端口处理 模块、 第二关系表存储模块和第二配置模块; 所述用户侧端口处理模块分别 与网络侧端口和用户侧端口相连; 所述第二配置模块, 用于构建各业务用户
侧虚拟局域网标识、 用户侧端口至网络侧虚拟局域网标识、 业务信息的第二 映射关系表; 所述第二关系表存储模块, 用于存储所述第二映射关系表; 所 述用户侧端口处理模块, 用于将数据帧从用户侧向网络侧转发时, 根据数据 帧的虚拟局域网标识和用户侧端口在所述第二映射关系表中查找到其网络侧 虚拟局域网标识及网络侧端口, 将所述数据帧中的虚拟局域网标识替换为查 找到的网络侧虚拟局域网标识后, 从查找到的网络侧端口发出。 Further, the Layer 2 Ethernet switching device further includes a user side port processing module, a second relationship table storage module, and a second configuration module that are sequentially connected; the user side port processing module is respectively connected to the network side port and the user side port. Connected; the second configuration module is used to build each service user a second mapping relationship between the user-side port, the user-side port to the network-side virtual local area network identifier, and the service information; the second relationship table storage module, configured to store the second mapping relationship table; a module, configured to: when the data frame is forwarded from the user side to the network side, find the network side virtual local area network identifier and the network side port in the second mapping relationship table according to the virtual local area network identifier of the data frame and the user side port, After the virtual local area network identifier in the data frame is replaced with the found network side virtual local area network identifier, it is sent from the found network side port.
进一步地, 所述二层以太网交换设备是指位于网络模型第二层的 MAC 地址作为转发依据的交换设备。 Further, the Layer 2 Ethernet switching device refers to a switching device located at the second layer of the network model as a forwarding basis.
与现有技术相比,本发明所提供的一种虚拟局域网数据转发方法和系统, 实现了网络侧单个虚拟局域网( Vlan )向用户侧多个不同的虚拟局域网( Vlan ) 进行一对多的转换; 而且, 本发明没有广播洪泛的问题, 实现起来更简洁, 提高了处理效率, 简化了配置, 节省了网络侧的虚拟局域网 (Vlan ) 资源, 更有利于网络规划。 附图概述 Compared with the prior art, the virtual local area network data forwarding method and system provided by the present invention realizes one-to-many conversion of a single virtual local area network (Vlan) on the network side to multiple different virtual local area networks (Vlans) on the user side. Moreover, the present invention has no broadcast flooding problem, is simpler to implement, improves processing efficiency, simplifies configuration, saves virtual local area network (Vlan) resources on the network side, and is more conducive to network planning. BRIEF abstract
图 1是本发明一种组网模式的业务示意图; 1 is a schematic diagram of a service mode of a networking mode according to the present invention;
图 2是本发明的系统的结构框图; Figure 2 is a block diagram showing the structure of the system of the present invention;
图 3是本发明的用户侧接口处理流程图; 3 is a flowchart of processing of a user side interface of the present invention;
图 4是本发明的网络侧接口处理流程图。 4 is a flow chart of the network side interface processing of the present invention.
本发明的较佳实施方式 Preferred embodiment of the invention
下面结合具体实施方式和附图对本发明作进一步详细的描述。 The present invention will be further described in detail below in conjunction with the specific embodiments and drawings.
本发明涉及一种有效的针对二层以太网交换设备实现虚拟局域网( Vlan ) 数据转发的方法,该方法在数据下行方向以网络侧虚拟局域网标识( Vlan ID ) 和业务服务质量等级值(COS ) 为依据进行虚拟局域网 (Vlan )—对多的转 换, 将业务帧中携带的网络侧的虚拟局域网标识(Vlan ID )转换成相应用户 侧的某个虚拟局域网标识(Vlan ID ) 。 该方法在数据上行方向以用户侧虚拟
局域网标识(Vlan ID )和用户侧端口为依据进行虚拟局域网 (Vlan ) 多对一 的转换, 将业务帧中携带的用户侧的虚拟局域网标识(Vlan lD )转换成网络 侧的虚拟局域网标识(Vlan lD ) 。 The present invention relates to an effective method for implementing virtual local area network (WLAN) data forwarding for a Layer 2 Ethernet switching device, which uses a network side virtual local area network identifier (Vlan ID) and a service quality of service level value (COS) in the data downlink direction. For the conversion of the virtual local area network (Vlan)-to-many, the virtual local area network identifier (Vlan ID) of the network side carried in the service frame is converted into a virtual local area network identifier (Vlan ID) of the corresponding user side. The method is virtualized on the user side in the data uplink direction. The local area network (Vlan ID) and the user-side port are used to convert the virtual local area network (Vlan) into a multi-to-one relationship, and the virtual local area network identifier (Vlan lD) carried in the service frame is converted into a virtual local area network identifier (Vlan) on the network side. lD).
以图 1所示的组网模式为例, 二层以太网交换设备的用户侧端口: 第一 接口、 第二接口和第三接口接有两个用户, 即用户曱和用户乙; 其中用户曱 有两个业务: 第一业务, vlan为 a, cos为 1 , 用户侧端口的第一接口; 第二 业务, vlan为 b, cos为 2, 用户侧端口的第二接口; 用户曱的业务需要在网 络侧将 Vlan转换为 Vlan X, 代表用户曱。 用户乙存在三个业务, vlan分别为 c d, e; cos分别为 2, 5 , 7; 用户侧端口的第三接口, 乙的业务在网络侧 需要将 Vlan转换为 Vlan y, 代表用户乙。 Take the networking mode shown in Figure 1 as an example. The user-side port of the Layer 2 Ethernet switching device: the first interface, the second interface, and the third interface are connected to two users, namely user 曱 and user B. There are two services: the first service, vlan is a, cos is 1, the first interface of the user-side port; the second service, vlan is b, cos is 2, and the second interface of the user-side port; Convert Vlan to Vlan X on the network side, representing the user. User B has three services, vlan is c d, e; cos is 2, 5, 7 respectively; the third interface of the user-side port, and the service of B needs to convert Vlan to Vlan y on behalf of user B.
本发明方法中在数据下行方向以网络侧虚拟局域网标识( Vlan ID )和服 务质量等级值(COS ) 为依据进行虚拟局域网 (Vlan ) —对多的转换, 步骤 下: In the method of the present invention, the virtual local area network (Vlan)-to-many conversion is performed based on the network side virtual local area network identifier (Vlan ID) and the service quality level value (COS) in the data downlink direction, and the steps are as follows:
100、将业务信息和至少一个用户侧端口相关联生成第一映射关系表; 业 务信息包括: 所述数据帧的虚拟局域网标识 (Vlan ID )和服务质量等级值 ( COS ) ; 用户侧端口包括: 用户侧的虚拟局域网标识(Vlan lD )和用户侧 端口号。 第一映射关系表参见表 1 , 首行为表头, 表中具体内容根据具体设 定而定, 未在表 1中示出。 100. Associate the service information with the at least one user-side port to generate a first mapping relationship table. The service information includes: a virtual local area network identifier (Vlan ID) and a quality of service level value (COS) of the data frame; the user-side port includes: The virtual local area network identifier (Vlan lD) and the user side port number on the user side. For the first mapping relationship table, see Table 1, the first behavior table header. The specific contents in the table are determined according to the specific settings, which are not shown in Table 1.
表 1 第一映射关系表 Table 1 First mapping relationship table
200、从网络侧端口接收数据帧, 利用该数据帧中的业务信息在所述第一 映射关系表中查找相应的所述用户侧端口, 并将该数据帧从该用户侧端口输 出。 本步骤包括以下分步骤, 如图 3所示; 200. Receive a data frame from the network side port, use the service information in the data frame to search for the corresponding user side port in the first mapping relationship table, and output the data frame from the user side port. This step includes the following sub-steps, as shown in Figure 3;
210、 从网络侧端口接收数据帧; 该数据帧是以太帧; 210. Receive a data frame from a network side port; the data frame is an Ethernet frame;
220、 提取该数据帧中的虚拟局域网标识(Vlan ID ) 以及服务质量等级
值 ( COS ) ; 220. Extract a virtual local area network identifier (Vlan ID) and a quality of service level in the data frame. Value ( COS ) ;
230、 以该数据帧中的虚拟局域网标识(Vlan ID)作为网络侧的虚拟局 域网标识( Vlan ID ) , 利用该网络侧的虚拟局域网标识( Vlan ID )和所述服 务质量等级值 (COS) , 在所述第一映射关系表(即 Vlan—对多转换表) 中 查找用户侧虚拟局域网标识( Vlan ID ) 以及用户侧的端口号; 230. The virtual local area network identifier (Vlan ID) in the data frame is used as a virtual local area network identifier (Vlan ID) on the network side, and the virtual local area network identifier (Vlan ID) and the quality of service level value (COS) of the network side are used. Searching the user-side virtual local area network identifier (Vlan ID) and the user-side port number in the first mapping relationship table (ie, the Vlan-to-multiple conversion table);
240、 将所述数据帧的虚拟局域网标识(Vlan ID)替换为查找到的用户 侧的虚拟局域网标识(Vlan ID) ; 240. Replace the virtual local area network identifier (Vlan ID) of the data frame with the found virtual local area network identifier (Vlan ID) of the user side;
250、 将所述数据帧从查到的用户侧端口输出。 250. Output the data frame from the detected user side port.
本发明方法中的上行以用户侧虚拟局域网标识(Vlan ID)和用户侧端口 为依据进行虚拟局域网 (Vlan) 多对一的转换, 将业务帧中带的用户侧的虚 拟局域网 (Vlan)转换成网络侧的虚拟局域网 (Vlan) 。 通过以下步骤实现: The uplink in the method of the present invention converts the virtual local area network (Vlan) into a many-to-one relationship based on the user-side virtual local area network identifier (Vlan ID) and the user-side port, and converts the virtual local area network (Vlan) of the user side in the service frame into Virtual LAN (Vlan) on the network side. This is achieved by the following steps:
300、 生成第二映射关系表, 将网络侧的虚拟局域网标识(Vlan ID) 、 网络侧端口与至少一个用户侧端口相关联; 关联关系见表 2, 首行为表头, 表中具体内容根据具体设定而定, 未在表 2中示出。 300. Generate a second mapping relationship table, and associate a virtual local area network identifier (Vlan ID) and a network side port on the network side with at least one user side port; the association relationship is shown in Table 2, the first behavior table header, and the specific content in the table is determined according to specific The setting is not shown in Table 2.
400、 从用户侧端口接收数据帧, 以该数据帧中的虚拟局域网标识(Vlan ID)作为用户侧的虚拟局域网标识(VlanID) , 利用该用户侧的虚拟局域网 标识和该用户侧端口的端口号, 在第二映射关系表中查找相应的网络侧端口 和网络侧的虚拟局域网标识(VlanID) ; 并将所述数据帧从该网络侧端口输 出。 400. Receive a data frame from the user side port, and use a virtual local area network identifier (Vlan ID) in the data frame as a virtual local area network identifier (VlanID) on the user side, and use the virtual local area network identifier of the user side and the port number of the user side port. Finding a corresponding network side port and a network side virtual local area network identifier (VlanID) in the second mapping relationship table; and outputting the data frame from the network side port.
本步骤可细分为以下步骤, 见图 4; This step can be subdivided into the following steps, as shown in Figure 4;
410、 从用户侧端口接收数据帧, 该数据帧可以是以太帧; 410. Receive a data frame from a user side port, where the data frame may be an Ethernet frame.
420、 提取该数据帧中的虚拟局域网标识(VlanID) ; 420. Extract a virtual local area network identifier (VlanID) in the data frame.
430、 以该数据帧中的虚拟局域网标识(Vlan ID)作为用户侧的虚拟局
域网标识( Vlan ID ) , 利用该用户侧的虚拟局域网标识和该用户侧端口的端 口号, 在第二映射关系表(即 Vlan多对一转换表)中查找相应的网络侧端口 和网络侧的虚拟局域网标识(Vlan ID ) ; 430. The virtual local area network identifier (Vlan ID) in the data frame is used as a virtual office on the user side. The Vlan ID identifies the corresponding network side port and network side in the second mapping relationship table (that is, the Vlan multi-to-one conversion table) by using the virtual local area network identifier of the user side and the port number of the user side port. Virtual local area network identifier (Vlan ID);
440、 将所述数据帧的虚拟局域网标识(Vlan ID )替换为查找到的网络 侧的虚拟局域网标识(Vlan ID ) ; 440. Replace the virtual local area network identifier (Vlan ID) of the data frame with the discovered virtual local area network identifier (Vlan ID) on the network side;
450、 将所述数据帧从查到的网络侧端口输出。 450. Output the data frame from the found network side port.
本发明的方法是一种有效的针对二层以太网交换设备实现虚拟局域网 ( Vlan )一对多和多对一转换的方法, 该方法上行以用户侧虚拟局域网标识 ( Vlan ID )和用户侧端口为依据进行虚拟局域网 (Vlan ) 多对一的转换, 下 行以网络侧虚拟局域网标识( Vlan ID )和服务质量等级值 ( COS )为依据进 行虚拟局域网 (Vlan ) —对多的转换。 The method of the present invention is an effective method for implementing a one-to-many and many-to-one conversion of a virtual local area network (Vlan) for a Layer 2 Ethernet switching device. The method uplinks with a user-side virtual local area network identifier (Vlan ID) and a user-side port. In order to perform a multi-to-one conversion of the virtual local area network (Vlan), the downlink performs a virtual local area network (Vlan)-to-many conversion based on the network side virtual local area network identifier (Vlan ID) and the quality of service level value (COS).
本发明还提供一种虚拟局域网转发系统, 如图 2所示, 二层以太网交换 设备包括用于连接用户的网络侧端口, 用于连接业务的用户侧端口; 二层以 太网交换设备还包括依次相连的网络侧端口处理模块、 第一关系表存储模块 和第一配置模块; 网络侧端口处理模块分别与网络侧端口和用户侧端口相连; 还包括依次相连的用户侧端口处理模块、 第二关系表存储模块和第二配置模 块; 用户侧端口处理模块分别与网络侧端口和用户侧端口相连。 The present invention also provides a virtual local area network forwarding system. As shown in FIG. 2, the Layer 2 Ethernet switching device includes a network side port for connecting to a user, and a user side port for connecting services; the Layer 2 Ethernet switching device further includes a network side port processing module, a first relationship table storage module, and a first configuration module connected in sequence; the network side port processing module is respectively connected to the network side port and the user side port; and further includes a user side port processing module and a second connected in sequence The relationship table storage module and the second configuration module; the user side port processing module is respectively connected to the network side port and the user side port.
每个用户侧端口都划分一个或若干个虚拟局域网 (Vlan ) , 分别代表不 同的业务, 同一个用户侧端口下的不同业务的 COS值不能相同, 如果该用户 侧端口划分为若干个虚拟局域网 (Vlan ) , 则进入该用户侧端口的以太帧必 须是带 IEEE802.1Qtag的。 网络侧端口允许有多个, 每个网络侧端口属于若 干个虚拟局域网 (Vlan ) , 每一个虚拟局域网 (Vlan )代表一个用户, 进入 该网络侧端口的以太帧必须是带 IEEE802.1Qtag 的, 其中服务质量等级值 ( COS )表示不同的业务。 Each user-side port is divided into one or several virtual local area networks (Vlans), which represent different services. The COS values of different services on the same user-side port cannot be the same. If the user-side port is divided into several virtual local area networks ( Vlan), the Ethernet frame entering the user side port must be IEEE802.1Qtag. There are multiple network side ports. Each network side port belongs to several virtual local area networks (Vlans). Each virtual local area network (Vlan) represents one user. The Ethernet frame entering the network side port must be IEEE802.1Qtag. The Quality of Service Level value (COS) represents a different service.
第一配置模块, 用于构建各业务网络侧虚拟局域网标识、 业务信息至用 户侧虚拟局域网标识、 用户侧端口的第一映射关系表; a first configuration module, configured to construct a virtual local area network identifier of each service network side, a service information to a user-side virtual local area network identifier, and a first mapping relationship table of the user-side port;
第一关系表存储模块, 用于存储所述第一映射关系表; 第一关系表用于
关联业务信息和至少一个用户侧端口; 即保存网络侧虚拟局域网标识(Vlan ID )与一对多转换后的用户侧虚拟局域网标识(Vlan ID )和输出端口之间的 关联关系, 以网络侧虚拟局域网标识( Vlan ID )和服务质量等级值 ( COS ) 为索引。 a first relationship table storage module, configured to store the first mapping relationship table; The associated service information and the at least one user-side port; that is, the relationship between the network-side virtual local area network identifier (Vlan ID) and the one-to-many converted user-side virtual local area network identifier (Vlan ID) and the output port is saved, and the network side is virtualized. The LAN ID (Vlan ID) and Quality of Service Level (COS) are indexed.
网络侧端口处理模块, 用于从网络侧端口接收数据帧, 根据数据帧的虚 拟局域网标识和业务信息在所述第一映射关系表中查找到其用户侧虚拟局域 网标识及用户侧端口, 将所述数据帧中的虚拟局域网标识替换为查找到的用 户侧虚拟局域网标识后, 从查找到的用户侧端口发出。 网络侧端口处理模块 包括: 提取单元、 查找单元、 转换单元; a network side port processing module, configured to receive a data frame from the network side port, and find a user side virtual local area network identifier and a user side port in the first mapping relationship table according to the virtual local area network identifier and the service information of the data frame, After the virtual local area network identifier in the data frame is replaced with the found user side virtual local area network identifier, it is sent from the found user side port. The network side port processing module includes: an extracting unit, a searching unit, and a converting unit;
提取单元, 用于提取该数据帧中的虚拟局域网标识(Vlan ID ) 以及服务 质量等级值 ( COS ) ; An extracting unit, configured to extract a virtual local area network identifier (Vlan ID) and a quality of service level value (COS) in the data frame;
查找单元, 用于以该数据帧的虚拟局域网标识(Vlan ID )作为网络侧的 虚拟局域网标识( Vlan ID ) , 利用该网络侧的虚拟局域网标识( Vlan ID )和 所述服务质量等级值(COS ) , 在所述第一关系表中查找用户侧虚拟局域网 标识(Vlan ID ) 以及用户侧端口; a searching unit, configured to use a virtual local area network identifier (Vlan ID) of the data frame as a virtual local area network identifier (Vlan ID) on the network side, using a virtual local area network identifier (Vlan ID) of the network side, and the quality of service level value (COS) Searching for the user side virtual local area network identifier (Vlan ID) and the user side port in the first relationship table;
转换单元, 用于将所述数据帧的虚拟局域网标识(Vlan ID )替换为查找 到的用户侧的虚拟局域网标识(Vlan ID ) , 并将所述数据帧从查到的用户侧 端口输出。 And a converting unit, configured to replace the virtual local area network identifier (Vlan ID) of the data frame with the discovered virtual local area network identifier (Vlan ID) of the user side, and output the data frame from the found user side port.
第二配置模块, 用于构建各业务用户侧虚拟局域网标识、 用户侧端口至 网络侧虚拟局域网标识、 业务信息的第二映射关系表; a second configuration module, configured to construct a second mapping relationship table between the user-side virtual local area network identifier, the user-side port to the network-side virtual local area network identifier, and the service information;
第二关系表存储模块, 用于存储所述第二映射关系表; 第二关系表用于 将网络侧的虚拟局域网标识( Vlan ID ) 、 网络侧端口与至少一个用户侧端口 相关联; 即用于保存用户侧虚拟局域网标识(Vlan ID )与多对一转换后的网 络侧虚拟局域网标识( Vlan ID )和输出端口之间的关联关系。 a second relation table storage module, configured to store the second mapping relationship table; the second relationship table is configured to associate a virtual local area network identifier (Vlan ID) and a network side port on the network side with at least one user side port; The relationship between the user-side virtual local area network identifier (Vlan ID) and the multi-to-one converted network-side virtual local area network identifier (Vlan ID) and the output port is saved.
用户侧端口处理模块, 用于将数据帧从用户侧向网络侧转发时, 根据数 据帧的虚拟局域网标识和用户侧端口在所述第二映射关系表中查找到其网络 侧虚拟局域网标识及网络侧端口, 将所述数据帧中的虚拟局域网标识替换为 查找到的网络侧虚拟局域网标识后, 从查找到的网络侧端口发出。
本发明针对的二层以太网交换设备包括二层以太网交换机、 DSLAM、 EPON、 GPON等所有以位于网络模型第二层的 MAC地址作为转发依据的交 换设备。 The user side port processing module is configured to: when the data frame is forwarded from the user side to the network side, find the network side virtual local area network identifier and the network in the second mapping relationship table according to the virtual local area network identifier of the data frame and the user side port. The side port is sent from the found network side port after replacing the virtual local area network identifier in the data frame with the found network side virtual local area network identifier. The Layer 2 Ethernet switching device for the present invention includes a Layer 2 Ethernet switch, a DSLAM, an EPON, a GPON, and the like, all of which are based on the MAC address of the second layer of the network model.
应当理解的是, 以上所提供的具体实施方式只是对本发明的说明, 而不 应当理解为对本发明的限制, 对本领域的普通技术人员来说, 可以根据上述 说明加以改进或变换, 而所有这些改进和变换都应为本发明所揭示的原理和 特征, 均属本发明的保护范围。 It should be understood that the specific embodiments described above are only illustrative of the invention and are not to be construed as limiting the invention, and those skilled in the art can Both the principles and the features disclosed in the present invention are intended to be within the scope of the present invention.
工业实用性 本发明所提供的一种虚拟局域网转发方法和系统, 由于釆用了第一关系 表记录业务信息和至少一个用户侧端口相关联关系, 实现了网络侧单个虚拟 局域网 (Vlan )向用户侧多个不同的虚拟局域网 (Vlan )进行一对多的转换; 而且, 本发明没有广播洪泛的问题, 实现起来更简洁, 提高了处理效率, 简 化了配置, 节省了网络侧的虚拟局域网 (Vlan ) 资源, 更有利于网络规划。
INDUSTRIAL APPLICABILITY A virtual local area network forwarding method and system provided by the present invention realizes a single virtual local area network (Vlan) on the network side to the user by using the first relationship table to record service information and at least one user-side port association relationship. One-to-many conversion of multiple different virtual local area networks (Vlans) on the side; Moreover, the present invention has no broadcast flooding problem, is simpler to implement, improves processing efficiency, simplifies configuration, and saves virtual local area network on the network side ( Vlan ) Resources are more conducive to network planning.
Claims
1、 一种虚拟局域网数据转发方法, 其特征在于, A virtual local area network data forwarding method, characterized in that
二层接入设备构建各业务网络侧虚拟局域网标识、 业务信息至用户侧虚 拟局域网标识、 用户侧端口的第一映射关系表; 二层接入设备将数据帧从网 络侧向用户侧转发时, 根据数据帧的虚拟局域网标识和业务信息在所述第一 映射关系表中查找到其用户侧虚拟局域网标识及用户侧端口, 将所述数据帧 中的虚拟局域网标识替换为查找到的用户侧虚拟局域网标识后, 从查找到的 用户侧端口发出。 The Layer 2 access device constructs a first mapping relationship table between the service network side virtual local area network identifier and the service information to the user side virtual local area network identifier and the user side port; when the second layer access device forwards the data frame from the network side to the user side, Locating the user-side virtual local area network identifier and the user-side port in the first mapping relationship table according to the virtual local area network identifier and the service information of the data frame, and replacing the virtual local area network identifier in the data frame with the found user-side virtual After the LAN ID is identified, it is sent from the discovered user-side port.
2、 根据权利要求 1所述的方法, 其特征在于, 2. The method of claim 1 wherein
所述业务信息是指服务质量等级值。 The service information refers to a service quality level value.
3、 根据权利要求 1或 2所述的方法, 其特征在于, 所述方法还包括: 所述二层接入设备构建各业务用户侧虚拟局域网标识、 用户侧端口至网 络侧虚拟局域网标识、 业务信息的第二映射关系表; 所述二层接入设备将数 据帧从用户侧向网络侧转发时, 根据数据帧的虚拟局域网标识和用户侧端口 在所述第二映射关系表中查找到其网络侧虚拟局域网标识及网络侧端口, 将 所述数据帧中的虚拟局域网标识替换为查找到的网络侧虚拟局域网标识后, 从查找到的网络侧端口发出。 The method according to claim 1 or 2, wherein the method further comprises: the layer 2 access device constructs a virtual local area network identifier of each service user side, a user side port to a network side virtual local area network identifier, and a service a second mapping relationship table of the information; when the layer 2 access device forwards the data frame from the user side to the network side, the virtual local area network identifier of the data frame and the user side port are found in the second mapping relationship table. The network side virtual local area network identifier and the network side port are sent out from the found network side port after replacing the virtual local area network identifier in the data frame with the found network side virtual local area network identifier.
4、 一种虚拟局域网数据转发系统, 包括二层以太网交换设备, 所述二层 以太网交换设备包括用于连接用户的网络侧端口, 用于连接业务的用户侧端 口, 其特征在于, A virtual local area network data forwarding system, comprising a Layer 2 Ethernet switching device, where the Layer 2 Ethernet switching device includes a network side port for connecting to a user, and a user side port for connecting to the service, wherein
所述二层以太网交换设备还包括依次相连的网络侧端口处理模块、 第一 关系表存储模块和第一配置模块; 所述网络侧端口处理模块分别与网络侧端 口和用户侧端口相连; The Layer 2 Ethernet switching device further includes a network side port processing module, a first relationship table storage module, and a first configuration module, which are sequentially connected to each other; the network side port processing module is respectively connected to the network side port and the user side port;
所述第一配置模块, 用于构建各业务网络侧虚拟局域网标识、 业务信息 至用户侧虚拟局域网标识、 用户侧端口的第一映射关系表; The first configuration module is configured to construct a first mapping relationship table between the service network side virtual local area network identifier, the service information to the user side virtual local area network identifier, and the user side port;
所述第一关系表存储模块, 用于存储所述第一映射关系表; The first relationship table storage module is configured to store the first mapping relationship table;
所述网络侧端口处理模块, 用于从网络侧端口接收数据帧, 根据数据帧 的虚拟局域网标识和业务信息在所述第一映射关系表中查找到其用户侧虚拟
局域网标识及用户侧端口, 将所述数据帧中的虚拟局域网标识替换为查找到 的用户侧虚拟局域网标识后, 从查找到的用户侧端口发出。 The network side port processing module is configured to receive a data frame from the network side port, and find the user side virtual in the first mapping relationship table according to the virtual local area network identifier and the service information of the data frame. The local area network identifier and the user side port are sent from the found user side port after the virtual local area network identifier in the data frame is replaced with the found user side virtual local area network identifier.
5、 如权利要求 4所述的系统, 其特征在于, 5. The system of claim 4 wherein:
所述业务信息是指服务质量等级值。 The service information refers to a service quality level value.
6、 如权利要求 5所述的系统, 其特征在于, 6. The system of claim 5 wherein:
所述网络侧端口处理模块包括: 提取单元、 查找单元、 转换单元; 提取单元,用于提取该数据帧中的虚拟局域网标识以及服务质量等级值; 查找单元, 用于以该数据帧的虚拟局域网标识作为网络侧的虚拟局域网 标识, 利用该网络侧的虚拟局域网标识和所述服务质量等级值, 在所述第一 关系表中查找用户侧虚拟局域网标识以及用户侧端口; The network side port processing module includes: an extracting unit, a searching unit, and a converting unit; an extracting unit, configured to extract a virtual local area network identifier and a quality of service level value in the data frame; and a searching unit, configured to use the virtual local area network of the data frame Identifying, as the network side, a virtual local area network identifier, using the virtual local area network identifier and the quality of service level value of the network side, searching for the user side virtual local area network identifier and the user side port in the first relationship table;
转换单元, 用于将所述数据帧的虚拟局域网标识替换为查找到的用户侧 的虚拟局域网标识, 并将所述数据帧从查到的用户侧端口输出。 And a converting unit, configured to replace the virtual local area network identifier of the data frame with the found virtual local area network identifier of the user side, and output the data frame from the found user side port.
7、 如权利要求 4或 5所述的系统, 其特征在于, 7. The system of claim 4 or 5, wherein
所述二层以太网交换设备还包括依次相连的用户侧端口处理模块、 第二 关系表存储模块和第二配置模块; 所述用户侧端口处理模块分别与网络侧端 口和用户侧端口相连; The Layer 2 Ethernet switching device further includes a user side port processing module, a second relationship table storage module, and a second configuration module, which are sequentially connected to each other; the user side port processing module is respectively connected to the network side port and the user side port;
所述第二配置模块, 用于构建各业务用户侧虚拟局域网标识、 用户侧端 口至网络侧虚拟局域网标识、 业务信息的第二映射关系表; The second configuration module is configured to construct a second mapping relationship table of each user side virtual local area network identifier, a user side port to a network side virtual local area network identifier, and service information;
所述第二关系表存储模块, 用于存储所述第二映射关系表; The second relationship table storage module is configured to store the second mapping relationship table;
所述用户侧端口处理模块, 用于将数据帧从用户侧向网络侧转发时, 根 据数据帧的虚拟局域网标识和用户侧端口在所述第二映射关系表中查找到其 网络侧虚拟局域网标识及网络侧端口, 将所述数据帧中的虚拟局域网标识替 换为查找到的网络侧虚拟局域网标识后, 从查找到的网络侧端口发出。 The user side port processing module is configured to: when the data frame is forwarded from the user side to the network side, find the network side virtual local area network identifier in the second mapping relationship table according to the virtual local area network identifier of the data frame and the user side port. And the network side port, after the virtual local area network identifier in the data frame is replaced with the found network side virtual local area network identifier, is sent from the found network side port.
8、 如权利要求 7所述的系统, 其特征在于, 8. The system of claim 7 wherein:
所述二层以太网交换设备是指位于网络模型第二层的 MAC地址作为转 发依据的交换设备。
The Layer 2 Ethernet switching device refers to a switching device located at the second layer of the network model as the forwarding basis.
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2008101426627A CN101325531B (en) | 2008-07-26 | 2008-07-26 | Forwarding method and system for virtual LAN |
CN200810142662.7 | 2008-07-26 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2010012143A1 true WO2010012143A1 (en) | 2010-02-04 |
Family
ID=40188871
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2008/073621 WO2010012143A1 (en) | 2008-07-26 | 2008-12-19 | Method and system of virtual local area network data forwarding |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN101325531B (en) |
WO (1) | WO2010012143A1 (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114172854A (en) * | 2021-11-30 | 2022-03-11 | 新华三大数据技术有限公司 | Message mirror image, mirror image configuration method, virtual switch and mirror image configuration device |
CN118338332A (en) * | 2024-06-12 | 2024-07-12 | 新华三技术有限公司 | Data transmission method and device, electronic equipment and storage medium |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101325531B (en) * | 2008-07-26 | 2012-05-23 | 中兴通讯股份有限公司 | Forwarding method and system for virtual LAN |
CN103916317B (en) * | 2012-12-31 | 2018-04-27 | 华为技术有限公司 | Communication means, routing bridge and network system |
CN104104571B (en) * | 2013-04-10 | 2018-12-07 | 中兴通讯股份有限公司 | The method and apparatus for realizing virtual LAN domain mapping and access control |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1878112A (en) * | 2006-07-20 | 2006-12-13 | 杭州华为三康技术有限公司 | Method for realizing virtual LAN aggregation and aggregation exchanger |
CN101005434A (en) * | 2007-01-15 | 2007-07-25 | 杭州华为三康技术有限公司 | Polymerizing method for two layer multicast virtual local area network and its convergent exchanger |
CN101022394A (en) * | 2007-04-06 | 2007-08-22 | 杭州华为三康技术有限公司 | Method for realizing virtual local network aggregating method and converging exchanger |
CN101035050A (en) * | 2007-03-15 | 2007-09-12 | 中兴通讯股份有限公司 | Processing method of the virtual LAN aggregation |
CN101325531A (en) * | 2008-07-26 | 2008-12-17 | 中兴通讯股份有限公司 | Forwarding method and system for virtual LAN |
-
2008
- 2008-07-26 CN CN2008101426627A patent/CN101325531B/en not_active Expired - Fee Related
- 2008-12-19 WO PCT/CN2008/073621 patent/WO2010012143A1/en active Application Filing
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1878112A (en) * | 2006-07-20 | 2006-12-13 | 杭州华为三康技术有限公司 | Method for realizing virtual LAN aggregation and aggregation exchanger |
CN101005434A (en) * | 2007-01-15 | 2007-07-25 | 杭州华为三康技术有限公司 | Polymerizing method for two layer multicast virtual local area network and its convergent exchanger |
CN101035050A (en) * | 2007-03-15 | 2007-09-12 | 中兴通讯股份有限公司 | Processing method of the virtual LAN aggregation |
CN101022394A (en) * | 2007-04-06 | 2007-08-22 | 杭州华为三康技术有限公司 | Method for realizing virtual local network aggregating method and converging exchanger |
CN101325531A (en) * | 2008-07-26 | 2008-12-17 | 中兴通讯股份有限公司 | Forwarding method and system for virtual LAN |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114172854A (en) * | 2021-11-30 | 2022-03-11 | 新华三大数据技术有限公司 | Message mirror image, mirror image configuration method, virtual switch and mirror image configuration device |
CN114172854B (en) * | 2021-11-30 | 2024-03-19 | 新华三大数据技术有限公司 | Report Wen Jingxiang, mirror image configuration method, virtual switch and mirror image configuration device |
CN118338332A (en) * | 2024-06-12 | 2024-07-12 | 新华三技术有限公司 | Data transmission method and device, electronic equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN101325531A (en) | 2008-12-17 |
CN101325531B (en) | 2012-05-23 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US7835370B2 (en) | System and method for DSL subscriber identification over ethernet network | |
US7881314B2 (en) | Network device providing access to both layer 2 and layer 3 services on a single physical interface | |
EP2890061B1 (en) | An optical network terminal and a message processing method, a message processing apparatus and system thereof | |
EP1875668B1 (en) | Scalable system method for dsl subscriber traffic over an ethernet network | |
WO2009127128A1 (en) | Method for avoiding downstream data flooding in ethernet passive optical network | |
US20120201247A1 (en) | Metro Ethernet Network With Scaled Broadcast And Service Instance Domains | |
Komilov et al. | Improving the use of virtual lan (vlan) technology | |
CN101594243B (en) | Method for realizing multicast spanning virtual local area networks based on optical network unit | |
CN100450080C (en) | Method and apparatus for astringing two layer MAC address | |
WO2009033428A1 (en) | Method, system and device for removing media access control address | |
US20070291764A1 (en) | Access Device and Service Transmission Method | |
WO2005069551A1 (en) | User mac frame transfer method, edge transfer device, and program | |
CN102137001B (en) | Routing information exchange method, equipment and system | |
JP2005341591A (en) | Virtual private network, and multi-service provisioning platform and method | |
WO2012068915A1 (en) | Service control method and apparatus at access node | |
WO2010012143A1 (en) | Method and system of virtual local area network data forwarding | |
EP2587742A1 (en) | Method for forwarding message and switch chip | |
EP3113422A1 (en) | Method and system of enhancing multiple mac registration protocol (mmrp) for protocol internetworking | |
CN101656671A (en) | Packet sending method and device | |
WO2006034613A1 (en) | A method for providing point-to-point service in resilient packet ring | |
WO2014067328A1 (en) | Layer 2 forwarding method and forwarding device | |
WO2009000126A1 (en) | Vdsl2 accessing device and service handing method thereof | |
WO2007093095A1 (en) | A method for implementing mpls message forwarding and an equipment thereof | |
CN100372321C (en) | Method for establishing virtual circuit | |
CN101741921B (en) | MAC (Media Access Control) address processing method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 08876648 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 08876648 Country of ref document: EP Kind code of ref document: A1 |