CN105099927B - A kind of method and router for realizing multi-service passage - Google Patents

A kind of method and router for realizing multi-service passage Download PDF

Info

Publication number
CN105099927B
CN105099927B CN201510549000.1A CN201510549000A CN105099927B CN 105099927 B CN105099927 B CN 105099927B CN 201510549000 A CN201510549000 A CN 201510549000A CN 105099927 B CN105099927 B CN 105099927B
Authority
CN
China
Prior art keywords
network
different
service
business
service passage
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.)
Active
Application number
CN201510549000.1A
Other languages
Chinese (zh)
Other versions
CN105099927A (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.)
Huzhou Yinglie Intellectual Property Operation Co ltd
Original Assignee
Shanghai Feixun Data 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 Feixun Data Communication Technology Co Ltd filed Critical Shanghai Feixun Data Communication Technology Co Ltd
Priority to CN201510549000.1A priority Critical patent/CN105099927B/en
Publication of CN105099927A publication Critical patent/CN105099927A/en
Application granted granted Critical
Publication of CN105099927B publication Critical patent/CN105099927B/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/30Routing of multiclass traffic

Landscapes

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

Abstract

The invention provides a kind of method and router for realizing multi-service passage, methods described is applied to routing device, wherein, including multiple routing tables, each routing table corresponds to a kind of Network, in addition to:Step S1, different filter identification values is set for the different Networks, and the filter identification value is associated with the corresponding routing table;Step S2, different name resolution server address is distributed for the different Networks.The beneficial effect of its technical scheme is, by setting different filter identification values for different Networks, and it is name resolution server address corresponding to different Network distribution, different Networks is forwarded by different routing channels, overcome the defects of router in the prior art can not realize multi-service and deposit.

Description

