CN106506281A - Vehicle toll communication test method, the network equipment and system - Google Patents

Vehicle toll communication test method, the network equipment and system Download PDF

Info

Publication number
CN106506281A
CN106506281A CN201611051095.5A CN201611051095A CN106506281A CN 106506281 A CN106506281 A CN 106506281A CN 201611051095 A CN201611051095 A CN 201611051095A CN 106506281 A CN106506281 A CN 106506281A
Authority
CN
China
Prior art keywords
server
service device
testing service
communication request
request
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
CN201611051095.5A
Other languages
Chinese (zh)
Other versions
CN106506281B (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.)
Shenzhen Genvict Technology Co Ltd
Original Assignee
Shenzhen Genvict 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 Shenzhen Genvict Technology Co Ltd filed Critical Shenzhen Genvict Technology Co Ltd
Priority to CN201611051095.5A priority Critical patent/CN106506281B/en
Publication of CN106506281A publication Critical patent/CN106506281A/en
Application granted granted Critical
Publication of CN106506281B publication Critical patent/CN106506281B/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
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/50Testing arrangements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/45Network directories; Name-to-address mapping
    • H04L61/4505Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols
    • H04L61/4511Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols using domain name system [DNS]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer And Data Communications (AREA)

Abstract

Vehicle toll communication test method provided in an embodiment of the present invention, the network equipment and system, the communication request of client device transmission can be obtained, judge whether the server info of the workspace server in communication request is deposited in server info allocation list, if there is, then communication request is processed according to the server info of the testing service device for preserving, so that client device is communicated with testing service device.As the present invention has carried out the server for processing and have changed client device communication to communication request in the network device, therefore without the need for modifying to the code of client, no longer affected by user's license, convenient.

Description

Vehicle toll communication test method, the network equipment and system
Technical field
The present invention relates to vehicle toll communication test technical field, more particularly to vehicle toll communication test method, net Network equipment and system.
Background technology
With the development of science and technology, vehicle toll also gradually intelligent, automatization.In vehicle or the smart machine of vehicle self-carrying Upper installation charging software, the workspace server for processing vehicle toll business realize automatic charging by communicating with charging software.
When vehicle toll service needed updates, in order to prevent the vehicle toll business after updating from causing because of existing problems Whole vehicle toll collection system operational failure, technical staff typically can first by newest vehicle toll business be loaded into testing service Communication test is carried out to which in device.It is to communicate to connect with workspace server due to testing consumption charge software, therefore in test The charging software for needing control test used is changed to be communicated to connect with testing service device to be tested.Prior art is by more Change the code of charging software to change the server communicated with charging software, but the modification of software code can cause software more Newly, software cannot be automatically updated sometimes, in addition it is also necessary to which user permits.This allow for user unlicensed in the case of, the charging software Cannot update, have impact on test process.
Content of the invention
The purpose of the embodiment of the present invention is to provide a kind of vehicle toll communication test method, the network equipment and system, with On the premise of client code the is not changed server communicated by change client device.Concrete technical scheme is as follows:
A kind of vehicle toll communication test method, is applied in the network equipment, and client device passes through the network equipment Communicate to connect with workspace server, testing service device, be stored with the network equipment server info allocation list, the service Preserve in device information configuration table:The server info of workspace server and the server info of testing service device, methods described Including:
The communication request that the client device sends is obtained, the communication request carries work service to be communicated The server info of device;
Judge that the server info of the workspace server in the communication request whether there is to match somebody with somebody in the server info Put in table, if it is present the communication request is processed according to the server info of the testing service device for preserving, so that The client device is communicated with the testing service device.
Optionally, the workspace server information includes:Workspace server domain name, the testing service device information include: Testing service device address;The communication request is asked for DNS name resolution;
The server info according to the testing service device for preserving is processed to the communication request, so that the visitor Family end equipment is communicated with the testing service device, including:
Construct the response to DNS name resolution request and using the testing service device address for preserving as the working clothing The analysis result of business device domain name is added in the response, and the response is returned to the client device, the DNS is abandoned Domain name mapping is asked, so that the client device is communicated with the testing service device.
Optionally, the workspace server information includes:Workspace server domain name, the testing service device information include: Testing service device domain name;The communication request is asked for DNS name resolution;
The server info according to the testing service device for preserving is processed to the communication request, so that the visitor Family end equipment is communicated with the testing service device, including:
Workspace server domain name during the DNS name resolution is asked is revised as the testing service device domain name for preserving, will Amended DNS name resolution request is sent to domain name resolution server, so that the client device and the testing service Device is communicated.
Optionally, the workspace server information includes:Workspace server interface message, the testing service device packet Include:Testing service device interface message, the communication request are asked for interface interchange;
The server info according to the testing service device for preserving is processed to the communication request, so that the visitor Family end equipment is communicated with the testing service device, including:
Workspace server interface message during the interface interchange is asked is revised as the testing service device interface letter for preserving The request of amended interface interchange is sent to the testing service device by breath, so that the client device is described by calling The interface of testing service device is communicated with the testing service device.
Optionally, the communication request also carries the identification information of the client device for sending the communication request, is sentencing Before server info in the communication request of breaking whether there is in the server info allocation list, methods described is also wrapped Include:
Judge whether the identification information of the client device in the communication request is located in default identification information group, such as Fruit is, then executes the server info judged in the communication request with the presence or absence of in the server info allocation list The step of.
A kind of network equipment for vehicle toll communication test, client device is by the network equipment and working clothing Business device, the communication connection of testing service device, be stored with the network equipment server info allocation list, and the server info is matched somebody with somebody Put in table and preserve:The server info of workspace server and the server info of testing service device, the network equipment are also wrapped Include:Request obtains module, signal judgement module and ask respond module,
The request obtains module, and for obtaining the communication request that the client device sends, the communication request is taken The server info of band workspace server to be communicated;
Described information judge module, for judging whether the server info of the workspace server in the communication request is deposited It is in the server info allocation list, if it is present the triggering ask respond module;
The ask respond module, for entering to the communication request according to the server info of the testing service device for preserving Row is processed, so that the client device is communicated with the testing service device.
Optionally, the workspace server information includes:Workspace server domain name, the testing service device information include: Testing service device address;The communication request is asked for DNS name resolution;
The ask respond module, specifically for:Construct the response asked by the DNS name resolution the survey that will be preserved Examination server address is added in the response as the analysis result of the workspace server domain name, and the response is returned to The client device, abandons the DNS name resolution request, so that the client device is communicated with the testing service device Letter.
Optionally, the workspace server information includes:Workspace server domain name, the testing service device information include: Testing service device domain name;The communication request is asked for DNS name resolution;
The ask respond module, specifically for:Workspace server domain name modification during the DNS name resolution is asked For the testing service device domain name for preserving, amended DNS name resolution request is sent to domain name resolution server, so that described Client device is communicated with the testing service device.
Optionally, the communication request also carries the identification information of the client device for sending the communication request, described Vehicle toll communication test device also includes:In described information judge module, mark judge module, for judging that the communication please Before the server info that asks whether there is in the server info allocation list, the client in the communication request is judged Whether the identification information of end equipment is located in default identification information group, if it is, triggering described information judge module again.
A kind of vehicle toll communication test system, including:Client device, workspace server, testing service device and above-mentioned Any one network equipment, the client device is by the network equipment and the workspace server, the testing service Device is communicated to connect.
Vehicle toll communication test method provided in an embodiment of the present invention, the network equipment and system, it is possible to obtain client The communication request that equipment sends, judges whether the server info of the workspace server in communication request deposits server info configuration In table, if it is present communication request is processed according to the server info of the testing service device for preserving, so that client Equipment is communicated with testing service device.As the present invention has carried out processing and have changed client to communication request in the network device The server of end equipment communication, therefore without the need for modifying to the code of client, is no longer affected by user's license, more just Just.
Certainly, implement arbitrary product of the present invention or method must be not necessarily required to while reaching all the above excellent Point.
Description of the drawings
In order to be illustrated more clearly that the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing Accompanying drawing to be used needed for having technology description is briefly described, it should be apparent that, drawings in the following description are only this Some embodiments of invention, for those of ordinary skill in the art, on the premise of not paying creative work, can be with Other accompanying drawings are obtained according to these accompanying drawings.
Fig. 1 is a kind of structural representation of vehicle toll communication test system provided in an embodiment of the present invention;
Fig. 2 is a kind of flow chart of vehicle toll communication test method provided in an embodiment of the present invention;
Fig. 3 is the flow chart of another kind of vehicle toll communication test method provided in an embodiment of the present invention;
Fig. 4 is a kind of structural representation of network equipment for vehicle toll communication test provided in an embodiment of the present invention Figure.
Specific embodiment
Accompanying drawing in below in conjunction with the embodiment of the present invention, to the embodiment of the present invention in technical scheme carry out clear, complete Site preparation is described, it is clear that described embodiment is only a part of embodiment of the invention, rather than whole embodiment.It is based on Embodiment in the present invention, it is every other that those of ordinary skill in the art are obtained under the premise of creative work is not made Embodiment, belongs to the scope of protection of the invention.
Incorporated by reference to Fig. 1 and Fig. 2, a kind of vehicle toll communication test method provided in an embodiment of the present invention is applied to network In equipment 002, client device 001 is by the network equipment 002 and workspace server 003,004 communication link of testing service device Connect, be stored with the network equipment 002 server info allocation list, preserve in the server info allocation list:Work The server info of server and the server info of testing service device, as shown in Fig. 2 the method can include:
S100, the communication request for obtaining the transmission of client device 001, the communication request carries to be communicated The server info of workspace server;
Wherein, the network equipment 002 can be set for workspace server 003 and the headend equipment of testing service device 004, client Standby 001 needs by the headend equipment and each server communication.The form of the network equipment 002 can have multiple, such as routing device Deng.Optionally, the register method of the standard that the method for the present invention can be provided by kernel protocol stack is into the network equipment 002 Core registers kernel protocol stack readjustment entrance.After the completion of registration, when there is data to pass through the network equipment 002, the network equipment 002 kernel protocol stack can all call the readjustment entrance, so that the method for the present invention obtains the data so as to carrying out to which Process.
S200, the server info of the workspace server judged in the communication request whether there is to be believed in the server In breath allocation list, if it is present execution step S300;
In actual applications, simultaneously the server of the request communication of all of client device need not may be carried out more Change, therefore can also judge after step S100 whether the communication request for receiving is that the client that presets in client device group sets Preparation is sent, if it is, in execution step S200.
Wherein, the server info allocation list can be stored in another equipment (such as management equipment), and user can be set at this Server info allocation list is modified on standby., when using, the network equipment 002 can be another by this first for the method for the present invention Server info allocation list in one equipment is synchronized to locally so as to being used.Certainly, in actual use, the server letter Breath allocation list can also be directly stored in the network equipment 002, and user is directly matched somebody with somebody to server info by the network equipment 002 Put table to modify.Specifically, user can be facilitated to server info by providing a user with visualization UI interfaces Allocation list is modified.
S300, the communication request is processed according to the server info of testing service device for preserving, so that described Client device is communicated with the testing service device.
In actual applications, workspace server and testing service device can be different entity devices, or lay Two different virtual servers on a certain equipment.Wherein, the present invention is applied in product test environment, workspace server Can be the service server at existing product place, testing service device can be the testing service device that new product is located.
In other embodiments of the present invention, the communication request also carries the client device for sending the communication request Identification information, before step S200, method shown in Fig. 1 can also include:
Judge whether the identification information of the client device in the communication request is located in default identification information group, such as Fruit is, then execution step S200.
It is understood that and the product in testing service device need not be tested using all of client, because This, can only selected section client tested.Each mark in above-mentioned default identification information group is and is surveyed The mark of the client of examination.Wherein, the mark of client can have multiple, such as device id of car plate, client device etc..
It is understood that the network equipment in the present invention can have multiple, such as each parking lot or charge station's setting one The individual network equipment.In an alternative embodiment of the invention, can also select to set with the client of one or more network device communications Standby new product is tested.As the vehicle toll communication test method of the present invention is applied in the network equipment, as long as therefore Control certain network equipment and execute the visitor that vehicle toll communication test method of the invention can achieve to convey the network device communications Family end equipment is tested to new product.
Wherein, predetermined threshold value can be 41 bytes, and default communication protocol information includes:IP agreement mark, UDP (User Datagram Protocol, UDP) protocol-identifier and Transmission Control Protocol mark.Specifically, protocol-identifier can be Protocol name.Wherein, IP agreement is network layer protocol, and udp protocol, Transmission Control Protocol are transport layer protocol.
The length of above-mentioned communication bag refers to the length after deducting data link layer.If the communication request is DNS domain name Analysis request, then the length of communication bag is 41 bytes;If the communication request is asked for interface interchange, the length of communication bag is not It is less than 60 bytes.
By the communication protocol information in the communication request of acquisition, it is possible to determine whether the communication request is not DNS domain Name analysis request or interface interchange request, if not, execution step S200 again, if it is, the present invention can not be processed.
Vehicle toll communication test method provided in an embodiment of the present invention, it is possible to obtain the communication that client device sends please Ask, judge whether the server info of the workspace server in communication request is deposited in server info allocation list, if it is present Server info according to the testing service device for preserving is processed to communication request, so that client device and testing service device Communicate.As the present invention has carried out the service for processing and have changed client device communication to communication request in the network device Device, therefore without the need for modifying to the code of client, is no longer affected by user's license, convenient.
The concrete mode processed by the communication request is had multiple, three kinds of modes is provided below, it is to be understood that These three modes are only part way.
First kind of way:The workspace server information includes:Workspace server domain name, the testing service device packet Include:Testing service device address;The communication request is asked for DNS name resolution;Step S300 includes:Construction is to the DNS domain The testing service device address for preserving simultaneously is added by the response of name analysis request as the analysis result of the workspace server domain name To in the response, the response is returned to the client device, abandon the DNS name resolution request, so that described Client device is communicated with the testing service device.
Under this mode, the network equipment of application the inventive method will be with domain name mapping function.
It is understood that by using corresponding for workspace server domain name testing service device address as to the DNS domain The response of name analysis request returns to the client device, allows for client device and testing service device address is mistakenly considered work Make the address of server.So, when client device " is thought " which is communicated with workspace server when, be in fact and testing service device Communication.By such process, client device and server is allowed for all in unaware state.Certainly, such process Any code of client is not changed, is permitted without the need for user yet, convenient and practical.
It is exemplified below, for example:The address for obtaining after workspace server domain name a is parsed under normal circumstances is working clothing The address XXX.100 of business device, if it is desired to the new product for being tested (as A/B is tested) is deployed in the survey that address is XXX.101 On examination server, then user can easily by being configured to server info allocation list, by domain name a correspondingly Location is changed to XXX.101, you can realize the communication of client device and the testing service device.
The second way:The workspace server information includes:Workspace server domain name, the testing service device packet Include:Testing service device domain name;The communication request is asked for DNS name resolution;Step S300 includes:By the DNS domain name solution Workspace server domain name in analysis request is revised as the testing service device domain name for preserving, and amended DNS name resolution is asked Domain name resolution server is sent to, so that the client device is communicated with the testing service device.
Under this mode, the network equipment need not have domain name mapping function of the method for the present invention is applied.
It is understood that the modification of the server domain name carried in by asking to DNS name resolution, allows for domain name Resolution server is parsed to amended server domain name, obtains the address of testing service device and as to DNS domain The response of name analysis request returns to client device, and client device will be using the address of the testing service device for obtaining as which The analysis result of the workspace server domain name of request analysis is gone forward side by side to exercise and is used, so as to be communicated with testing service device.
The third mode:The workspace server information includes:Workspace server interface message, the testing service device letter Breath includes:Testing service device interface message, the communication request are asked for interface interchange;Step S400 includes:By the interface Workspace server interface message in call request is revised as the testing service device interface message for preserving, and amended interface is adjusted The testing service device is sent to request, so that the client device is by calling interface and the institute of the testing service device State testing service device to communicate.
By the modification of docking port call request, it is possible to so that being changed into the call request of workspace server interface originally Call request to testing service device interface, send it to testing service device after tested server response after, client device Just achieve and testing service device interface is called, such that it is able to be communicated with testing service device.The third mode is same The server communicated by client device is changed on the premise of client code is not changed.
Below the third mode is illustrated:
For example:It is R1 that client device calls the http paths of the interface of workspace server under normal circumstances, if it is used for The http paths of the interface of the testing service device of test are R2, then only need to preserve working clothing in server info allocation list The interface path of the interface path and testing service device of business device, then during the present invention just can be by asking interface interchange " R1 " is revised as " R2 " and the request is issued testing service device can achieve to allow client device to call connecing for testing service device Mouthful.
Furthermore, it is to be understood that the above-mentioned several ways of the present invention can be used alone, it is also possible to be used in combination. The technical scheme that a kind of first kind of way and the third mode are used in combination is provided below, as shown in figure 3, can include:
S001, from management equipment reading service device information configuration table;
Now, server info allocation list be stored with first kind of way have corresponding relation workspace server domain name and Testing service device address, the server info allocation list is while have the work service of corresponding relation in the third mode that is stored with Device interface message and testing service device interface message.
S002, the kernel registration kernel protocol stack readjustment entrance to the network equipment 002;
S003, the communication request for obtaining client device transmission through the readjustment entrance, the communication request is carried will lead to The server info of the workspace server 003 of letter;
S004, the type for determining communication request, if DNS name resolution request, then execution step S005, if connect Mouth call request, execution step S007 are not otherwise processed;
Specifically, if the communication bag of the communication request is for UDP bags and target port is that 53 ports can be identified as DNS domain Name analysis request.Due to interface interchange request have multiple, below by http post interface interchanges request as a example by illustrate:Such as Fruit target port is 8000 and the beginning of application layer data is POST, then can determine that the communication request is asked for interface interchange.
S005, the server info judged in the communication request whether there is in the server info allocation list, If it is present execution step S006;Otherwise terminate the execution of the present invention.
S006, using in server info allocation list preserve testing service device address as to the DNS name resolution please The response that asks returns to the client device and abandons the DNS name resolution request, so that the client device and institute State testing service device to communicate.
S007, the server info judged in the communication request whether there is in the server info allocation list, If it is present execution step S008;Otherwise terminate the execution of the present invention.
S008, by the interface interchange ask in workspace server interface message be revised as in server info allocation list The request of amended interface interchange is sent to the testing service device, so that described by the testing service device interface message of preservation Client device calls the interface of the testing service device.
Certainly, similar with first kind of way and the third mode association scheme, in other embodiments of the present invention, second Mode and the third mode can also be combined, and repeat no more.
In order to be better understood from the technical scheme of the application, two kinds of scenes being tested with parking lot below are illustrating this Application concrete application:
Scene one:
Development teams develop the redaction of parking lot application, before the redaction is formally reached the standard grade, need to Are tested less through internal debugging, external testing, gray scale these three stages, each stage can apply the method for the present invention.
The version that different phase can be directed to is disposed on a different server, for example:The former operation of parking lot application Version is v1.0, is deployed on the server that address is XXX.100.The parking lot application of redaction is v1.1 (namely beta versions This), it is deployed on the server that address is XXX.101.The debugging code of the v1.1 versions in developer's development process It is deployed on the server that address is XXX.102.V1.1 versions gray scale test code is deployed in the service that address is XXX.103 Device.Before being not carried out the present invention, parking lot client is led to come the server with address for XXX.100 by domain name AAA.com Letter.
In order to carry out the test in above three stage, it is possible to use use during multiple different clients, such as internal debugging Client C00, using client C01 and C02 during external testing, gray scale test when using client C11, C12, C13, C14 and C15.
Carry out internal debugging first, the present invention asked by the DNS name resolution sent by client C00 in domain name AAA.com is parsed, and is resolved to XXX.102 so that client C00 is communicated with the server of deployment debugging code, complete Into internal debugging.
After debugging passes through, external testing is carried out.DNS name resolution by sending to client C01, C02 of the invention Domain name AAA.com parsing in request, is resolved to XXX.101 so that client C01, C02 is stopped with deployment beta version The server of parking lot application is communicated, and completes external testing.When tester has found that this beta version is problematic, need with When original version is compared, it is only necessary to stop domain name AAA.com in the DNS name resolution request sent by client C01, C02 Parsed, the service that now client C01, C02 just can be located with former operation version v1.0 by domain name AAA.com Device (address is XXX.100) is communicated.
After external testing passes through, gray scale test can be proceeded.The present invention is by sending to client C11-C15 Domain name AAA.com parsing in DNS name resolution request, is resolved to XXX.103 so that client C11-C15 and deployment The server of gray scale test code is communicated, and completes gray scale test.
After gray scale test passes through, redaction is deployed on the server that address is XXX.100 to replace by technical staff V1.0 versions.Now, domain name AAA.com that the present invention stops in the DNS name resolution request sent by client C11-C15 is entered Row parsing, server (that now client C11-C15 just can be located with redaction v1.1 by domain name AAA.com Location is XXX.100) communicated.
Scene two:
The scene two is that with the difference of scene one client device passes through the side of transmission interface call request under the scene Formula and server communication, and the code of different editions is deployed on same server, client is by calling the server not With interface accessing the code of different editions.For example:By the way of http post, the path of all of interface interchange is all It is http://AAA.com/default, contains specific interface message service=" interface service name in post parameters Claim "." the interface service title " that the present invention only needs to change in interface interchange request can achieve to change client device access Interface purpose.
Corresponding with said method embodiment, present invention also offers a kind of communicator.
Incorporated by reference to Fig. 1 and Fig. 4, a kind of network equipment for vehicle toll communication test is embodiments provided 002, client device 001 is communicated to connect with workspace server 003, testing service device 004 by the network equipment 002, institute The server info allocation list that is stored with the network equipment 002 is stated, is preserved in the server info allocation list:Workspace server Server info and testing service device server info, as shown in figure 4, the network equipment 002 can include:Request is obtained Module 100, signal judgement module 200 and ask respond module 300,
The request obtains module 100, for obtaining the communication request of the transmission of the client device 001, the communication Request carries the server info of workspace server to be communicated;
Described information judge module 200, for judging that the server info of the workspace server in the communication request is No be present in the server info allocation list, if it is present the triggering ask respond module 300;
The ask respond module 300, please to the communication for the server info according to the testing service device for preserving Ask and processed, so that the client device is communicated with the testing service device.
In other embodiments of the present invention, the communication request can also carry send the communication request client set Standby identification information, the device of vehicle toll communication test shown in Fig. 4 can also include:Mark judge module, in the letter Breath judge module 200 judges that server info in the communication request whether there is in the server info allocation list it Before, judge whether the identification information of the client device in the communication request is located in default identification information group, if it is, Described information judge module 200 is triggered again.
In other embodiments of the present invention, the mark letter of mark client device of the judge module in communication request is judged Breath trigger request can check module when being located in default identification information group first, and check intermodule contact by the request Photos and sending messages judge module 200;
Request checks module, in the length of packet and the communication request of acquisition of the communication request obtained for determination Communication protocol information, the communication protocol information being not less than predetermined threshold value and obtain in the length for determining is default communication protocol letter During breath, then trigger described information judge module 200.
The network equipment provided in an embodiment of the present invention, it is possible to obtain the communication request that client device sends, judges communication Whether the server info of the workspace server in request is deposited in server info allocation list, if it is present according to preservation The server info of testing service device is processed to communication request, so that client device is communicated with testing service device.By Carried out processing and have changed the server of client device communication in the present invention in the network device to communication request, therefore without The code of client need to be modified, no longer be affected by user's license, convenient.
Wherein, the workspace server information can include:Workspace server domain name, the testing service device information can be with Including:Testing service device address;The communication request is asked for DNS name resolution;
Ask respond module 300, can be specifically for:Construct the response to DNS name resolution request and will preserve Testing service device address be added in the response as the analysis result of the workspace server domain name, by described response return Back to the client device, the DNS name resolution request is abandoned, so that the client device and the testing service device Communicate.
Wherein, the workspace server information can include:Workspace server domain name, the testing service device information can be with Including:Testing service device domain name;The communication request is asked for DNS name resolution;
Ask respond module 300, can be specifically for:Workspace server domain name during the DNS name resolution is asked The testing service device domain name for preserving is revised as, amended DNS name resolution request is sent to domain name resolution server, so that The client device is communicated with the testing service device.
Wherein, the workspace server information can include:Workspace server interface message, the testing service device information Can include:Testing service device interface message, the communication request are asked for interface interchange;
The ask respond module 300, can be specifically for:Workspace server interface during the interface interchange is asked Information is revised as the testing service device interface message for preserving, and the request of amended interface interchange is sent to the testing service Device, so that the client device is communicated with the testing service device by calling the interface of the testing service device.
As shown in figure 1, present invention also offers a kind of vehicle toll communication test system, can include:Client device 001st, workspace server 003, testing service device 004 and any one the above-mentioned network equipment 002, the client device 001 lead to Cross the network equipment 002 to communicate to connect with the workspace server 003, the testing service device 004.
It should be noted that herein, such as first and second or the like relational terms are used merely to a reality Body or operation are made a distinction with another entity or operation, and are not necessarily required or implied these entities or deposit between operating In any this actual relation or order.And, term " including ", "comprising" or its any other variant are intended to Nonexcludability includes, so that a series of process, method, article or equipment including key elements not only includes that those will Element, but also other key elements including being not expressly set out, or also include for this process, method, article or equipment Intrinsic key element.In the absence of more restrictions, the key element for being limited by sentence "including a ...", it is not excluded that Also there is other identical element in process, method, article or equipment including the key element.
Each embodiment in this specification is described by the way of correlation, identical similar portion between each embodiment Divide mutually referring to what each embodiment was stressed is the difference with other embodiment.Especially for system reality For applying example, as which is substantially similar to embodiment of the method, so description is fairly simple, related part is referring to embodiment of the method Part explanation.
Presently preferred embodiments of the present invention is the foregoing is only, protection scope of the present invention is not intended to limit.All Any modification, equivalent substitution and improvements that is made within the spirit and principles in the present invention etc., are all contained in protection scope of the present invention Interior.

Claims (10)

1. a kind of vehicle toll communication test method, it is characterised in that be applied in the network equipment, client device is by described The network equipment is communicated to connect with workspace server, testing service device, and be stored with the network equipment server info allocation list, Preserve in the server info allocation list:The server info of workspace server and the server info of testing service device, Methods described includes:
The communication request that the client device sends is obtained, the communication request carries workspace server to be communicated Server info;
Judge that the server info of the workspace server in the communication request whether there is in the server info allocation list In, if it is present the communication request is processed according to the server info of the testing service device for preserving, so that described Client device is communicated with the testing service device.
2. method according to claim 1, it is characterised in that the workspace server information includes:Workspace server domain Name, the testing service device information include:Testing service device address;The communication request is asked for DNS name resolution;
The server info according to the testing service device for preserving is processed to the communication request, so that the client Equipment is communicated with the testing service device, including:
Construct the response to DNS name resolution request and using the testing service device address for preserving as the workspace server The analysis result of domain name is added in the response, and the response is returned to the client device, the DNS domain name is abandoned Analysis request, so that the client device is communicated with the testing service device.
3. method according to claim 1, it is characterised in that the workspace server information includes:Workspace server domain Name, the testing service device information include:Testing service device domain name;The communication request is asked for DNS name resolution;
The server info according to the testing service device for preserving is processed to the communication request, so that the client Equipment is communicated with the testing service device, including:
Workspace server domain name during the DNS name resolution is asked is revised as the testing service device domain name for preserving, will modification DNS name resolution request afterwards is sent to domain name resolution server, so that the client device and the testing service device phase Communication.
4. method according to claim 1, it is characterised in that the workspace server information includes:Workspace server connects Message ceases, and the testing service device information includes:Testing service device interface message, the communication request are asked for interface interchange;
The server info according to the testing service device for preserving is processed to the communication request, so that the client Equipment is communicated with the testing service device, including:
Workspace server interface message during the interface interchange is asked is revised as the testing service device interface message for preserving, will Amended interface interchange request is sent to the testing service device, so that the client device is by calling the test clothes The interface of business device is communicated with the testing service device.
5. the method according to any one of Claims 1-4, it is characterised in that the communication request also carries transmission should The identification information of the client device of communication request, the server info in the communication request is judged whether there is in described Before in server info allocation list, methods described also includes:
Judge whether the identification information of the client device in the communication request is located in default identification information group, if It is, then executes the server info judged in the communication request to whether there is in the server info allocation list Step.
6. a kind of network equipment for vehicle toll communication test, it is characterised in that client device is set by the network For communicating to connect with workspace server, testing service device, be stored with the network equipment server info allocation list, the clothes Preserve in business device information configuration table:The server info of workspace server and the server info of testing service device, the net Network equipment also includes:Request obtains module, signal judgement module and ask respond module,
The request obtains module, and for obtaining the communication request that the client device sends, the communication request is carried The server info of workspace server to be communicated;
Described information judge module, for judge the workspace server in the communication request server info whether there is in In the server info allocation list, if it is present the triggering ask respond module;
The ask respond module, at according to the server info of the testing service device for preserving to the communication request Reason, so that the client device is communicated with the testing service device.
7. the network equipment according to claim 6, it is characterised in that the workspace server information includes:Work service Device domain name, the testing service device information include:Testing service device address;The communication request is asked for DNS name resolution;
The ask respond module, specifically for:Construct the response the test clothes by preservation asked by the DNS name resolution Business device address is added in the response as the analysis result of the workspace server domain name, the response is returned to described Client device, abandons the DNS name resolution request, so that the client device is communicated with the testing service device.
8. the network equipment according to claim 7, it is characterised in that the workspace server information includes:Work service Device domain name, the testing service device information include:Testing service device domain name;The communication request is asked for DNS name resolution;
The ask respond module, specifically for:Workspace server domain name during the DNS name resolution is asked is revised as protecting Amended DNS name resolution request is sent to domain name resolution server, so that the client by the testing service device domain name that deposits End equipment is communicated with the testing service device.
9. the network equipment according to any one of claim 6 to 8, it is characterised in that the communication request is also carried to be sent out The identification information of the client device of the communication request, the vehicle toll communication test device is given also to include:Mark judges mould Block, believes in the server for judging that in described information judge module the server info in the communication request whether there is Before in breath allocation list, judge whether the identification information of the client device in the communication request is located at default identification information In group, if it is, triggering described information judge module again.
10. a kind of vehicle toll communication test system, it is characterised in that include:Client device, workspace server, test clothes The network equipment described in business device and any one of claim 6 to 9, the client device is by the network equipment and the work Make server, testing service device communication connection.
CN201611051095.5A 2016-11-24 2016-11-24 Vehicle toll communication test method, the network equipment and system Active CN106506281B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611051095.5A CN106506281B (en) 2016-11-24 2016-11-24 Vehicle toll communication test method, the network equipment and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611051095.5A CN106506281B (en) 2016-11-24 2016-11-24 Vehicle toll communication test method, the network equipment and system

