CN106506281B - 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
CN106506281B
CN106506281B CN201611051095.5A CN201611051095A CN106506281B CN 106506281 B CN106506281 B CN 106506281B CN 201611051095 A CN201611051095 A CN 201611051095A CN 106506281 B CN106506281 B CN 106506281B
Authority
CN
China
Prior art keywords
server
testing service
service device
request
communication 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.)
Active
Application number
CN201611051095.5A
Other languages
Chinese (zh)
Other versions
CN106506281A (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, the network equipment and system provided in an embodiment of the present invention, 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 handled according to the server info of the testing service device of preservation, so that client device is communicated with testing service device.Since the present invention has carried out processing to communication request in the network device and has changed the server of client device communication, there is no need to the codes to client to modify, and no longer be influenced by user's license, more convenient.

Description

Vehicle toll communication test method, the network equipment and system
Technical field
The present invention relates to vehicle toll communication test technical fields, more particularly to vehicle toll communication test method, net Network equipment and system.
Background technique
With the development of science and technology, vehicle toll also gradually intelligent, automation.In vehicle or the smart machine of vehicle self-carrying The workspace server of upper installation charging software, processing vehicle toll business realizes automatic charging by communicating with charging software.
When vehicle toll business needs to update, updated vehicle toll business causes due to there are problem in order to prevent Entire vehicle toll collection system operational failure, technical staff generally can first by newest vehicle toll business be loaded into testing service Communication test is carried out to it in device.Since test consumption charge software is communicated to connect with workspace server, in test It needs to control charging software used in test to be changed to communicate to connect with testing service device to be tested.The 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 will lead to software more Newly, software can not automatically update sometimes, it is also necessary to user's license.This allow for user it is unlicensed in the case where, the charging software It can not update, affect test process.
Summary of the invention
The embodiment of the present invention is designed to provide a kind of vehicle toll communication test method, the network equipment and system, with The server that client device is communicated is changed under the premise of not modifying client code.Specific technical solution 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 It is communicated to connect with workspace server, testing service device, is stored with server info allocation list, the service in the network equipment It is preserved in device information configuration table: the server info of workspace server and the server info of testing service device, the method Include:
The communication request that the client device is sent is obtained, the communication request carries the 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 in the server info It sets in table, if it is present the communication request is handled according to the server info of the testing service device of preservation, so that The client device is communicated with the testing service device.
Optionally, the workspace server information includes: workspace server domain name, and the testing service device information includes: Testing service device address;The communication request is DNS name resolution request;
The server info of the testing service device according to preservation handles the communication request, so that the visitor Family end equipment is communicated with the testing service device, comprising:
Construct the response requested to the DNS name resolution and using the testing service device address of preservation as the work clothes The parsing result of business device domain name is added in the response, and the response is returned to the client device, abandons the DNS Domain name mapping request, so that the client device is communicated with the testing service device.
Optionally, the workspace server information includes: workspace server domain name, and the testing service device information includes: Testing service device domain name;The communication request is DNS name resolution request;
The server info of the testing service device according to preservation handles the communication request, so that the visitor Family end equipment is communicated with the testing service device, comprising:
Workspace server domain name in DNS name resolution request is revised as the testing service device domain name saved, it will Modified DNS name resolution request is sent to domain name resolution server, so that the client device and the testing service Device communicates.
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 interface call request;
The server info of the testing service device according to preservation handles the communication request, so that the visitor Family end equipment is communicated with the testing service device, comprising:
Workspace server interface message in the interface call request is revised as the testing service device interface saved letter Breath, sends the testing service device for modified interface call request, so that the client device passes through described in calling The interface of testing service device is communicated with the testing service device.
Optionally, the communication request also carries the identification information for sending the client device of the communication request, is sentencing Before server info in the communication request of breaking whether there is in the server info allocation list, the method is also wrapped It includes:
Judge whether the identification information of the client device in the communication request is located in preset identification information group, such as Fruit is, then the server info executed in the judgement communication request whether there is in the server info allocation list The step of.
A kind of network equipment for vehicle toll communication test, client device pass through the network equipment and work clothes Business device, testing service device communicate to connect, and are stored with server info allocation list in the network equipment, the server info is matched Set in table and preserve: the server info of workspace server and the server info of testing service device, the network equipment also wrap Include: request obtains module, signal judgement module and ask respond module,
The request obtains module, and the communication request sent for obtaining the client device, the communication request is taken The server info of the band workspace server to be communicated;
The signal judgement 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 triggering the ask respond module;
The ask respond module, for according to the server info of the testing service device of preservation to the communication request into Row processing, so that the client device is communicated with the testing service device.
Optionally, the workspace server information includes: workspace server domain name, and the testing service device information includes: Testing service device address;The communication request is DNS name resolution request;
The ask respond module, is specifically used for: constructing the response requested to the DNS name resolution and by the survey of preservation Examination server address is added in the response as the parsing 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, and the testing service device information includes: Testing service device domain name;The communication request is DNS name resolution request;
The ask respond module, is specifically used for: the workspace server domain name in DNS name resolution request is modified For the testing service device domain name of preservation, domain name resolution server is sent by modified DNS name resolution request, so that described Client device is communicated with the testing service device.
Optionally, the communication request also carries the identification information for sending the client device of the communication request, described Vehicle toll communication test device further include: mark judgment module, for judging that the communication is asked in the signal judgement module Before the server info asked 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 preset identification information group, if so, triggering the signal judgement module again.
A kind of vehicle toll communication test system, comprising: client device, workspace server, testing service device and above-mentioned Any network equipment, the client device passes through the network equipment and the workspace server, the testing service Device communication connection.
Vehicle toll communication test method, the network equipment and system provided in an embodiment of the present invention, can obtain client The communication request that equipment is sent, judges whether the server info of the workspace server in communication request deposits server info configuration In table, if it is present being handled according to the server info of the testing service device of preservation communication request, so that client Equipment is communicated with testing service device.Since the present invention handle to communication request in the network device and has changed client The server of end equipment communication, there is no need to the codes to client to modify, and no longer be influenced by user's license, more just Just.
Certainly, it implements any of the products of the present invention or method must be not necessarily required to reach all the above excellent simultaneously Point.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this Some embodiments of invention for those of ordinary skill in the art without creative efforts, can be with It obtains other drawings based on these drawings.
Fig. 1 is a kind of structural schematic diagram 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 vehicle toll communication test method provided in an embodiment of the present invention;
Fig. 4 is a kind of structural representation of the network equipment for vehicle toll communication test provided in an embodiment of the present invention Figure.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other Embodiment shall fall within the protection scope of the present 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 passes through the network equipment 002 and workspace server 003,004 communication link of testing service device It connects, server info allocation list is stored in the network equipment 002, is preserved 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, this method may include:
S100, the communication request that the client device 001 is sent is obtained, what the communication request carrying to be communicated The server info of workspace server;
Wherein, the network equipment 002 can be the headend equipment of workspace server 003 and testing service device 004, and client is set Standby 001 needs through the headend equipment and each server communication.The form of the network equipment 002 can there are many, such as routing device Deng.Optionally, the register method for the standard that method of the invention can be provided by kernel protocol stack is into the network equipment 002 Core registers a kernel protocol stack and adjusts back entrance.After the completion of registration, when there is data by the network equipment 002, the network equipment 002 kernel protocol stack can all call the readjustment entrance, so that method of the invention obtains the data to carry out to it Processing.
S200, judge that the server info of the workspace server in the communication request whether there is in server letter It ceases in allocation list, if it is present executing step S300;
In practical applications, the server that may do not need the request communication to all client devices carries out more Change, therefore can also judge whether received communication request is that the client preset in client device group is set after step S100 What preparation was sent, if so, executing step S200.
Wherein, which can store in another equipment (such as management equipment), and user can set at this It modifies on standby to server info allocation list.When in use, the network equipment 002 can be another by this first for method of the invention Server info allocation list in one equipment be synchronized to it is local to carry out using.Certainly, in actual use, which believes Breath allocation list can also be directly stored in the network equipment 002, and user directly passes through the network equipment 002 and matches to server info Table is set to modify.Specifically, can be by providing a user the visualization interface UI to facilitate user to server info Allocation list is modified.
S300, the communication request is handled according to the server info of the testing service device of preservation, so that described Client device is communicated with the testing service device.
In practical applications, workspace server and testing service device can be different entity devices, or lay Two different virtual servers in a certain equipment.Wherein, the present invention is applied in product test environment, workspace server It can be the service server where existing product, testing service device can be the testing service device where new product.
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 preset identification information group, such as Fruit is, then executes step S200.
It is understood that do not need to test the product in testing service device using all clients, because This, can only selected section client be tested.Each mark in above-mentioned preset identification information group is to be surveyed The mark of the client of examination.Wherein, the mark of client can there are many, such as the device id of license plate, client device.
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 A network equipment.In an alternative embodiment of the invention, it is also an option that being set with the client of one or more network device communications It is standby that new product is tested.Since vehicle toll communication test method of the invention is applied in the network equipment, as long as Control certain network equipment execute vehicle toll communication test method of the invention can be realized convey the network device communications visitor Family end equipment tests new product.
Wherein, preset threshold can be 41 bytes, and default communication protocol information includes: IP agreement mark, UDP (User Datagram Protocol, User Datagram Protocol) 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 deducting the length after 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 interface call request, the length of communication bag is not Lower than 60 bytes.
Pass through the communication protocol information in the communication request of acquisition, so that it may determine whether the communication request is not DNS domain Name analysis request or interface call request, if not, step S200 is executed again, if so, the present invention can be not processed.
Vehicle toll communication test method provided in an embodiment of the present invention, the communication that can obtain client device transmission are asked It asks, judges whether the server info of the workspace server in communication request is deposited in server info allocation list, if it is present Communication request is handled according to the server info of the testing service device of preservation, so that client device and testing service device It communicates.Since the present invention has carried out processing to communication request in the network device and has changed the service of client device communication Device, there is no need to the codes to client to modify, and no longer be influenced by user's license, more convenient.
There are many concrete modes handled the communication request, and three kinds of modes are provided below, it is to be understood that These three modes are only part way.
First way: the workspace server information includes: workspace server domain name, the testing service device packet It includes: testing service device address;The communication request is DNS name resolution request;Step S300 includes: construction to the DNS domain The response of name analysis request is simultaneously added the testing service device address of preservation as the parsing result of the workspace server domain name Into the response, the response is returned into the client device, the DNS name resolution request is abandoned, so that described Client device is communicated with the testing service device.
Under this mode, there will be domain name mapping using the network equipment of the method for the present invention.
It is understood that by using workspace server domain name corresponding testing service device address as to the DNS domain The response of name analysis request returns to the client device, allows for client device for testing service device address and is mistakenly considered work Make the address of server.In this way, being in fact and testing service device when it is communicated client device " with for " with workspace server Communication.Processing in this way allows for client device and server all in unaware state.Certainly, such processing Also without any code of modification client, permit without user, it is more convenient and practical.
It is exemplified below, such as: the obtained address after workspace server domain name a is parsed under normal circumstances is work clothes The address XXX.100 of business device, if it is desired to the new product for being tested (such as A/B test) is deployed in the survey that address is XXX.101 It tries on server, then user can be easily by being configured server info allocation list, correspondingly by domain name a Location is changed to XXX.101, and the communication of client device Yu the testing service device can be realized.
The second way: the workspace server information includes: workspace server domain name, the testing service device packet It includes: testing service device domain name;The communication request is DNS name resolution request;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 saved, and modified DNS name resolution is requested It is sent to domain name resolution server, so that the client device is communicated with the testing service device.
Under this mode, using the network equipment need not have domain name mapping function of method of the invention.
It is understood that allowing for domain name by the modification of the server domain name carried in requesting DNS name resolution Resolution server parses modified 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 obtained testing service device as it The parsing result of the workspace server domain name of request analysis is gone forward side by side to exercise and be used, 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, and the communication request is interface call request;Step S400 includes: by the interface Workspace server interface message in call request is revised as the testing service device interface message saved, by modified interface tune It is sent to the testing service device with request, so that interface and institute of the client device by the calling testing service device Testing service device is stated to communicate.
Pass through the modification to interface call request, so that it may so that becoming originally to the call request of workspace server interface Call request to testing service device interface, send it to testing service device after tested server response after, client device Just the calling to testing service device interface is realized, so as to be communicated with testing service device.The third mode is same The server that client device is communicated is changed under the premise of not modifying client code.
The third mode is illustrated below:
Such as: it is R1 that client device, which calls the path http of the interface of workspace server, under normal circumstances, if it is used for The path http of the interface of the testing service device of test is R2, then only needing to save work clothes in server info allocation list It is engaged in the interface path of device and the interface path of testing service device, then the present invention can be by will be in interface call request " R1 " is revised as " R2 " and testing service device is issued in the request can be realized to allow client device that testing service device is called to connect Mouthful.
Furthermore, it is to be understood that above-mentioned several ways of the invention can be used alone, can also be used in combination. The technical solution that a kind of first way and the third mode are used in combination is provided below, as shown in figure 3, may include:
S001, the reading service device information configuration table from management equipment;
At this point, server info allocation list be stored in first way with corresponding relationship workspace server domain name and Testing service device address, the server info allocation list are stored with the work service in the third mode with corresponding relationship simultaneously Device interface message and testing service device interface message.
S002, entrance is adjusted back to the kernel of the network equipment 002 registration kernel protocol stack;
S003, the communication request that client device is sent is obtained through the readjustment entrance, communication request carrying will lead to The server info of the workspace server 003 of letter;
S004, the type for determining communication request request if it is DNS name resolution, then follow the steps S005, if it is connecing Mouth call request, executes step S007, otherwise without processing;
Specifically, if the communication bag of the communication request is UDP packet and target port is that 53 ports can be identified as DNS domain Name analysis request.Due to there are many interface call requests, it is illustrated by taking http post interface call request as an example below: such as Fruit target port is 8000 and the beginning of application layer data is POST, then can determine that the communication request is interface call request.
S005, judge that the server info in the communication request whether there is in the server info allocation list, If it is present executing step S006;Otherwise terminate execution of the invention.
S006, the testing service device address saved in server info allocation list is asked as to the DNS name resolution The response asked returns to the client device and abandons the DNS name resolution request, so that the client device and institute Testing service device is stated to communicate.
S007, judge that the server info in the communication request whether there is in the server info allocation list, If it is present executing step S008;Otherwise terminate execution of the invention.
S008, the workspace server interface message in the interface call request is revised as in server info allocation list The testing service device interface message of preservation sends the testing service device for modified interface call request, so that described Client device calls the interface of the testing service device.
Certainly, similar with first way and the third mode association schemes, in other embodiments of the present invention, second Mode and the third mode can also combine, and repeat no more.
In order to better understand the technical solution of the application, illustrate this below with two kinds of scenes that parking lot is tested Apply for concrete application:
Scene one:
Development teams develop the new version of a parking lot application, by the new version it is formal it is online before, need to It is tested these three stages by internal debugging, external testing, gray scale less, each stage can apply method of the invention.
The version that different phase is directed to can be disposed on a different server, such as: 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 new version is v1.1 (namely beta version This), it is deployed on the server that address is XXX.101.The debugging code of v1.1 version in developer's development process It is deployed on the server that address is XXX.102.V1.1 version 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 by domain name AAA.com with address for the server of XXX.100 Letter.
In order to carry out the test in above three stage, multiple and different clients can be used, as used when internal debugging Client C00 uses client C01 and C02 when external testing, when gray scale is tested using client C11, C12, C13, C14 and C15。
Carry out internal debugging first, the present invention by DNS name resolution that client C00 is sent request in domain name AAA.com parsing, is resolved to XXX.102, so that client C00 is communicated with the server of deployment debugging code, it is complete At internal debugging.
After debugging passes through, external testing is carried out.The present invention passes through the DNS name resolution that sends to client C01, C02 Domain name AAA.com parsing in request, is resolved to XXX.101, so that client C01, C02 stop with beta version is disposed The server of parking lot application is communicated, and external testing is completed.When tester has found that this beta version is problematic, need with When original version compares, it is only necessary to stop the domain name AAA.com in the DNS name resolution sent to client C01, C02 request It is parsed, client C01, C02 can be with the service where former operation version v1.0 by domain name AAA.com at this time Device (address XXX.100) is communicated.
After external testing passes through, gray scale test can be continued.The present invention is by sending 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 gray scale test is completed.
After gray scale test passes through, new version is deployed on the server that address is XXX.100 with replacement by technical staff V1.0 version.At this point, the present invention stop the DNS name resolution that client C11-C15 is sent request in domain name AAA.com into Row parsing, client C11-C15 can be with server (where new version v1.1 by domain name AAA.com at this time Location is XXX.100) it is communicated.
Scene two:
The scene two and the difference of scene one are that client device passes through the side of transmission interface call request under the scene Formula and server communication, and the code deployment of different editions is on the same server, client is by calling the server not With interface access the codes of different editions.Such as: by the way of http post, the path that all interfaces call is all It is http://AAA.com/default, specific interface message service=" interface service name is contained in post parameter Claim ".The present invention, which only needs to modify " interface service title " in interface call request, can be realized change client device access Interface purpose.
Corresponding with above method embodiment, the present invention also provides a kind of communication devices.
Incorporated by reference to Fig. 1 and Fig. 4, the embodiment of the invention provides a kind of network equipments for vehicle toll communication test 002, client device 001 is communicated to connect by the network equipment 002 and workspace server 003, testing service device 004, institute It states and is stored with server info allocation list in the network equipment 002, 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 may include: request obtain Module 100, signal judgement module 200 and ask respond module 300,
The request obtains module 100, the communication request sent for obtaining the client device 001, the communication Request carries the server info for the workspace server to be communicated;
The signal judgement module 200, for judging that the server info of the workspace server in the communication request is It is no to be present in the server info allocation list, if it is present triggering the ask respond module 300;
The ask respond module 300, the server info for the testing service device according to preservation ask the communication It asks and is handled, 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 judgment module, in the letter Breath judgment module 200 judge the 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 preset identification information group, if so, The signal judgement module 200 is triggered again.
In other embodiments of the present invention, mark judgment module is in the mark letter for judging the client device in communication request Breath trigger request can check module first when being located in preset identification information group, and check intermodule contact by the request Photos and sending messages judgment module 200;
Request checks module, in the length of data packet and the communication request of acquisition for determining the communication request obtained Communication protocol information, determining length is not less than preset threshold and the communication protocol information that obtains is default communication protocol letter When breath, then trigger the signal judgement module 200.
The network equipment provided in an embodiment of the present invention can obtain the communication request of client device transmission, judge to communicate 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 handles communication request, so that client device is communicated with testing service device.By The server of client device communication, therefore nothing handle and have changed to communication request in the network device in the present invention It need to modify to the code of client, no longer be influenced by user's license, it is more convenient.
Wherein, the workspace server information may include: workspace server domain name, and the testing service device information can be with It include: testing service device address;The communication request is DNS name resolution request;
Ask respond module 300 can be specifically used for: construct response request to the DNS name resolution and will preservation Testing service device address be added in the response as the parsing result of the workspace server domain name, by it is 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 It communicates.
Wherein, the workspace server information may include: workspace server domain name, and the testing service device information can be with It include: testing service device domain name;The communication request is DNS name resolution request;
Ask respond module 300 can be specifically used for: by the workspace server domain name in DNS name resolution request It is revised as the testing service device domain name saved, sends domain name resolution server for modified DNS name resolution request, so that The client device is communicated with the testing service device.
Wherein, the workspace server information may include: workspace server interface message, the testing service device information It may include: testing service device interface message, the communication request is interface call request;
The ask respond module 300, can be specifically used for: by the workspace server interface in the interface call request Information is revised as the testing service device interface message saved, sends the testing service for modified interface call request Device, so that the client device is by calling the interface of the testing service device to communicate with the testing service device.
As shown in Figure 1, may include: client device the present invention also provides a kind of vehicle toll communication test system 001, workspace server 003, testing service device 004 and above-mentioned any network equipment 002, the client device 001 are logical The network equipment 002 is crossed to communicate to connect with the workspace server 003, the testing service device 004.
It should be noted that, in this document, relational terms such as first and second and the like are used merely to a reality Body or operation are distinguished with another entity or operation, are deposited without necessarily requiring or implying between these entities or operation In any actual relationship or order or sequence.Moreover, the terms "include", "comprise" or its any other variant are intended to Non-exclusive inclusion, so that the process, method, article or equipment including a series of elements is not only wanted including those Element, but also including other elements that are not explicitly listed, or further include for this process, method, article or equipment Intrinsic element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that There is also other identical elements in process, method, article or equipment including the element.
Each embodiment in this specification is all made of relevant mode and describes, same and similar portion between each embodiment Dividing may refer to each other, and each embodiment focuses on the differences from other embodiments.Especially for system reality For applying example, since it is substantially similar to the method embodiment, so being described relatively simple, related place is referring to embodiment of the method Part explanation.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the scope of the present invention.It is all Any modification, equivalent replacement, improvement and so within the spirit and principles in the present invention, are all contained in protection scope of the present invention It is interior.

Claims (8)

1. a kind of vehicle toll communication test method, which is characterized in that be applied in the network equipment, client device passes through described The network equipment and workspace server, testing service device communicate to connect, and are stored with server info allocation list in the network equipment, It is preserved in the server info allocation list: the server info of workspace server and the server info of testing service device, The server info of the workspace server includes: workspace server domain name, and the server info of the testing service device includes: Testing service device domain name;The described method includes:
The communication request that the client device is sent is obtained, the communication request is DNS name resolution request, and the communication is asked Seek the server info for carrying the workspace server to be communicated;
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 being handled according to the server info of the testing service device of preservation the communication request, so that described Client device is communicated with the testing service device, and the server info of the testing service device according to preservation is to described logical Letter request is handled, so that the client device is communicated with the testing service device, comprising: by the DNS domain name solution Workspace server domain name in analysis request is revised as the testing service device domain name saved, and modified DNS name resolution is requested It is sent to domain name resolution server, so that the client device is communicated with the testing service device.
2. the method according to claim 1, wherein the server info of the workspace server includes: work Server domain name, the server info of the testing service device include: testing service device address;The communication request is DNS domain Name analysis request;
The server info of the testing service device according to preservation handles the communication request, so that the client Equipment is communicated with the testing service device, comprising:
Construct the response requested to the DNS name resolution and using the testing service device address of preservation as the workspace server The parsing result of domain name is added in the response, and the response is returned to the client device, abandons the DNS domain name Analysis request, so that the client device is communicated with the testing service device.
3. the method according to claim 1, wherein the server info of the workspace server includes: work Server interface information, the server info of the testing service device include: testing service device interface message, the communication request For interface call request;
The server info of the testing service device according to preservation handles the communication request, so that the client Equipment is communicated with the testing service device, comprising:
Workspace server interface message in the interface call request is revised as to the testing service device interface message saved, it will Modified interface call 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.
4. method according to any one of claims 1 to 3, which is characterized in that the communication request also carries transmission should The identification information of the client device of communication request is judging the server info in the communication request with the presence or absence of in described Before in server info allocation list, the method also includes:
Judge whether the identification information of the client device in the communication request is located in preset identification information group, if It is, then the server info executed in the judgement communication request whether there is in the server info allocation list Step.
5. a kind of network equipment for vehicle toll communication test, which is characterized in that client device is set by the network It is standby to be communicated to connect with workspace server, testing service device, server info allocation list, the clothes are stored in the network equipment It is preserved in business device information configuration table: the server info of workspace server and the server info of testing service device, the work The server info for making server includes: workspace server domain name, and the server info of the testing service device includes: test clothes Business device domain name;The network equipment further include: request obtains module, signal judgement module and ask respond module,
The request obtains module, and the communication request sent for obtaining the client device, the communication request is DNS domain Name analysis request, the communication request carry the server info for the workspace server to be communicated;
The signal judgement 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 triggering the ask respond module;
The ask respond module, for the server info according to the testing service device of preservation to the communication request at Reason, so that the client device is communicated with the testing service device, the ask respond module is specifically used for: will be described Workspace server domain name in DNS name resolution request is revised as the testing service device domain name saved, by modified DNS domain name Analysis request is sent to domain name resolution server, so that the client device is communicated with the testing service device.
6. the network equipment according to claim 5, which is characterized in that the server info of the workspace server includes: Workspace server domain name, the server info of the testing service device include: testing service device address;The communication request is DNS name resolution request;
The ask respond module, is specifically used for: constructing response request to the DNS name resolution and by the test of preservation clothes Business device address is added in the response as the parsing 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.
7. according to the described in any item network equipments of claim 5 to 6, which is characterized in that the communication request also carries hair Give the identification information of the client device of the communication request, the network equipment further include: mark judgment module, for described Signal judgement module judge the 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 preset identification information group, if so, The signal judgement module is triggered again.
8. a kind of vehicle toll communication test system characterized by comprising client device, workspace server, testing service Device and the described in any item network equipments of claim 5 to 7, the client device pass through the network equipment and the work 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 CN106506281A (en) 2017-03-15
CN106506281B true 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)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110650218B (en) * 2018-06-27 2022-12-02 中兴通讯股份有限公司 TBox control method and device and computer readable storage medium
CN109462699B (en) 2018-12-26 2020-10-23 惠州Tcl移动通信有限公司 Method for controlling Doze mode of mobile terminal
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

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9246699B2 (en) * 2010-06-07 2016-01-26 Salesforce.Com, Inc. Method and system for testing multiple components of a multi-tenant, multi-domain, multi-tiered website

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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

