CN101616062A - IP transmits implementation method - Google Patents

IP transmits implementation method Download PDF

Info

Publication number
CN101616062A
CN101616062A CN200810126229A CN200810126229A CN101616062A CN 101616062 A CN101616062 A CN 101616062A CN 200810126229 A CN200810126229 A CN 200810126229A CN 200810126229 A CN200810126229 A CN 200810126229A CN 101616062 A CN101616062 A CN 101616062A
Authority
CN
China
Prior art keywords
port
qinq
traffic
vlan
forwarding
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.)
Granted
Application number
CN200810126229A
Other languages
Chinese (zh)
Other versions
CN101616062B (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 CN2008101262294A priority Critical patent/CN101616062B/en
Publication of CN101616062A publication Critical patent/CN101616062A/en
Application granted granted Critical
Publication of CN101616062B publication Critical patent/CN101616062B/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 invention discloses a kind of IP and transmit implementation method, comprising: the IP traffic behind the label that the extraction chip receives; The IP traffic of designated port by not enabled QINQ after to label carries out three layers of forwarding, and other data flow the IP traffic behind label that receives on the QINQ port is still handled on this QINQ port.The application of the invention can effectively guarantee the support that realization is transmitted IP under the situation that keeps original QINQ function.

Description

IP transmits implementation method
Technical field
The present invention relates to the communications field, and especially, relate to a kind of IP and transmit implementation method.
Background technology
In data communication field, (implication is 802.1q in 802.1q to QINQ, it is nested also can be called VLAN) be a kind of technology relatively more commonly used, this technology can encapsulate one deck label (TAG) as required again at the skin that receives packet, transmit in public network by outer TAG then, peeling outer layer TAG again when going out from public network also can be understood as this technology and has realized a kind of L 2 virtual private network (Virtual Private Network, function VPN).
Because dedicated IC chip (Application Specific Integrated Circuit, ASIC) chip in interface enabling the packet that all this ports can be received after the QINQ function all think UNTAG, even this packet has TAG really.
Yet, packet has been UNTAG from the inlet logic of chip, whether need to increase the relation that TAG need depend on interface middle port and VLAN after slave unit forwards, that is, do not need to increase TAG when going out if port UNTAG belongs to VLAN; Need increase one deck TAG when going out if port TAG belongs to VLAN.
Therefore, as can be seen, which kind of situation forwarding chip does not have the operation (is UNTAG because the inlet logic has been treated packet) of peeling off TAG in the former packet, just is equivalent to carry one deck TAG like this for IP transmits more, causes follow-up processing mistake.
Usually, though if an interface enabling function of QINQ, on this port, just can not enable IP operation (being included in the termination of this equipment and the IP message of forwarding) again, that is to say that this port is used for carrying out two layers of processing.But this demand is arranged in the practical application, that is, enabling the function that not only will finish two-layer VPN on the port of QINQ, also need the function that normally to transmit IP route message and to carry out webmaster.Therefore, present processing mode can't enabled the route that realizes on the port of QINQ the IP message.
Summary of the invention
Consider the problems referred to above and make the present invention, for this reason, main purpose of the present invention is to provide a kind of IP to transmit implementation, does not support the problem of the route of IP message to solve the port of enabling QINQ in the correlation technique.
According to embodiments of the invention, provide a kind of IP to transmit implementation method, be used for realizing the forwarding of IP traffic in system with port of enabling QINQ.
This method comprises: the IP traffic behind the label that the extraction chip receives; The IP traffic of designated port by not enabled QINQ after to label carries out three layers of forwarding, and other data flow the IP traffic behind label that receives on the QINQ port is still handled on this QINQ port.
Wherein, before carrying out three layers of forwarding, this method can further comprise: designated port is configured to not carry out the VLAN inspection for the data flow of this port of flowing through; Dispose the appointment VLAN that does not conflict with existing VLAN, designated port is set to be configured in the appointment VLAN from collar extension and in the mode of not carrying out label.
In addition, before carrying out three layers of forwarding, also can further comprise: the port arrangement that will enable QINQ is for to copy to its Media Access Control Address of learning from the local virtual local area network (LAN) the pairing VLAN of three layer interfaces at this port place.
Preferably, after extracting the IP data, this method can further comprise: the port of enabling QINQ that receives IP traffic is redirected to IP traffic from collar extension according to pre-configured access control list.
In the method, above-mentioned designated port is a port of selecting from one or more ports of not enabled QINQ.And this designated port does not belong to existing VLAN.
By technique scheme of the present invention, can effectively guarantee the support that realization is transmitted IP under the situation that keeps original QINQ function.
Description of drawings
Accompanying drawing described herein is used to provide further understanding of the present invention, constitutes the application's a part, and illustrative examples of the present invention and explanation thereof are used to explain the present invention, do not constitute improper qualification of the present invention.In the accompanying drawings:
Fig. 1 is a flow chart of transmitting implementation method according to the IP of the embodiment of the invention;
Fig. 2 is the flow schematic diagram according to data flow in the implementation procedure of the IP forwarding implementation method of the embodiment of the invention;
Fig. 3 transmits process chart according to downstream-to-upstream data flow in the IP forwarding implementation method of the embodiment of the invention;
Fig. 4 transmits according to the IP of the embodiment of the invention to be up to downstream data flow in the implementation method and to transmit process chart.
Embodiment
In embodiments of the present invention, provide a kind of IP to transmit implementation method, be used in forwarding with system's realization IP traffic of enabling the QINQ port.
As shown in Figure 1, the IP forwarding implementation method according to the embodiment of the invention comprises: step S102, the IP traffic of the TAG that the extraction chip receives; Step S104, the designated port by not enabled QINQ carries out three layers of forwarding to the IP traffic of mark TAG, and other data flow except that the IP traffic of TAG that receives on the QINQ port is still handled on this QINQ port.
Wherein, before carrying out three layers of forwarding, this method can further comprise: designated port is configured to not carry out the VLAN inspection for the data flow of this port of flowing through; Dispose the appointment VLAN that does not conflict with existing VLAN, designated port is set to be configured to from collar extension (by PHY from ring) and in the mode of UNTAG and specifies (port can not belong to the VLAN that runs data in the reality like this, does not have loop and produces) in the VLAN.So just can guarantee that the data flow of receiving at the QINQ port forwards from this port by using this VLAN former state.
And designated port is a port of selecting from one or more ports of not enabled QINQ, and this designated port does not belong to existing VLAN.
In addition, before carrying out three layers of forwarding, this method can further comprise: the port arrangement that will enable QINQ is for to copy to its Media Access Control Address of learning from the local virtual local area network (LAN) the pairing VLAN of three layer interfaces at this port place.Like this, CPU can find MAC when searching exporting according to ARP information in the VLAN of three layer interfaces, and then obtains outlet.
The purpose of duplicating here, is because whether the packet that receives after the interface enabling QINQ has the address learning of tag chip all only can take place in the nativeVLAN of this port.
Afterwards, when carrying out three layers of forwarding, after the IP traffic that has extracted TAG, this method can further comprise: the port of enabling QINQ that receives IP traffic is redirected to from collar extension according to the IP traffic of pre-configured access control list with TAG, afterwards this IP traffic is carried out the IP route.The purpose of configuration ACL is that IP traffic with tag is redirected to from collar extension on the QINQ port, and the QINQ port will guarantee that the ARP packet that receives from native VLAN can transmitted to CPU and the normal routing forwarding of IP message.
For the IP traffic of UNTAG, carry out the IP route and get final product (data flow of UNTAG is transmitted and do not had problems, and the IP traffic that therefore only needs to be redirected tag gets final product) on the QINQ port.
As shown in Figure 2, port (PORT) is the port of using for the IP message of handling TAG, the IP traffic of the TAG that the processing of data flow is received descending connection (downlink) mouth exactly is redirected to port, PHY by port makes the data flow of going out from the port mouth come back to port from ring to carry out three layers of forwarding then, so can not carry out normal three layers of forwarding owing to open the function of QINQ on this port.
All IP operation of enabling the TAG on the QINQ port can be used same port mouth and be realized that (the flow situation according to reality in the application is configured in three layers of forwarding.Can several QINQ ports use same port and decompose flow, with the QINQ port and use port and divide configuration respectively in the mode of group), when redirected, all use the same reservation VLAN that can not use in the reality.
In addition, the port of enabling QINQ in this method need be in the VLAN of two layers of tag data flow correspondence.
In the middle of practical application, as shown in Figure 3,, can judge at first whether from the IP traffic with the registered permanent residence be the tag data flow for uplink; Be judged as under the situation that is, this data flow is being redirected to the non-QINQ port of appointment, carrying out route afterwards; Under situation about not being judged as not, if this data flow be IP traffic (the not IP traffic of tag) then directly carry out route, if this data flow is not IP traffic then this data flow is carried out two layers of processing;
Afterwards, route or two layers of processed data stream are outputed to up connector.
As shown in Figure 4, the processing for downstream data flow the following is:
If IP traffic then carries out route and handles, otherwise carries out two layers of processing;
Afterwards route processing or two layers of processed data stream are outputed to descending connector.
In sum, the present invention separates the IP traffic of the TAG that chip is received from all data flow, use an independent function that realizes three layers of forwarding of mouth of not enabling QINQ, by means of technical scheme of the present invention, can effectively guarantee the support that realization is transmitted IP under the situation that keeps original QINQ function.
The above is the preferred embodiments of the present invention only, is not limited to the present invention, and for a person skilled in the art, the present invention can have various changes and variation.Within the spirit and principles in the present invention all, any modification of being done, be equal to replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (6)

1. an IP transmits implementation method, is used for having that to enable QINQ be the forwarding that the system of the nested port of VLAN realizes IP traffic, it is characterized in that described method comprises:
IP traffic behind the label that the extraction chip receives;
The IP traffic of designated port by not enabled QINQ after to described label carries out three layers of forwarding, and other data flow the IP traffic behind described label that receives on the QINQ port is still handled on this QINQ port.
2. method according to claim 1 is characterized in that, before carrying out three layers of forwarding, further comprises:
Described designated port is configured to not carry out the VLAN inspection for the data flow of this port of flowing through;
Dispose the appointment VLAN that does not conflict with existing VLAN, described designated port is set to be configured in the described appointment VLAN from collar extension and in the mode of not carrying out label.
3. method according to claim 1 is characterized in that, before carrying out three layers of forwarding, further comprises:
To enable the described port arrangement of QINQ for its Media Access Control Address of learning from the local virtual local area network (LAN) is copied to the pairing VLAN of three layer interfaces at this port place.
4. method according to claim 1 is characterized in that, after extracting described IP data, further comprises:
The port of enabling QINQ that receives described IP traffic is redirected to described IP traffic described from collar extension according to pre-configured access control list.
5. according to each described method in the claim 1 to 4, it is characterized in that described designated port is a port of selecting from one or more ports of not enabled QINQ.
6. according to each described method in the claim 1 to 4, it is characterized in that described designated port does not belong to existing VLAN.
CN2008101262294A 2008-06-26 2008-06-26 Method for realizing IP transmitting Expired - Fee Related CN101616062B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2008101262294A CN101616062B (en) 2008-06-26 2008-06-26 Method for realizing IP transmitting

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2008101262294A CN101616062B (en) 2008-06-26 2008-06-26 Method for realizing IP transmitting

Publications (2)

Publication Number Publication Date
CN101616062A true CN101616062A (en) 2009-12-30
CN101616062B CN101616062B (en) 2012-07-04

Family

ID=41495484

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2008101262294A Expired - Fee Related CN101616062B (en) 2008-06-26 2008-06-26 Method for realizing IP transmitting

Country Status (1)

Country Link
CN (1) CN101616062B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101902397A (en) * 2010-06-23 2010-12-01 中兴通讯股份有限公司 Message forwarding method and switching chip

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1145333C (en) * 2001-06-27 2004-04-07 华为技术有限公司 Fast protecting switching method for multi-protocol label exchange
US7801123B2 (en) * 2004-04-16 2010-09-21 Alcatel Lucent Method and system configured for facilitating residential broadband service
CN100518135C (en) * 2004-08-17 2009-07-22 华为技术有限公司 Method for renewing route in multi protocol label exchanging network
CN100591044C (en) * 2006-10-16 2010-02-17 华为技术有限公司 Method and device for establishing forward filtering table

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101902397A (en) * 2010-06-23 2010-12-01 中兴通讯股份有限公司 Message forwarding method and switching chip
CN101902397B (en) * 2010-06-23 2015-06-10 中兴通讯股份有限公司 Message forwarding method and switching chip

Also Published As

Publication number Publication date
CN101616062B (en) 2012-07-04

Similar Documents

Publication Publication Date Title
CN101160850B (en) Method and device for forwarding packet
CN101820392B (en) A kind of method and network processing unit realizing multi-service forwarding
US8861547B2 (en) Method, apparatus, and system for packet transmission
EP1755278B1 (en) A method for raising access capacity of wide-band access equipment user
CN103368775B (en) flow backup method and core switching device
CN103023792A (en) Conveying the VLAN/L2 VSN/bridging-domain of the incoming interface (IIF) when transporting multicast traffic
CN102611634A (en) IP (Internet protocol) network access method and edge device
CN102801729A (en) Virtual machine message forwarding method, network switching equipment and communication system
CN101692646A (en) Method for handling layer-2 forwarding and distributed device
EP3200399A1 (en) Automated mirroring and remote switch port analyzer (rspan)/encapsulated remote switch port analyzer (erspan) functions using fabric attach (fa) signaling
CN111865658B (en) vCPE multi-tenant-based tenant service identification mapping method and system
CN109120492B (en) Storage unit, source switch, message forwarding method and mirror image system
JP2007068050A (en) Packet transfer apparatus
EP3200398B1 (en) Automated mirroring and remote switch port analyzer (rspan)/encapsulated remote switch port analyzer (erspan) functions using fabric attach (fa) signaling
JP6375206B2 (en) Relay system and switch device
CN109639552A (en) A kind of three-layer forwarding method and device
CN106059886A (en) Message forwarding method and device
EP2897328B1 (en) Method, system and apparatus for establishing communication link
CN100559772C (en) Mixed virtual private network system and backbone network edge apparatus and collocation method thereof
CN100407684C (en) Method and system of user access virtual special LAN service
CN108055215B (en) Message forwarding method and device
JP2004159019A (en) Extended vlan tag swap system
CA2674280C (en) Control frame handling by a provider backbone bridge
CN101616062B (en) Method for realizing IP transmitting
CN101160868A (en) Method and device for implementing MPLS packet forwarding

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

Granted publication date: 20120704

Termination date: 20200626