CN100531120C - Switching device, method for realizing switching device and switching method - Google Patents

Switching device, method for realizing switching device and switching method Download PDF

Info

Publication number
CN100531120C
CN100531120C CNB2005100886282A CN200510088628A CN100531120C CN 100531120 C CN100531120 C CN 100531120C CN B2005100886282 A CNB2005100886282 A CN B2005100886282A CN 200510088628 A CN200510088628 A CN 200510088628A CN 100531120 C CN100531120 C CN 100531120C
Authority
CN
China
Prior art keywords
logic
plane
physical port
mac
frame
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.)
Expired - Fee Related
Application number
CNB2005100886282A
Other languages
Chinese (zh)
Other versions
CN1731767A (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.)
New H3C Technologies Co Ltd
Original Assignee
Hangzhou H3C Technologies Co Ltd
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 Hangzhou H3C Technologies Co Ltd filed Critical Hangzhou H3C Technologies Co Ltd
Priority to CNB2005100886282A priority Critical patent/CN100531120C/en
Publication of CN1731767A publication Critical patent/CN1731767A/en
Application granted granted Critical
Publication of CN100531120C publication Critical patent/CN100531120C/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

This invention discloses a exchange device and its method, wherein, the devices bears a plurality of logic exchange flat surface, each of which includes a plurality of physics ports, And bears a repeater and data buffer memory area corresponding to the ports, the number of physics ports of each flat is no less than line card number of line card slots. The method for actualizing above exchange device comprises: a, dividing the physics ports of the device into a plurality part of physics ports; b, the physics ports forming logic exchange flats, each of which bears a repeater and data buffer memory area. And the invention also provides an exchange method. The invention can divide the exchange chip into a plurality of logic exchange chips, and treat in different ways according to different business, so the technology can meet different market needs.

Description

