CN105763437A - Message forwarding method and network equipment - Google Patents

Message forwarding method and network equipment Download PDF

Info

Publication number
CN105763437A
CN105763437A CN201410788003.6A CN201410788003A CN105763437A CN 105763437 A CN105763437 A CN 105763437A CN 201410788003 A CN201410788003 A CN 201410788003A CN 105763437 A CN105763437 A CN 105763437A
Authority
CN
China
Prior art keywords
forward table
forwarding
forwarding entry
soft
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.)
Pending
Application number
CN201410788003.6A
Other languages
Chinese (zh)
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 CN201410788003.6A priority Critical patent/CN105763437A/en
Priority to PCT/CN2015/073971 priority patent/WO2016095345A1/en
Publication of CN105763437A publication Critical patent/CN105763437A/en
Pending legal-status Critical Current

Links

Abstract

The invention provides a message forwarding method and network equipment, and the method comprises the steps: obtaining business forwarding information on the network equipment; enabling the business forwarding information to be integrated into a software forwarding table needed during software forwarding of a multicore CPU, storing the software forwarding table in a shared table, enabling the business forwarding information to be integrated into a hardware forwarding table needed during the hardware forwarding of a two-layer exchange chip; enabling a forwarding item in the hardware forwarding table to be written into an in-chip forwarding table when the number of the hardware forwarding tables is less than or equal to the number of in-chip forwarding tables in the two-layer exchange chip, carrying out the related business processing of a forwarding flow corresponding to the forwarding item through the two-layer exchange chip, and carrying out the forwarding of the forwarding flow through the two-layer exchange chip; and enabling the forwarding flow corresponding to forwarding items, exceeding the number of the number of in-chip forwarding tables, of the hardware forwarding tables to be transmitted to the multicore CPU for forwarding. According to the invention, the method makes the most of the hardware forwarding of the two-layer exchange chip, improves the message forwarding efficiency, and enlarges the forwarding table capacity through employing the multicore CPU software forwarding.

Description