Also Published As

Publication number Publication date
CN106506281A (en) 2017-03-15

Similar Documents

Publication Publication Date Title
CN106506281B (en) Vehicle toll communication test method, the network equipment and system
CN106301829B (en) A kind of method and apparatus of network service dilatation
CN110430100B (en) Network connectivity detection method and device
CN104169937B (en) Chance system scans
CN104301444B (en) Network IP acquisition methods, device, application platform, client and system
CN104767655B (en) A kind of analog result detection method and device
CN105871643B (en) Network operation emulation mode based on Routing Protocol
CN108881111A (en) A kind of method and device for realizing multi-tenant system
CN105722089B (en) A kind of equipment authentication method
CN110535654A (en) Parallel system dispositions method, device and computer equipment based on block chain
CN109246159A (en) A kind of method and apparatus for verifying security strategy
CN106130897B (en) Performance optimization method based on Router Simulation
CN105656684B (en) Failure simulation method and device
CN103959715A (en) Methods, systems, and computer readable media for testing a diameter routing node
CN107634871A (en) A kind of continuity testing method, apparatus and system
US9385990B2 (en) Relay server and relay communication system
CN104506405B (en) The method and device of cross-domain access
CN109858257A (en) Access control method and device
CN110750206A (en) Data processing method, device and system
CN107592370A (en) A kind of network load balancing method and device
CN109196460A (en) Transmission method, server, storage system, terminal device and the system of data
CN108011801A (en) Method, unit and the system of data transfer
CN106341342A (en) Communication connection maintaining method and device, terminal and server
EP2845374B1 (en) Address system
CN106534046A (en) Mimicry data transmission server and data transmission method

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