CN100563215C - A kind of packet routing switch device and method thereof - Google Patents

A kind of packet routing switch device and method thereof Download PDF

Info

Publication number
CN100563215C
CN100563215C CNB2007101665479A CN200710166547A CN100563215C CN 100563215 C CN100563215 C CN 100563215C CN B2007101665479 A CNB2007101665479 A CN B2007101665479A CN 200710166547 A CN200710166547 A CN 200710166547A CN 100563215 C CN100563215 C CN 100563215C
Authority
CN
China
Prior art keywords
message
area network
wide area
mapping relations
network interface
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
CNB2007101665479A
Other languages
Chinese (zh)
Other versions
CN101159674A (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.)
Fujian Star Net Communication Co Ltd
Original Assignee
Fujian Star Net Communication 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 Fujian Star Net Communication Co Ltd filed Critical Fujian Star Net Communication Co Ltd
Priority to CNB2007101665479A priority Critical patent/CN100563215C/en
Publication of CN101159674A publication Critical patent/CN101159674A/en
Application granted granted Critical
Publication of CN100563215C publication Critical patent/CN100563215C/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The present invention relates to the network communications technology, relate in particular to the technology of message routing, exchange in wan communication.A kind of packet routing switch device comprises: host CPU, three layers of crosspoint and wide-area network sub-card; Host CPU obtains and safeguards first mapping relations, second mapping relations, and sends to three layers of crosspoint, wide-area network sub-card respectively; Three layers of crosspoint are searched first mapping relations after receiving message, obtain VPI information, after adding this VPI information to message, message are mail to wide-area network sub-card; Wide-area network sub-card is searched second mapping relations after receiving message, obtains corresponding Wide Area Network interface Virtual Channel sequence number, and message is mail to corresponding Wide Area Network interface Virtual Channel.In addition, the present invention also comprises a kind of message routing switching method.The present invention has accelerated the speed that message is transmitted owing to adopt wide-area network sub-card to assist three layers of exchange chip to replace host CPU to finish the technology of wide area network message forwarding work.

Description

A kind of packet routing switch device and method thereof
Technical field
The present invention relates to the network communications technology, relate in particular to the technology of message routing, exchange in wan communication.
Background technology
OSI (Open Systems Interconnection, Open System Interconnection) is defined as seven layers with communication process, is respectively physical layer, data link layer, and network layer, transport layer, session layer, presentation layer and application layer, each layer all is self-existent.These the seven layers task division with transmission information between Net-connected computer are seven littler, as to be easier to handle task groups.Each task or task groups are assigned to each osi layer, and the task of being assigned to each layer can be carried out independently.End-to-end communication between four layers of basic handling data source of layer 7 to the and the data destination, and the 3rd layer of communication to ground floor basic handling LA Management Room.
Wherein, the second layer, be that program, the encapsulated data packet that the data link layer defining operation communicates to connect is Frame, monitoring and the error of transmission of correction of data bag;
The 3rd layer, be network layer define grid equipment room how to transmit data, according to unique network appliance address route data packets, provide stream and congested control to prevent the loss of Internet resources.
Data are packaged into packet in Network Transmission, and the data of transmitting in wide area network or ethernet network at present generally are packaged into the packet of IP form, are called the IP packet, are referred to herein as message.The IP data packet format comprises as shown in Figure 1: two layer message head, IP heading, IP message content.If the IP packet is propagated in wide area network, then the two layer message head adopts wide area network two layer message head, if propagate in Ethernet, then the two layer message head adopts Ethernet two layer message head.
Ethernet two layer message head is shown in Fig. 2 a and Fig. 2 b.Wherein Fig. 2 a is not for being with VLAN (VirtualLocal Area Network, VLAN) number Ethernet two layer message head; Fig. 2 b is the Ethernet two layer message head of band vlan number.12 bytes behind the SOFD (Start of Frame Delimiter, SFD) identify the destination node MAC Address of receiving data frames respectively and send source node MAC (Media Access Control, the medium access control) address of Frame.In the Ethernet two layer message head of the band vlan number shown in Fig. 2 b, after the source node MAC Address 802.1Q frame head of 4 bytes, be the length or the type field of original Ethernet afterwards.In 4 bytes of 802.1Q frame head, comprised vlan number, the different different route network segments of vlan number representative.
When in wide area network, communicating, the time-multiplexed way of general employing, a wan communication circuit is divided into the experimental process channel by the time, and each subchannel is called VC (Virtual Channel, Virtual Channel), each subchannel can be distributed to different wan users.
VC comprises PVC (Permanent Virtual Connect, Permanent Virtual Channel) and SVC (SwitchingVirtual Connect, switched virtual channel), and PVC exists always, and SVC only just consults in the needs communication.On the Wide Area Network interface, a plurality of VC can be arranged.Therefore, Wide Area Network interface and VC are the relations more than 1 pair.What use on Wide Area Network interface usually at present is the PVC passage.Virtual Channel is represented a Virtual Channel of a DLCI number corresponding Wide Area Network interface with DLCI (Data Link Connection Identifier, data link connection identifier) in the two layer message form.Two layers of header format of wide area network as shown in Figure 3, DLCI wherein number is 10 bit long, can be between 0-1023 value, other is various controls, sign position.
IP heading form in the IP packet as shown in Figure 4, comprising sending the IP address of data source nodes and receiving the IP address of the destination node of data.
In the transmission of OSI Layer 2 data link layer realization IP packet, function of exchange is mainly finished by Layer 2 switch.Layer 2 switch is the equipment of data link layer, and the mac address information in can read data packet also carries out the exchange of IP packet according to MAC Address.
There is an address table Layer 2 switch inside, and this address table has been indicated the corresponding relation of MAC Address and switch ports themselves.When switch is received a packet from certain port, read the source MAC in the two layer message head, determine the port that the machine of transmission packet connects according to source MAC, read the target MAC (Media Access Control) address in the two layer message head, and in address table, search corresponding ports according to target MAC (Media Access Control) address, if have and the target MAC (Media Access Control) address corresponding port in the table, then packet directly sent to this port; If in table, do not have with the target MAC (Media Access Control) address corresponding port then packet to all port broadcasting, after the purpose machine receives broadcast packet, when source machine is responded, Layer 2 switch may learn the MAC Address of purpose machine and the corresponding relation between the port, then no longer needs to be broadcast to all of the port when transmitting the packet of this target MAC (Media Access Control) address next time.
Because Layer 2 switch generally has very wide switching bus bandwidth, so can carry out exchanges data for a lot of ports simultaneously.If Layer 2 switch has N port, the bandwidth of each port is M, and the Layer 2 switch bus bandwidth is more than or equal to N * M, and the port of this switch just can reach the transfer capability of maximum rate so.
Route, function of exchange that OSI three-layer network layer is realized are mainly finished by router or three-tier switch.The structure of three-tier switch comprises as shown in Figure 5: CPU and three layers of exchange chip.Wherein CPU is equivalent to the management plane task of the control plane and the whole switch system of the main deal with data of router, and the renewal of ARP (Address Resolution Protocol, address resolution protocol) addressing, routing iinformation, routing table maintenance, route are calculated, route function such as determine.Three layers of exchange chip then are responsible for the work on exchange data plane, mainly are the exchanges of handling three-tier message, also can carry out the two layer message exchange.
Three-tier switch mainly has the function of ARP addressing function and quick exchange data.Message forwarding realizes by three layers of exchange chip of hardware, so three-tier switch also has higher forwarding speed, but three-tier switch is transmitted and need be undertaken by the host CPU of three-tier switch for the message of Wide Area Network interface, and can not directly message be forwarded to Wide Area Network interface, perhaps receive message from Wide Area Network interface.So when realizing that the wide area network message is transmitted, over-burden to cause the host CPU of three-tier switch, causes forward efficiency low, bottleneck occurs.
The ARP addressing principle as shown in Figure 6.When host A will be communicated by letter with host B, host A was checked the MAC Address whether host B is arranged in its arp cache earlier.If no, host A sends an ARP request broadcast packet, is comprising it in this bag and is desiring the IP address of the main frame of communication, just the IP address of host B with it.After host B is received this broadcasting, utilize the arp response bag to pass to host A the MAC Address of oneself, and upgrade the arp cache of oneself, and the corresponding preservation with MAC Address in the IP address of the host A in the broadcast packet is got up, in order to using.Host A obtains can communicating by letter with host B after the MAC Address of host B, and simultaneously, host A is also with in the corresponding arp cache that is kept at oneself with MAC Address in the IP address of host B.
If two machines are in same subnet, promptly during the not shared same gateway of two machines, to communicate by letter with purpose machine C as distribution of machine A, distribution of machine A will send the ARP bag to default gateway, and the IP address of default gateway is provided with in systems soft ware.The IP address that in fact this IP address is exactly corresponding three-tier switch.So when distribution of machine A broadcasts out an ARP request to the IP address of default gateway,, then reply the MAC Address of C to distribution of machine A if three-tier switch has obtained the MAC Address of purpose machine C in communication process in the past; Otherwise three-tier switch is according to ARP request of routing iinformation broadcasting, and purpose machine C obtains replying its MAC Address to three-tier switch after this ARP asks for instructions, and three-tier switch is preserved this address and replied to distribution of machine A.
After, when carrying out between A and the C message again when transmitting, will be directly with the MAC Address encapsulation of purpose machine C, the message repeating process is all given second layer exchange and is handled, and information is able to exchange at a high speed.So realized a routing, repeatedly exchange.
Three layer-network layer the operation of router in OSI seven layer network models, router interior has a routing table, and this routing table has been indicated the routed path of message.Router is received a packet from certain port, at first (unpacking) removed in the packet header of link layer, read purpose IP address, search routing table then, if can determine the routed path of this message, this packet is forwarded after then adding packet header (packing) of link layer; If can not determine the routed path of this message, then return the information of one " this destination address can not arrive ", and this packet is lost to the source address of this message.
Route technology is made up of decision optimal path and two activities the most basic of transmits data packets, illustrates that below by a simple routing table how carrying out route determines, and is as shown in table 1 below:
Table 1
Purpose IP address Gateway Sign Interface
140.252.13.65 140.252.13.35 UGH emd0
127.0.0.1 127.0.0.1 UH lo0
default 140.252.13.33 UG emd0
140.252.13.32 140.252.13.34 U emd0
According to table 1, when router is received an IP packet,, in table 1, search corresponding interface with the purpose IP address of this IP packet and the purpose IP matching addresses in the table, by the interface of this machine, mail to corresponding gateway then.
In this routing table, 127.0.0.1 is a loopback interface, and name is always lo0.And default is a default route, and when can't search match options, the IP packet all mails to this place.If there is not occurrence in the routing table, also give tacit consent to item, return a mistake will for the application program that sends packet, " the unreachable mistake of main frame " or " the unreachable mistake of network ", and abandon this packet.
Communication mutually between the router, and can be by transmitting dissimilar lastest imformation maintenance routing tables separately.By analyzing the routing update information that other router sends, router can be grasped whole topology of networks.Link State Advertisement is another information of transmitting between router, the Link State of information sender can be notified to other router timely.
In network layer, router is also born the task that the message between multiple Wide Area Network interface and Ethernet interface is transmitted except having routing function.Router realizes that the message between multiple Wide Area Network interface and Ethernet interface transmits schematic diagram as shown in Figure 7 in the prior art.E-Packet in order to be implemented between multiple Wide Area Network interface and Ethernet interface, the CPU of router will finish route querying work earlier, changes the two layer message head then message is forwarded to the distinct interface place.
Because in the three-tier switch implementation of prior art, between wide area network multiple interfaces and Ethernet interface, E-Packet, the advanced walking along the street of host CPU that all needs three-tier switch is by searching work, and then carry out interface forwarding work, cause that the host CPU task is heavy, efficient is low, become the bottleneck in the forward-path.Therefore the high-speed interface on the multiple router all can not reach surface speed forwarding, such as ATM (Asynchronous Transfer Mode, asynchronous transfer mode), Pos (Packet over SONET is by synchronous optical network Data transmission packet network) high-speed interface, all be difficult to reach the speed of 155M.
Summary of the invention
The embodiment of the invention provides a kind of route device and method thereof, is implemented in the purpose of transmitting data message between wide area network multiple interfaces and Ethernet interface fast.
A kind of packet routing switch device comprises:
Host CPU, three layers of crosspoint and wide-area network sub-card; Described host CPU is used for obtaining and safeguarding first mapping relations, and described first mapping relations are sent to described three layers of crosspoint, described host CPU also is used for obtaining and safeguarding second mapping relations, and described second mapping relations are sent to described wide-area network sub-card; Described first mapping relations are the mapping relations of purpose IP address and VPI information, described second mapping relations are the mapping relations of VPI information and Wide Area Network interface Virtual Channel sequence number, the sequence number of the Wide Area Network interface Virtual Channel that described VPI information will mail to corresponding to the message of purpose IP address;
Described three layers of crosspoint are used for after receiving the message that mails to Wide Area Network interface, purpose IP address search first mapping relations according to message, obtain the VPI information of this message purpose IP address correspondence, after adding described VPI information to described message, described message is mail to described wide-area network sub-card;
Described wide-area network sub-card is used for VPI information searching second mapping relations of carrying according to message after receiving described message, obtain the Wide Area Network interface Virtual Channel sequence number of this VPI information correspondence, when the Ethernet two layer message with described message is changed to wide area network two layer message head first watch, described Wide Area Network interface Virtual Channel sequence number is added in the described wide area network two layer message head, and the message that will change heading mails to the Wide Area Network interface Virtual Channel of Wide Area Network interface Virtual Channel sequence number correspondence.
A kind of three layers of crosspoint comprise:
Mapping relations obtain module, are used to obtain the mapping relations of purpose IP address and VPI information;
The message receiver module is used to receive message;
The message determination module, being used to determine the message that described message receiver module receives is the message that mails to Wide Area Network interface;
VPI information is added module, be used for behind the message that mails to wide area network that the described message determination module of reception is determined, obtain the purpose IP address of module 905 acquisitions and the mapping relations of VPI information according to the described mapping relations of message purpose IP address search, obtain the VPI information of described message purpose IP address correspondence, and this VPI information is added in this message.
Forwarding module is used for that VPI information is added the message that module added VPI information and mails to wide-area network sub-card.
A kind of wide-area network sub-card comprises:
Subcard CPU is used to obtain the mapping relations of VPI information and Wide Area Network interface Virtual Channel sequence number;
The subcard Ethernet interface is used to receive the message that three layers of crosspoint send;
Wan switch module and Wide Area Network interface, described wan switch module is used for the mapping relations according to described subcard CPU acquisition, determine the Wide Area Network interface Virtual Channel sequence number of the VPI information correspondence of carrying in the message that described subcard Ethernet interface receives, when the Ethernet two layer message with described message is changed to wide area network two layer message head first watch, the sequence number of the Virtual Channel of the Wide Area Network interface of the VPI information correspondence of described message is added in the described wide area network two layer message head, and the message that will change heading mails to the Wide Area Network interface Virtual Channel of determining.
A kind of message routing switching method comprises:
Host CPU obtains and safeguards first mapping relations, and described first mapping relations are sent to three layers of crosspoint; Described host CPU also obtains and safeguards second mapping relations, and described second mapping relations are sent to wide-area network sub-card; Described first mapping relations are the mapping relations of purpose IP address and VPI information, described second mapping relations are the mapping relations of VPI information and Wide Area Network interface Virtual Channel sequence number, the sequence number of the Wide Area Network interface Virtual Channel that described VPI information will mail to corresponding to the message of purpose IP address;
Described three layers of crosspoint are after receiving the message that mails to Wide Area Network interface, purpose IP address search first mapping relations according to message, obtain the VPI information of this message purpose IP address correspondence, after adding described VPI information to described message, described message is mail to described wide-area network sub-card;
VPI information searching second mapping relations that described wide-area network sub-card is carried in according to message after receiving described message, obtain the Wide Area Network interface Virtual Channel sequence number of this VPI information correspondence, when the Ethernet two layer message with described message is changed to wide area network two layer message head first watch, described Wide Area Network interface Virtual Channel sequence number is added in the described wide area network two layer message head, and the message that will change heading mails to the Wide Area Network interface Virtual Channel of Wide Area Network interface Virtual Channel sequence number correspondence.
The embodiment of the invention has discharged the resource of host CPU owing to adopt three layers of crosspoint to replace host CPU to finish the technology of the work of searching message routing, has solved the bottleneck problem of host CPU, has accelerated the route speed of message.
The embodiment of the invention is owing to adopt wide-area network sub-card to assist three layers of crosspoint to replace host CPU to finish the technology of message forwarding work, discharged the resource of host CPU, solved the bottleneck problem of host CPU, accelerated the speed that message is transmitted, especially for the packet forwarding speed of Wide Area Network interface.
Description of drawings
Fig. 1 is the IP packet encapsulation form schematic diagram of prior art;
Fig. 2 a be prior art not with the Ethernet two layer message head encapsulation format schematic diagram of vlan number;
Fig. 2 b is the Ethernet two layer message head encapsulation format schematic diagram of the band vlan number of prior art;
Fig. 3 is the wide area network two layer message head encapsulation format schematic diagram of prior art;
Fig. 4 is the IP heading figure of prior art;
Fig. 5 is the three-tier switch structural representation of prior art;
Fig. 6 is the ARP addressing principle schematic diagram of prior art;
Fig. 7 is that message is transmitted schematic diagram between the router multiple interfaces of prior art;
Fig. 8 is the route switching system architecture diagram of the embodiment of the invention;
Fig. 9 is the internal structure block diagram of three layers of crosspoint of the embodiment of the invention;
Figure 10 is the internal structure block diagram of the wide-area network sub-card of the embodiment of the invention;
Figure 11 is the switching method flow chart that E-Packets to Wide Area Network interface of the embodiment of the invention;
Figure 12 is the switching method flow chart from Wide Area Network interface reception message of the embodiment of the invention.
Embodiment
The through street that the embodiment of the invention provides by, the method that E-Packets is, increases by three layers of crosspoint, replaces host CPU to finish the routing table lookup work of message; Increase wide-area network sub-card, and three layers of crosspoint replaces host CPU to realize message forwarding work between multiple Wide Area Network interface and Ethernet interface jointly, thereby solved the bottleneck problem of host CPU, reached and between Wide Area Network interface and Ethernet interface, finish the purpose that message is transmitted fast and efficiently.
Message between existing multiple Wide Area Network interface and Ethernet interface is transmitted in the course of work, because searching by three layers of crosspoint of route finished, but three layers of crosspoint do not possess the direct message forwarding capability of Wide Area Network interface again, and transmitting for the message of Wide Area Network interface needs host CPU to finish.The embodiment of the invention provides wide-area network sub-card to assist three layers of crosspoint to finish for the message of Wide Area Network interface and has transmitted, thereby alleviates the burden of host CPU, can realize carrying out fast and efficiently message and transmit between Wide Area Network interface.
The embodiment of the invention is that the Virtual Channel on each Wide Area Network interface mates VPI information in message, and VPI information is corresponding with the Virtual Channel sequence number of each Wide Area Network interface.Host CPU obtains and safeguards two mapping relations:
First mapping relations are the mapping relations of message purpose IP address and VPI information; The purpose IP address of message indicates Wide Area Network interface and the Virtual Channel thereof that this message will mail to.Owing to all defined VPI information corresponding to the Virtual Channel of each Wide Area Network interface, thus for the purpose IP address of message also just to the Wide Area Network interface that will mail to and the VPI information of Virtual Channel thereof should be arranged.
Second mapping relations are the mapping relations of VPI information and Wide Area Network interface number and Virtual Channel sequence number.
Host CPU sends to three layers of crosspoint with first mapping relations; Second mapping relations are sent to wide-area network sub-card.
By table 2 above-mentioned as can be seen first mapping relations and second mapping relations.For example, be the message of 20.20.1.3 for purpose IP address, its Wide Area Network interface that will mail to number is 2, and Virtual Channel number is 3, and corresponding VPI information then is 1003.
Table 2
Purpose IP address Wide Area Network interface number The Virtual Channel sequence number of this interface VPI information
10.10.10.1-10.10.10.254 1 1-1000 1-254
20.20.1.1-20.20.1.254 2 1-1000 1001-1254
30.20.1.1-30.20.1.254 3 1-1000 2001-2254
40.20.1.1-40.20.1.254 4 1-1000 3001-3254
As can be seen from the above table, purpose IP address field 10.10.10.1-10.10.10.254 is corresponding to the Virtual Channel of the 1-254 of Wide Area Network interface 1, and the Virtual Channel of the 1-254 of Wide Area Network interface 1 is mapped as the VPI information that is numbered 1-254 respectively; So purpose IP address field 10.10.10.1-10.10.10.254 is just corresponding to the VPI information that is numbered 1-254, this i.e. first mapping relations; And the Virtual Channel sequence number of the 1-254 of Wide Area Network interface 1 and the corresponding relation that is numbered the VPI information of 1-254 are second mapping relations.
Three layers of crosspoint according to message purpose IP address, are searched first mapping relations after receiving message, obtain the VPI information of this purpose IP address correspondence.Three layers of crosspoint adds this VPI information in 4 bytes of the vlan number in the 802.1Q frame head of Ethernet two layer message head or in the target MAC (Media Access Control) address, and this message is sent to wide-area network sub-card.
After wide-area network sub-card receives the message that carries VPI information, obtain Wide Area Network interface that this message should mail to number and Virtual Channel sequence number thereof according to VPI information searching second mapping relations of message.VPI information such as message is 2100, then can learn that according to table 2 it is that 3 Virtual Channel sequence numbers are 100 Wide Area Network interface Virtual Channel that message should mail to interface number.
Based on above-mentioned analysis, a kind of packet routing exchange device that the embodiment of the invention provides as shown in Figure 8, comprising: host CPU 801, three layers of crosspoint 802, wide-area network sub-card 803.
Host CPU 801 is used to obtain and the mapping relations of maintenance purpose IP address and VPI information, and these mapping relations are sent to three layers of crosspoint 802; Host CPU 801 also is used to obtain and safeguard the mapping relations of VPI information and Wide Area Network interface Virtual Channel, and these mapping relations are sent to wide-area network sub-card 803.First mapping relations and second mapping relations can be that the manual generation of operating personnel is input in the host CPU again, also can be host CPU 801 corresponding different Wide Area Network interface Virtual Channel sequence number definition VPI information, generate second mapping relations, generate first mapping relations according to the corresponding relation of message purpose IP address in the routing iinformation and Wide Area Network interface Virtual Channel and the corresponding relation of VPI information and Wide Area Network interface Virtual Channel sequence number again.Concrete generation method, those skilled in the art can realize easily, not give unnecessary details herein.
Three layers of crosspoint 802 have a plurality of Ethernet interfaces.Three layers of crosspoint 802 are receiving message, determining this message is after mailing to the message of Wide Area Network interface, obtain the VPI information of this message purpose IP address correspondence and this VPI information is added in the message according to purpose IP address search first mapping relations of this message, message is mail to wide-area network sub-card 803.Determine that message is that the technology that mails to the message of Wide Area Network interface is well known to those skilled in the art, three layers of crosspoint 802 is by the mapping relations of the Ethernet interface in message purpose IP address and the three layers of crosspoint 802, can learn the Ethernet interface that this message need mail to, if and this Ethernet interface links to each other with wide-area network sub-card, determine that then this message is the message that mails to Wide Area Network interface.In the specific implementation, three layers of crosspoint 802 also can link to each other with a plurality of wide-area network sub-card by a plurality of Ethernet interface network interfaces, and three layers of crosspoint 802 knows by the mapping relations of the Ethernet interface in message purpose IP address and the three layers of crosspoint 802 which wide-area network sub-card message is mail to.
Wide-area network sub-card 803 comprises the subcard Ethernet interface, is connected with three layers of crosspoint 802 by the subcard Ethernet interface, also comprises a plurality of Wide Area Network interface, is connected with wide area network by Wide Area Network interface.Wide-area network sub-card 803 obtains the VPI information in the message after receiving the message that three layers of crosspoint 802 send, and according to second mapping relations, obtains the sequence number of the Wide Area Network interface number and the Virtual Channel thereof of VPI information correspondence; Wide-area network sub-card 803 is changed in the process of wide area network two layer message head at the Ethernet two layer message with message first watch, the sequence number of this Wide Area Network interface Virtual Channel is added in the message, and the message that will change behind the heading sends from the Wide Area Network interface Virtual Channel from correspondence.
As shown in Figure 9, can comprise as lower module in three layers of crosspoint 802: message receiver module 901, message determination module 902, forwarding module 903, VPI information are added module 904, mapping relations obtain module 905.
Mapping relations obtain module 905 obtains IP address VPI information from host CPU 801 mapping relations.
Message receiver module 901 is used to receive message.
Message determination module 902, it is after mailing to the message of wide area network that message is determined in the purpose IP address that is used for the message that receives according to message receiver module 901, message is issued VPI information add module 904.
Described VPI information is added module 904 and is used for behind the message that mails to wide area network that reception message determination module 902 is determined, obtain the purpose IP address of module 905 acquisitions and the mapping relations of VPI information according to message purpose IP address search mapping relations, obtain the VPI information of described message purpose IP address correspondence, and this VPI information is added in this message.
The message that mails to Wide Area Network interface that forwarding module 903 is used for carrying VPI information sends to wide-area network sub-card 803.
As shown in figure 10, a kind of concrete structure of wide-area network sub-card 803 comprises: subcard CPU1001, wan switch module 1002, subcard Ethernet interface 1003 and at least one Wide Area Network interface.
Subcard CPU1001 is used for communicating by letter with host CPU 801, be responsible for the negotiation of wide area network link layer protocol, receive the VPI information of host CPU 801 distributions and the mapping relations of Wide Area Network interface Virtual Channel, and these mapping relations are set in the wan switch module 1002 of subcard.
The mapping relations of VPI information and Wide Area Network interface Virtual Channel have been preserved in the wan switch module 1002.Wan switch module 1002 is according to the mapping relations of VPI information and Wide Area Network interface Virtual Channel sequence number, the two layer message head that has VPI information of the message that will receive from subcard Ethernet interface 1003 is mapped as the wide area network two layer message head that has the Virtual Channel sequence number, is forwarded on the Virtual Channel of corresponding Wide Area Network interface; After being changed to Ethernet two layer message head first watch, the two layer message of the message that wan switch module 1002 also will receive from Wide Area Network interface is forwarded to subcard Ethernet interface 1003.
Wherein, the internal structure of wan switch module 1002 comprises: VPI information acquisition submodule 1008, mapping submodule 1006, wide area network heading are changed submodule 1005, the wide area network message sends submodule 1004, wide area network message reception submodule 1009, Ethernet heading replacing submodule 1007.
VPI information acquisition submodule 1008 is used to receive the message that three layers of crosspoint 802 send by subcard Ethernet interface 1003, and obtains the VPI information that this message carries;
Mapping submodule 1006 is used to receive the VPI information that VPI information acquisition submodule 1008 obtains, and the Virtual Channel sequence number of the Wide Area Network interface that mails to according to the mapping relationship searching outgoing packet of VPI information and Wide Area Network interface Virtual Channel number and this interface.
The Ethernet heading is changed submodule 1007 and is used to obtain the message that three layers of crosspoint send, and the Ethernet heading of this message is replaced by wide area network two layer message head, the sequence number of the Virtual Channel that in the replacing process mapping submodule 1006 is found out is added in the wide area network two layer message head.
The wide area network message sends submodule 1004 and is used to receive the message that Ethernet heading replacing submodule 1007 was changed heading, and the Virtual Channel of the Wide Area Network interface that finds out according to mapping submodule 1006, the Virtual Channel of this message from the Wide Area Network interface of correspondence forwarded.
The wide area network message receives submodule 1009 and is used to receive the message that sends from each Wide Area Network interface and these messages are sent to the wide area network heading and change submodule 1005.
The wide area network heading is changed submodule 1005 and is used to receive the message that the wide area network message receives submodule 1009 transmissions, and the wide area network two layer message of this message is changed to Ethernet two layer message head first watch, and the message after will changing sends to subcard Ethernet interface 1003, sends to three layers of crosspoint 802 by subcard Ethernet interface 1003.
A kind of switching method that E-Packets to Wide Area Network interface that the embodiment of the invention provides as shown in figure 11, comprises following concrete steps:
Step S1101: three layers of crosspoint obtain the purpose IP address of message.
Step S1102: three layers of crosspoint are searched the mapping relations of purpose IP address VPI information, obtain the VPI information of this message purpose IP address correspondence.
Three layers of crosspoint obtains the VPI information of this message IP address correspondence according to the mapping relations of the IP address search IP address VPI information of message.
Step S1103: when message is when mailing to the message of wide area network, three layers of crosspoint add VPI information in the message to.
Three layers of crosspoint 802 can add this VPI information in the byte of the target MAC (Media Access Control) address that also can add message in 4 bytes in the 802.1Q frame head of Ethernet two layer message head of message to.
Step S1104: three layers of crosspoint are transmitted to wide-area network sub-card with message.
Three layers of crosspoint 802 send to wide-area network sub-card 803 with the message that has added VPI information by the subcard Ethernet interface.
Step S1105: wide-area network sub-card obtains the VPI information in the message, and according to the mapping relations of VPI information and Wide Area Network interface Virtual Channel, the sequence number of the Virtual Channel of the Wide Area Network interface that must outgoing packet should mail to.
Wide-area network sub-card 803 is after receiving this message, obtain the VPI information in the heading, and, find out the Virtual Channel sequence number of the Wide Area Network interface of VPI information correspondence according to the mapping relations of the Virtual Channel of VPI information and Wide Area Network interface.
Step S1106: wide-area network sub-card is changed to wide area network two layer message head with the Ethernet two layer message of message first watch, and the Virtual Channel sequence number that draws is added in the heading.
Wide-area network sub-card 803 will send to message Wide Area Network interface need be replaced by heading wide area network two layer message head, and the relevant position of adding the sequence number that finds out corresponding Virtual Channel to heading according to the form of wide area network two layer message head.
Step S1107: wide-area network sub-card E-Packets to the Virtual Channel of the Wide Area Network interface of correspondence.
The message of wide-area network sub-card 803 after heading was changed in the Virtual Channel forwarding of the Wide Area Network interface that finds out.
A kind of switching method from Wide Area Network interface reception message that the embodiment of the invention provides as shown in figure 12, comprises following concrete steps:
Step S1201: wide-area network sub-card receives message from Wide Area Network interface.
Step S1202: wide-area network sub-card is changed to Ethernet two layer message head first watch with the wide area network two layer message of this message.
Wide-area network sub-card 803 is changed to Ethernet two layer message head with the wide area network two layer message of message first watch, in the replacing process, does not need to add VPI information.
Step S1203: wide-area network sub-card is transmitted to three layers of crosspoint with message.
The message that wide-area network sub-card 803 will be changed heading is transmitted to three layers of crosspoint 802.
Step S1204: three layers of crosspoint are searched the routed path of this message.
Three layers of crosspoint 802 are after receiving this message, do not need host CPU to participate in searching which Ethernet interface that message will mail to three layers of crosspoint 802, if what message need mail to is the Ethernet interface that does not have the connecting wan subcard, then three layers of crosspoint 802 directly send to message this Ethernet interface; If what message need mail to is the Ethernet interface of connecting wan subcard, the switching method that E-Packets to Wide Area Network interface that can adopt then that the embodiment of the invention provides is transmitted this message.
The embodiment of the invention has discharged the resource of host CPU owing to adopt three layers of crosspoint to replace host CPU to finish the technology of the work of searching message routing, has solved the bottleneck problem of host CPU, has accelerated the route speed of message.
The embodiment of the invention is owing to adopt wide-area network sub-card to assist three layers of crosspoint to replace host CPU to finish the technology of message forwarding work, discharged the resource of host CPU, solved the bottleneck problem of host CPU, accelerated the speed that message is transmitted, especially for the packet forwarding speed of Wide Area Network interface.
One of ordinary skill in the art will appreciate that all or part of step that realizes in the foregoing description method is to instruct relevant hardware to finish by program, described program can be stored in the computer read/write memory medium, this program is when carrying out, comprise all or part of step in the foregoing description method, described storage medium, as: ROM/RAM, magnetic disc, CD etc.
The above only is a preferred implementation of the present invention; should be pointed out that for those skilled in the art, under the prerequisite that does not break away from the principle of the invention; can also make some improvements and modifications, these improvements and modifications also should be considered as protection scope of the present invention.