A kind of method and router for realizing multi-service passage
Technical field
The present invention relates to network technique field, more particularly to a kind of method and router for realizing multi-service passage.
Background technology
Router is each LAN, the equipment of wide area network in connection internet, and it can be automatically selected according to the situation of channel It is route with setting, with optimal path, signal is sent by tandem.And the router of existing carrier class can realize a variety of industry Business, such as surf the Net service business, TR069 business, VOIP telephone service business, but there was only an acquiescence on traditional router Route is communicated with server, is wanted to realize multiple business on traditional router, is then needed to different traffic assignments Different IP network sections, and different VLAN (Virtual Local Area Network VLANs) interfaces and different Name resolution server, and existing traditional router can not be accomplished.
The content of the invention
Above mentioned problem existing for multi-service is realized for conventional router in the prior art, one kind is now provided and aims at road By a kind of method and router for realizing multi-service passage of various network services non-interference on device.
Concrete technical scheme is as follows:
A kind of method for realizing multi-service passage, applied to routing device, wherein, including multiple routing tables, it is each described Routing table corresponds to a kind of Network, in addition to:
Step S1, different filter identification values is set for the different Networks, and the filter identification value is closed The routing table corresponding to being linked to;
Step S2, different name resolution server address is distributed for the different Networks.
Preferably, the step S1 also includes, according to the different Networks be correspondingly arranged different gateways and Corresponding VLAN interface.
Preferably, the Network includes, Internet service, TR069 business, VOIP telephone service business.
Preferably, the step S2 also includes, and the filter identification of process corresponding to predetermined Network is revised as pair The filter identification value answered.
Preferably, the predetermined Network is TR069 business;And/or
The predetermined Network is VOIP telephone service business.
Preferably, the step S2 includes:
Step S21, the different name resolution server address of the corresponding different Network are provided;
Step S22, the type of the Network corresponding to judgement process;
Step S23, according to corresponding to the process, the type of the Network distributes different name resolution clothes Business device address.
Preferably, there is provided quantity storage element corresponding with the network traffic types quantity, each storage element A kind of middle corresponding name resolution server address of the Network of storage.
Preferably, in the step S22, there is provided a judging unit, judge the Network corresponding to the process Type.
Preferably, in the wide area network interface connection of the corresponding different Network by corresponding name resolution server In the storage element corresponding to the write-in of address.
Also include, a kind of router, wherein, using the method for realizing multi-service passage as described above.
Above-mentioned technical proposal has the following advantages that or beneficial effect:
By setting different filter identification values for different Networks, and it is corresponding for different Network distribution Name resolution server address, different Networks is forwarded by different routing channel, overcome in the prior art The defects of router can not realize multi-service and deposit.
Brief description of the drawings
With reference to appended accompanying drawing, more fully to describe embodiments of the invention.However, appended accompanying drawing be merely to illustrate and Illustrate, and be not meant to limit the scope of the invention.
Fig. 1 is a kind of flow chart for the embodiment of the method for realizing multi-service passage of the present invention;
It is that different Networks distribute different name solutions in a kind of method for realizing multi-service passage of the present invention that Fig. 2, which is, Analyse the flow chart of the embodiment of server address.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete Site preparation describes, it is clear that described embodiment is only part of the embodiment of the present invention, rather than whole embodiments.It is based on Embodiment in the present invention, those of ordinary skill in the art obtained on the premise of creative work is not made it is all its His embodiment, belongs to the scope of protection of the invention.
It should be noted that in the case where not conflicting, the feature in embodiment and embodiment in the present invention can phase Mutually combination.
The invention will be further described with specific embodiment below in conjunction with the accompanying drawings, but not as limiting to the invention.
The present invention includes a kind of method for realizing multi-service passage, including multiple different business, for multiple business point Method with different passages.
Then in preferred embodiment of the invention, as shown in Figure 1, there is provided a kind of method for realizing multi-service passage, application In routing device, wherein, including multiple routing tables, each routing table correspond to a kind of Network, in addition to:
Step S1, different filter identification values is set for different Networks, and filter identification value is associated with correspondingly Routing table;
Step S2, different name resolution server address is distributed for different Networks.
Above-mentioned technical proposal, by setting different filter identification values for different Network, and by filter identification value Corresponding routing table is associated with, different Network packets is carried out when forwarding by different routing tables, and pass through Different name resolution server address is distributed, different network services non-interfering can be coexisted on router.
In a kind of preferably embodiment, step S1 also includes, and is correspondingly arranged according to different Networks different Gateway and corresponding VLAN interface.
Above-mentioned technical proposal, different Networks is set to be forwarded by each exclusive gateway and VLAN interface, so as to Avoid interfering between different network service.
In a kind of preferably embodiment, Network may include, Internet service, TR069 business, VOIP phones clothes Business business etc.
In a kind of specific embodiment, different Networks can be set to be correspondingly arranged in the following manner different Gateway and corresponding VLAN interface:
ip route add default via 10.10.20.1dev vlan200table tr069;
Above-mentioned code represents:The packet of TR069 business all passes through gateway ip:10.10.20.1, interface vlan200 is carried out Forwarding.
ip route add default via 10.10.30.1dev vlan300table voip;
Above-mentioned code represents:The packet of VOIP telephone service industry all passes through gateway ip:10.10.30.1 interface Vlan300 is forwarded.
ip route add default via 10.10.41.1dev vlan100table deft;
Above-mentioned code represents:The packet of Internet service all passes through gateway ip:10.10.41.1, interface vlan100 enters Row forwarding.
As a preferred embodiment, filter identification value can be by realizing to nfmark assignment.
In a kind of specific embodiment, the Network that can be arranged to different in the following manner sets different mistakes Ident value is filtered, and filter identification value is associated with corresponding routing table:
echo 201tr069>>/etc/iproute2/rt_tables
ip rule add fwmark 0x00000001/0x0000000f table tr069
Above-mentioned code represents:Routing table corresponding to TR069 business is created, nfmark values are that 0x00000001 packet is The packet of TR069 business, routing forwarding correspond to routing table by TR069 business and carried out.
echo 200deft>>/etc/iproute2/rt_tables
ipRt2--ip rule add fwmark 0x00000000/0x0000000f table deft
Above-mentioned code represents:Default router table is created, the packet that nfmark is 0x00000000 is Internet service Packet, routing forwarding are carried out by default router table.
echo 202voip>>/etc/iproute2/rt_tables
ip rule add fwmark 0x00000002/0x0000000f table voip
Above-mentioned code represents:Routing table corresponding to VOIP telephone service industry is created, nfmark is 0x00000002 data Wrap as the packet of VOIP telephone service industry, routing table corresponding to routing forwarding VOIP telephone service industry is carried out.
In a kind of preferably embodiment, step S1 also includes, by the filtering of process corresponding to predetermined Network Mark is revised as corresponding filter identification value.
It is further preferred that predetermined Network can be TR069 business, and/or VOIP telephone service business.
, can be in the following manner by the filtering of process corresponding to predetermined Network in a kind of specific embodiment Mark is revised as corresponding filter identification value:
#define FORCE_SOCKET_USING_TR069 (fd) { unsigned int nfmark1=1;\
setsockopt(fd,SOL_SOCKET,SO_MARK,(void*)&nfmark1,sizeof(unsigned int));}
The nfmark of the process of corresponding TR069 business value is revised as 1 by above-mentioned code.
#define FORCE_SOCKET_USING_VOIP (fd) { unsigned int nfmark1=2;\
setsockopt(fd,SOL_SOCKET,SO_MARK,(void*)&nfmark1,sizeof(unsigned int));}
The nfmark of the process of corresponding VOIP telephone service industry value is revised as 1 by above-mentioned code.
In a kind of preferably embodiment, as shown in Fig. 2 step S2 includes:
Step S21, the different name resolution server address of corresponding different Network are provided;
Step S22, the type of Network corresponding to judgement process;
Step S23, according to corresponding to process, the type of Network distributes different name resolution server address.
In a kind of preferably embodiment, there is provided quantity storage element corresponding with network traffic types quantity, each A kind of corresponding name resolution server address of Network is stored in storage element.
In a kind of preferably embodiment, in step S22, there is provided a judging unit, judge network industry corresponding to process The type of business.
In a kind of preferably embodiment, in the wide area network interface connection of corresponding different Network by corresponding name In storage element corresponding to the write-in of word resolution server address.
As a kind of specific embodiment, distributing different name resolution server address for different Networks can It is accomplished by the following way:
Standardized domain name analytical function gethostbyname (name) can be rewritten, add judge network industry wherein The parameter of service type such as gethostbyname_ct (name, type) is to realize above-mentioned judging unit.
Further, the process of the process of TR069 business, the process of Internet service and VOIP telephone service business exists All it is changed to call gethostbyname_ct functions when calling domain name mapping function, parameter type value can correspond to:tr069、 Internet and voip.
Further, file/var/resolv_tr069.con, file/etc/resolv.conf, and file/var/ Resolv_voip.conf realizes above-mentioned multiple storage elements respectively, to store the name resolution of corresponding TR069 business respectively The name resolution server of server address, the name resolution server address of Internet service and VOIP telephone service business Address.
Further, gethostbyname_ct functions read file/var/resolv_ respectively according to type types Name resolution server address in tr069.conf ,/etc/resolv.conf or/var/resolv_voip.conf, from And it is embodied as different Networks and distributes different name resolution server address.
Further WAN (Wide Area Network interface) connections, the WAN connections of Internet service for working as TR069 business, or VOIP The WAN connections of telephone service business, when obtaining distributed name resolution server address information, it can store respectively to/var/ In resolv_tr069.conf ,/etc/resolv.conf or/var/resolv_voip.conf.
Also include in technical scheme, a kind of router, wherein, using the side for realizing multi-service passage as described above Method.
Above-mentioned technical proposal has the following advantages that or beneficial effect:By setting different filterings for different Networks Ident value, and be name resolution server address corresponding to different Network distribution, pass through different Networks Different routing channel forwardings, overcomes the defects of router in the prior art can not realize multi-service and deposit.
Preferred embodiments of the present invention are the foregoing is only, not thereby limit embodiments of the present invention and protection model Enclose, to those skilled in the art, should can appreciate that all with made by description of the invention and diagramatic content Scheme obtained by equivalent substitution and obvious change, should be included in protection scope of the present invention.

Claims (9)

1. a kind of method for realizing multi-service passage, applied to routing device, it is characterised in that including multiple routing tables, each The routing table corresponds to a kind of Network, in addition to:
Step S1, different filter identification values is set for the different Networks, and the filter identification value is associated with The corresponding routing table;
Step S2, different name resolution server address is distributed for the different Networks;
The step S1 also includes, and is correspondingly arranged different gateways according to the different Networks and corresponding VLAN connects Mouthful.
2. the method for multi-service passage is realized according to claim 1, it is characterised in that the Network includes, interconnection Network service, TR069 business, VOIP telephone service business.
3. the method for multi-service passage is realized according to claim 1, it is characterised in that the step S1 also includes, will be pre- The filter identification of process corresponding to fixed Network is revised as the corresponding filter identification value.
4. the method for multi-service passage is realized according to claim 3, it is characterised in that the predetermined Network is TR069 business;And/or
The predetermined Network is VOIP telephone service business.
5. the method for multi-service passage is realized according to claim 1, it is characterised in that the step S2 includes:
Step S21, the different name resolution server address of the corresponding different Network are provided;
Step S22, the type of the Network corresponding to judgement process;
Step S23, according to corresponding to the process, the type of the Network distributes the different name resolution servers Address.
6. the method for multi-service passage is realized according to claim 5, it is characterised in that provide quantity and the Network Storage element corresponding to number of types, a kind of corresponding name solution of the Network is each stored in the storage element Analyse server address.
7. the method for multi-service passage is realized according to claim 5, it is characterised in that in the step S22, there is provided one sentences Disconnected unit, judge the type of the Network corresponding to the process.
8. the method for multi-service passage is realized according to claim 6, it is characterised in that in the corresponding different network industry By in the storage element corresponding to the write-in of corresponding name resolution server address during the wide area network interface connection of business.
A kind of 9. router, it is characterised in that the method that multi-service passage is realized in application as described in claim 1-8 is any.
CN201510549000.1A 2015-08-31 2015-08-31 A kind of method and router for realizing multi-service passage Active CN105099927B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510549000.1A CN105099927B (en) 2015-08-31 2015-08-31 A kind of method and router for realizing multi-service passage

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510549000.1A CN105099927B (en) 2015-08-31 2015-08-31 A kind of method and router for realizing multi-service passage