The method of message forwarding and the network equipment
Technical field
The present invention relates to computer network data communication technical field, particularly relate to method and the network equipment that a kind of message forwards.
Background technology
The network equipment such as mid-range-and-low-end routers, switch is the indispensable visual plant of data communication field, the process E-Packeted be basically there exist two subject matters by equipment commercial in various networks at present: one is that forward efficiency is relatively low, it is difficult to realize linear speed;Two is that forwarding capacity is low, does not reach the capacity performance index of existing network equipment, for instance:
1, based on the processing method of the soft forwarding of universal cpu, the forwarding of this dependence CPU, forwarding performance is poor, when, after the continuous superposition of business in network, port line-speed difficulty, application scenarios is narrow;
2, the processing method firmly forwarded based on FPGA forwarding or Layer2 switching chip, although this method forwarding performance is significantly high, but it is limited in sheet forwarding-table item quantity, and Layer2 switching chip is for the applied business of Complex Flexible, for instance network address translation NAT, Broadband Remote Access Server BRAS etc. cannot process.
It is therefore desirable to provide a kind of method and the network equipment that message forwards, forward efficiency can either be improved, it is achieved speed limit, forwarding capacity can be expanded again, meet the capacity performance index of existing network equipment.
Summary of the invention
The technical problem to be solved is in that, method and the network equipment that a kind of message forwards are provided, the soft forwarding of multi-core CPU is adopted firmly to forward, with Layer2 switching chip, the method combined, when forward table quantity in the forward table quantity that configuration and study on the network equipment are arrived is less than or equal to the sheet of Layer2 switching chip, converting flow is all forwarded by Layer2 switching chip, improve forward efficiency, when forward table quantity in the forward table quantity that configuration and study on the network equipment are arrived is more than the sheet of Layer2 switching chip, for the converting flow corresponding beyond the forwarding entry of forward table quantity in sheet delivers to multi-core CPU, forwarded by multi-core CPU, expand forward table capacity.
In order to solve above-mentioned technical problem, the present invention adopts the following technical scheme that
According to one aspect of the present invention, it is provided that a kind of method that message forwards, described method includes:
Obtain the one or more business forwarding informations on the network equipment;
Described business forwarding information is integrated into one or more soft forward table required when multi-core CPU is soft to be forwarded be stored in shared drive and described business forwarding information is integrated into one or more hard forward table required when Layer2 switching chip forwards firmly;
When forward table quantity in described hard forward table quantity is less than or equal to the sheet of described Layer2 switching chip, forwarding entry in described hard forward table is write in described interior forward table, described Layer2 switching chip forward after the converting flow that described forwarding entry is corresponding being carried out related service process;
When described hard forward table quantity is more than described interior forward table quantity, forward converting flow corresponding for the forwarding entry described hard forward table being exceeded to described interior forward table quantity delivers to described multi-core CPU.
Further, described will forward beyond converting flow corresponding to the forwarding entry of described interior forward table quantity delivers to described multi-core CPU for described hard forward table, particularly as follows:
Converting flow corresponding for the forwarding entry described hard forward table being exceeded to described interior forward table quantity will deliver to described multi-core CPU, after the described converting flow above sent being carried out related service process by described multi-core CPU, described converting flow is issued to described Layer2 switching chip again, described Layer2 switching chip described converting flow is sent.
Further, described method also includes:
Obtain the business forwarding information relevant to the routing forwarding entry of required interpolation;
Described business forwarding information is integrated into soft forward table required when described multi-core CPU is soft to be forwarded;
Whether the forwarding entry judged in the sheet of described Layer2 switching chip in forward table is full, if less than, then described business forwarding information is integrated into hard forward table required when described Layer2 switching chip forwards firmly, and the routing forwarding entry in described hard forward table is write in described interior forward table;
If full, then the mask that the mask that judges whether to exist in described interior forward table same IP address is shorter than the mask of described routing forwarding entry, if existing, then with the forwarding entry that the described forwarding entry described short mask of covering of required interpolation is corresponding.
Further, described method also includes:
Searching the routing forwarding entry that whether there is required deletion in described soft forward table, if existing, then described routing forwarding entry being deleted;
After described routing forwarding entry in described soft forward table is deleted, search in the sheet of described Layer2 switching chip whether forward table exist described routing forwarding entry, if existing, then described routing forwarding entry is deleted, and from described soft forward table, search mask same IP address, shorter than the mask of the routing forwarding entry deleted, from the mask found, choose the longest mask, routing forwarding entry corresponding for the longest described mask is write in the sheet of described Layer2 switching chip in forward table.
Further, in the step of the one or more business forwarding informations on the described acquisition network equipment:
When the network equipment is configured with the complicated business forwarding information that Layer2 switching chip cannot process, forwarding entry corresponding for described business forwarding information need to be put and send mark, forward converting flow corresponding for described forwarding entry is delivered to described multi-core CPU.
Further, when adding routing forwarding entry, if two layers of packaging information of purpose outlet are absent from, then need to put described routing forwarding entry to send mark, described multi-core CPU forward the converting flow that described forwarding entry is corresponding.
Further, when adding routing forwarding entry, if described route is the route needing to send on directly, then need to put described route entry to send mark, above deliver to described multi-core CPU and forward.
According to another aspect of the present invention, it is provided that the network equipment that a kind of message forwards, the described network equipment includes:
Service protocol module, for obtaining the one or more business forwarding informations on the network equipment, and processes described business forwarding information, and the described business forwarding information after processing is issued to forward table management module;
Forward table management module, is used for receiving described business forwarding information, and one or more soft forward table required when described business forwarding information is integrated into the soft forwarding of described multi-core CPU is write in shared drive, reads during for soft forwarding;And described business forwarding information is integrated into one or more hard forward table required when described Layer2 switching chip forwards firmly, and described hard forward table is issued to business-driven module;
Business-driven module, for by described hard forward table needing the forwarding entry that described Layer2 switching chip forwards write in described interior forward table, described Layer2 switching chip forwarding after the converting flow that described forwarding entry is corresponding being carried out related service process;
Soft forwarding module, for according to the soft forward table information in message information and described shared drive, processing the converting flow above delivered in described multi-core CPU, described converting flow be issued to after being disposed described Layer2 switching chip.
Further, described soft forwarding module also includes:
Soft retransmission unit, for the converting flow corresponding beyond the forwarding entry of described interior forward table quantity for described hard forward table delivering to described multi-core CPU, after the described converting flow above sent being carried out related service process by described multi-core CPU, described converting flow is issued to described Layer2 switching chip again, described Layer2 switching chip described converting flow is sent.
Further, the described network equipment also includes:
Obtain and add routing module, for obtaining the business forwarding information relevant to the routing forwarding entry of required interpolation;
Add and route soft forward table generation module, be used for being integrated into described business forwarding information soft forward table required during the soft forwarding of described multi-core CPU;
Add forwarding entry module, whether the forwarding entry judged in the sheet of described Layer2 switching chip in forward table is full, if less than, then described business forwarding information is integrated into hard forward table required when described Layer2 switching chip forwards firmly, and the routing forwarding entry in described hard forward table is write in described interior forward table;If full, then the mask that the mask that judges whether to exist in described interior forward table same IP address is shorter than the mask of described routing forwarding entry, if existing, then with the forwarding entry that the described forwarding entry described mask of covering of required interpolation is corresponding.
Further, the described network equipment also includes:
Soft forward table route entry removing module, for searching the routing forwarding entry that whether there is required deletion in described soft forward table, if existing, then deletes described routing forwarding entry;
Forward table route entry removing module in sheet, after the described routing forwarding entry in described soft forward table is deleted, search in the sheet of described Layer2 switching chip whether forward table exist described routing forwarding entry, if existing, then described routing forwarding entry is deleted, and from described soft forward table, search mask same IP address, shorter than the mask of the routing forwarding entry deleted, from the mask found, choose the longest mask, routing forwarding entry corresponding for the longest described mask is write in the sheet of described Layer2 switching chip in forward table.
Further, the described network equipment also includes:
Route entry is sent module, for when the network equipment is configured with the complicated business forwarding information that Layer2 switching chip cannot process, or two layers of packaging information of purpose outlet are absent from, or described route is when being the route needing to send on directly, corresponding forwarding entry is put and send mark, above deliver to described multi-core CPU and forward.
The invention has the beneficial effects as follows: the method for a kind of message provided by the invention forwarding and the network equipment, the soft forwarding of multi-core CPU is adopted firmly to forward, with Layer2 switching chip, the method combined, first by the business forwarding information of the network equipment, it is integrated into the hard forward table that required soft forward table and Layer2 switching chip when multi-core CPU is soft to be forwarded are required when firmly forwarding, when forward table quantity in hard forward table quantity is less than or equal to the sheet of Layer2 switching chip, converting flow is all forwarded by Layer2 switching chip, when forward table quantity in hard forward table quantity is more than the sheet of Layer2 switching chip, for the converting flow corresponding beyond the forwarding entry of forward table quantity in sheet delivers to multi-core CPU, after being carried out, by multi-core CPU, the Business Processing being correlated with, it is issued to Layer2 switching chip again to forward.Method provided by the invention and the network equipment had both made full use of Layer2 switching chip and had firmly forwarded raising message forward efficiency, achieve linear speed, meet the forwarding entry capacity requirement of subnetwork, utilize again the soft forwarding of multi-core CPU to expand forward table capacity, substantially meet most of commercial network application.
Accompanying drawing explanation
Fig. 1 represents the flow chart of steps of the message forwarding method that the embodiment of the present invention provides;
Fig. 2 represents the hardware connection structure figure that the embodiment of the present invention provides;
Fig. 3 represents the flow chart of steps of the interpolation routing forwarding entry that the embodiment of the present invention provides;
Fig. 4 represents the flow chart of steps adding 1.1.1.1/24 routing forwarding entry in the example that the embodiment of the present invention provides;
Fig. 5 represents the flow chart of steps deleting 1.1.1.1/24 routing forwarding entry that the embodiment of the present invention provides;
Fig. 6 represents the flow chart of steps deleting routing forwarding entry in the example that the embodiment of the present invention provides;
Fig. 7 represents the structured flowchart of the network equipment that the embodiment of the present invention provides;
Fig. 8 represents the structured flowchart adding routing forwarding entry in the network equipment that the embodiment of the present invention provides;
Fig. 9 represents the structured flowchart deleting routing forwarding entry in the network equipment that the embodiment of the present invention provides.
Detailed description of the invention
It is more fully described the exemplary embodiment of the present invention below with reference to accompanying drawings.Although accompanying drawing showing the exemplary embodiment of the present invention, it being understood, however, that may be realized in various forms the present invention and should do not limited by embodiments set forth here.On the contrary, it is provided that these embodiments are able to be best understood from the present invention, and complete for the scope of the present invention can be conveyed to those skilled in the art.
An aspect according to the embodiment of the present invention, it is provided that a kind of method that message forwards, as it is shown in figure 1, described method includes:
Step S101, the one or more business forwarding informations obtained on the network equipment;
After obtaining business forwarding information from the network equipment, in addition it is also necessary to business forwarding information is further processed, because the business forwarding information obtained from the network equipment is in a kind of mixed and disorderly, unordered state, it is impossible to be used directly in follow-up forwarding process.
Step S102, required one or more soft forward table is stored in shared drive and described business forwarding information is integrated into one or more hard forward table required when Layer2 switching chip forwards firmly when described business forwarding information is integrated into multi-core CPU is soft to be forwarded;
Wherein, as in figure 2 it is shown, multi-core CPU is control axis, carry the operation of whole software system.Layer2 switching chip is hung under multi-core CPU, subtending port bandwidth is N number of 10G, wherein include data message passage XAUI at subtending port, protocol massages passage SGMI and chip collocation channel PCIE, multi-core CPU receives the service traffics that all Layer2 switching chips cannot process from three passages, including the converting flow that the forwarding entry of forward table quantity in the sheet beyond Layer2 switching chip is corresponding, there is no the converting flow of two layers of packaging information, some special routes need the flow sent, and some complicated business flows, simultaneously multi-core CPU also with shared Memory linkage, soft forward table needed for reading soft forwarding from shared drive;
Hanging each interface board under Layer2 switching chip, all external interfaces of the network equipment are all connected on Layer2 switching chip, and the surface speed forwarding of Layer2 switching chip primary responsibility network traffics and the mutual of physical link flow are changed, the reception of flow, transmission, statistics etc.;
Shared drive is accessible storage district, including SRAM (StaticRandomAccessMemory, SRAM), DRAM (DynamicRandomAccessMemory, dynamic RAM), the memory element such as DDR (DoubleDataRate, double message transmission rate memorizer), mutual for miscellaneous service converting flow information, packet buffer etc..
Step S103, when forward table quantity in described hard forward table quantity is less than or equal to the sheet of described Layer2 switching chip, forwarding entry in described hard forward table is write in described interior forward table, described Layer2 switching chip forward after the converting flow that described forwarding entry is corresponding being carried out related service process;
When forward table quantity in described hard forward table quantity is less than or equal to the sheet of described Layer2 switching chip, Layer2 switching chip forwarding the converting flow that forwarding entry is corresponding, forwarded by Layer2 switching chip, it is possible to realize linear speed, forward efficiency ratio is very fast.
Step S104, when described hard forward table quantity is more than described interior forward table quantity, will forward beyond converting flow corresponding to the forwarding entry of described interior forward table quantity delivers to described multi-core CPU for described hard forward table.
When forward table quantity in hard forward table quantity is more than sheet, can not will be forwarded by Layer2 switching chip again beyond the converting flow that the forwarding entry of forward table quantity in sheet is corresponding for hard forward table, multi-core CPU is delivered on needing, related service process is carried out by the multi-core CPU converting flow to above sending, owing to multi-core CPU does not have external interface, so also needing to, by subtending port, converting flow is issued to Layer2 switching chip, Layer2 switching chip converting flow is sent.
Further, as it is shown on figure 3, the flow chart of steps of the interpolation routing forwarding entry provided for the embodiment of the present invention, including:
Step S301, the business forwarding information that acquisition is relevant to the routing forwarding entry of required interpolation;
Step S302, required soft forward table when described business forwarding information is integrated into that described multi-core CPU is soft to be forwarded;
Whether step S303, the forwarding entry judged in the sheet of described Layer2 switching chip in forward table be full, if less than, then described business forwarding information is integrated into hard forward table required when described Layer2 switching chip forwards firmly, and the routing forwarding entry in described hard forward table is write in described interior forward table;
If step S304 is full, then the mask that the mask that judges whether to exist in described interior forward table same IP address is shorter than the mask of described routing forwarding entry, if existing, then with the forwarding entry that the described forwarding entry described short mask of covering of required interpolation is corresponding.
For further appreciating that the steps flow chart of interpolation routing forwarding entry that the embodiment of the present invention provides, will be exemplified below.
For IPV4 address 1.1.1.1/24, as shown in Figure 4, the steps flow chart of the forwarding entry adding route 1.1.1.1/24 is as follows:
The route of 1.1.1.1/24 is added in step S401, configuration, after the route Business Processing be correlated with of 1.1.1.1/24, generates the forwarding information of this route;
Step S402, by route 1.1.1.1/24 forwarding information integrate after, with soft with multi-core CPU forward time required soft forward table form write shared drive;
Step S403, judge that in the sheet of Layer2 switching chip, whether routing forwarding table clause is full,
If step S404 less than, then the forwarding information of route 1.1.1.1/24 is integrated required hard forward table when Layer2 switching chip forwards firmly, the routing forwarding entry in described hard forward table is write in sheet in forward table.
If step S405 is full, then judging the routing forwarding entry being shorter than 24 bitmasks in the sheet of Layer2 switching chip in forward table either with or without 1.1.1.1, if not having, flow process terminates.
If having the route of shorter mask in the sheet of step S406 Layer2 switching chip in forward table, for instance 16, then covering 1.1.1.1/16 with 1.1.1.1/24, routing forwarding entry is added successfully, and flow process terminates.
Further, as it is shown in figure 5, the flow chart of steps of the deletion routing forwarding entry provided for the embodiment of the present invention, including:
Step S501, searching the routing forwarding entry that whether there is required deletion in described soft forward table, if existing, then described routing forwarding entry being deleted;
Step S502, by described soft forward table described routing forwarding entry delete after, search in the sheet of described Layer2 switching chip whether forward table exist described routing forwarding entry, if existing, then described routing forwarding entry is deleted, and from described soft forward table, search mask same IP address, shorter than the mask of the routing forwarding entry deleted, from the mask found, choose the longest mask, routing forwarding entry corresponding for the longest described mask is write in the sheet of described Layer2 switching chip in forward table.
For further appreciating that the steps flow chart of deletion routing forwarding entry that the embodiment of the present invention provides, will be exemplified below.
For IPV4 address 1.1.1.1/24, as shown in Figure 6, the steps flow chart of the forwarding entry deleting route 1.1.1.1/24 is as follows:
Step S601, configuration delete 1.1.1.1/24 route;
Step S602, search the routing forwarding entry that whether there is 1.1.1.1/24 in soft forward table;
If step S603 exists, then routing forwarding entry is deleted;
Step S604, search the routing forwarding entry that whether there is 1.1.1.1/24 in forward table in the sheet of described Layer2 switching chip;
If step S605 exists, then routing forwarding entry is deleted;
Whether step S606, the soft forward table searched in shared drive exist 1.1.1.1 and is longer than the mask shorter than 24 bitmasks deleted;
If step S607 exists, then choosing the longest mask from the mask found, for instance 23 bitmasks, the routing forwarding entry of 1.1.1.1/23 write in the sheet of described Layer2 switching chip in forward table, if being absent from, flow process terminates;
Further, when the network equipment is configured with the complicated business forwarding information that Layer2 switching chip cannot process, forwarding entry corresponding for described business forwarding information need to be put and send mark, forward converting flow corresponding for described forwarding entry is delivered to described multi-core CPU.
Such as, be configured with network address translation NAT on the network equipment, broad band remote accesses the complicated business that two layers of chips such as law works device BRAS cannot process, need will " enter business-binding port; action is sent " access control list ACL entry write two layers of chip slapper in three-state content addressing memory TCAM in, then on deliver in multi-core CPU process.
Further, when adding routing forwarding entry, if two layers of packaging information of purpose outlet are absent from, then need to put described routing forwarding entry to send mark, described multi-core CPU forward the converting flow that described forwarding entry is corresponding.
Such as, purpose exports without two layers of packaging information such as medium access control MAC Address and virtual LAN VLAN, converting flow corresponding to routing forwarding entry cannot forward in two layers of chip, now need to put routing forwarding entry to send mark, ensure enter two layers of chip corresponding flow can on deliver to multi-core CPU, multi-core CPU forward.
Further, if described route is the route needing to send on directly, then need to put described route entry to send mark, above deliver to described multi-core CPU and forward.
Such as, when forward route be local routing time, two layers of chip cannot forward local routing, it is necessary to route entry is put and send mark, it is ensured that enter two layers of chip corresponding flow can on deliver to multi-core CPU, multi-core CPU forward.
Another aspect according to the embodiment of the present invention, it is provided that the network equipment that a kind of message forwards, as it is shown in fig. 7, wherein, in figure, thin arrow represents forward table information, and block arrow represents converting flow, and the described network equipment includes:
Service protocol module 701, for obtaining the one or more business forwarding informations on the network equipment, and processes described business forwarding information, and the described business forwarding information after processing is issued to forward table management module;
Service protocol module 701 is responsible for the parsing to configuration order, the study etc. of service protocol, the forwarding information generating service needed is handed down to forward table management module by multiplexer MUX message mechanism, and service protocol module 701 belongs to chain of command, is not involved in the forward process to service message.
Forward table management module 702, is used for receiving described business forwarding information, and one or more soft forward table required when described business forwarding information is integrated into the soft forwarding of described multi-core CPU is write in shared drive, reads during for soft forwarding;And described business forwarding information is integrated into one or more hard forward table required when described Layer2 switching chip forwards firmly, and described hard forward table is issued to business-driven module;
The forwarding information of forward table management module 702 primary recipient chain of command, the MUX message received is integrated into the forward table form that soft forwarding module needs, namely soft forward table it is integrated into, in write shared drive, and SDK and the application programming interfaces SDKAPI interface that as required, to be also integrated into the offer of Layer2 switching chip enter ginseng form and are handed down to business-driven module.In addition, forward table management module 702 also to receive the real time information such as soft forwarding module and aging, the statistics of some in repeating process of business-driven module and feeds back to chain of command.
Business-driven module 703, for by described hard forward table needing the forwarding entry that described Layer2 switching chip forwards write in described interior forward table, described Layer2 switching chip forwarding after the converting flow that described forwarding entry is corresponding being carried out related service process;
Business-driven module 703 directly operates the SDKAPI interface of Layer2 switching chip and processes the depositor of forward table and Layer2 switching chip in sheet, and SDKAPI interface has been encapsulated, it is provided that manages module 702 to forward table and drives interface.
Soft forwarding module 704, for according to the soft forward table information in message information and described shared drive, processing the converting flow above delivered in described multi-core CPU, described converting flow be issued to after being disposed described Layer2 switching chip.
Soft forwarding module 704 manages module 702 according to message information and forward table and writes the forward table information in shared drive, the Business Processing that the business converting flow entered in multi-core CPU is correlated with, after being disposed, business converting flow is issued to Layer2 switching chip, Layer2 switching chip flow is sent.
Further, as it is shown in fig. 7, described soft forwarding module 704 also includes:
Soft retransmission unit 714, for the converting flow corresponding beyond the forwarding entry of described interior forward table quantity for described hard forward table delivering to described multi-core CPU, after the described converting flow above sent being carried out related service process by described multi-core CPU, described converting flow is issued to described Layer2 switching chip again, described Layer2 switching chip described converting flow is sent.
Further, as shown in Figure 8, the described network equipment also includes:
Obtain and add routing module 801, for obtaining the business forwarding information relevant to the routing forwarding entry of required interpolation;
Add and route soft forward table generation module 802, be used for being integrated into described business forwarding information soft forward table required during the soft forwarding of described multi-core CPU;
When adding any routing forwarding entry, it is required for being integrated into business forwarding information soft forward table required during the soft forwarding of multi-core CPU.
Add forwarding entry module 803, whether the forwarding entry judged in the sheet of described Layer2 switching chip in forward table is full, if less than, then described business forwarding information is integrated into hard forward table required when described Layer2 switching chip forwards firmly, and the routing forwarding entry in described hard forward table is write in described interior forward table;If full, then the mask that the mask that judges whether to exist in described interior forward table same IP address is shorter than the mask of described routing forwarding entry, if existing, then with the forwarding entry that the described forwarding entry described mask of covering of required interpolation is corresponding.
Further, the described network equipment also includes as shown in Figure 9:
Soft forward table route entry removing module 901, for searching the routing forwarding entry that whether there is required deletion in described soft forward table, if existing, then deletes described routing forwarding entry;
Forward table route entry removing module 902 in sheet, after the described routing forwarding entry in described soft forward table is deleted, search in the sheet of described Layer2 switching chip whether forward table exist described routing forwarding entry, if existing, then described routing forwarding entry is deleted, and from described soft forward table, search mask same IP address, shorter than the mask of the routing forwarding entry deleted, from the mask found, choose the longest mask, routing forwarding entry corresponding for the longest described mask is write in the sheet of described Layer2 switching chip in forward table.
Further, the described network equipment also includes:
Route entry is sent module, for when the network equipment is configured with the business forwarding information that Layer2 switching chip cannot process, or two layers of packaging information of purpose outlet are absent from, or described route is when being the route needing to send on directly, corresponding forwarding entry is put and send mark, above deliver to multi-core CPU and forward.
If the network equipment is configured with the complicated business that the Layer2 switching chips such as NAT, BRAS cannot process, service protocol module 701 can issue the MUX information of miscellaneous service bundling port and manage module 702 to forward table, forward table management module 702 needs TCAM in acl entry two layers of chip slapper of write of " entering business-binding port, action is sent ";
If when adding the route entry of 1.1.1.1/24, forward table management module 702 finds this route corresponding outlet two layers of information such as MAC address free and VLAN, when the converting flow of this route correspondence cannot forward in Layer2 switching chip, forward table management module 702 need the route entry of 1.1.1.1/24 to put to send mark, it is ensured that enter Layer2 switching chip corresponding flow can on deliver to multi-core CPU;
And for example when adding a route, forward table management module 702 needs deep analysis route MUX information, and the route such as local routing etc. that cannot forward for Layer2 switching chip will be put and upper send mark.
Above is the preferred embodiment of the present invention, it should be pointed out that for the ordinary person of the art, can also making some improvements and modifications under without departing from principles of the invention premise, these improvements and modifications are also in protection scope of the present invention.

Claims (12)

1. the method that a message forwards, it is characterised in that described method includes:
Obtain the one or more business forwarding informations on the network equipment;
Described business forwarding information is integrated into one or more soft forward table required when multi-core CPU is soft to be forwarded be stored in shared drive and described business forwarding information is integrated into one or more hard forward table required when Layer2 switching chip forwards firmly;
When forward table quantity in described hard forward table quantity is less than or equal to the sheet of described Layer2 switching chip, forwarding entry in described hard forward table is write in described interior forward table, described Layer2 switching chip forward after the converting flow that described forwarding entry is corresponding being carried out related service process;
When described hard forward table quantity is more than described interior forward table quantity, forward converting flow corresponding for the forwarding entry described hard forward table being exceeded to described interior forward table quantity delivers to described multi-core CPU.
2. the method for claim 1, it is characterised in that described will forward beyond delivering to described multi-core CPU on converting flow corresponding to the forwarding entry of described interior forward table quantity for described hard forward table, particularly as follows:
Converting flow corresponding for the forwarding entry described hard forward table being exceeded to described interior forward table quantity will deliver to described multi-core CPU, after the described converting flow above sent being carried out related service process by described multi-core CPU, described converting flow is issued to described Layer2 switching chip again, described Layer2 switching chip described converting flow is sent.
3. the method for claim 1, it is characterised in that described method also includes:
Obtain the business forwarding information relevant to the routing forwarding entry of required interpolation;
Described business forwarding information is integrated into soft forward table required when described multi-core CPU is soft to be forwarded;
Whether the forwarding entry judged in the sheet of described Layer2 switching chip in forward table is full, if less than, then described business forwarding information is integrated into hard forward table required when described Layer2 switching chip forwards firmly, and the routing forwarding entry in described hard forward table is write in described interior forward table;
If full, then the mask that the mask that judges whether to exist in described interior forward table same IP address is shorter than the mask of described routing forwarding entry, if existing, then with the forwarding entry that the described forwarding entry described short mask of covering of required interpolation is corresponding.
4. the method for claim 1, it is characterised in that described method also includes:
Searching the routing forwarding entry that whether there is required deletion in described soft forward table, if existing, then described routing forwarding entry being deleted;
After described routing forwarding entry in described soft forward table is deleted, search in the sheet of described Layer2 switching chip whether forward table exist described routing forwarding entry, if existing, then described routing forwarding entry is deleted, and from described soft forward table, search mask same IP address, shorter than the mask of the routing forwarding entry deleted, from the mask found, choose the longest mask, routing forwarding entry corresponding for the longest described mask is write in the sheet of described Layer2 switching chip in forward table.
5. the method for claim 1, it is characterised in that in the step of the one or more business forwarding informations on the described acquisition network equipment:
When the network equipment is configured with the complicated business forwarding information that Layer2 switching chip cannot process, forwarding entry corresponding for described business forwarding information need to be put and send mark, forward converting flow corresponding for described forwarding entry is delivered to described multi-core CPU.
6. method as claimed in claim 3, it is characterized in that, when adding routing forwarding entry, if two layers of packaging information of purpose outlet are absent from, then need to put described routing forwarding entry to send mark, described multi-core CPU forward the converting flow that described forwarding entry is corresponding.
7. method as claimed in claim 3, it is characterised in that when adding routing forwarding entry, if described route is the route needing to send on directly, then needs to put described route entry to send mark, above delivers to described multi-core CPU and forward.
8. the network equipment that a message forwards, it is characterised in that the described network equipment includes:
Service protocol module, for obtaining the one or more business forwarding informations on the network equipment, and processes described business forwarding information, and the described business forwarding information after processing is issued to forward table management module;
Forward table management module, is used for receiving described business forwarding information, and one or more soft forward table required when described business forwarding information is integrated into the soft forwarding of described multi-core CPU is write in shared drive, reads during for soft forwarding;And described business forwarding information is integrated into one or more hard forward table required when described Layer2 switching chip forwards firmly, and described hard forward table is issued to business-driven module;
Business-driven module, for by described hard forward table needing the forwarding entry that described Layer2 switching chip forwards write in described interior forward table, described Layer2 switching chip forwarding after the converting flow that described forwarding entry is corresponding being carried out related service process;
Soft forwarding module, for according to the soft forward table information in message information and described shared drive, processing the converting flow above delivered in described multi-core CPU, described converting flow be issued to after being disposed described Layer2 switching chip.
9. the network equipment as claimed in claim 8, it is characterised in that described soft forwarding module also includes:
Soft retransmission unit, for the converting flow corresponding beyond the forwarding entry of described interior forward table quantity for described hard forward table delivering to described multi-core CPU, after the described converting flow above sent being carried out related service process by described multi-core CPU, described converting flow is issued to described Layer2 switching chip again, described Layer2 switching chip described converting flow is sent.
10. the network equipment as claimed in claim 8, it is characterised in that the described network equipment also includes:
Obtain and add routing module, for obtaining the business forwarding information relevant to the routing forwarding entry of required interpolation;
Add and route soft forward table generation module, be used for being integrated into described business forwarding information soft forward table required during the soft forwarding of described multi-core CPU;
Add forwarding entry module, whether the forwarding entry judged in the sheet of described Layer2 switching chip in forward table is full, if less than, then described business forwarding information is integrated into hard forward table required when described Layer2 switching chip forwards firmly, and the routing forwarding entry in described hard forward table is write in described interior forward table;If full, then the mask that the mask that judges whether to exist in described interior forward table same IP address is shorter than the mask of described routing forwarding entry, if existing, then with the forwarding entry that the described forwarding entry described short mask of covering of required interpolation is corresponding.
11. the network equipment as claimed in claim 8, it is characterised in that the described network equipment also includes:
Soft forward table route entry removing module, for searching the routing forwarding entry that whether there is required deletion in described soft forward table, if existing, then deletes described routing forwarding entry;
Forward table route entry removing module in sheet, after the described routing forwarding entry in described soft forward table is deleted, search in the sheet of described Layer2 switching chip whether forward table exist described routing forwarding entry, if existing, then described routing forwarding entry is deleted, and from described soft forward table, search mask same IP address, shorter than the mask of the routing forwarding entry deleted, from the mask found, choose the longest mask, routing forwarding entry corresponding for the longest described mask is write in the sheet of described Layer2 switching chip in forward table.
12. the network equipment as claimed in claim 8, it is characterised in that the described network equipment also includes:
Route entry is sent module, for when the network equipment is configured with the complicated business forwarding information that Layer2 switching chip cannot process, or two layers of packaging information of purpose outlet are absent from, or described route is when being the route needing to send on directly, corresponding forwarding entry is put and send mark, above deliver to multi-core CPU and forward.
CN201410788003.6A 2014-12-17 2014-12-17 Message forwarding method and network equipment Pending CN105763437A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201410788003.6A CN105763437A (en) 2014-12-17 2014-12-17 Message forwarding method and network equipment
PCT/CN2015/073971 WO2016095345A1 (en) 2014-12-17 2015-03-11 Method and network device for forwarding message

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410788003.6A CN105763437A (en) 2014-12-17 2014-12-17 Message forwarding method and network equipment