Claims (9)

1, a kind of packet routing switch device is characterized in that, comprising:
Host CPU, three layers of crosspoint and wide-area network sub-card; Described host CPU is used for obtaining and safeguarding first mapping relations, and described first mapping relations are sent to described three layers of crosspoint, described host CPU also is used for obtaining and safeguarding second mapping relations, and described second mapping relations are sent to described wide-area network sub-card; Described first mapping relations are the mapping relations of purpose IP address and VPI information, described second mapping relations are the mapping relations of VPI information and Wide Area Network interface Virtual Channel sequence number, the sequence number of the Wide Area Network interface Virtual Channel that described VPI information will mail to corresponding to the message of purpose IP address;
Described three layers of crosspoint are used for after receiving the message that mails to Wide Area Network interface, purpose IP address search first mapping relations according to message, obtain the VPI information of this message purpose IP address correspondence, after adding described VPI information to described message, described message is mail to described wide-area network sub-card;
Described wide-area network sub-card is used for VPI information searching second mapping relations of carrying according to message after receiving described message, obtain the Wide Area Network interface Virtual Channel sequence number of this VPI information correspondence, when the Ethernet two layer message with described message is changed to wide area network two layer message head first watch, described Wide Area Network interface Virtual Channel sequence number is added in the described wide area network two layer message head, and the message that will change heading mails to the Wide Area Network interface Virtual Channel of Wide Area Network interface Virtual Channel sequence number correspondence.
2, device as claimed in claim 1 is characterized in that, described VPI information is the numbering of corresponding different Wide Area Network interface Virtual Channel definition.
3, device as claimed in claim 2 is characterized in that, described numbering is added in the byte space of message target MAC (Media Access Control) address or in the byte space of vlan number.
4, a kind of three layers of crosspoint is characterized in that, comprising:
Mapping relations obtain module, are used to obtain the mapping relations of purpose IP address and VPI information;
The message receiver module is used to receive message;
The message determination module, being used to determine the message that described message receiver module receives is the message that mails to Wide Area Network interface;
VPI information is added module, be used for behind the message that mails to wide area network that the described message determination module of reception is determined, obtain the purpose IP address of module acquisition and the mapping relations of VPI information according to the described mapping relations of message purpose IP address search, obtain the VPI information of described message purpose IP address correspondence, and this VPI information is added in this message;
Forwarding module is used for that VPI information is added the message that module added VPI information and mails to wide-area network sub-card.
5, a kind of wide-area network sub-card is characterized in that, comprising:
Subcard CPU is used to obtain the mapping relations of the Virtual Channel sequence number of VPI information and Wide Area Network interface;
The subcard Ethernet interface is used to receive the message that three layers of crosspoint send;
Wan switch module and Wide Area Network interface, described wan switch module is used for the mapping relations according to described subcard CPU acquisition, determine the Wide Area Network interface Virtual Channel sequence number of the VPI information correspondence of carrying in the message that described subcard Ethernet interface receives, when the Ethernet two layer message with described message is changed to wide area network two layer message head first watch, the sequence number of the Virtual Channel of the Wide Area Network interface of the VPI information correspondence of described message is added in the described wide area network two layer message head, and the message that will change heading mails to the Wide Area Network interface Virtual Channel of determining.
6, wide-area network sub-card as claimed in claim 5 is characterized in that, described wan switch module comprises:
VPI information acquisition submodule is used for from the VPI information of the message acquisition message of described subcard Ethernet interface reception;
Mapping submodule is used for according to described mapping relations, determines the Wide Area Network interface Virtual Channel sequence number of the VPI information correspondence of this message;
The Ethernet heading is changed submodule, is used for the Ethernet two layer message of described message is changed to wide area network two layer message head first watch, and the sequence number of described Wide Area Network interface Virtual Channel is added in the described wide area network two layer message head;
The wide area network message sends submodule, is used for mailing to this Wide Area Network interface Virtual Channel according to the message of described Wide Area Network interface Virtual Channel sequence number after with described replacing heading.
7, a kind of message routing switching method is characterized in that, comprising:
Host CPU obtains and safeguards first mapping relations, and described first mapping relations are sent to three layers of crosspoint; Described host CPU also obtains and safeguards second mapping relations, and described second mapping relations are sent to wide-area network sub-card; Described first mapping relations are the mapping relations of purpose IP address and VPI information, described second mapping relations are the mapping relations of VPI information and Wide Area Network interface Virtual Channel sequence number, the sequence number of the Wide Area Network interface Virtual Channel that described VPI information will mail to corresponding to the message of purpose IP address;
Described three layers of crosspoint are after receiving the message that mails to Wide Area Network interface, purpose IP address search first mapping relations according to message, obtain the VPI information of this message purpose IP address correspondence, after adding described VPI information to described message, described message is mail to described wide-area network sub-card;
VPI information searching second mapping relations that described wide-area network sub-card is carried in according to message after receiving described message, obtain the Wide Area Network interface Virtual Channel sequence number of this VPI information correspondence, when the Ethernet two layer message with described message is changed to wide area network two layer message head first watch, described Wide Area Network interface Virtual Channel sequence number is added in the described wide area network two layer message head, and the message that will change heading mails to the Wide Area Network interface Virtual Channel of Wide Area Network interface Virtual Channel sequence number correspondence.
8, method as claimed in claim 7 is characterized in that, described VPI information is the numbering of corresponding different Wide Area Network interface Virtual Channel definition.
9, method as claimed in claim 8 is characterized in that, describedly adds described VPI information to described method of message and comprises:
Described VPI information is added in the byte space of target MAC (Media Access Control) address of message or in the byte space of vlan number.
CNB2007101665479A 2007-11-05 2007-11-05 A kind of packet routing switch device and method thereof Expired - Fee Related CN100563215C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2007101665479A CN100563215C (en) 2007-11-05 2007-11-05 A kind of packet routing switch device and method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2007101665479A CN100563215C (en) 2007-11-05 2007-11-05 A kind of packet routing switch device and method thereof