Publications (2)

Publication Number Publication Date
CN105099927A CN105099927A (en) 2015-11-25
CN105099927B true CN105099927B (en) 2018-04-06

Family

ID=54579512

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510549000.1A Active CN105099927B (en) 2015-08-31 2015-08-31 A kind of method and router for realizing multi-service passage

Country Status (1)

Country Link
CN (1) CN105099927B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108667726B (en) * 2018-04-26 2021-03-02 中体彩科技发展有限公司 Transaction system and secondary routing control method

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1341313A (en) * 1999-02-23 2002-03-20 阿尔卡塔尔互联网运行公司 Multi-service network switch
CN102075444A (en) * 2011-02-28 2011-05-25 北京邮电大学 Network system and method for guaranteeing multi-type service quality

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101166146B (en) * 2006-10-19 2010-08-04 中兴通讯股份有限公司 Method for broad band access server to control three-fold service
EP2437470A1 (en) * 2010-09-30 2012-04-04 British Telecommunications Public Limited Company Network element and method for deriving quality of service data from a distributed hierarchical naming system
CN102624619B (en) * 2012-03-09 2015-05-27 上海大亚科技有限公司 Method for performing message forwarding route selection based on source address under multi-default gateway condition
US9438507B2 (en) * 2013-05-31 2016-09-06 Cisco Technology, Inc. Routing aggregation and prefix delegation

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1341313A (en) * 1999-02-23 2002-03-20 阿尔卡塔尔互联网运行公司 Multi-service network switch
CN102075444A (en) * 2011-02-28 2011-05-25 北京邮电大学 Network system and method for guaranteeing multi-type service quality

Also Published As

Publication number Publication date
CN105099927A (en) 2015-11-25

