CN107707481A - The message processing method of the WAN mouths of support Utag and Tag based on Vnet routers - Google Patents

The message processing method of the WAN mouths of support Utag and Tag based on Vnet routers Download PDF

Info

Publication number
CN107707481A
CN107707481A CN201711206709.7A CN201711206709A CN107707481A CN 107707481 A CN107707481 A CN 107707481A CN 201711206709 A CN201711206709 A CN 201711206709A CN 107707481 A CN107707481 A CN 107707481A
Authority
CN
China
Prior art keywords
pon
utag
vnet
routers
support
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
CN201711206709.7A
Other languages
Chinese (zh)
Other versions
CN107707481B (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.)
Shanghai Gongjin Communication Technology Co Ltd
Original Assignee
Shanghai Gongjin Communication Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Gongjin Communication Technology Co Ltd filed Critical Shanghai Gongjin Communication Technology Co Ltd
Priority to CN201711206709.7A priority Critical patent/CN107707481B/en
Publication of CN107707481A publication Critical patent/CN107707481A/en
Application granted granted Critical
Publication of CN107707481B publication Critical patent/CN107707481B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/58Association of routers

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Small-Scale Networks (AREA)

Abstract

The present invention relates to a kind of message processing method of the WAN mouths of support Utag and Tag based on Vnet routers, wherein this method includes the pretreatment of virtual interface, packet receiving processing and processing procedure of giving out a contract for a project.Using the message processing method of the support Utag and Tag based on Vnet routers of the invention WAN mouths, the data model of the Utag and Tag for supporting WAN connections simultaneously can be achieved, further expand the multiservice environment of router.

Description

The message processing method of the WAN mouths of support Utag and Tag based on Vnet routers
Technical field
The present invention relates to Internet technical field, more particularly to home router technical field, in particular to one kind to be based on The message processing method of the support Utag and Tag of Vnet routers WAN mouths.
Background technology
In home router, it may be desirable to the situation of more Wan connections, and Tag and Utag situation are supported simultaneously, according to Vnet principle, using the Linux instruments such as Vconfig, design is a kind of while supports Wan mouths connection Tag and Utag data mould Type.
The content of the invention
The purpose of the present invention is the shortcomings that overcoming above-mentioned prior art, there is provided a kind of to realize multiservice environment The message processing method of the WAN mouths of support Utag and Tag based on Vnet routers.
To achieve these goals, at the message of the WAN mouths of support Utag and Tag of the invention based on Vnet routers Reason method has following form:
The message processing method of the WAN mouths of the support Utag and Tag based on Vnet routers, it is mainly characterized by, institute The method following steps stated:
(1) pretreatment of virtual interface;
(2) the packet receiving processing of kernel, comprises the following steps:
(2.1) whether descending packet is judged with Tag, if with Tag, into step (2.2), otherwise into step (2.5);
(2.2) search whether the virtual interface corresponding with the descending packet be present, if in the presence of into step (2.3), otherwise into step (2.4);
(2.3) go to corresponding virtual interface and the descending packet is handled;
(2.4) the descending packet is handled according to big vast model agreement;
(2.5) the descending packet is handled according to related command;
(3) processing of giving out a contract for a project of kernel, comprises the following steps:
(3.1) corresponding Vlan equipment is searched;
(3.2) up packet is sent to Pon and driven;
(3.3) the Pon drivings described in send the up packet, to complete to give out a contract for a project.
The step of message processing method of the WAN mouths of the support Utag and Tag based on Vnet routers (1), includes following Step:
(1.1) first via is established by connect Wan1 by routing device, while sends Vconfig orders and set in real network It is standby to create the first virtual interface Pon.1;
(1.2) secondary route is established to connect Wan2 by described routing device, while sends vconfig add pon Vlan orders create the second virtual interface Pon.Vlan in described real network equipment, and send a configuration order, with to institute The the second virtual interface Pon.Vlan stated configures one the 3rd virtual interface Pon.2.
In the step of message processing method of the WAN mouths of the support Utag and Tag based on Vnet routers (1.1), institute The the first virtual interface Pon.1 stated is created on the Pon interfaces in real network equipment.
In the step of message processing method of the WAN mouths of the support Utag and Tag based on Vnet routers (1.1), institute The the first virtual interface Pon.1 stated is three layer interfaces.
In the step of message processing method of the WAN mouths of the support Utag and Tag based on Vnet routers (1.2), institute The the second virtual interface Pon.Vlan stated is two layer interfaces.
In the step of message processing method of the WAN mouths of the support Utag and Tag based on Vnet routers (1.2), institute The 3rd virtual interface Pon.2 stated is three layer interfaces.
In the step of message processing method of the WAN mouths of the support Utag and Tag based on Vnet routers (1.2), institute The configuration order stated is vnetconfig add pon.2pon.vlan orders.
In the step of message processing method of the WAN mouths of the support Utag and Tag based on Vnet routers (2.2), institute The virtual interface stated is Pon.Vlan virtual interfaces.
In the step of message processing method of the WAN mouths of the support Utag and Tag based on Vnet routers (2.5), institute The order stated includes Pon orders and dev->Ifindex orders.
The step of message processing method of the WAN mouths of the support Utag and Tag based on Vnet routers (3.1), is specific For:
Function vlan_dev_hard_start_xmit () is given out a contract for a project according to Vlan to search corresponding Vlan equipment.
The step of message processing method of the WAN mouths of the support Utag and Tag based on Vnet routers (3.2), is specific For:
The up packet is sent to described Pon drivings according to dev_queue_xmit functions.
The message processing method of the WAN mouths of the support Utag and Tag based on Vnet routers in the invention is employed, is led to Cross the pretreatment, packet receiving processing and processing procedure of giving out a contract for a project of virtual interface, can be achieved one support simultaneously the Utag of WAN connections with Tag data model, further expand the multiservice environment of router.
Brief description of the drawings
Fig. 1 is the schematic diagram of the support Tag and Utag based on VNET routers of present invention Wan mouth data models.
Embodiment
In order to more clearly describe the technology contents of the present invention, carried out with reference to specific embodiment further Description.
The message processing method of the WAN mouths of the support Utag and Tag based on Vnet routers, it is mainly characterized by, institute The method following steps stated:
(1) pretreatment of virtual interface;
(2) the packet receiving processing of kernel, comprises the following steps:
(2.1) whether descending packet is judged with Tag, if with Tag, into step (2.2), otherwise into step (2.5);
(2.2) search whether the virtual interface corresponding with the descending packet be present, if in the presence of into step (2.3), otherwise into step (2.4);
(2.3) go to corresponding virtual interface and the descending packet is handled;
(2.4) the descending packet is handled according to big vast model agreement;
(2.5) the descending packet is handled according to related command;
(3) processing of giving out a contract for a project of kernel, comprises the following steps:
(3.1) corresponding Vlan equipment is searched;
(3.2) up packet is sent to Pon and driven;
(3.3) the Pon drivings described in send the up packet, to complete to give out a contract for a project.
The step of message processing method of the WAN mouths of the support Utag and Tag based on Vnet routers (1), includes following Step:
(1.1) first via is established by connect Wan1 by routing device, while sends Vconfig orders and set in real network It is standby to create the first virtual interface Pon.1;
(1.2) secondary route is established to connect Wan2 by described routing device, while sends vconfig add pon Vlan orders create the second virtual interface Pon.Vlan in described real network equipment, and send a configuration order, with to institute The the second virtual interface Pon.Vlan stated configures one the 3rd virtual interface Pon.2.
In the step of message processing method of the WAN mouths of the support Utag and Tag based on Vnet routers (1.1), institute The the first virtual interface Pon.1 stated is created on the Pon interfaces in real network equipment.
In the step of message processing method of the WAN mouths of the support Utag and Tag based on Vnet routers (1.1), institute The the first virtual interface Pon.1 stated is three layer interfaces.
In the step of message processing method of the WAN mouths of the support Utag and Tag based on Vnet routers (1.2), institute The the second virtual interface Pon.Vlan stated is two layer interfaces.
In the step of message processing method of the WAN mouths of the support Utag and Tag based on Vnet routers (1.2), institute The 3rd virtual interface Pon.2 stated is three layer interfaces.
In the step of message processing method of the WAN mouths of the support Utag and Tag based on Vnet routers (1.2), institute The configuration order stated is vnetconfig add pon.2pon.vlan orders.
In the step of message processing method of the WAN mouths of the support Utag and Tag based on Vnet routers (2.2), institute The virtual interface stated is Pon.Vlan virtual interfaces.
In the step of message processing method of the WAN mouths of the support Utag and Tag based on Vnet routers (2.5), institute The order stated includes Pon orders and dev->Ifindex orders.
The step of message processing method of the WAN mouths of the support Utag and Tag based on Vnet routers (3.1), is specific For:
Function vlan_dev_hard_start_xmit () is given out a contract for a project according to Vlan to search corresponding Vlan equipment.
The step of message processing method of the WAN mouths of the support Utag and Tag based on Vnet routers (3.2), is specific For:
The up packet is sent to described Pon drivings according to dev_queue_xmit functions.
In actual applications, Utag WAN connections, the virtual interface name Pon.1 directly on physical device Pon;Band The virtual two layer interface Pon.vlan of vconfig add pon vlan are used on the tag present Pon mouths of WAN connections, simultaneously With vnetconfig add pon.2pon.vlan, a L 3 virtual interface Pon.2 is configured to Pon.vlan.
In actual applications, the process for handling WAN mouth packet receivings is that packet receiving function is called in physical device Pon driving Netif_receive_skb (), this function call Vlan equipment processing function vnet_skb_recv (), vnet_skb_recv () exists according to whether Vlan equipment corresponding to existing, and goes to corresponding vlan equipment and is handled, the then progress being not present Hong Fan;And utag wan connections, then directly search virtual unit corresponding on pon.
In actual applications, it is somebody's turn to do in the message processing method of WAN mouths of support Utag and Tag based on Vnet routers, First by router establish one route WAN connection WAN1, with vconfig on real network equipment PON interfaces directly virtually One three layer interface pon.1;Secondly Article 2 route WAN connection WAN2, VALN VLAN1 are established by router, uses vconfig A direct virtual interface pon.VLAN1 on PON interfaces, while a virtual three layer interface name pon.2;At 3rd step kernel When managing descending association message, if whether the bag for judging to come in, with tag, first goes to search whether corresponding pon.vlan deposits with tag ;If without tag, directly according to pon and dev->Ifindex is handled to search corresponding virtual interface;4th step During the up association message of kernel processes, call VLAN to give out a contract for a project function vlan_dev_hard_start_xmit (), find corresponding to VLAN equipment, call dev_queue_xmit that bag is dealt into driving, PON drivings are transmitted, and complete to give out a contract for a project.
The message processing method of the WAN mouths of the support Utag and Tag based on Vnet routers in the invention is employed, is led to Cross the pretreatment, packet receiving processing and processing procedure of giving out a contract for a project of virtual interface, can be achieved one support simultaneously the Utag of WAN connections with Tag data model, further expand the multiservice environment of router.
In this description, the present invention is described with reference to its specific embodiment.But it is clear that it can still make Various modifications and alterations are without departing from the spirit and scope of the present invention.Therefore, specification and drawings are considered as illustrative It is and nonrestrictive.

