CN103281159A - Method for transmitting MAC (Media Access Control) and IP (Internet Protocol) information among verification modules based on message queue - Google Patents

Method for transmitting MAC (Media Access Control) and IP (Internet Protocol) information among verification modules based on message queue Download PDF

Info

Publication number
CN103281159A
CN103281159A CN2013101802679A CN201310180267A CN103281159A CN 103281159 A CN103281159 A CN 103281159A CN 2013101802679 A CN2013101802679 A CN 2013101802679A CN 201310180267 A CN201310180267 A CN 201310180267A CN 103281159 A CN103281159 A CN 103281159A
Authority
CN
China
Prior art keywords
information
mac
message
redundancy check
byte
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.)
Pending
Application number
CN2013101802679A
Other languages
Chinese (zh)
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.)
Shanghai Huanchuang Communication Technology Co Ltd
Original Assignee
Shanghai Huanchuang Communication Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Huanchuang Communication Technology Co Ltd filed Critical Shanghai Huanchuang Communication Technology Co Ltd
Priority to CN2013101802679A priority Critical patent/CN103281159A/en
Publication of CN103281159A publication Critical patent/CN103281159A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention relates to a method for transmitting MAC (Media Access Control) and IP (Internet Protocol) information among verification modules based on a message queue. The method comprises the following steps of (1) sequentially grouping the MAC and IP information by a message sending end according to each byte, carrying out XOR operation on all byte groups to obtain the redundance verification information of the sending end, and sending the MAC and IP information and the redundance verification information of the sending end to a message receiving end together; (2) sequentially grouping the received MAC and IP information by the message receiving end according to each byte, and then carrying out XOR operation on all byte groups in the same mode to obtain the redundance verification information of the receiving end; and (3) carrying out XOR operation on the redundance verification information of the receiving end and the redundance verification information of the sending end by the message receiving end, proving that the message is correct if an obtained operation result is 0x00, and otherwise proving that the message is wrong. Compared with the prior art, the method has the advantage that inaccurate user information and incorrect flow and charge statistics caused by the transmitting of wrong MAC and IP information among the modules are avoided.

Description

Transmit the method for MAC and IP information based on the calibration mode interblock of message queue
Technical field
The present invention relates to the method for a kind of MAC of transmission and IP information, especially relate to a kind of method of transmitting MAC and IP information based on the calibration mode interblock of message queue.
Background technology
VSM (the virtual Sharing Management device of distributed AC/) is the access control equipment in the solution, between WAP (wireless access point) and Control Server.When needs unified management cable network and wireless network, VSM disposes with the form serial connection of wireline equipment; Iff being used for the management wireless network, VSM can dispose with the form bypass of wireline equipment.VSM is the key equipment of realizing the virtual sharing functionality of solution, also can use as virtual A C when it is in charge of virtual AP.
In distributed AC, adopt the communication pattern of message queue between upper application module at present, MAC and the IP to the intermodule transmission do not carry out verification and inspection, the risk that wherein exists message data to make mistakes, and especially in straddle communication, big increasing has a big risk.
Summary of the invention
Purpose of the present invention is exactly to provide a kind of method of transmitting MAC and IP information based on the calibration mode interblock of message queue for the defective that overcomes above-mentioned prior art existence.
Purpose of the present invention can be achieved through the following technical solutions:
A kind of calibration mode interblock based on message queue transmits the method for MAC and IP information, it is characterized in that, comprises the steps:
(1) message sending end successively by every byte packet, carries out XOR to all byte groups with MAC and IP information, obtains transmitting terminal redundancy check information, and MAC and IP information and transmitting terminal redundancy check information are sent to the message sink end together;
(2) the message sink end successively by each byte packet, carries out XOR to all byte groups with the MAC that receives and IP information then equally, obtains receiving terminal redundancy check information;
(3) the message sink end is that the 0x00 description messages is correct with receiving terminal redundancy check information and transmitting terminal redundancy check information step-by-step XOR as if the operation result that obtains, on the contrary the description messages mistake.
Describedly all byte groups carried out the XOR process be:
Earlier with first group with second group of step-by-step XOR, the result of generation again with the 3rd group of step-by-step XOR, and the like, until last group.
Described redundancy check information is the 8bits redundant information.
Compared with prior art, the present invention has following advantage:
With the strategy of redundancy check, check the MAC of intermodule transmission and the correctness of IP content, can require transmit leg to resend for the message of makeing mistakes; Thereby prevent that the MAC because of intermodule transmission mistake, user profile that IP information causes are inaccurate, flow, the statistics of chargeing are incorrect.
Description of drawings
Fig. 1 is principle of the invention figure.
Embodiment
The present invention is described in detail below in conjunction with the drawings and specific embodiments.
Embodiment
As shown in Figure 1, a kind of based on the calibration mode interblock transmission MAC of message queue and the method for IP information, comprise the steps:
(1) message sending end successively by every byte packet, carries out XOR to all byte groups with MAC and IP information, obtains transmitting terminal redundancy check information, and MAC and IP information and transmitting terminal redundancy check information are sent to the message sink end together;
(2) the message sink end successively by each byte packet, carries out XOR to all byte groups with the MAC that receives and IP information then equally, obtains receiving terminal redundancy check information;
(3) the message sink end is that the 0x00 description messages is correct with receiving terminal redundancy check information and transmitting terminal redundancy check information step-by-step XOR as if the operation result that obtains, on the contrary the description messages mistake.
Describedly all byte groups carried out the XOR process be: earlier with first group with second group of step-by-step XOR, the result of generation again with the 3rd group of step-by-step XOR, and the like, until last group.
Adopt the 8bits redundant information that MAC and IP information are carried out verification, control message structure size.

Claims (3)

1. one kind is transmitted the method for MAC and IP information based on the calibration mode interblock of message queue, it is characterized in that, comprises the steps:
(1) message sending end successively by every byte packet, carries out XOR to all byte groups with MAC and IP information, obtains transmitting terminal redundancy check information, and MAC and IP information and transmitting terminal redundancy check information are sent to the message sink end together;
(2) the message sink end successively by each byte packet, carries out XOR to all byte groups with the MAC that receives and IP information then equally, obtains receiving terminal redundancy check information;
(3) the message sink end is that the 0x00 description messages is correct with receiving terminal redundancy check information and transmitting terminal redundancy check information step-by-step XOR as if the operation result that obtains, on the contrary the description messages mistake.
2. a kind of calibration mode interblock based on message queue according to claim 1 transmits the method for MAC and IP information, it is characterized in that, describedly all byte groups are carried out the XOR process is:
Earlier with first group with second group of step-by-step XOR, the result of generation again with the 3rd group of step-by-step XOR, and the like, until last group.
3. according to claim 1 a kind of based on the calibration mode interblock transmission MAC of message queue and the method for IP information, it is characterized in that described redundancy check information is the 8bits redundant information.
CN2013101802679A 2013-05-15 2013-05-15 Method for transmitting MAC (Media Access Control) and IP (Internet Protocol) information among verification modules based on message queue Pending CN103281159A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2013101802679A CN103281159A (en) 2013-05-15 2013-05-15 Method for transmitting MAC (Media Access Control) and IP (Internet Protocol) information among verification modules based on message queue

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2013101802679A CN103281159A (en) 2013-05-15 2013-05-15 Method for transmitting MAC (Media Access Control) and IP (Internet Protocol) information among verification modules based on message queue

Publications (1)

Publication Number Publication Date
CN103281159A true CN103281159A (en) 2013-09-04

Family

ID=49063621

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2013101802679A Pending CN103281159A (en) 2013-05-15 2013-05-15 Method for transmitting MAC (Media Access Control) and IP (Internet Protocol) information among verification modules based on message queue

Country Status (1)

Country Link
CN (1) CN103281159A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110019363A (en) * 2017-12-11 2019-07-16 北京京东尚科信息技术有限公司 A kind of method and apparatus verifying data

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1140277A (en) * 1995-06-29 1997-01-15 现代电子产业株式会社 Apparatus for detecting and correcting cyclic redundancy check errors
CN101090357A (en) * 2006-06-13 2007-12-19 珠海金山软件股份有限公司 E-mail system and method capable of preventing garbage E-mail
CN101350768A (en) * 2007-07-19 2009-01-21 中兴通讯股份有限公司 Method for conveying IP packet in broadcast network

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1140277A (en) * 1995-06-29 1997-01-15 现代电子产业株式会社 Apparatus for detecting and correcting cyclic redundancy check errors
CN101090357A (en) * 2006-06-13 2007-12-19 珠海金山软件股份有限公司 E-mail system and method capable of preventing garbage E-mail
CN101350768A (en) * 2007-07-19 2009-01-21 中兴通讯股份有限公司 Method for conveying IP packet in broadcast network

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
马玉春等: "数据包校验算法与网关技术研究", 《控制工程》 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110019363A (en) * 2017-12-11 2019-07-16 北京京东尚科信息技术有限公司 A kind of method and apparatus verifying data

Similar Documents

Publication Publication Date Title
CN108965484B (en) Internet of things data transmission method, system and terminal
CN111083161A (en) Data transmission processing method and device and Internet of things equipment
EP2696621A1 (en) Message processing method, device and system
CN101552785B (en) CAN bus communication method based on message mechanism used for massive data transmission
SI2599250T1 (en) Protocol for channel state information feedback
CN101753586A (en) Method for transmitting data, process method for receiving data and device
US8976814B2 (en) Method of transporting data from sending node to destination node
SG187780A1 (en) Method, device and system for transmitting data
CN102820959A (en) Method for performing large data volume communication between Modbus master station and Modbus slave station
CN109905205B (en) Data sending method, data receiving method, data sending equipment, data receiving equipment, data transmission method and data transmission system
CN104683994A (en) Wireless network configuration method and wireless network devices
CN102377505A (en) Serial port-based IPMI (Intelligent Platform Management Interface) package transmission method
CN104717105A (en) Industrial sensor network data repeated detecting method based on standard ISA 100.11a
CN106134522B (en) A kind of one-way data transmission method and device based on wireless laser
WO2016082569A1 (en) Apparatus and method for implementing communication assisted by optical port link
CN106094800A (en) A kind of management system of novel CAN FD controller
CN107508828B (en) A kind of very-long-range data interaction system and method
CN106686410B (en) HLS flow-medium transmission method and device
CN1988537A (en) Data transmission protocol
CN103281159A (en) Method for transmitting MAC (Media Access Control) and IP (Internet Protocol) information among verification modules based on message queue
CN103595511A (en) Method for transmitting data from first area to third area of internal network of electric system
CN109756306B (en) Information transmission method and communication device
US20150341145A1 (en) Data packet for bidirectional transmission of data packets during data transmission between a first and a second communication appliance, and method for transmitting such a data packet
CN104426866A (en) Data transmission method and apparatus
CN106063190B (en) A kind of method, relevant apparatus and the system of file reparation

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20130904

RJ01 Rejection of invention patent application after publication