The method and the switching method of a kind of switching equipment, realization switching equipment
Technical field
The present invention relates to a kind of communication technology, relate in particular to the method and the switching method of a kind of switching equipment, realization switching equipment.
Background technology
In order to satisfy the gradually expansion of people, can take higher bandwidth to information requirement.Therefore, each operator with broadband services as the means that branch out, increase income, enhance the competitiveness, this just requires equipment manufacturers to make the communication equipment that is fit to broadband services, wherein, adapt to switching equipment such as the switch of broadband services and router and corresponding switching method thereof and also arise at the historic moment, in network application, occupy more and more important position.
In the prior art, divide, occurred 5 kinds of switching technologies altogether: bus switch, annular exchange, Crossbar (crosspoint) exchange, shared buffer memory exchange and two layers of retransmission technique from the development of switching equipment.Now the most frequently used to be 3 kinds of technology of back, below it is briefly introduced.
1, Crossbar switching network technology
Crossbar (being CrossPoint) is called as corsspoint switch matrix or crossbar switching matrix, and it is the switching network technology of the present structure hicap of using always.As shown in Figure 1, the principle of this switching network structure is that the point-to-point that is connected to that circuit snaps into switching fabric connects, and realizes clog-free exchange at the Crossbar chip internal.Crossbar inside is input to each output from each all crossover node, as long as the corresponding crossover node of gating just can carry out exchanges data between corresponding input port and the output port.A plurality of input/output ports between can carry out exchanges data simultaneously.
2, shared buffer memory switching network technology
Shared buffer memory switching network technology also is a kind of common switching network technology.As shown in Figure 2, its basic principle is that the business of all input ports enters after the switching network, all is stored in the shared buffer, according to each professional destination address situation, is switched to corresponding output port then.
3, two layers of retransmission technique
The basic principle of two layers of retransmission technique is study and transmits.Be that example illustrates two layers of retransmission technique below with the Ethernet.As shown in the table, the frame head form of Frame is purpose MAC (medium access control) address+source MAC+VLAN (VLAN) information in Ethernet.
Purpose MAC Source MAC VLAN Quiet lotus CRC
Layer 2 switch at first carries out the study to source MAC after receiving a Frame on the port, and the result that will learn writes in following the transmitting.
Physical port MAC Address VLAN
1 00-10-5C-FE-DA-69 100
2 01-56-7A-D2-E3-F5 101
3 20-54-76-8A-D5-E9 102
When other port receives a target MAC (Media Access Control) address for the Frame of this source MAC, this Frame can be sent from the pairing port of this source MAC like this.
Yet, because in the reciprocal exchange of business of reality, there is various business, as unicast service, multicast service, video traffic and speech business, because these professional characteristic differences, exchange as partial service has scheduling, and the exchange of partial service is scheduling not, utilizes above-mentioned existing switching technology to handle respectively different business like this.Therefore, make miscellaneous service certainly exist influence each other.This address this problem, the switching equipment of prior art need be divided into a plurality of exchange planes handle so that different business is carried out different exchange.
Summary of the invention
At the above-mentioned defective of prior art, the purpose of this invention is to provide the method and the switching method of a kind of switching equipment, realization switching equipment, can realize many logic planes.
The present invention is achieved through the following technical solutions, the invention provides a kind of switch, described switch has a plurality of logic exchange planes, described logic exchange plane is divided at the physical port of two layers of forwarding chip, each logic exchange plane comprises a plurality of physical ports, described switch also has MAC to be transmitted, and this MAC forwarding-table item comprises at least logic plane number, virtual LAN VLAN information and address number;
Described switch is used for obtaining logic plane number and vlan information according to the physical port of going into of Frame, number acquisition MAC corresponding with it transmits and the data buffering memory block according to the logic plane that obtains, Frame is put into and the logic plane number corresponding data buffering memory block that is obtained, and in transmitting, obtain out physical port with the logic plane that is obtained number corresponding MAC according to target MAC (Media Access Control) address, the Frame in the data buffering memory block is sent from the physical port that goes out that is obtained.
The physical port number on each plane is more than or equal to the ply-yarn drill number of slots.
The present invention also provides a kind of switching method that is applied in the described switch of claim 1, comprising:
A, obtain logic exchange plane number and vlan information according to the physical port of going into of Frame;
B, number obtain MAC corresponding according to the logic plane that obtains and transmit and the data buffering memory block, in the logic plane number corresponding data buffering memory block that Frame is stored in and is obtained with it;
C, in transmitting, obtain out physical port with the logic plane that is obtained number corresponding MAC according to the purpose Media Access Control address of described Frame;
D, the described Frame in the described data buffering memory block is sent from the physical port that goes out that is obtained.
Described purpose Media Access Control address according to Frame obtains out physical port and comprises in transmitting with the logic plane that is obtained number corresponding MAC: obtain out physical port according to purpose Media Access Control address, vlan information and the described logic plane of Frame number by searching to transmit with described logic plane number corresponding MAC.
Described switching method also comprises: the address learning process.
Described address learning process comprises:
The physical port of going into according to Frame obtains logic plane number;
Obtain the source Media Access Control address and the vlan information of Frame according to the content of Frame;
Whether search successively in transmitting with the corresponding MAC of logic exchange plane has and source Media Access Control address and the corresponding record of vlan information, if have, finish this learning process, otherwise, the physical port of going into of source Media Access Control address, logic plane number, vlan information and Frame is write during MAC transmits as a record.
According to the present invention, by exchange chip being divided into a plurality of logic exchange chips, can carrying out different exchanges at different business and handle, therefore, technology of the present invention can satisfy the different demands in market better.
Description of drawings
Fig. 1 shows the structural representation of the Crossbar switching network of prior art;
Fig. 2 shows the structural representation of the shared buffer memory switching network of prior art;
Fig. 3 shows the flow chart of switching method of the present invention.
Embodiment
Understand and realization the present invention the existing embodiments of the invention of describing in conjunction with the accompanying drawings for the ease of persons skilled in the art.
Basic thought of the present invention is: two layers of forwarding chip are divided into two layers of forwarding chip of a plurality of logics according to physical port, and two layers of forwarding chip of described logic are called exchange plane.
According to basic thought of the present invention, the invention provides a kind of switch, described switch comprises a plurality of part physical ports, wherein said part physical port is formed an exchange plane.That is to say that switch of the present invention comprises a plurality of exchange planes.
Each logic exchange plane has its corresponding transmitting and the data buffering memory block.Switching equipment can utilize transmitting with the data buffering memory block of each exchange plane that Frame is transmitted.The structure of transmitting will be discussed in more detail below.
The present invention also provides a kind of method that realizes above-mentioned switch, comprising: a plurality of physical ports of two layers of exchange chip are divided into a plurality of part physical ports; Described each part physical port is formed an exchange plane; For being provided with, transmits and the data buffering memory block each exchange plane.
Because the ply-yarn drill number of slots order of switching equipment is generally less, as 3/6/8/12 etc., and the physical port number of switching net is many, as 64/80 etc.According to the present invention, the number of physical port is exactly the logic exchange number of planes that the switching network chip can be supported divided by number of slots, and as concerning 6 groove position systems, the switching net of a two-way 160G of monolithic can provide 64/6=16 switching network plane in principle.
Preferably, the physical port data of each exchange plane equate with the ply-yarn drill number of slots.Certainly, the physical port number of each exchange plane also can be greater than number of slots, but can not be less than the number of slots of needs exchange.
For the independence that guarantees different switching networks plane and unimpeded, will guarantee the exclusivity of resource to different switching network planes, such as each switching network plane there are separately two-layer retransmitting table, the professional buffer-stored of switching network space, switching network service queue, scheduler etc.Described transmit comprise vlan information, MAC Address and with MAC Address corresponding port number.Suppose that now exchange chip has 8 ports, switching equipment has 4 groove positions, according to the present invention, exchange chip can be divided into 2 logic planes, and table 1 shows of the present invention transmitting.
Table 1 is transmitted
Logic exchange plane number Port numbers Vlan information MAC Address
1 1 1 00-10-5C-FE-DA-69
1 2 1 01-10-5C-FE-DA-69
1 3 2 02-10-5C-FE-DA-69
1 4 2 03-10-5C-FE-DA-69
2 5 1 04-10-5C-FE-DA-69
2 6 1 05-10-5C-FE-DA-69
2 7 2 06-10-5C-FE-DA-69
2 8 2 07-10-5C-FE-DA-69
As can be seen from the above table, because exchange plane is divided according to physical port, so the relation between physical port and the exchange plane is specific, promptly each exchange plane comprises specific physical port, for given physical port, also can obtain the exchange plane that it belongs to.Therefore, according to the going into physical port and can obtain two information of Frame, one is the vlan information (this information is pre-configured) of port, and one is the logic plane information of port.
Vlan information is two different information with exchange plane information.As shown in table 1, to suppose two layers of forwarding chip of 8 10GE mouths are divided into two logic planes, port one~4 are logic plane 1, and port 5~8 is a logic plane 2, and the physical port between logic plane 1 and the logic plane 2 can not intercommunication so.And between 4 physical ports that belong within the logic plane, still can be divided into different vlan ports, thereby isolate the business between the different VLAN according to going into physical port.Promptly need intercommunication between two physical ports, so must logic plane number all identical with VLAN ID number.From this example as can be seen, according to the going into logic plane that physical port obtains number and be two diverse information VLAN ID number of Layer 2 data frame, both can exist simultaneously.
The present invention also provides a kind of switching method, as shown in Figure 3, describes switching method of the present invention below in detail.
In step 1, obtain logic plane number and vlan information according to the physical port of going into of Frame.
In step 2, number obtain according to the logic plane that obtains at first that its corresponding MAC transmits and data buffering corresponding with it memory block.
In step 3, Frame is put into and the corresponding data buffering of the logic exchange plane memory block that is obtained.
In step 4, in transmitting, obtain out physical port with the logic plane that is obtained is corresponding according to target MAC (Media Access Control) address.Perhaps according to target MAC (Media Access Control) address, the VLAN id information of Frame and the logic plane that obtained number by searching and this logic plane number corresponding transmitting to obtain out physical port.
In step 5, the Frame in the data buffering memory block is sent from the physical port that goes out that is obtained.
Switching method of the present invention also comprises the address learning process, in the address learning process, need number add that source MAC learns according to logic plane, or learns according to logic plane number, source MAC and vlan information.
In learning process, to the Frame that receives, the physical port of going into according to Frame obtains logic plane number, obtain the source MAC and the vlan information of Frame according to the content of Frame, whether search successively in transmitting with the logic exchange plane is corresponding has and source MAC and the corresponding record of vlan information, if in this address table, found corresponding record, finish this learning process, otherwise, then add a record in MAC transmits, this recorded content comprises source MAC, logic plane number, vlan information and physical port number.
The present invention also provides a kind of many exchange planes implementation method of switch, at first switch is divided at least two exchange planes according to port, and each exchange plane comprises two ports at least; Set up the forwarding inquiries rule that adds the address based on exchange plane then, so that Frame is transmitted.In order to set up the forwarding inquiries rule, can be provided with and transmit, this forwarding-table item comprises logic plane numbering, address number and port numbers, obtain logic plane numbering, address number according to the port numbers of transmitting then, can transmit data according to the logic plane numbering, the address number that obtain at last.
Therefore, according to the present invention,, different forwarding destination interfaces can be arranged still even can guarantee two duplicate Frames on two logic planes.
Should be noted that, only be above with the MAC Address example invention has been described, can certainly be applicable to the situation of IP address.That is to say that the present invention is not only applicable to switch, and be applicable to the network equipments such as router.
Should be noted that, can be respectively with the data buffering memory block of each logic exchange plane and transmit a synthetic data buffer storage and one transmit, at this moment need this data buffering memory block is divided into the buffer storage of a plurality of logics, make the buffer storage of a plurality of logics corresponding with the logic exchange plane, in addition, one or more shared buffer storages also can be used in the data buffering memory block of each logic exchange plane; In transmitting, be provided with the information of logic exchange plane, make it corresponding with physical port.Therefore, can realize the isolation of the business of each Different Logic exchange plane.
According to the present invention, by exchange chip being divided into a plurality of logic exchange chips, can carrying out different exchanges at different business and handle, therefore, technology of the present invention can satisfy the different demands in market better.
A plurality of logic exchange plane of the present invention can be applied on the fixed length switching network, also can be applied on the non-fixed length switching network, and many planes ability of different switching networks is provided.Therefore can satisfy on the different switching networks of different products such as switch and router, also can be applied in the interface that piles up of stack equipment, pile up bandwidth and logic stacked channels the different business of piling up is provided corresponding Different Logic.
Though described the present invention by embodiment, those of ordinary skills know, without departing from the spirit and substance in the present invention, just can make the present invention that many distortion and variation are arranged, and scope of the present invention is limited to the appended claims.

