CN104660730B - The means of communication and its system of server-side and far-end unit - Google Patents
The means of communication and its system of server-side and far-end unit Download PDFInfo
- Publication number
- CN104660730B CN104660730B CN201510109487.1A CN201510109487A CN104660730B CN 104660730 B CN104660730 B CN 104660730B CN 201510109487 A CN201510109487 A CN 201510109487A CN 104660730 B CN104660730 B CN 104660730B
- Authority
- CN
- China
- Prior art keywords
- far
- end unit
- data packet
- address
- server
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L63/00—Network architectures or network communication protocols for network security
- H04L63/08—Network architectures or network communication protocols for network security for authentication of entities
- H04L63/0869—Network architectures or network communication protocols for network security for authentication of entities for achieving mutual authentication
Landscapes
- Engineering & Computer Science (AREA)
- Computer Hardware Design (AREA)
- Computer Security & Cryptography (AREA)
- Computing Systems (AREA)
- General Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Small-Scale Networks (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The present invention provides the means of communication and system of a kind of server-side and far-end unit, this method comprises: receiving the registration data packet that far-end unit is sent;Wherein, the source physical address in the registration data packet comprising the far-end unit, data type mark and facility information;If the data type mark in the data packet is identical with preset data type mark, whether it is consistent with preset coded format by the coded format of the comparison facility information, judges whether the far-end unit is legitimate device;If the far-end unit is legitimate device, the corresponding relationship of the source physical address and the facility information is recorded, and replys the information of success response to the far-end unit.Server-side and the Communication processing process of far-end unit are simple in the present invention, significantly improve working efficiency, and can guarantee the security performance of server-side and far-end unit communication process.
Description
Technical field
The present invention relates to far-end unit fields of communication technology, more particularly to the communication side of a kind of server-side and far-end unit
The communication system of method and a kind of server-side and far-end unit.
Background technique
In current IP network environment, server-side needs to be managed far-end unit, it is necessary to divide in advance to far-end unit
IP address is prepared, the treatment process working efficiency of the technology is low;Also, actual in use, the division of IP address is usual
Be it is variable, this just brings certain difficulty to remote side administration.That is supported in the prior art merely provides network layer
Or point, and the model of two-layer protocol packet is provided, current two-layer protocol packet does not provide the discovery processing of far-end unit.
Another processing method is that far-end unit obtains IP by DHCP mode, from Dynamic Host Configuration Protocol server, then by far-end unit
Connection server-side is actively gone to be managed for configuration;This way needs additional increase Dynamic Host Configuration Protocol server, while also wanting far-end unit
It can support the function of dhcp client;The program needs to increase additional equipment, and Communication processing process equally has work effect
The low drawback of rate.
Summary of the invention
Based on this, the present invention provides the means of communication and system of a kind of server-side and far-end unit, Communication processing process
Work efficiency is high.
A kind of means of communication of server-side and far-end unit, include the following steps:
Receive the registration data packet that far-end unit is sent;It wherein, include the far-end unit in the registration data packet
Source physical address, data type mark and facility information;
If the data type mark in the data packet is identical as preset data type mark, by setting described in comparison
Whether the coded format of standby information is consistent with preset coded format, judges whether the far-end unit is legitimate device;
If the far-end unit is legitimate device, records the source physical address and the corresponding of the facility information is closed
System, and the information of success response is replied to the far-end unit.
A kind of means of communication of server-side and far-end unit, include the following steps:
IP address is configured for far-end unit;
Address configuration data packet is sent to the far-end unit according to the source physical address of the far-end unit;Wherein, institute
State data type mark, facility information and the IP address that address configuration data packet includes the far-end unit;
The address returned after IP address is successfully configured according to the address configuration data packet if receiving the far-end unit
When configuration successful information, the corresponding relationship of the far-end unit Yu the IP address is recorded.
A kind of means of communication of server-side and far-end unit, include the following steps:
Receive the address configuration data packet that server-side is sent;Wherein, the address configuration data packet includes that the distal end is single
Data type mark, facility information and the IP address of member;
If in the address configuration data packet data type mark it is identical with preset data type mark, pass through pair
Whether the coded format than the facility information is consistent with preset coded format, whether just to judge the address configuration data packet
Often;
If normal, then configuring local IP address is the IP address in the address configuration data packet, and sends address configuration
Successful information is to the server-side.
A kind of system of the communication of server-side and far-end unit, comprising:
First receiving module, for receiving the registration data packet of far-end unit transmission;Wherein, it is wrapped in the registration data packet
Source physical address, data type mark and facility information containing the far-end unit;
First judgment module, if the data type mark in the data packet identifies phase with preset data type
Together, then the far-end unit is judged by comparing whether the coded format of the facility information is consistent with preset coded format
It whether is legitimate device;
First logging modle stores the source physical address and described if being legitimate device for the far-end unit
The corresponding relationship of facility information, and the information of success response is replied to the far-end unit.
A kind of communication system of server-side and far-end unit, comprising:
First configuration module configures IP address for far-end unit;
First sending module sends address to the far-end unit for the source physical address according to the far-end unit and matches
Set data packet;Wherein, the address configuration data packet includes the data type mark of the far-end unit, facility information and IP
Location;
Second logging modle, if for receiving the far-end unit according to address configuration data packet success configuration of IP
When the address configuration successful information returned behind address, the corresponding relationship of the far-end unit Yu the IP address is recorded.
A kind of communication system of server-side and far-end unit, comprising:
Third receiving module, for receiving the address configuration data packet of server-side transmission;Wherein, the address configuration data
Data type mark, facility information and IP address of the packet comprising the far-end unit;
Second judgment module, if for data type mark and preset data type in the address configuration data packet
It identifies identical, then by comparing whether the coded format of the facility information is consistent with preset coded format, judges describedly
Whether location configuration data packet is normal;
Second sending module, for if normal, then configuring local IP address for the IP in the address configuration data packet
Location, and address configuration successful information is sent to the server-side.
The means of communication and system of above-mentioned server-side and far-end unit by the source physical address of itself and are set by far-end unit
Standby information is sent to server-side, and server-side carries out validity judgement according to the coded format of data type mark and facility information,
When determining the equipment is legitimate device, then it can record the information of far-end unit, realize the automatic discovery procedure of far-end unit,
Its treatment process is simple, significantly improves working efficiency;And validity judgement has been carried out to data packet, can guarantee server-side and
The security performance of far-end unit communication process reduces error rate.
The means of communication and system of above-mentioned server-side and far-end unit, server-side are sent to the address configuration number of far-end unit
According to including data type mark and facility information in packet, for far-end unit according to the coding of data type mark and facility information
Whether format detection data packet is normal;The present invention improves working efficiency when server-side and far-end unit communication significantly, also
It can guarantee security performance when server-side and far-end unit communicate, reduce the error rate of data processing.
Detailed description of the invention
Flow diagram of the Fig. 1 for a kind of server-side of the present invention and the means of communication of far-end unit in example 1;
Fig. 2 is the signal of the means of communication registration data packet in example 1 of a kind of server-side of the present invention and far-end unit
Figure;
Fig. 3 is the means of communication server-side and the far-end unit in example 1 of a kind of server-side of the present invention and far-end unit
Interactive schematic diagram;
Flow diagram of the Fig. 4 for a kind of server-side of the present invention and the means of communication of far-end unit in example 2;
Flow diagram of the Fig. 5 for a kind of server-side of the present invention and the means of communication of far-end unit in the third embodiment;
Flow diagram of the Fig. 6 for a kind of server-side of the present invention and the means of communication of far-end unit in the third embodiment.
Fig. 7 is that a kind of server-side of the present invention finds structural schematic diagram of the system of far-end unit in example IV.
Fig. 8 is structural schematic diagram of the communication system of a kind of server-side of the present invention and far-end unit in embodiment five.
Fig. 9 is structural schematic diagram of the communication system of a kind of server-side of the present invention and far-end unit in embodiment six.
Specific embodiment
Below with reference to examples and drawings, invention is further described in detail, but embodiments of the present invention are not limited to
This.
Embodiment one,
As shown in Figure 1, being a kind of means of communication flow diagram of server-side and far-end unit of the present invention, this method is to answer
For being illustrated in server-side, include the following steps:
S11, the registration data packet that far-end unit is sent is received;Wherein, single comprising the distal end in the registration data packet
Source physical address, data type mark and the facility information of member;
If the data type mark in S12, the data packet is identical as preset data type mark, pass through comparison institute
Whether the coded format for stating facility information is consistent with preset coded format, judges whether the far-end unit is legitimate device;
If S13, the far-end unit are legitimate device, the correspondence of the source physical address and the facility information is recorded
Relationship, and the information of success response is replied to the far-end unit;
The source physical address of itself and facility information are sent to server-side by far-end unit by the present embodiment, server-side according to
Data type mark and the coded format of facility information carry out validity judgement and then may be used when determining the equipment is legitimate device
The information for recording far-end unit, realizes the automatic discovery procedure of far-end unit, treatment process is simple, significantly improves work
Efficiency;And validity judgement is carried out to data packet, the security performance of server-side and far-end unit communication process has been can guarantee, subtracts
Few error rate.
The registration data packet sent for step S11, reception far-end unit;It wherein, include institute in the registration data packet
State source physical address, data type mark and the facility information of far-end unit;
It include that IP server-side and multiple far-end unit nodes, each far-end unit are connected to service in IP network environment
End, after the far-end unit of the present embodiment powers on, active broadcast registration data packet;
The source physical address for including in registration data packet is MAC (the Media Access of far-end unit itself
Control, medium access control) address, i.e. physical address;
The data type mark for including in registration data packet is Ethernet data type, example for marking registration data packet
It can be such as labeled as 0x8001 various characters form, specific mark can be set according to actual needs;
The facility information for including in registration data packet can be the device name or device numbering of far-end unit.
Existing double layer network agreement has its special purposes, and double layer network agreement refers to data link layer, main function
Can be divided into the data received from network layer specifically to have ARP by the frame of physical layer transmission, present two-layer protocol
(Address Resolution Protocol, address resolution protocol), RARP (Reverse Address Resolution
Protocol, reverse address resolution protocol) etc.;ARP is mainly used for for IP address being parsed into corresponding MAC Address;RARP, it is main
It is used to MAC Address being converted into IP address, these existing two-layer protocols are not able to satisfy the discovery of far-end unit, therefore this reality
Example is applied by identifying in the packet using preset data type to complete the discovery of far-end unit.
As shown in Fig. 2, be the schematic diagram of registration data packet in the present embodiment, the format in Fig. 2 can be used encapsulate and stepped on
Remember data packet, destination address (6 byte), source physical address (6 byte), data type mark (2 words are contained in the data packet
Section) and self-defining data area;Wherein, destination address is the address of server-side, generally 0xff ff ff ff ff ff;It makes by oneself
Adopted data field storage is by the facility information after predictive encoding said shank.
If identical as preset data type mark for the data type mark in step S12, the data packet, lead to
It crosses and compares the coded format of the facility information and whether be consistent with preset coded format, judge whether the far-end unit is conjunction
Method equipment;
In the present embodiment, first check for data type identify whether it is identical as preset data type mark, if it is not, then
It can direct discard processing;If so, further calibration equipment information, to confirm whether the equipment for reporting the data is legal set
It is standby;Specifically, can be determined by checking the coded format of facility information;
In starting stage the coding mode of the facility information of far-end unit can be obtained ahead of time, by bottom code in server-side
Judgement, for example, the MAC Address that equipment can be used in general device number is formed along with the special code of equipment, and the MAC of equipment
There are different codings in address, different vendor;When far-end unit reporting equipment information, server can according to it is above-mentioned rule come
Judge whether it is legal.
If being legitimate device for step S13, the far-end unit, the source physical address and equipment letter are recorded
The corresponding relationship of breath, and the information of success response is replied to the far-end unit;
Server-side responds the information of success response to far-end unit after judging that equipment is legal, while in far-end unit institute
The MAC Address of report is recorded in server, completes the discovery of far-end unit.If the coded format of facility information and preset coding
Format is not consistent, then judges that equipment is illegal, responds error message to the far-end unit.
As shown in figure 3, schematic diagram when showing server-side discovery far-end unit, the figure is with server-side and far-end unit
It is illustrated for interaction, includes a server-side and multiple 1~N of far-end unit in IP network environment;
After far-end unit 1 powers on, registration data packet is sent, data type is identified as 0x8001, self-defining data area packet
Include device numbering;After server receives, the data packet that data type is identified as 0x8001 is filtered out, self-defining data area is passed through
The coded format of device numbering is judged as legitimate device, then records the MAC Address of far-end unit 1;Other far-end units power on
Above-mentioned treatment process is equally repeated afterwards.
Embodiment two,
As shown in figure 4, being a kind of means of communication flow diagram of server-side and far-end unit of the present invention, this method is to answer
For being illustrated in server-side, include the following steps:
S41, IP address is configured for far-end unit;
After far-end unit is found by server-side, corresponding IP address can be configured for it by Configuration Management Officer.
S42, address configuration data packet is sent to the far-end unit according to the source physical address of the far-end unit;Its
In, the address configuration data packet includes data type mark, facility information and the IP address of the far-end unit;
In address configuration data packet, the data type mark is Ethernet data class for marking registration data packet
Type, such as can be set according to actual needs labeled as the various characters forms such as 0x8001, specific mark;The equipment letter
Breath can be the device name or device numbering of far-end unit;Above-mentioned data type mark, facility information and IP address, can lead to
Preset data packet format is crossed to be packaged data.
If S43, receiving the far-end unit and successfully being configured according to the address configuration data packet and return after IP address
When address configuration successful information, the corresponding relationship of the far-end unit Yu the IP address is recorded;
After determining that far-end unit receives address configuration data packet and successfully configured IP address, IP address is recorded
In server, if failure, the configuration of IP address is carried out again.
In the present embodiment, server-side, which is sent in the address configuration data packet of far-end unit, to be identified and sets comprising data type
Whether standby information is normal according to the coded format detection data packet of data type mark and facility information for far-end unit;This
The means of communication of embodiment can guarantee security performance when server-side and far-end unit communicate, reduce the error rate of data processing.
In a preferred embodiment, it is described be received as far-end unit configuration IP address the step of before, may also include as
The step of lower discovery far-end unit:
Receive the registration data packet that far-end unit is sent;It wherein, include the far-end unit in the registration data packet
Source physical address, data type mark and facility information;
If the data type mark in the data packet is identical as preset data type mark, by setting described in comparison
Whether the coded format of standby information is consistent with preset coded format, judges whether the far-end unit is legitimate device;
If the far-end unit is legitimate device, records the source physical address and the corresponding of the facility information is closed
System, and the information of success response is replied to the far-end unit.
In a preferred embodiment, may further comprise the step of:
It is received as the device parameter of the far-end unit configuration, parameter configuration data packet is generated according to the device parameter;
If the size of the parameter configuration data packet is greater than preset threshold, by the parameter configuration data packet by preset
Fragmentation threshold carries out fragment, generates multiple subparameter configuration data packets and is sent to the far-end unit;Wherein, the subparameter
Configuration data packet includes the device parameter, action type, segmental identification and fragment number;
It in the present embodiment, can be by server-side to the management of far-end unit after to the IP address configuration successful of far-end unit
Application layer carry out device parameter configuration management, application layer protocol be carried on UDP (User Datagram Protocol, use
User data datagram protocol) on, since UDP is unreliable transmission, message-length is up to 65535 bytes in UDP, to avoid message
It is too long, at the same for reduce receive buffer area described in occupancy memory headroom, the present embodiment for device parameter configuration message into
Row sliced transmission.
Wherein, the device parameter, it may include device level parameter, WAN mouthful parameter, static IP parameter, SIP parameter etc., if
Standby parameter can be configured by Configuration Management Officer.
The preset threshold value can be the maximum message length limited in UDP, can also set other words according to actual needs
Save length;
Server-side can obtain multiple subparameter configuration numbers by the size of data packet divided by preset threshold when calculating fragment
According to far-end unit is then forwarded to after packet, subparameter configuration data packet includes device parameter, request number, action type, fragment mark
Knowledge and fragment number, for far-end unit identification.
Wherein, request number, for distinguishing configurations different twice;For example, server-side A is that far-end unit B is matched twice
It sets: A_B1, A_B2, and it is two sub- configuration data packets that configuration data packet, which all distinguishes fragment, twice, it may be assumed that A_B1_1, A_B1_2;A_
B2_1,A_B2_2;Sequence when receiving data packet due to far-end unit B be it is staggered, far-end unit B can pass through request A_
The mark of B1, A_B2 configure twice to distinguish this.
Action type is the different parameter configuration operations referred to far-end unit, such as WAN mouthfuls of parameters of configuration, configuration
Static IP parameter or configuration SIP parameter etc., specifically, each parameter configuration operates, can preset corresponding operation class
Type;
Segmental identification, for indicating that subparameter configuration data packet had carried out Fragmentation, specific mark can be according to reality
Border needs and sets;
Fragment number, for indicating the number after subparameter configuration data is coated with fragment.
For example, showing the data recorded in subparameter configuration data packet as follows:
Request id=" 1 " type=" set_params " total=" 2 " seq=" 1 "
Response id=" 1 " type=" req_tring_ack " total=" 2 " seq=" 1 "
Response id=" 1 " type=" set_params " total=" 2 " seq=" 1 "
Response id=" 1 " type=" rsp_tring_ack " total=" 2 " seq=" 1 "
Wherein, " Request id " is the request number;" type " attribute is indicated to a variety of different action types;
" total " shows whether corresponding operation has fragment, and showing the message of respective operations if the value is greater than 1, there are fragments;
" seq " shows the message is which fragment belonged to;When total is equal to seq, then it represents that the message of respective operations type is
It is sent.
Embodiment three,
As shown in figure 5, be the flow diagram of the means of communication of a kind of server-side of the present invention and far-end unit, this method with
Applied to being illustrated in far-end unit, include the following steps:
S51, the address configuration data packet that server-side is sent is received;Wherein, the address configuration data packet includes described remote
Data type mark, facility information and the IP address of end unit;
If the data type mark in S52, the address configuration data packet is identical as preset data type mark, lead to
It crosses and compares the coded format of the facility information and whether be consistent with preset coded format, judge that the address configuration data packet is
It is no normal;
S53, if normal, then configuring local IP address is the IP address in the address configuration data packet, and sends address
Configuration successful information is to the server-side;
In the present embodiment, when far-end unit receives address configuration data packet, first check for data type identify whether with
Preset data type mark is identical, if it is not, then can direct discard processing;If so, further calibration equipment information, with true
Whether normal recognize data packet;Specifically, can be determined by checking the coded format of facility information;If coded format with it is preset
Coded format is consistent, then judges that data are normal, and IP address is updated into equipment, and sends the information of success response to described remote
End unit;If coded format is not consistent with preset coded format, data exception is judged, and send error message to described remote
End unit.
As shown in fig. 6, the schematic diagram of server-side and far-end unit interaction can pass through in server-side when being configuration IP address
WEB page shows that the MAC Address and its corresponding facility information of all far-end units, Configuration Management Officer are the configuration of far-end unit 1
IP address, and generate address configuration data packet and be sent to far-end unit 1, far-end unit 1 verifies the legitimacy of configuration data packet,
Judge legal rear setting IP address, and respond configuration result message, whether server-side will record according to configuration result message authentication
The IP address of far-end unit;Other far-end units equally repeat above-mentioned treatment process.
In a preferred embodiment, may further comprise the step of:
Receive the subparameter configuration data packet that server-side is sent;Wherein, the subparameter configuration data packet includes described
Device parameter, request number, action type, segmental identification and fragment number;
When including the segmental identification in detecting the subparameter configuration data packet, by the subparameter of same request number
Configuration data packet is combined according to the sequence of the fragment number;
The subparameter configuration data packet after parsing combination is carried out according to the device parameter according to the action type
Parameter configuration;
In the present embodiment, when receiving the subparameter configuration data packet of server-side transmission, data packet can be stored in and be faced
When data field in, identify that subparameter configuration data packet has been fragmented according to segmental identification, then according to subparameter configuration data packet
In request number, by the data packet of same request number according to fragment number sequence group merge parsing, the parameter in ephemeral data area
Value disposably carries out the operation that comes into force, and carries out parameter configuration according to the action type according to the device parameter.
In the present embodiment, also parameter configuration can be carried out by preset parameter model;Parameter model can be retouched with XML language
It states, parameter can be divided into device level parameter, WAN mouthful parameter, static IP parameter, SIP parameter etc., and required parameter can be according to reality
Service condition is extended, and below by taking SIP parameter as an example, the configuration of SIP parameter is carried out to far-end unit:
<? xml version=" 1.0 " encoding=" utf-8 "?>
<request id=" 1 " type=" set_params " total=" 2 " sqe=" 1 ">
<TELPO-AG>
<Device>
<SIP>
<serverName1>192.168.2.142</ServerName1>//IP address 1
<serverPort1>5060</ServerPort1>// port 1
<serverName2>192.168.2.150</ServerName2>//IP address 2
<serverPort2>5060</ServerPort2>// port 2
<localPort>5061</LocalPort>// local port
<RegExpires>60</RegExpires>//
</SIP>
</Device>
</TELPO-AG>
</request>
In a preferred embodiment, to server-side and far-end unit in the data exchange process for carrying out parameter configuration, also
Handshake mechanism can be added;
When far-end unit detects that the subparameter configuration data packet after fragment is all sent, a transmittable Temporary Response disappears
Breath to server-side, Temporary Response message after configuration, is sent out again for indicating that far-end unit is just being configured in processing parameter
A confirmation message is sent, server-side is then suspended to far-end unit when receiving Temporary Response message and sends data packet, is receiving really
It after recognizing message, receives the response to far-end unit, then transmits next fragmental messages.In the interactive process of each message, service
The application layer of device and far-end unit has all added Retransmission timeout mechanism, ensure that the reliability of UDP transmission to greatest extent.
For example, far-end unit can first send an interim rsp_tring_ after the request of set_params is sent
Ack responds to server-side, indicates that far-end unit is handling data, can be to set_params message after waiting data processings complete
The final confirmation of a Response is carried out, server upon receipt of the confirmation message, can equally reply far-end unit one
Response after having responded, then transmits next fragmental messages.
Example IV,
As shown in fig. 7, being a kind of structural schematic diagram of the system of server-side discovery far-end unit of the present invention, comprising:
First receiving module 71, for receiving the registration data packet of far-end unit transmission;Wherein, in the registration data packet
Source physical address comprising the far-end unit, data type mark and facility information;
First judgment module 72, if the data type mark in the data packet identifies phase with preset data type
Together, then the far-end unit is judged by comparing whether the coded format of the facility information is consistent with preset coded format
It whether is legitimate device;
First logging modle 73 stores the source physical address and institute if being legitimate device for the far-end unit
The corresponding relationship of facility information is stated, and replys the information of success response to the far-end unit.
The source physical address of itself and facility information are sent to server-side by far-end unit by the present embodiment, server-side according to
Data type mark and the coded format of facility information carry out validity judgement and then may be used when determining the equipment is legitimate device
The information for recording far-end unit, realizes the automatic discovery procedure of far-end unit, treatment process is simple, significantly improves work
Efficiency;And validity judgement is carried out to data packet, the security performance of server-side and far-end unit communication process has been can guarantee, subtracts
Few error rate.
Embodiment five,
As shown in figure 8, being the structural schematic diagram of the communication system of a kind of server-side of the present invention and far-end unit, comprising:
First configuration module 81, for configuring IP address for far-end unit;
First sending module 82, for sending address to the far-end unit according to the source physical address of the far-end unit
Configuration data packet;Wherein, the address configuration data packet includes data type mark, facility information and the IP of the far-end unit
Address;
Second logging modle 83, if successfully being configured for receiving the far-end unit according to the address configuration data packet
When the address configuration successful information returned after IP address, the corresponding relationship of the far-end unit Yu the IP address is recorded;
In the present embodiment, server-side, which is sent in the address configuration data packet of far-end unit, to be identified and sets comprising data type
Whether standby information is normal according to the coded format detection data packet of data type mark and facility information for far-end unit;This
The means of communication of embodiment can guarantee security performance when server-side and far-end unit communicate, reduce the error rate of data processing.
In a preferred embodiment, further includes:
Second receiving module, it is raw according to the device parameter for being received as the device parameter of the far-end unit configuration
At parameter configuration data packet;
First fragment module, if the size for the parameter configuration data packet is greater than preset threshold, by the parameter
Configuration data packet carries out fragment by preset fragmentation threshold, generates multiple subparameter configuration data packets and is sent to the distal end list
Member;Wherein, the subparameter configuration data packet includes the device parameter, request number, action type, segmental identification and fragment
Number.
It in the present embodiment, can be by server-side to the management of far-end unit after to the IP address configuration successful of far-end unit
Application layer carry out device parameter configuration management, application layer protocol be carried on UDP (User Datagram Protocol, use
User data datagram protocol) on, since UDP is unreliable transmission, message-length is up to 65535 bytes in UDP, to avoid message
It is too long, at the same for reduce receive buffer area described in occupancy memory headroom, the present embodiment for device parameter configuration message into
Row sliced transmission.
Wherein, the device parameter, it may include device level parameter, WAN mouthful parameter, static IP parameter, SIP parameter etc., if
Standby parameter can be configured by Configuration Management Officer.
The preset threshold value can be the maximum message length limited in UDP, can also set other words according to actual needs
Save length;
Server-side can obtain multiple subparameter configuration numbers by the size of data packet divided by preset threshold when calculating fragment
According to far-end unit is then forwarded to after packet, subparameter configuration data packet includes device parameter, request number, action type, fragment mark
Knowledge and fragment number, for far-end unit identification.
Wherein, request number, for distinguishing configurations different twice;Action type is referred to the different of far-end unit
Parameter configuration operation, such as WAN mouthfuls of parameters of configuration, configuration static IP parameter or configuration SIP parameter etc., specifically, each
Parameter configuration operation, can preset corresponding action type;Segmental identification, for indicating that subparameter configuration data packet has carried out
Fragmentation is crossed, specific mark can be set according to actual needs;Fragment number, for indicating subparameter configuration data coating point
Number after piece.
Embodiment six,
As shown in figure 9, being a kind of structural schematic diagram of the communication system of server-side and far-end unit, comprising:
Third receiving module 91, for receiving the address configuration data packet of server-side transmission;Wherein, the address configuration number
Data type mark, facility information and IP address according to packet comprising the far-end unit;
Second judgment module 92, if being identified and preset data class for the data type in the address configuration data packet
Whether type mark is identical, then be consistent with preset coded format by the coded format of the comparison facility information, described in judgement
Whether address configuration data packet is normal;
Second sending module 93 is the IP in the address configuration data packet for if normal, then configuring local IP address
Address, and address configuration successful information is sent to the server-side;
In the present embodiment, when far-end unit receives address configuration data packet, first check for data type identify whether with
Preset data type mark is identical, if it is not, then can direct discard processing;If so, further calibration equipment information, with true
Whether normal recognize data packet;Specifically, can be determined by checking the coded format of facility information;If coded format with it is preset
Coded format is consistent, then judges that data are normal, and IP address is updated into equipment, and sends the information of success response to described remote
End unit;If coded format is not consistent with preset coded format, data exception is judged, and send error message to described remote
End unit.
In a preferred embodiment, may also include that
4th receiving module, for receiving the subparameter configuration data packet of server-side transmission;Wherein, the subparameter configuration
Data packet includes the device parameter, action type, segmental identification and fragment number;
Composite module will be identical when for including the segmental identification in detecting the subparameter configuration data packet
The subparameter configuration data packet of request number is combined according to the sequence of the fragment number;
Second configuration module is pressed for parsing the subparameter configuration data packet after combining according to the device parameter
Parameter configuration is carried out according to the action type.
In the present embodiment, when receiving the subparameter configuration data packet of server-side transmission, data packet can be stored in and be faced
When data field in, identify that subparameter configuration data packet has been fragmented according to segmental identification, then according to subparameter configuration data packet
In request number, by the data packet of same request number according to fragment number sequence group merge parsing, the parameter in ephemeral data area
Value disposably carries out the operation that comes into force, and carries out parameter configuration according to the action type according to the device parameter.
The means of communication and system of above-mentioned server-side and far-end unit by the source physical address of itself and are set by far-end unit
Standby information is sent to server-side, and server-side carries out validity judgement according to the coded format of data type mark and facility information,
When determining the equipment is legitimate device, then it can record the information of far-end unit, realize the automatic discovery procedure of far-end unit,
Its treatment process is simple, significantly improves working efficiency;And validity judgement has been carried out to data packet, can guarantee server-side and
The security performance of far-end unit communication process reduces error rate.
The means of communication and system of above-mentioned server-side and far-end unit, server-side are sent to the address configuration number of far-end unit
According to including data type mark and facility information in packet, for far-end unit according to the coding of data type mark and facility information
Whether format detection data packet is normal;The present invention improves working efficiency when server-side and far-end unit communication significantly, also
It can guarantee security performance when server-side and far-end unit communicate, reduce the error rate of data processing.
Each technical characteristic of embodiment described above can be combined arbitrarily, for simplicity of description, not to above-mentioned reality
It applies all possible combination of each technical characteristic in example to be all described, as long as however, the combination of these technical characteristics is not deposited
In contradiction, all should be considered as described in this specification.
The embodiments described above only express several embodiments of the present invention, and the description thereof is more specific and detailed, but simultaneously
It cannot therefore be construed as limiting the scope of the patent.It should be pointed out that coming for those of ordinary skill in the art
It says, without departing from the inventive concept of the premise, various modifications and improvements can be made, these belong to protection of the invention
Range.Therefore, the scope of protection of the patent of the invention shall be subject to the appended claims.
Claims (8)
1. the means of communication of a kind of server-side and far-end unit, which comprises the steps of:
Receive the registration data packet that far-end unit is sent;It wherein, include the source object of the far-end unit in the registration data packet
Managing address, data type mark and facility information, the facility information includes device name or device numbering, the device numbering
Using equipment MAC Address along with equipment particular code group at;
If the data type mark in the data packet is identical as preset data type mark, by comparing the equipment letter
Whether the coded format of breath is consistent with preset coded format, judges whether the far-end unit is legitimate device;
If the far-end unit is legitimate device, the corresponding relationship of the source physical address and the facility information is recorded, and
The information of success response is replied to the far-end unit;
It was found that configuring IP address after far-end unit for far-end unit;
Address configuration data packet is sent to the far-end unit according to the source physical address of the far-end unit;Wherein, describedly
Location configuration data packet includes data type mark, facility information and the IP address of the far-end unit;
The address configuration returned after IP address is successfully configured according to the address configuration data packet if receiving the far-end unit
When successful information, the corresponding relationship of the far-end unit Yu the IP address is recorded.
2. the means of communication of server-side according to claim 1 and far-end unit, which is characterized in that further comprise the steps of:
It is received as the device parameter of the far-end unit configuration, parameter configuration data packet is generated according to the device parameter;
If the size of the parameter configuration data packet is greater than preset threshold, the parameter configuration data packet is pressed into preset fragment
Threshold value carries out fragment, generates multiple subparameter configuration data packets and is sent to the far-end unit;Wherein, the subparameter configuration
Data packet includes the device parameter, request number, action type, segmental identification and fragment number.
3. the means of communication of server-side according to claim 1 and far-end unit, which comprises the steps of:
Far-end unit receives the address configuration data packet that server-side is sent;Wherein, the address configuration data packet includes described remote
Data type mark, facility information and the IP address of end unit;
If the data type mark in the address configuration data packet is identical as preset data type mark, pass through comparison institute
Whether the coded format for stating facility information is consistent with preset coded format, judges whether the address configuration data packet is normal;
If normal, then configuring local IP address is the IP address in the address configuration data packet, and sends address configuration success
Information is to the server-side;
If coded format is not consistent with preset coded format, data exception is judged, and send error message to the service
End.
4. the means of communication of server-side according to claim 3 and far-end unit, which is characterized in that further comprise the steps of:
Receive the subparameter configuration data packet that server-side is sent;Wherein, the subparameter configuration data packet includes the equipment
Parameter, request number, action type, segmental identification and fragment number;
When including the segmental identification in detecting the subparameter configuration data packet, the subparameter of same request number is configured
Data packet is combined according to the sequence of the fragment number;
The subparameter configuration data packet after parsing combination carries out parameter according to the action type according to the device parameter
Configuration.
5. the communication system of a kind of server-side and far-end unit characterized by comprising
First receiving module, for receiving the registration data packet of far-end unit transmission;It wherein, include institute in the registration data packet
Source physical address, data type mark and facility information, the facility information for stating far-end unit include device name or equipment
Number, the device numbering using equipment MAC Address along with equipment particular code group at;
First judgment module, if the data type mark in the data packet is identical as preset data type mark,
Whether the coded format by comparing the facility information is consistent with preset coded format, judge the far-end unit whether be
Legitimate device;
First logging modle stores the source physical address and the equipment if being legitimate device for the far-end unit
The corresponding relationship of information, and the information of success response is replied to the far-end unit;
First configuration module configures IP address after finding far-end unit for far-end unit;
First sending module, for sending address configuration number to the far-end unit according to the source physical address of the far-end unit
According to packet;Wherein, the address configuration data packet includes data type mark, facility information and the IP address of the far-end unit;
Second logging modle, if successfully configuring IP address according to the address configuration data packet for receiving the far-end unit
When the address configuration successful information returned afterwards, the corresponding relationship of the far-end unit Yu the IP address is recorded.
6. the communication system of server-side according to claim 5 and far-end unit, which is characterized in that further include:
Second receiving module generates according to the device parameter and joins for being received as the device parameter of the far-end unit configuration
Number configuration data packet;
First fragment module, if the size for the parameter configuration data packet is greater than preset threshold, by the parameter configuration
Data packet carries out fragment by preset fragmentation threshold, generates multiple subparameter configuration data packets and is sent to the far-end unit;
Wherein, the subparameter configuration data packet includes the device parameter, request number, action type, segmental identification and fragment number.
7. the communication system of server-side according to claim 5 and far-end unit characterized by comprising
Third receiving module, for receiving the address configuration data packet of server-side transmission;Wherein, the address configuration data packet packet
Data type mark, facility information and IP address containing the far-end unit;
Second judgment module, if the data type mark in the address configuration data packet is identified with preset data type
It is identical, then by comparing whether the coded format of the facility information is consistent with preset coded format, judge that the address is matched
Whether normal set data packet;
Second sending module is the IP address in the address configuration data packet for if normal, then configuring local IP address, and
Address configuration successful information is sent to the server-side;If coded format is not consistent with preset coded format, data are judged
It is abnormal, and error message is sent to the server-side.
8. the communication system of server-side according to claim 7 and far-end unit, which is characterized in that further include:
4th receiving module, for receiving the subparameter configuration data packet of server-side transmission;Wherein, the subparameter configuration data
Packet includes the device parameter, action type, segmental identification and fragment number;
Composite module, when for including the segmental identification in detecting the subparameter configuration data packet, by same request
Number subparameter configuration data packet be combined according to the sequence of the fragment number;
Second configuration module, for parsing the subparameter configuration data packet after combining, according to the device parameter according to institute
It states action type and carries out parameter configuration.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510109487.1A CN104660730B (en) | 2015-03-12 | 2015-03-12 | The means of communication and its system of server-side and far-end unit |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510109487.1A CN104660730B (en) | 2015-03-12 | 2015-03-12 | The means of communication and its system of server-side and far-end unit |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104660730A CN104660730A (en) | 2015-05-27 |
CN104660730B true CN104660730B (en) | 2019-02-22 |
Family
ID=53251416
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510109487.1A Active CN104660730B (en) | 2015-03-12 | 2015-03-12 | The means of communication and its system of server-side and far-end unit |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104660730B (en) |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105072702B (en) * | 2015-07-20 | 2018-11-27 | 上海摩软通讯技术有限公司 | The data transmission method and system of Wifi-Direct network |
CN105554086A (en) * | 2015-12-11 | 2016-05-04 | 浙江省公众信息产业有限公司 | Method and system for evaluating web services |
CN106060134A (en) * | 2016-05-30 | 2016-10-26 | 乐视控股(北京)有限公司 | Data transmission method and system |
CN106101189A (en) * | 2016-05-30 | 2016-11-09 | 乐视控股(北京)有限公司 | Data transmission method and system |
CN108471399B (en) * | 2018-02-07 | 2020-06-26 | 平安科技(深圳)有限公司 | Data packet generation method in anti-money laundering operation, storage medium and server |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101056234A (en) * | 2006-04-11 | 2007-10-17 | 中国移动通信集团公司 | Method for allocating the address of the intelligent information home electrical appliance in the home network |
CN102123181A (en) * | 2010-12-09 | 2011-07-13 | 广东高新兴通信股份有限公司 | Method for automatically configuring IP address to network device |
CN102710808A (en) * | 2012-06-08 | 2012-10-03 | 汕头市易普联科技有限公司 | Address allocation method for intelligent equipment |
WO2013186969A1 (en) * | 2012-06-11 | 2013-12-19 | 日本電気株式会社 | Communication information detecting device and communication information detecting method |
-
2015
- 2015-03-12 CN CN201510109487.1A patent/CN104660730B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101056234A (en) * | 2006-04-11 | 2007-10-17 | 中国移动通信集团公司 | Method for allocating the address of the intelligent information home electrical appliance in the home network |
CN102123181A (en) * | 2010-12-09 | 2011-07-13 | 广东高新兴通信股份有限公司 | Method for automatically configuring IP address to network device |
CN102710808A (en) * | 2012-06-08 | 2012-10-03 | 汕头市易普联科技有限公司 | Address allocation method for intelligent equipment |
WO2013186969A1 (en) * | 2012-06-11 | 2013-12-19 | 日本電気株式会社 | Communication information detecting device and communication information detecting method |
Also Published As
Publication number | Publication date |
---|---|
CN104660730A (en) | 2015-05-27 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104660730B (en) | The means of communication and its system of server-side and far-end unit | |
EP2782309B1 (en) | Bidirectional forwarding detection (bfd) session negotiation method, device and system | |
US8001605B2 (en) | Method and system for detecting a communication problem in a computer network | |
KR100910818B1 (en) | Method and system for tunneling macsec packets through non-macsec nodes | |
US8576727B2 (en) | System and method for unique identifier exchange during auto-negotiation | |
US20030210699A1 (en) | Extending a network management protocol to network nodes without IP address allocations | |
CN110336896A (en) | A kind of lan device kind identification method | |
US20140157367A1 (en) | Verification method and node for bidirectional forwarding detection session | |
CN104717105A (en) | Industrial sensor network data repeated detecting method based on standard ISA 100.11a | |
CN102387083B (en) | Network access control method and system | |
CN102170484B (en) | A detection method and a detection device of IP address conflict | |
US9444837B2 (en) | Process and devices for selective collision detection | |
CN1938982A (en) | Method and apparatus for preventing network attacks by authenticating internet control message protocol packets | |
CN110809026A (en) | File processing method and device, electronic equipment and storage medium | |
US20070073832A1 (en) | Method and system of storing and accessing meta-data in a network adapter | |
US7991008B2 (en) | Method for identifying the transmission control protocol stack of a connection | |
US7636342B2 (en) | WLAN device and method for numbering frames with sequence numbers | |
US20140289799A1 (en) | Communication apparatus, authentication system and authentication method | |
CN102340511B (en) | Safety control method and device | |
CN106878258A (en) | One kind attacks localization method and device | |
US20040199579A1 (en) | Collaboration bus apparatus and method | |
WO2016202025A1 (en) | Trap message processing method and apparatus | |
US6687754B1 (en) | Method of detecting a device in a network | |
CN101674177B (en) | Method and device for detecting transparent proxy | |
US8068434B2 (en) | Network infrastructure capability detection |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |