CN101222780B - Method for binding virtual LAN and user on Ethernet exchanging chip - Google Patents

Method for binding virtual LAN and user on Ethernet exchanging chip Download PDF

Info

Publication number
CN101222780B
CN101222780B CN2008100070102A CN200810007010A CN101222780B CN 101222780 B CN101222780 B CN 101222780B CN 2008100070102 A CN2008100070102 A CN 2008100070102A CN 200810007010 A CN200810007010 A CN 200810007010A CN 101222780 B CN101222780 B CN 101222780B
Authority
CN
China
Prior art keywords
vlan
port
user
ethernet switching
switching chip
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.)
Active
Application number
CN2008100070102A
Other languages
Chinese (zh)
Other versions
CN101222780A (en
Inventor
成建晖
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN2008100070102A priority Critical patent/CN101222780B/en
Publication of CN101222780A publication Critical patent/CN101222780A/en
Application granted granted Critical
Publication of CN101222780B publication Critical patent/CN101222780B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Small-Scale Networks (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses a method for realizing binding user to virtual local area network on an Ethernet switch chip; the method is used for binding a user port with an S-VLAN ID, and comprises adding the user port and corresponding network ports to the VLAN, and setting the ID of the VLAN into the S-VLAN ID. The invention further discloses a method for realizing binding user to virtual local area network on an Ethernet switch chip, and the method is used for binding a user port with an S-VLAN ID and a C-VLAN ID. The 1:1 VLAN model of TR-101 can be realized on VLAN switch chips/switches by using the invention.

Description

On Ethernet switching chip, realize the method for VLAN and user binding
Technical field
The present invention relates to the communications field, and especially, relate to the method that on Ethernet switching chip, realizes VLAN and user binding.
Background technology
TR-101 be by the issue of Digital Subscriber Line (DSL) forum's framework and transmission group about DSL access network technical specification book (the 101st piece of technical report) based on Ethernet architecture; In the document, summed up and how an original broadband access network based on ATM(Asynchronous Transfer Mode) has been evolved to the broadband access network based on Ethernet; And framework and topology that this broadband access networking should be followed have been described; And interconnect in order to satisfy, requirements such as service quality, multicast and safety, the technical capability that this network should reach.
Requiring broadband access equipment support what is called among the TR-101 is 1: 1 VLAN (VLAN) forwarding model, just supports VLAN and user binding technology together.Specifically, require on up direction, the packet that user port is received is coupled with one or two VLAN labels, is forwarded to the network port then; And on down direction; Which user port the network port should be forwarded to according to this packet of VLAN label decision entrained in the packet after receiving packet, and can remove VLAN label entrained in the packet according to involved configuration requirement.
1: 1 VLAN model binding between the VLAN sequence number (Service VLAN ID, S-VLAN ID) of TR-101 requirement access device support service provider and user; S-VLAN add the client the VLAN sequence number (Customer VLAN ID, C-VLAN) and 1: 1 VLAN model between the user; And access device should be supported media interviews control (Media Access Control, MAC) study of address on the VLAN in 1: 1.
Because DSL forum is by main in the world telecom operators and the main technical forum that equipment vendor initiated, so the technical report of this forum has great importance for the development of communication network.Main telecommunications utilization commercial city is a network of planning oneself according to its technical specification.Simultaneously, telecom equipment manufacturers also should make great efforts to make the equipment of oneself to meet its technical specification.
At present; Usually can use the Ethernet switching chip merchant to realize converging of flow in the broadband access equipment; But Ethernet switching chip all is based on IVL (the Independent VLAN Learning that VLAN adds MAC Address; Independent VLAN study) mechanism, what require among 1: 1 VLAN of this and TR-101 adds that based on S-VLAN ID or S-VLAN ID the study forwarding mechanism of C-VLAN ID has fundamentally different.Therefore, when being implemented to the TR-101 model on the Ethernet chip, will inevitably go wrong.
Yet, thereby propose at present to solve this species diversity combines 1: 1 VLAN model of TR-101 with Ethernet technical scheme as yet.
Summary of the invention
Consider the problems referred to above and make the present invention; For this reason; Main purpose of the present invention is to provide a kind of VLAN and user binding, i.e. TR1 of on Ethernet switching chip, realizing: the scheme of 1 VLAN, and with 1: 1 VLAN model solving TR-101 and the variability issues between the Ethernet.
According to embodiments of the invention, a kind of method that on Ethernet switching chip, realizes VLAN and user binding is provided, be used for the situation that user port and service provider's VLAN sequence number (VLAN ID) is bound.
This method comprises: the user port and the corresponding network port are added VLAN, and the ID of VLAN is set to service provider's VLAN ID.
And this method can further comprise: the inundation bag speed limit function of closing Ethernet switching chip port in the VLAN; Close the MAC address learning function of Ethernet switching chip port in the VLAN.
In VLAN, under the situation of transmits data packets, can further comprise: the source port that sends packet in the user port and the network port is flooded to the another port in the user port and the network port with packet.
In addition; Under the situation of user port and/or network port transmission vlan data bag, further comprise: the source port of transmission vlan data bag writes the source media access control address information of vlan data bag in the address table of media access control of Ethernet switching chip in the user port and the network port.
According to another embodiment of the present invention, a kind of method that on Ethernet switching chip, realizes VLAN and user binding is provided, has been used for situation user port and service provider's VLAN ID and client's VLAN ID binding.
This method comprises: step S302 user port is set adds VLAN with the corresponding network port, and the ID of VLAN is set to service provider's VLAN ID; Step S304, application flow classification policy on the port of the corresponding Ethernet switching chip of the port of the corresponding Ethernet switching chip of user port and the network port is to be provided with the VLAN ID with service provider's VLAN ID corresponding client.
Wherein, after step S302, further comprise: the inundation bag speed limit function of closing Ethernet switching chip port in the VLAN; Close the MAC address learning function of Ethernet switching chip port in the VLAN.
Particularly, in step S304, when application flow classification policy on the port of the corresponding Ethernet switching chip of user port, policy action is for to be redirected to the network port with all packets; When application flow classification policy on the port of the corresponding Ethernet switching chip of the network port, policy action is for to be redirected to user port with all packets.
In addition; In VLAN under the situation of transmits data packets; This method can further comprise: the source port that sends packet in the user port and the network port sends the vlan data bag, and the VLAN ID of the mutual corresponding service provider of the service provider's of vlan data bag VLAN ID and client's VLAN ID and setting and client's VLAN ID are compared; Under the situation of result relatively, the vlan data bag is flooded to the another port in the user port and the network port for coupling.
In addition; Under the situation of user port and/or network port transmission vlan data bag, this method further comprises: the source port of transmission vlan data bag writes the source media access control address information of vlan data bag in the address table of media access control of Ethernet switching chip in the user port and the network port.
Through technique scheme of the present invention, can on the VLAN exchange chip, realize 1: 1 VLAN model of TR-101.
Description of drawings
Accompanying drawing described herein is used to provide further understanding of the present invention, constitutes the application's a part, and illustrative examples of the present invention and explanation thereof are used to explain the present invention, do not constitute improper qualification of the present invention.In the accompanying drawings:
Fig. 1 realizes TR1 according to the inventive method embodiment one on Ethernet switching chip: the flow chart of vlan data bag transmission in 1: 1 in the method for 1 VLAN;
Fig. 2 is the flow chart that carries out the transmission of vlan data bag in the method that on Ethernet switching chip, realizes TR 1: 1VLAN according to the embodiment of the invention;
Fig. 3 is the flow chart according to the method that on Ethernet switching chip, realizes TR 1:1 VLAN of the inventive method embodiment two; And
Fig. 4 is the flow chart that carries out the transmission of vlan data bag in the method that on Ethernet switching chip, realizes TR 1:1 VLAN according to the inventive method embodiment two.
Embodiment
Method embodiment one
In the present embodiment, a kind of VLAN and user binding on Ethernet switching chip, realized is provided, that is, realized the method for TR 1:1 VLAN, be used for situation user port and service provider's VLAN ID (S-VLAN ID) binding.
This method comprises: the user port and the corresponding network port are added VLAN, and the ID of VLAN is set to S-VLAN ID.That is, the user port of needs binding and the corresponding Ethernet switching chip port of the network port of the corresponding first line of a couplet are added same VLAN, corresponding VLAN ID is S-VLAN ID.
And this method can further comprise: the inundation bag speed limit function of closing Ethernet switching chip port in the VLAN (that is, above-mentioned the user port and the network port); Close the MAC address learning function of Ethernet switching chip port in the VLAN.That is to say, the inundation bag is not carried out speed limit, allow it to carry out surface speed forwarding.
In VLAN, under the situation of transmits data packets, can further comprise: the source port that sends packet in the user port and the network port is flooded to the another port in the user port and the network port with packet.
Below will be with the up example that is transmitted as, and combine Fig. 1, describe the 1:1 vlan data and wrap in the transmission course among the above-mentioned VLAN.
As shown in Figure 1, after packet carried out the Ethernet switching chip user port, exchange chip can parse the source MAC of this packet, and the port numbers that this source MAC and packet are carried out exchange chip is delivered to the MAC address learning module of exchange chip; Exchange chip MAC address learning module obtains port numbers, because this port is set to not carry out MAC address learning, so exchange chip will can not learnt this MAC Address;
Exchange chip is with the target MAC (Media Access Control) address of resolution data bag simultaneously; This MAC Address being delivered to the mac address table of exchange chip searches; Owing to closed the MAC address learning function of the corresponding network port at exchange chip; Therefore exchange chip will can not find the pairing port of this MAC Address, so this packet will carry out inundation in VLAN; Simultaneously because this VLAN includes only the user port and the network port, so this packet will be flooded to the network port, be the same with the effect of clean culture.
And, because the inundation bag speed limit function of close port, so guaranteed that packet is 1: can carry out surface speed forwarding among the 1VLAN.
The process and the up direction of down direction are similar, and the source port that just sends is different with destination interface.
In addition, (that is, under the situation of the data flow of other VLAN of needs support) can not only adopt the method for closing corresponding port MAC address learning function under the situation of user port and/or network port transmission vlan data bag.Further comprise: the source port of transmission vlan data bag writes the source MAC address information of vlan data bag in the mac address table of Ethernet switching chip in the user port and the network port.
Particularly; Realize in reality under the situation of vlan data bag transmission; Comprise following processing: the MAC address learning function of closing the corresponding Ethernet switching chip port of the user port and the network port; And be provided with, so that the source MAC of inundation packet and packet is delivered to the processing module of setting up with the form of message; The message count that can be dealt into CPU to exchange chip is carried out speed limit; The source MAC that processing module will be carried out the packet that IVL transmits according to the Hardware configuration of equipment writes the mac address table of Ethernet switching chip; And processing module is not carried out any operation according to equipment disposition to the source MAC of the packet that carries out 1: 1 VLAN and transmit, directly this message is abandoned.
Fig. 2 is the performed process chart of processing module under the above-mentioned situation (IVL and 1: 1 simultaneous situation of VLAN).
When packet carries out the exchange chip corresponding port; Be configured to transmit packet on this port; Simultaneously that packet is new MAC Address is delivered to CPU with the form of message; In a single day this source data packet MAC Address does not find in the mac address table of exchange chip, this MAC Address is fed to CPU.
After the corresponding software module of CPU is received this message, judge whether the VLAN ID of this inside, address need carry out 1: 1 VLAN:
Carry out 1: 1 VLAN if desired, then directly abandon this address message.
If need not carry out 1: 1 VLAN, then this MAC Address is write the mac address table of exchange chip.
After same packet carries out exchange chip again, the packet that carries out the IVL forwarding will find corresponding ports through searching mac address table like this; To will carry out 1: 1 VLAN according to Fig. 1 or Fig. 2 and transmit owing to still in the mac address table of exchange chip, can not find MAC Address and carry out 1: 1 VLAN forwarding packet.Having realized on same port, carrying out simultaneously 1: 1 VLAN and IVL like this transmits.
Method embodiment two
According to another embodiment of the present invention; A kind of VLAN and user binding on Ethernet switching chip, realized is provided; That is, realize the method for 1: 1 VLAN of TR, be used for situation user port and S-VLAN ID and client's VLAN ID (C-VLAN ID) binding.
As shown in Figure 3, comprise according to the method that on Ethernet switching chip, realizes TR 1: 1VLAN of present embodiment: step S302 user port is set adds VLAN with the corresponding network port, and the ID of VLAN is set to S-VLAN ID; Step S304, application flow classification policy on the port of the corresponding Ethernet switching chip of the port of the corresponding Ethernet switching chip of user port and the network port is to be provided with the C-VLAN ID corresponding with S-VLAN ID.
Wherein, after step S302, further comprise: the inundation bag speed limit function of closing Ethernet switching chip port in the VLAN (that is, above-mentioned the user port and the network port); Close the MAC address learning function of Ethernet switching chip port in the VLAN.That is, the inundation bag is not carried out speed limit, allow it to carry out surface speed forwarding.
Particularly, in step S304, when application flow classification policy on the port of the corresponding Ethernet switching chip of user port, policy action is for to be redirected to the network port with all packets; When application flow classification policy on the port of the corresponding Ethernet switching chip of the network port, policy action is for to be redirected to user port with all packets.
That is to say, application flow classification policy on the corresponding Ethernet switching chip corresponding port of user port, S-VLAN ID in the strategy matching packet and C-VLAN ID, policy action is for being redirected to all flows the corresponding network port;
Application flow classification policy on the corresponding Ethernet switching chip corresponding port of the network port, S-VLAN ID in the strategy matching packet and C-VLAN ID, policy action is for being redirected to all flows corresponding user port;
In addition; In VLAN under the situation of transmits data packets; This method can further comprise: the source port that sends packet in the user port and the network port sends the vlan data bag, and the S-VLAN ID and the C-VLAN ID of vlan data bag compared with the mutual corresponding S-VLAN ID and the C-VLAN ID of setting; Under the situation of result relatively, the vlan data bag is flooded to the another port in the user port and the network port for coupling.
Below will be with the example that is transmitted as of up direction, and combine Fig. 4, describe 1: the transmission of 1VLAN packet in above-mentioned VLAN.
As shown in Figure 4, after packet carried out the Ethernet switching chip user port, exchange chip can parse the source MAC of this packet, and the port numbers that this source MAC and packet are carried out exchange chip is delivered to the MAC address learning module of exchange chip; Exchange chip MAC address learning module obtains port numbers, because this port is set to not carry out MAC address learning, influencing exchange chip will can not learn this MAC Address.
Exchange chip is with the target MAC (Media Access Control) address of resolution data bag simultaneously; This MAC Address being delivered to the mac address table of exchange chip searches; Owing to closed the MAC address learning function of the corresponding network port at exchange chip; Therefore exchange chip will can not find the pairing port of this MAC Address, and this packet will carry out inundation in VLAN; Simultaneously because this VLAN possibly also possibly comprise other user ports except the user port and the network port; Therefore this packet forwarding result at this moment is the network port and other user port; But at this time forwarding behavior does not also take place, and only obtains one and transmits decision;
Afterwards, packet has got into the traffic classification policy module of exchange chip, and the traffic classification list item of coupling S-VLAN ID and C-VLAN ID has been disposed in policy module on this port, be redirected to the network port behind the relevant action; If packet and strategy matching, will transmit to determine only to be revised as and transmit to the network port, thereby realize 1: 1VLAN transmits.
And,, therefore can guarantee that packet is 1: can carry out surface speed forwarding among the 1VLAN owing to closed the inundation bag speed limit function of port.
The transmission course of down direction and the transmission course of up direction are similar, and just source port is different with destination interface.
In addition; Under the situation of user port and/or network port transmission vlan data bag; This method further comprises: the source port of transmission vlan data bag writes the source MAC address information of vlan data bag in the mac address table of Ethernet switching chip in the user port and the network port; Concrete processing procedure is as shown in Figure 2, and is identical with the processing under the situation of only binding S-VLAN ID.
In sum, by means of technical scheme of the present invention, can go up 1: 1 VLAN model realizing TR-101 at VLAN exchange chip (switch).
The above is merely the preferred embodiments of the present invention, is not limited to the present invention, and for a person skilled in the art, the present invention can have various changes and variation.All within spirit of the present invention and principle, any modification of being done, be equal to replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (9)

1. a method that on Ethernet switching chip, realizes VLAN and user binding is used for the VLAN sequence number with user port and service provider, that is, the situation that VLAN ID binds is characterized in that, comprising:
The said user port and the corresponding network port are added VLAN, and the ID of said VLAN is set to said service provider's VLAN ID, wherein, said VLAN comprises a user port and a network interface;
Close the MAC address learning function of the corresponding Ethernet switching chip port of said user port is corresponding in the said VLAN the Ethernet switching chip port and the said network port.
2. method according to claim 1 is characterized in that, further comprises:
Close the inundation bag speed limit function of said Ethernet switching chip port in the said VLAN.
3. method according to claim 2 is characterized in that, in said VLAN, under the situation of transmits data packets, further comprises:
The source port that sends said packet in the said user port and the said network port is flooded to the another port in the said user port and the said network port with said packet.
4. according to each described method in the claim 1 to 3, it is characterized in that, need not carry out further comprising under the situation of 1:1VLAN transmits data packets at the said user port and/or the said network port:
The source port of the said vlan data bag of transmission writes the source media access control address information of said vlan data bag in the address table of media access control of said Ethernet switching chip in the said user port and the said network port.
5. a method that on Ethernet switching chip, realizes VLAN and user binding is used for the VLAN sequence number with user port and service provider, that is, the situation that VLAN ID and client's VLAN ID binds is characterized in that, comprising:
Step S302 is provided with said user port and adds VLAN with the corresponding network port, and the ID of said VLAN is set to said service provider's VLAN ID, and wherein, said VLAN comprises a user port and a network interface;
Step S304; Application flow classification policy on the port of the corresponding Ethernet switching chip of the port of the corresponding Ethernet switching chip of said user port and the said network port; Close the MAC address learning function of said Ethernet switching chip port in the said VLAN, with the VLAN ID of setting with said service provider's VLAN ID corresponding client.
6. method according to claim 5 is characterized in that, after said step S302, further comprises:
Close the inundation bag speed limit function of said Ethernet switching chip port in the said VLAN.
7. method according to claim 5 is characterized in that, in said step S304, when application flow classification policy on the port of the corresponding Ethernet switching chip of said user port, policy action is for to be redirected to the said network port with all packets; When application flow classification policy on the port of the corresponding Ethernet switching chip of the said network port, policy action is for to be redirected to said user port with all packets.
8. according to each described method in the claim 5 to 7, it is characterized in that, in said VLAN, under the situation of transmits data packets, further comprise:
The source port that sends said packet in the said user port and the said network port sends said vlan data bag, and the service provider's of said vlan data bag VLAN ID and client's VLAN ID are compared with the mutual corresponding said service provider's of setting VLAN ID and said client's VLAN ID;
Under the situation of result relatively, said vlan data bag is flooded to the another port in the said user port and the said network port for coupling.
9. according to each described method in the claim 5 to 7, it is characterized in that, need not carry out further comprising under the situation of 1:1VLAN transmits data packets at the said user port and/or the said network port:
The source port of the said vlan data bag of transmission writes the source media access control address information of said vlan data bag in the address table of media access control of said Ethernet switching chip in the said user port and the said network port.
CN2008100070102A 2008-01-24 2008-01-24 Method for binding virtual LAN and user on Ethernet exchanging chip Active CN101222780B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2008100070102A CN101222780B (en) 2008-01-24 2008-01-24 Method for binding virtual LAN and user on Ethernet exchanging chip

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2008100070102A CN101222780B (en) 2008-01-24 2008-01-24 Method for binding virtual LAN and user on Ethernet exchanging chip

Publications (2)

Publication Number Publication Date
CN101222780A CN101222780A (en) 2008-07-16
CN101222780B true CN101222780B (en) 2012-01-11

Family

ID=39632298

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2008100070102A Active CN101222780B (en) 2008-01-24 2008-01-24 Method for binding virtual LAN and user on Ethernet exchanging chip

Country Status (1)

Country Link
CN (1) CN101222780B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101741664A (en) * 2009-12-21 2010-06-16 中兴通讯股份有限公司 Method and device for realizing Ethernet interface system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1514590A (en) * 2002-12-31 2004-07-21 深圳市中兴通讯股份有限公司上海第二 Sevice quality control/device and method based on virtual network marker
CN1691616A (en) * 2004-04-27 2005-11-02 华为技术有限公司 Method for implementing interconnection service based on network
CN1725731A (en) * 2005-05-19 2006-01-25 杭州华为三康技术有限公司 Method for controlling number of Layer2 Ethernet ring equipment MAC address learning
CN1838627A (en) * 2005-03-22 2006-09-27 杭州华为三康技术有限公司 Method for realizing QinQ access

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1514590A (en) * 2002-12-31 2004-07-21 深圳市中兴通讯股份有限公司上海第二 Sevice quality control/device and method based on virtual network marker
CN1691616A (en) * 2004-04-27 2005-11-02 华为技术有限公司 Method for implementing interconnection service based on network
CN1838627A (en) * 2005-03-22 2006-09-27 杭州华为三康技术有限公司 Method for realizing QinQ access
CN1725731A (en) * 2005-05-19 2006-01-25 杭州华为三康技术有限公司 Method for controlling number of Layer2 Ethernet ring equipment MAC address learning

Also Published As

Publication number Publication date
CN101222780A (en) 2008-07-16

Similar Documents

Publication Publication Date Title
CN100563190C (en) Realize the method and system of hierarchical virtual private switch service
CN102594664B (en) Flow forwarding method and device
CN101841451B (en) Virtual local area network-based speed limiting method and system for cloud hosts
CN100450080C (en) Method and apparatus for astringing two layer MAC address
CN101867520B (en) Method for exchanging data between board cards in distribution type system
CN101110745A (en) Method, device and system for engaging second layer network and third layer network
CN100461769C (en) Method of processing packet of virtual LAN for network switch
CN100473040C (en) VPN realizing method
CN100550814C (en) A kind of system and method based on two layer VPN foreign medium communication
CN101123510B (en) Method, switch and switching chip for port separation of switch
CN101635702B (en) Method for forwarding data packet using security strategy
CN100542127C (en) A kind of method of realizing group broadcasting based on multiservice transport platform
CN101257447A (en) Method, system and routing apparatus of load sharing
CN100407704C (en) Method of dynamically learning address on MAC layer
CN101325554B (en) Method for establishing route, forwarding chip and three-layer switchboard
CN101877671A (en) Sending method of mirror image message, switch chip and Ethernet router
CN101355516B (en) Method and system for providing service quality tactics for various virtual special network
CN102984070B (en) A kind of Ethernet is without the method for numbering Interface realization data retransmission
CN101299723B (en) Method and apparatus for managing label switching route tunnel information
CN101964719B (en) Based on the data processing method of master control board switching, line card and master control borad
CN100559772C (en) Mixed virtual private network system and backbone network edge apparatus and collocation method thereof
WO2011147342A1 (en) Method, equipment and system for exchanging routing information
CN101848186A (en) Three-layer plastic optical fiber Ethernet switch
CN100382541C (en) Virtual circuit exchanging method based on MAC studying
CN101340445B (en) Method and apparatus for providing service to MAC address duplicate customer

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant