CN107547217A - Router traffic collocation method and router - Google Patents
Router traffic collocation method and router Download PDFInfo
- Publication number
- CN107547217A CN107547217A CN201610473604.7A CN201610473604A CN107547217A CN 107547217 A CN107547217 A CN 107547217A CN 201610473604 A CN201610473604 A CN 201610473604A CN 107547217 A CN107547217 A CN 107547217A
- Authority
- CN
- China
- Prior art keywords
- router
- configuration
- function
- configuring request
- business
- 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
Links
Landscapes
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The embodiment of the present invention provides router traffic collocation method and router, the configuring request that router is sent by receiving terminal, then oneself generates configuration data according to configuring request so as to which finishing service configures;The configuration data of business configuration is carried out by being generated in router side, so that the terminal that business configuration is carried out to router need not issue the configuration data of magnanimity, and only need that data configuring request simply too much will be oppositely disposed and be sent to router, during so that even a large number of services to router configuring, also be not in that configuration data issues the incomplete problem presence of configuration data that is slow, issuing, improve the efficiency and Consumer's Experience of business configuration.
Description
Technical field
The present invention relates to the communications field, more particularly to router traffic collocation method and router.
Background technology
The core data equipment of IP (Internet Protocol, the agreement interconnected between network) network, as in,
In high-end router, it is often necessary to limiting performance test is carried out to equipment and carries out Large Copacity configuration.Great Rong
Amount configuration requires with limiting performance test to be completed to match somebody with somebody the substantial amounts of business of router progress within the extremely short time
Put.Necessarily include the business configuration data of magnanimity in a large number of services configuration, and allocation plan of the prior art
All it is that configuration data is issued in router by the terminal that business configuration is carried out to router, is realized pair with this
The business configuration of router.Simple illustration is carried out to configuration of routers scheme of the prior art below:
In a kind of allocation plan of prior art, configuration data previously generates, and is stored in and is with " .txt "
Among account this document of suffix, or among the script file being stored in software program, terminal is from note
Thing this document or the replicated setup data from script file, are then pasted among router.This configuration
Among mode, the requirement to the buffering area performance of terminal is high, because terminal is needed the configuration data of magnanimity
Store into buffering area, the data extraction of buffering area is then sent to router again.For a small amount of business
Configuration, this configuration mode there's almost no problem, but if being the duplication stickup for a large amount of configuration datas,
Possible in general buffering area can not all meet so high performance requirement, be issued it is most likely that occurring
The incomplete problem of configuration data.
Among another existing scheme, configuration data is stored in TCL (Tool Command
Language, Tool Command Language) among script file, by supporting the terminal of TCL scripts, to TCL
Script file is parsed, and the configuration data obtained after parsing is sent into router, is completed to router
Business configuration.Some problems are equally existed in this scheme:First, using this scheme to router
Being configured, then the terminal for completing to configure router must support the terminal of TCL scripts,
That is, this scheme has certain requirement to configurating terminal, in actual use, if user
Terminal do not support TCL scripts, then user can not realize the configuration to router, or user needs
Purchase again and support the terminal devices of TCL scripts to reach the purpose configured to router.The opposing party
Face, and greatest problem existing for this scheme, that is, terminal is being parsed to TCL script files
When, resolution speed is slow, and it is slow to have configuration when needing to configure a large number of services
Problem.
Therefore, configuration of routers scheme of the prior art is deposited when carrying out a large number of services configuration to router
The problem of incomplete and allocative efficiency is low is issued in configuration data, in order to solve this problem, needs badly and carries now
Go out a kind of new router traffic allocation plan.
The content of the invention
Router traffic collocation method and router provided in an embodiment of the present invention, main technical problems to be solved
It is:It is proposed a kind of from different router traffic allocation plan in the prior art, router is entered to improve
Allocative efficiency when row a large number of services configures.
In order to solve the above technical problems, the embodiment of the present invention provides a kind of router traffic collocation method, including:
Router receiving terminal send configuring request, the configuring request be used on the router extremely
A few business to be configured is configured;
The router calls the configuration function being locally stored to generate configuration data according to the configuring request;
The router configures according to the configuration data of generation to the business to be configured.
The embodiment of the present invention also provides a kind of router, including:
Receiving module, the configuring request sent for receiving terminal, the configuring request are used for the route
At least one business to be configured on device is configured;
Generation module, for calling the configuration function being locally stored to generate configuration data according to the configuring request;
Configuration module, the business to be configured is configured for the configuration data according to generation.
The embodiment of the present invention also provides a kind of computer-readable storage medium, is stored with the computer-readable storage medium
Computer executable instructions, the computer executable instructions are used for the router industry for performing foregoing any one
Business collocation method.
The beneficial effects of the invention are as follows:
Router traffic collocation method, router and the computer storage provided according to embodiments of the present invention is situated between
Matter, the configuring request that router is sent by receiving terminal, then oneself configuration number is generated according to configuring request
Configured according to so as to finishing service;The configuration data of business configuration is carried out by being generated in router side so that right
The terminal that router carries out business configuration need not issue the configuration data of magnanimity, and only need to be oppositely disposed
Data configuring request simply too much is sent to router so that even a large number of services to router
During configuration, be also not in that configuration data issues the incomplete problem presence of configuration data that is slow, issuing, carry
The high efficiency and Consumer's Experience of business configuration.
Brief description of the drawings
Fig. 1 is a kind of flow chart for the router traffic collocation method that the embodiment of the present invention one provides;
Fig. 2 is a kind of flow chart that User Defined batch processing function is obtained in the embodiment of the present invention one;
Fig. 3 is a kind of flow chart for generating configuration data in the embodiment of the present invention one according to configuring request;
Fig. 4 is the first structural representation for the router that the embodiment of the present invention two provides;
Fig. 5 is second of structural representation of the router that the embodiment of the present invention two provides;
Fig. 6 is the third structural representation for the router that the embodiment of the present invention two provides;
Fig. 7 is the 4th kind of structural representation of the router that the embodiment of the present invention two provides;
Fig. 8 is a kind of flow chart for the router traffic collocation method that the embodiment of the present invention three provides.
Embodiment
The embodiment of the present invention is described in further detail below by embodiment combination accompanying drawing.
Embodiment one:
Existing configuration when business configuration is carried out to router in order to solve to realize in a short time in the prior art
Data distributing is slow, issues incomplete problem, and the present embodiment provides a kind of router traffic collocation method, please
Referring to Fig. 1:
The configuring request that S102, router receiving terminal are sent.
Among the present embodiment, terminal can be PC (Personal Computer, personal computer), flat board
Any one during computer, desktop computer, smart mobile phone etc. are several.
It is understood that before terminal is asked to router send configuration, terminal should be built with router
Vertical communication connection, Telnet the most frequently used between router and terminal (remote terminal protocol) is connected as here
Example illustrates, and Telnet agreements are TCP/IP (Transmission Control Protocol/Internet
Protocol, transmission control protocol/Internet Protocol) a member in protocol suite is that Internet is remotely stepped on
The standard agreement and major way of land service.It has provided the user the completion distance host work on local terminal
The ability of work.User uses Telnet programs in terminal, and router is connected to it.User can be at end
Order is inputted in the Telnet programs at end, these orders can be run on the router, just as directly in router
Console on input it is the same, reached with this and locally controlling the purpose of router.
Configuring request can issue from terminal in the form of a command, for example, showing on the subscriber terminal to user
Go out CLI (Command-Line Interface, Command Line Interface) interface, user passes through the shapes such as input through keyboard
Formula inputs the configuring request of oneself, and the instruction of user is not only sent to router by CLI interfaces, while can also be right
The input of user is echoed, to allow user to confirm whether the configuring request of oneself input is under oneself it is expected
Hair.
Configuring request is mainly used in matching somebody with somebody some on router or certain some business to be configured progress business
Put.The type of service and number of services of business to be configured can be included in configuring request, for example, configuration
The information included in request is 4000 sub-interfaces of configuration, then business to be configured is configuration sub-interface, and industry
Quantity of being engaged in is then 4000.In addition, some other information can also be included in configuring request, for example, user
Specially specify the IP address of 5 sub-interfaces in 4000 sub-interfaces, then except treating in configuring request
Outside configuration service type and number of services, in addition to 5 IP address, and this 5 IP address connect with son
The corresponding relation of mouth.
Among some examples of the present embodiment, after router receives the configuring request that terminal issues,
Need to carry out format check to configuring request, to determine whether the configuring request is legal.Format check just for
The formal verifications of carry out such as the data format of configuring request, data length.Only when it is determined that configuring request is closed
Follow-up configuration process can be just carried out after method, otherwise directly returns to illegal prompting to terminal, with prompt user its
Mistake in the configuring request existence form of input.
S104, router call the configuration function being locally stored to generate configuration data according to configuring request.
The major function of configuration function is that the configuring request inputted according to user exports corresponding configuration data, such as
The number of services that fruit user is configured to a certain business to be configured is bigger, it may be necessary to uses batch processing
Function, common batch processing function include:For create in batches VRF (Virtual Routing Forwarding,
VPN route forwarding table) function, batch delete VRF function, batch create three stratons connect
The function of mouth, function of batch three straton interfaces of deletion etc., and sub-interface batch binding VRF function,
Sub-interface batch binding O SPF (Open Shortest Path First, ospf), ISIS
The function of (Intermediate system to intermediate system, Intermediate System-to-Intermediate System) agreement,
Function, sub-interface batch packaging V LAN (the Virtual Local Area of sub-interface batch configuration IP address
Network, VLAN) function etc..
The configuration function that router is locally stored can meet the most of configuring request of user, but in reality
In application process, it is that the configuration function that router is locally stored can not be realized that user, which might have some demands,
For such case, it may be necessary to the demand of user is can be only achieved using user-defined function, therefore,
The present embodiment also provides a kind of flow for obtaining User-Defined Functions, as shown in Figure 2:
S202, router receive user-defined batch processing function.
In the present embodiment, the DLL of opening is provided with router, the DLL can connect
Receive the self-defined batch processing function that user imports.It is understood that user can need to use the programming
During interface, DLL is opened, at this time, router has the function of importing User-Defined Functions, and
If user need not use DLL, the DLL can be closed, at this moment, in the present embodiment
The use of router and ordinary router is almost not different.
User-defined batch processing function is compiled for S204, router and activation processing.
After the self-defined batch processing function for receiving user's importing, the batch processing function can be compiled
And activation processing, compilation process is exactly the binary language that high-level language is become computer and can identified, warp
Crossing the batch processing function of compiling activation processing can use as the configuration function for being subsequently generated configuration data, its
It is not different as the function that embedded function in the router carries with other original routers.
Batch processing function after processing is stored in local by S206, router as configuration function.
Batch processing function is compiled after activation processing, route can be stored in as configuration function
Device is local.In the present embodiment, the configuration function that either router carries, or from external DLL
The user-defined batch processing function of upper importing can be stored in database in the form of indiscriminate.
Certainly, among the other example of the present embodiment, configuration function and User Defined that router carries
The configuration function of formation can also be stored separately.
In the present embodiment, user-defined batch processing is obtained using the external DLL on router
Function can extend function when router carries out business configuration, make business configuration more as configuration function
Flexibly, comprehensively, Consumer's Experience is improved.
The process that configuration data is generated to the configuring request issued in the present embodiment according to user below enters traveling one
Step elaboration, as shown in Figure 3:
S302, router parse to configuring request.
Router is parsed to configuring request primarily to determining that user sends out configuring request above and below terminal
Actual purpose.It is possibly used in the configuring request that user issues from terminal to some or multiple industry to be configured
Business configured, and if router will configure according to the configuring request of user to these business to be configured,
Then need to know that user wants to do which type of business which type of configuration.
S304, router determine business to be configured and the type of configuration function according to analysis result.
Configuration function mentioned here refers to for generating matching somebody with somebody for the configuration data configured to business to be configured
Put function.After typically being parsed to configuring request, the service class of business to be configured can be directly obtained
The information such as type, number of services, but the type of configuration function might not be directly included in configuring request.
If user be transported to above and below terminal put please when specify generation configuration data configuration function type,
Then can directly using the type of the configuration function included in analysis result as subsequent calls configuration function according to
According to;But if only including the type of business to be configured in the configuring request that user issues, router can also root
The type of corresponding configuration function is determined according to the type of business to be configured, because different business to be configured needs
Otherwise with configuration function generate corresponding configuration data, so substantially, in business to be configured and configuration
Certain corresponding relation between function be present.
Sometimes, a business to be configured for it is expected configuration for user may need to call polytype match somebody with somebody
Put function, although for example, user indicated only in configuring request configure 4000 sub-interfaces, in fact,
In order to complete the establishment to 4000 sub-interfaces, it may be necessary to call sub-interface batch to create function, sub-interface
The function of batch configuration IP address, and sub-interface batch packaging V LAN function.
S306, router the batch processing function according to corresponding to the type of configuration function calls local are used as configuration letter
Number generation configuration data.
It is determined that after the type for the configuration function to be called, can be called from the local database of router pair
The batch processing function answered generates configuration data.Here explained continuing with above-mentioned example:When it is determined that needing
Sub-interface batch is called to create function, the function of sub-interface batch configuration IP address, and sub-interface batch
After the configuration function of these three types of packaging V LAN function, router obtains from corresponding database
Configuration data is generated to program corresponding to these three batch processing functions.If please in the configuration that terminal is sent
The IP address for the part sub-interface specified in asking comprising user, such as user specify the sub-interface that ID number is 39
IP address be 255.255.231.32, then the function of sub-interface batch configuration IP address is for each sub-interface
When configuring IP address, it can be only IP address corresponding to other 3999 sub-interfaces configure, then will
The IP address carried in configuring request is associated with the sub-interface that ID number is 39.
It is understood that the configuration function stored in the database of router is all not batch processing letter
Number, when the number of services for requiring to be configured in the configuring request that user issues is little, can directly it use
These non-batch processing functions generate configuration data.
Among another example of the present embodiment, after analysis result is got, router can also basis
The service feature of itself verifies to analysis result, and verification this time is no longer to data format and data
The verification of length, but determine whether the configuring request that user issues has according to the performance of router in itself
Effect, if for example, user needs to configure 4000 sub-interfaces on the router, but in fact, the router
2000 sub-interfaces can only be inherently carried, such case is crossed the border as parameter, illustrates that the configuration of the user please
The Seeking Truth router can not be realized, namely the configuring request is invalid.If configuring request is invalid, it is not required to
Follow-up configuration process is carried out again.In addition to parameter is crossed the border, parameter is imperfect also result in configuration please
Ask invalid, for example, there is no the type comprising business to be configured or the configuration letter specified of user in configuring request
Any one in number, only contains number of services, it is invalid that this configuring request is fallen within.
S106, router carry out router traffic configuration according to the configuration data of generation.
After generating configuration data, configuration data can be carried out according to the demand organization configuration data of user
Packing, issues hardware table item, so that router forwarding surface uses in follow-up routing forwarding business.
Router traffic collocation method provided in an embodiment of the present invention, by the default generation configuration in router side
The configuration function of data, so that terminal only needs to issue letter when router traffic is configured
Single configuring request, matched somebody with somebody by router itself according to what configuring request generation was configured to business to be configured
Data are put, so that terminal, which need not issue quantity relative configuration, asks huger configuration data, will not
The phenomenon for cause configuration data leakage hair, mistaking occurs, and improves the accuracy and efficiency of router traffic configuration,
The data transfer pressure between terminal and router is also mitigated simultaneously.
Embodiment two:
The present embodiment provides a kind of router, as shown in Figure 4:
Router 40 includes receiving module 402, generation module 404 and configuration module 406.Receiving module 402
The configuring request sent for receiving terminal, generation module 404 can be called according to configuring request and be locally stored
Configuration function generation configuration data, configuration module 406 is then used for according to the configuration data of generation to be configured
Business is configured.
Among the present embodiment, terminal can be PC (Personal Computer, personal computer), flat board
Any one during computer, desktop computer, smart mobile phone etc. are several.
It is understood that before terminal is asked to the send configuration of receiving module 402, terminal should be with road
Communication connection is established by device 40, here Telnet (remote terminals the most frequently used between router 40 and terminal
Agreement) connection exemplified by illustrate, Telnet agreements are TCP/IP (Transmission Control
Protocol/Internet Protocol, transmission control protocol/Internet Protocol) a member in protocol suite, be
The standard agreement and major way of Internet telnet services.It has provided the user complete on local terminal
Into the ability of distance host work.User uses Telnet programs in terminal, and router 40 is connected to it.
User can input order in the Telnet programs of terminal, and these orders can be run on router 40, just
As being inputted directly on the console of router, reached with this and locally controlling the purpose of router 40.
Configuring request can issue from terminal in the form of a command, for example, showing on the subscriber terminal to user
Go out CLI (Command-Line Interface, Command Line Interface) interface, user passes through the shapes such as input through keyboard
Formula inputs the configuring request of oneself, and the instruction of user is not only sent to receiving module 402 by CLI interfaces, simultaneously
The input of user can also be echoed, to allow user to confirm whether the configuring request of oneself input is oneself
It is expected what is issued.
Configuring request is mainly used in matching somebody with somebody some on router or certain some business to be configured progress business
Put.The type of service and number of services of business to be configured can be included in configuring request, for example, configuration
The information included in request is 4000 sub-interfaces of configuration, then business to be configured is configuration sub-interface, and industry
Quantity of being engaged in is then 4000.In addition, some other information can also be included in configuring request, for example, user
Specially specify the IP address of 5 sub-interfaces in 4000 sub-interfaces, then except treating in configuring request
Outside configuration service type and number of services, in addition to 5 IP address, and this 5 IP address connect with son
The corresponding relation of mouth.
Among some examples of the present embodiment, as shown in figure 5, router 40 also includes legal correction verification module
410, after receiving module 402 receives the configuring request that terminal issues, legal correction verification module 410 needs
Format check is carried out to configuring request, to determine whether the configuring request is legal.Legal correction verification module 410 enters
Row format verifies the formal verifications of carry out such as the data format just for configuring request, data length.Only
After legal correction verification module 410 determines that configuring request is legal, router 40 can just carry out follow-up configuration process,
Otherwise illegal prompting directly is returned to terminal, to prompt the mistake in the configuring request existence form of its input of user
By mistake.
The major function of configuration function is that the configuring request inputted according to user exports corresponding configuration data, such as
The number of services that fruit user is configured to a certain business to be configured is bigger, it may be necessary to uses batch processing
Function, common batch processing function include:For create in batches VRF (Virtual Routing Forwarding,
VPN route forwarding table) function, batch delete VRF function, batch create three stratons connect
The function of mouth, function of batch three straton interfaces of deletion etc., and sub-interface batch binding VRF function,
Sub-interface batch binding O SPF (Open Shortest Path First, ospf), ISIS
The function of (Intermediate system to intermediate system, Intermediate System-to-Intermediate System) agreement,
Function, sub-interface batch packaging V LAN (the Virtual Local Area of sub-interface batch configuration IP address
Network, VLAN) function etc..
The configuration function that router 40 is locally stored can meet the most of configuring request of user, but in reality
In the application process of border, it is that the configuration function that router is locally stored can not be realized that user, which might have some demands,
, for such case, it may be necessary to the demand of user is can be only achieved using user-defined function, because
This, among a kind of preferable example of the present embodiment, as shown in fig. 6, except including connecing in router 40
Receive beyond module 402, generation module 404 and configuration module 406, in addition to acquisition module 408:
Acquisition module 408 can receive user certainly by the DLL of the opening set on router 40
The batch processing function of definition, is then compiled to user-defined batch processing function and activation is handled, most
The batch processing function after processing will be stored in local as configuration function afterwards.
In the present embodiment, DLL can receive the self-defined batch processing function of user's importing.It can manage
Solution, DLL, at this time, router can be opened when user needs to use the DLL
With the function of importing User-Defined Functions, and if user need not use DLL, then can close
The DLL is closed, at this moment, the use of router and ordinary router in the present embodiment is almost not different.
, can be to the batch processing after acquisition module 408 receives the self-defined batch processing function of user's importing
Function is compiled and activation processing, and compilation process is exactly two that high-level language is become computer and can identified
System language, the batch processing function that processing is activated by compiling can be as the configuration for being subsequently generated configuration data
Function uses, and it does not have area as the function that embedded function in the router carries with other original routers
Not.
Acquisition module 408 is compiled to batch processing function after activation processing, can be as configuration letter
Number is stored in router local.In the present embodiment, the configuration function that either router 40 carries, still
The user-defined batch processing function imported from external DLL can be deposited in the form of indiscriminate
Storage is in database.Certainly, among the other example of the present embodiment, configuration that router 40 carries
The configuration function that function and User Defined are formed can also be stored separately.
In the present embodiment, user-defined batch processing is obtained using the external DLL on router
Function can extend function when router carries out business configuration, make business configuration more as configuration function
Flexibly, comprehensively, Consumer's Experience is improved.
Generation module 404 needs first to parse configuring request primarily to really before generating configuration data
Determine the actual purpose that user sends out configuring request above and below terminal.May in the configuring request that user issues from terminal
For being configured to some or multiple business to be configured, and if router will be according to the configuration of user
Request configures to these business to be configured, then needs to know that user wants which type of business what to do to
The configuration of sample.
Generation module 404 determines business to be configured and the type of configuration function according to analysis result.Here
Described configuration function refers to the configuration function for generating the configuration data configured to business to be configured.
Generally generate after module 404 parses to configuring request, the industry of business to be configured can be directly obtained
The information such as service type, number of services, but the class of configuration function might not be directly included in configuring request
Type.If user be transported to above and below terminal put please when specify generation configuration data configuration function class
Type, then generation module 404 can be directly using the type of the configuration function included in analysis result as follow-up tune
With the foundation of configuration function;But if only including the type of business to be configured in the configuring request that user issues,
Generation module 404 can also according to corresponding to being determined the type of business to be configured configuration function type, because
Different configuration functions is needed to generate corresponding configuration data for different business to be configured, so substantially,
Certain corresponding relation between business to be configured and configuration function be present.
Sometimes, a business to be configured of configuration it is expected for user, generation module 404 may need to adjust
With polytype configuration function, although for example, user indicates that configuring 4000 sons connects only in configuring request
Mouthful, but in fact, in order to complete the establishment to 4000 sub-interfaces, generation module 404 may need to call
Sub-interface batch creates function, the function of sub-interface batch configuration IP address, and sub-interface batch encapsulates
VLAN function.
It is determined that after the type for the configuration function to be called, generation module 404 can be from the local number of router
Configuration data is generated according to batch processing function corresponding to calling in storehouse.Here solved continuing with above-mentioned example
Release:When it is determined that need call sub-interface batch create function, sub-interface batch configuration IP address function, with
And after the configuration function of sub-interface batch packaging V LAN function these three types, generation module 404 from
Program corresponding to these three batch processing functions is got in corresponding database to generate configuration data.If
The IP address for the part sub-interface specified in the configuring request that terminal is sent comprising user, such as user specify
The IP address for the sub-interface that ID number is 39 is 255.255.231.32, then generation module 404 is connect using son
The function of mouthful batch configuration IP address when IP address is configured for each sub-interface, can be only other 3999
IP address corresponding to individual sub-interface configuration, it is then 39 by the IP address carried in configuring request and ID number
Sub-interface be associated.
It is understood that the configuration function stored in the database of router 40 is all not batch processing
Function, when the number of services for requiring to be configured in the configuring request that user issues is little, can directly it adopt
Configuration data is generated with these non-batch processing functions.
Among another example of the present embodiment, such as Fig. 7, router 40 includes receiving module 402, generation
Module 404, configuration module 406, acquisition module 408 and legal correction verification module 410 and effective correction verification module
412.After generation module 404 gets analysis result, effective correction verification module 412 can also be according to route
The service feature of device 40 verifies to analysis result, and verification this time is no longer to data format and data
The verification of length, but determine configuring request that user issues is whether according to the performance of of router 40 itself
Effectively, if for example, user needs to configure 4000 sub-interfaces on the router, but in fact, the route
Device can only inherently carry 2000 sub-interfaces, and such case is crossed the border as parameter, illustrates the configuration of the user
Request is that the router can not be realized, effective correction verification module 412 can determine that the configuring request is invalid.Such as
Fruit configuring request is invalid, then need not carry out follow-up configuration process again.In addition to parameter is crossed the border, ginseng
Number is imperfect to also result in that configuring request is invalid, for example, not having in configuring request comprising business to be configured
Any one in the configuration function that type or user specify, only contains number of services, this configuring request
It is invalid to fall within.
Configuration module 406 is used to carry out business configuration to business to be configured according to the configuration data of generation.Generation
After configuration data, configuration module 406 can be according to the demand organization configuration data of user, to configuration data
Packed, issue hardware table item, so that router forwarding surface uses in follow-up routing forwarding business.
In the present embodiment, receiving module 402 can be realized by the communicator on router, and give birth to
Into the function of module 404 and configuration module 406 then can by the CPU (central processing unit) in router Lai
Realize, acquisition module 408 can receive making by oneself for user's importing by the external DLL on router
Adopted batch processing function, then realized by CPU and activation processing be compiled to self-defined batch processing function,
It will finally be stored.The function of legal correction verification module 410 and effective correction verification module 412 can be by router
In CPU realize.
The configuring request that the router 40 provided in the present embodiment can be sent according to terminal is generated to own service
The configuration data configured, therefore configuration data need not be obtained from terminal, avoid under configuration data
Send out imperfect, the problem of downloading speed is slow, improve the efficiency and accuracy rate of business configuration;The route simultaneously
Device is supported to load user-defined batch processing function, adds business by network opening DLL
The flexibility of configuration.
Embodiment three:
In order to allow those skilled in the art to become more apparent upon advantages of the present invention and details, the present embodiment combines route
The router traffic collocation method and embodiment two that a kind of specific example of device business configuration is provided embodiment one
The router of offer is further detailed, and refers to Fig. 8:
S801, terminal and router establish Telnet connections.
Terminal and router are established after Telnet is connected, user can by Telnet protocol entry routers,
Router includes OAM (Operation and Maintenance, operational administrative) interface, and the interface can be
Shown in terminal, the configuration function that user can call is included at the interface, meanwhile, in terminal
Also show CLI interfaces, it is to be understood that CLI interfaces can integrate with OAM interfaces.
S802, terminal generate configuring request according to the operation of user and are sent to router.
User can input configuration-direct, Ran Houcong according to the business that oneself needs to clap configuration from CLI interfaces
Configuration function corresponding to selection in OAM interfaces, terminal is according to the configuration-direct that user inputs and the configuration of selection
Function generates configuring request.
S803, router carry out format check to configuring request, judge whether configuring request is legal.
Router carries out data format, the data that format check mainly includes determining configuring request to configuring request
Whether length etc. meets the requirements, if configuring request is legal, performs S804, otherwise performs S805.
S804, router parse to configuring request.
Router can get the attribute (i.e. type) of business to be configured from configuring request, and respectively wait to match somebody with somebody
The number of services of purchase of property business, number of services can be embodied by the object ID in business to be configured.For example,
Object ID is from 1~4000 respectively, then it is 4000 to illustrate number of services.
S805, report an error prompting in OAM interface displays.
Miscue in OAM interfaces is used for instruction user, tells the configuring request form of its data of user not
Correctly.
S806, according to the service feature of router determine whether configuring request is effective.
Effective checking procedure and some differences of legal verification to configuring request, effectively verification is no longer to data
The verification of form and data length, but determine that router whether can according to the performance of router in itself
Realize the configuring request that user issues.When being, S807 is performed, otherwise, performs S808.
S807, configuration function generation configuration data is called according to configuring request.
Here a father is created in batches to directly invoke function portlist and vlanlist integrated in router
4000 three straton interfaces under interface, and to be illustrated exemplified by VLAN corresponding to sub-interface encapsulation,
The function iplist of the user-defined straton interface IP address of Mass production three can be also used among the example, with
It is embodied as the purpose of IP address corresponding to each sub-interface configuration.
Once batch creates 4000 sub-interfaces for portlist orders integrated in OAM calling systems, and adjusts
The vlan corresponding to vlanlist is encapsulated:
interface portlist gei-0/1/0/1.1-4000;
interface vlanlist gei-0/1/0/1.1-4000;
The customized programmable functions of router user's function are opened, that is, open external programmable interface.By
User writes the function iplist that batch specifies sub-interface IP address:
Interface iplist (portlist, initIP, mask, count);
Wherein portlist is the sub-interface list of IP address to be configured, and initIP is start ip address, mask
For IP address mask, count is the number of IP address to be configured.
Router receives the iplist functions of user's importing from programmable interface, and it is compiled and activated.
It is that 4000 vlan sub-interfaces configure corresponding IP address finally to call interface iplist.With initial address
For 10.0.1.1, exemplified by mask is 255.255.255.0, i.e., inputted at CLI interfaces:
interface iplist gei-0/1/0/1.1-4000 10.0.1.1 24 4000;
So far, the generation of configuration data is completed.
S808, return to the unavailable emphasis information for being directed to configuring request.
Unavailable emphasis information be used to inform exist in its configuring request for issuing of user parameter cross the border or parameter not
Situations such as complete.
S809, packing configuration data, form hardware table item and are issued by Unified Supporting Platform.
After generating configuration data, configuration data can be carried out according to the demand organization configuration data of user
Packing, issues hardware table item, so that router forwarding surface is in follow-up routing forwarding industry by Unified Supporting Platform
Used in business.
In the present embodiment, in the configuration function of the default generation configuration data in router side so that terminal is not required to
The configuration data of magnanimity is sent to router, the phenomenon for will not cause configuration data leakage hair, mistaking occurs,
Improve the accuracy and efficiency of router traffic configuration;In addition, with reference to programmable interface import user from
The batch processing function of definition, the flexibility of router traffic configuration is enhanced, improves Consumer's Experience.
Obviously, those skilled in the art should be understood that each module of the embodiments of the present invention or each step
It can be realized with general computing device, they can be concentrated on single computing device, or distribution
On the network that multiple computing devices are formed, alternatively, the program that they can be can perform with computing device
Code is realized, it is thus possible to be stored in computer-readable storage medium (ROM/RAM, magnetic disc, light
Disk) in performed by computing device, and in some cases, can be to be performed different from order herein
Shown or described step, either they are fabricated to respectively each integrated circuit modules or by they
In multiple modules or step be fabricated to single integrated circuit module to realize.So the present invention is not restricted to
Any specific hardware and software combines.
Above content is to combine the further description that specific embodiment is made to the embodiment of the present invention,
The specific implementation of the invention is not to be limited to these illustrations.For the general of the technical field of the invention
For logical technical staff, without departing from the inventive concept of the premise, can also make it is some it is simple deduce or
Replace, should all be considered as belonging to protection scope of the present invention.
Claims (10)
1. a kind of router traffic collocation method, including:
Router receiving terminal send configuring request, the configuring request be used on the router extremely
A few business to be configured is configured;
The router calls the configuration function being locally stored to generate configuration data according to the configuring request;
The router configures according to the configuration data of generation to the business to be configured.
2. router traffic collocation method as claimed in claim 1, it is characterised in that the router root
Called according to the configuring request also includes before the configuration function being locally stored generation configuration data:The route
Device carries out format check to determine that the configuring request is legal to the configuring request.
3. router traffic collocation method as claimed in claim 1, it is characterised in that the configuring request
In comprise at least business to be configured type of service, number of services.
4. the router traffic collocation method as described in claim any one of 1-3, it is characterised in that the road
The configuration function being locally stored is called also to include before generating configuration data according to the configuring request by device:
The router receives user-defined batch processing function;
The user-defined batch processing function is compiled the router and activation processing;
The batch processing function after processing is stored in local by the router as configuration function.
5. the router traffic collocation method as described in claim any one of 1-3, it is characterised in that described
Include according to configuring request generation configuration data:
The router parses to the configuring request;
The router determines the business to be configured and to be configured for generating according to the analysis result
The type of the configuration function of the configuration data of business;
Described in router batch processing function conduct according to corresponding to the type of the configuration function calls local
Configuration function generates configuration data.
6. router traffic collocation method as claimed in claim 5, it is characterised in that the router root
Call batch processing function corresponding to local to generate as the configuration function according to the type of the configuration function to configure
Also include before data:The router determines the configuration based on its service feature according to the analysis result
Request is effective.
A kind of 7. router, it is characterised in that including:
Receiving module, the configuring request sent for receiving terminal, the configuring request are used for the route
At least one business to be configured on device is configured;
Generation module, for calling the configuration function being locally stored to generate configuration data according to the configuring request;
Configuration module, the business to be configured is configured for the configuration data according to generation.
8. router as claimed in claim 7, it is characterised in that also including acquisition module, in root
Before the configuration function generation configuration data being locally stored is called according to the configuring request, making by oneself for user is received
Adopted batch processing function;The user-defined batch processing function is compiled and activation is handled;And will place
The batch processing function after reason is stored in local as configuration function.
9. router as claimed in claim 7, it is characterised in that the generation module is used for:To described
Configuring request is parsed;The business to be configured is determined according to the analysis result and treated for generating
The type of the configuration function of the configuration data of configuration service;And called according to the type of the configuration function
Batch processing function corresponding to local generates configuration data as the configuration function.
10. router as claimed in claim 9, it is characterised in that also include:Effective correction verification module,
Given birth to for the batch processing function according to corresponding to the type of configuration function calling local as the configuration function
Into before configuration data, the service feature based on the router determines the configuration according to the analysis result
Request is effective.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610473604.7A CN107547217B (en) | 2016-06-24 | 2016-06-24 | Router service configuration method and router |
PCT/CN2017/083831 WO2017219778A1 (en) | 2016-06-24 | 2017-05-10 | Method for configuring service for router, router, and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610473604.7A CN107547217B (en) | 2016-06-24 | 2016-06-24 | Router service configuration method and router |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107547217A true CN107547217A (en) | 2018-01-05 |
CN107547217B CN107547217B (en) | 2022-05-10 |
Family
ID=60783831
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610473604.7A Active CN107547217B (en) | 2016-06-24 | 2016-06-24 | Router service configuration method and router |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN107547217B (en) |
WO (1) | WO2017219778A1 (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110417582A (en) * | 2019-07-03 | 2019-11-05 | 华为技术有限公司 | A kind of method for configuring routers, terminal and router |
WO2022134672A1 (en) * | 2020-12-22 | 2022-06-30 | 华为技术有限公司 | Method and apparatus for configuring node |
CN114726717A (en) * | 2020-12-22 | 2022-07-08 | 华为技术有限公司 | Method and apparatus for configuring a node |
Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1455549A (en) * | 2002-04-30 | 2003-11-12 | 华为技术有限公司 | Method of configuration and upgrade of network apparatus in communication system |
CN1581876A (en) * | 2003-08-01 | 2005-02-16 | 阿尔卡特公司 | Network traffic data processing system and method for auto-configuration of a router |
CN1859311A (en) * | 2006-04-12 | 2006-11-08 | 华为技术有限公司 | Router control method and system |
CN1874307A (en) * | 2005-06-01 | 2006-12-06 | 国际商业机器公司 | System and method for autonomically configurable router |
CN101056225A (en) * | 2007-05-31 | 2007-10-17 | 中兴通讯股份有限公司 | A router test method and its onsite simulation test device |
CN101083684A (en) * | 2007-07-24 | 2007-12-05 | 华为技术有限公司 | Communication apparatus batch configuration managerial approach and apparatus |
CN103248525A (en) * | 2013-05-23 | 2013-08-14 | 北京奇虎科技有限公司 | Method and device of configuring network resources |
CN104936248A (en) * | 2014-03-21 | 2015-09-23 | 中兴通讯股份有限公司 | Establishment method of wireless network, system and wireless routing device |
CN105227346A (en) * | 2015-08-24 | 2016-01-06 | 上海斐讯数据通信技术有限公司 | A kind of method for configuring routers based on scanning Quick Response Code |
US20160006694A1 (en) * | 2014-05-12 | 2016-01-07 | International Business Machines Corporation | Connection configuration |
CN105245382A (en) * | 2015-10-23 | 2016-01-13 | 小米科技有限责任公司 | Router configuration information modifying method and device |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7606888B2 (en) * | 2003-11-24 | 2009-10-20 | Cisco Technology, Inc. | Approach for managing network device configuration data |
US20070274230A1 (en) * | 2006-05-23 | 2007-11-29 | Werber Ryan A | System and method for modifying router firmware |
CN101883049B (en) * | 2010-06-29 | 2011-11-30 | 浙江工商大学 | Method for realizing business configuration router based on architecture of transmitting and controlling separate networkware |
US20140297774A1 (en) * | 2013-03-29 | 2014-10-02 | Bala Sridhar Munupalle | System for managing configuration updates in cluster of computational devices |
-
2016
- 2016-06-24 CN CN201610473604.7A patent/CN107547217B/en active Active
-
2017
- 2017-05-10 WO PCT/CN2017/083831 patent/WO2017219778A1/en active Application Filing
Patent Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1455549A (en) * | 2002-04-30 | 2003-11-12 | 华为技术有限公司 | Method of configuration and upgrade of network apparatus in communication system |
CN1581876A (en) * | 2003-08-01 | 2005-02-16 | 阿尔卡特公司 | Network traffic data processing system and method for auto-configuration of a router |
CN1874307A (en) * | 2005-06-01 | 2006-12-06 | 国际商业机器公司 | System and method for autonomically configurable router |
CN1859311A (en) * | 2006-04-12 | 2006-11-08 | 华为技术有限公司 | Router control method and system |
CN101056225A (en) * | 2007-05-31 | 2007-10-17 | 中兴通讯股份有限公司 | A router test method and its onsite simulation test device |
CN101083684A (en) * | 2007-07-24 | 2007-12-05 | 华为技术有限公司 | Communication apparatus batch configuration managerial approach and apparatus |
CN103248525A (en) * | 2013-05-23 | 2013-08-14 | 北京奇虎科技有限公司 | Method and device of configuring network resources |
CN104936248A (en) * | 2014-03-21 | 2015-09-23 | 中兴通讯股份有限公司 | Establishment method of wireless network, system and wireless routing device |
US20160006694A1 (en) * | 2014-05-12 | 2016-01-07 | International Business Machines Corporation | Connection configuration |
CN105227346A (en) * | 2015-08-24 | 2016-01-06 | 上海斐讯数据通信技术有限公司 | A kind of method for configuring routers based on scanning Quick Response Code |
CN105245382A (en) * | 2015-10-23 | 2016-01-13 | 小米科技有限责任公司 | Router configuration information modifying method and device |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110417582A (en) * | 2019-07-03 | 2019-11-05 | 华为技术有限公司 | A kind of method for configuring routers, terminal and router |
WO2022134672A1 (en) * | 2020-12-22 | 2022-06-30 | 华为技术有限公司 | Method and apparatus for configuring node |
CN114726717A (en) * | 2020-12-22 | 2022-07-08 | 华为技术有限公司 | Method and apparatus for configuring a node |
CN114726717B (en) * | 2020-12-22 | 2023-09-01 | 华为技术有限公司 | Method and apparatus for configuring nodes |
Also Published As
Publication number | Publication date |
---|---|
CN107547217B (en) | 2022-05-10 |
WO2017219778A1 (en) | 2017-12-28 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9942104B2 (en) | Network connectivity wizard to support automated creation of customized configurations for virtual private cloud computing networks | |
CN104993947B (en) | The method of batch upgrade firmware | |
AU2010244906B2 (en) | Method and System for Provisioning Terminal Parameters and Terminal Management Apparatus | |
CN110191063A (en) | Processing method, device, equipment and the storage medium of service request | |
CN107770269A (en) | A kind of service response method and its terminal | |
CN109814943A (en) | Service construction method, loading method and device, electronic equipment, storage medium | |
US20130290453A1 (en) | System and method for a connector being able to adapt to newer features introduced to a messaging provider with only configuration changes | |
CN103729189A (en) | Broadcast protocol conversion method, system and terminal based on LUA | |
CN108196764A (en) | Application architecture dispositions method, device, system and cloud platform | |
CN109743244A (en) | A kind of system and method for realizing that high speed interconnects based on SDN and NFV technology | |
CN108600331A (en) | Interactive interface rendering method, client, terminal and system | |
CN107547217A (en) | Router traffic collocation method and router | |
CN106897153A (en) | Call the method and system of API | |
CN104660547B (en) | A kind of service platform for realizing telecommunication | |
CN102736926B (en) | The upgrade method of a kind of task based access control template and device, batch upgrading system | |
CN109669785A (en) | Page sharing method, device, server and the storage medium of terminal applies | |
CN109327530A (en) | A kind of information processing method, device, electronic equipment and storage medium | |
CN113296744A (en) | Application development system and method | |
CN110300260A (en) | Camera control method, device, terminal, server and storage medium | |
CN109412856A (en) | A kind of network equipment brand indifference management method and system | |
CN115268969A (en) | Android system upgrading method and device and terminal equipment | |
CN112527331A (en) | Online management method, system and storage medium based on fabric chain code | |
CN114327522A (en) | Privatization deployment method and system | |
WO2021035791A1 (en) | Method for controlling other systems on the basis of single-point execution contract | |
US9699306B2 (en) | Accessible and updateable service records |
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 |