Claims (11)

1. a kind of message processing method of the WAN mouths of support Utag and Tag based on Vnet routers, it is characterised in that described Method following steps:
(1) pretreatment of virtual interface;
(2) the packet receiving processing of kernel, comprises the following steps:
(2.1) whether descending packet is judged with Tag, if with Tag, into step (2.2), otherwise into step (2.5);
(2.2) search whether the virtual interface corresponding with the descending packet be present, if in the presence of into step (2.3), otherwise into step (2.4);
(2.3) go to corresponding virtual interface and the descending packet is handled;
(2.4) the descending packet is handled according to big vast model agreement;
(2.5) the descending packet is handled according to related command;
(3) processing of giving out a contract for a project of kernel, comprises the following steps:
(3.1) corresponding Vlan equipment is searched;
(3.2) up packet is sent to Pon and driven;
(3.3) the Pon drivings described in send the up packet, to complete to give out a contract for a project.
2. the message processing method of the WAN mouths of support Utag and Tag according to claim 1 based on Vnet routers, Characterized in that, described step (1) comprises the following steps:
(1.1) first via is established by connect Wan1 by routing device, while sends Vconfig orders and created in real network equipment Build the first virtual interface Pon.1;
(1.2) secondary route is established to connect Wan2 by described routing device, while sends vconfig add pon vlan Order and create the second virtual interface Pon.Vlan in described real network equipment, and send a configuration order, with to described Second virtual interface Pon.Vlan configures one the 3rd virtual interface Pon.2.
3. the message processing method of the WAN mouths of support Utag and Tag according to claim 2 based on Vnet routers, Characterized in that, in described step (1.1), Pon interfaces of the first described virtual interface Pon.1 in real network equipment Upper establishment.
4. the message processing method of the WAN mouths of support Utag and Tag according to claim 2 based on Vnet routers, Characterized in that, in described step (1.1), the first described virtual interface Pon.1 is three layer interfaces.
5. the message processing method of the WAN mouths of support Utag and Tag according to claim 2 based on Vnet routers, Characterized in that, in described step (1.2), the second described virtual interface Pon.Vlan is two layer interfaces.
6. the message processing method of the WAN mouths of support Utag and Tag according to claim 2 based on Vnet routers, Characterized in that, in described step (1.2), the 3rd described virtual interface Pon.2 is three layer interfaces.
7. the message processing method of the WAN mouths of support Utag and Tag according to claim 1 based on Vnet routers, Characterized in that, in described step (1.2), described configuration order is ordered for vnetconfig add pon.2pon.vlan Order.
8. the message processing method of the WAN mouths of support Utag and Tag according to claim 1 based on Vnet routers, Characterized in that, in described step (2.2), described virtual interface is Pon.Vlan virtual interfaces.
9. the message processing method of the WAN mouths of support Utag and Tag according to claim 1 based on Vnet routers, Characterized in that, in described step (2.5), described order includes Pon orders and dev->Ifindex orders.
10. the message processing method of the WAN mouths of support Utag and Tag according to claim 1 based on Vnet routers, Characterized in that, described step (3.1) is specially:
Function vlan_dev_hard_start_xmit () is given out a contract for a project according to Vlan to search corresponding Vlan equipment.
11. the message processing method of the WAN mouths of support Utag and Tag according to claim 1 based on Vnet routers, Characterized in that, described step (3.2) is specially:
The up packet is sent to described Pon drivings according to dev_queue_xmit functions.
CN201711206709.7A 2017-11-27 2017-11-27 Message processing method of WAN port supporting Utag and Tag based on Vnet router Active CN107707481B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711206709.7A CN107707481B (en) 2017-11-27 2017-11-27 Message processing method of WAN port supporting Utag and Tag based on Vnet router

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711206709.7A CN107707481B (en) 2017-11-27 2017-11-27 Message processing method of WAN port supporting Utag and Tag based on Vnet router

