CN111953639A - Method and apparatus for communication over a head link - Google Patents

Method and apparatus for communication over a head link Download PDF

Info

Publication number
CN111953639A
CN111953639A CN201910414182.XA CN201910414182A CN111953639A CN 111953639 A CN111953639 A CN 111953639A CN 201910414182 A CN201910414182 A CN 201910414182A CN 111953639 A CN111953639 A CN 111953639A
Authority
CN
China
Prior art keywords
network element
element processor
head link
processor
message
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201910414182.XA
Other languages
Chinese (zh)
Other versions
CN111953639B (en
Inventor
贾国栋
陈剑
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Datang Mobile Communications Equipment Co Ltd
Original Assignee
Datang Mobile Communications Equipment 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 Datang Mobile Communications Equipment Co Ltd filed Critical Datang Mobile Communications Equipment Co Ltd
Priority to CN201910414182.XA priority Critical patent/CN111953639B/en
Publication of CN111953639A publication Critical patent/CN111953639A/en
Application granted granted Critical
Publication of CN111953639B publication Critical patent/CN111953639B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/22Parsing or analysis of headers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/06Notations for structuring of protocol data, e.g. abstract syntax notation one [ASN.1]

Landscapes

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

Abstract

The embodiment of the invention provides a method and a device for communication of a head link. The method comprises the following steps: when the network element processor at the sending side is in a small-end storage mode, sending a head link message in a small-end format to the network element processor at the receiving side; when the sending side network element processor is in a large-end storage mode, sending a head link message in a large-end format to a receiving side network element processor; wherein, the head link message carries the attribute information of the size end of the network element processor at the sending side. The embodiment of the invention does not carry out byte order conversion on the processor at the sending side, and uniformly analyzes the field of the network message at the processor at the receiving side to judge whether to carry out byte order conversion, thereby reducing the waste of the performance of the processor and improving the processing efficiency.

Description

Method and apparatus for communication over a head link
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a method and an apparatus for communicating a head link.
Background
Communication messages in the 4G/5G communication protocol generally adopt a structural mode of a message header and a message body, and are called head link line communication. The processors in the network elements of the base station have difference of big and small ends, in the 4G base station, the big end processors are mostly used in the base station, the head link communication messages between the network elements are all big end network messages, if the small end processors are used in the 4G base station, the small end processors need to convert the message heads and the message bodies into a network big end byte order format when sending messages to the network, then the messages can be sent to the network, and the message heads and the message bodies are processed by the receiving side processors according to the big end byte order format.
In the 5G base station, most processors of the base station are small-end processors, if a large-end network communication mode is still used, when the small-end processor sends a message, byte order conversion (conversion into a large-end byte order message format) of the message needs to be performed, and when the small-end processor receives the message, byte order conversion (conversion into a small-end byte order message format for local processing) still needs to be performed, so that the performance of the processors is greatly wasted. If the 5G adopts the byte order of the small-end network and the 4G adopts the byte order of the large-end network, the problems that the byte orders of the networks between the 4G base stations and the 5G base stations are different and the messages are not communicated exist.
Disclosure of Invention
To solve the problems in the prior art, embodiments of the present invention provide a method and an apparatus for communication over a head link.
The embodiment of the invention provides a communication method of a head link, which is applied to a network element processor at a sending side and comprises the following steps:
when the network element processor at the sending side is in a small-end storage mode, sending a head link message in a small-end format to the network element processor at the receiving side;
when the sending side network element processor is in a large-end storage mode, sending a head link message in a large-end format to a receiving side network element processor;
wherein, the head link message carries the attribute information of the size end of the network element processor at the sending side.
The embodiment of the invention provides a communication method of a head link, which is applied to a network element processor at a receiving side and comprises the following steps:
receiving a head link message sent by a network element processor at a sending side, wherein the head link message carries attribute information of a size end of the network element processor at the sending side;
analyzing the size end attribute information of the network element processor at the sending side carried in the head link message;
and performing byte order conversion on the head link message according to the attribute information of the size end of the network element processor at the sending side, and then performing message processing, or directly processing the head link message.
The embodiment of the invention provides a communication device of a head link, which is positioned at a network element processor at a sending side and comprises:
a first sending unit, configured to send a head link message in a small-end format to a receiving-side network element processor when the sending-side network element processor is in a small-end storage mode;
a second sending unit, configured to send a head link message in a large-end format to a receiving-side network element processor when the sending-side network element processor is in a large-end storage mode;
wherein, the head link message carries the attribute information of the size end of the network element processor at the sending side.
The embodiment of the invention provides a communication device of a head link, which is positioned at a network element processor at a receiving side and comprises:
a receiving unit, configured to receive a head link message sent by a sending-side network element processor, where the head link message carries attribute information of a size end of the sending-side network element processor;
the analysis unit is used for analyzing the size end attribute information of the network element processor at the sending side carried in the head link message;
and the processing unit is used for performing byte order conversion on the head link message according to the attribute information of the size end of the network element processor at the sending side and then performing message processing, or directly processing the head link message.
An embodiment of the present invention further provides an electronic device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor, and when the processor executes the computer program, the electronic device implements the above-mentioned head-link communication method.
Embodiments of the present invention also provide a non-transitory computer-readable storage medium on which a computer program is stored, the program, when executed by a processor, implementing the above-described head-link communication method.
According to the method and the device for communication with the head link, provided by the embodiment of the invention, the processor at the sending side does not perform byte sequence conversion, and the processor at the receiving side analyzes the fields of the network message to judge whether to perform byte sequence conversion, so that the waste of the performance of the processor can be reduced, and the processing efficiency is improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and those skilled in the art can also obtain other drawings according to the drawings without creative efforts.
Fig. 1 is a flowchart illustrating a method for communication with a head link according to an embodiment of the present invention;
fig. 2 is a flowchart illustrating a method for communication with a head link according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of a communication device with a head link according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a communication device with a head link according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Before the present invention is explained in detail, two storage modes of endian in a processor are introduced: for processors with bits larger than 8 bits, such as 16-bit or 32-bit processors, in a computer system, since the register width is larger than one byte, there is a problem how to arrange a plurality of bytes. Thus resulting in a big-end memory mode and a small-end memory mode of the processor. Big-endian storage means that the high byte of word data is stored in the low address of the memory and the low byte of word data is stored in the high address of the memory. The small-side storage mode is the opposite of the large-side storage mode, in which the high bytes of word data are stored in the high addresses of the memory and the low bytes of word data are stored in the high addresses of the memory.
With the development of 5G devices, a small end processor and a small end processor are introduced into a base station, and at this time, the small end processor and the small end processor are required to communicate with each other, so as to avoid the waste of processor performance and also require compatible processing on the processors in 4G products.
It should be noted that the application of the embodiment of the present invention is not limited to the internal processor of the 4G/5G base station, and is applicable to all the inter-processor communication with the problem of big end and small end in the computer system.
Fig. 1 is a flowchart illustrating a method for communication over a head link according to an embodiment of the present invention, where the method is applied to a network element processor on a transmitting side.
As shown in fig. 1, the method for communicating a head link according to an embodiment of the present invention specifically includes the following steps:
s11, when the sending side network element processor is in a small-end storage mode, sending a head link message in a small-end format to a receiving side network element processor;
s12, when the sending side network element processor is in a large-end storage mode, sending a head link message in a large-end format to a receiving side network element processor;
wherein, the head link message carries the attribute information of the size end of the network element processor at the sending side.
The embodiment of the invention does not require that the network message is in a big end or small end byte order storage mode at the sending side, and can send byte order messages with different formats to the network along with different processor byte order storage modes. That is, the sending side processor does not perform byte order conversion on the sent network message no matter whether the sending side processor is a big side or a small side, and can send the network message in a big side format to the network or send the network message in a small side format to the network.
According to the head link communication method provided by the embodiment of the invention, the byte order conversion is not carried out on the processor at the sending side, and the byte order messages with different formats are sent to the network according to the attributes of the big end and the small end of the processor, so that the waste of the performance of the processor can be reduced, and the processing efficiency can be improved.
On the basis of the above embodiment, the sending side network element processor size end attribute information carried by the head link message includes:
when the byte order storage flag bit in the message header of the head link message is 1, the sending side network element processor adopts a small-end storage mode;
and when the byte order storage flag bit in the message header of the head link message is 0, the network element processor at the sending side adopts a large-end storage mode.
Specifically, a fixed bit (bit) of a Byte is set in a message header of the head link as a Byte order storage identification bit, and a Byte order storage mode of the message header and a message body is recorded. The processor at the sending side sets the byte sequence storage identification bit in the message header as a local identification, and carries the storage mode of the big end and the small end of the local processor.
Since the data of the small-end processor and the large-end processor U8 (an 8-bit unsigned char type) does not need to be subjected to endian conversion, the embodiment of the present invention uses one bit of the U8 variable to record a local endian storage mode.
Adding an ENDIAN field in an OSP message header for identifying the size end attribute of the current message, wherein the OSP message header internally defines a code as follows:
Figure BDA0002063811090000051
when the Osp allocates a message, calling the function Osp _ Alloc _ Msg () automatically sets the Endian field to the LOCAL Endian Osp _ LOCAL _ Endian. The local endian is defined as follows:
Figure BDA0002063811090000052
Figure BDA0002063811090000061
fig. 2 is a flowchart illustrating a method for communication over a head link according to an embodiment of the present invention, where the method is applied to a network element processor on a receiving side.
As shown in fig. 2, the method for communicating a head link according to an embodiment of the present invention specifically includes the following steps:
s21, receiving a head link message sent by a sending side network element processor, wherein the head link message carries the attribute information of a size end of the sending side network element processor;
specifically, the information of the size end storage mode of the sending side network element processor is carried in the head link message received by the receiving side network element processor.
S22, analyzing the attribute information of the size end of the network element processor at the sending side carried in the head link message;
specifically, the receiving end obtains the message from the network, then analyzes the byte sequence identification bit in the message header, obtains the storage mode of the byte sequence, and obtains the big and small end information of the network element processor at the sending end.
S23, according to the size end attribute information of the sending side network element processor, the head link message is processed after byte order conversion, or the head link message is directly processed.
Specifically, if the attributes of the size ends of the sending-side network element processor and the local identical processor are matched with each other, the endian conversion is not performed, and if the attributes of the size ends of the sending-side network element processor and the local identical processor are matched with each other, the endian conversion is performed on the network message. Therefore, the transmitting side does not carry out byte sequence conversion, the receiving side carries out byte sequence conversion processing, and the byte sequence adaptive conversion of network messages among multiple processors can be realized in a complex network.
The method for communicating the head link provided by the embodiment of the invention judges whether to perform byte order conversion by uniformly analyzing the fields of the network message at the processor at the receiving side, thereby reducing the waste of the performance of the processor and improving the processing efficiency.
On the basis of the foregoing embodiment, S23 specifically includes:
when the storage mode of the size end of the network element processor at the sending side is different from the storage mode of the size end of the local processor, performing byte order conversion on the head link message and then performing message processing;
and when the size end storage mode of the network element processor at the sending side is the same as the local size end storage mode, directly processing the head link message.
Specifically, if the storage mode of the size end of the network element processor at the sending side is different from that of the local processor, the storage mode of the network message byte order is different from that of the local processor, and corresponding message processing is performed after byte order conversion.
If the storage mode of the size end of the network element processor at the sending side is the same as that of the size end of the local processor, the storage mode of the network message byte order is the same as that of the local processor, byte order conversion is not carried out, and message processing can be directly carried out.
On the basis of the foregoing embodiment, S22 specifically includes:
analyzing a byte order storage flag bit in a message header of the head link message, wherein when the byte order storage flag bit is 1, the sending side network element processor adopts a small-end storage mode; and when the byte order storage flag bit is 0, the network element processor at the sending side adopts a large-end storage mode.
Specifically, a fixed bit of one byte is set in a message header of the head link as a byte order storage identification bit, which identifies the byte order storage mode of the message header and the message body, and also identifies the size end storage mode of the sending side processor.
When the identification bit is 1, the network element processor at the sending side is represented as a small-end storage mode; and when the identification bit is 0, the network element processor at the sending side is in a large-end storage mode.
It should be noted that, because the data of the small-end processor and the large-end processor U8 does not need to be converted into endian data, the embodiment of the present invention uses one bit of the U8 variable to record the local endian data storage mode.
Fig. 3 is a schematic structural diagram of a head-link communication apparatus provided in an embodiment of the present invention, where the apparatus is located in a network element processor on a transmitting side.
As shown in fig. 3, a head-link communication apparatus according to an embodiment of the present invention includes: a first transmission unit 11 and a second transmission unit 12, wherein:
the first sending unit 11 is configured to send a head link message in a small-end format to a receiving-side network element processor when the sending-side network element processor is in a small-end storage mode;
a second sending unit 12, configured to send a head link message in a large-end format to a receiving-side network element processor when the sending-side network element processor is in a large-end storage mode;
wherein, the head link message carries the attribute information of the size end of the network element processor at the sending side.
The embodiment of the invention does not require that the network message is in a big end or small end byte order storage mode at the sending side, and can send byte order messages with different formats to the network along with different processor byte order storage modes. That is, the sending side processor does not perform byte order conversion on the sent network message no matter whether the sending side processor is a big side or a small side, and can send the network message in a big side format to the network or send the network message in a small side format to the network.
According to the head link communication device provided by the embodiment of the invention, the byte order conversion is not carried out on the processor at the sending side, and the byte order messages with different formats are sent to the network according to the attributes of the big end and the small end of the processor, so that the waste of the performance of the processor can be reduced, and the processing efficiency can be improved.
On the basis of the above embodiment, the sending side network element processor size end attribute information carried by the head link message includes:
when the byte order storage flag bit in the message header of the head link message is 1, the sending side network element processor adopts a small-end storage mode;
and when the byte order storage flag bit in the message header of the head link message is 0, the network element processor at the sending side adopts a large-end storage mode.
Specifically, a fixed bit (bit) of a Byte is set in a message header of the head link as a Byte order storage identification bit, and a Byte order storage mode of the message header and a message body is recorded. The processor at the sending side sets the byte sequence storage identification bit in the message header as a local identification, and carries the storage mode of the big end and the small end of the local processor.
Since the data of the small-end processor and the large-end processor U8 (an 8-bit unsigned char type) does not need to be subjected to endian conversion, the embodiment of the present invention uses one bit of the U8 variable to record a local endian storage mode.
Fig. 4 is a schematic structural diagram of a head link communication apparatus provided in an embodiment of the present invention, where the apparatus is located in a network element processor on a receiving side.
As shown in fig. 4, a head-link communication apparatus according to an embodiment of the present invention includes: a receiving unit 21, an analyzing unit 22 and a processing unit 23, wherein:
the receiving unit 21 is configured to receive a head link message sent by a sending-side network element processor, where the head link message carries attribute information of a size end of the sending-side network element processor;
specifically, the information of the size end storage mode of the sending side network element processor is carried in the head link message received by the receiving side network element processor.
The parsing unit 22 is configured to parse the size end attribute information of the sending side network element processor carried in the head link message;
specifically, the receiving end obtains the message from the network, then analyzes the byte sequence identification bit in the message header, obtains the storage mode of the byte sequence, and obtains the big and small end information of the network element processor at the sending end.
The processing unit 23 is configured to perform message processing after performing byte order conversion on the head link message according to the size end attribute information of the sending side network element processor, or directly process the head link message.
Specifically, if the attributes of the size ends of the sending-side network element processor and the local identical processor are matched with each other, the endian conversion is not performed, and if the attributes of the size ends of the sending-side network element processor and the local identical processor are matched with each other, the endian conversion is performed on the network message. Therefore, the transmitting side does not carry out byte sequence conversion, the receiving side carries out byte sequence conversion processing, and the byte sequence adaptive conversion of network messages among multiple processors can be realized in a complex network.
The head link communication device provided by the embodiment of the invention judges whether to perform byte order conversion by uniformly analyzing the fields of the network message at the processor at the receiving side, thereby reducing the waste of the performance of the processor and improving the processing efficiency.
On the basis of the foregoing embodiment, the processing unit 23 is configured to perform message processing after performing byte order conversion on the head link message when a storage manner of a size end of the sending-side network element processor is different from a storage manner of a size end of a local processor; and when the size end storage mode of the network element processor at the sending side is the same as the local size end storage mode, directly processing the head link message.
Specifically, if the storage mode of the size end of the network element processor at the sending side is different from that of the local processor, the storage mode of the network message byte order is different from that of the local processor, and corresponding message processing is performed after byte order conversion.
If the storage mode of the size end of the network element processor at the sending side is the same as that of the size end of the local processor, the storage mode of the network message byte order is the same as that of the local processor, byte order conversion is not carried out, and message processing can be directly carried out.
On the basis of the foregoing embodiment, the parsing unit 22 is configured to parse a endian storage flag bit in a message header of the head link message, where the sending-side network element processor is in a small-end storage mode when the endian storage flag bit is 1, and the sending-side network element processor is in a large-end storage mode when the endian storage flag bit is 0.
Specifically, a fixed bit of one byte is set in a message header of the head link as a byte order storage identification bit, which identifies the byte order storage mode of the message header and the message body, and also identifies the size end storage mode of the sending side processor.
When the identification bit is 1, the network element processor at the sending side is represented as a small-end storage mode; and when the identification bit is 0, the network element processor at the sending side is in a large-end storage mode.
It should be noted that, because the data of the small-end processor and the large-end processor U8 does not need to be converted into endian data, the embodiment of the present invention uses one bit of the U8 variable to record the local endian data storage mode.
Fig. 5 illustrates a physical structure diagram of a server, and as shown in fig. 5, the server may include: a processor (processor)31, a communication Interface (communication Interface)32, a memory (memory)33 and a communication bus 34, wherein the processor 31, the communication Interface 32 and the memory 33 are communicated with each other via the communication bus 34. The processor 31 may call logic instructions in the memory 33 to perform the following method: when the network element processor at the sending side is in a small-end storage mode, sending a head link message in a small-end format to the network element processor at the receiving side; when the sending side network element processor is in a large-end storage mode, sending a head link message in a large-end format to a receiving side network element processor; wherein, the head link message carries the attribute information of the size end of the network element processor at the sending side.
In addition, the logic instructions in the memory 33 may be implemented in the form of software functional units and stored in a computer readable storage medium when the software functional units are sold or used as independent products. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
In another aspect, an embodiment of the present invention further provides a non-transitory computer-readable storage medium, on which a computer program is stored, where the computer program is implemented to perform the transmission method provided in the foregoing embodiments when executed by a processor, and for example, the method includes: when the network element processor at the sending side is in a small-end storage mode, sending a head link message in a small-end format to the network element processor at the receiving side; when the sending side network element processor is in a large-end storage mode, sending a head link message in a large-end format to a receiving side network element processor; wherein, the head link message carries the attribute information of the size end of the network element processor at the sending side.
The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware. With this understanding in mind, the above-described technical solutions may be embodied in the form of a software product, which can be stored in a computer-readable storage medium such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the methods described in the embodiments or some parts of the embodiments.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (10)

1. A method for communication over a head link, the method being applied to a network element processor on a transmitting side, the method comprising:
when the network element processor at the sending side is in a small-end storage mode, sending a head link message in a small-end format to the network element processor at the receiving side;
when the sending side network element processor is in a large-end storage mode, sending a head link message in a large-end format to a receiving side network element processor;
wherein, the head link message carries the attribute information of the size end of the network element processor at the sending side.
2. The method of claim 1, wherein the step of the head link message carrying the size end attribute information of the sending side network element processor comprises:
when the byte order storage flag bit in the message header of the head link message is 1, the sending side network element processor adopts a small-end storage mode;
and when the byte order storage flag bit in the message header of the head link message is 0, the network element processor at the sending side adopts a large-end storage mode.
3. A method for communication of a head link, the method being applied to a network element processor on a receiving side, the method comprising:
receiving a head link message sent by a network element processor at a sending side, wherein the head link message carries attribute information of a size end of the network element processor at the sending side;
analyzing the size end attribute information of the network element processor at the sending side carried in the head link message;
and performing byte order conversion on the head link message according to the attribute information of the size end of the network element processor at the sending side, and then performing message processing, or directly processing the head link message.
4. The method according to claim 3, wherein said performing message processing after performing byte-order conversion on the message of the head link according to the attribute information of the size end of the network element processor on the sending side, or directly processing the message of the head link comprises:
when the storage mode of the size end of the network element processor at the sending side is different from the storage mode of the size end of the local processor, performing byte order conversion on the head link message and then performing message processing;
and when the size end storage mode of the network element processor at the sending side is the same as the local size end storage mode, directly processing the head link message.
5. The method according to claim 3, wherein said analyzing the size end attribute information of the sending side network element processor carried in the head link message comprises:
analyzing a byte order storage flag bit in a message header of the head link message, wherein when the byte order storage flag bit is 1, the sending side network element processor is in a small-end storage mode, and when the byte order storage flag bit is 0, the sending side network element processor is in a large-end storage mode.
6. A head-link communication apparatus, wherein the apparatus is located at a network element processor on a transmitting side, the apparatus comprising:
a first sending unit, configured to send a head link message in a small-end format to a receiving-side network element processor when the sending-side network element processor is in a small-end storage mode;
a second sending unit, configured to send a head link message in a large-end format to a receiving-side network element processor when the sending-side network element processor is in a large-end storage mode;
wherein, the head link message carries the attribute information of the size end of the network element processor at the sending side.
7. A head-link communication apparatus, wherein the apparatus is located at a receiving-side network element processor, the apparatus comprising:
a receiving unit, configured to receive a head link message sent by a sending-side network element processor, where the head link message carries attribute information of a size end of the sending-side network element processor;
the analysis unit is used for analyzing the size end attribute information of the network element processor at the sending side carried in the head link message;
and the processing unit is used for performing byte order conversion on the head link message according to the attribute information of the size end of the network element processor at the sending side and then performing message processing, or directly processing the head link message.
8. The apparatus according to claim 7, wherein the processing unit is configured to perform message processing after performing endian conversion on the message of the head link when a size storage manner of the sending-side network element processor is different from a size storage manner of a local processor; and when the size end storage mode of the network element processor at the sending side is the same as the local size end storage mode, directly processing the head link message.
9. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the steps of the method for head-link communication according to any of claims 1 to 5 are implemented when the program is executed by the processor.
10. A non-transitory computer-readable storage medium having stored thereon a computer program, which when executed by a processor implements the steps of the method for communication with a head link according to any one of claims 1 to 5.
CN201910414182.XA 2019-05-17 2019-05-17 Method and apparatus for communication over a head link Active CN111953639B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910414182.XA CN111953639B (en) 2019-05-17 2019-05-17 Method and apparatus for communication over a head link

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910414182.XA CN111953639B (en) 2019-05-17 2019-05-17 Method and apparatus for communication over a head link

Publications (2)

Publication Number Publication Date
CN111953639A true CN111953639A (en) 2020-11-17
CN111953639B CN111953639B (en) 2021-11-12

Family

ID=73336778

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910414182.XA Active CN111953639B (en) 2019-05-17 2019-05-17 Method and apparatus for communication over a head link

Country Status (1)

Country Link
CN (1) CN111953639B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101682635A (en) * 2007-06-08 2010-03-24 苹果公司 Multiplexed data stream protocol
CN103257927A (en) * 2012-11-12 2013-08-21 盛吉高科(北京)科技有限公司 Data management system specific to communication access
CN103535006A (en) * 2012-11-28 2014-01-22 华为技术有限公司 Information processing method and network apparatus
CN104038389A (en) * 2014-06-19 2014-09-10 高长喜 Multiple application protocol identification method and device
CN104378336A (en) * 2013-08-16 2015-02-25 好看科技(深圳)有限公司 Data processing method and system and server
CN106354568A (en) * 2016-08-23 2017-01-25 京信通信技术(广州)有限公司 Method and device for communication between different processes
CN108243168A (en) * 2016-12-27 2018-07-03 比亚迪股份有限公司 Packet parsing, group packet method and apparatus and message handling system

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101682635A (en) * 2007-06-08 2010-03-24 苹果公司 Multiplexed data stream protocol
CN103257927A (en) * 2012-11-12 2013-08-21 盛吉高科(北京)科技有限公司 Data management system specific to communication access
CN103535006A (en) * 2012-11-28 2014-01-22 华为技术有限公司 Information processing method and network apparatus
CN104378336A (en) * 2013-08-16 2015-02-25 好看科技(深圳)有限公司 Data processing method and system and server
CN104038389A (en) * 2014-06-19 2014-09-10 高长喜 Multiple application protocol identification method and device
CN106354568A (en) * 2016-08-23 2017-01-25 京信通信技术(广州)有限公司 Method and device for communication between different processes
CN108243168A (en) * 2016-12-27 2018-07-03 比亚迪股份有限公司 Packet parsing, group packet method and apparatus and message handling system

Also Published As

Publication number Publication date
CN111953639B (en) 2021-11-12

Similar Documents

Publication Publication Date Title
CN111447257B (en) Message conversion method and device
CN107395572B (en) Data processing method and Internet of things gateway
CN111818136B (en) Data processing method, device, electronic equipment and computer readable medium
CN109388417A (en) A kind of update method of communication protocol, system and terminal device
CN114362885B (en) Data transmission method, communication system, equipment and medium of Internet of things
CN112817602A (en) JSON format data sending and receiving method, device and medium
CN111294235A (en) Data processing method, device, gateway and readable storage medium
CN112714180A (en) Service calling method and device, electronic equipment and storage medium
CN113867732A (en) Message information processing method, system and storage medium
CN115190430A (en) 5G core network N2, N3 and N4 interface-based user source tracing correlation method and system
CN114553730A (en) Application identification method and device, electronic equipment and storage medium
CN111953639B (en) Method and apparatus for communication over a head link
CN116346961B (en) Financial message processing method and device, electronic equipment and storage medium
CN109639555B (en) Link layer message generation method, link layer message generation device and terminal equipment
CN112422485A (en) Communication method and device of transmission control protocol
CN113422739B (en) Data transmission method, sending end and data transmission system
CN115801927A (en) Message parsing method and device
CN114785854A (en) Service request processing method, device, equipment, storage medium and product
CN114390452A (en) Message sending method and related equipment
CN112769741B (en) Message communication method and electronic equipment
CN114979307A (en) Communication protocol analysis method, intelligent terminal and storage medium
CN110288356B (en) Payment service processing method, device, electronic equipment, storage medium and system
CN112788078B (en) Data transmission method, receiving device, sending device and computer equipment
CN113779018A (en) Data processing method and device
CN116567096A (en) Ethernet frame transmission method, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant