WO2016000348A1 - Packet format processing method and device - Google Patents

Packet format processing method and device Download PDF

Info

Publication number
WO2016000348A1
WO2016000348A1 PCT/CN2014/088428 CN2014088428W WO2016000348A1 WO 2016000348 A1 WO2016000348 A1 WO 2016000348A1 CN 2014088428 W CN2014088428 W CN 2014088428W WO 2016000348 A1 WO2016000348 A1 WO 2016000348A1
Authority
WO
WIPO (PCT)
Prior art keywords
packet
format
sent
peer device
port
Prior art date
Application number
PCT/CN2014/088428
Other languages
French (fr)
Chinese (zh)
Inventor
冯洋
Original Assignee
中兴通讯股份有限公司
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 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2016000348A1 publication Critical patent/WO2016000348A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W28/00Network traffic management; Network resource management
    • H04W28/16Central resource management; Negotiation of resources or communication parameters, e.g. negotiating bandwidth or QoS [Quality of Service]
    • H04W28/18Negotiating wireless communication parameters

Definitions

  • the present invention relates to the field of communications, and in particular, to a message format processing method and apparatus.
  • the present invention provides a packet format processing method and apparatus, which at least solves the problems caused by the inability of normal communication between devices due to differences in packet formats existing in the related art.
  • a packet format processing method includes: receiving, by a port, a packet of a predetermined protocol sent by a peer device; and adjusting a format of a packet sent to the peer device by using the port The format of the packet sent by the peer device, where the packet sent to the peer device is the packet of the predetermined protocol.
  • the method before receiving, by the port, the packet of the predetermined protocol sent by the peer device, the method further includes: creating a packet format table, where the packet format table stores the sending packet for each port for different protocols.
  • the format is a packet format table, where the packet format table stores the sending packet for each port for different protocols.
  • the format of the packet sent by the port to the peer device is changed to the format of the packet sent by the peer device, including: according to a default format in the packet format table, to the pair
  • the end device sends a message;
  • the format of the packet sent by the port to the peer device is changed to the format of the packet sent by the peer device, where the packet is sent according to the sending.
  • the message is docked.
  • the format of the packet sent by the port to the peer device is changed to the format of the packet sent by the peer device, and the port in the packet format table is sent to the reservation.
  • the format of the packet of the protocol is updated to the format of the packet sent by the peer device; and the packet is sent according to the format of the updated packet in the packet format table.
  • the packet is a negotiation packet.
  • a packet format processing apparatus including: a receiving module, configured to receive, by using a port, a packet of a predetermined protocol sent by a peer device; and an adjusting module configured to pass through the port The format of the packet sent by the peer device is adjusted to the format of the packet sent by the peer device, where the packet sent to the peer device is the packet of the predetermined protocol.
  • the message format processing apparatus further includes: a creating module, configured to create a message format table, wherein the message format table stores a format of a sending message of each port for different protocols.
  • a creating module configured to create a message format table, wherein the message format table stores a format of a sending message of each port for different protocols.
  • the adjusting module includes: a first sending unit, configured to send a message to the peer device according to a default format in the packet format table; and the adjusting unit is configured to be connected to the peer device In the case of a failure, the format of the packet sent by the port to the peer device is adjusted to the format of the packet sent by the peer device, and the packet is forwarded according to the sent packet.
  • the adjusting unit includes: an update subunit, configured to update a format of a packet in which the port in the packet format table sends the predetermined protocol to a format of a packet sent by the peer device;
  • the second sending subunit is configured to send the packet according to the format of the updated sending message in the message format table.
  • the packet is a negotiation packet.
  • the packet of the predetermined protocol sent by the peer device is received by the port, and the format of the packet sent by the peer device to the peer device is adjusted to the format of the packet sent by the peer device.
  • the packet sent to the peer device is the packet of the predetermined protocol, which solves the problem that the normal communication between the devices cannot be performed due to the difference between the packet formats in the related art.
  • the effect of enabling normal communication between devices that support the same protocol packet produced by different vendors or devices under different protocol versions of the same vendor is achieved.
  • FIG. 1 is a flowchart of a message format processing method according to an embodiment of the present invention.
  • FIG. 2 is a structural block diagram of a message format processing apparatus according to an embodiment of the present invention.
  • FIG. 3 is a block diagram showing a preferred structure of a message format processing apparatus according to an embodiment of the present invention.
  • FIG. 4 is a block diagram 1 of a configuration of an adjustment module 24 in a message format processing apparatus according to an embodiment of the present invention
  • FIG. 5 is a structural block diagram of an adjustment unit 44 in a message format processing apparatus according to an embodiment of the present invention.
  • FIG. 6 is a structural block diagram of a network device according to an embodiment of the present invention.
  • FIG. 7 is a flowchart of a packet format processing procedure according to another embodiment of the present invention.
  • FIG. 8 is a schematic diagram of a conventional packet transceiving processing method and a packet transceiving processing method according to an embodiment of the present invention.
  • FIG. 1 is a flowchart of a packet format processing method according to an embodiment of the present invention. As shown in FIG. 1, the process includes the following steps:
  • Step S102 Receive, by using a port, a packet of a predetermined protocol sent by the peer device.
  • Step S104 The format of the packet sent by the port to the peer device is adjusted to the format of the packet sent by the peer device, where the packet sent to the peer device is a packet of a predetermined protocol.
  • the packet is received according to the format of the received packet.
  • the received packet is sent from the peer.
  • the packet sent by the peer must be in the format supported by the peer. Therefore, the packet is sent to the peer according to the received packet.
  • Message just The format of the packets supported by the two parties is the same, which solves the problem that the related technologies cannot be properly communicated between the devices due to the difference between the packet formats, which seriously affects the normal work and user experience. It enables normal communication between devices that support the same protocol packets produced by different vendors or devices under different protocol versions of the same manufacturer, without any additional configuration, and is very flexible to use, and also achieves the expansion of the device's use range. Improve the user experience.
  • the form of the table may be used to store the packet format corresponding to the port.
  • the local device may be in the local device before receiving the packet of the predetermined protocol sent by the peer device.
  • a packet format table is pre-created, and the format of the sent packet for each protocol of each port is stored in the packet format table.
  • the packet format table may be a global port protocol packet format table based on a port and a protocol.
  • a default packet format may be set for each port for each port, and the subsequent packet is configured for subsequent port interfacing. It may be appropriate to complete the packet format of the packet, or it may be inappropriate.
  • the packet format in the packet format table can be appropriately adjusted according to the steps shown in FIG. 1 to enable the port to send the packet in the most suitable packet format, thereby Devices that support the same protocol packets from different vendors can communicate with each other between devices of different protocol versions of the same vendor.
  • the packet when the packet is sent to the peer device through the port, the packet is sent according to the format in the packet format table. Therefore, when the default packet format is inappropriate, The local device fails to connect to the peer device. That is, the packet cannot be successfully received by the peer device. In this case, the packet format needs to be adjusted. The format is adjusted to the format of the packet sent by the peer device. Then, the format of the packet sent by the port in the packet format table is updated to the format of the packet sent by the peer device, and then the local device according to the updated packet in the packet format table. The format sends a message.
  • the packets involved in the foregoing embodiments and embodiments may be packets that are normally communicated.
  • the format of the packets supported by the communication parties may be determined by negotiation. That is, the foregoing packet may be a negotiation packet.
  • the connection failure may be that the negotiation fails, that is, the negotiation packet sent by the local device is not recognized by the peer device.
  • the packet format is adjusted according to the foregoing embodiment and the optional implementation manner, and the format of the packet that the local device receives the predetermined protocol on the same port is consistent with the format of the packet that sends the predetermined protocol.
  • the success rate of the transmission is achieved.
  • a message format processing device is also provided, which is used to implement the foregoing embodiments and preferred embodiments, and has not been described again.
  • the term "module” may implement a combination of software and/or hardware of a predetermined function.
  • the apparatus described in the following embodiments is preferably implemented in software, hardware, or a combination of software and hardware, is also possible and contemplated.
  • FIG. 2 is a structural block diagram of a message format processing apparatus according to an embodiment of the present invention. As shown in FIG. 2, the apparatus includes a receiving module 22 and an adjusting module 24. The apparatus will be described below.
  • the receiving module 22 is configured to receive a packet of a predetermined protocol sent by the peer device through the port, and the adjusting module 24 is connected to the receiving module 22, and is configured to adjust the format of the packet sent by the port to the peer device to the foregoing The format of the packet sent by the end device, where the packet sent to the peer device is a packet of a predetermined protocol.
  • FIG. 3 is a block diagram showing a preferred structure of a message format processing apparatus according to an embodiment of the present invention. As shown in FIG. 3, the apparatus includes a creation module 32 in addition to all the modules in FIG. Description.
  • the creating module 32 is connected to the receiving module 22, and is configured to create a message format table, where the format of the sending message for each protocol of each port is stored in the message format table.
  • FIG. 4 is a block diagram showing the structure of the adjustment module 24 in the message format processing apparatus according to the embodiment of the present invention. As shown in FIG. 4, the adjustment module 24 includes a first sending unit 42 and an adjusting unit 44. 24 for explanation.
  • the first sending unit 42 is configured to send a message to the peer device according to the default format in the packet format table; the adjusting unit 44 is connected to the first sending unit 42 and is configured to be in the case that the connection with the peer device fails.
  • the format of the packet sent by the port to the peer device is adjusted to the format of the packet sent by the peer device.
  • FIG. 5 is a structural block diagram of an adjustment unit 44 in a message format processing apparatus according to an embodiment of the present invention. As shown in FIG. 5, the adjustment unit 44 includes an update subunit 52 and a second transmission subunit 54, which are adjusted below. Unit 44 is described.
  • the update subunit 52 is configured to update the format of the packet in which the port in the packet format table is sent by the predetermined protocol to the format of the packet sent by the peer device;
  • the second sending subunit 54 is connected to the update subunit 52, and is configured to The packet is sent according to the format of the updated sent message in the message format table.
  • FIG. 6 is a structural block diagram of a network device according to an embodiment of the present invention. As shown in FIG. 6, the network device 62 includes the message format processing device 64 of any of the above.
  • the present invention provides a method for receiving a certain type according to a network device port, because there is a difference between the packet formats in the related art, and the device cannot perform normal communication, which seriously affects the normal working and user experience.
  • the format of the protocol packet dynamically adjusts the format of the protocol packet sent by the device, so that devices of different vendors can support normal communication between devices supporting the protocol packet or different protocol versions of the same vendor without additional
  • the configuration is very flexible and also expands the scope of use of the device.
  • the software table of the data in the protocol packet format is stored on the device, and when the protocol interaction with the peer device is performed, if the connection is found to be unsuccessful, the device according to the peer device is received.
  • the software table of the protocol packet format of the local device is automatically adjusted, and the packet format in the software table of the local device is updated to a packet format that can interact with the peer device, so that After the connection fails, the packet format of the local device is automatically adjusted.
  • the device attempts to connect for the second time, the device can be successfully connected.
  • FIG. 7 is a flowchart of a packet format processing procedure according to another embodiment of the present invention, including the following steps:
  • Step S702 When the system is initialized, create a global port protocol packet format table (same as the above-mentioned packet format table) based on the device port + protocol, and stipulate a default packet format for the protocol that needs to be automatically adapted on the port. ;
  • Step S704 When the format of the protocol packet is changed, the port is updated to send the format of the protocol packet to the port protocol format table.
  • Step S706 When the port sends the protocol packet, the port sends the packet according to the protocol format on the port in the global port protocol packet format table.
  • the above steps are to dynamically adjust the format of the protocol packet sent by the port by using the format of the port receiving protocol packet. If the format of a protocol packet received by a port is changed, the format of the protocol packet sent by other ports will not be affected, and the format of other protocol packets sent by the port will not be affected, and the port will be received before the protocol packet is sent.
  • the format of the text dynamically adjusts the protocol packet format sent by different ports of the device.
  • the device can support the device that supports protocol packets of different formats and does not need any additional configuration.
  • FIG. 8 is a schematic diagram of a conventional packet transceiving processing method and a packet transceiving processing method according to an embodiment of the present invention. Embodiments of the present invention will be described below with reference to FIG. 8:
  • the format of the negotiation packet supported by device 2 is A
  • the format of the negotiation packet supported by device 3 is B.
  • the device 2 is directly connected to the device 1 and the device 3, respectively, and the negotiation interaction between the device 2 and the devices 1 and 3 is completed.
  • the format of the packet negotiation message between the devices is A;
  • the interface that is directly connected to device 1 receives the negotiation packet format as A.
  • the format of the negotiation packet sent by the port on device 2 is the same.
  • the global port protocol format table is not updated.
  • the port directly connected to device 3 is received.
  • the negotiation packet format is B, and the format of the negotiation packet sent by the port on the device 2 is inconsistent.
  • the global port protocol format table is updated, and the protocol packet format of the port is updated to B.
  • the port sends a packet with the corresponding format according to the status flag of the protocol in the global port protocol packet format table.
  • the port directly connected to device 1 receives the negotiation packet format as A.
  • the format of the negotiation packet sent by the port is A.
  • the format of the negotiation packet sent by the port directly connected to device 3 is B.
  • the format of the negotiation packet sent by the port is B.
  • step b when the interface directly connected to the device 3 receives the negotiation packet format B, and the format of the negotiation packet currently sent by the port on the device 2 is inconsistent, in the related art, the device 3 and the device 2 are connected. failure.
  • the protocol format table is updated, and the format of the negotiation packet sent by the device directly connected to the device 3 in the device 2 is updated to B, and the port is connected again. The docking was successful.
  • the solution proposed by the embodiment of the present invention can enable the network device to complete the connection with the device supporting different packet formats, thereby improving
  • the flexibility of the use of the device also expands the scope of use of the device. Since it can support the docking of devices between different device versions and even different vendors, the cost of upgrading and updating devices in the network is saved.
  • the implementation of the foregoing solution in the embodiment of the present invention can be completed in the case that the user is invisible, and the user only needs to complete the normal configuration of the protocol.
  • the devices that support protocol packets of different formats can be connected, and no additional configuration is needed, which improves the flexibility of the device and expands the scope of use of the device.
  • modules or steps of the present invention described above can be implemented by a general-purpose computing device that can be centralized on a single computing device or distributed across a network of multiple computing devices. Alternatively, they may be implemented by program code executable by the computing device such that they may be stored in the storage device by the computing device and, in some cases, may be different from the order herein.
  • the steps shown or described are performed, or they are separately fabricated into individual integrated circuit modules, or a plurality of modules or steps thereof are fabricated as a single integrated circuit module.
  • the invention is not limited to any specific combination of hardware and software.
  • the packet format processing method and apparatus have the following beneficial effects: the problem that the difference between the packet formats exists in the related art, and the normal communication cannot be performed between the devices, which is serious.