Similar Documents

Publication Publication Date Title
CN105306333B (en) For carrying out the method and controller of service chaining across multiple networks
US8121126B1 (en) Layer two (L2) network access node having data plane MPLS
US8085791B1 (en) Using layer two control protocol (L2CP) for data plane MPLS within an L2 network access node
CN104519121B (en) Session aware services chain in computer network
EP2213051B1 (en) Geographic trunk groups
CN106453027B (en) Gre tunneling implementation method, access device and aggregation gateway
CN100440868C (en) Method for accessing virtual LAN
CN102325073B (en) A kind of message processing method based on VPLS and device thereof
TWI548239B (en) Openflow switch and method for packet exchanging thereof, sdn controller and data flow control method thereof
US20200244486A1 (en) Dynamic customer vlan identifiers in a telecommunications network
CN106953788A (en) A kind of Virtual Network Controller and control method
CN109462534A (en) Regional internet controller, regional internet control method and computer storage medium
CN100473040C (en) VPN realizing method
US7813335B2 (en) Internet protocol trunk groups
CN105337894B (en) It is a kind of to provide the devices, systems, and methods of service quality QoS for service message
CN105991441B (en) The method and apparatus that route forwarding table is issued to BGP Route Selection
CN102711181B (en) A kind of mobile terminal utilizes multilink to realize the method for network shunt
CN101360037B (en) Data service network system and access method of data service
CN100518138C (en) Method for realizing virtual special network
CN110290044A (en) A kind of shunt method, device and the storage medium of VPN network and core network
US8718092B2 (en) Communication network system, network switch and bandwidth control, for site-to-site communications
CN102377645B (en) Exchange chip and realization method thereof
CN105991464B (en) Shunt method, master control borad, interface board and the gateway of network flow
CN105099927B (en) A kind of method and router for realizing multi-service passage
CN103916364A (en) SLA level implement method and system for IMS service group customer

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20201125

Address after: Room 10242, No. 260, Jiangshu Road, Xixing street, Binjiang District, Hangzhou City, Zhejiang Province

Patentee after: Hangzhou Jiji Intellectual Property Operation Co.,Ltd.

Address before: 201616 Shanghai city Songjiang District Sixian Road No. 3666

Patentee before: Phicomm (Shanghai) Co.,Ltd.

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20201217

Address after: Xinlian Creative Park, No.70, Matai street, Hunan Road Street, Gulou District, Nanjing City, Jiangsu Province

Patentee after: Shen Shuangli

Address before: Room 10242, No. 260, Jiangshu Road, Xixing street, Binjiang District, Hangzhou City, Zhejiang Province

Patentee before: Hangzhou Jiji Intellectual Property Operation Co.,Ltd.

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20210303

Address after: 313000 room 1019, Xintiandi commercial office, Yishan street, Wuxing District, Huzhou, Zhejiang, China

Patentee after: Huzhou YingLie Intellectual Property Operation Co.,Ltd.

Address before: Xinlian Creative Park, No.70, Matai street, Hunan Road Street, Gulou District, Nanjing City, Jiangsu Province

Patentee before: Shen Shuangli

PE01 Entry into force of the registration of the contract for pledge of patent right
PE01 Entry into force of the registration of the contract for pledge of patent right

Denomination of invention: A Method of Realizing Multi service Channel and Router

Effective date of registration: 20221204

Granted publication date: 20180406

Pledgee: Huzhou Wuxing Rural Commercial Bank Co.,Ltd. high tech Zone Green sub branch

Pledgor: Huzhou YingLie Intellectual Property Operation Co.,Ltd.

Registration number: Y2022330003403

PC01 Cancellation of the registration of the contract for pledge of patent right
PC01 Cancellation of the registration of the contract for pledge of patent right

Date of cancellation: 20231205

Granted publication date: 20180406

Pledgee: Huzhou Wuxing Rural Commercial Bank Co.,Ltd. high tech Zone Green sub branch

Pledgor: Huzhou YingLie Intellectual Property Operation Co.,Ltd.

Registration number: Y2022330003403