Publications (2)

Publication Number Publication Date
CN101159674A CN101159674A (en) 2008-04-09
CN100563215C true CN100563215C (en) 2009-11-25

Family

ID=39307599

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2007101665479A Expired - Fee Related CN100563215C (en) 2007-11-05 2007-11-05 A kind of packet routing switch device and method thereof

Country Status (1)

Country Link
CN (1) CN100563215C (en)

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102404415A (en) * 2010-09-08 2012-04-04 苏州彭华信息技术有限公司 Addressing method for serving of intranet equipment
CN102104512A (en) * 2011-01-07 2011-06-22 华为技术有限公司 Method and equipment for determining interface information
CN102316028B (en) 2011-08-24 2014-06-04 华为技术有限公司 Method and apparatus for sending internet protocol packet
CN102769569B (en) * 2012-07-25 2018-08-10 南京中兴新软件有限责任公司 Switch type matrix data central site network system and data packet forwarding method
CN103490961B (en) * 2013-09-05 2017-05-10 新华三技术有限公司 Network equipment
CN103763195B (en) * 2014-01-23 2017-07-28 中国联合网络通信集团有限公司 A kind of method and device of transmitting message
CN109428819B (en) * 2017-08-28 2022-01-11 阿里巴巴集团控股有限公司 Method, network component, device and computer storage medium for transmitting data
CN109587079B (en) * 2018-12-14 2020-11-20 北京物芯科技有限责任公司 OAM service processing system and method
CN113839896B (en) * 2021-11-16 2023-06-16 迈普通信技术股份有限公司 Message forwarding method, device, network equipment and storage medium
CN117319382A (en) * 2023-09-13 2023-12-29 天津普智芯网络测控技术有限公司 Pattern file multipath synchronous issuing method based on switch