Claims (6)

1, a kind of switch, it is characterized in that, described switch has a plurality of logic exchange planes, described logic exchange plane is divided at the physical port of two layers of forwarding chip, each logic exchange plane comprises a plurality of physical ports, described switch also has MAC to be transmitted, and this MAC forwarding-table item comprises at least logic plane number, virtual LAN VLAN information and address number;
Described switch is used for obtaining logic plane number and vlan information according to the physical port of going into of Frame, number acquisition MAC corresponding with it transmits and the data buffering memory block according to the logic plane that obtains, Frame is put into and the logic plane number corresponding data buffering memory block that is obtained, and in transmitting, obtain out physical port with the logic plane that is obtained number corresponding MAC according to target MAC (Media Access Control) address, the described Frame in the described data buffering memory block is sent from the physical port that goes out that is obtained.
2, switch according to claim 1 is characterized in that, the physical port number on each plane is more than or equal to the ply-yarn drill number of slots.
3, a kind of switching method that is applied in the described switch of claim 1 is characterized in that, comprising:
A, obtain logic plane number and vlan information according to the physical port of going into of Frame;
B, number obtain MAC corresponding according to the logic plane that obtains and transmit and the data buffering memory block, in the logic plane number corresponding data buffering memory block that described Frame is stored in and is obtained with it;
C, in transmitting, obtain out physical port with the logic plane that is obtained number corresponding MAC according to the purpose Media Access Control address of described Frame;
D, the described Frame in the described data buffering memory block is sent from the physical port that goes out that is obtained.
4, switching method according to claim 3, it is characterized in that described purpose Media Access Control address according to Frame obtains out physical port and comprises in transmitting with the logic plane that is obtained number corresponding MAC: obtain out physical port by searching to transmit with described logic plane number corresponding MAC according to purpose Media Access Control address, vlan information and the described logic plane of described Frame number.
5, switching method according to claim 3 is characterized in that, described switching method also comprises: the address learning process.
6, switching method according to claim 5 is characterized in that, described address learning process comprises:
The physical port of going into according to described Frame obtains logic plane number;
Obtain the source Media Access Control address and the vlan information of Frame according to the content of described Frame;
Whether search successively in transmitting with the corresponding MAC of logic exchange plane has and source Media Access Control address and the corresponding record of vlan information, if have, finish this learning process, otherwise, the physical port of going into of source Media Access Control address, logic plane number, vlan information and described Frame is write during MAC transmits as a record.
CNB2005100886282A 2005-07-29 2005-07-29 Switching device, method for realizing switching device and switching method Expired - Fee Related CN100531120C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2005100886282A CN100531120C (en) 2005-07-29 2005-07-29 Switching device, method for realizing switching device and switching method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2005100886282A CN100531120C (en) 2005-07-29 2005-07-29 Switching device, method for realizing switching device and switching method

Publications (2)

Publication Number Publication Date
CN1731767A CN1731767A (en) 2006-02-08
CN100531120C true CN100531120C (en) 2009-08-19

Family

ID=35964069

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2005100886282A Expired - Fee Related CN100531120C (en) 2005-07-29 2005-07-29 Switching device, method for realizing switching device and switching method

Country Status (1)

Country Link
CN (1) CN100531120C (en)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080112400A1 (en) * 2006-11-15 2008-05-15 Futurewei Technologies, Inc. System for Providing Both Traditional and Traffic Engineering Enabled Services
CN101212822B (en) * 2006-12-28 2010-12-01 杭州华三通信技术有限公司 Ethernet switching method and device for synchronous time division switching in Ethernet
CN101212408B (en) * 2006-12-29 2011-05-11 中兴通讯股份有限公司 Load-sharing switching system and port-level protective switching method
CN101272338B (en) * 2008-05-14 2011-02-02 杭州华三通信技术有限公司 Method for port band width configuration on non-line speed interface plate and non-line speed interface plate
CN101299721B (en) * 2008-06-19 2012-04-18 杭州华三通信技术有限公司 Method for switching message of switching network, and switching device
CN105812290B (en) * 2016-03-10 2018-12-07 中国电子科技集团公司第五十四研究所 A kind of method for interchanging data based on more exchange planes
CN108462660B (en) * 2016-12-12 2020-12-29 中国航空工业集团公司西安航空计算技术研究所 Port remapping circuit and method for network switching chip
CN117938783B (en) * 2023-12-14 2024-08-27 无锡众星微系统技术有限公司 Partition route sharing method and device of switching chip

Also Published As

Publication number Publication date
CN1731767A (en) 2006-02-08

Similar Documents

Publication Publication Date Title
CN100531120C (en) Switching device, method for realizing switching device and switching method
CN102355377B (en) Entire test system and method for Ethernet switch
CN101867520B (en) Method for exchanging data between board cards in distribution type system
US7756147B2 (en) VLAN-based data packet transmission and ethernet bridge device
US8488604B2 (en) Method, device and system for forwarding multicast packets
US6212165B1 (en) Apparatus for and method of allocating a shared resource among multiple ports
CN100450080C (en) Method and apparatus for astringing two layer MAC address
CN100568853C (en) Layer 2 forwarding method and forwarding unit
CN105991445A (en) Link aggregation group setting method and device
CN100407704C (en) Method of dynamically learning address on MAC layer
CN104869081B (en) MESSAGE EXCHANGE processing method, business board and internet exchange system
US9935779B1 (en) Methods and apparatus for using virtual local area networks in a switch fabric
US20060007917A1 (en) Frame transfer method and edge switch
CN1832443A (en) Method for reducing VPN network arranging
CN100358322C (en) Method of multilayer VLAN switching
CN107018093A (en) A kind of communication between plates apparatus and method in distributed apparatus
CN1937782B (en) Frame device and its message transmitting method
CN100461734C (en) Communication device and implementation method with the LAN/WAN port switching function
CN101052011B (en) MPLS label distribution method, system and device
CN101291294B (en) Biprimary controlled switching apparatus, method and device for distributing retransmitting list
CN103152276A (en) Port configuration method and Ethernet switch
CN103595639B (en) A kind of multicast forwarding list item processing method and processing device
CN101453401A (en) Ethernet bridge equipment, MAC address learning method and data packet transmission method
CN111884922A (en) Local forwarding system for cross-device link aggregation
CN107342958A (en) Distributed communication equipment and interplate communication method

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
CP03 Change of name, title or address
CP03 Change of name, title or address

Address after: 310052 Binjiang District Changhe Road, Zhejiang, China, No. 466, No.

Patentee after: NEW H3C TECHNOLOGIES Co.,Ltd.

Address before: 310053, Zhejiang hi tech Industrial Development Zone, Hangzhou hi tech Industrial Park, No. six and No. 310 HUAWEI Hangzhou production base

Patentee before: HANGZHOU H3C TECHNOLOGIES Co.,Ltd.

CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20090819