Abstract

Provided are a packet format processing method and device, the method comprising: receiving a packet of a reservation protocol sent by an opposite-end device through a port; adjusting the format of the packet sent through a port to the opposite-end device to be the format of the packet sent by the opposite-end device, the packet sent to the opposite-end device being the packet of the reservation protocol. The present invention solves the problem in the relevant art that devices cannot communicate properly due to differences between packet formats, seriously affecting normal operation and user experience; the present invention thus enables proper communication between devices supporting the same protocol packet and produced by different manufacturers or between devices of different protocol versions and produced by the same manufacturer.

Description

报文格式处理方法和装置Message format processing method and device 技术领域Technical field
本发明涉及通信领域,具体而言,涉及报文格式处理方法和装置。The present invention relates to the field of communications, and in particular, to a message format processing method and apparatus.
背景技术Background technique
随着网络设备的发展,越来越多的设备厂商会在其设备中定制满足各种应用的私有报文,同一厂商生产的设备之间可以通过私有报文进行正常交互,但由于厂商设备的私有报文可能由于版本升级出现修改的情况,这样就会存在新版本和老版本协议对接可能出现报文不统一的问题。并且,不同厂商之间,如果为了成功对接某些私有协议,也需要支持进行一些协议报文的自动协商。另外,虽然现今大部分网络设备之间的交互使用的是TCP/IP协议簇中规定的标准协议报文格式,但报文中各字段的填充也不可避免地会存在一些大同小异,如何能屏蔽掉不同厂商设备协议报文格式的差异,让设备之间能正常通讯成为我们需要解决的问题。With the development of network devices, more and more device vendors can customize private messages to meet various applications in their devices. Devices produced by the same manufacturer can communicate with each other through private packets, but because of vendor devices. The private message may be modified due to the version upgrade. Therefore, there may be a problem that the new version and the old version of the protocol may not be unified. In addition, if different private protocols are successfully connected to different vendors, it is also necessary to support auto-negotiation of some protocol packets. In addition, although the interaction between most network devices today uses the standard protocol packet format specified in the TCP/IP protocol suite, the padding of each field in the packet will inevitably be somewhat similar. How can it be masked? The difference in the format of the protocol packets of different vendors makes it possible for devices to communicate properly.
因此,在相关技术中存在着由于报文格式间存在着差异,导致设备间无法进行正常的通讯,严重影响正常工作及用户体验的问题。Therefore, in the related art, there is a problem that the normal communication cannot be performed between the devices due to the difference between the message formats, which seriously affects the normal work and the user experience.
发明内容Summary of the invention
本发明提供了一种报文格式处理方法和装置,以至少解决相关技术中存在的由于报文格式间存在着差异,导致设备间无法进行正常的通讯而导致的问题。The present invention provides a packet format processing method and apparatus, which at least solves the problems caused by the inability of normal communication between devices due to differences in packet formats existing in the related art.
根据本发明的一个方面,提供了一种报文格式处理方法包括:通过端口接收对端设备发送的预定协议的报文;将通过所述端口向所述对端设备发送的报文的格式调整为所述对端设备发送的报文的格式,其中,向所述对端设备发送的报文为所述预定协议的报文。According to an aspect of the present invention, a packet format processing method includes: receiving, by a port, a packet of a predetermined protocol sent by a peer device; and adjusting a format of a packet sent to the peer device by using the port The format of the packet sent by the peer device, where the packet sent to the peer device is the packet of the predetermined protocol.
优选的,在通过端口接收对端设备发送的预定协议的报文之前,还包括:创建报文格式表,其中,所述报文格式表中存储有每个端口的对于不同协议的发送报文的格式。Preferably, before receiving, by the port, the packet of the predetermined protocol sent by the peer device, the method further includes: creating a packet format table, where the packet format table stores the sending packet for each port for different protocols. The format.
优选的,将通过所述端口向所述对端设备发送的报文的格式调整为所述对端设备发送的报文的格式包括:根据所述报文格式表中的默认格式向所述对端设备发送报文; 在与所述对端设备对接失败的情况下,将通过所述端口向所述对端设备发送的报文的格式调整为所述对端设备发送的报文的格式,其中,依据所述发送报文进行对接。Preferably, the format of the packet sent by the port to the peer device is changed to the format of the packet sent by the peer device, including: according to a default format in the packet format table, to the pair The end device sends a message; The format of the packet sent by the port to the peer device is changed to the format of the packet sent by the peer device, where the packet is sent according to the sending. The message is docked.
优选的,将通过所述端口向所述对端设备发送的报文的格式调整为所述对端设备发送的报文的格式包括:将所述报文格式表中所述端口发送所述预定协议的报文的格式更新为所述对端设备发送的报文的格式;依据所述报文格式表中更新后的发送报文的格式发送报文。Preferably, the format of the packet sent by the port to the peer device is changed to the format of the packet sent by the peer device, and the port in the packet format table is sent to the reservation. The format of the packet of the protocol is updated to the format of the packet sent by the peer device; and the packet is sent according to the format of the updated packet in the packet format table.
优选的,所述报文为协商报文。Preferably, the packet is a negotiation packet.
根据本发明的另一方面,提供了一种报文格式处理装置,包括:接收模块,设置为通过端口接收对端设备发送的预定协议的报文;调整模块,设置为将通过所述端口向所述对端设备发送的报文的格式调整为所述对端设备发送的报文的格式,其中,向所述对端设备发送的报文为所述预定协议的报文。According to another aspect of the present invention, a packet format processing apparatus is provided, including: a receiving module, configured to receive, by using a port, a packet of a predetermined protocol sent by a peer device; and an adjusting module configured to pass through the port The format of the packet sent by the peer device is adjusted to the format of the packet sent by the peer device, where the packet sent to the peer device is the packet of the predetermined protocol.
优选的,所述报文格式处理装置还包括:创建模块,设置为创建报文格式表,其中,所述报文格式表中存储有每个端口的对于不同协议的发送报文的格式。Preferably, the message format processing apparatus further includes: a creating module, configured to create a message format table, wherein the message format table stores a format of a sending message of each port for different protocols.
优选的,所述调整模块包括:第一发送单元,设置为根据所述报文格式表中的默认格式向所述对端设备发送报文;调整单元,设置为在与所述对端设备对接失败的情况下,将通过所述端口向所述对端设备发送的报文的格式调整为所述对端设备发送的报文的格式,其中,依据所述发送报文进行对接。Preferably, the adjusting module includes: a first sending unit, configured to send a message to the peer device according to a default format in the packet format table; and the adjusting unit is configured to be connected to the peer device In the case of a failure, the format of the packet sent by the port to the peer device is adjusted to the format of the packet sent by the peer device, and the packet is forwarded according to the sent packet.
优选的,所述调整单元包括:更新子单元,设置为将所述报文格式表中所述端口发送所述预定协议的报文的格式更新为所述对端设备发送的报文的格式;第二发送子单元,设置为依据所述报文格式表中更新后的发送报文的格式发送报文。Preferably, the adjusting unit includes: an update subunit, configured to update a format of a packet in which the port in the packet format table sends the predetermined protocol to a format of a packet sent by the peer device; The second sending subunit is configured to send the packet according to the format of the updated sending message in the message format table.
优选的,所述报文为协商报文。Preferably, the packet is a negotiation packet.
通过本发明,采用通过端口接收对端设备发送的预定协议的报文;将通过所述端口向所述对端设备发送的报文的格式调整为所述对端设备发送的报文的格式,其中,向所述对端设备发送的报文为所述预定协议的报文,解决了相关技术中存在的由于报文格式间存在着差异,导致设备间无法进行正常的通讯而导致的问题,进而达到了使不同厂商生产的支持同一协议报文的设备之间或者同一厂商不同协议版本下的设备之间能正常通讯的效果。 The packet of the predetermined protocol sent by the peer device is received by the port, and the format of the packet sent by the peer device to the peer device is adjusted to the format of the packet sent by the peer device. The packet sent to the peer device is the packet of the predetermined protocol, which solves the problem that the normal communication between the devices cannot be performed due to the difference between the packet formats in the related art. In addition, the effect of enabling normal communication between devices that support the same protocol packet produced by different vendors or devices under different protocol versions of the same vendor is achieved.
附图说明DRAWINGS
此处所说明的附图用来提供对本发明的进一步理解,构成本申请的一部分,本发明的示意性实施例及其说明用于解释本发明,并不构成对本发明的不当限定。在附图中:The drawings described herein are intended to provide a further understanding of the invention, and are intended to be a part of the invention. In the drawing:
图1是根据本发明实施例的报文格式处理方法的流程图;1 is a flowchart of a message format processing method according to an embodiment of the present invention;
图2是根据本发明实施例的报文格式处理装置的结构框图;2 is a structural block diagram of a message format processing apparatus according to an embodiment of the present invention;
图3是根据本发明实施例的报文格式处理装置的优选结构框图;3 is a block diagram showing a preferred structure of a message format processing apparatus according to an embodiment of the present invention;
图4是根据本发明实施例的报文格式处理装置中调整模块24的结构框图一;4 is a block diagram 1 of a configuration of an adjustment module 24 in a message format processing apparatus according to an embodiment of the present invention;
图5是根据本发明实施例的报文格式处理装置中调整单元44的结构框图;FIG. 5 is a structural block diagram of an adjustment unit 44 in a message format processing apparatus according to an embodiment of the present invention;
图6是根据本发明实施例的网络设备的结构框图;6 is a structural block diagram of a network device according to an embodiment of the present invention;
图7是根据本发明另一实施例的报文格式处理步骤的流程图;FIG. 7 is a flowchart of a packet format processing procedure according to another embodiment of the present invention; FIG.
图8是传统的报文收发处理方法与根据本发明实施例的报文收发处理方法对比示意图。FIG. 8 is a schematic diagram of a conventional packet transceiving processing method and a packet transceiving processing method according to an embodiment of the present invention.
具体实施方式detailed description
下文中将参考附图并结合实施例来详细说明本发明。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。The invention will be described in detail below with reference to the drawings in conjunction with the embodiments. It should be noted that the embodiments in the present application and the features in the embodiments may be combined with each other without conflict.
在本实施例中提供了一种报文格式处理方法,图1是根据本发明实施例的报文格式处理方法的流程图,如图1所示,该流程包括如下步骤:In this embodiment, a packet format processing method is provided. FIG. 1 is a flowchart of a packet format processing method according to an embodiment of the present invention. As shown in FIG. 1, the process includes the following steps:
步骤S102,通过端口接收对端设备发送的预定协议的报文;Step S102: Receive, by using a port, a packet of a predetermined protocol sent by the peer device.
步骤S104,将通过端口向对端设备发送的报文的格式调整为对端设备发送的报文的格式,其中,向对端设备发送的报文为预定协议的报文。Step S104: The format of the packet sent by the port to the peer device is adjusted to the format of the packet sent by the peer device, where the packet sent to the peer device is a packet of a predetermined protocol.
通过上述步骤,依据通过端口接收对端设备发送的预定协议的报文,并且将通过该端口向对端设备发送的报文的格式调整为对端设备发送的报文的格式,从而实现了能够根据接收到的报文格式进行调整,由于接收到的报文来自于对端,对端发送的报文必然是对端所支持的格式,因此,根据接收来的报文来调整向对端发送的报文,就 可以使双方所支持的报文格式一致,从而解决了相关技术中存在的由于报文格式间存在着差异,导致设备间无法进行正常的通讯,严重影响正常工作及用户体验的问题,进而达到了使不同厂商生产的支持同一协议报文的设备之间或者同一厂商不同协议版本下的设备之间能正常通讯,而无须其它额外的配置,使用十分灵活,同时也达到了扩大设备的使用范围,提高用户体验的效果。Through the above steps, according to the packet receiving the predetermined protocol sent by the peer device through the port, and adjusting the format of the packet sent to the peer device through the port to the format of the packet sent by the peer device, The packet is received according to the format of the received packet. The received packet is sent from the peer. The packet sent by the peer must be in the format supported by the peer. Therefore, the packet is sent to the peer according to the received packet. Message, just The format of the packets supported by the two parties is the same, which solves the problem that the related technologies cannot be properly communicated between the devices due to the difference between the packet formats, which seriously affects the normal work and user experience. It enables normal communication between devices that support the same protocol packets produced by different vendors or devices under different protocol versions of the same manufacturer, without any additional configuration, and is very flexible to use, and also achieves the expansion of the device's use range. Improve the user experience.
在一个可选的实施例中,可以使用表的形式来存储端口对应的报文格式,例如,可以在通过本端设备端口接收对端设备发送的预定协议的报文之前,在本端设备中预先创建报文格式表,该报文格式表中存储着每个端口的对于不同协议的发送报文的格式。该报文格式表可以是一种基于端口和协议的全局端口协议报文格式表。作为另一种可选的实施方式,在创建该报文格式表时,可以为每个端口针对每种协议设定一种默认的报文格式,在进行后续的端口对接时,该报文格式有可能是合适的,即可以完成报文发送的报文格式,也有可能是不合适的,即依据该种格式,无法完成报文发送,也就是说本端设备和对端设备之间无法对接成功。因此,在后续的报文发送中,可以结合图1中示出的步骤对该报文格式表中的报文格式进行适当的调整,使得端口以最合适的报文格式发送报文,进而使得不同厂商生产的支持同一协议报文的设备之间或者同一厂商不同协议版本下的设备之间能正常通讯。In an optional embodiment, the form of the table may be used to store the packet format corresponding to the port. For example, the local device may be in the local device before receiving the packet of the predetermined protocol sent by the peer device. A packet format table is pre-created, and the format of the sent packet for each protocol of each port is stored in the packet format table. The packet format table may be a global port protocol packet format table based on a port and a protocol. As another optional implementation manner, when the packet format table is created, a default packet format may be set for each port for each port, and the subsequent packet is configured for subsequent port interfacing. It may be appropriate to complete the packet format of the packet, or it may be inappropriate. That is, according to the format, the packet cannot be sent, that is, the local device and the peer device cannot be connected. success. Therefore, in the subsequent packet transmission, the packet format in the packet format table can be appropriately adjusted according to the steps shown in FIG. 1 to enable the port to send the packet in the most suitable packet format, thereby Devices that support the same protocol packets from different vendors can communicate with each other between devices of different protocol versions of the same vendor.
在另外一个可选的实施方式中,在通过端口向对端设备发送报文时,依据该报文格式表中的格式进行报文的发送的,因此,当默认的报文格式不合适时,会造成本端设备与对端设备对接失败,即报文不能成功的被对端设备接收,此时需要对该报文格式做相应的调整,需要将通过端口向对端设备发送的报文的格式调整为对端设备发送的报文的格式。然后,可以在将报文格式表中端口发送预定协议的报文的格式更新为对端设备发送的报文的格式,之后,本端设备依据该报文格式表中更新后的发送报文的格式发送报文。In another optional implementation manner, when the packet is sent to the peer device through the port, the packet is sent according to the format in the packet format table. Therefore, when the default packet format is inappropriate, The local device fails to connect to the peer device. That is, the packet cannot be successfully received by the peer device. In this case, the packet format needs to be adjusted. The format is adjusted to the format of the packet sent by the peer device. Then, the format of the packet sent by the port in the packet format table is updated to the format of the packet sent by the peer device, and then the local device according to the updated packet in the packet format table. The format sends a message.
上述实施例及实施方式中涉及到的报文可以是正常通信的报文,但是,为了不影响正常通信,在一个实施例中可以先通过协商的方式来确定通信双方所支持的报文格式,即上述的报文可以均为协商报文,当报文为协商报文时,上述对接失败可以是指协商失败,即本端设备发送的协商报文不被对端设备所识别。The packets involved in the foregoing embodiments and embodiments may be packets that are normally communicated. However, in order to not affect the normal communication, in one embodiment, the format of the packets supported by the communication parties may be determined by negotiation. That is, the foregoing packet may be a negotiation packet. When the packet is a negotiation packet, the connection failure may be that the negotiation fails, that is, the negotiation packet sent by the local device is not recognized by the peer device.
通过上述实施例及其可选实施方式,可以完成报文格式的调整,进而使得本端设备同一端口接收预定协议的报文与发送该预定协议的报文的格式保持一致,保证了报文的发送成功率,实现了端口对接成功。 The packet format is adjusted according to the foregoing embodiment and the optional implementation manner, and the format of the packet that the local device receives the predetermined protocol on the same port is consistent with the format of the packet that sends the predetermined protocol. The success rate of the transmission is achieved.
在本实施例中还提供了一种报文格式处理装置,该装置用于实现上述实施例及优选实施方式,已经进行过说明的不再赘述。如以下所使用的,术语“模块”可以实现预定功能的软件和/或硬件的组合。尽管以下实施例所描述的装置较佳地以软件来实现,但是硬件,或者软件和硬件的组合的实现也是可能并被构想的。In this embodiment, a message format processing device is also provided, which is used to implement the foregoing embodiments and preferred embodiments, and has not been described again. As used below, the term "module" may implement a combination of software and/or hardware of a predetermined function. Although the apparatus described in the following embodiments is preferably implemented in software, hardware, or a combination of software and hardware, is also possible and contemplated.
图2是根据本发明实施例的报文格式处理装置的结构框图,如图2所示,该装置包括接收模块22和调整模块24,下面对该装置进行说明。2 is a structural block diagram of a message format processing apparatus according to an embodiment of the present invention. As shown in FIG. 2, the apparatus includes a receiving module 22 and an adjusting module 24. The apparatus will be described below.
接收模块22,设置为通过端口接收对端设备发送的预定协议的报文;调整模块24,连接至上述接收模块22,设置为将通过端口向对端设备发送的报文的格式调整为上述对端设备发送的报文的格式,其中,向对端设备发送的报文为预定协议的报文。The receiving module 22 is configured to receive a packet of a predetermined protocol sent by the peer device through the port, and the adjusting module 24 is connected to the receiving module 22, and is configured to adjust the format of the packet sent by the port to the peer device to the foregoing The format of the packet sent by the end device, where the packet sent to the peer device is a packet of a predetermined protocol.
图3是根据本发明实施例的报文格式处理装置的优选结构框图,如图3所示,该装置除包括上述图2中的全部模块外,还包括创建模块32,下面对该装置进行说明。FIG. 3 is a block diagram showing a preferred structure of a message format processing apparatus according to an embodiment of the present invention. As shown in FIG. 3, the apparatus includes a creation module 32 in addition to all the modules in FIG. Description.
创建模块32,连接至上述接收模块22,设置为创建报文格式表,其中,该报文格式表中存储有每个端口的对于不同协议的发送报文的格式。The creating module 32 is connected to the receiving module 22, and is configured to create a message format table, where the format of the sending message for each protocol of each port is stored in the message format table.
图4是根据本发明实施例的报文格式处理装置中调整模块24的结构框图一,如图4所示,该调整模块24包括第一发送单元42和调整单元44,下面对该调整模块24进行说明。FIG. 4 is a block diagram showing the structure of the adjustment module 24 in the message format processing apparatus according to the embodiment of the present invention. As shown in FIG. 4, the adjustment module 24 includes a first sending unit 42 and an adjusting unit 44. 24 for explanation.
第一发送单元42,设置为根据报文格式表中的默认格式向对端设备发送报文;调整单元44,连接至上述第一发送单元42,设置为在与对端设备对接失败的情况下,将通过端口向对端设备发送的报文的格式调整为对端设备发送的报文的格式,其中,依据上述发送报文进行对接。The first sending unit 42 is configured to send a message to the peer device according to the default format in the packet format table; the adjusting unit 44 is connected to the first sending unit 42 and is configured to be in the case that the connection with the peer device fails. The format of the packet sent by the port to the peer device is adjusted to the format of the packet sent by the peer device.
图5是根据本发明实施例的报文格式处理装置中调整单元44的结构框图,如图5所示,该调整单元44包括更新子单元52和第二发送子单元54,下面对该调整单元44进行说明。FIG. 5 is a structural block diagram of an adjustment unit 44 in a message format processing apparatus according to an embodiment of the present invention. As shown in FIG. 5, the adjustment unit 44 includes an update subunit 52 and a second transmission subunit 54, which are adjusted below. Unit 44 is described.
更新子单元52,设置为将报文格式表中端口发送预定协议的报文的格式更新为对端设备发送的报文的格式;第二发送子单元54,连接至上述更新子单元52,设置为依据报文格式表中更新后的发送报文的格式发送报文。The update subunit 52 is configured to update the format of the packet in which the port in the packet format table is sent by the predetermined protocol to the format of the packet sent by the peer device; the second sending subunit 54 is connected to the update subunit 52, and is configured to The packet is sent according to the format of the updated sent message in the message format table.
图6是根据本发明实施例的网络设备的结构框图,如图6所示,该网络设备62包括上述任一项的报文格式处理装置64。 FIG. 6 is a structural block diagram of a network device according to an embodiment of the present invention. As shown in FIG. 6, the network device 62 includes the message format processing device 64 of any of the above.
针对相关技术中存在的由于报文格式间存在着差异,导致设备间无法进行正常的通讯,严重影响正常工作及用户体验的问题,本发明实施例提供了一种根据网络设备端口收到某种协议报文的格式来动态调整设备发出的该协议报文格式的方法,从而使得不同厂商生产的支持该协议报文的设备之间或者同一厂商不同协议版本之间能正常通讯,而无须其它额外的配置,使用十分灵活,同时也扩大了设备的使用范围。The present invention provides a method for receiving a certain type according to a network device port, because there is a difference between the packet formats in the related art, and the device cannot perform normal communication, which seriously affects the normal working and user experience. The format of the protocol packet dynamically adjusts the format of the protocol packet sent by the device, so that devices of different vendors can support normal communication between devices supporting the protocol packet or different protocol versions of the same vendor without additional The configuration is very flexible and also expands the scope of use of the device.
在本发明实施例中,通过在设备上存储一份协议报文格式的数据的软件表,并且在与对端设备进行协议交互的时候,如果发现对接不成功,则根据接收到对端设备的协议报文格式,来自动调整本端设备的协议报文格式的软件表,将本端设备的软件表中的报文格式更新成可以与对端设备进行交互的报文格式,这样,当第一次对接失败之后,由于本端设备的报文格式进行了自动调整,所以当设备第二次尝试对接的时候,就可以正常对接成功。In the embodiment of the present invention, the software table of the data in the protocol packet format is stored on the device, and when the protocol interaction with the peer device is performed, if the connection is found to be unsuccessful, the device according to the peer device is received. In the protocol packet format, the software table of the protocol packet format of the local device is automatically adjusted, and the packet format in the software table of the local device is updated to a packet format that can interact with the peer device, so that After the connection fails, the packet format of the local device is automatically adjusted. When the device attempts to connect for the second time, the device can be successfully connected.
下面结合附图对一个优选的实施例进行说明:A preferred embodiment will now be described with reference to the accompanying drawings:
图7是根据本发明另一实施例的报文格式处理步骤的流程图,包括如下步骤:FIG. 7 is a flowchart of a packet format processing procedure according to another embodiment of the present invention, including the following steps:
步骤S702,系统初始化时,创建一张基于设备端口+协议的全局端口协议报文格式表(同上述的报文格式表),并给端口上需要自动适应的协议约定一种默认的报文格式;Step S702: When the system is initialized, create a global port protocol packet format table (same as the above-mentioned packet format table) based on the device port + protocol, and stipulate a default packet format for the protocol that needs to be automatically adapted on the port. ;
步骤S704,端口收到该协议报文的格式有变化时,更新端口发送该协议报文的格式到端口协议格式表中;Step S704: When the format of the protocol packet is changed, the port is updated to send the format of the protocol packet to the port protocol format table.
步骤S706,端口发送该协议报文时,根据全局端口协议报文格式表中该端口上该协议的格式发送报文。Step S706: When the port sends the protocol packet, the port sends the packet according to the protocol format on the port in the global port protocol packet format table.
上述步骤为利用端口接收协议报文的格式动态调整端口发出协议报文的格式。一个端口接收的协议报文格式发生变化时,不会影响其它端口发出该协议报文格式,也不会影响本端口发出的其它协议报文格式,并且,在协议报文发送前判断端口接收报文的格式,动态调整设备不同端口发出的协议报文格式,可以让设备支持不同格式的协议报文的设备完成对接,并且不需要任何额外的配置。The above steps are to dynamically adjust the format of the protocol packet sent by the port by using the format of the port receiving protocol packet. If the format of a protocol packet received by a port is changed, the format of the protocol packet sent by other ports will not be affected, and the format of other protocol packets sent by the port will not be affected, and the port will be received before the protocol packet is sent. The format of the text dynamically adjusts the protocol packet format sent by different ports of the device. The device can support the device that supports protocol packets of different formats and does not need any additional configuration.
图8是传统的报文收发处理方法与根据本发明实施例的报文收发处理方法对比示意图。下面结合图8对本发明的实施方式进行说明: FIG. 8 is a schematic diagram of a conventional packet transceiving processing method and a packet transceiving processing method according to an embodiment of the present invention. Embodiments of the present invention will be described below with reference to FIG. 8:
如果设备1支持的设备之间协商的报文格式为A,设备2默认支持的协商报文格式也为A,设备3支持的协商报文格式为B。设备2分别与设备1和设备3直连,要完成设备2分别与设备1和3之间的协商交互。If the format of the packet negotiated between the devices supported by device 1 is A, the format of the negotiation packet supported by device 2 is A. The format of the negotiation packet supported by device 3 is B. The device 2 is directly connected to the device 1 and the device 3, respectively, and the negotiation interaction between the device 2 and the devices 1 and 3 is completed.
此时需要进行以下步骤的处理:In this case, you need to perform the following steps:
a、设备2系统初始时,创建一张基于设备端口+协议的全局端口;a. When the device 2 system initially starts, create a global port based on the device port + protocol;
协议报文格式表,设备之间协商报文约定报文格式为A;In the protocol packet format table, the format of the packet negotiation message between the devices is A;
b、与设备1直连的端口收到协商报文格式为A,与设备2上该端口当前发送的协商报文格式一致,不更新全局端口协议格式表,与设备3直连的端口收到协商报文格式为B,与设备2上该端口当前发送的协商报文格式不一致,更新全局端口协议格式表,将该端口的协议报文格式更新为B;b. The interface that is directly connected to device 1 receives the negotiation packet format as A. The format of the negotiation packet sent by the port on device 2 is the same. The global port protocol format table is not updated. The port directly connected to device 3 is received. The negotiation packet format is B, and the format of the negotiation packet sent by the port on the device 2 is inconsistent. The global port protocol format table is updated, and the protocol packet format of the port is updated to B.
c、端口发送协商报文时,根据全局端口协议报文格式表中该协议的状态标记位发送与之对应格式的报文;与设备1直连的端口收到协商报文格式为A,该端口发送协商报文格式为A,与设备3直连的端口收到协商报文格式为B,该端口发送协商报文格式为B。If the port sends a negotiation packet, the port sends a packet with the corresponding format according to the status flag of the protocol in the global port protocol packet format table. The port directly connected to device 1 receives the negotiation packet format as A. The format of the negotiation packet sent by the port is A. The format of the negotiation packet sent by the port directly connected to device 3 is B. The format of the negotiation packet sent by the port is B.
在上述步骤b中,当设备3直连的端口收到协商报文格式为B,与设备2上该端口当前发送的协商报文格式不一致时,在相关技术中,设备3与设备2会对接失败。依据本发明实施例的报文格式处理的方法,会对协议格式表进行更新,将设备2中与设备3直连的端口发送的协商报文格式更新为B,再次进行端口对接时,就可以对接成功了。In the foregoing step b, when the interface directly connected to the device 3 receives the negotiation packet format B, and the format of the negotiation packet currently sent by the port on the device 2 is inconsistent, in the related art, the device 3 and the device 2 are connected. failure. According to the packet format processing method of the embodiment of the present invention, the protocol format table is updated, and the format of the negotiation packet sent by the device directly connected to the device 3 in the device 2 is updated to B, and the port is connected again. The docking was successful.
由以上的技术方案可见,与相关技术中的网络设备以固定格式发送协议报文的方法相比较,本发明实施例提出的方案可以让网络设备完成与支持不同报文格式的设备的对接,提高了设备使用的灵活性,也扩大了设备的使用范围,由于可以支持不同设备版本甚至不同厂商间设备的对接,节省了网络中设备升级和更新的成本。另外本发明实施例中上述方案的实现均可以在用户不可见的情况下完成,用户只需要完成协议的正常配置即可。It can be seen from the above technical solution that, compared with the method for the network device in the related art to send the protocol packet in a fixed format, the solution proposed by the embodiment of the present invention can enable the network device to complete the connection with the device supporting different packet formats, thereby improving The flexibility of the use of the device also expands the scope of use of the device. Since it can support the docking of devices between different device versions and even different vendors, the cost of upgrading and updating devices in the network is saved. In addition, the implementation of the foregoing solution in the embodiment of the present invention can be completed in the case that the user is invisible, and the user only needs to complete the normal configuration of the protocol.
通过上述实施例中的优化处理后,可以完成支持不同格式的协议报文的设备之间的对接,并且不需要任何额外的配置,提高了设备使用的灵活性,也扩大了设备的使用范围。 After the optimization process in the foregoing embodiment, the devices that support protocol packets of different formats can be connected, and no additional configuration is needed, which improves the flexibility of the device and expands the scope of use of the device.
显然,本领域的技术人员应该明白,上述的本发明的各模块或各步骤可以用通用的计算装置来实现,它们可以集中在单个的计算装置上,或者分布在多个计算装置所组成的网络上,可选地,它们可以用计算装置可执行的程序代码来实现,从而,可以将它们存储在存储装置中由计算装置来执行,并且在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤,或者将它们分别制作成各个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。这样,本发明不限制于任何特定的硬件和软件结合。It will be apparent to those skilled in the art that the various modules or steps of the present invention described above can be implemented by a general-purpose computing device that can be centralized on a single computing device or distributed across a network of multiple computing devices. Alternatively, they may be implemented by program code executable by the computing device such that they may be stored in the storage device by the computing device and, in some cases, may be different from the order herein. The steps shown or described are performed, or they are separately fabricated into individual integrated circuit modules, or a plurality of modules or steps thereof are fabricated as a single integrated circuit module. Thus, the invention is not limited to any specific combination of hardware and software.
以上所述仅为本发明的优选实施例而已,并不用于限制本发明,对于本领域的技术人员来说,本发明可以有各种更改和变化。凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。The above description is only the preferred embodiment of the present invention, and is not intended to limit the present invention, and various modifications and changes can be made to the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and scope of the present invention are intended to be included within the scope of the present invention.
工业实用性Industrial applicability
如上所述,本发明实施例提供的一种报文格式处理方法和装置具有以下有益效果:解决了相关技术中存在的由于报文格式间存在着差异,导致设备间无法进行正常的通讯,严重影响正常工作及用户体验的问题,进而达到了使不同厂商生产的支持同一协议报文的设备之间或者同一厂商不同协议版本下的设备之间能正常通讯的效果。 As described above, the packet format processing method and apparatus provided by the embodiments of the present invention have the following beneficial effects: the problem that the difference between the packet formats exists in the related art, and the normal communication cannot be performed between the devices, which is serious. A problem that affects normal work and user experience, and thus achieves the effect of enabling normal communication between devices that support the same protocol packet produced by different vendors or devices under different protocol versions of the same vendor.

Claims (10)

  1. 一种报文格式处理方法,包括:A packet format processing method includes:
    通过端口接收对端设备发送的预定协议的报文;Receiving, by the port, a packet of a predetermined protocol sent by the peer device;
    将通过所述端口向所述对端设备发送的报文的格式调整为所述对端设备发送的报文的格式,其中,向所述对端设备发送的报文为所述预定协议的报文。The format of the packet sent by the port to the peer device is adjusted to the format of the packet sent by the peer device, where the packet sent to the peer device is the report of the predetermined protocol. Text.
  2. 根据权利要求1所述的方法,其中,在通过端口接收对端设备发送的预定协议的报文之前,还包括:The method according to claim 1, wherein before receiving the message of the predetermined protocol sent by the peer device through the port, the method further includes:
    创建报文格式表,其中,所述报文格式表中存储有每个端口的对于不同协议的发送报文的格式。A packet format table is created, where the format of the sent packet for each protocol of each port is stored in the packet format table.
  3. 根据权利要求2所述的方法,其中,将通过所述端口向所述对端设备发送的报文的格式调整为所述对端设备发送的报文的格式包括:The method of claim 2, wherein the format of the packet sent by the port to the peer device is changed to a format of the packet sent by the peer device, including:
    根据所述报文格式表中的默认格式向所述对端设备发送报文;Sending a message to the peer device according to a default format in the packet format table;
    在与所述对端设备对接失败的情况下,将通过所述端口向所述对端设备发送的报文的格式调整为所述对端设备发送的报文的格式,其中,依据所述发送报文进行对接。The format of the packet sent by the port to the peer device is changed to the format of the packet sent by the peer device, where the packet is sent according to the sending. The message is docked.
  4. 根据权利要求3所述的方法,其中,将通过所述端口向所述对端设备发送的报文的格式调整为所述对端设备发送的报文的格式包括:The method according to claim 3, wherein the format of the packet sent by the port to the peer device is adjusted to a format of the packet sent by the peer device, including:
    将所述报文格式表中所述端口发送所述预定协议的报文的格式更新为所述对端设备发送的报文的格式;And updating, in the packet format table, a format of the packet that is sent by the port to the predetermined protocol to a format of the packet sent by the peer device;
    依据所述报文格式表中更新后的发送报文的格式发送报文。Sending a packet according to the format of the updated sent packet in the packet format table.
  5. 根据权利要求1至4中任一项所述的方法,其中,所述报文为协商报文。The method according to any one of claims 1 to 4, wherein the message is a negotiation message.
  6. 一种报文格式处理装置,包括:A message format processing apparatus includes:
    接收模块,设置为通过端口接收对端设备发送的预定协议的报文;a receiving module, configured to receive, by using a port, a packet of a predetermined protocol sent by the peer device;
    调整模块,设置为将通过所述端口向所述对端设备发送的报文的格式调整为所述对端设备发送的报文的格式,其中,向所述对端设备发送的报文为所述预定协议的报文。 The adjustment module is configured to adjust the format of the packet sent by the port to the peer device to the format of the packet sent by the peer device, where the packet sent to the peer device is A message describing the predetermined agreement.
  7. 根据权利要求6所述的装置,其中,还包括:The apparatus of claim 6 further comprising:
    创建模块,设置为创建报文格式表,其中,所述报文格式表中存储有每个端口的对于不同协议的发送报文的格式。A module is created, and is configured to create a message format table, where the format of the sent message for each protocol of each port is stored in the message format table.
  8. 根据权利要求7所述的装置,其中,所述调整模块包括:The apparatus of claim 7, wherein the adjustment module comprises:
    第一发送单元,设置为根据所述报文格式表中的默认格式向所述对端设备发送报文;a first sending unit, configured to send a message to the peer device according to a default format in the packet format table;
    调整单元,设置为在与所述对端设备对接失败的情况下,将通过所述端口向所述对端设备发送的报文的格式调整为所述对端设备发送的报文的格式,其中,依据所述发送报文进行对接。The adjustment unit is configured to adjust, in the case that the connection with the peer device fails, the format of the packet sent by the port to the peer device to be the format of the packet sent by the peer device, where And docking according to the sent message.
  9. 根据权利要求8所述的装置,其中,所述调整单元包括:The apparatus of claim 8 wherein said adjusting unit comprises:
    更新子单元,设置为将所述报文格式表中所述端口发送所述预定协议的报文的格式更新为所述对端设备发送的报文的格式;An update subunit, configured to update a format of a packet in which the port in the packet format table is sent by the predetermined protocol to a format of a packet sent by the peer device;
    第二发送子单元,设置为依据所述报文格式表中更新后的发送报文的格式发送报文。The second sending subunit is configured to send the packet according to the format of the updated sending message in the message format table.
  10. 根据权利要求6至9中任一项所述的装置,其中,所述报文为协商报文。 The apparatus according to any one of claims 6 to 9, wherein the message is a negotiation message.