Also Published As

Publication number Publication date
CN101159674A (en) 2008-04-09

Similar Documents

Publication Publication Date Title
CN100563215C (en) A kind of packet routing switch device and method thereof
EP1256207B1 (en) Multi-portal bridge for providing network connectivity
US7483395B2 (en) Network device with VLAN topology discovery functions
US7577142B2 (en) Derived VLAN mapping technique
EP2412129B1 (en) Redundant host connection in a routed network
US6643292B2 (en) Efficient packet data transport mechanism and an interface therefor
EP0871309B1 (en) Router device and frame transfer method using datalink layer frame switching
CN100596358C (en) Link layer communication method in LAN and network device thereof
CN105791214B (en) Method and equipment for converting RapidIO message and Ethernet message
CN100555999C (en) A kind of method and apparatus of realizing edge-to-edge pseudo-line simulation
EP1332642B1 (en) Virtual ethernet ports with automated router port extension
KR20030085016A (en) Method and aparatus for priority-based load balancing for use in an extended local area network
CN100591048C (en) Method for equilibrating network-flow load and the third-level exchanger
JP2003046547A (en) Packet transfer method and packet transmitter-receiver
CN101009633A (en) A data transfer method and transfer system with the route information
CN112532563B (en) Message sending method and device
CN102739501A (en) Message forwarding method in two or three layer virtual private network (VPN) and system thereof
CN107317752A (en) A kind of method and device of forwarding data packets
US7797444B2 (en) Data transfer apparatus and data transfer system
CN102098189B (en) Method for monitoring CE and routing equipment
US7333509B1 (en) Cell relay using the internet protocol
US6515998B1 (en) Table data retrieving apparatus retrieving table in which reference data is stored by using retrieval key
EP1344416B1 (en) Method for transmitting packets over circuit-switched network
US20050102420A1 (en) Link layer based network sharing
Cohen et al. The sink tree paradigm: connectionless traffic support on ATM LAN's

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
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20091125

Termination date: 20141105

EXPY Termination of patent right or utility model