RU2016146821A - METHOD OF SUPPORTING VLAN WITH LINUX SOFTWARE BRIDGE - Google Patents

METHOD OF SUPPORTING VLAN WITH LINUX SOFTWARE BRIDGE Download PDF

Info

Publication number
RU2016146821A
RU2016146821A RU2016146821A RU2016146821A RU2016146821A RU 2016146821 A RU2016146821 A RU 2016146821A RU 2016146821 A RU2016146821 A RU 2016146821A RU 2016146821 A RU2016146821 A RU 2016146821A RU 2016146821 A RU2016146821 A RU 2016146821A
Authority
RU
Russia
Prior art keywords
port
vlan
network
bridge
list
Prior art date
Application number
RU2016146821A
Other languages
Russian (ru)
Other versions
RU2016146821A3 (en
RU2669684C2 (en
Inventor
Чжуаньюнь ЧЖОУ
Чанчунь ЛИ
Чжицзюнь ВАН
Вэй ЧЖАО
Original Assignee
Файберхоум Телекоммьюникейшн Текнолоджиз Ко., Лтд
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Файберхоум Телекоммьюникейшн Текнолоджиз Ко., Лтд filed Critical Файберхоум Телекоммьюникейшн Текнолоджиз Ко., Лтд
Publication of RU2016146821A3 publication Critical patent/RU2016146821A3/ru
Publication of RU2016146821A publication Critical patent/RU2016146821A/en
Application granted granted Critical
Publication of RU2669684C2 publication Critical patent/RU2669684C2/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/46Interconnection of networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/46Interconnection of networks
    • H04L12/4641Virtual LANs, VLANs, e.g. virtual private networks [VPN]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/46Interconnection of networks
    • H04L12/4641Virtual LANs, VLANs, e.g. virtual private networks [VPN]
    • H04L12/4675Dynamic sharing of VLAN information amongst network nodes
    • H04L12/4679Arrangements for the registration or de-registration of VLAN attribute values, e.g. VLAN identifiers, port VLAN membership

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Small-Scale Networks (AREA)

Claims (29)

1. Способ поддержки VLAN программным мостом Linux, который характеризуется наличием следующих этапов:1. A way to support VLAN with the Linux software bridge, which is characterized by the following steps: этап А10: в ядре Linux создают сетевой мост br0 и сетевой VLAN порт, сетевой порт и сетевой VLAN порт добавляют на сетевой мост br0, образуя соответствующий порт сетевого моста, который осуществляет обслуживание в форме группы списков ссылок порта VLAN;step A10: the br0 network bridge is created in the Linux kernel and the network VLAN port is added, the network port and the network VLAN port are added to the br0 network bridge, forming the corresponding network bridge port, which performs maintenance in the form of a list of VLAN port link lists; этап А20: настраивают порт сетевого моста на сетевом мосту br0, создают или обновляют соответствующий список ссылок порта VLAN;step A20: configure the network bridge port on the network bridge br0, create or update the corresponding list of VLAN port links; этап А30: с помощью сетевого моста br0 осуществляют переадресацию данных на базе VLAN.Step A30: Using the br0 network bridge, VLAN-based data forwarding is performed. 2. Способ в соответствии с п. 1, который характеризуется тем, что на этапе А10 способа обслуживания списка ссылок VLAN порта сетевого моста осуществляют следующее:2. The method in accordance with p. 1, which is characterized in that at step A10 of the method for servicing the VLAN link list of a network bridge port, the following is carried out: (1) одну группу портов сетевого моста с аналогичным VLAN ID образуют посредством списка ссылок одного VLAN порта;(1) one group of network bridge ports with the same VLAN ID is formed by a link list of one VLAN port; (2) в число элементов структуры каждого порта сетевого моста входит информация заголовка списка ссылок, указывающая на принадлежащий список ссылок VLAN порта, которую используют для обхода всех портов во VLAN при лавинной адресации пакетов данных;(2) the structural elements of each port of the network bridge include link list header information indicating the belonging list of VLAN ports, which is used to bypass all ports in the VLAN when data packets are flooded; (3) при создании нового сетевого VLAN порта на сетевом мосту требуется создать новый список ссылок VLAN порта;(3) when creating a new network VLAN port on the network bridge, you need to create a new list of VLAN port links; (4) при добавлении сетевого порта или сетевого VLAN порта на сетевой мост осуществляют поиск в соответствующем списке ссылок порта VLAN в соответствии с PVID или VLAN ID порта сетевого моста, и порт сетевого моста добавляют в конец списка ссылок данного порта VLAN;(4) when adding a network port or network VLAN port to the network bridge, search the corresponding VLAN port link list in accordance with the PVID or VLAN ID of the network bridge port, and add the network bridge port to the end of the link list of this VLAN port; (5) при удалении сетевого порта или сетевого VLAN порта из сетевого моста осуществляют поиск в соответствующем списке ссылок порта VLAN в соответствии с VLAN ID порта сетевого моста и обход элементов, соответствующих поиску в списке ссылок порта VLAN, эти элементы удаляют.(5) when removing a network port or a network VLAN port from a network bridge, search the corresponding VLAN port link list in accordance with the VLAN ID of the network bridge port and bypass items matching the search in the VLAN port link list, delete these elements. 3. Способ в соответствии с п. 1, характеризующийся тем, что этап А20 включает:3. The method in accordance with p. 1, characterized in that step A20 includes: этап А21: настройка сетевого порта и VLAN ID сетевого VLAN порта, создание виртуального порта на базе 802.1Q, настройка свойств PVID сетевого порта;step A21: configure the network port and VLAN ID of the network VLAN port, create a virtual port based on 802.1Q, configure the PVID properties of the network port; этап А22: определение, является ли вновь добавленный порт сетевого моста сетевым портом, и если он является сетевым портом, то осуществляют получение PVID этого порта сетевого моста, после чего осуществляют переход к этапу А23; если он является сетевым VLAN портом, то осуществляют получение VLAN ID этого виртуального порта, после чего переход к этапу А23;step A22: determining whether the newly added network bridge port is a network port, and if it is a network port, then the PVID of this network bridge port is obtained, then go to step A23; if it is a network VLAN port, then obtain the VLAN ID of this virtual port, and then go to step A23; этап А23: с VLAN ID или PVID в качестве индекса осуществляют поиск наличия соответствующего списка ссылок порта VLAN, и если он отсутствует, то создают новый список ссылок порта VLAN; если он существует, то на вновь добавленный порт сетевого моста добавляют соответствующий список ссылок порта VLAN.step A23: with a VLAN ID or PVID as an index, search for the presence of a corresponding list of links of the VLAN port, and if it is absent, then create a new list of links of the VLAN port; if it exists, then the corresponding link list of the VLAN port is added to the newly added network bridge port. 4. Способ в соответствии с п. 1, характеризующийся тем, что этап А30 включает:4. The method in accordance with p. 1, characterized in that step A30 includes: этап A31: получение сетевым портом пакета данных;step A31: receiving a network port data packet; этап А32: проверка данного пакета данных на наличие прикрепленного тэга 802.1Q, при этом если типом протокола пакета данных является 802.1Q, то осуществляют переход к этапу А33; в противном случае осуществляют переход к этапу А34;step A32: checking this data packet for the presence of an attached 802.1Q tag, while if the protocol type of the data packet is 802.1Q, then go to step A33; otherwise, proceed to step A34; этап А33: выделение из пакета данных поля 802.1Q, исправление порта получения пакета данных на сетевой VLAN порт, переход к этапу A34;step A33: extracting the 802.1Q field from the data packet, correcting the port for receiving the data packet to the network VLAN port, proceeding to step A34; этап A34: определение, является ли порт получения пакета данных портом сетевого моста, и если он является, то осуществляют переход к этапу A35; в противном случае осуществляют передачу на стек протоколов второго уровня Linux для обработки, после чего процедуру заканчивают;step A34: determining whether the port for receiving the data packet is a port of the network bridge, and if it is, then go to step A35; otherwise, Linux is transferred to the protocol stack of the second level for processing, after which the procedure is completed; этап A35: пакет данных подают на стек протоколов моста для обработки, и создают или обновляют список переадресации;step A35: a data packet is fed onto the protocol stack of the bridge for processing, and a redirect list is created or updated; этап A36: определение, является целевой МАС-адрес пакета данных широковещательным или индивидуальным адресом, и если он является широковещательным адресом, то осуществляют переход к этапу А39; в противном случае осуществляют переход к этапу А37;step A36: determining whether the target MAC address of the data packet is a broadcast or an individual address, and if it is a broadcast address, then go to step A39; otherwise, proceed to step A37; этап А37: поиск списка переадресации в соответствии с целевым МАС-адресом пакета данных и информацией VLAN;step A37: searching the forwarding list in accordance with the target MAC address of the data packet and the VLAN information; этап A38: если в списке переадресации содержится сетевой VLAN порт, аналогичный целевому МАС-адресу, то осуществляют переход к этапу А40; при отсутствии осуществляют переход к этапу А39;step A38: if the forwarding list contains a network VLAN port similar to the target MAC address, then go to step A40; if not, proceed to step A39; этап A39: в соответствии с информацией VLAN ID получающего пакет данных сетевого порта осуществляют получение списка ссылок VLAN порта сетевого моста, принадлежащего данному порту сетевого моста, и осуществляют лавинную адресацию в направлении других сетевых портов в списке ссылок VLAN порта;step A39: in accordance with the VLAN ID information of the network port receiving the data packet, the VLAN link list of the network bridge port belonging to the given network bridge port is obtained, and avalanche addressing towards other network ports in the VLAN port link list is performed; этап А40: определение местоположения сетевого VLAN порта, аналогичного целевому МАС-адресу, переадресация посредством порта сетевого моста;step A40: determining the location of the network VLAN port similar to the target MAC address, forwarding through the port of the network bridge; этап А41: определение, является ли порт моста сетевым VLAN портом, и если является, то осуществляют переход к этапу А42; в противном случае осуществляют переход к этапу А43;step A41: determining whether the bridge port is a network VLAN port, and if so, proceed to step A42; otherwise, proceed to step A43; этап А42: посредством стека протоколов 802.1Q добавляют соответствующий тэг 802.1Q, после чего осуществляют переход к этапу А43;step A42: add the corresponding 802.1Q tag through the 802.1Q protocol stack, after which proceed to step A43; этап А43: пакет данных отправляют посредством сетевого порта;step A43: a data packet is sent via a network port; этап А44: завершение.step A44: completion.
RU2016146821A 2014-08-12 2015-08-07 Method of vlan support with linux software bridge RU2669684C2 (en)

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
CN201410395046.8 2014-08-12
CN201410395046.8A CN104125128B (en) 2014-08-12 2014-08-12 Method for supporting VLAN (virtual local area network) by aid of Linux soft bridge
PCT/CN2015/086354 WO2016023443A1 (en) 2014-08-12 2015-08-07 Method for supporting vlan by means of linux soft bridge

Publications (3)

Publication Number Publication Date
RU2016146821A3 RU2016146821A3 (en) 2018-09-13
RU2016146821A true RU2016146821A (en) 2018-09-13
RU2669684C2 RU2669684C2 (en) 2018-10-12

Family

ID=51770397

Family Applications (1)

Application Number Title Priority Date Filing Date
RU2016146821A RU2669684C2 (en) 2014-08-12 2015-08-07 Method of vlan support with linux software bridge

Country Status (3)

Country Link
CN (1) CN104125128B (en)
RU (1) RU2669684C2 (en)
WO (1) WO2016023443A1 (en)

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104125128B (en) * 2014-08-12 2017-04-12 烽火通信科技股份有限公司 Method for supporting VLAN (virtual local area network) by aid of Linux soft bridge
CN104410559A (en) * 2014-12-18 2015-03-11 武汉长光科技有限公司 A method for achieving multiple routing and bridging of home gateway using single network bridge
CN105227424B (en) * 2015-10-20 2018-05-15 成都广达新网科技股份有限公司 A kind of EOC local sides are by cascading the method and system of bridge virtual interface
CN106656815A (en) * 2015-10-30 2017-05-10 阿里巴巴集团控股有限公司 Virtual network message processing method and device
CN105245431A (en) * 2015-11-10 2016-01-13 上海斐讯数据通信技术有限公司 VLAN (Virtual Local Area Network) implementation method and VLAN system based on Lunix system
CN106817439A (en) * 2017-02-10 2017-06-09 武汉卓威视讯科技有限公司 A kind of method for obtaining MAC Address
CN107566238B (en) * 2017-08-30 2020-03-27 成都安恒信息技术有限公司 Method for automatically identifying vlan frame and non-vlan frame through user-state configuration physical interface
CN110401923B (en) * 2019-04-19 2021-08-10 广州天链通信科技有限公司 Method for simultaneously supporting VSAT terminal network bridge and routing mode and VSAT terminal
CN111917626B (en) * 2020-08-14 2022-01-18 上海中兴易联通讯股份有限公司 Centralized forwarding method for Wlan AC service data and electronic equipment
CN115883349A (en) * 2021-09-26 2023-03-31 华为技术有限公司 Network configuration method, router, storage medium, and program product

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100309819A1 (en) * 2009-06-09 2010-12-09 Sony Corporation And Sony Electronics Inc. System and method for effectively implementing an enhanced router device
US9077590B2 (en) * 2009-06-22 2015-07-07 Citrix Systems, Inc. Systems and methods for providing link management in a multi-core system
CN102647359B (en) * 2012-04-26 2014-10-08 网经科技(苏州)有限公司 Method for implementing network bridge IGMP (internet group management protocol) Snooping based on DSA TAG (digital signature algorithm tag) and user-defined protocol stack
CN102780627B (en) * 2012-07-31 2015-11-18 深圳市共进电子股份有限公司 A kind of Linux kernel protocol stack network bridge data forwarding method
CN104125128B (en) * 2014-08-12 2017-04-12 烽火通信科技股份有限公司 Method for supporting VLAN (virtual local area network) by aid of Linux soft bridge

Also Published As

Publication number Publication date
CN104125128B (en) 2017-04-12
WO2016023443A1 (en) 2016-02-18
RU2016146821A3 (en) 2018-09-13
RU2669684C2 (en) 2018-10-12
CN104125128A (en) 2014-10-29

Similar Documents

Publication Publication Date Title
RU2016146821A (en) METHOD OF SUPPORTING VLAN WITH LINUX SOFTWARE BRIDGE
US10791066B2 (en) Virtual network
US9917769B2 (en) Method and system for virtualizing flow tables in a software-defined networking (SDN) system
US9596181B1 (en) Two stage bloom filter for longest prefix match
JP2019506761A5 (en)
US20140036682A1 (en) Load Balancing Based on TRILL
EP3313025A2 (en) Data packet forwarding
US9001644B2 (en) Ethernet virtual private network system for providing fast protection for access rings
US10313154B2 (en) Packet forwarding
US9036508B2 (en) Layer two extensions
US9960995B2 (en) Packet forwarding using a physical unit and a virtual forwarding unit
RU2012157524A (en) METHODS AND SYSTEMS FOR IMPLEMENTING A PHYSICAL DEVICE FOR DIFFERENTIATION OF A LOT OF VIRTUAL MACHINES OF A HOST-COMPUTER SYSTEM
US10122548B2 (en) Services execution
US10187218B2 (en) Systems and methods for processing packets in a computer network
US20160006583A1 (en) Control apparatus, communication system, switch control method and program
JP6928076B2 (en) Packet monitoring
CN102780627B (en) A kind of Linux kernel protocol stack network bridge data forwarding method
JP2019521619A (en) Packet forwarding
CN105745883A (en) Method for synchronizing forwarding tables, network device, and system
US10038636B2 (en) Connecting a PVLAN switch to a non-PVLAN device
JP5526047B2 (en) Packet relay apparatus and output destination determination method in packet relay apparatus
CN103457756B (en) A kind of loop path detection, Apparatus and system
CN105745882A (en) Realization method for flat networks routing based on network
US10313274B2 (en) Packet forwarding
CN106059922B (en) Route method for implanting and device