Publications (2)

Publication Number Publication Date
CN106506281A true CN106506281A (en) 2017-03-15
CN106506281B CN106506281B (en) 2019-12-03

Family

ID=58328828

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611051095.5A Active CN106506281B (en) 2016-11-24 2016-11-24 Vehicle toll communication test method, the network equipment and system

Country Status (1)

Country Link
CN (1) CN106506281B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110650218A (en) * 2018-06-27 2020-01-03 中兴通讯股份有限公司 TBox control method and device and computer readable storage medium
CN110795343A (en) * 2019-10-12 2020-02-14 车智互联(北京)科技有限公司 Test system, test method and computing device
CN111782542A (en) * 2020-07-13 2020-10-16 豆盟(北京)科技股份有限公司 Test method, device, equipment, system and computer storage medium
US11832189B2 (en) 2018-12-26 2023-11-28 Huizhou Tcl Mobile Communication Co., Ltd. Control method for doze mode of mobile terminal, storage medium and mobile terminal

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110302298A1 (en) * 2010-06-07 2011-12-08 Salesforce.Com, Inc. Method and system for testing multiple components of a multi-tenant, multi-domain, multi-tiered website
CN102739453A (en) * 2012-07-03 2012-10-17 华为软件技术有限公司 Master-standby switching method, device and system
CN103685590A (en) * 2012-09-14 2014-03-26 阿里巴巴集团控股有限公司 Method and system for obtaining IP (internet protocol) address
CN105430108A (en) * 2014-08-25 2016-03-23 腾讯科技(深圳)有限公司 Test environment accessing method and proxy server

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110302298A1 (en) * 2010-06-07 2011-12-08 Salesforce.Com, Inc. Method and system for testing multiple components of a multi-tenant, multi-domain, multi-tiered website
CN102739453A (en) * 2012-07-03 2012-10-17 华为软件技术有限公司 Master-standby switching method, device and system
CN103685590A (en) * 2012-09-14 2014-03-26 阿里巴巴集团控股有限公司 Method and system for obtaining IP (internet protocol) address
CN105430108A (en) * 2014-08-25 2016-03-23 腾讯科技(深圳)有限公司 Test environment accessing method and proxy server

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110650218A (en) * 2018-06-27 2020-01-03 中兴通讯股份有限公司 TBox control method and device and computer readable storage medium
CN110650218B (en) * 2018-06-27 2022-12-02 中兴通讯股份有限公司 TBox control method and device and computer readable storage medium
US11832189B2 (en) 2018-12-26 2023-11-28 Huizhou Tcl Mobile Communication Co., Ltd. Control method for doze mode of mobile terminal, storage medium and mobile terminal
CN110795343A (en) * 2019-10-12 2020-02-14 车智互联(北京)科技有限公司 Test system, test method and computing device
CN110795343B (en) * 2019-10-12 2024-03-15 车智互联(北京)科技有限公司 Test system, test method and computing device
CN111782542A (en) * 2020-07-13 2020-10-16 豆盟(北京)科技股份有限公司 Test method, device, equipment, system and computer storage medium