Publications (2)

Publication Number Publication Date
CN107707481A true CN107707481A (en) 2018-02-16
CN107707481B CN107707481B (en) 2020-07-31

Family

ID=61180994

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711206709.7A Active CN107707481B (en) 2017-11-27 2017-11-27 Message processing method of WAN port supporting Utag and Tag based on Vnet router

Country Status (1)

Country Link
CN (1) CN107707481B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109818982A (en) * 2019-03-27 2019-05-28 深圳市吉祥腾达科技有限公司 A method of it promoting network communication equipment and creates performance

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6515993B1 (en) * 1999-05-28 2003-02-04 Advanced Micro Devices, Inc. Method and apparatus for manipulating VLAN tags
US20080175254A1 (en) * 2007-01-22 2008-07-24 Alpha Nerworks Inc. Method of learning address in Virtual LAN system
CN102769557A (en) * 2012-08-09 2012-11-07 深圳市共进电子股份有限公司 Transmission method and transmission device of business data message
CN103023769A (en) * 2013-01-22 2013-04-03 烽火通信科技股份有限公司 Method for forwarding two-layer broadcasting packets and untagged packets of ONU (optical network unit)
CN103078779A (en) * 2012-12-28 2013-05-01 太仓市同维电子有限公司 Method for realizing different internet businesses based on vlan (virtual local area network) at same interface
CN104243257A (en) * 2013-06-06 2014-12-24 太仓市同维电子有限公司 Method for realizing dynamic shunting by using virtual port in optical network unit

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6515993B1 (en) * 1999-05-28 2003-02-04 Advanced Micro Devices, Inc. Method and apparatus for manipulating VLAN tags
US20080175254A1 (en) * 2007-01-22 2008-07-24 Alpha Nerworks Inc. Method of learning address in Virtual LAN system
CN102769557A (en) * 2012-08-09 2012-11-07 深圳市共进电子股份有限公司 Transmission method and transmission device of business data message
CN103078779A (en) * 2012-12-28 2013-05-01 太仓市同维电子有限公司 Method for realizing different internet businesses based on vlan (virtual local area network) at same interface
CN103023769A (en) * 2013-01-22 2013-04-03 烽火通信科技股份有限公司 Method for forwarding two-layer broadcasting packets and untagged packets of ONU (optical network unit)
CN104243257A (en) * 2013-06-06 2014-12-24 太仓市同维电子有限公司 Method for realizing dynamic shunting by using virtual port in optical network unit

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109818982A (en) * 2019-03-27 2019-05-28 深圳市吉祥腾达科技有限公司 A method of it promoting network communication equipment and creates performance
CN109818982B (en) * 2019-03-27 2021-08-17 深圳市吉祥腾达科技有限公司 Method for improving new building performance of network communication equipment