PCT/CN2014/088428 2014-06-30 2014-10-11 Packet format processing method and device WO2016000348A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410309498.X 2014-06-30
CN201410309498.XA CN105227534A (en) 2014-06-30 2014-06-30 Message format processing method and device

Publications (1)

Publication Number Publication Date
WO2016000348A1 true WO2016000348A1 (en) 2016-01-07

Family

ID=54996217

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/088428 WO2016000348A1 (en) 2014-06-30 2014-10-11 Packet format processing method and device

Country Status (2)

Country Link
CN (1) CN105227534A (en)
WO (1) WO2016000348A1 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107360075B (en) * 2016-05-10 2021-10-08 中兴通讯股份有限公司 Network equipment ring protection method and device and network system
CN108632091A (en) * 2018-05-09 2018-10-09 烽火通信科技股份有限公司 The service of connection devices is adaptively adapted to the implementation method of encapsulation in a kind of DCN networks
CN112929352A (en) * 2021-01-28 2021-06-08 杭州迪普科技股份有限公司 IPSec VPN negotiation method, device and equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7010727B1 (en) * 2001-06-15 2006-03-07 Nortel Networks Limited Method and system for negotiating compression techniques to be utilized in packet data communications
US7529234B1 (en) * 2008-06-02 2009-05-05 International Business Machines Corporation Method of and system for supporting voice over internet protocol (VoIP) media codecs on a voice processing system
CN101848492A (en) * 2010-06-10 2010-09-29 中兴通讯股份有限公司 Message transmission method between media gateways, media gateway and wireless communication system
CN101989952A (en) * 2010-11-03 2011-03-23 中兴通讯股份有限公司 Multicasting method and device
CN102624629A (en) * 2012-03-26 2012-08-01 中兴通讯股份有限公司 Method and device for WAN (Wide Area Network) message transmission

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101510889A (en) * 2009-04-03 2009-08-19 杭州华三通信技术有限公司 Method and equipment for obtaining dynamic route
US9185178B2 (en) * 2011-09-23 2015-11-10 Guest Tek Interactive Entertainment Ltd. Interface gateway and method of interfacing a property management system with a guest service device
CN103595635B (en) * 2012-08-13 2017-08-11 中兴通讯股份有限公司 Data communication network message forwarding method and device based on packet OTN apparatus

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7010727B1 (en) * 2001-06-15 2006-03-07 Nortel Networks Limited Method and system for negotiating compression techniques to be utilized in packet data communications
US7529234B1 (en) * 2008-06-02 2009-05-05 International Business Machines Corporation Method of and system for supporting voice over internet protocol (VoIP) media codecs on a voice processing system
CN101848492A (en) * 2010-06-10 2010-09-29 中兴通讯股份有限公司 Message transmission method between media gateways, media gateway and wireless communication system
CN101989952A (en) * 2010-11-03 2011-03-23 中兴通讯股份有限公司 Multicasting method and device
CN102624629A (en) * 2012-03-26 2012-08-01 中兴通讯股份有限公司 Method and device for WAN (Wide Area Network) message transmission

Also Published As

Publication number Publication date
CN105227534A (en) 2016-01-06

Similar Documents

Publication Publication Date Title
CN105281947B (en) For Legacy network to be transformed into the technology for having the network of SDN ability
US9386001B1 (en) Border gateway protocol (BGP) communications over trusted network function virtualization (NFV) hardware
US9182972B2 (en) Method and system for minimizing disruption during in-service software upgrade
WO2016149908A1 (en) Method for updating terminal system, terminal and system
US9348564B2 (en) Intelligent device framework
JP4789425B2 (en) Route table synchronization method, network device, and route table synchronization program
WO2016000348A1 (en) Packet format processing method and device
US10997376B2 (en) Electronic message translation management
WO2010127602A1 (en) Method for provisioning parameters of terminal, system thereof, and terminal management device
WO2015127850A1 (en) Data upgrading method and central server
US20070082657A1 (en) Method and system for notifying service information to wireless terminal
EP2922267A1 (en) Method for achieving communication based on mbim interface and device therefor
WO2016074412A1 (en) Compatibility administration method based on network configuration protocol, storage medium and device
CN105827496B (en) Manage the method and device of PE equipment
US20200228389A1 (en) Electronic message adaptation
CN112217661B (en) Port mode self-adaption method and device
JP6118464B2 (en) Port status synchronization method, related device, and system
CN103491557A (en) Processing method and device for base station upgrading data
WO2022121492A1 (en) File transmission method and apparatus, computer device, and storage medium
TWI540512B (en) Network system and software updating method
KR20150088462A (en) Method for linking network device in cloud environment and apparatus therefor
TWI493922B (en) Network device and operating method thereof
WO2017032212A1 (en) Data stream processing method and apparatus
WO2016065928A1 (en) Router configuration method and router, router control device and communication system
JP2023521843A (en) Method, system, and computer readable medium for managing multiple software versions in a software-defined wide area network (SD-WAN)

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 14896650

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 14896650

Country of ref document: EP

Kind code of ref document: A1