CN102123101B - Message processing method and device - Google Patents

Message processing method and device Download PDF

Info

Publication number
CN102123101B
CN102123101B CN201110067800.1A CN201110067800A CN102123101B CN 102123101 B CN102123101 B CN 102123101B CN 201110067800 A CN201110067800 A CN 201110067800A CN 102123101 B CN102123101 B CN 102123101B
Authority
CN
China
Prior art keywords
public network
message
information table
private network
label
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
CN201110067800.1A
Other languages
Chinese (zh)
Other versions
CN102123101A (en
Inventor
冷星星
钱勇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
ZTE Corp
Original Assignee
ZTE Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by ZTE Corp filed Critical ZTE Corp
Priority to CN201110067800.1A priority Critical patent/CN102123101B/en
Publication of CN102123101A publication Critical patent/CN102123101A/en
Application granted granted Critical
Publication of CN102123101B publication Critical patent/CN102123101B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses a message processing method and device which are used for solving the problem that the existing message processing is complicated and influences the system performance. The method comprises the following steps: acquiring the private network label information and the serial number of a stored public network information table from a respectively stored private network information table; and when the private network label information is judged to be effective, packaging the private network label, acquiring a public network label from the public network information table of the corresponding serial number according to the serial number of the acquired public network table, packaging the public network label, and then selecting a corresponding outlet to forward the message according to the outlet information stored in a next-hop concordance list. In the embodiment of the invention, only one set of corresponding microcode treatment process is set for all types of message, and a set of corresponding information table is stored to forward the message by searching the information table in the corresponding step, so that the complexity of the service processing is simplified; and moreover, the space occupied by stored table entries is saved, and the system performance is improved.

Description

A kind of message processing method and device
Technical field
The present invention relates to communication technical field, particularly relate to a kind of message processing method and device.
Background technology
Three layer service streams in Ethernet switch mainly comprise: three layers of clean culture, three layers of multicast, forwarding in Layer3 Virtual Private Network (VPN) and common multiprotocol label switching (Multi-Protocol LabelSwitching, MPLS) forward.
MPLS is a kind of multiple protocol label switching, MPLS system comprises edge label switch router (the Labeled Edge Router being positioned at MPLS system edges and being connected with other networks or user, LER), and be positioned at LSR (the Label Switching Router of MPLS internal system, LSR), this LER obtains forwarding information by searching routing table, and LSR obtains forwarding information by searching label list.Label by distributing in advance in MPLS system, a strip label forwarding channel (LSP) is set up in the forwarding for message, at each equipment place that passage passes through, all needs to carry out Tag switching.
And it comprises in MPLS vpn system: provider edge router (PE), carrier routers (P) and customer edge devices (CE), wherein PE supports VPN and mark function, be connected with CE, and the tunnel passed through is connected, wherein this tunnel can be MPLS LSR tunnel, also can be LDP tunnel, P supports MPLS LSR tunnel or LDP tunnelling function, and CE is the router or the switch that connect carrier network.
In existing Business Stream processing procedure, adopt microcode to arrange its independent handling process all respectively for often kind of business, namely for the handling process that common route, MPLS and MPLS VPN have it independent, each handling process is realized by microcode.Such as common route, need the forwarding just carrying out message by searching routing table and next concordance list; And for the message repeating in MPLS system, LSR needs to search label list, from label list, obtain public network label, search the forwarding that next concordance list carries out message afterwards again; Searching VRF routing table for sending PE for uplink message in MPLS vpn system, obtain private network tags and public network label from routing table after, carrying out the forwarding of message.
Known by said process, due to all microcode will be adopted respectively for often kind of business, corresponding handling process is set, the complexity of Message processing can increase and a large amount of micro-code instructions occupies a large amount of spaces, and the list item of its correspondence is preserved respectively for often kind of business, list item space also can take segment space, the performance of influential system.
Summary of the invention
In view of this, the embodiment of the present invention provides a kind of message processing method and device, complicated in order to solve existing Message processing, and the problem of influential system performance.
A kind of message processing method that the embodiment of the present invention provides, comprising:
According to message to be forwarded, from the private network information table preserved, obtain the sequence number of the public network information table of private network tags information and preservation, and judge that whether this private network tags information is effective;
When this private network tags information is effective, this private network tags is encapsulated;
According to the sequence number of the public network information table obtained, determine corresponding public network information table, and according to the public network tag length recorded in public network information table, this public network label is encapsulated;
According under the outlet information once preserved in concordance list, select corresponding outlet to forward this message.
A kind of message process device that the embodiment of the present invention provides, comprising:
Judge module, for according to message to be forwarded, obtains the sequence number of the public network information table of private network tags information and preservation, and judges that whether this private network tags information is effective from the private network information table preserved;
Private network tags package module, for when this private network tags information is effective, encapsulates this private network tags;
Public network Tag Packaging module, for the sequence number according to the public network information table obtained, determines corresponding public network information table, and encapsulates this public network label according to the public network tag length recorded in public network information table;
Sending module, for the outlet information preserved in concordance list under basis, selects corresponding outlet to forward this message once.
Embodiments provide a kind of message processing method and device, the method obtains the sequence number of the public network information table of private network tags information and preservation from the private network information table self preserved, when judging that private network tags information is effective, this private network tags is encapsulated, and according to the sequence number of public network information table obtained, from the public network information table of corresponding sequence number, obtain public network label and encapsulate, afterwards again according to the outlet information preserved in down hop concordance list, selecting corresponding outlet to forward this message.Owing to only arranging the microcode handling process of a set of correspondence in the embodiment of the present invention for all types of message, and save corresponding a set of information table, by searching in the step of correspondence the forwarding that information table carries out message, thus simplify the complexity of Business Processing, and save the space that storage item takies, improve the performance of system.
Accompanying drawing explanation
Accompanying drawing described herein is used to provide a further understanding of the present invention, forms a part of the present invention, and schematic description and description of the present invention, for explaining the present invention, does not form inappropriate limitation of the present invention.In the accompanying drawings:
The process of a kind of Message processing that Fig. 1 provides for the embodiment of the present invention;
The detailed process of the message that Fig. 2 provides for the embodiment of the present invention;
Another detailed process of the Message processing that Fig. 3 provides for the embodiment of the present invention;
The structural representation of the message process device that Fig. 4 provides for the embodiment of the present invention.
Embodiment
The embodiment of the present invention is in order to effectively improve the performance of system, simplify the complexity of Business Processing, provide a kind of message processing method and device, the method only arranges the microcode handling process of a set of correspondence for all types of message, and save corresponding a set of information table, by searching in the step of correspondence the forwarding that information table carries out message, thus simplify the complexity of Business Processing, and save the space that storage item takies, improve the performance of system.
In order to make technical problem to be solved by this invention, technical scheme and beneficial effect clearly, understand, below in conjunction with drawings and Examples, the present invention is further elaborated.Should be appreciated that specific embodiment described herein only in order to explain the present invention, be not intended to limit the present invention.
The process of a kind of Message processing that Fig. 1 provides for the embodiment of the present invention, this process comprises the following steps:
S101: according to message to be forwarded, obtains the sequence number of the public network information table of private network tags information and preservation from the private network information table that self preserves.
S102: according to the private network tags information obtained, corresponding operating is carried out to this private network tags.
The concrete private network tags information according to acquisition, carries out corresponding operating to this private network tags and comprises: judge that whether this private network tags information is effective; When judging that this private network tags is effective, this private network tags is encapsulated, otherwise, this private network tags is not encapsulated.
S103: according to the sequence number of the public network information table obtained, determines corresponding public network information table, and encapsulates this public network label according to the public network tag length recorded in public network information table.
S104: according to the outlet information preserved in down hop concordance list, selects corresponding outlet to forward this message.
The concrete said process to this Message processing can be placed in the outlet encapsulation unit of the network equipment, this outlet encapsulation unit is for message to be forwarded, no longer carry out the differentiation of operation flow, and directly according to the business processing flow that self preserves, adopt corresponding private network information table and public network information table to process accordingly.
In embodiments of the present invention when the network equipment receives this message to be forwarded, the entrance retransmission unit being placed in network device internal can be adopted to realize, the process that this concrete network equipment adopts this entrance retransmission unit to receive this message to be forwarded comprises: the traffic flow types corresponding according to this message to be forwarded, search corresponding transmitting, wherein search correspondence to transmit and comprise: when described message to be forwarded is message corresponding to common IPv4 clean culture, search IPv4 routing table, when described message to be forwarded be the message in MPLS LSR system or the message in MPLS vpn system time, search label list, when described message is multicast message, search multicast table.
The detailed process of the message that Fig. 2 provides for the embodiment of the present invention, this process comprises the following steps:
S201: the traffic flow types corresponding according to this message to be forwarded, search corresponding transmitting, wherein search correspondence to transmit and comprise: when described message to be forwarded is message corresponding to common IPv4 clean culture, search IPv4 routing table, when described message to be forwarded be the message in MPLS LSR system or the message in MPLS vpn system time, search label list, when described message is multicast message, search multicast table.
S202: according to message to be forwarded, obtains the sequence number of the public network information table of private network tags information and preservation from the private network information table that self preserves.
S203: judging that whether this private network tags information is effective, when judging that this private network tags information is effective, carrying out step S204, otherwise, carry out step S205.
S204: encapsulate this private network tags, carries out step S206 afterwards.
S205: this private network tags is not encapsulated.
S206: according to the sequence number of the public network information table obtained, determines corresponding public network information table, and encapsulates this public network label according to the public network tag length recorded in public network information table.
S207: according to the outlet information preserved in down hop concordance list, selects corresponding outlet to forward this message.
In addition, this outlet encapsulation unit is in order to realize the differentiation not carrying out operation flow in embodiments of the present invention, and the private network information table that self preserves and public network information table have been through the private network information table and public network information table that drive and incorporate.
Concrete can adopt microcode technology by driving the integration of list item, owing to no longer adopting microcode to arrange corresponding encapsulation flow process respectively for different operation flows, thus in microcode flow process, greatly saves the instruction memory size of microcode.
When adopting microcode technology to carry out the integration of list item by driving, for the ease of searching the information of the down hop outlet of message repeating, distribute down hop concordance list.And distribute a public network information table for every bar route or each tunnel, wherein record the package length information of public network label information and public network label in this public network information table, the public network information table that next skip list sequence number is associated with can also be recorded in addition in this public network information table.
The package length information of the public network label recorded in this public network information table, determine according to every bar route or each tunnel, such as when for common route or MPLS VPN descending time, the package length information of this public network label recorded in this public network information table is 0, then identify and now do not need encapsulation public network label, when for the MPLS VPN of band P node up, or common MPLS message repeating, the package length information of the public network label then recorded in this public network information table is 4, then identify the encapsulation now needing to carry out one deck public network label.Certainly when the package length of this public network label is longer, and the length of the public network label of every layer of encapsulation is determined, then may need the encapsulation carrying out 2 layers or 3 layers public network label, concrete can determine according to the package length of public network label.
And each entry is issued, namely every bar route or each VRF issue, all distribute a private network information table, private network tags information is stored in this private network information table, when really there is private network tags, this private network tags is recorded in this private network information table, when there is not private network tags, then be recorded to by invalidated identification in this private network information table, such as this invalidated identification can be numeral " 3 ".Such as common route, this private network tags is invalid tag, and correspondence is set to invalidated identification, when for MPLS VPN up time, then there is private network tags.
Another detailed process of the Message processing that Fig. 3 provides for the embodiment of the present invention, this process comprises the following steps:
S301: according to message to be forwarded, obtains the sequence number of the public network information table of private network tags information and preservation from the private network information table that self preserves.
S302: judging that whether this private network tags information is effective, when judging that this private network tags information is effective, carrying out step S303, otherwise, carry out step S304.
S303: encapsulate this private network tags, carries out step S305 afterwards.
Such as up for MPLS VPN, then get corresponding private network tags, need encapsulate this private network tags.
S304: this private network tags is not encapsulated.
Such as common route, then the private network tags obtained is invalid, then identify the private network tags encapsulation without the need to carrying out this layer.
S305: according to the sequence number of the public network information table obtained, determines corresponding public network information table, and encapsulates this public network label according to the public network tag length recorded in public network information table.
Concrete according to the public network tag length recorded in public network information table, encapsulation carried out to this public network label and comprise: according to the public network tag length recorded in public network information table, determine the quantity of the public network label after encapsulating; According to the quantity of the public network label determined, encapsulate to the public network label of quantity.
Such as when being common route, or when MPLS VPN is descending, this public network tag length obtained from this public network information table is 0, then identifying currently does not need encapsulation public network label; When for the MPLSVPN of band P node up, or during common MPLS message repeating, this public network tag length obtained from this public network information table is 4, then mark encapsulation one deck public network label.
S306: according to the outlet information preserved in down hop concordance list, selects corresponding outlet to forward this message.
Owing to only arranging the microcode handling process of a set of correspondence in the embodiment of the present invention for all types of message, and save corresponding a set of information table, by searching in the step of correspondence the forwarding that information table carries out message, thus simplify the complexity of Business Processing, and save the space that storage item takies, improve the performance of system.
The structural representation of a kind of message process device that Fig. 4 provides for the embodiment of the present invention, described device comprises:
Acquisition module 41, for according to message to be forwarded, obtains the sequence number of the public network information table of private network tags information and preservation from the private network information table that self preserves;
Private network tags package module 42, for according to the private network tags information obtained, carries out corresponding operating to this private network tags;
Public network Tag Packaging module 43, for the sequence number according to the public network information table obtained, determines corresponding public network information table, and encapsulates this public network label according to the public network tag length recorded in public network information table;
Sending module 44, for the outlet information preserved in concordance list under basis, selects corresponding outlet to forward this message once.
Described private network tags package module 42, whether effective specifically for judging this private network tags information; When judging that this private network tags is effective, this private network tags is encapsulated, otherwise, this private network tags is not encapsulated.
Public network Tag Packaging module 43, specifically for according to the public network tag length recorded in public network information table, determines the quantity of the public network label after encapsulating; According to the quantity of the public network label determined, encapsulate to the public network label of quantity.
Described device also comprises:
Receiver module 45, for the traffic flow types corresponding according to this message to be forwarded, search corresponding transmitting, wherein search correspondence to transmit and comprise: when described message to be forwarded is message corresponding to common IPv4 clean culture, search IPv4 routing table, when described message to be forwarded be the message in MPLS LSR system or the message in MPLS vpn system time, search label list, when described message is multicast message, search multicast table.
Described device comprises:
Update module 46, when changing for the link corresponding when label forwarding passage, upgrades the corresponding contents in described public network information table.
This concrete device can be arranged in the network equipment, such as, in switch.
Embodiments provide a kind of message processing method and device, the method obtains the sequence number of the public network information table of private network tags information and preservation from the private network information table self preserved, when judging that private network tags information is effective, this private network tags is encapsulated, and according to the sequence number of public network information table obtained, from the public network information table of corresponding sequence number, obtain public network label and encapsulate, afterwards again according to the outlet information preserved in down hop concordance list, selecting corresponding outlet to forward this message.Owing to only arranging the microcode handling process of a set of correspondence in the embodiment of the present invention for all types of message, and save corresponding a set of information table, by searching in the step of correspondence the forwarding that information table carries out message, thus simplify the complexity of Business Processing, and save the space that storage item takies, improve the performance of system.
Above-mentioned explanation illustrate and describes the preferred embodiments of the present invention, but as previously mentioned, be to be understood that the present invention is not limited to the form disclosed by this paper, should not regard the eliminating to other embodiments as, and can be used for other combinations various, amendment and environment, and can in invention contemplated scope described herein, changed by the technology of above-mentioned instruction or association area or knowledge.And the change that those skilled in the art carry out and change do not depart from the spirit and scope of the present invention, then all should in the protection range of claims of the present invention.

Claims (6)

1. a message processing method, is characterized in that, comprising:
According to message to be forwarded, from the private network information table preserved, obtain the sequence number of the public network information table of private network tags information and preservation;
According to the private network tags information obtained, corresponding operating is carried out to this private network tags;
According to the sequence number of the public network information table obtained, determine corresponding public network information table, and according to the public network tag length recorded in public network information table, this public network label is encapsulated;
According to the outlet information preserved in down hop concordance list, corresponding outlet is selected to forward this message;
Wherein, the described private network tags information according to obtaining, corresponding operating is carried out to this private network tags and comprises:
Judge that whether this private network tags information is effective;
When judging that this private network tags is effective, this private network tags is encapsulated,
Otherwise, this private network tags is not encapsulated;
The described public network tag length according to recording in public network information table encapsulates this public network label, comprising:
According to the public network tag length recorded in public network information table, determine the quantity of the public network label after encapsulating;
According to the quantity of the public network label determined, encapsulate the public network label of this quantity.
2. the method for claim 1, is characterized in that, before receiving described message to be forwarded, described method also comprises:
The traffic flow types corresponding according to this message to be forwarded, searches corresponding transmitting,
Wherein search correspondence to transmit and comprise: when described message to be forwarded is message corresponding to common IPv4 clean culture, search IPv4 routing table, when described message to be forwarded be the message in MPLS LSR system or the message in MPLS vpn system time, search label list, when described message is multicast message, search multicast table.
3. the method for claim 1, is characterized in that, described method also comprises:
When the link that label forwarding passage is corresponding changes, the corresponding contents in described public network information table is upgraded.
4. a message process device, is characterized in that, described device comprises:
Acquisition module, for according to message to be forwarded, obtains the sequence number of the public network information table of private network tags information and preservation from the private network information table preserved;
Private network tags package module, for according to the private network tags information obtained, carries out corresponding operating to this private network tags;
Public network Tag Packaging module, for the sequence number according to the public network information table obtained, determines corresponding public network information table, and encapsulates this public network label according to the public network tag length recorded in public network information table;
Sending module, for according to the outlet information preserved in down hop concordance list, selects corresponding outlet to forward this message;
Wherein, described private network tags package module, specifically for: judge that whether this private network tags information is effective; When judging that this private network tags is effective, this private network tags is encapsulated, otherwise, this private network tags is not encapsulated; Described public network Tag Packaging module, specifically for according to the public network tag length recorded in public network information table, determines the quantity of the public network label after encapsulating; According to the quantity of the public network label determined, encapsulate the public network label of this quantity.
5. device as claimed in claim 4, it is characterized in that, described device also comprises:
Receiver module, for the traffic flow types corresponding according to this message to be forwarded, search corresponding transmitting, wherein search correspondence to transmit and comprise: when described message to be forwarded is message corresponding to common IPv4 clean culture, search IPv4 routing table, when described message to be forwarded be the message in MPLS LSR system or the message in MPLS vpn system time, search label list, when described message is multicast message, search multicast table.
6. device as claimed in claim 4, it is characterized in that, described device comprises:
Update module, when changing for the link corresponding when label forwarding passage, upgrades the corresponding contents in described public network information table.
CN201110067800.1A 2011-03-21 2011-03-21 Message processing method and device Expired - Fee Related CN102123101B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110067800.1A CN102123101B (en) 2011-03-21 2011-03-21 Message processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110067800.1A CN102123101B (en) 2011-03-21 2011-03-21 Message processing method and device

Publications (2)

Publication Number Publication Date
CN102123101A CN102123101A (en) 2011-07-13
CN102123101B true CN102123101B (en) 2015-04-01

Family

ID=44251557

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110067800.1A Expired - Fee Related CN102123101B (en) 2011-03-21 2011-03-21 Message processing method and device

Country Status (1)

Country Link
CN (1) CN102123101B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103856404B (en) * 2013-12-24 2017-06-27 华为技术有限公司 Data transmission method, device and system in a kind of looped network
CN108173982B (en) * 2018-03-26 2020-12-22 深圳市风云实业有限公司 NAT (network Address translation) processing method and device for cross-board message
CN111385209B (en) * 2018-12-28 2021-06-22 华为技术有限公司 Message processing method, message forwarding method, device and equipment
CN110661713B (en) * 2019-10-22 2021-09-21 新华三信息安全技术有限公司 Message forwarding method and device

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1652542A (en) * 2004-02-07 2005-08-10 华为技术有限公司 Method for implement virtual leased line
CN101729361A (en) * 2008-10-22 2010-06-09 华为技术有限公司 Method and device for processing message

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100561978C (en) * 2006-04-26 2009-11-18 华为技术有限公司 A kind of strategy route device and method
CN101662426B (en) * 2009-09-30 2012-06-13 中兴通讯股份有限公司 T-MPLS tunnel protection processing method and system thereof

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1652542A (en) * 2004-02-07 2005-08-10 华为技术有限公司 Method for implement virtual leased line
CN101729361A (en) * 2008-10-22 2010-06-09 华为技术有限公司 Method and device for processing message

Also Published As

Publication number Publication date
CN102123101A (en) 2011-07-13

Similar Documents

Publication Publication Date Title
CN111385206B (en) Message forwarding method, network system, related equipment and computer storage medium
CN109995634B (en) Bearing method and equipment for multicast virtual private network
CN102170386B (en) The implementation method that identify label is separated with position, system and data encapsulation method
CN105871721B (en) Segment routing processing method, processing device and sending device
CN105245452B (en) Multi-protocol label switching traffic engineering tunnel establishing method and equipment
RU2493677C2 (en) Method and router for implementing mirroring
US9237032B2 (en) Method, system, and device for forwarding data frames
EP1134938A1 (en) System, device and method for supporting a label switched path across a non-MPLS compliant segment
CN113556259B (en) Message processing method and device based on stream following detection
WO2016131225A1 (en) Message forward processing method, apparatus, controller and routing forward device
CN105871722A (en) Tag structure and tag message forwarding method and device
CN101090355A (en) Label exchange route setting method, system and equipment of virtual special network channel
CN102123101B (en) Message processing method and device
CN102546433A (en) Data forwarding method based on MPLS (Multi Protocol Label Switching) VPN (Virtual Private Network) and PEs (Provider Edges)
CN101719868B (en) Method and device for loading LSP in TE tunnel
CN104780090B (en) Method, apparatus, the PE equipment of VPN multicast transmissions
CN103379033B (en) Message forwarding method and packet optical transport network equipment
CN101552710B (en) Method, system and router for realizing virtual special network cross-domain
CN101286918A (en) Virtual private network system and data processing method thereof
KR101566139B1 (en) Pseudowire extended group messaging in a packet switched network
CN102739498B (en) A kind of transmission method of hierarchical virtual private LAN service and system
CN101888336B (en) Access device realizes method and the access device of TDM business relaying
US20130250962A1 (en) Method and apparatus for label distribution
KR20140138816A (en) Pseudowire groups in a packet switched network
CN101355514B (en) Method for transmitting data packet with VLAN label in two-layer VPN

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: 20150401

Termination date: 20200321

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