Also Published As

Publication number Publication date
CN106506281B (en) 2019-12-03

Similar Documents

Publication Publication Date Title
CN106506281A (en) Vehicle toll communication test method, the network equipment and system
CN103339887B (en) For the method for optimized network prefix list search
CN108132814A (en) Page loading method, device, computer equipment and the storage medium of application program
CN111711635B (en) Firewall wall opening method and device, computer equipment and storage medium
CN107113203A (en) The connective equipment, system and method for debugging network
CN105516321B (en) A kind of collecting method and device
CN104253820A (en) Software defined network safety control system and control method
CN110535654A (en) Parallel system dispositions method, device and computer equipment based on block chain
CN107005441A (en) Dial testing method, call-testing system and calculate node
CN108881111A (en) A kind of method and device for realizing multi-tenant system
CN109714221A (en) The determination method, apparatus and system of network packet
CN106130897B (en) Performance optimization method based on Router Simulation
CN108255585A (en) SDK exception controls and application program operation method, device and its equipment
CN105656684B (en) Failure simulation method and device
CN107547253A (en) A kind of collocation method and device
CN110213391A (en) A kind of configuration method and device of internet protocol address
CN109074288A (en) Conflict solving in network virtualization scene
CN104488240B (en) Session management method, address management method and relevant device
CN107592370A (en) A kind of network load balancing method and device
CN108521397A (en) A kind of method and system accessing resource service
CN109413001A (en) The method and device of safeguard protection is carried out to the interaction data in cloud computing system
CN110602234A (en) Block chain network node management method, device, equipment and storage medium
CN104506405B (en) The method and device of cross-domain access
CN110569987A (en) Automatic operation and maintenance method, operation and maintenance equipment, storage medium and device
CN106230726A (en) The detection method of forward-path and device

Legal Events

Date Code Title Description
C06 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