CN104283714A - Exchanger and system and method for achieving multiple management VLANs - Google Patents
Exchanger and system and method for achieving multiple management VLANs Download PDFInfo
- Publication number
- CN104283714A CN104283714A CN201410565318.4A CN201410565318A CN104283714A CN 104283714 A CN104283714 A CN 104283714A CN 201410565318 A CN201410565318 A CN 201410565318A CN 104283714 A CN104283714 A CN 104283714A
- Authority
- CN
- China
- Prior art keywords
- message
- ethernet
- kernel
- uplink message
- client
- Prior art date
- Legal status (The legal status 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 status listed.)
- Pending
Links
Landscapes
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The invention discloses a system for achieving multiple management VLANs. The system is suitable for network equipment. The system is used for data interaction between the Ethernet and a client side. The system comprises an exchange port, a driving layer, an inner core and an application layer, the exchange port is connected with the Ethernet and used for transmitting messages, the driving layer is connected with the exchange port, and used for processing uplink messages and downlink messages, the inner core is connected with the driving layer and used for forwarding the messages, and the application layer is connected with the client side and used for transmitting the messages. The driving layer comprises a stripping module and an adding module, and the stripping module is connected with the exchange port and the inner core and used for stripping VLANTags in the uplink messages. The adding module is connected with the exchange port and the inner core, and used for adding the VLANTags to the downlink messages. The invention further discloses a method for achieving the multiple management VLANs. The method and system are used for processing the 802.1Q messages on the driving layer under the condition that a TCP/IP stack does not support 802.1Q message processing, and an exchanger can be provided with the multiple management VLANs.
Description
Technical field
The present invention relates to Data Interchange Technology field, be specifically related to a kind of switch, realize system and the method thereof of many Management VLANs.
Background technology
Switch of the prior art realizes the function of many Management VLANs, mainly in ICP/IP protocol stack, processes 802.1Q message, by adding virtual interface for system, is then virtual interface configuration of IP address.
Therefore, the ICP/IP protocol stack of system must support 802.1Q characteristic, and TCP/IP is a part for system kernel, and some are simple, the kernel of lightweight not necessarily supports these characteristics.
Want kernel to increase 802.1Q characteristic, the volume of kernel will be made to increase, and system will consume more memory headroom, also will consume more flash memory space.
Summary of the invention
The object of the present invention is to provide a kind of switch, realize system and the method thereof of many Management VLANs, for not supporting at ICP/IP protocol stack to process 802.1Q message, at driving layer process 802.1Q message, make switch can have multiple Management VLAN.
In order to achieve the above object, the present invention is achieved through the following technical solutions: a kind of system realizing many Management VLANs, is applicable to the network equipment, and for data interaction between Ethernet and client, it is characterized in, this system comprises:
Switching port, is connected with Ethernet, for transmitting message;
Drive layer, be connected with switching port, for the treatment of uplink message and downlink message;
Kernel, is connected, for E-Packeting with driving layer;
Application layer, with client's side link, for transmitting message; Wherein
Described driving layer comprises strip module and adds module,
Described strip module connects switching port and kernel respectively, for peeling off the VLAN Tag in uplink message;
Described interpolation module connects switching port and kernel respectively, for adding VLAN Tag in downlink message.
Described switching port comprises an exchange chip further, respectively with the strip module in described driving layer and add model calling, for the VLAN Tag encapsulating uplink message and peel off in downlink message.
The described network equipment is Ethernet switch.
A kind of Ethernet switch, is characterized in, the above-mentioned system realizing many Management VLANs.
Realize a method for many Management VLANs, be applicable to the network equipment, for data interaction between Ethernet and client, be characterized in, Ethernet sends packet containing following steps to client:
A1, Ethernet send the exchange chip of uplink message to switching port;
A2, exchange chip encapsulate uplink message, add VLAN Tag, uplink message are packaged into the form driving layer to identify, and are forwarded to the strip module driving layer;
A3, strip module peel off the VLAN Tag of uplink message, and are forwarded to kernel;
Uplink message is transferred to client through application layer by A4, kernel, completes data uplink.
Realize a method for many Management VLANs, be applicable to the network equipment, for data interaction between Ethernet and client, be characterized in, client sends packet containing following steps to Ethernet:
B1, client make feedback to uplink message, send downlink message through application layer to kernel;
Downlink message is sent to the interpolation module driving layer by B2, kernel, adds the exchange chip being sent to switching port after module adds VLAN Tag according to source IP address in downlink message;
B3, exchange chip are sent to Ethernet after peeling off the VLAN Tag in downlink message, complete data downstream.
Realize a method for many Management VLANs, be applicable to the network equipment, for data interaction between Ethernet and client, be characterized in, the method includes the steps of:
S1, Ethernet send the exchange chip of uplink message to switching port;
S2, exchange chip encapsulate uplink message, and are forwarded to the strip module driving layer;
S3, strip module peel off uplink message encapsulation, and are forwarded to kernel;
Uplink message is transferred to client through application layer by S4, kernel;
S5, client make feedback to uplink message, send downlink message through application layer to kernel;
Downlink message is sent to the interpolation module driving layer by S6, kernel, adds the exchange chip being sent to switching port after module adds VLAN Tag according to source IP address in downlink message;
S7, exchange chip are sent to Ethernet after peeling off the VLAN Tag in downlink message, complete data interaction.
In described step S2, exchange chip carries out encapsulation to uplink message and is specially and adds VLAN Tag to uplink message, uplink message is packaged into the form driving layer to identify.
No. Tag in described VLAN Tag is No. PVID of switching port.
A kind of switch of the present invention, the system realizing many Management VLANs and method thereof compared with prior art have the following advantages: for not supporting at ICP/IP protocol stack to process 802.1Q message, at driving layer process 802.1Q message, make switch can have multiple Management VLAN; Reduce the requirement to embedded OS, the ICP/IP protocol stack of operating system can not support 802.1Q VLAN characteristic; Only need a small amount of code just can complete the function of many Management VLANs of switch, reduce the configuration requirement of system.
Accompanying drawing explanation
Fig. 1 is a kind of structured flowchart realizing the system of many Management VLANs of the present invention;
Fig. 2 is the flow chart of data uplink;
Fig. 3 is the flow chart of data downstream;
Fig. 4 is a kind of method flow diagram realizing many Management VLANs.
Embodiment
Below in conjunction with accompanying drawing, by describing a preferably specific embodiment in detail, the present invention is further elaborated.
As shown in Figure 1, a kind of system realizing many Management VLANs, the protocol type of Management VLAN support is 802.1Q, be applicable to the network equipment (as Ethernet switch), for data interaction between Ethernet and client, this system comprises: switching port 1, be connected with Ethernet, for transmitting message; Drive layer 2, be connected with switching port 1, for the treatment of uplink message and downlink message; Kernel 3(TCP/IP protocol stack), be connected, for E-Packeting with driving layer 2; Application layer 4, with client's side link, for transmitting message; Wherein said driving layer 2 comprises strip module 21 and adds module 22, and described strip module 21 connects switching port 1 and kernel 3 respectively, for peeling off the VLAN Tag in uplink message; Described interpolation module 22 connects switching port 1 and kernel 3 respectively, for adding VLAN Tag in downlink message; Described switching port 1 comprises an exchange chip 11 further, respectively with the strip module 21 in described driving layer 2 and add module 22 and be connected, for the VLAN Tag encapsulating uplink message and peel off in downlink message.
As shown in Figure 2, a kind of method realizing many Management VLANs, is applicable to the network equipment, and for data interaction between Ethernet and client, Ethernet sends data (data uplink) to client and comprises following steps:
A1, Ethernet send uplink message to the exchange chip 11 exchanging port one;
A2, exchange chip 11 pairs of uplink messages encapsulate, and add VLAN Tag, uplink message are packaged into the form driving layer to identify, and are forwarded to the strip module 21 driving layer 2;
A3, strip module 21 peel off the VLAN Tag of uplink message, and are forwarded to kernel 3;
Uplink message is transferred to client through application layer 4 by A4, kernel 3, completes data uplink.
As shown in Figure 3, a kind of method realizing many Management VLANs, is applicable to the network equipment, and for data interaction between Ethernet and client, client sends data (data downstream) to Ethernet and comprises following steps:
B1, client make feedback to uplink message, send downlink message through application layer 4 to kernel 3;
Downlink message is sent to the interpolation module 22 driving layer 2 by B2, kernel 3, add the exchange chip 11 being sent to switching port 1 after module 22 adds VLAN Tag according to source IP address in downlink message, if source IP is that then to arrange VLAN Tag be 1 to 192.168.0.x, source IP is that then to arrange VLAN Tag be 2 to 192.168.1.x;
B3, exchange chip 11 are sent to Ethernet after peeling off the VLAN Tag in downlink message, complete data downstream.
As shown in Figure 4, a kind of method realizing many Management VLANs, is applicable to the network equipment, and for data interaction between Ethernet and client, the method includes the steps of:
S1, Ethernet send uplink message to the exchange chip 11 exchanging port one;
S2, exchange chip 11 pairs of uplink messages encapsulate, and are forwarded to the strip module 21 driving layer 2;
S3, strip module 21 peel off uplink message encapsulation, and are forwarded to kernel 3;
Uplink message is transferred to client through application layer 4 by S4, kernel 3;
S5, client make feedback to uplink message, send downlink message through application layer 4 to kernel 3;
Downlink message is sent to the interpolation module 22 driving layer 2 by S6, kernel 3, add the exchange chip 11 being sent to switching port 1 after module 22 adds VLAN Tag according to source IP address in downlink message, if source IP is that then to arrange VLAN Tag be 1 to 192.168.0.x, source IP is that then to arrange VLAN Tag be 2 to 192.168.1.x;
S7, exchange chip 11 are sent to Ethernet after peeling off the VLAN Tag in downlink message, complete data interaction.
In described step S2, exchange chip 11 pairs of uplink messages carry out encapsulation and are specially and add VLAN Tag to uplink message, uplink message are packaged into the form driving layer 2 to identify, as shown in table 1.
No. Tag in described VLAN Tag is No. PVID of switching port 1.
Although content of the present invention has done detailed introduction by above preferred embodiment, will be appreciated that above-mentioned description should not be considered to limitation of the present invention.After those skilled in the art have read foregoing, for multiple amendment of the present invention and substitute will be all apparent.Therefore, protection scope of the present invention should be limited to the appended claims.
Claims (9)
1. realize a system for many Management VLANs, be applicable to the network equipment, for data interaction between Ethernet and client, it is characterized in that, this system comprises:
Switching port (1), is connected with Ethernet, for transmitting message;
Drive layer (2), be connected with switching port (1), for the treatment of uplink message and downlink message;
Kernel (3), is connected, for E-Packeting with driving layer (2);
Application layer (4), with client's side link, for transmitting message; Wherein
Described driving layer (2) comprises strip module (21) and adds module (22),
Described strip module (21) connects switching port (1) and kernel (3) respectively, for peeling off the VLAN Tag in uplink message;
Described interpolation module (22) connects switching port (1) and kernel (3) respectively, for adding VLAN Tag in downlink message.
2. realize the system of many Management VLANs as claimed in claim 1, it is characterized in that, described switching port (1) comprises an exchange chip (11) further, respectively with the strip module (21) in described driving layer (2) and add module (22) and be connected, for the VLAN Tag encapsulating uplink message and peel off in downlink message.
3. realize the system of many Management VLANs as claimed in claim 1 or 2, it is characterized in that, the described network equipment is Ethernet switch.
4. an Ethernet switch, is characterized in that, comprises as any one of claim 1-3 realizes the system of many Management VLANs.
5. realize a method for many Management VLANs, be applicable to the network equipment, for data interaction between Ethernet and client, it is characterized in that, Ethernet sends packet containing following steps to client:
A1, Ethernet send the exchange chip (11) of uplink message to switching port (1);
A2, exchange chip (11) encapsulate uplink message, add VLAN Tag, uplink message are packaged into the form driving layer to identify, and are forwarded to the strip module (21) driving layer (2);
A3, strip module (21) peel off the VLAN Tag of uplink message, and are forwarded to kernel (3);
Uplink message is transferred to client through application layer (4) by A4, kernel (3), completes data uplink.
6. realize a method for many Management VLANs, be applicable to the network equipment, for data interaction between Ethernet and client, it is characterized in that, client sends packet containing following steps to Ethernet:
B1, client make feedback to uplink message, send downlink message through application layer (4) to kernel (3);
Downlink message is sent to the interpolation module (22) driving layer (2) by B2, kernel (3), adds the exchange chip (11) being sent to switching port (1) after module (22) adds VLAN Tag according to source IP address in downlink message;
B3, exchange chip (11) are sent to Ethernet after peeling off the VLAN Tag in downlink message, complete data downstream.
7. realize a method for many Management VLANs, be applicable to the network equipment, for data interaction between Ethernet and client, it is characterized in that, the method includes the steps of:
S1, Ethernet send the exchange chip (11) of uplink message to switching port (1);
S2, exchange chip (11) encapsulate uplink message, and are forwarded to the strip module (21) driving layer (2);
S3, strip module (21) peel off uplink message encapsulation, and are forwarded to kernel (3);
Uplink message is transferred to client through application layer (4) by S4, kernel (3);
S5, client make feedback to uplink message, send downlink message through application layer (4) to kernel (3);
Downlink message is sent to the interpolation module (22) driving layer (2) by S6, kernel (3), adds the exchange chip (11) being sent to switching port (1) after module (22) adds VLAN Tag according to source IP address in downlink message;
S7, exchange chip (11) are sent to Ethernet after peeling off the VLAN Tag in downlink message, complete data interaction.
8. realize the method for many Management VLANs as claimed in claim 7, it is characterized in that, in described step S2, exchange chip (11) carries out encapsulation to uplink message and is specially and adds VLAN Tag to uplink message, uplink message is packaged into the form driving layer to identify.
9. realize the method for many Management VLANs as claimed in claim 7 or 8, it is characterized in that, No. Tag in described VLAN Tag is No. PVID of switching port (1).
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410565318.4A CN104283714A (en) | 2014-10-22 | 2014-10-22 | Exchanger and system and method for achieving multiple management VLANs |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410565318.4A CN104283714A (en) | 2014-10-22 | 2014-10-22 | Exchanger and system and method for achieving multiple management VLANs |
Publications (1)
Publication Number | Publication Date |
---|---|
CN104283714A true CN104283714A (en) | 2015-01-14 |
Family
ID=52258222
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410565318.4A Pending CN104283714A (en) | 2014-10-22 | 2014-10-22 | Exchanger and system and method for achieving multiple management VLANs |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104283714A (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106850464A (en) * | 2016-12-20 | 2017-06-13 | 全球能源互联网研究院 | Message processing method and device |
CN106961372A (en) * | 2017-05-12 | 2017-07-18 | 深圳震有科技股份有限公司 | Configure the realization method and system of different VLAN many IP common ports |
CN106973053A (en) * | 2017-03-29 | 2017-07-21 | 网宿科技股份有限公司 | The acceleration method and system of BAS Broadband Access Server |
CN107222335A (en) * | 2017-05-25 | 2017-09-29 | 深圳震有科技股份有限公司 | Realize the method and system of the different VLAN of configuration many IP common ports |
CN115134296A (en) * | 2022-05-31 | 2022-09-30 | 青岛海信宽带多媒体技术有限公司 | Intelligent gateway |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1512718A (en) * | 2002-12-26 | 2004-07-14 | 成都卫士通信息产业股份有限公司 | Realizing VLAN technology on Ethernet via network card drive |
CN102571603A (en) * | 2012-02-14 | 2012-07-11 | 成都欣点科技有限公司 | Ethernet port controlling apparatus and method thereof |
CN104104518A (en) * | 2013-04-12 | 2014-10-15 | 南京南瑞继保电气有限公司 | Virtual method of multiple Ethernet controllers in embedded system |
-
2014
- 2014-10-22 CN CN201410565318.4A patent/CN104283714A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1512718A (en) * | 2002-12-26 | 2004-07-14 | 成都卫士通信息产业股份有限公司 | Realizing VLAN technology on Ethernet via network card drive |
CN102571603A (en) * | 2012-02-14 | 2012-07-11 | 成都欣点科技有限公司 | Ethernet port controlling apparatus and method thereof |
CN104104518A (en) * | 2013-04-12 | 2014-10-15 | 南京南瑞继保电气有限公司 | Virtual method of multiple Ethernet controllers in embedded system |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106850464A (en) * | 2016-12-20 | 2017-06-13 | 全球能源互联网研究院 | Message processing method and device |
CN106850464B (en) * | 2016-12-20 | 2021-05-04 | 全球能源互联网研究院有限公司 | Message processing method and device |
CN106973053A (en) * | 2017-03-29 | 2017-07-21 | 网宿科技股份有限公司 | The acceleration method and system of BAS Broadband Access Server |
CN106973053B (en) * | 2017-03-29 | 2019-10-11 | 网宿科技股份有限公司 | The acceleration method and system of BAS Broadband Access Server |
CN106961372A (en) * | 2017-05-12 | 2017-07-18 | 深圳震有科技股份有限公司 | Configure the realization method and system of different VLAN many IP common ports |
CN107222335A (en) * | 2017-05-25 | 2017-09-29 | 深圳震有科技股份有限公司 | Realize the method and system of the different VLAN of configuration many IP common ports |
CN115134296A (en) * | 2022-05-31 | 2022-09-30 | 青岛海信宽带多媒体技术有限公司 | Intelligent gateway |
CN115134296B (en) * | 2022-05-31 | 2024-05-17 | 青岛海信宽带多媒体技术有限公司 | Intelligent gateway |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN102970227B (en) | The method and apparatus of VXLAN message repeating is realized in ASIC | |
US10263916B2 (en) | System and method for message handling in a network device | |
US8437349B2 (en) | Multicast snooping on layer 2 virtual private network | |
CN104283714A (en) | Exchanger and system and method for achieving multiple management VLANs | |
US9451056B2 (en) | Method for mapping packets to network virtualization instances | |
US9130859B1 (en) | Methods and apparatus for inter-virtual local area network multicast services | |
CN103401773B (en) | Method and network equipment realizing interboard communication | |
US20150271105A1 (en) | Multi-homing in an extended bridge | |
CN105591916B (en) | A kind of message transmitting method and device | |
EP3490197B1 (en) | Message forwarding | |
CN101160850A (en) | Method and device for forwarding packet | |
CN107079017A (en) | A kind of message forwarding method and device | |
CN103944867A (en) | Dynamic host configuration protocol (DHCP) message processing method, device and system | |
CN106685826A (en) | Interchanger stacking system, slave unit, switching chip and method for processing protocol message | |
CN106998347A (en) | The apparatus and method of server virtualization network share | |
CN104796353A (en) | Packet forwarding method and switch | |
CN108259298A (en) | A kind of message forwarding method and device | |
CN107547338A (en) | A kind of message forwarding method and device | |
CN104160735A (en) | Packet processing method, forwarder, packet processing device and packet processing system | |
US20150139232A1 (en) | Virtual Machine Data Packet Encapsulation and Decapsulation | |
CN102868642B (en) | The method and apparatus of NVGRE message repeating is realized in ASIC | |
CN104158743A (en) | Method and device of cross-card forwarding of message of distributed router | |
WO2015154393A1 (en) | Method and apparatus for processing service node ability, service classifier and service controller | |
CN106302258B (en) | A kind of message forwarding method and device | |
CN109639555A (en) | Link layer message generation method, link layer message generating means and terminal device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20150114 |