Publications (1)

Publication Number Publication Date
CN105763437A true CN105763437A (en) 2016-07-13

Family

ID=56125726

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410788003.6A Pending CN105763437A (en) 2014-12-17 2014-12-17 Message forwarding method and network equipment

Country Status (2)

Country Link
CN (1) CN105763437A (en)
WO (1) WO2016095345A1 (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107465619A (en) * 2017-08-22 2017-12-12 南京航空航天大学 A kind of method and apparatus of Internet of Things commercial network message forwarding
CN107977160A (en) * 2016-10-25 2018-05-01 英业达科技有限公司 The method that interchanger accesses data
TWI626837B (en) * 2016-12-01 2018-06-11 財團法人工業技術研究院 Method, apparatus and non-transitory computer-readable medium for delivering packets
CN108521351A (en) * 2018-03-21 2018-09-11 东软集团股份有限公司 Session traffic statistical method, processor core, storage medium, electronic equipment
CN110855568A (en) * 2019-11-22 2020-02-28 迈普通信技术股份有限公司 Message forwarding method and system
CN111131048A (en) * 2019-12-31 2020-05-08 杭州迪普科技股份有限公司 Network traffic forwarding method and device, electronic equipment and machine-readable storage medium
CN114124704A (en) * 2021-11-19 2022-03-01 北京天融信网络安全技术有限公司 Route optimization method and device, electronic equipment and storage medium
CN116016432A (en) * 2022-12-30 2023-04-25 迈普通信技术股份有限公司 Message forwarding method, device, network equipment and computer readable storage medium

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106921672B (en) * 2017-03-28 2023-12-22 南京国电南自维美德自动化有限公司 Protocol conversion device of many net gaps many CPUs based on exchange chip
CN115865839B (en) * 2023-01-20 2023-05-23 苏州浪潮智能科技有限公司 ACL management method, ACL management device, communication equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070121616A1 (en) * 2005-11-29 2007-05-31 Samsung Electronics Co., Ltd. Methods and systems for routing packets with a hardware forwarding engine and a software forwarding engine
CN101505280A (en) * 2009-03-30 2009-08-12 武汉烽火网络有限责任公司 Method and equipment for improving forwarding performance of telecommunication stage Ethernet system
CN101841483A (en) * 2010-05-06 2010-09-22 北京星网锐捷网络技术有限公司 Hardware routing table management method and device and communication equipment
CN103220219A (en) * 2013-04-16 2013-07-24 杭州华三通信技术有限公司 Message transmitting method and message transmitting equipment

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070121616A1 (en) * 2005-11-29 2007-05-31 Samsung Electronics Co., Ltd. Methods and systems for routing packets with a hardware forwarding engine and a software forwarding engine
CN101505280A (en) * 2009-03-30 2009-08-12 武汉烽火网络有限责任公司 Method and equipment for improving forwarding performance of telecommunication stage Ethernet system
CN101841483A (en) * 2010-05-06 2010-09-22 北京星网锐捷网络技术有限公司 Hardware routing table management method and device and communication equipment
CN103220219A (en) * 2013-04-16 2013-07-24 杭州华三通信技术有限公司 Message transmitting method and message transmitting equipment

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107977160A (en) * 2016-10-25 2018-05-01 英业达科技有限公司 The method that interchanger accesses data
CN107977160B (en) * 2016-10-25 2020-10-30 英业达科技有限公司 Method for data access of exchanger
TWI626837B (en) * 2016-12-01 2018-06-11 財團法人工業技術研究院 Method, apparatus and non-transitory computer-readable medium for delivering packets
CN107465619A (en) * 2017-08-22 2017-12-12 南京航空航天大学 A kind of method and apparatus of Internet of Things commercial network message forwarding
CN108521351A (en) * 2018-03-21 2018-09-11 东软集团股份有限公司 Session traffic statistical method, processor core, storage medium, electronic equipment
CN108521351B (en) * 2018-03-21 2021-02-05 东软集团股份有限公司 Session flow statistical method, processor core, storage medium and electronic device
CN110855568A (en) * 2019-11-22 2020-02-28 迈普通信技术股份有限公司 Message forwarding method and system
CN110855568B (en) * 2019-11-22 2022-02-22 迈普通信技术股份有限公司 Message forwarding method and system
CN111131048A (en) * 2019-12-31 2020-05-08 杭州迪普科技股份有限公司 Network traffic forwarding method and device, electronic equipment and machine-readable storage medium
CN114124704A (en) * 2021-11-19 2022-03-01 北京天融信网络安全技术有限公司 Route optimization method and device, electronic equipment and storage medium
CN114124704B (en) * 2021-11-19 2024-01-23 北京天融信网络安全技术有限公司 Route optimization method, device, electronic equipment and storage medium
CN116016432A (en) * 2022-12-30 2023-04-25 迈普通信技术股份有限公司 Message forwarding method, device, network equipment and computer readable storage medium

Also Published As

Publication number Publication date
WO2016095345A1 (en) 2016-06-23

Similar Documents

Publication Publication Date Title
CN105763437A (en) Message forwarding method and network equipment
CN101719877B (en) Message forwarding device, network equipment and method
CN101325551B (en) Method and device for processing message
US9893987B2 (en) Virtual stacking of switches
CN103490961B (en) Network equipment
CN104780111B (en) Virtualize the method and device, virtualization network that message forwards in network
CN102970227A (en) Method and device for achieving virtual extensible local area network (VXLAN) message transmitting in application specific integrated circuit (ASIC)
WO2019137355A1 (en) Method and device for transmitting data, and network system
CN106209557B (en) Message forwarding method and device
TW201349800A (en) Multi-homing in an extended bridge
CN100563215C (en) A kind of packet routing switch device and method thereof
CN105515992A (en) Method and device for processing flow table items of VXLAN network
US8576852B2 (en) Inter-office communication methods and devices
CN108173691A (en) A kind of method and device of cross-equipment aggregation
CN103685032B (en) Message forwarding method and network address translation services device
CN101808107A (en) Storage device and user communication method, device and system
CN101132374B (en) Method and device for transmitting message
CN104584492A (en) Packet processing method, device and system
CN101222370B (en) Method and device for failure location using failure location packet
CN106921551A (en) Virtual communication method, system and equipment
JP2000078205A (en) Inter-network data transmitting method
CN103763204A (en) Flow control method and device
CN100544293C (en) A kind of device of in ATM DSLAM, realizing Ethernet VDSL access
CN102394817B (en) Tunnel forwarding method, device and network equipment
CN108156066A (en) Message forwarding method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20160713