Also Published As

Publication number Publication date
CN107707481B (en) 2020-07-31

Similar Documents

Publication Publication Date Title
CN104243270B (en) A kind of method and apparatus for establishing tunnel
CN103347013B (en) A kind of OpenFlow network system and method strengthening programmability
CN104092595B (en) Message processing method and device in virtualization system based on 802.1BR
CN104702479B (en) The method and apparatus that tunnel is established in SDN network
RU2661768C2 (en) Arp processing method, switch device and control module
CN109120494A (en) The method of physical machine is accessed in cloud computing system
CN109361600B (en) Method and equipment for acquiring path identifier
CN105634986A (en) Switch implementation method and system
CN104380667A (en) Method and device for routing data message
US20180077048A1 (en) Controller, control method and program
CN106209553A (en) Message processing method, equipment and system
CN110430114B (en) Virtual router and method for realizing interconnection between SDN network and traditional IP network
CN104125128A (en) Method for supporting VLAN (virtual local area network) by aid of Linux soft bridge
CN104702438A (en) PE apparatus management method and device
CN105052087A (en) Table items addressing method, switch, and controller based on flow table
US20180088972A1 (en) Controller, control method and program
CN102231708A (en) Virtual routing device and routing method thereof
CN103166854B (en) LAN and wan business binding method and system
CN109361606A (en) A kind of message handling system and the network equipment
CN108833232B (en) PPPoE client implementation method based on VPP and PPPoE client
CN104333475A (en) Network topology discovery method and system based on SDN
CN108390821A (en) A kind of openflow interchangers realize the method and system of dual-active
CN105453513A (en) Packet forwarding method, forwarding entry delivery method, and network device
CN104092684A (en) Method and device for supporting VPN based on OpenFlow protocol
CN104378299A (en) Flow table entry processing method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant